@seamapi/types 1.375.2 → 1.377.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +1708 -529
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1588 -363
- package/lib/seam/connect/models/access-codes/managed-access-code.js +48 -23
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +13 -2
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +182 -150
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +2 -3
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/index.d.ts +1 -1
- package/lib/seam/connect/models/acs/acs-users/index.js +1 -1
- package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/{pending-modifications.d.ts → pending-mutations.d.ts} +191 -106
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +90 -0
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +257 -58
- package/lib/seam/connect/openapi.js +1588 -436
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1155 -161
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +95 -60
- package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +15 -2
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +2 -3
- package/src/lib/seam/connect/models/acs/acs-users/index.ts +1 -1
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +110 -0
- package/src/lib/seam/connect/openapi.ts +1928 -446
- package/src/lib/seam/connect/route-types.ts +1162 -161
- package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +0 -85
- package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +0 -1
- package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +0 -109
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { phone_number } from '../../phone-number.js';
|
|
3
|
-
import { schedule } from '../../schedule.js';
|
|
4
|
-
const common_pending_modification = z.object({
|
|
5
|
-
created_at: z.string().datetime(),
|
|
6
|
-
});
|
|
7
|
-
const lifecycle_create = common_pending_modification.extend({
|
|
8
|
-
modification_code: z.literal('create'),
|
|
9
|
-
});
|
|
10
|
-
const acs_user_profile = z.object({
|
|
11
|
-
email_address: z.string().email().nullable(),
|
|
12
|
-
full_name: z.string().nullable(),
|
|
13
|
-
phone_number: phone_number.optional().nullable(),
|
|
14
|
-
});
|
|
15
|
-
const profile_pending_modification = common_pending_modification.extend({
|
|
16
|
-
modification_code: z.literal('profile'),
|
|
17
|
-
modified_from: acs_user_profile.partial(),
|
|
18
|
-
modified_to: acs_user_profile.partial(),
|
|
19
|
-
});
|
|
20
|
-
const access_schedule_pending_modification = common_pending_modification.extend({
|
|
21
|
-
modification_code: z.literal('access_schedule'),
|
|
22
|
-
modified_from: schedule,
|
|
23
|
-
modified_to: schedule,
|
|
24
|
-
});
|
|
25
|
-
const suspension_state_pending_modification = common_pending_modification.extend({
|
|
26
|
-
modification_code: z.literal('suspension_state'),
|
|
27
|
-
modified_from: z.object({ is_suspended: z.boolean() }),
|
|
28
|
-
modified_to: z.object({ is_suspended: z.boolean() }),
|
|
29
|
-
});
|
|
30
|
-
const acs_access_group_membership_pending_modification = common_pending_modification.extend({
|
|
31
|
-
modification_code: z.literal('acs_access_group_membership'),
|
|
32
|
-
modified_from: z.object({
|
|
33
|
-
acs_access_group_id: z.string().uuid().nullable(),
|
|
34
|
-
}),
|
|
35
|
-
modified_to: z.object({
|
|
36
|
-
acs_access_group_id: z.string().uuid().nullable(),
|
|
37
|
-
}),
|
|
38
|
-
});
|
|
39
|
-
export const acs_user_pending_modification = z.discriminatedUnion('modification_code', [
|
|
40
|
-
lifecycle_create,
|
|
41
|
-
profile_pending_modification,
|
|
42
|
-
access_schedule_pending_modification,
|
|
43
|
-
suspension_state_pending_modification,
|
|
44
|
-
acs_access_group_membership_pending_modification,
|
|
45
|
-
]);
|
|
46
|
-
const acs_user_pending_modifications_map = z.object({
|
|
47
|
-
lifecycle_create: lifecycle_create.optional().nullable(),
|
|
48
|
-
'profile.full_name': common_pending_modification
|
|
49
|
-
.extend({
|
|
50
|
-
modification_code: z.literal('profile'),
|
|
51
|
-
modified_from: z.object({
|
|
52
|
-
full_name: z.string().nullable(),
|
|
53
|
-
}),
|
|
54
|
-
modified_to: z.object({
|
|
55
|
-
full_name: z.string().nullable(),
|
|
56
|
-
}),
|
|
57
|
-
})
|
|
58
|
-
.optional()
|
|
59
|
-
.nullable(),
|
|
60
|
-
'profile.email_address': common_pending_modification
|
|
61
|
-
.extend({
|
|
62
|
-
modification_code: z.literal('profile'),
|
|
63
|
-
modified_from: z.object({
|
|
64
|
-
email_address: z.string().email().nullable(),
|
|
65
|
-
}),
|
|
66
|
-
modified_to: z.object({
|
|
67
|
-
email_address: z.string().email().nullable(),
|
|
68
|
-
}),
|
|
69
|
-
})
|
|
70
|
-
.optional()
|
|
71
|
-
.nullable(),
|
|
72
|
-
'profile.phone_number': common_pending_modification
|
|
73
|
-
.extend({
|
|
74
|
-
modification_code: z.literal('profile'),
|
|
75
|
-
modified_from: z.object({
|
|
76
|
-
phone_number: phone_number.nullable(),
|
|
77
|
-
}),
|
|
78
|
-
modified_to: z.object({
|
|
79
|
-
phone_number: phone_number.nullable(),
|
|
80
|
-
}),
|
|
81
|
-
})
|
|
82
|
-
.optional()
|
|
83
|
-
.nullable(),
|
|
84
|
-
});
|
|
85
|
-
//# sourceMappingURL=pending-modifications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pending-modifications.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-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AAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,uBAAuB,EAAE,2BAA2B;SACjD,MAAM,CAAC;QACN,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QACvC,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC;YACtB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;SAC7C,CAAC;QACF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;SAC7C,CAAC;KACH,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,sBAAsB,EAAE,2BAA2B;SAChD,MAAM,CAAC;QACN,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QACvC,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC;YACtB,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;SACtC,CAAC;QACF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;SACtC,CAAC;KACH,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;CACd,CAAC,CAAA"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod'
|
|
2
|
-
|
|
3
|
-
import { phone_number } from '../../phone-number.js'
|
|
4
|
-
import { schedule } from '../../schedule.js'
|
|
5
|
-
|
|
6
|
-
const common_pending_modification = z.object({
|
|
7
|
-
created_at: z.string().datetime(),
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
const lifecycle_create = common_pending_modification.extend({
|
|
11
|
-
modification_code: z.literal('create'),
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
const acs_user_profile = z.object({
|
|
15
|
-
email_address: z.string().email().nullable(),
|
|
16
|
-
full_name: z.string().nullable(),
|
|
17
|
-
phone_number: phone_number.optional().nullable(),
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
const profile_pending_modification = common_pending_modification.extend({
|
|
21
|
-
modification_code: z.literal('profile'),
|
|
22
|
-
modified_from: acs_user_profile.partial(),
|
|
23
|
-
modified_to: acs_user_profile.partial(),
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
const access_schedule_pending_modification = common_pending_modification.extend(
|
|
27
|
-
{
|
|
28
|
-
modification_code: z.literal('access_schedule'),
|
|
29
|
-
modified_from: schedule,
|
|
30
|
-
modified_to: schedule,
|
|
31
|
-
},
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
const suspension_state_pending_modification =
|
|
35
|
-
common_pending_modification.extend({
|
|
36
|
-
modification_code: z.literal('suspension_state'),
|
|
37
|
-
modified_from: z.object({ is_suspended: z.boolean() }),
|
|
38
|
-
modified_to: z.object({ is_suspended: z.boolean() }),
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
const acs_access_group_membership_pending_modification =
|
|
42
|
-
common_pending_modification.extend({
|
|
43
|
-
modification_code: z.literal('acs_access_group_membership'),
|
|
44
|
-
modified_from: z.object({
|
|
45
|
-
acs_access_group_id: z.string().uuid().nullable(),
|
|
46
|
-
}),
|
|
47
|
-
modified_to: z.object({
|
|
48
|
-
acs_access_group_id: z.string().uuid().nullable(),
|
|
49
|
-
}),
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
export const acs_user_pending_modification = z.discriminatedUnion(
|
|
53
|
-
'modification_code',
|
|
54
|
-
[
|
|
55
|
-
lifecycle_create,
|
|
56
|
-
profile_pending_modification,
|
|
57
|
-
access_schedule_pending_modification,
|
|
58
|
-
suspension_state_pending_modification,
|
|
59
|
-
acs_access_group_membership_pending_modification,
|
|
60
|
-
],
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
export type AcsUserPendingModification = z.infer<
|
|
64
|
-
typeof acs_user_pending_modification
|
|
65
|
-
>
|
|
66
|
-
|
|
67
|
-
const acs_user_pending_modifications_map = z.object({
|
|
68
|
-
lifecycle_create: lifecycle_create.optional().nullable(),
|
|
69
|
-
'profile.full_name': common_pending_modification
|
|
70
|
-
.extend({
|
|
71
|
-
modification_code: z.literal('profile'),
|
|
72
|
-
modified_from: z.object({
|
|
73
|
-
full_name: z.string().nullable(),
|
|
74
|
-
}),
|
|
75
|
-
modified_to: z.object({
|
|
76
|
-
full_name: z.string().nullable(),
|
|
77
|
-
}),
|
|
78
|
-
})
|
|
79
|
-
.optional()
|
|
80
|
-
.nullable(),
|
|
81
|
-
'profile.email_address': common_pending_modification
|
|
82
|
-
.extend({
|
|
83
|
-
modification_code: z.literal('profile'),
|
|
84
|
-
modified_from: z.object({
|
|
85
|
-
email_address: z.string().email().nullable(),
|
|
86
|
-
}),
|
|
87
|
-
modified_to: z.object({
|
|
88
|
-
email_address: z.string().email().nullable(),
|
|
89
|
-
}),
|
|
90
|
-
})
|
|
91
|
-
.optional()
|
|
92
|
-
.nullable(),
|
|
93
|
-
'profile.phone_number': common_pending_modification
|
|
94
|
-
.extend({
|
|
95
|
-
modification_code: z.literal('profile'),
|
|
96
|
-
modified_from: z.object({
|
|
97
|
-
phone_number: phone_number.nullable(),
|
|
98
|
-
}),
|
|
99
|
-
modified_to: z.object({
|
|
100
|
-
phone_number: phone_number.nullable(),
|
|
101
|
-
}),
|
|
102
|
-
})
|
|
103
|
-
.optional()
|
|
104
|
-
.nullable(),
|
|
105
|
-
})
|
|
106
|
-
|
|
107
|
-
export type AcsUserPendingModificationsMap = z.infer<
|
|
108
|
-
typeof acs_user_pending_modifications_map
|
|
109
|
-
>
|