@seamapi/types 1.375.2 → 1.376.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.
Files changed (25) hide show
  1. package/dist/connect.cjs +127 -142
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +351 -298
  4. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +182 -150
  5. package/lib/seam/connect/models/acs/acs-users/acs-user.js +2 -3
  6. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-users/index.d.ts +1 -1
  8. package/lib/seam/connect/models/acs/acs-users/index.js +1 -1
  9. package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-users/{pending-modifications.d.ts → pending-mutations.d.ts} +191 -106
  11. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +90 -0
  12. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -0
  13. package/lib/seam/connect/openapi.d.ts +56 -56
  14. package/lib/seam/connect/openapi.js +80 -98
  15. package/lib/seam/connect/openapi.js.map +1 -1
  16. package/lib/seam/connect/route-types.d.ts +119 -98
  17. package/package.json +1 -1
  18. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +2 -3
  19. package/src/lib/seam/connect/models/acs/acs-users/index.ts +1 -1
  20. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +110 -0
  21. package/src/lib/seam/connect/openapi.ts +80 -98
  22. package/src/lib/seam/connect/route-types.ts +126 -98
  23. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +0 -85
  24. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +0 -1
  25. package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +0 -109
@@ -0,0 +1,90 @@
1
+ import { z } from 'zod';
2
+ import { phone_number } from '../../phone-number.js';
3
+ import { schedule } from '../../schedule.js';
4
+ const common_pending_mutation = z.object({
5
+ created_at: z.string().datetime(),
6
+ });
7
+ const creating = common_pending_mutation.extend({
8
+ mutation_code: z.literal('creating'),
9
+ });
10
+ const deleting = common_pending_mutation.extend({
11
+ mutation_code: z.literal('deleting'),
12
+ });
13
+ const acs_user_info = z.object({
14
+ email_address: z.string().email().nullable(),
15
+ full_name: z.string().nullable(),
16
+ phone_number: phone_number.optional().nullable(),
17
+ });
18
+ export const updating_user_information_mutation = common_pending_mutation.extend({
19
+ mutation_code: z.literal('updating_user_information'),
20
+ from: acs_user_info.partial(),
21
+ to: acs_user_info.partial(),
22
+ });
23
+ const updating_access_schedule_mutation = common_pending_mutation.extend({
24
+ mutation_code: z.literal('updating_access_schedule'),
25
+ from: schedule,
26
+ to: schedule,
27
+ });
28
+ const updating_suspension_state_mutation = common_pending_mutation.extend({
29
+ mutation_code: z.literal('updating_suspension_state'),
30
+ from: z.object({ is_suspended: z.boolean() }),
31
+ to: z.object({ is_suspended: z.boolean() }),
32
+ });
33
+ const updating_group_membership_mutation = common_pending_mutation.extend({
34
+ mutation_code: z.literal('updating_group_membership'),
35
+ from: z.object({
36
+ acs_access_group_id: z.string().uuid().nullable(),
37
+ }),
38
+ to: z.object({
39
+ acs_access_group_id: z.string().uuid().nullable(),
40
+ }),
41
+ });
42
+ export const acs_user_pending_mutations = z.discriminatedUnion('mutation_code', [
43
+ creating,
44
+ deleting,
45
+ updating_user_information_mutation,
46
+ updating_access_schedule_mutation,
47
+ updating_suspension_state_mutation,
48
+ updating_group_membership_mutation,
49
+ ]);
50
+ export const acs_user_pending_mutations_map = z.object({
51
+ creating: creating.optional().nullable(),
52
+ deleting: deleting.optional().nullable(),
53
+ 'updating_user_information.full_name': common_pending_mutation
54
+ .extend({
55
+ mutation_code: z.literal('updating_user_information'),
56
+ from: z.object({
57
+ full_name: z.string().nullable(),
58
+ }),
59
+ to: z.object({
60
+ full_name: z.string().nullable(),
61
+ }),
62
+ })
63
+ .optional()
64
+ .nullable(),
65
+ 'updating_user_information.email_address': common_pending_mutation
66
+ .extend({
67
+ mutation_code: z.literal('updating_user_information'),
68
+ from: z.object({
69
+ email_address: z.string().email().nullable(),
70
+ }),
71
+ to: z.object({
72
+ email_address: z.string().email().nullable(),
73
+ }),
74
+ })
75
+ .optional()
76
+ .nullable(),
77
+ 'updating_user_information.phone_number': common_pending_mutation
78
+ .extend({
79
+ mutation_code: z.literal('updating_user_information'),
80
+ from: z.object({
81
+ phone_number: phone_number.nullable(),
82
+ }),
83
+ to: z.object({
84
+ phone_number: phone_number.nullable(),
85
+ }),
86
+ })
87
+ .optional()
88
+ .nullable(),
89
+ });
90
+ //# sourceMappingURL=pending-mutations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-mutations.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAEF,MAAM,QAAQ,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;CACrC,CAAC,CAAA;AAEF,MAAM,QAAQ,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;CACrC,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,Q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AA2B,CAAC;QACrD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YACb,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;SACtC,CAAC;QACF,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC;YACX,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;SACtC,CAAC;KACH,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;CACd,CAAC,CAAA"}
@@ -1220,7 +1220,7 @@ declare const _default: {
1220
1220
  type: string;
1221
1221
  'x-undocumented': string;
1222
1222
  };
