hububb-saas-shared 1.1.74 → 1.1.76

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.
@@ -1086,9 +1086,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
1086
1086
  }>;
1087
1087
  property_id: import("zod").ZodString;
1088
1088
  }, "strip", import("zod").ZodTypeAny, {
1089
+ timestamp: string;
1089
1090
  event: string;
1090
1091
  property_id: string;
1091
- timestamp: string;
1092
1092
  payload: {
1093
1093
  property_id: string;
1094
1094
  revision_id: string;
@@ -1096,9 +1096,9 @@ export declare const WebhookChannexBookingSchema: import("zod").ZodObject<{
1096
1096
  };
1097
1097
  user_id?: string | null | undefined;
1098
1098
  }, {
1099
+ timestamp: string;
1099
1100
  event: string;
1100
1101
  property_id: string;
1101
- timestamp: string;
1102
1102
  payload: {
1103
1103
  property_id: string;
1104
1104
  revision_id: string;
@@ -277,9 +277,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
277
277
  }>;
278
278
  property_id: import("zod").ZodString;
279
279
  }, "strip", import("zod").ZodTypeAny, {
280
+ timestamp: string;
280
281
  event: string;
281
282
  property_id: string;
282
- timestamp: string;
283
283
  payload: {
284
284
  message: string;
285
285
  id: string;
@@ -294,9 +294,9 @@ export declare const WebhookChannexMessageSchema: import("zod").ZodObject<{
294
294
  };
295
295
  user_id?: string | null | undefined;
296
296
  }, {
297
+ timestamp: string;
297
298
  event: string;
298
299
  property_id: string;
299
- timestamp: string;
300
300
  payload: {
301
301
  message: string;
302
302
  id: string;
@@ -65,3 +65,4 @@ export * from "./custom-bundle";
65
65
  export * from "./custom-bundle-service";
66
66
  export * from "./custom-bundle-coupon";
67
67
  export * from "./pending-payment-action";
68
+ export * from "./seam";
@@ -81,3 +81,4 @@ __exportStar(require("./custom-bundle"), exports);
81
81
  __exportStar(require("./custom-bundle-service"), exports);
82
82
  __exportStar(require("./custom-bundle-coupon"), exports);
83
83
  __exportStar(require("./pending-payment-action"), exports);
84
+ __exportStar(require("./seam"), exports);
@@ -0,0 +1,355 @@
1
+ import { z } from "zod";
2
+ export declare const seamWorkspaceSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ companyName: z.ZodString;
6
+ isSandbox: z.ZodBoolean;
7
+ isSuspended: z.ZodBoolean;
8
+ }, "strip", z.ZodTypeAny, {
9
+ name: string;
10
+ id: string;
11
+ companyName: string;
12
+ isSandbox: boolean;
13
+ isSuspended: boolean;
14
+ }, {
15
+ name: string;
16
+ id: string;
17
+ companyName: string;
18
+ isSandbox: boolean;
19
+ isSuspended: boolean;
20
+ }>;
21
+ export declare const seamAccountSchema: z.ZodObject<{
22
+ id: z.ZodString;
23
+ userId: z.ZodString;
24
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ accountType: z.ZodString;
26
+ accountTypeDisplayName: z.ZodString;
27
+ accountName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ isActive: z.ZodBoolean;
29
+ customMetadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
30
+ lastSyncedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
31
+ createdAt: z.ZodDate;
32
+ updatedAt: z.ZodDate;
33
+ }, "strip", z.ZodTypeAny, {
34
+ id: string;
35
+ createdAt: Date;
36
+ updatedAt: Date;
37
+ userId: string;
38
+ isActive: boolean;
39
+ accountType: string;
40
+ accountTypeDisplayName: string;
41
+ accountName?: string | null | undefined;
42
+ workspaceId?: string | null | undefined;
43
+ customMetadata?: {} | null | undefined;
44
+ lastSyncedAt?: Date | null | undefined;
45
+ }, {
46
+ id: string;
47
+ createdAt: Date;
48
+ updatedAt: Date;
49
+ userId: string;
50
+ isActive: boolean;
51
+ accountType: string;
52
+ accountTypeDisplayName: string;
53
+ accountName?: string | null | undefined;
54
+ workspaceId?: string | null | undefined;
55
+ customMetadata?: {} | null | undefined;
56
+ lastSyncedAt?: Date | null | undefined;
57
+ }>;
58
+ export declare const seamDeviceSchema: z.ZodObject<{
59
+ id: z.ZodString;
60
+ seamAccountId: z.ZodString;
61
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ deviceName: z.ZodString;
63
+ nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ deviceType: z.ZodString;
66
+ isActive: z.ZodBoolean;
67
+ online: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
68
+ batteryLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ batteryStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ canProgramAccessCodes: z.ZodBoolean;
71
+ canRemotelyLock: z.ZodBoolean;
72
+ canRemotelyUnlock: z.ZodBoolean;
73
+ canUnlockWithCode: z.ZodBoolean;
74
+ isLocked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
75
+ isDoorOpen: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
76
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ locationTimezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ manufacturer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ serialNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ onlineAccessCodesEnabled: z.ZodBoolean;
81
+ offlineAccessCodesSupported: z.ZodBoolean;
82
+ supportsBackupAccessCodePool: z.ZodBoolean;
83
+ supportedCodeLengths: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
84
+ capabilitiesSupported: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
85
+ properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
86
+ lastSyncedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
87
+ createdAt: z.ZodDate;
88
+ updatedAt: z.ZodDate;
89
+ }, "strip", z.ZodTypeAny, {
90
+ id: string;
91
+ createdAt: Date;
92
+ updatedAt: Date;
93
+ isActive: boolean;
94
+ seamAccountId: string;
95
+ deviceName: string;
96
+ deviceType: string;
97
+ canProgramAccessCodes: boolean;
98
+ canRemotelyLock: boolean;
99
+ canRemotelyUnlock: boolean;
100
+ canUnlockWithCode: boolean;
101
+ onlineAccessCodesEnabled: boolean;
102
+ offlineAccessCodesSupported: boolean;
103
+ supportsBackupAccessCodePool: boolean;
104
+ location?: string | null | undefined;
105
+ online?: boolean | null | undefined;
106
+ nickname?: string | null | undefined;
107
+ imageUrl?: string | null | undefined;
108
+ workspaceId?: string | null | undefined;
109
+ lastSyncedAt?: Date | null | undefined;
110
+ batteryLevel?: string | null | undefined;
111
+ batteryStatus?: string | null | undefined;
112
+ isLocked?: boolean | null | undefined;
113
+ isDoorOpen?: boolean | null | undefined;
114
+ locationTimezone?: string | null | undefined;
115
+ manufacturer?: string | null | undefined;
116
+ serialNumber?: string | null | undefined;
117
+ supportedCodeLengths?: number[] | null | undefined;
118
+ capabilitiesSupported?: string[] | null | undefined;
119
+ properties?: {} | null | undefined;
120
+ }, {
121
+ id: string;
122
+ createdAt: Date;
123
+ updatedAt: Date;
124
+ isActive: boolean;
125
+ seamAccountId: string;
126
+ deviceName: string;
127
+ deviceType: string;
128
+ canProgramAccessCodes: boolean;
129
+ canRemotelyLock: boolean;
130
+ canRemotelyUnlock: boolean;
131
+ canUnlockWithCode: boolean;
132
+ onlineAccessCodesEnabled: boolean;
133
+ offlineAccessCodesSupported: boolean;
134
+ supportsBackupAccessCodePool: boolean;
135
+ location?: string | null | undefined;
136
+ online?: boolean | null | undefined;
137
+ nickname?: string | null | undefined;
138
+ imageUrl?: string | null | undefined;
139
+ workspaceId?: string | null | undefined;
140
+ lastSyncedAt?: Date | null | undefined;
141
+ batteryLevel?: string | null | undefined;
142
+ batteryStatus?: string | null | undefined;
143
+ isLocked?: boolean | null | undefined;
144
+ isDoorOpen?: boolean | null | undefined;
145
+ locationTimezone?: string | null | undefined;
146
+ manufacturer?: string | null | undefined;
147
+ serialNumber?: string | null | undefined;
148
+ supportedCodeLengths?: number[] | null | undefined;
149
+ capabilitiesSupported?: string[] | null | undefined;
150
+ properties?: {} | null | undefined;
151
+ }>;
152
+ export declare const seamAccessCodeStatusSchema: z.ZodEnum<["PENDING", "CREATING", "ACTIVE", "EXPIRED", "DELETED", "FAILED"]>;
153
+ export declare const seamAccessCodeSchema: z.ZodObject<{
154
+ id: z.ZodString;
155
+ reservationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
156
+ taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
+ seamDeviceId: z.ZodString;
158
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
+ name: z.ZodString;
160
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
162
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
163
+ status: z.ZodEnum<["PENDING", "CREATING", "ACTIVE", "EXPIRED", "DELETED", "FAILED"]>;
164
+ syncStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
+ createdAt: z.ZodDate;
167
+ updatedAt: z.ZodDate;
168
+ }, "strip", z.ZodTypeAny, {
169
+ name: string;
170
+ id: string;
171
+ status: "PENDING" | "FAILED" | "ACTIVE" | "DELETED" | "EXPIRED" | "CREATING";
172
+ createdAt: Date;
173
+ updatedAt: Date;
174
+ seamDeviceId: string;
175
+ code?: string | null | undefined;
176
+ type?: string | null | undefined;
177
+ reservationId?: number | null | undefined;
178
+ taskId?: number | null | undefined;
179
+ startsAt?: Date | null | undefined;
180
+ endsAt?: Date | null | undefined;
181
+ syncStatus?: string | null | undefined;
182
+ errorMessage?: string | null | undefined;
183
+ }, {
184
+ name: string;
185
+ id: string;
186
+ status: "PENDING" | "FAILED" | "ACTIVE" | "DELETED" | "EXPIRED" | "CREATING";
187
+ createdAt: Date;
188
+ updatedAt: Date;
189
+ seamDeviceId: string;
190
+ code?: string | null | undefined;
191
+ type?: string | null | undefined;
192
+ reservationId?: number | null | undefined;
193
+ taskId?: number | null | undefined;
194
+ startsAt?: Date | null | undefined;
195
+ endsAt?: Date | null | undefined;
196
+ syncStatus?: string | null | undefined;
197
+ errorMessage?: string | null | undefined;
198
+ }>;
199
+ export declare const seamEventSchema: z.ZodObject<{
200
+ id: z.ZodString;
201
+ seamEventId: z.ZodString;
202
+ eventType: z.ZodString;
203
+ deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ accessCodeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
+ reservationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
206
+ taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
207
+ occurredAt: z.ZodDate;
208
+ rawData: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
209
+ processed: z.ZodBoolean;
210
+ createdAt: z.ZodDate;
211
+ }, "strip", z.ZodTypeAny, {
212
+ id: string;
213
+ createdAt: Date;
214
+ eventType: string;
215
+ seamEventId: string;
216
+ occurredAt: Date;
217
+ processed: boolean;
218
+ reservationId?: number | null | undefined;
219
+ taskId?: number | null | undefined;
220
+ deviceId?: string | null | undefined;
221
+ accessCodeId?: string | null | undefined;
222
+ rawData?: {} | null | undefined;
223
+ }, {
224
+ id: string;
225
+ createdAt: Date;
226
+ eventType: string;
227
+ seamEventId: string;
228
+ occurredAt: Date;
229
+ processed: boolean;
230
+ reservationId?: number | null | undefined;
231
+ taskId?: number | null | undefined;
232
+ deviceId?: string | null | undefined;
233
+ accessCodeId?: string | null | undefined;
234
+ rawData?: {} | null | undefined;
235
+ }>;
236
+ export declare const seamConnectWebViewSchema: z.ZodObject<{
237
+ id: z.ZodString;
238
+ userId: z.ZodString;
239
+ url: z.ZodString;
240
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
+ deviceSelectionMode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ acceptedProviders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
243
+ acceptedCapabilities: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
244
+ selectedProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
+ anyProviderAllowed: z.ZodBoolean;
246
+ loginSuccessful: z.ZodBoolean;
247
+ status: z.ZodString;
248
+ customRedirectUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
+ customRedirectFailureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ automaticallyManageNewDevices: z.ZodBoolean;
251
+ waitForDeviceCreation: z.ZodBoolean;
252
+ authorizedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
253
+ anyDeviceAllowed: z.ZodBoolean;
254
+ acceptedDevices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
255
+ customMetadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
256
+ connectedAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ createdAt: z.ZodDate;
258
+ updatedAt: z.ZodDate;
259
+ }, "strip", z.ZodTypeAny, {
260
+ id: string;
261
+ url: string;
262
+ status: string;
263
+ createdAt: Date;
264
+ updatedAt: Date;
265
+ userId: string;
266
+ anyProviderAllowed: boolean;
267
+ loginSuccessful: boolean;
268
+ automaticallyManageNewDevices: boolean;
269
+ waitForDeviceCreation: boolean;
270
+ anyDeviceAllowed: boolean;
271
+ workspaceId?: string | null | undefined;
272
+ customMetadata?: {} | null | undefined;
273
+ deviceSelectionMode?: string | null | undefined;
274
+ acceptedProviders?: string[] | null | undefined;
275
+ acceptedCapabilities?: string[] | null | undefined;
276
+ selectedProvider?: string | null | undefined;
277
+ customRedirectUrl?: string | null | undefined;
278
+ customRedirectFailureUrl?: string | null | undefined;
279
+ authorizedAt?: Date | null | undefined;
280
+ acceptedDevices?: string[] | null | undefined;
281
+ connectedAccountId?: string | null | undefined;
282
+ }, {
283
+ id: string;
284
+ url: string;
285
+ status: string;
286
+ createdAt: Date;
287
+ updatedAt: Date;
288
+ userId: string;
289
+ anyProviderAllowed: boolean;
290
+ loginSuccessful: boolean;
291
+ automaticallyManageNewDevices: boolean;
292
+ waitForDeviceCreation: boolean;
293
+ anyDeviceAllowed: boolean;
294
+ workspaceId?: string | null | undefined;
295
+ customMetadata?: {} | null | undefined;
296
+ deviceSelectionMode?: string | null | undefined;
297
+ acceptedProviders?: string[] | null | undefined;
298
+ acceptedCapabilities?: string[] | null | undefined;
299
+ selectedProvider?: string | null | undefined;
300
+ customRedirectUrl?: string | null | undefined;
301
+ customRedirectFailureUrl?: string | null | undefined;
302
+ authorizedAt?: Date | null | undefined;
303
+ acceptedDevices?: string[] | null | undefined;
304
+ connectedAccountId?: string | null | undefined;
305
+ }>;
306
+ export declare const propertySeamDeviceSchema: z.ZodObject<{
307
+ id: z.ZodNumber;
308
+ propertyId: z.ZodNumber;
309
+ seamDeviceId: z.ZodString;
310
+ isPrimary: z.ZodBoolean;
311
+ isShared: z.ZodBoolean;
312
+ createdAt: z.ZodDate;
313
+ updatedAt: z.ZodDate;
314
+ }, "strip", z.ZodTypeAny, {
315
+ id: number;
316
+ isPrimary: boolean;
317
+ createdAt: Date;
318
+ updatedAt: Date;
319
+ propertyId: number;
320
+ seamDeviceId: string;
321
+ isShared: boolean;
322
+ }, {
323
+ id: number;
324
+ isPrimary: boolean;
325
+ createdAt: Date;
326
+ updatedAt: Date;
327
+ propertyId: number;
328
+ seamDeviceId: string;
329
+ isShared: boolean;
330
+ }>;
331
+ export declare const roomSeamDeviceSchema: z.ZodObject<{
332
+ id: z.ZodNumber;
333
+ roomId: z.ZodNumber;
334
+ seamDeviceId: z.ZodString;
335
+ isPrimary: z.ZodBoolean;
336
+ isShared: z.ZodBoolean;
337
+ createdAt: z.ZodDate;
338
+ updatedAt: z.ZodDate;
339
+ }, "strip", z.ZodTypeAny, {
340
+ id: number;
341
+ isPrimary: boolean;
342
+ createdAt: Date;
343
+ updatedAt: Date;
344
+ roomId: number;
345
+ seamDeviceId: string;
346
+ isShared: boolean;
347
+ }, {
348
+ id: number;
349
+ isPrimary: boolean;
350
+ createdAt: Date;
351
+ updatedAt: Date;
352
+ roomId: number;
353
+ seamDeviceId: string;
354
+ isShared: boolean;
355
+ }>;
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.roomSeamDeviceSchema = exports.propertySeamDeviceSchema = exports.seamConnectWebViewSchema = exports.seamEventSchema = exports.seamAccessCodeSchema = exports.seamAccessCodeStatusSchema = exports.seamDeviceSchema = exports.seamAccountSchema = exports.seamWorkspaceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.seamWorkspaceSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.string)(),
7
+ name: (0, zod_1.string)(),
8
+ companyName: (0, zod_1.string)(),
9
+ isSandbox: (0, zod_1.boolean)(),
10
+ isSuspended: (0, zod_1.boolean)(),
11
+ });
12
+ exports.seamAccountSchema = (0, zod_1.object)({
13
+ id: (0, zod_1.string)(),
14
+ userId: (0, zod_1.string)(),
15
+ workspaceId: (0, zod_1.string)().nullish(),
16
+ accountType: (0, zod_1.string)(),
17
+ accountTypeDisplayName: (0, zod_1.string)(),
18
+ accountName: (0, zod_1.string)().nullish(),
19
+ isActive: (0, zod_1.boolean)(),
20
+ customMetadata: (0, zod_1.object)({}).nullish(),
21
+ lastSyncedAt: (0, zod_1.date)().nullish(),
22
+ createdAt: (0, zod_1.date)(),
23
+ updatedAt: (0, zod_1.date)(),
24
+ });
25
+ exports.seamDeviceSchema = (0, zod_1.object)({
26
+ id: (0, zod_1.string)(),
27
+ seamAccountId: (0, zod_1.string)(),
28
+ workspaceId: (0, zod_1.string)().nullish(),
29
+ deviceName: (0, zod_1.string)(),
30
+ nickname: (0, zod_1.string)().nullish(),
31
+ imageUrl: (0, zod_1.string)().nullish(),
32
+ deviceType: (0, zod_1.string)(),
33
+ isActive: (0, zod_1.boolean)(),
34
+ online: (0, zod_1.boolean)().nullish(),
35
+ batteryLevel: (0, zod_1.string)().nullish(),
36
+ batteryStatus: (0, zod_1.string)().nullish(),
37
+ canProgramAccessCodes: (0, zod_1.boolean)(),
38
+ canRemotelyLock: (0, zod_1.boolean)(),
39
+ canRemotelyUnlock: (0, zod_1.boolean)(),
40
+ canUnlockWithCode: (0, zod_1.boolean)(),
41
+ isLocked: (0, zod_1.boolean)().nullish(),
42
+ isDoorOpen: (0, zod_1.boolean)().nullish(),
43
+ location: (0, zod_1.string)().nullish(),
44
+ locationTimezone: (0, zod_1.string)().nullish(),
45
+ manufacturer: (0, zod_1.string)().nullish(),
46
+ serialNumber: (0, zod_1.string)().nullish(),
47
+ onlineAccessCodesEnabled: (0, zod_1.boolean)(),
48
+ offlineAccessCodesSupported: (0, zod_1.boolean)(),
49
+ supportsBackupAccessCodePool: (0, zod_1.boolean)(),
50
+ supportedCodeLengths: (0, zod_1.array)((0, zod_1.number)()).nullish(),
51
+ capabilitiesSupported: (0, zod_1.array)((0, zod_1.string)()).nullish(),
52
+ properties: (0, zod_1.object)({}).nullish(),
53
+ lastSyncedAt: (0, zod_1.date)().nullish(),
54
+ createdAt: (0, zod_1.date)(),
55
+ updatedAt: (0, zod_1.date)(),
56
+ });
57
+ exports.seamAccessCodeStatusSchema = zod_1.z.enum([
58
+ "PENDING",
59
+ "CREATING",
60
+ "ACTIVE",
61
+ "EXPIRED",
62
+ "DELETED",
63
+ "FAILED",
64
+ ]);
65
+ exports.seamAccessCodeSchema = (0, zod_1.object)({
66
+ id: (0, zod_1.string)(),
67
+ reservationId: (0, zod_1.number)().int().nullish(),
68
+ taskId: (0, zod_1.number)().int().nullish(),
69
+ seamDeviceId: (0, zod_1.string)(),
70
+ code: (0, zod_1.string)().nullish(),
71
+ name: (0, zod_1.string)(),
72
+ type: (0, zod_1.string)().nullish(),
73
+ startsAt: (0, zod_1.date)().nullish(),
74
+ endsAt: (0, zod_1.date)().nullish(),
75
+ status: exports.seamAccessCodeStatusSchema,
76
+ syncStatus: (0, zod_1.string)().nullish(),
77
+ errorMessage: (0, zod_1.string)().nullish(),
78
+ createdAt: (0, zod_1.date)(),
79
+ updatedAt: (0, zod_1.date)(),
80
+ });
81
+ exports.seamEventSchema = (0, zod_1.object)({
82
+ id: (0, zod_1.string)(),
83
+ seamEventId: (0, zod_1.string)(),
84
+ eventType: (0, zod_1.string)(),
85
+ deviceId: (0, zod_1.string)().nullish(),
86
+ accessCodeId: (0, zod_1.string)().nullish(),
87
+ reservationId: (0, zod_1.number)().int().nullish(),
88
+ taskId: (0, zod_1.number)().int().nullish(),
89
+ occurredAt: (0, zod_1.date)(),
90
+ rawData: (0, zod_1.object)({}).nullish(),
91
+ processed: (0, zod_1.boolean)(),
92
+ createdAt: (0, zod_1.date)(),
93
+ });
94
+ exports.seamConnectWebViewSchema = (0, zod_1.object)({
95
+ id: (0, zod_1.string)(),
96
+ userId: (0, zod_1.string)(),
97
+ url: (0, zod_1.string)(),
98
+ workspaceId: (0, zod_1.string)().nullish(),
99
+ deviceSelectionMode: (0, zod_1.string)().nullish(),
100
+ acceptedProviders: (0, zod_1.array)((0, zod_1.string)()).nullish(),
101
+ acceptedCapabilities: (0, zod_1.array)((0, zod_1.string)()).nullish(),
102
+ selectedProvider: (0, zod_1.string)().nullish(),
103
+ anyProviderAllowed: (0, zod_1.boolean)(),
104
+ loginSuccessful: (0, zod_1.boolean)(),
105
+ status: (0, zod_1.string)(),
106
+ customRedirectUrl: (0, zod_1.string)().nullish(),
107
+ customRedirectFailureUrl: (0, zod_1.string)().nullish(),
108
+ automaticallyManageNewDevices: (0, zod_1.boolean)(),
109
+ waitForDeviceCreation: (0, zod_1.boolean)(),
110
+ authorizedAt: (0, zod_1.date)().nullish(),
111
+ anyDeviceAllowed: (0, zod_1.boolean)(),
112
+ acceptedDevices: (0, zod_1.array)((0, zod_1.string)()).nullish(),
113
+ customMetadata: (0, zod_1.object)({}).nullish(),
114
+ connectedAccountId: (0, zod_1.string)().nullish(),
115
+ createdAt: (0, zod_1.date)(),
116
+ updatedAt: (0, zod_1.date)(),
117
+ });
118
+ exports.propertySeamDeviceSchema = (0, zod_1.object)({
119
+ id: (0, zod_1.number)().int(),
120
+ propertyId: (0, zod_1.number)().int(),
121
+ seamDeviceId: (0, zod_1.string)(),
122
+ isPrimary: (0, zod_1.boolean)(),
123
+ isShared: (0, zod_1.boolean)(),
124
+ createdAt: (0, zod_1.date)(),
125
+ updatedAt: (0, zod_1.date)(),
126
+ });
127
+ exports.roomSeamDeviceSchema = (0, zod_1.object)({
128
+ id: (0, zod_1.number)().int(),
129
+ roomId: (0, zod_1.number)().int(),
130
+ seamDeviceId: (0, zod_1.string)(),
131
+ isPrimary: (0, zod_1.boolean)(),
132
+ isShared: (0, zod_1.boolean)(),
133
+ createdAt: (0, zod_1.date)(),
134
+ updatedAt: (0, zod_1.date)(),
135
+ });
@@ -921,7 +921,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
921
921
  } | undefined;
