Skip to content

Commit 86b5f90

Browse files
authored
feat: Sync with Seam API via ed986fd61d24da19c518192c4e4d22df654fad44 (#2718)
1 parent a56e6b8 commit 86b5f90

File tree

3 files changed

+118
-118
lines changed

3 files changed

+118
-118
lines changed

src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ const updating_entrance_membership = common_pending_mutation
135135
'Seam is in the process of pushing an entrance membership update to the integrated access system.',
136136
)
137137

138+
const deferring_deletion = common_pending_mutation
139+
.extend({
140+
mutation_code: z
141+
.literal('deferring_deletion')
142+
.describe(
143+
'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.',
144+
),
145+
})
146+
.describe(
147+
'This access group is scheduled for automatic deletion when its access window expires.',
148+
)
149+
138150
const deferring_user_membership_update = common_pending_mutation
139151
.extend({
140152
mutation_code: z
@@ -156,29 +168,17 @@ const deferring_user_membership_update = common_pending_mutation
156168
'A scheduled user membership change is pending for this access group.',
157169
)
158170

159-
const deferring_deletion = common_pending_mutation
160-
.extend({
161-
mutation_code: z
162-
.literal('deferring_deletion')
163-
.describe(
164-
'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.',
165-
),
166-
})
167-
.describe(
168-
'This access group is scheduled for automatic deletion when its access window expires.',
169-
)
170-
171171
export const acs_access_group_pending_mutations = z.discriminatedUnion(
172172
'mutation_code',
173173
[
174174
creating,
175175
deleting,
176+
deferring_deletion,
176177
updating_group_information,
177178
updating_access_schedule,
178179
updating_user_membership,
179180
updating_entrance_membership,
180181
deferring_user_membership_update,
181-
deferring_deletion,
182182
],
183183
)
184184

@@ -189,6 +189,7 @@ export type AcsAccessGroupPendingMutation = z.infer<
189189
const _acs_access_group_pending_mutations_map = z.object({
190190
creating: creating.optional().nullable(),
191191
deleting: deleting.optional().nullable(),
192+
deferring_deletion: deferring_deletion.optional().nullable(),
192193
updating_name: updating_group_information.optional().nullable(),
193194
updating_access_schedule: updating_access_schedule.optional().nullable(),
194195
updating_user_membership: z
@@ -203,7 +204,6 @@ const _acs_access_group_pending_mutations_map = z.object({
203204
.record(z.string().uuid(), deferring_user_membership_update)
204205
.optional()
205206
.nullable(),
206-
deferring_deletion: deferring_deletion.optional().nullable(),
207207
})
208208

209209
export type AcsAccessGroupPendingMutationsMap = z.infer<

src/lib/seam/connect/openapi.ts

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,6 +2853,30 @@ export default {
28532853
required: ['created_at', 'message', 'mutation_code'],
28542854
type: 'object',
28552855
},
2856+
{
2857+
description:
2858+
'This access group is scheduled for automatic deletion when its access window expires.',
2859+
properties: {
2860+
created_at: {
2861+
description:
2862+
'Date and time at which the mutation was created.',
2863+
format: 'date-time',
2864+
type: 'string',
2865+
},
2866+
message: {
2867+
description: 'Detailed description of the mutation.',
2868+
type: 'string',
2869+
},
2870+
mutation_code: {
2871+
description:
2872+
'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.',
2873+
enum: ['deferring_deletion'],
2874+
type: 'string',
2875+
},
2876+
},
2877+
required: ['created_at', 'message', 'mutation_code'],
2878+
type: 'object',
2879+
},
28562880
{
28572881
description:
28582882
'Seam is in the process of pushing an access group information update to the integrated access system.',
@@ -3127,30 +3151,6 @@ export default {
31273151
],
31283152
type: 'object',
31293153
},
3130-
{
3131-
description:
3132-
'This access group is scheduled for automatic deletion when its access window expires.',
3133-
properties: {
3134-
created_at: {
3135-
description:
3136-
'Date and time at which the mutation was created.',
3137-
format: 'date-time',
3138-
type: 'string',
3139-
},
3140-
message: {
3141-
description: 'Detailed description of the mutation.',
3142-
type: 'string',
3143-
},
3144-
mutation_code: {
3145-
description:
3146-
'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.',
3147-
enum: ['deferring_deletion'],
3148-
type: 'string',
3149-
},
3150-
},
3151-
required: ['created_at', 'message', 'mutation_code'],
3152-
type: 'object',
3153-
},
31543154
],
31553155
},
31563156
type: 'array',
@@ -27251,6 +27251,30 @@ export default {
2725127251
required: ['created_at', 'message', 'mutation_code'],
2725227252
type: 'object',
2725327253
},
27254+
{
27255+
description:
27256+
'This access group is scheduled for automatic deletion when its access window expires.',
27257+
properties: {
27258+
created_at: {
27259+
description:
27260+
'Date and time at which the mutation was created.',
27261+
format: 'date-time',
27262+
type: 'string',
27263+
},
27264+
message: {
27265+
description: 'Detailed description of the mutation.',
27266+
type: 'string',
27267+
},
27268+
mutation_code: {
27269+
description:
27270+
'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.',
27271+
enum: ['deferring_deletion'],
27272+
type: 'string',
27273+
},
27274+
},
27275+
required: ['created_at', 'message', 'mutation_code'],
27276+
type: 'object',
27277+
},
2725427278
{
2725527279
description:
2725627280
'Seam is in the process of pushing an access group information update to the integrated access system.',
@@ -27525,30 +27549,6 @@ export default {
2752527549
],
2752627550
type: 'object',
2752727551
},
27528-
{
27529-
description:
27530-
'This access group is scheduled for automatic deletion when its access window expires.',
27531-
properties: {
27532-
created_at: {
27533-
description:
27534-
'Date and time at which the mutation was created.',
27535-
format: 'date-time',
27536-
type: 'string',
27537-
},
27538-
message: {
27539-
description: 'Detailed description of the mutation.',
27540-
type: 'string',
27541-
},
27542-
mutation_code: {
27543-
description:
27544-
'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.',
27545-
enum: ['deferring_deletion'],
27546-
type: 'string',
27547-
},
27548-
},
27549-
required: ['created_at', 'message', 'mutation_code'],
27550-
type: 'object',
27551-
},
2755227552
],
2755327553
},
2755427554
type: 'array',

