Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ const updating_entrance_membership = common_pending_mutation
'Seam is in the process of pushing an entrance membership update to the integrated access system.',
)

const deferring_deletion = common_pending_mutation
.extend({
mutation_code: z
.literal('deferring_deletion')
.describe(
'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.',
),
})
.describe(
'This access group is scheduled for automatic deletion when its access window expires.',
)

const deferring_user_membership_update = common_pending_mutation
.extend({
mutation_code: z
Expand All @@ -156,29 +168,17 @@ const deferring_user_membership_update = common_pending_mutation
'A scheduled user membership change is pending for this access group.',
)

const deferring_deletion = common_pending_mutation
.extend({
mutation_code: z
.literal('deferring_deletion')
.describe(
'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.',
),
})
.describe(
'This access group is scheduled for automatic deletion when its access window expires.',
)

export const acs_access_group_pending_mutations = z.discriminatedUnion(
'mutation_code',
[
creating,
deleting,
deferring_deletion,
updating_group_information,
updating_access_schedule,
updating_user_membership,
updating_entrance_membership,
deferring_user_membership_update,
deferring_deletion,
],
)

Expand All @@ -189,6 +189,7 @@ export type AcsAccessGroupPendingMutation = z.infer<
const _acs_access_group_pending_mutations_map = z.object({
creating: creating.optional().nullable(),
deleting: deleting.optional().nullable(),
deferring_deletion: deferring_deletion.optional().nullable(),
updating_name: updating_group_information.optional().nullable(),
updating_access_schedule: updating_access_schedule.optional().nullable(),
updating_user_membership: z
Expand All @@ -203,7 +204,6 @@ const _acs_access_group_pending_mutations_map = z.object({
.record(z.string().uuid(), deferring_user_membership_update)
.optional()
.nullable(),
deferring_deletion: deferring_deletion.optional().nullable(),
})

export type AcsAccessGroupPendingMutationsMap = z.infer<
Expand Down
96 changes: 48 additions & 48 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2853,6 +2853,30 @@ export default {
required: ['created_at', 'message', 'mutation_code'],
type: 'object',
},
{
description:
'This access group is scheduled for automatic deletion when its access window expires.',
properties: {
created_at: {
description:
'Date and time at which the mutation was created.',
format: 'date-time',
type: 'string',
},
message: {
description: 'Detailed description of the mutation.',
type: 'string',
},
mutation_code: {
description:
'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.',
enum: ['deferring_deletion'],
type: 'string',
},
},
required: ['created_at', 'message', 'mutation_code'],
type: 'object',
},
{
description:
'Seam is in the process of pushing an access group information update to the integrated access system.',
Expand Down Expand Up @@ -3127,30 +3151,6 @@ export default {
],
type: 'object',
},
{
description:
'This access group is scheduled for automatic deletion when its access window expires.',
properties: {
created_at: {
description:
'Date and time at which the mutation was created.',
format: 'date-time',
type: 'string',
},
message: {
description: 'Detailed description of the mutation.',
type: 'string',
},
mutation_code: {
description:
'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.',
enum: ['deferring_deletion'],
type: 'string',
},
},
required: ['created_at', 'message', 'mutation_code'],
type: 'object',
},
],
},
type: 'array',
Expand Down Expand Up @@ -27251,6 +27251,30 @@ export default {
required: ['created_at', 'message', 'mutation_code'],
type: 'object',
},
{
description:
'This access group is scheduled for automatic deletion when its access window expires.',
properties: {
created_at: {
description:
'Date and time at which the mutation was created.',
format: 'date-time',
type: 'string',
},
message: {
description: 'Detailed description of the mutation.',
type: 'string',
},
mutation_code: {
description:
'Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.',
enum: ['deferring_deletion'],
type: 'string',
},
},
required: ['created_at', 'message', 'mutation_code'],
type: 'object',
},
{
description:
'Seam is in the process of pushing an access group information update to the integrated access system.',
Expand Down Expand Up @@ -27525,30 +27549,6 @@ export default {
],
type: 'object',
},
{
description:
'This access group is scheduled for automatic deletion when its access window expires.',
properties: {
created_at: {
description:
'Date and time at which the mutation was created.',
format: 'date-time',
type: 'string',
},
message: {
description: 'Detailed description of the mutation.',
type: 'string',
},
mutation_code: {
description:
'Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.',
enum: ['deferring_deletion'],
type: 'string',
},
},
required: ['created_at', 'message', 'mutation_code'],
type: 'object',
},
],
},
type: 'array',
Expand Down
112 changes: 56 additions & 56 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14162,6 +14162,14 @@ export type Routes = {
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
mutation_code: 'deleting'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
mutation_code: 'deferring_deletion'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
Expand Down Expand Up @@ -14250,14 +14258,6 @@ export type Routes = {
/** Whether the user is scheduled to be added to or removed from this access group. */
variant: 'adding' | 'removing'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
mutation_code: 'deferring_deletion'
}
)[]
is_managed: true
}[]
Expand Down Expand Up @@ -19721,6 +19721,14 @@ export type Routes = {
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
mutation_code: 'deleting'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
mutation_code: 'deferring_deletion'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
Expand Down Expand Up @@ -19809,14 +19817,6 @@ export type Routes = {
/** Whether the user is scheduled to be added to or removed from this access group. */
variant: 'adding' | 'removing'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
mutation_code: 'deferring_deletion'
}
)[]
is_managed: true
}
Expand Down Expand Up @@ -19924,6 +19924,14 @@ export type Routes = {
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
mutation_code: 'deleting'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
mutation_code: 'deferring_deletion'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
Expand Down Expand Up @@ -20012,14 +20020,6 @@ export type Routes = {
/** Whether the user is scheduled to be added to or removed from this access group. */
variant: 'adding' | 'removing'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
mutation_code: 'deferring_deletion'
}
)[]
is_managed: true
}[]
Expand Down Expand Up @@ -20599,6 +20599,14 @@ export type Routes = {
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
mutation_code: 'deleting'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
mutation_code: 'deferring_deletion'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
Expand Down Expand Up @@ -20687,14 +20695,6 @@ export type Routes = {
/** Whether the user is scheduled to be added to or removed from this access group. */
variant: 'adding' | 'removing'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
mutation_code: 'deferring_deletion'
}
)[]
is_managed: false
}
Expand Down Expand Up @@ -20800,6 +20800,14 @@ export type Routes = {
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
mutation_code: 'deleting'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
mutation_code: 'deferring_deletion'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
Expand Down Expand Up @@ -20888,14 +20896,6 @@ export type Routes = {
/** Whether the user is scheduled to be added to or removed from this access group. */
variant: 'adding' | 'removing'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
mutation_code: 'deferring_deletion'
}
)[]
is_managed: false
}[]
Expand Down Expand Up @@ -105389,6 +105389,14 @@ export type Routes = {
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
mutation_code: 'deleting'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
mutation_code: 'deferring_deletion'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
Expand Down Expand Up @@ -105477,14 +105485,6 @@ export type Routes = {
/** Whether the user is scheduled to be added to or removed from this access group. */
variant: 'adding' | 'removing'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
mutation_code: 'deferring_deletion'
}
)[]
is_managed: true
}[]
Expand Down Expand Up @@ -107396,6 +107396,14 @@ export type Routes = {
/** Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system. */
mutation_code: 'deleting'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires. */
mutation_code: 'deferring_deletion'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
Expand Down Expand Up @@ -107484,14 +107492,6 @@ export type Routes = {
/** Whether the user is scheduled to be added to or removed from this access group. */
variant: 'adding' | 'removing'
}
| {
/** Date and time at which the mutation was created. */
created_at: string
/** Detailed description of the mutation. */
message: string
/** Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes. */
mutation_code: 'deferring_deletion'
}
)[]
is_managed: false
}[]
Expand Down
Loading