922
922
  }>>;
923
923
  participantIds: z.ZodArray<z.ZodString, "many">;
924
- participants: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
924
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
925
925
  id: z.ZodString;
926
926
  name: z.ZodString;
927
927
  email: z.ZodString;
@@ -951,7 +951,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
951
951
  internalNotes: z.ZodOptional<z.ZodString>;
952
952
  hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
953
953
  hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
954
- }, {
954
+ } & {
955
955
  userRole: z.ZodOptional<z.ZodObject<{
956
956
  id: z.ZodNumber;
957
957
  name: z.ZodString;
@@ -968,7 +968,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
968
968
  createdAt: Date;
969
969
  updatedAt: Date;
970
970
  }>>;
971
- }>, "strip", z.ZodTypeAny, {
971
+ }, "strip", z.ZodTypeAny, {
972
972
  name: string;
973
973
  id: string;
974
974
  email: string;
@@ -1052,7 +1052,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1052
1052
  needsAttentionMap: z.ZodRecord<z.ZodString, z.ZodBoolean>;
1053
1053
  propertyId: z.ZodOptional<z.ZodNumber>;
1054
1054
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1055
- reservation: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<Pick<{
1055
+ reservation: z.ZodOptional<z.ZodObject<Pick<{
1056
1056
  id: z.ZodNumber;
1057
1057
  status: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
1058
1058
  currency: z.ZodString;
@@ -1081,7 +1081,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1081
1081
  payoutId: z.ZodOptional<z.ZodNumber>;
1082
1082
  payoutAmount: z.ZodOptional<z.ZodNumber>;
1083
1083
  requiresPayout: z.ZodBoolean;
1084
- }, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut">, {
1084
+ }, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"> & {
1085
1085
  propertyNickname: z.ZodOptional<z.ZodString>;
1086
1086
  property: z.ZodOptional<z.ZodObject<{
1087
1087
  id: z.ZodNumber;
@@ -1174,7 +1174,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1174
1174
  customBundleId?: number | null | undefined;
1175
1175
  onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
1176
1176
  }>>;
1177
- }>, "strip", z.ZodTypeAny, {
1177
+ }, "strip", z.ZodTypeAny, {
1178
1178
  id: number;
1179
1179
  status: "PENDING" | "CONFIRMED" | "CANCELLED";
1180
1180
  propertyId: number;
@@ -66,3 +66,4 @@ export * from "./custom-bundle";
66
66
  export * from "./custom-bundle-service";
67
67
  export * from "./custom-bundle-coupon";
68
68
  export * from "./pending-payment-action";
69
+ export * from "./seam";
@@ -82,3 +82,4 @@ __exportStar(require("./custom-bundle"), exports);
82
82
  __exportStar(require("./custom-bundle-service"), exports);
83
83
  __exportStar(require("./custom-bundle-coupon"), exports);
84
84
  __exportStar(require("./pending-payment-action"), exports);
85
+ __exportStar(require("./seam"), exports);
@@ -0,0 +1,44 @@
1
+ import { z } from "zod";
2
+ import { seamWorkspaceSchema, seamAccountSchema, seamDeviceSchema, seamAccessCodeSchema, seamAccessCodeStatusSchema, seamEventSchema, seamConnectWebViewSchema, propertySeamDeviceSchema, roomSeamDeviceSchema } from "../../schemas/seam";
3
+ import { Property } from "../property";
4
+ import { Room } from "../room";
5
+ import { Task } from "../task";
6
+ import { Reservation } from "../reservation";
7
+ import { User } from "../user";
8
+ export interface SeamWorkspace extends z.infer<typeof seamWorkspaceSchema> {
9
+ accounts?: SeamAccount[];
10
+ }
11
+ export interface SeamAccount extends z.infer<typeof seamAccountSchema> {
12
+ user?: User;
13
+ workspace?: SeamWorkspace | null;
14
+ devices?: SeamDevice[];
15
+ connectWebViews?: SeamConnectWebView[];
16
+ }
17
+ export interface SeamDevice extends z.infer<typeof seamDeviceSchema> {
18
+ account?: SeamAccount;
19
+ propertyDevices?: PropertySeamDevice[];
20
+ roomDevices?: RoomSeamDevice[];
21
+ accessCodes?: SeamAccessCode[];
22
+ }
23
+ export type SeamAccessCodeStatus = z.infer<typeof seamAccessCodeStatusSchema>;
24
+ export interface SeamAccessCode extends z.infer<typeof seamAccessCodeSchema> {
25
+ reservation?: Reservation | null;
26
+ task?: Task | null;
27
+ device?: SeamDevice;
28
+ }
29
+ export interface SeamEvent extends z.infer<typeof seamEventSchema> {
30
+ reservation?: Reservation | null;
31
+ task?: Task | null;
32
+ }
33
+ export interface SeamConnectWebView extends z.infer<typeof seamConnectWebViewSchema> {
34
+ user?: User;
35
+ connectedAccount?: SeamAccount | null;
36
+ }
37
+ export interface PropertySeamDevice extends z.infer<typeof propertySeamDeviceSchema> {
38
+ property?: Property;
39
+ device?: SeamDevice;
40
+ }
41
+ export interface RoomSeamDevice extends z.infer<typeof roomSeamDeviceSchema> {
42
+ room?: Room;
43
+ device?: SeamDevice;
44
+ }
@@ -36,5 +36,5 @@ export interface User extends infer<typeof userSchema> {
36
36
  customBundles?: CustomBundle[];
37
37
  createdBundles?: CustomBundle[];
38
38
  createdCoupons?: BundleCoupon[];
39
- pendingPaymentAction?: PendingPaymentAction;
39
+ pendingPaymentActions?: PendingPaymentAction[];
40
40
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.1.74",
4
+ "version": "1.1.76",
5
5
  "description": "This is a shared package for the hububb saas project",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",
@@ -33,4 +33,4 @@
33
33
  "typescript": "^5.7.2"
34
34
  },
35
35
  "packageManager": "yarn@1.22.22+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
36
- }
36
+ }
@@ -1,45 +0,0 @@
1
- export declare enum ServiceType {
2
- INTEGRATION = "INTEGRATION",
3
- ON_DEMAND = "ON_DEMAND",
4
- RECURRING = "RECURRING"
5
- }
6
- export declare enum TaskStatus {
7
- PENDING = "PENDING",
8
- CONFIRMED = "CONFIRMED",
9
- COMPLETED = "COMPLETED",
10
- CANCELLED = "CANCELLED"
11
- }
12
- export declare enum TaskPriority {
13
- LOW = "LOW",
14
- MEDIUM = "MEDIUM",
15
- HIGH = "HIGH"
16
- }
17
- export declare enum InvoiceType {
18
- SUBSCRIPTION = "SUBSCRIPTION",
19
- PURCHASE = "PURCHASE"
20
- }
21
- export declare enum InvoiceStatus {
22
- PENDING = "PENDING",
23
- PAID = "PAID",
24
- CANCELLED = "CANCELLED",
25
- FAILED = "FAILED"
26
- }
27
- export declare enum PriceType {
28
- PRORATED = "PRORATED",
29
- FULL = "FULL"
30
- }
31
- export declare enum PurchaseStatus {
32
- ACTIVE = "ACTIVE",
33
- CANCELLED = "CANCELLED",
34
- FAILED = "FAILED"
35
- }
36
- export declare enum SubscriptionStatus {
37
- INCOMPLETE = "INCOMPLETE",
38
- INCOMPLETE_EXPIRED = "INCOMPLETE_EXPIRED",
39
- TRIALING = "TRIALING",
40
- ACTIVE = "ACTIVE",
41
- PAST_DUE = "PAST_DUE",
42
- CANCELED = "CANCELED",
43
- UNPAID = "UNPAID",
44
- PAUSED = "PAUSED"
45
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
4
- var ServiceType;
5
- (function (ServiceType) {
6
- ServiceType["INTEGRATION"] = "INTEGRATION";
7
- ServiceType["ON_DEMAND"] = "ON_DEMAND";
8
- ServiceType["RECURRING"] = "RECURRING";
9
- })(ServiceType || (exports.ServiceType = ServiceType = {}));
10
- var TaskStatus;
11
- (function (TaskStatus) {
12
- TaskStatus["PENDING"] = "PENDING";
13
- TaskStatus["CONFIRMED"] = "CONFIRMED";
14
- TaskStatus["COMPLETED"] = "COMPLETED";
15
- TaskStatus["CANCELLED"] = "CANCELLED";
16
- })(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
17
- var TaskPriority;
18
- (function (TaskPriority) {
19
- TaskPriority["LOW"] = "LOW";
20
- TaskPriority["MEDIUM"] = "MEDIUM";
21
- TaskPriority["HIGH"] = "HIGH";
22
- })(TaskPriority || (exports.TaskPriority = TaskPriority = {}));
23
- var InvoiceType;
24
- (function (InvoiceType) {
25
- InvoiceType["SUBSCRIPTION"] = "SUBSCRIPTION";
26
- InvoiceType["PURCHASE"] = "PURCHASE";
27
- })(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
28
- var InvoiceStatus;
29
- (function (InvoiceStatus) {
30
- InvoiceStatus["PENDING"] = "PENDING";
31
- InvoiceStatus["PAID"] = "PAID";
32
- InvoiceStatus["CANCELLED"] = "CANCELLED";
33
- InvoiceStatus["FAILED"] = "FAILED";
34
- })(InvoiceStatus || (exports.InvoiceStatus = InvoiceStatus = {}));
35
- var PriceType;
36
- (function (PriceType) {
37
- PriceType["PRORATED"] = "PRORATED";
38
- PriceType["FULL"] = "FULL";
39
- })(PriceType || (exports.PriceType = PriceType = {}));
40
- var PurchaseStatus;
41
- (function (PurchaseStatus) {
42
- PurchaseStatus["ACTIVE"] = "ACTIVE";
43
- PurchaseStatus["CANCELLED"] = "CANCELLED";
44
- PurchaseStatus["FAILED"] = "FAILED";
45
- })(PurchaseStatus || (exports.PurchaseStatus = PurchaseStatus = {}));
46
- var SubscriptionStatus;
47
- (function (SubscriptionStatus) {
48
- SubscriptionStatus["INCOMPLETE"] = "INCOMPLETE";
49
- SubscriptionStatus["INCOMPLETE_EXPIRED"] = "INCOMPLETE_EXPIRED";
50
- SubscriptionStatus["TRIALING"] = "TRIALING";
51
- SubscriptionStatus["ACTIVE"] = "ACTIVE";
52
- SubscriptionStatus["PAST_DUE"] = "PAST_DUE";
53
- SubscriptionStatus["CANCELED"] = "CANCELED";
54
- SubscriptionStatus["UNPAID"] = "UNPAID";
55
- SubscriptionStatus["PAUSED"] = "PAUSED";
56
- })(SubscriptionStatus || (exports.SubscriptionStatus = SubscriptionStatus = {}));
@@ -1,19 +0,0 @@
1
- export declare const servicePropertySchema: import("zod").ZodObject<{
2
- propertyId: import("zod").ZodNumber;
3
- serviceId: import("zod").ZodNumber;
4
- status: import("zod").ZodString;
5
- createdAt: import("zod").ZodDate;
6
- updatedAt: import("zod").ZodDate;
7
- }, "strip", import("zod").ZodTypeAny, {
8
- status: string;
9
- createdAt: Date;
10
- updatedAt: Date;
11
- serviceId: number;
12
- propertyId: number;
13
- }, {
14
- status: string;
15
- createdAt: Date;
16
- updatedAt: Date;
17
- serviceId: number;
18
- propertyId: number;
19
- }>;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.servicePropertySchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.servicePropertySchema = (0, zod_1.object)({
6
- propertyId: (0, zod_1.number)().int(),
7
- serviceId: (0, zod_1.number)().int(),
8
- status: (0, zod_1.string)(),
9
- createdAt: (0, zod_1.date)(),
10
- updatedAt: (0, zod_1.date)(),
11
- });
@@ -1,8 +0,0 @@
1
- import { infer } from "zod";
2
- import { servicePropertySchema } from "../../schemas/service-property";
3
- import { Property } from "../property";
4
- import { Service } from "../service";
5
- export interface ServiceProperty extends infer<typeof servicePropertySchema> {
6
- property?: Property;
7
- service?: Service;
8
- }
File without changes