@seamapi/types 1.564.0 → 1.566.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 +377 -163
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +675 -405
- package/dist/index.cjs +377 -163
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/customer-portal.d.ts +52 -2
- package/lib/seam/connect/models/customer/customer-portal.js +10 -2
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +644 -401
- package/lib/seam/connect/openapi.js +375 -161
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +31 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/customer-portal.ts +12 -2
- package/src/lib/seam/connect/openapi.ts +376 -161
- package/src/lib/seam/connect/route-types.ts +95 -54
|
@@ -3,10 +3,14 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
3
3
|
features: z.ZodDefault<z.ZodObject<{
|
|
4
4
|
connect: z.ZodDefault<z.ZodObject<{
|
|
5
5
|
exclude: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
} & {
|
|
7
|
+
excluded_providers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6
8
|
}, "strip", z.ZodTypeAny, {
|
|
7
9
|
exclude: boolean;
|
|
10
|
+
excluded_providers?: string[] | undefined;
|
|
8
11
|
}, {
|
|
9
12
|
exclude?: boolean | undefined;
|
|
13
|
+
excluded_providers?: string[] | undefined;
|
|
10
14
|
}>>;
|
|
11
15
|
manage_devices: z.ZodDefault<z.ZodObject<{
|
|
12
16
|
exclude: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -39,6 +43,7 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
39
43
|
}, "strip", z.ZodTypeAny, {
|
|
40
44
|
connect: {
|
|
41
45
|
exclude: boolean;
|
|
46
|
+
excluded_providers?: string[] | undefined;
|
|
42
47
|
};
|
|
43
48
|
manage_devices: {
|
|
44
49
|
exclude: boolean;
|
|
@@ -54,6 +59,7 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
54
59
|
}, {
|
|
55
60
|
connect?: {
|
|
56
61
|
exclude?: boolean | undefined;
|
|
62
|
+
excluded_providers?: string[] | undefined;
|
|
57
63
|
} | undefined;
|
|
58
64
|
manage_devices?: {
|
|
59
65
|
exclude?: boolean | undefined;
|
|
@@ -69,7 +75,7 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
69
75
|
}>>;
|
|
70
76
|
is_embedded: z.ZodDefault<z.ZodBoolean>;
|
|
71
77
|
landing_page: z.ZodOptional<z.ZodObject<{
|
|
72
|
-
manage: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
78
|
+
manage: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
73
79
|
space_key: z.ZodString;
|
|
74
80
|
}, "strip", z.ZodTypeAny, {
|
|
75
81
|
space_key: string;
|
|
@@ -123,9 +129,33 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
123
129
|
property_listing_key: string;
|
|
124
130
|
}, {
|
|
125
131
|
property_listing_key: string;
|
|
126
|
-
}>]
|
|
132
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
133
|
+
reservation_key: z.ZodString;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
reservation_key: string;
|
|
136
|
+
}, {
|
|
137
|
+
reservation_key: string;
|
|
138
|
+
}>, z.ZodObject<{
|
|
139
|
+
booking_key: z.ZodString;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
booking_key: string;
|
|
142
|
+
}, {
|
|
143
|
+
booking_key: string;
|
|
144
|
+
}>, z.ZodObject<{
|
|
145
|
+
access_grant_key: z.ZodString;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
access_grant_key: string;
|
|
148
|
+
}, {
|
|
149
|
+
access_grant_key: string;
|
|
150
|
+
}>]>]>>;
|
|
127
151
|
}, "strip", z.ZodTypeAny, {
|
|
128
152
|
manage?: {
|
|
153
|
+
reservation_key: string;
|
|
154
|
+
} | {
|
|
155
|
+
booking_key: string;
|
|
156
|
+
} | {
|
|
157
|
+
access_grant_key: string;
|
|
158
|
+
} | {
|
|
129
159
|
space_key: string;
|
|
130
160
|
} | {
|
|
131
161
|
property_key: string;
|
|
@@ -146,6 +176,12 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
146
176
|
} | undefined;
|
|
147
177
|
}, {
|
|
148
178
|
manage?: {
|
|
179
|
+
reservation_key: string;
|
|
180
|
+
} | {
|
|
181
|
+
booking_key: string;
|
|
182
|
+
} | {
|
|
183
|
+
access_grant_key: string;
|
|
184
|
+
} | {
|
|
149
185
|
space_key: string;
|
|
150
186
|
} | {
|
|
151
187
|
property_key: string;
|
|
@@ -169,6 +205,7 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
169
205
|
features: {
|
|
170
206
|
connect: {
|
|
171
207
|
exclude: boolean;
|
|
208
|
+
excluded_providers?: string[] | undefined;
|
|
172
209
|
};
|
|
173
210
|
manage_devices: {
|
|
174
211
|
exclude: boolean;
|
|
@@ -185,6 +222,12 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
185
222
|
is_embedded: boolean;
|
|
186
223
|
landing_page?: {
|
|
187
224
|
manage?: {
|
|
225
|
+
reservation_key: string;
|
|
226
|
+
} | {
|
|
227
|
+
booking_key: string;
|
|
228
|
+
} | {
|
|
229
|
+
access_grant_key: string;
|
|
230
|
+
} | {
|
|
188
231
|
space_key: string;
|
|
189
232
|
} | {
|
|
190
233
|
property_key: string;
|
|
@@ -208,6 +251,7 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
208
251
|
features?: {
|
|
209
252
|
connect?: {
|
|
210
253
|
exclude?: boolean | undefined;
|
|
254
|
+
excluded_providers?: string[] | undefined;
|
|
211
255
|
} | undefined;
|
|
212
256
|
manage_devices?: {
|
|
213
257
|
exclude?: boolean | undefined;
|
|
@@ -224,6 +268,12 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
224
268
|
is_embedded?: boolean | undefined;
|
|
225
269
|
landing_page?: {
|
|
226
270
|
manage?: {
|
|
271
|
+
reservation_key: string;
|
|
272
|
+
} | {
|
|
273
|
+
booking_key: string;
|
|
274
|
+
} | {
|
|
275
|
+
access_grant_key: string;
|
|
276
|
+
} | {
|
|
227
277
|
space_key: string;
|
|
228
278
|
} | {
|
|
229
279
|
property_key: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { access_grant_key_aliases } from './access-grant-resources.js';
|
|
2
3
|
import { location_key_aliases } from './location-resources.js';
|
|
3
4
|
const base_feature = z.object({
|
|
4
5
|
exclude: z
|
|
@@ -6,7 +7,12 @@ const base_feature = z.object({
|
|
|
6
7
|
.default(false)
|
|
7
8
|
.describe('Whether to exclude this feature from the portal.'),
|
|
8
9
|
});
|
|
9
|
-
const base_connect_feature = base_feature
|
|
10
|
+
const base_connect_feature = base_feature.extend({
|
|
11
|
+
excluded_providers: z
|
|
12
|
+
.array(z.string())
|
|
13
|
+
.optional()
|
|
14
|
+
.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.'),
|
|
15
|
+
});
|
|
10
16
|
const base_manage_devices_feature = base_feature;
|
|
11
17
|
const base_organize_feature = base_feature;
|
|
12
18
|
const base_configure_feature = base_feature.extend({
|
|
@@ -42,7 +48,9 @@ export const portal_configuration = z
|
|
|
42
48
|
.describe('Whether the portal is embedded in another application.'),
|
|
43
49
|
landing_page: z
|
|
44
50
|
.object({
|
|
45
|
-
manage:
|
|
51
|
+
manage: z
|
|
52
|
+
.union([location_key_aliases, access_grant_key_aliases])
|
|
53
|
+
.optional(),
|
|
46
54
|
})
|
|
47
55
|
.optional()
|
|
48
56
|
.describe('Configuration for the landing page when the portal loads.'),
|
|
@@ -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,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,CAAA;
|
|
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,6IAA6I,CAC9I;CACJ,CAAC,CAAA;AACF,MAAM,2BAA2B,GAAG,YAAY,CAAA;AAChD,MAAM,qBAAqB,GAAG,YAAY,CAAA;AAE1C,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