1223
- pending_modifications: {
1223
+ pending_mutations: {
1224
1224
  items: {
1225
1225
  discriminator: {
1226
1226
  propertyName: string;
@@ -1231,12 +1231,12 @@ declare const _default: {
1231
1231
  format: string;
1232
1232
  type: string;
1233
1233
  };
1234
- modification_code: {
1234
+ mutation_code: {
1235
1235
  enum: string[];
1236
1236
  type: string;
1237
1237
  };
1238
- modified_from?: never;
1239
- modified_to?: never;
1238
+ from?: never;
1239
+ to?: never;
1240
1240
  };
1241
1241
  required: string[];
1242
1242
  type: string;
@@ -1246,11 +1246,7 @@ declare const _default: {
1246
1246
  format: string;
1247
1247
  type: string;
1248
1248
  };
1249
- modification_code: {
1250
- enum: string[];
1251
- type: string;
1252
- };
1253
- modified_from: {
1249
+ from: {
1254
1250
  properties: {
1255
1251
  email_address: {
1256
1252
  format: string;
@@ -1273,7 +1269,11 @@ declare const _default: {
1273
1269
  type: string;
1274
1270
  required?: never;
1275
1271
  };
1276
- modified_to: {
1272
+ mutation_code: {
1273
+ enum: string[];
1274
+ type: string;
1275
+ };
1276
+ to: {
1277
1277
  properties: {
1278
1278
  email_address: {
1279
1279
  format: string;
@@ -1305,11 +1305,7 @@ declare const _default: {
1305
1305
  format: string;
1306
1306
  type: string;
1307
1307
  };
1308
- modification_code: {
1309
- enum: string[];
1310
- type: string;
1311
- };
1312
- modified_from: {
1308
+ from: {
1313
1309
  properties: {
1314
1310
  ends_at: {
1315
1311
  description: string;
@@ -1331,7 +1327,11 @@ declare const _default: {
1331
1327
  required: string[];
1332
1328
  type: string;
1333
1329
  };
1334
- modified_to: {
1330
+ mutation_code: {
1331
+ enum: string[];
1332
+ type: string;
1333
+ };
1334
+ to: {
1335
1335
  properties: {
1336
1336
  ends_at: {
1337
1337
  description: string;
@@ -1362,11 +1362,7 @@ declare const _default: {
1362
1362
  format: string;
1363
1363
  type: string;
1364
1364
  };
1365
- modification_code: {
1366
- enum: string[];
1367
- type: string;
1368
- };
1369
- modified_from: {
1365
+ from: {
1370
1366
  properties: {
1371
1367
  is_suspended: {
1372
1368
  type: string;
@@ -1381,7 +1377,11 @@ declare const _default: {
1381
1377
  required: string[];
1382
1378
  type: string;
1383
1379
  };
1384
- modified_to: {
1380
+ mutation_code: {
1381
+ enum: string[];
1382
+ type: string;
1383
+ };
1384
+ to: {
1385
1385
  properties: {
1386
1386
  is_suspended: {
1387
1387
  type: string;
@@ -1405,11 +1405,7 @@ declare const _default: {
1405
1405
  format: string;
1406
1406
  type: string;
1407
1407
  };
1408
- modification_code: {
1409
- enum: string[];
1410
- type: string;
1411
- };
1412
- modified_from: {
1408
+ from: {
1413
1409
  properties: {
1414
1410
  acs_access_group_id: {
1415
1411
  format: string;
@@ -1426,7 +1422,11 @@ declare const _default: {
1426
1422
  required: string[];
1427
1423
  type: string;
1428
1424
  };
1429
- modified_to: {
1425
+ mutation_code: {
1426
+ enum: string[];
1427
+ type: string;
1428
+ };
1429
+ to: {
1430
1430
  properties: {
1431
1431
  acs_access_group_id: {
1432
1432
  format: string;
@@ -8507,7 +8507,7 @@ declare const _default: {
8507
8507
  type: string;
8508
8508
  'x-undocumented': string;
8509
8509
  };
8510
- pending_modifications: {
8510
+ pending_mutations: {
8511
8511
  items: {
8512
8512
  discriminator: {
8513
8513
  propertyName: string;
@@ -8518,12 +8518,12 @@ declare const _default: {
8518
8518
  format: string;
8519
8519
  type: string;
8520
8520
  };
8521
- modification_code: {
8521
+ mutation_code: {
8522
8522
  enum: string[];
8523
8523
  type: string;
8524
8524
  };
8525
- modified_from?: never;
8526
- modified_to?: never;
8525
+ from?: never;
8526
+ to?: never;
8527
8527
  };
8528
8528
  required: string[];
8529
8529
  type: string;
@@ -8533,11 +8533,7 @@ declare const _default: {
8533
8533
  format: string;
8534
8534
  type: string;
8535
8535
  };
8536
- modification_code: {
8537
- enum: string[];
8538
- type: string;
8539
- };
8540
- modified_from: {
8536
+ from: {
8541
8537
  properties: {
8542
8538
  email_address: {
8543
8539
  format: string;
@@ -8560,7 +8556,11 @@ declare const _default: {
8560
8556
  type: string;
8561
8557
  required?: never;
8562
8558
  };
8563
- modified_to: {
8559
+ mutation_code: {
8560
+ enum: string[];
8561
+ type: string;
8562
+ };
8563
+ to: {
8564
8564
  properties: {
8565
8565
  email_address: {
8566
8566
  format: string;
@@ -8592,11 +8592,7 @@ declare const _default: {
8592
8592
  format: string;
8593
8593
  type: string;
8594
8594
  };
8595
- modification_code: {
8596
- enum: string[];
8597
- type: string;
8598
- };
8599
- modified_from: {
8595
+ from: {
8600
8596
  properties: {
8601
8597
  ends_at: {
8602
8598
  description: string;
@@ -8618,7 +8614,11 @@ declare const _default: {
8618
8614
  required: string[];
8619
8615
  type: string;
8620
8616
  };
8621
- modified_to: {
8617
+ mutation_code: {
8618
+ enum: string[];
8619
+ type: string;
8620
+ };
8621
+ to: {
8622
8622
  properties: {
8623
8623
  ends_at: {
8624
8624
  description: string;
@@ -8649,11 +8649,7 @@ declare const _default: {
8649
8649
  format: string;
8650
8650
  type: string;
8651
8651
  };
8652
- modification_code: {
8653
- enum: string[];
8654
- type: string;
8655
- };
8656
- modified_from: {
8652
+ from: {
8657
8653
  properties: {
8658
8654
  is_suspended: {
8659
8655
  type: string;
@@ -8668,7 +8664,11 @@ declare const _default: {
8668
8664
  required: string[];
8669
8665
  type: string;
8670
8666
  };
8671
- modified_to: {
8667
+ mutation_code: {
8668
+ enum: string[];
8669
+ type: string;
8670
+ };
8671
+ to: {
8672
8672
  properties: {
8673
8673
  is_suspended: {
8674
8674
  type: string;
@@ -8692,11 +8692,7 @@ declare const _default: {
8692
8692
  format: string;
8693
8693
  type: string;
8694
8694
  };
8695
- modification_code: {
8696
- enum: string[];
8697
- type: string;
8698
- };
8699
- modified_from: {
8695
+ from: {
8700
8696
  properties: {
8701
8697
  acs_access_group_id: {
8702
8698
  format: string;
@@ -8713,7 +8709,11 @@ declare const _default: {
8713
8709
  required: string[];
8714
8710
  type: string;
8715
8711
  };
8716
- modified_to: {
8712
+ mutation_code: {
8713
+ enum: string[];
8714
+ type: string;
8715
+ };
8716
+ to: {
8717
8717
  properties: {
8718
8718
  acs_access_group_id: {
8719
8719
  format: string;