src/lib/seam/connect/route-types.ts

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -14162,6 +14162,14 @@ export type Routes = {
1416214162
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
1416314163
mutation_code: 'deleting'
1416414164
}
14165+
| {
14166+
/** Date and time at which the mutation was created. */
14167+
created_at: string
14168+
/** Detailed description of the mutation. */
14169+
message: string
14170+
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
14171+
mutation_code: 'deferring_deletion'
14172+
}
1416514173
| {
1416614174
/** Date and time at which the mutation was created. */
1416714175
created_at: string
@@ -14250,14 +14258,6 @@ export type Routes = {
1425014258
/** Whether the user is scheduled to be added to or removed from this access group. */
1425114259
variant: 'adding' | 'removing'
1425214260
}
14253-
| {
14254-
/** Date and time at which the mutation was created. */
14255-
created_at: string
14256-
/** Detailed description of the mutation. */
14257-
message: string
14258-
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
14259-
mutation_code: 'deferring_deletion'
14260-
}
1426114261
)[]
1426214262
is_managed: true
1426314263
}[]
@@ -19721,6 +19721,14 @@ export type Routes = {
1972119721
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
1972219722
mutation_code: 'deleting'
1972319723
}
19724+
| {
19725+
/** Date and time at which the mutation was created. */
19726+
created_at: string
19727+
/** Detailed description of the mutation. */
19728+
message: string
19729+
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
19730+
mutation_code: 'deferring_deletion'
19731+
}
1972419732
| {
1972519733
/** Date and time at which the mutation was created. */
1972619734
created_at: string
@@ -19809,14 +19817,6 @@ export type Routes = {
1980919817
/** Whether the user is scheduled to be added to or removed from this access group. */
1981019818
variant: 'adding' | 'removing'
1981119819
}
19812-
| {
19813-
/** Date and time at which the mutation was created. */
19814-
created_at: string
19815-
/** Detailed description of the mutation. */
19816-
message: string
19817-
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
19818-
mutation_code: 'deferring_deletion'
19819-
}
1982019820
)[]
1982119821
is_managed: true
1982219822
}
@@ -19924,6 +19924,14 @@ export type Routes = {
1992419924
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
1992519925
mutation_code: 'deleting'
1992619926
}
19927+
| {
19928+
/** Date and time at which the mutation was created. */
19929+
created_at: string
19930+
/** Detailed description of the mutation. */
19931+
message: string
19932+
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
19933+
mutation_code: 'deferring_deletion'
19934+
}
1992719935
| {
1992819936
/** Date and time at which the mutation was created. */
1992919937
created_at: string
@@ -20012,14 +20020,6 @@ export type Routes = {
2001220020
/** Whether the user is scheduled to be added to or removed from this access group. */
2001320021
variant: 'adding' | 'removing'
2001420022
}
20015-
| {
20016-
/** Date and time at which the mutation was created. */
20017-
created_at: string
20018-
/** Detailed description of the mutation. */
20019-
message: string
20020-
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
20021-
mutation_code: 'deferring_deletion'
20022-
}
2002320023
)[]
2002420024
is_managed: true
2002520025
}[]
@@ -20599,6 +20599,14 @@ export type Routes = {
2059920599
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
2060020600
mutation_code: 'deleting'
2060120601
}
20602+
| {
20603+
/** Date and time at which the mutation was created. */
20604+
created_at: string
20605+
/** Detailed description of the mutation. */
20606+
message: string
20607+
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
20608+
mutation_code: 'deferring_deletion'
20609+
}
2060220610
| {
2060320611
/** Date and time at which the mutation was created. */
2060420612
created_at: string
@@ -20687,14 +20695,6 @@ export type Routes = {
2068720695
/** Whether the user is scheduled to be added to or removed from this access group. */
2068820696
variant: 'adding' | 'removing'
2068920697
}
20690-
| {
20691-
/** Date and time at which the mutation was created. */
20692-
created_at: string
20693-
/** Detailed description of the mutation. */
20694-
message: string
20695-
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
20696-
mutation_code: 'deferring_deletion'
20697-
}
2069820698
)[]
2069920699
is_managed: false
2070020700
}
@@ -20800,6 +20800,14 @@ export type Routes = {
2080020800
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
2080120801
mutation_code: 'deleting'
2080220802
}
20803+
| {
20804+
/** Date and time at which the mutation was created. */
20805+
created_at: string
20806+
/** Detailed description of the mutation. */
20807+
message: string
20808+
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
20809+
mutation_code: 'deferring_deletion'
20810+
}
2080320811
| {
2080420812
/** Date and time at which the mutation was created. */
2080520813
created_at: string
@@ -20888,14 +20896,6 @@ export type Routes = {
2088820896
/** Whether the user is scheduled to be added to or removed from this access group. */
2088920897
variant: 'adding' | 'removing'
2089020898
}
20891-
| {
20892-
/** Date and time at which the mutation was created. */
20893-
created_at: string
20894-
/** Detailed description of the mutation. */
20895-
message: string
20896-
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
20897-
mutation_code: 'deferring_deletion'
20898-
}
2089920899
)[]
2090020900
is_managed: false
2090120901
}[]
@@ -105389,6 +105389,14 @@ export type Routes = {
105389105389
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
105390105390
mutation_code: 'deleting'
105391105391
}
105392+
| {
105393+
/** Date and time at which the mutation was created. */
105394+
created_at: string
105395+
/** Detailed description of the mutation. */
105396+
message: string
105397+
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
105398+
mutation_code: 'deferring_deletion'
105399+
}
105392105400
| {
105393105401
/** Date and time at which the mutation was created. */
105394105402
created_at: string
@@ -105477,14 +105485,6 @@ export type Routes = {
105477105485
/** Whether the user is scheduled to be added to or removed from this access group. */
105478105486
variant: 'adding' | 'removing'
105479105487
}
105480-
| {
105481-
/** Date and time at which the mutation was created. */
105482-
created_at: string
105483-
/** Detailed description of the mutation. */
105484-
message: string
105485-
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
105486-
mutation_code: 'deferring_deletion'
105487-
}
105488105488
)[]
105489105489
is_managed: true
105490105490
}[]
@@ -107396,6 +107396,14 @@ export type Routes = {
107396107396
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
107397107397
mutation_code: 'deleting'
107398107398
}
107399+
| {
107400+
/** Date and time at which the mutation was created. */
107401+
created_at: string
107402+
/** Detailed description of the mutation. */
107403+
message: string
107404+
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
107405+
mutation_code: 'deferring_deletion'
107406+
}
107399107407
| {
107400107408
/** Date and time at which the mutation was created. */
107401107409
created_at: string
@@ -107484,14 +107492,6 @@ export type Routes = {
107484107492
/** Whether the user is scheduled to be added to or removed from this access group. */
107485107493
variant: 'adding' | 'removing'
107486107494
}
107487-
| {
107488-
/** Date and time at which the mutation was created. */
107489-
created_at: string
107490-
/** Detailed description of the mutation. */
107491-
message: string
107492-
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
107493-
mutation_code: 'deferring_deletion'
107494-
}
107495107495
)[]
107496107496
is_managed: false
107497107497
}[]

0 commit comments

Comments
 (0)