@seamapi/types 1.598.0 → 1.600.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 +243 -76
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +377 -107
- package/dist/index.cjs +243 -76
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/customer-portal.d.ts +26 -92
- package/lib/seam/connect/models/customer/customer-portal.js +15 -16
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +296 -83
- package/lib/seam/connect/openapi.js +243 -76
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +81 -24
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/customer-portal.ts +19 -18
- package/src/lib/seam/connect/openapi.ts +249 -85
- package/src/lib/seam/connect/route-types.ts +85 -24
|
@@ -15,40 +15,23 @@ export declare const portal_configuration_base: z.ZodObject<{
|
|
|
15
15
|
exclude?: boolean | undefined;
|
|
16
16
|
excluded_providers?: string[] | undefined;
|
|
17
17
|
}>>;
|
|
18
|
-
|
|
18
|
+
manage: z.ZodDefault<z.ZodObject<{
|
|
19
19
|
exclude: z.ZodDefault<z.ZodBoolean>;
|
|
20
20
|
} & {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
exclude: boolean;
|
|
25
|
-
}, {
|
|
26
|
-
exclude?: boolean | undefined;
|
|
27
|
-
}>>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
reservations: {
|
|
30
|
-
exclude: boolean;
|
|
31
|
-
};
|
|
21
|
+
exclude_reservation_management: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
23
|
exclude: boolean;
|
|
24
|
+
exclude_reservation_management: boolean;
|
|
33
25
|
}, {
|
|
34
|
-
reservations?: {
|
|
35
|
-
exclude?: boolean | undefined;
|
|
36
|
-
} | undefined;
|
|
37
26
|
exclude?: boolean | undefined;
|
|
27
|
+
exclude_reservation_management?: boolean | undefined;
|
|
38
28
|
}>>;
|
|
39
29
|
manage_devices: z.ZodDefault<z.ZodObject<{
|
|
40
30
|
exclude: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
-
} & {
|
|
42
|
-
accepted_providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
-
excluded_providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
44
31
|
}, "strip", z.ZodTypeAny, {
|
|
45
32
|
exclude: boolean;
|
|
46
|
-
accepted_providers?: string[] | undefined;
|
|
47
|
-
excluded_providers?: string[] | undefined;
|
|
48
33
|
}, {
|
|
49
|
-
accepted_providers?: string[] | undefined;
|
|
50
34
|
exclude?: boolean | undefined;
|
|
51
|
-
excluded_providers?: string[] | undefined;
|
|
52
35
|
}>>;
|
|
53
36
|
organize: z.ZodDefault<z.ZodObject<{
|
|
54
37
|
exclude: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -77,16 +60,12 @@ export declare const portal_configuration_base: z.ZodObject<{
|
|
|
77
60
|
accepted_providers?: string[] | undefined;
|
|
78
61
|
excluded_providers?: string[] | undefined;
|
|
79
62
|
};
|
|
80
|
-
|
|
81
|
-
reservations: {
|
|
82
|
-
exclude: boolean;
|
|
83
|
-
};
|
|
63
|
+
manage: {
|
|
84
64
|
exclude: boolean;
|
|
65
|
+
exclude_reservation_management: boolean;
|
|
85
66
|
};
|
|
86
67
|
manage_devices: {
|
|
87
68
|
exclude: boolean;
|
|
88
|
-
accepted_providers?: string[] | undefined;
|
|
89
|
-
excluded_providers?: string[] | undefined;
|
|
90
69
|
};
|
|
91
70
|
organize: {
|
|
92
71
|
exclude: boolean;
|
|
@@ -102,16 +81,12 @@ export declare const portal_configuration_base: z.ZodObject<{
|
|
|
102
81
|
exclude?: boolean | undefined;
|
|
103
82
|
excluded_providers?: string[] | undefined;
|
|
104
83
|
} | undefined;
|
|
105
|
-
|
|
106
|
-
reservations?: {
|
|
107
|
-
exclude?: boolean | undefined;
|
|
108
|
-
} | undefined;
|
|
84
|
+
manage?: {
|
|
109
85
|
exclude?: boolean | undefined;
|
|
86
|
+
exclude_reservation_management?: boolean | undefined;
|
|
110
87
|
} | undefined;
|
|
111
88
|
manage_devices?: {
|
|
112
|
-
accepted_providers?: string[] | undefined;
|
|
113
89
|
exclude?: boolean | undefined;
|
|
114
|
-
excluded_providers?: string[] | undefined;
|
|
115
90
|
} | undefined;
|
|
116
91
|
organize?: {
|
|
117
92
|
exclude?: boolean | undefined;
|
|
@@ -267,16 +242,12 @@ export declare const portal_configuration_base: z.ZodObject<{
|
|
|
267
242
|
accepted_providers?: string[] | undefined;
|
|
268
243
|
excluded_providers?: string[] | undefined;
|
|
269
244
|
};
|
|
270
|
-
|
|
271
|
-
reservations: {
|
|
272
|
-
exclude: boolean;
|
|
273
|
-
};
|
|
245
|
+
manage: {
|
|
274
246
|
exclude: boolean;
|
|
247
|
+
exclude_reservation_management: boolean;
|
|
275
248
|
};
|
|
276
249
|
manage_devices: {
|
|
277
250
|
exclude: boolean;
|
|
278
|
-
accepted_providers?: string[] | undefined;
|
|
279
|
-
excluded_providers?: string[] | undefined;
|
|
280
251
|
};
|
|
281
252
|
organize: {
|
|
282
253
|
exclude: boolean;
|
|
@@ -324,16 +295,12 @@ export declare const portal_configuration_base: z.ZodObject<{
|
|
|
324
295
|
exclude?: boolean | undefined;
|
|
325
296
|
excluded_providers?: string[] | undefined;
|
|
326
297
|
} | undefined;
|
|
327
|
-
|
|
328
|
-
reservations?: {
|
|
329
|
-
exclude?: boolean | undefined;
|
|
330
|
-
} | undefined;
|
|
298
|
+
manage?: {
|
|
331
299
|
exclude?: boolean | undefined;
|
|
300
|
+
exclude_reservation_management?: boolean | undefined;
|
|
332
301
|
} | undefined;
|
|
333
302
|
manage_devices?: {
|
|
334
|
-
accepted_providers?: string[] | undefined;
|
|
335
303
|
exclude?: boolean | undefined;
|
|
336
|
-
excluded_providers?: string[] | undefined;
|
|
337
304
|
} | undefined;
|
|
338
305
|
organize?: {
|
|
339
306
|
exclude?: boolean | undefined;
|
|
@@ -391,40 +358,23 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
391
358
|
exclude?: boolean | undefined;
|
|
392
359
|
excluded_providers?: string[] | undefined;
|
|
393
360
|
}>>;
|
|
394
|
-
|
|
361
|
+
manage: z.ZodDefault<z.ZodObject<{
|
|
395
362
|
exclude: z.ZodDefault<z.ZodBoolean>;
|
|
396
363
|
} & {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}, "strip", z.ZodTypeAny, {
|
|
400
|
-
exclude: boolean;
|
|
401
|
-
}, {
|
|
402
|
-
exclude?: boolean | undefined;
|
|
403
|
-
}>>;
|
|
404
|
-
}, "strip", z.ZodTypeAny, {
|
|
405
|
-
reservations: {
|
|
406
|
-
exclude: boolean;
|
|
407
|
-
};
|
|
364
|
+
exclude_reservation_management: z.ZodDefault<z.ZodBoolean>;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
408
366
|
exclude: boolean;
|
|
367
|
+
exclude_reservation_management: boolean;
|
|
409
368
|
}, {
|
|
410
|
-
reservations?: {
|
|
411
|
-
exclude?: boolean | undefined;
|
|
412
|
-
} | undefined;
|
|
413
369
|
exclude?: boolean | undefined;
|
|
370
|
+
exclude_reservation_management?: boolean | undefined;
|
|
414
371
|
}>>;
|
|
415
372
|
manage_devices: z.ZodDefault<z.ZodObject<{
|
|
416
373
|
exclude: z.ZodDefault<z.ZodBoolean>;
|
|
417
|
-
} & {
|
|
418
|
-
accepted_providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
419
|
-
excluded_providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
420
374
|
}, "strip", z.ZodTypeAny, {
|
|
421
375
|
exclude: boolean;
|
|
422
|
-
accepted_providers?: string[] | undefined;
|
|
423
|
-
excluded_providers?: string[] | undefined;
|
|
424
376
|
}, {
|
|
425
|
-
accepted_providers?: string[] | undefined;
|
|
426
377
|
exclude?: boolean | undefined;
|
|
427
|
-
excluded_providers?: string[] | undefined;
|
|
428
378
|
}>>;
|
|
429
379
|
organize: z.ZodDefault<z.ZodObject<{
|
|
430
380
|
exclude: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -453,16 +403,12 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
453
403
|
accepted_providers?: string[] | undefined;
|
|
454
404
|
excluded_providers?: string[] | undefined;
|
|
455
405
|
};
|
|
456
|
-
|
|
457
|
-
reservations: {
|
|
458
|
-
exclude: boolean;
|
|
459
|
-
};
|
|
406
|
+
manage: {
|
|
460
407
|
exclude: boolean;
|
|
408
|
+
exclude_reservation_management: boolean;
|
|
461
409
|
};
|
|
462
410
|
manage_devices: {
|
|
463
411
|
exclude: boolean;
|
|
464
|
-
accepted_providers?: string[] | undefined;
|
|
465
|
-
excluded_providers?: string[] | undefined;
|
|
466
412
|
};
|
|
467
413
|
organize: {
|
|
468
414
|
exclude: boolean;
|
|
@@ -478,16 +424,12 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
478
424
|
exclude?: boolean | undefined;
|
|
479
425
|
excluded_providers?: string[] | undefined;
|
|
480
426
|
} | undefined;
|
|
481
|
-
|
|
482
|
-
reservations?: {
|
|
483
|
-
exclude?: boolean | undefined;
|
|
484
|
-
} | undefined;
|
|
427
|
+
manage?: {
|
|
485
428
|
exclude?: boolean | undefined;
|
|
429
|
+
exclude_reservation_management?: boolean | undefined;
|
|
486
430
|
} | undefined;
|
|
487
431
|
manage_devices?: {
|
|
488
|
-
accepted_providers?: string[] | undefined;
|
|
489
432
|
exclude?: boolean | undefined;
|
|
490
|
-
excluded_providers?: string[] | undefined;
|
|
491
433
|
} | undefined;
|
|
492
434
|
organize?: {
|
|
493
435
|
exclude?: boolean | undefined;
|
|
@@ -643,16 +585,12 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
643
585
|
accepted_providers?: string[] | undefined;
|
|
644
586
|
excluded_providers?: string[] | undefined;
|
|
645
587
|
};
|
|
646
|
-
|
|
647
|
-
reservations: {
|
|
648
|
-
exclude: boolean;
|
|
649
|
-
};
|
|
588
|
+
manage: {
|
|
650
589
|
exclude: boolean;
|
|
590
|
+
exclude_reservation_management: boolean;
|
|
651
591
|
};
|
|
652
592
|
manage_devices: {
|
|
653
593
|
exclude: boolean;
|
|
654
|
-
accepted_providers?: string[] | undefined;
|
|
655
|
-
excluded_providers?: string[] | undefined;
|
|
656
594
|
};
|
|
657
595
|
organize: {
|
|
658
596
|
exclude: boolean;
|
|
@@ -700,16 +638,12 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
700
638
|
exclude?: boolean | undefined;
|
|
701
639
|
excluded_providers?: string[] | undefined;
|
|
702
640
|
} | undefined;
|
|
703
|
-
|
|
704
|
-
reservations?: {
|
|
705
|
-
exclude?: boolean | undefined;
|
|
706
|
-
} | undefined;
|
|
641
|
+
manage?: {
|
|
707
642
|
exclude?: boolean | undefined;
|
|
643
|
+
exclude_reservation_management?: boolean | undefined;
|
|
708
644
|
} | undefined;
|
|
709
645
|
manage_devices?: {
|
|
710
|
-
accepted_providers?: string[] | undefined;
|
|
711
646
|
exclude?: boolean | undefined;
|
|
712
|
-
excluded_providers?: string[] | undefined;
|
|
713
647
|
} | undefined;
|
|
714
648
|
organize?: {
|
|
715
649
|
exclude?: boolean | undefined;
|
|
@@ -17,16 +17,12 @@ const base_connect_feature = base_feature.extend({
|
|
|
17
17
|
.optional()
|
|
18
18
|
.describe('List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.'),
|
|
19
19
|
});
|
|
20
|
-
const base_manage_devices_feature = base_feature
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
.describe('Indicates whether the customer can view reservations for their properties.'),
|
|
27
|
-
})
|
|
28
|
-
.default({ exclude: false })
|
|
29
|
-
.describe('Configuration for the reservations feature.'),
|
|
20
|
+
const base_manage_devices_feature = base_feature;
|
|
21
|
+
const base_manage_feature = base_feature.extend({
|
|
22
|
+
exclude_reservation_management: z
|
|
23
|
+
.boolean()
|
|
24
|
+
.default(false)
|
|
25
|
+
.describe('Indicates whether the customer can manage reservations for their properties.'),
|
|
30
26
|
});
|
|
31
27
|
const base_organize_feature = base_feature;
|
|
32
28
|
const base_configure_feature = base_feature.extend({
|
|
@@ -43,12 +39,15 @@ const base_features = z.object({
|
|
|
43
39
|
connect: base_connect_feature
|
|
44
40
|
.default({})
|
|
45
41
|
.describe('Configuration for the connect accounts feature.'),
|
|
46
|
-
|
|
47
|
-
.default({})
|
|
48
|
-
.describe('Configuration for the manage reservations feature.'),
|
|
49
|
-
manage_devices: base_connect_feature
|
|
42
|
+
manage: base_manage_feature
|
|
50
43
|
.default({})
|
|
51
|
-
.describe('Configuration for the manage
|
|
44
|
+
.describe('Configuration for the manage feature.'),
|
|
45
|
+
manage_devices: base_manage_devices_feature.default({}).describe(`
|
|
46
|
+
Configuration for the manage devices feature.
|
|
47
|
+
---
|
|
48
|
+
deprecated: Use \`manage\` instead.
|
|
49
|
+
---
|
|
50
|
+
`),
|
|
52
51
|
organize: base_organize_feature
|
|
53
52
|
.default({})
|
|
54
53
|
.describe('Configuration for the organize feature.'),
|
|
@@ -76,7 +75,7 @@ export const portal_configuration = portal_configuration_base
|
|
|
76
75
|
features: {
|
|
77
76
|
connect: { exclude: false },
|
|
78
77
|
organize: { exclude: false },
|
|
79
|
-
|
|
78
|
+
manage: { exclude: false, exclude_reservation_management: false },
|
|
80
79
|
manage_devices: {
|
|
81
80
|
exclude: false,
|
|
82
81
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-portal.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/customer-portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC/C,kBAAkB,EAAE,CAAC;SAClB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,sIAAsI,CACvI;IACH,kBAAkB,EAAE,CAAC;SAClB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,6IAA6I,CAC9I;CACJ,CAAC,CAAA;AACF,MAAM,2BAA2B,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"customer-portal.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/customer-portal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAE9D,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC/C,kBAAkB,EAAE,CAAC;SAClB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACj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