hububb-saas-shared 1.1.76 → 1.1.78
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const accessTypeSchema: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"SELF_ACCESS">, import("zod").ZodLiteral<"MEET_AND_GREET">]>, import("zod").ZodLiteral<"RECEPTION_CONCIERGE">]>, import("zod").ZodLiteral<"KEY_PICKUP_OTHER_LOCATION">]>, import("zod").ZodLiteral<"ACCESS_AFTER_BOOKING">]>;
|
|
1
2
|
export declare const propertyMetadataSchema: import("zod").ZodObject<{
|
|
2
3
|
id: import("zod").ZodNumber;
|
|
3
4
|
propertyId: import("zod").ZodNumber;
|
|
@@ -15,6 +16,7 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
|
|
|
15
16
|
communalCleanSchedule: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
16
17
|
parkingSpace: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
17
18
|
accessArrangements: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
19
|
+
accessType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"SELF_ACCESS">, import("zod").ZodLiteral<"MEET_AND_GREET">]>, import("zod").ZodLiteral<"RECEPTION_CONCIERGE">]>, import("zod").ZodLiteral<"KEY_PICKUP_OTHER_LOCATION">]>, import("zod").ZodLiteral<"ACCESS_AFTER_BOOKING">]>>>;
|
|
18
20
|
createdAt: import("zod").ZodDate;
|
|
19
21
|
updatedAt: import("zod").ZodDate;
|
|
20
22
|
stCancellationPolicy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"FLEXIBLE">, import("zod").ZodLiteral<"MODERATE">]>, import("zod").ZodLiteral<"STRICT">]>, import("zod").ZodLiteral<"BETTER_STRICT_WITH_GRACE_PERIOD">]>, import("zod").ZodLiteral<"STRICT_14_WITH_GRACE_PERIOD">]>, import("zod").ZodLiteral<"SUPER_STRICT_30">]>, import("zod").ZodLiteral<"SUPER_STRICT_60">]>, import("zod").ZodLiteral<"FIRM_14">]>>;
|
|
@@ -40,6 +42,7 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
|
|
|
40
42
|
accessArrangements?: string | null | undefined;
|
|
41
43
|
stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
42
44
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
45
|
+
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
|
|
43
46
|
}, {
|
|
44
47
|
id: number;
|
|
45
48
|
createdAt: Date;
|
|
@@ -61,4 +64,5 @@ export declare const propertyMetadataSchema: import("zod").ZodObject<{
|
|
|
61
64
|
accessArrangements?: string | null | undefined;
|
|
62
65
|
stCancellationPolicy?: "FLEXIBLE" | "MODERATE" | "STRICT" | "BETTER_STRICT_WITH_GRACE_PERIOD" | "STRICT_14_WITH_GRACE_PERIOD" | "SUPER_STRICT_30" | "SUPER_STRICT_60" | "FIRM_14" | undefined;
|
|
63
66
|
ltCancellationPolicy?: "CANCEL_LONG_TERM_FAIR" | "CANCEL_LONG_TERM_WITH_GRACE_PERIOD" | undefined;
|
|
67
|
+
accessType?: "SELF_ACCESS" | "MEET_AND_GREET" | "RECEPTION_CONCIERGE" | "KEY_PICKUP_OTHER_LOCATION" | "ACCESS_AFTER_BOOKING" | null | undefined;
|
|
64
68
|
}>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.propertyMetadataSchema = void 0;
|
|
3
|
+
exports.propertyMetadataSchema = exports.accessTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.accessTypeSchema = (0, zod_1.literal)("SELF_ACCESS")
|
|
6
|
+
.or((0, zod_1.literal)("MEET_AND_GREET"))
|
|
7
|
+
.or((0, zod_1.literal)("RECEPTION_CONCIERGE"))
|
|
8
|
+
.or((0, zod_1.literal)("KEY_PICKUP_OTHER_LOCATION"))
|
|
9
|
+
.or((0, zod_1.literal)("ACCESS_AFTER_BOOKING"));
|
|
5
10
|
exports.propertyMetadataSchema = (0, zod_1.object)({
|
|
6
11
|
id: (0, zod_1.number)().int(),
|
|
7
12
|
propertyId: (0, zod_1.number)().int(),
|
|
@@ -19,6 +24,7 @@ exports.propertyMetadataSchema = (0, zod_1.object)({
|
|
|
19
24
|
communalCleanSchedule: (0, zod_1.string)().nullish(),
|
|
20
25
|
parkingSpace: (0, zod_1.string)().nullish(),
|
|
21
26
|
accessArrangements: (0, zod_1.string)().nullish(),
|
|
27
|
+
accessType: exports.accessTypeSchema.nullish(),
|
|
22
28
|
createdAt: (0, zod_1.date)(),
|
|
23
29
|
updatedAt: (0, zod_1.date)(),
|
|
24
30
|
stCancellationPolicy: (0, zod_1.literal)("FLEXIBLE")
|
|
@@ -25,6 +25,7 @@ export declare const seamAccountSchema: z.ZodObject<{
|
|
|
25
25
|
accountType: z.ZodString;
|
|
26
26
|
accountTypeDisplayName: z.ZodString;
|
|
27
27
|
accountName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
29
|
isActive: z.ZodBoolean;
|
|
29
30
|
customMetadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
|
|
30
31
|
lastSyncedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -38,6 +39,7 @@ export declare const seamAccountSchema: z.ZodObject<{
|
|
|
38
39
|
isActive: boolean;
|
|
39
40
|
accountType: string;
|
|
40
41
|
accountTypeDisplayName: string;
|
|
42
|
+
imageUrl?: string | null | undefined;
|
|
41
43
|
accountName?: string | null | undefined;
|
|
42
44
|
workspaceId?: string | null | undefined;
|
|
43
45
|
customMetadata?: {} | null | undefined;
|
|
@@ -50,6 +52,7 @@ export declare const seamAccountSchema: z.ZodObject<{
|
|
|
50
52
|
isActive: boolean;
|
|
51
53
|
accountType: string;
|
|
52
54
|
accountTypeDisplayName: string;
|
|
55
|
+
imageUrl?: string | null | undefined;
|
|
53
56
|
accountName?: string | null | undefined;
|
|
54
57
|
workspaceId?: string | null | undefined;
|
|
55
58
|
customMetadata?: {} | null | undefined;
|
|
@@ -198,40 +201,43 @@ export declare const seamAccessCodeSchema: z.ZodObject<{
|
|
|
198
201
|
}>;
|
|
199
202
|
export declare const seamEventSchema: z.ZodObject<{
|
|
200
203
|
id: z.ZodString;
|
|
201
|
-
seamEventId: z.ZodString;
|
|
202
204
|
eventType: z.ZodString;
|
|
203
205
|
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
+
connectedAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
|
+
connectWebviewId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
208
|
accessCodeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
209
|
reservationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
206
210
|
taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
207
211
|
occurredAt: z.ZodDate;
|
|
208
|
-
rawData: z.ZodOptional<z.ZodNullable<z.
|
|
212
|
+
rawData: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
209
213
|
processed: z.ZodBoolean;
|
|
210
214
|
createdAt: z.ZodDate;
|
|
211
215
|
}, "strip", z.ZodTypeAny, {
|
|
212
216
|
id: string;
|
|
213
217
|
createdAt: Date;
|
|
214
218
|
eventType: string;
|
|
215
|
-
seamEventId: string;
|
|
216
219
|
occurredAt: Date;
|
|
217
220
|
processed: boolean;
|
|
218
221
|
reservationId?: number | null | undefined;
|
|
219
222
|
taskId?: number | null | undefined;
|
|
220
223
|
deviceId?: string | null | undefined;
|
|
224
|
+
connectedAccountId?: string | null | undefined;
|
|
225
|
+
connectWebviewId?: string | null | undefined;
|
|
221
226
|
accessCodeId?: string | null | undefined;
|
|
222
|
-
rawData?:
|
|
227
|
+
rawData?: unknown;
|
|
223
228
|
}, {
|
|
224
229
|
id: string;
|
|
225
230
|
createdAt: Date;
|
|
226
231
|
eventType: string;
|
|
227
|
-
seamEventId: string;
|
|
228
232
|
occurredAt: Date;
|
|
229
233
|
processed: boolean;
|
|
230
234
|
reservationId?: number | null | undefined;
|
|
231
235
|
taskId?: number | null | undefined;
|
|
232
236
|
deviceId?: string | null | undefined;
|
|
237
|
+
connectedAccountId?: string | null | undefined;
|
|
238
|
+
connectWebviewId?: string | null | undefined;
|
|
233
239
|
accessCodeId?: string | null | undefined;
|
|
234
|
-
rawData?:
|
|
240
|
+
rawData?: unknown;
|
|
235
241
|
}>;
|
|
236
242
|
export declare const seamConnectWebViewSchema: z.ZodObject<{
|
|
237
243
|
id: z.ZodString;
|
|
@@ -239,7 +245,7 @@ export declare const seamConnectWebViewSchema: z.ZodObject<{
|
|
|
239
245
|
url: z.ZodString;
|
|
240
246
|
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
247
|
deviceSelectionMode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
-
acceptedProviders: z.
|
|
248
|
+
acceptedProviders: z.ZodArray<z.ZodString, "many">;
|
|
243
249
|
acceptedCapabilities: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
244
250
|
selectedProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
251
|
anyProviderAllowed: z.ZodBoolean;
|
|
@@ -263,6 +269,7 @@ export declare const seamConnectWebViewSchema: z.ZodObject<{
|
|
|
263
269
|
createdAt: Date;
|
|
264
270
|
updatedAt: Date;
|
|
265
271
|
userId: string;
|
|
272
|
+
acceptedProviders: string[];
|
|
266
273
|
anyProviderAllowed: boolean;
|
|
267
274
|
loginSuccessful: boolean;
|
|
268
275
|
automaticallyManageNewDevices: boolean;
|
|
@@ -270,15 +277,14 @@ export declare const seamConnectWebViewSchema: z.ZodObject<{
|
|
|
270
277
|
anyDeviceAllowed: boolean;
|
|
271
278
|
workspaceId?: string | null | undefined;
|
|
272
279
|
customMetadata?: {} | null | undefined;
|
|
280
|
+
connectedAccountId?: string | null | undefined;
|
|
273
281
|
deviceSelectionMode?: string | null | undefined;
|
|
274
|
-
acceptedProviders?: string[] | null | undefined;
|
|
275
282
|
acceptedCapabilities?: string[] | null | undefined;
|
|
276
283
|
selectedProvider?: string | null | undefined;
|
|
277
284
|
customRedirectUrl?: string | null | undefined;
|
|
278
285
|
customRedirectFailureUrl?: string | null | undefined;
|
|
279
286
|
authorizedAt?: Date | null | undefined;
|
|
280
287
|
acceptedDevices?: string[] | null | undefined;
|
|
281
|
-
connectedAccountId?: string | null | undefined;
|
|
282
288
|
}, {
|
|
283
289
|
id: string;
|
|
284
290
|
url: string;
|
|
@@ -286,6 +292,7 @@ export declare const seamConnectWebViewSchema: z.ZodObject<{
|
|
|
286
292
|
createdAt: Date;
|
|
287
293
|
updatedAt: Date;
|
|
288
294
|
userId: string;
|
|
295
|
+
acceptedProviders: string[];
|
|
289
296
|
anyProviderAllowed: boolean;
|
|
290
297
|
loginSuccessful: boolean;
|
|
291
298
|
automaticallyManageNewDevices: boolean;
|
|
@@ -293,15 +300,14 @@ export declare const seamConnectWebViewSchema: z.ZodObject<{
|
|
|
293
300
|
anyDeviceAllowed: boolean;
|
|
294
301
|
workspaceId?: string | null | undefined;
|
|
295
302
|
customMetadata?: {} | null | undefined;
|
|
303
|
+
connectedAccountId?: string | null | undefined;
|
|
296
304
|
deviceSelectionMode?: string | null | undefined;
|
|
297
|
-
acceptedProviders?: string[] | null | undefined;
|
|
298
305
|
acceptedCapabilities?: string[] | null | undefined;
|
|
299
306
|
selectedProvider?: string | null | undefined;
|
|
300
307
|
customRedirectUrl?: string | null | undefined;
|
|
301
308
|
customRedirectFailureUrl?: string | null | undefined;
|
|
302
309
|
authorizedAt?: Date | null | undefined;
|
|
303
310
|
acceptedDevices?: string[] | null | undefined;
|
|
304
|
-
connectedAccountId?: string | null | undefined;
|
|
305
311
|
}>;
|
|
306
312
|
export declare const propertySeamDeviceSchema: z.ZodObject<{
|
|
307
313
|
id: z.ZodNumber;
|
|
@@ -332,24 +338,18 @@ export declare const roomSeamDeviceSchema: z.ZodObject<{
|
|
|
332
338
|
id: z.ZodNumber;
|
|
333
339
|
roomId: z.ZodNumber;
|
|
334
340
|
seamDeviceId: z.ZodString;
|
|
335
|
-
isPrimary: z.ZodBoolean;
|
|
336
|
-
isShared: z.ZodBoolean;
|
|
337
341
|
createdAt: z.ZodDate;
|
|
338
342
|
updatedAt: z.ZodDate;
|
|
339
343
|
}, "strip", z.ZodTypeAny, {
|
|
340
344
|
id: number;
|
|
341
|
-
isPrimary: boolean;
|
|
342
345
|
createdAt: Date;
|
|
343
346
|
updatedAt: Date;
|
|
344
347
|
roomId: number;
|
|
345
348
|
seamDeviceId: string;
|
|
346
|
-
isShared: boolean;
|
|
347
349
|
}, {
|
|
348
350
|
id: number;
|
|
349
|
-
isPrimary: boolean;
|
|
350
351
|
createdAt: Date;
|
|
351
352
|
updatedAt: Date;
|
|
352
353
|
roomId: number;
|
|
353
354
|
seamDeviceId: string;
|
|
354
|
-
isShared: boolean;
|
|
355
355
|
}>;
|
|
@@ -16,6 +16,7 @@ exports.seamAccountSchema = (0, zod_1.object)({
|
|
|
16
16
|
accountType: (0, zod_1.string)(),
|
|
17
17
|
accountTypeDisplayName: (0, zod_1.string)(),
|
|
18
18
|
accountName: (0, zod_1.string)().nullish(),
|
|
19
|
+
imageUrl: (0, zod_1.string)().nullish(),
|
|
19
20
|
isActive: (0, zod_1.boolean)(),
|
|
20
21
|
customMetadata: (0, zod_1.object)({}).nullish(),
|
|
21
22
|
lastSyncedAt: (0, zod_1.date)().nullish(),
|
|
@@ -80,14 +81,15 @@ exports.seamAccessCodeSchema = (0, zod_1.object)({
|
|
|
80
81
|
});
|
|
81
82
|
exports.seamEventSchema = (0, zod_1.object)({
|
|
82
83
|
id: (0, zod_1.string)(),
|
|
83
|
-
seamEventId: (0, zod_1.string)(),
|
|
84
84
|
eventType: (0, zod_1.string)(),
|
|
85
85
|
deviceId: (0, zod_1.string)().nullish(),
|
|
86
|
+
connectedAccountId: (0, zod_1.string)().nullish(),
|
|
87
|
+
connectWebviewId: (0, zod_1.string)().nullish(),
|
|
86
88
|
accessCodeId: (0, zod_1.string)().nullish(),
|
|
87
89
|
reservationId: (0, zod_1.number)().int().nullish(),
|
|
88
90
|
taskId: (0, zod_1.number)().int().nullish(),
|
|
89
91
|
occurredAt: (0, zod_1.date)(),
|
|
90
|
-
rawData:
|
|
92
|
+
rawData: zod_1.z.unknown().nullish(),
|
|
91
93
|
processed: (0, zod_1.boolean)(),
|
|
92
94
|
createdAt: (0, zod_1.date)(),
|
|
93
95
|
});
|
|
@@ -97,7 +99,7 @@ exports.seamConnectWebViewSchema = (0, zod_1.object)({
|
|
|
97
99
|
url: (0, zod_1.string)(),
|
|
98
100
|
workspaceId: (0, zod_1.string)().nullish(),
|
|
99
101
|
deviceSelectionMode: (0, zod_1.string)().nullish(),
|
|
100
|
-
acceptedProviders: (0, zod_1.array)((0, zod_1.string)())
|
|
102
|
+
acceptedProviders: (0, zod_1.array)((0, zod_1.string)()),
|
|
101
103
|
acceptedCapabilities: (0, zod_1.array)((0, zod_1.string)()).nullish(),
|
|
102
104
|
selectedProvider: (0, zod_1.string)().nullish(),
|
|
103
105
|
anyProviderAllowed: (0, zod_1.boolean)(),
|
|
@@ -128,8 +130,6 @@ exports.roomSeamDeviceSchema = (0, zod_1.object)({
|
|
|
128
130
|
id: (0, zod_1.number)().int(),
|
|
129
131
|
roomId: (0, zod_1.number)().int(),
|
|
130
132
|
seamDeviceId: (0, zod_1.string)(),
|
|
131
|
-
isPrimary: (0, zod_1.boolean)(),
|
|
132
|
-
isShared: (0, zod_1.boolean)(),
|
|
133
133
|
createdAt: (0, zod_1.date)(),
|
|
134
134
|
updatedAt: (0, zod_1.date)(),
|
|
135
135
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { infer } from "zod";
|
|
1
|
+
import { infer, z } from "zod";
|
|
2
2
|
import { Property } from "../property";
|
|
3
|
-
import { propertyMetadataSchema } from "../../schemas/property-metadata";
|
|
3
|
+
import { accessTypeSchema, propertyMetadataSchema } from "../../schemas/property-metadata";
|
|
4
4
|
export interface PropertyMetadata extends infer<typeof propertyMetadataSchema> {
|
|
5
5
|
property?: Property;
|
|
6
6
|
}
|
|
7
|
+
export type PropertyAccessType = z.infer<typeof accessTypeSchema>;
|