hububb-saas-shared 1.2.49 → 1.2.51
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/schemas/api-key/index.d.ts +81 -0
- package/dist/schemas/api-key/index.js +33 -0
- package/dist/schemas/availability-settings/index.d.ts +2 -2
- package/dist/schemas/channex/booking.d.ts +2 -2
- package/dist/schemas/channex/thread.d.ts +2 -2
- package/dist/schemas/external-sync-request/index.d.ts +32 -0
- package/dist/schemas/external-sync-request/index.js +15 -0
- package/dist/schemas/guest-verification/index.d.ts +56 -0
- package/dist/schemas/guest-verification/index.js +24 -0
- package/dist/schemas/index.d.ts +8 -0
- package/dist/schemas/index.js +8 -0
- package/dist/schemas/invoice/index.d.ts +2 -2
- package/dist/schemas/klevio/index.d.ts +2 -2
- package/dist/schemas/listing-expectation/index.d.ts +17 -0
- package/dist/schemas/listing-expectation/index.js +11 -0
- package/dist/schemas/notification/index.d.ts +73 -0
- package/dist/schemas/notification/index.js +30 -0
- package/dist/schemas/property/index.d.ts +14 -8
- package/dist/schemas/property/index.js +2 -0
- package/dist/schemas/property-connection-request/index.d.ts +2 -2
- package/dist/schemas/property-guide/icons.d.ts +5 -0
- package/dist/schemas/property-guide/icons.js +55 -0
- package/dist/schemas/property-guide/index.d.ts +32 -0
- package/dist/schemas/property-guide/index.js +20 -0
- package/dist/schemas/property-room/index.d.ts +2 -2
- package/dist/schemas/property-safety-details/index.d.ts +2 -2
- package/dist/schemas/push-token/index.d.ts +35 -0
- package/dist/schemas/push-token/index.js +17 -0
- package/dist/schemas/reservation/index.d.ts +3 -0
- package/dist/schemas/reservation/index.js +1 -0
- package/dist/schemas/reservation-access-log/index.d.ts +53 -0
- package/dist/schemas/reservation-access-log/index.js +22 -0
- package/dist/schemas/reservation-guest-invite/index.d.ts +35 -0
- package/dist/schemas/reservation-guest-invite/index.js +17 -0
- package/dist/schemas/seam/index.d.ts +4 -4
- package/dist/schemas/service-availability/index.d.ts +25 -0
- package/dist/schemas/service-availability/index.js +13 -0
- package/dist/schemas/service-provider/index.d.ts +2 -2
- package/dist/schemas/service-worker-payout/index.d.ts +88 -0
- package/dist/schemas/service-worker-payout/index.js +36 -0
- package/dist/schemas/task/index.d.ts +34 -4
- package/dist/schemas/task/index.js +11 -1
- package/dist/schemas/task-checklist-item/index.d.ts +2 -2
- package/dist/schemas/task-checklist-space/index.d.ts +2 -2
- package/dist/schemas/task-expense-fact/index.d.ts +37 -0
- package/dist/schemas/task-expense-fact/index.js +18 -0
- package/dist/schemas/task-photography-space/index.d.ts +2 -2
- package/dist/schemas/task-thread/index.d.ts +6 -0
- package/dist/schemas/thread/index.d.ts +78 -6
- package/dist/schemas/user/index.d.ts +9 -0
- package/dist/schemas/user/index.js +3 -0
- package/dist/schemas/webhook/index.d.ts +104 -0
- package/dist/schemas/webhook/index.js +41 -0
- package/dist/types/api-key/index.d.ts +10 -0
- package/dist/types/booking-settings/index.d.ts +2 -0
- package/dist/types/enums/index.d.ts +228 -0
- package/dist/types/enums/index.js +263 -1
- package/dist/types/external-sync-request/index.d.ts +4 -0
- package/dist/types/external-sync-request/index.js +2 -0
- package/dist/types/guest-verification/index.d.ts +3 -18
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.js +7 -0
- package/dist/types/listing-expectation/index.d.ts +6 -0
- package/dist/types/listing-expectation/index.js +2 -0
- package/dist/types/notification/index.d.ts +15 -0
- package/dist/types/notification/index.js +2 -0
- package/dist/types/property/index.d.ts +4 -0
- package/dist/types/property-guide/index.d.ts +6 -0
- package/dist/types/property-guide/index.js +2 -0
- package/dist/types/push-token/index.d.ts +6 -0
- package/dist/types/push-token/index.js +2 -0
- package/dist/types/reservation/index.d.ts +8 -0
- package/dist/types/reservation-access-log/index.d.ts +64 -0
- package/dist/types/reservation-access-log/index.js +2 -0
- package/dist/types/reservation-guest-invite/index.d.ts +9 -0
- package/dist/types/reservation-guest-invite/index.js +2 -0
- package/dist/types/service-availability/index.d.ts +6 -0
- package/dist/types/service-availability/index.js +2 -0
- package/dist/types/service-worker-payout/index.d.ts +17 -0
- package/dist/types/service-worker-payout/index.js +2 -0
- package/dist/types/task/index.d.ts +7 -0
- package/dist/types/task-expense-fact/index.d.ts +12 -0
- package/dist/types/task-expense-fact/index.js +2 -0
- package/dist/types/user/index.d.ts +10 -0
- package/dist/types/webhook/index.d.ts +15 -0
- package/dist/types/webhook/index.js +2 -0
- package/package.json +1 -1
- package/dist/schemas/enums/index.d.ts +0 -45
- package/dist/schemas/enums/index.js +0 -56
- package/dist/schemas/service-property/index.d.ts +0 -19
- package/dist/schemas/service-property/index.js +0 -11
- package/dist/types/service-property/index.d.ts +0 -8
- /package/dist/types/{service-property → api-key}/index.js +0 -0
|
@@ -202,6 +202,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
202
202
|
photoUrl: z.ZodOptional<z.ZodString>;
|
|
203
203
|
isOnboardingCompleted: z.ZodBoolean;
|
|
204
204
|
isOnboardingPaused: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
notificationsPaused: z.ZodOptional<z.ZodBoolean>;
|
|
205
206
|
hadOnboardingCall: z.ZodOptional<z.ZodBoolean>;
|
|
206
207
|
userRoleId: z.ZodNumber;
|
|
207
208
|
stripeCustomerId: z.ZodOptional<z.ZodString>;
|
|
@@ -220,6 +221,8 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
220
221
|
hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
|
|
221
222
|
hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
|
|
222
223
|
isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
stripeTrialSubscriptionId: z.ZodOptional<z.ZodString>;
|
|
225
|
+
publicHostSlug: z.ZodOptional<z.ZodString>;
|
|
223
226
|
}, "strip", z.ZodTypeAny, {
|
|
224
227
|
name: string;
|
|
225
228
|
id: string;
|
|
@@ -237,6 +240,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
237
240
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
238
241
|
photoUrl?: string | undefined;
|
|
239
242
|
isOnboardingPaused?: boolean | undefined;
|
|
243
|
+
notificationsPaused?: boolean | undefined;
|
|
240
244
|
hadOnboardingCall?: boolean | undefined;
|
|
241
245
|
stripeCustomerId?: string | undefined;
|
|
242
246
|
hasFullAccess?: boolean | undefined;
|
|
@@ -251,6 +255,8 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
251
255
|
hasActiveBookingAccount?: boolean | undefined;
|
|
252
256
|
hasPendingPaymentAction?: boolean | undefined;
|
|
253
257
|
isKlevioAvailable?: boolean | undefined;
|
|
258
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
259
|
+
publicHostSlug?: string | undefined;
|
|
254
260
|
}, {
|
|
255
261
|
name: string;
|
|
256
262
|
id: string;
|
|
@@ -268,6 +274,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
268
274
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
269
275
|
photoUrl?: string | undefined;
|
|
270
276
|
isOnboardingPaused?: boolean | undefined;
|
|
277
|
+
notificationsPaused?: boolean | undefined;
|
|
271
278
|
hadOnboardingCall?: boolean | undefined;
|
|
272
279
|
stripeCustomerId?: string | undefined;
|
|
273
280
|
hasFullAccess?: boolean | undefined;
|
|
@@ -282,6 +289,8 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
282
289
|
hasActiveBookingAccount?: boolean | undefined;
|
|
283
290
|
hasPendingPaymentAction?: boolean | undefined;
|
|
284
291
|
isKlevioAvailable?: boolean | undefined;
|
|
292
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
293
|
+
publicHostSlug?: string | undefined;
|
|
285
294
|
}>>;
|
|
286
295
|
contentType: z.ZodString;
|
|
287
296
|
body: z.ZodString;
|
|
@@ -438,6 +447,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
438
447
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
439
448
|
photoUrl?: string | undefined;
|
|
440
449
|
isOnboardingPaused?: boolean | undefined;
|
|
450
|
+
notificationsPaused?: boolean | undefined;
|
|
441
451
|
hadOnboardingCall?: boolean | undefined;
|
|
442
452
|
stripeCustomerId?: string | undefined;
|
|
443
453
|
hasFullAccess?: boolean | undefined;
|
|
@@ -452,6 +462,8 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
452
462
|
hasActiveBookingAccount?: boolean | undefined;
|
|
453
463
|
hasPendingPaymentAction?: boolean | undefined;
|
|
454
464
|
isKlevioAvailable?: boolean | undefined;
|
|
465
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
466
|
+
publicHostSlug?: string | undefined;
|
|
455
467
|
} | undefined;
|
|
456
468
|
lastSeen?: import("../../helpers").Timestamp | undefined;
|
|
457
469
|
externalMessageId?: string | undefined;
|
|
@@ -510,6 +522,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
510
522
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
511
523
|
photoUrl?: string | undefined;
|
|
512
524
|
isOnboardingPaused?: boolean | undefined;
|
|
525
|
+
notificationsPaused?: boolean | undefined;
|
|
513
526
|
hadOnboardingCall?: boolean | undefined;
|
|
514
527
|
stripeCustomerId?: string | undefined;
|
|
515
528
|
hasFullAccess?: boolean | undefined;
|
|
@@ -524,6 +537,8 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
524
537
|
hasActiveBookingAccount?: boolean | undefined;
|
|
525
538
|
hasPendingPaymentAction?: boolean | undefined;
|
|
526
539
|
isKlevioAvailable?: boolean | undefined;
|
|
540
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
541
|
+
publicHostSlug?: string | undefined;
|
|
527
542
|
} | undefined;
|
|
528
543
|
lastSeen?: import("../../helpers").Timestamp | undefined;
|
|
529
544
|
externalMessageId?: string | undefined;
|
|
@@ -577,6 +592,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
577
592
|
photoUrl: z.ZodOptional<z.ZodString>;
|
|
578
593
|
isOnboardingCompleted: z.ZodBoolean;
|
|
579
594
|
isOnboardingPaused: z.ZodOptional<z.ZodBoolean>;
|
|
595
|
+
notificationsPaused: z.ZodOptional<z.ZodBoolean>;
|
|
580
596
|
hadOnboardingCall: z.ZodOptional<z.ZodBoolean>;
|
|
581
597
|
userRoleId: z.ZodNumber;
|
|
582
598
|
stripeCustomerId: z.ZodOptional<z.ZodString>;
|
|
@@ -595,6 +611,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
595
611
|
hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
|
|
596
612
|
hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
|
|
597
613
|
isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
614
|
+
stripeTrialSubscriptionId: z.ZodOptional<z.ZodString>;
|
|
615
|
+
publicHostSlug: z.ZodOptional<z.ZodString>;
|
|
598
616
|
}, "strip", z.ZodTypeAny, {
|
|
599
617
|
name: string;
|
|
600
618
|
id: string;
|
|
@@ -612,6 +630,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
612
630
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
613
631
|
photoUrl?: string | undefined;
|
|
614
632
|
isOnboardingPaused?: boolean | undefined;
|
|
633
|
+
notificationsPaused?: boolean | undefined;
|
|
615
634
|
hadOnboardingCall?: boolean | undefined;
|
|
616
635
|
stripeCustomerId?: string | undefined;
|
|
617
636
|
hasFullAccess?: boolean | undefined;
|
|
@@ -626,6 +645,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
626
645
|
hasActiveBookingAccount?: boolean | undefined;
|
|
627
646
|
hasPendingPaymentAction?: boolean | undefined;
|
|
628
647
|
isKlevioAvailable?: boolean | undefined;
|
|
648
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
649
|
+
publicHostSlug?: string | undefined;
|
|
629
650
|
}, {
|
|
630
651
|
name: string;
|
|
631
652
|
id: string;
|
|
@@ -643,6 +664,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
643
664
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
644
665
|
photoUrl?: string | undefined;
|
|
645
666
|
isOnboardingPaused?: boolean | undefined;
|
|
667
|
+
notificationsPaused?: boolean | undefined;
|
|
646
668
|
hadOnboardingCall?: boolean | undefined;
|
|
647
669
|
stripeCustomerId?: string | undefined;
|
|
648
670
|
hasFullAccess?: boolean | undefined;
|
|
@@ -657,6 +679,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
657
679
|
hasActiveBookingAccount?: boolean | undefined;
|
|
658
680
|
hasPendingPaymentAction?: boolean | undefined;
|
|
659
681
|
isKlevioAvailable?: boolean | undefined;
|
|
682
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
683
|
+
publicHostSlug?: string | undefined;
|
|
660
684
|
}>>;
|
|
661
685
|
contentType: z.ZodString;
|
|
662
686
|
body: z.ZodString;
|
|
@@ -813,6 +837,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
813
837
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
814
838
|
photoUrl?: string | undefined;
|
|
815
839
|
isOnboardingPaused?: boolean | undefined;
|
|
840
|
+
notificationsPaused?: boolean | undefined;
|
|
816
841
|
hadOnboardingCall?: boolean | undefined;
|
|
817
842
|
stripeCustomerId?: string | undefined;
|
|
818
843
|
hasFullAccess?: boolean | undefined;
|
|
@@ -827,6 +852,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
827
852
|
hasActiveBookingAccount?: boolean | undefined;
|
|
828
853
|
hasPendingPaymentAction?: boolean | undefined;
|
|
829
854
|
isKlevioAvailable?: boolean | undefined;
|
|
855
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
856
|
+
publicHostSlug?: string | undefined;
|
|
830
857
|
} | undefined;
|
|
831
858
|
lastSeen?: import("../../helpers").Timestamp | undefined;
|
|
832
859
|
externalMessageId?: string | undefined;
|
|
@@ -885,6 +912,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
885
912
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
886
913
|
photoUrl?: string | undefined;
|
|
887
914
|
isOnboardingPaused?: boolean | undefined;
|
|
915
|
+
notificationsPaused?: boolean | undefined;
|
|
888
916
|
hadOnboardingCall?: boolean | undefined;
|
|
889
917
|
stripeCustomerId?: string | undefined;
|
|
890
918
|
hasFullAccess?: boolean | undefined;
|
|
@@ -899,6 +927,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
899
927
|
hasActiveBookingAccount?: boolean | undefined;
|
|
900
928
|
hasPendingPaymentAction?: boolean | undefined;
|
|
901
929
|
isKlevioAvailable?: boolean | undefined;
|
|
930
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
931
|
+
publicHostSlug?: string | undefined;
|
|
902
932
|
} | undefined;
|
|
903
933
|
lastSeen?: import("../../helpers").Timestamp | undefined;
|
|
904
934
|
externalMessageId?: string | undefined;
|
|
@@ -931,7 +961,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
931
961
|
} | undefined;
|
|
932
962
|
}>>;
|
|
933
963
|
participantIds: z.ZodArray<z.ZodString, "many">;
|
|
934
|
-
participants: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
964
|
+
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
935
965
|
id: z.ZodString;
|
|
936
966
|
name: z.ZodString;
|
|
937
967
|
email: z.ZodString;
|
|
@@ -944,6 +974,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
944
974
|
photoUrl: z.ZodOptional<z.ZodString>;
|
|
945
975
|
isOnboardingCompleted: z.ZodBoolean;
|
|
946
976
|
isOnboardingPaused: z.ZodOptional<z.ZodBoolean>;
|
|
977
|
+
notificationsPaused: z.ZodOptional<z.ZodBoolean>;
|
|
947
978
|
hadOnboardingCall: z.ZodOptional<z.ZodBoolean>;
|
|
948
979
|
userRoleId: z.ZodNumber;
|
|
949
980
|
stripeCustomerId: z.ZodOptional<z.ZodString>;
|
|
@@ -962,7 +993,9 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
962
993
|
hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
|
|
963
994
|
hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
|
|
964
995
|
isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
965
|
-
|
|
996
|
+
stripeTrialSubscriptionId: z.ZodOptional<z.ZodString>;
|
|
997
|
+
publicHostSlug: z.ZodOptional<z.ZodString>;
|
|
998
|
+
} & {
|
|
966
999
|
userRole: z.ZodOptional<z.ZodObject<{
|
|
967
1000
|
id: z.ZodNumber;
|
|
968
1001
|
name: z.ZodString;
|
|
@@ -979,7 +1012,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
979
1012
|
createdAt: Date;
|
|
980
1013
|
updatedAt: Date;
|
|
981
1014
|
}>>;
|
|
982
|
-
}
|
|
1015
|
+
}, "strip", z.ZodTypeAny, {
|
|
983
1016
|
name: string;
|
|
984
1017
|
id: string;
|
|
985
1018
|
email: string;
|
|
@@ -996,6 +1029,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
996
1029
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
997
1030
|
photoUrl?: string | undefined;
|
|
998
1031
|
isOnboardingPaused?: boolean | undefined;
|
|
1032
|
+
notificationsPaused?: boolean | undefined;
|
|
999
1033
|
hadOnboardingCall?: boolean | undefined;
|
|
1000
1034
|
stripeCustomerId?: string | undefined;
|
|
1001
1035
|
hasFullAccess?: boolean | undefined;
|
|
@@ -1010,6 +1044,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1010
1044
|
hasActiveBookingAccount?: boolean | undefined;
|
|
1011
1045
|
hasPendingPaymentAction?: boolean | undefined;
|
|
1012
1046
|
isKlevioAvailable?: boolean | undefined;
|
|
1047
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
1048
|
+
publicHostSlug?: string | undefined;
|
|
1013
1049
|
userRole?: {
|
|
1014
1050
|
name: string;
|
|
1015
1051
|
id: number;
|
|
@@ -1033,6 +1069,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1033
1069
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
1034
1070
|
photoUrl?: string | undefined;
|
|
1035
1071
|
isOnboardingPaused?: boolean | undefined;
|
|
1072
|
+
notificationsPaused?: boolean | undefined;
|
|
1036
1073
|
hadOnboardingCall?: boolean | undefined;
|
|
1037
1074
|
stripeCustomerId?: string | undefined;
|
|
1038
1075
|
hasFullAccess?: boolean | undefined;
|
|
@@ -1047,6 +1084,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1047
1084
|
hasActiveBookingAccount?: boolean | undefined;
|
|
1048
1085
|
hasPendingPaymentAction?: boolean | undefined;
|
|
1049
1086
|
isKlevioAvailable?: boolean | undefined;
|
|
1087
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
1088
|
+
publicHostSlug?: string | undefined;
|
|
1050
1089
|
userRole?: {
|
|
1051
1090
|
name: string;
|
|
1052
1091
|
id: number;
|
|
@@ -1065,7 +1104,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1065
1104
|
needsAttentionMap: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1066
1105
|
propertyId: z.ZodOptional<z.ZodNumber>;
|
|
1067
1106
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1068
|
-
reservation: z.ZodOptional<z.ZodObject<
|
|
1107
|
+
reservation: z.ZodOptional<z.ZodObject<Pick<{
|
|
1069
1108
|
id: z.ZodNumber;
|
|
1070
1109
|
status: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
|
|
1071
1110
|
currency: z.ZodString;
|
|
@@ -1089,6 +1128,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1089
1128
|
checkedOutMark: z.ZodOptional<z.ZodDate>;
|
|
1090
1129
|
threadId: z.ZodOptional<z.ZodString>;
|
|
1091
1130
|
paymentLink: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
1092
1132
|
readyForPayout: z.ZodBoolean;
|
|
1093
1133
|
paidOut: z.ZodBoolean;
|
|
1094
1134
|
payoutId: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1197,7 +1237,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1197
1237
|
}[] | undefined;
|
|
1198
1238
|
}>>;
|
|
1199
1239
|
isUnitChanged: z.ZodBoolean;
|
|
1200
|
-
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"
|
|
1240
|
+
}, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"> & {
|
|
1201
1241
|
propertyNickname: z.ZodOptional<z.ZodString>;
|
|
1202
1242
|
property: z.ZodOptional<z.ZodObject<{
|
|
1203
1243
|
id: z.ZodNumber;
|
|
@@ -1229,6 +1269,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1229
1269
|
vat: z.ZodOptional<z.ZodString>;
|
|
1230
1270
|
customBundleId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1231
1271
|
onboardingPlanChoice: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"HANDS_FREE_PRO">, z.ZodLiteral<"CUSTOM_BUILD">]>>;
|
|
1272
|
+
hasAvailability: z.ZodOptional<z.ZodBoolean>;
|
|
1273
|
+
publicListingSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1232
1274
|
}, "strip", z.ZodTypeAny, {
|
|
1233
1275
|
id: number;
|
|
1234
1276
|
title: string;
|
|
@@ -1259,6 +1301,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1259
1301
|
vat?: string | undefined;
|
|
1260
1302
|
customBundleId?: number | null | undefined;
|
|
1261
1303
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1304
|
+
hasAvailability?: boolean | undefined;
|
|
1305
|
+
publicListingSlug?: string | null | undefined;
|
|
1262
1306
|
}, {
|
|
1263
1307
|
id: number;
|
|
1264
1308
|
title: string;
|
|
@@ -1289,8 +1333,10 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1289
1333
|
vat?: string | undefined;
|
|
1290
1334
|
customBundleId?: number | null | undefined;
|
|
1291
1335
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1336
|
+
hasAvailability?: boolean | undefined;
|
|
1337
|
+
publicListingSlug?: string | null | undefined;
|
|
1292
1338
|
}>>;
|
|
1293
|
-
}
|
|
1339
|
+
}, "strip", z.ZodTypeAny, {
|
|
1294
1340
|
id: number;
|
|
1295
1341
|
status: "PENDING" | "CONFIRMED" | "CANCELLED";
|
|
1296
1342
|
propertyId: number;
|
|
@@ -1327,6 +1373,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1327
1373
|
vat?: string | undefined;
|
|
1328
1374
|
customBundleId?: number | null | undefined;
|
|
1329
1375
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1376
|
+
hasAvailability?: boolean | undefined;
|
|
1377
|
+
publicListingSlug?: string | null | undefined;
|
|
1330
1378
|
} | undefined;
|
|
1331
1379
|
propertyNickname?: string | undefined;
|
|
1332
1380
|
}, {
|
|
@@ -1366,6 +1414,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1366
1414
|
vat?: string | undefined;
|
|
1367
1415
|
customBundleId?: number | null | undefined;
|
|
1368
1416
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1417
|
+
hasAvailability?: boolean | undefined;
|
|
1418
|
+
publicListingSlug?: string | null | undefined;
|
|
1369
1419
|
} | undefined;
|
|
1370
1420
|
propertyNickname?: string | undefined;
|
|
1371
1421
|
}>>;
|
|
@@ -1386,6 +1436,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1386
1436
|
photoUrl: z.ZodOptional<z.ZodString>;
|
|
1387
1437
|
isOnboardingCompleted: z.ZodBoolean;
|
|
1388
1438
|
isOnboardingPaused: z.ZodOptional<z.ZodBoolean>;
|
|
1439
|
+
notificationsPaused: z.ZodOptional<z.ZodBoolean>;
|
|
1389
1440
|
hadOnboardingCall: z.ZodOptional<z.ZodBoolean>;
|
|
1390
1441
|
userRoleId: z.ZodNumber;
|
|
1391
1442
|
stripeCustomerId: z.ZodOptional<z.ZodString>;
|
|
@@ -1404,6 +1455,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1404
1455
|
hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
|
|
1405
1456
|
hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
|
|
1406
1457
|
isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
1458
|
+
stripeTrialSubscriptionId: z.ZodOptional<z.ZodString>;
|
|
1459
|
+
publicHostSlug: z.ZodOptional<z.ZodString>;
|
|
1407
1460
|
}, "name" | "id" | "email" | "firstName" | "lastName" | "phone" | "photoUrl" | "userRoleId">, "strip", z.ZodTypeAny, {
|
|
1408
1461
|
name: string;
|
|
1409
1462
|
id: string;
|
|
@@ -1436,6 +1489,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1436
1489
|
photoUrl: z.ZodOptional<z.ZodString>;
|
|
1437
1490
|
isOnboardingCompleted: z.ZodBoolean;
|
|
1438
1491
|
isOnboardingPaused: z.ZodOptional<z.ZodBoolean>;
|
|
1492
|
+
notificationsPaused: z.ZodOptional<z.ZodBoolean>;
|
|
1439
1493
|
hadOnboardingCall: z.ZodOptional<z.ZodBoolean>;
|
|
1440
1494
|
userRoleId: z.ZodNumber;
|
|
1441
1495
|
stripeCustomerId: z.ZodOptional<z.ZodString>;
|
|
@@ -1454,6 +1508,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1454
1508
|
hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
|
|
1455
1509
|
hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
|
|
1456
1510
|
isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
1511
|
+
stripeTrialSubscriptionId: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
publicHostSlug: z.ZodOptional<z.ZodString>;
|
|
1457
1513
|
}, "name" | "id" | "firstName" | "lastName" | "photoUrl">, "strip", z.ZodTypeAny, {
|
|
1458
1514
|
name: string;
|
|
1459
1515
|
id: string;
|
|
@@ -1525,6 +1581,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1525
1581
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
1526
1582
|
photoUrl?: string | undefined;
|
|
1527
1583
|
isOnboardingPaused?: boolean | undefined;
|
|
1584
|
+
notificationsPaused?: boolean | undefined;
|
|
1528
1585
|
hadOnboardingCall?: boolean | undefined;
|
|
1529
1586
|
stripeCustomerId?: string | undefined;
|
|
1530
1587
|
hasFullAccess?: boolean | undefined;
|
|
@@ -1539,6 +1596,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1539
1596
|
hasActiveBookingAccount?: boolean | undefined;
|
|
1540
1597
|
hasPendingPaymentAction?: boolean | undefined;
|
|
1541
1598
|
isKlevioAvailable?: boolean | undefined;
|
|
1599
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
1600
|
+
publicHostSlug?: string | undefined;
|
|
1542
1601
|
} | undefined;
|
|
1543
1602
|
lastSeen?: import("../../helpers").Timestamp | undefined;
|
|
1544
1603
|
externalMessageId?: string | undefined;
|
|
@@ -1587,6 +1646,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1587
1646
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
1588
1647
|
photoUrl?: string | undefined;
|
|
1589
1648
|
isOnboardingPaused?: boolean | undefined;
|
|
1649
|
+
notificationsPaused?: boolean | undefined;
|
|
1590
1650
|
hadOnboardingCall?: boolean | undefined;
|
|
1591
1651
|
stripeCustomerId?: string | undefined;
|
|
1592
1652
|
hasFullAccess?: boolean | undefined;
|
|
@@ -1601,6 +1661,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1601
1661
|
hasActiveBookingAccount?: boolean | undefined;
|
|
1602
1662
|
hasPendingPaymentAction?: boolean | undefined;
|
|
1603
1663
|
isKlevioAvailable?: boolean | undefined;
|
|
1664
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
1665
|
+
publicHostSlug?: string | undefined;
|
|
1604
1666
|
userRole?: {
|
|
1605
1667
|
name: string;
|
|
1606
1668
|
id: number;
|
|
@@ -1649,6 +1711,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1649
1711
|
vat?: string | undefined;
|
|
1650
1712
|
customBundleId?: number | null | undefined;
|
|
1651
1713
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1714
|
+
hasAvailability?: boolean | undefined;
|
|
1715
|
+
publicListingSlug?: string | null | undefined;
|
|
1652
1716
|
} | undefined;
|
|
1653
1717
|
propertyNickname?: string | undefined;
|
|
1654
1718
|
} | undefined;
|
|
@@ -1719,6 +1783,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1719
1783
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
1720
1784
|
photoUrl?: string | undefined;
|
|
1721
1785
|
isOnboardingPaused?: boolean | undefined;
|
|
1786
|
+
notificationsPaused?: boolean | undefined;
|
|
1722
1787
|
hadOnboardingCall?: boolean | undefined;
|
|
1723
1788
|
stripeCustomerId?: string | undefined;
|
|
1724
1789
|
hasFullAccess?: boolean | undefined;
|
|
@@ -1733,6 +1798,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1733
1798
|
hasActiveBookingAccount?: boolean | undefined;
|
|
1734
1799
|
hasPendingPaymentAction?: boolean | undefined;
|
|
1735
1800
|
isKlevioAvailable?: boolean | undefined;
|
|
1801
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
1802
|
+
publicHostSlug?: string | undefined;
|
|
1736
1803
|
} | undefined;
|
|
1737
1804
|
lastSeen?: import("../../helpers").Timestamp | undefined;
|
|
1738
1805
|
externalMessageId?: string | undefined;
|
|
@@ -1781,6 +1848,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1781
1848
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
1782
1849
|
photoUrl?: string | undefined;
|
|
1783
1850
|
isOnboardingPaused?: boolean | undefined;
|
|
1851
|
+
notificationsPaused?: boolean | undefined;
|
|
1784
1852
|
hadOnboardingCall?: boolean | undefined;
|
|
1785
1853
|
stripeCustomerId?: string | undefined;
|
|
1786
1854
|
hasFullAccess?: boolean | undefined;
|
|
@@ -1795,6 +1863,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1795
1863
|
hasActiveBookingAccount?: boolean | undefined;
|
|
1796
1864
|
hasPendingPaymentAction?: boolean | undefined;
|
|
1797
1865
|
isKlevioAvailable?: boolean | undefined;
|
|
1866
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
1867
|
+
publicHostSlug?: string | undefined;
|
|
1798
1868
|
userRole?: {
|
|
1799
1869
|
name: string;
|
|
1800
1870
|
id: number;
|
|
@@ -1843,6 +1913,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
|
|
|
1843
1913
|
vat?: string | undefined;
|
|
1844
1914
|
customBundleId?: number | null | undefined;
|
|
1845
1915
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
1916
|
+
hasAvailability?: boolean | undefined;
|
|
1917
|
+
publicListingSlug?: string | null | undefined;
|
|
1846
1918
|
} | undefined;
|
|
1847
1919
|
propertyNickname?: string | undefined;
|
|
1848
1920
|
} | undefined;
|
|
@@ -11,6 +11,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
11
11
|
photoUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
12
|
isOnboardingCompleted: import("zod").ZodBoolean;
|
|
13
13
|
isOnboardingPaused: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
14
|
+
notificationsPaused: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
14
15
|
hadOnboardingCall: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
15
16
|
userRoleId: import("zod").ZodNumber;
|
|
16
17
|
stripeCustomerId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -29,6 +30,8 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
29
30
|
hasActiveBookingAccount: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
30
31
|
hasPendingPaymentAction: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
31
32
|
isKlevioAvailable: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
33
|
+
stripeTrialSubscriptionId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
publicHostSlug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
35
|
}, "strip", import("zod").ZodTypeAny, {
|
|
33
36
|
name: string;
|
|
34
37
|
id: string;
|
|
@@ -46,6 +49,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
46
49
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
47
50
|
photoUrl?: string | undefined;
|
|
48
51
|
isOnboardingPaused?: boolean | undefined;
|
|
52
|
+
notificationsPaused?: boolean | undefined;
|
|
49
53
|
hadOnboardingCall?: boolean | undefined;
|
|
50
54
|
stripeCustomerId?: string | undefined;
|
|
51
55
|
hasFullAccess?: boolean | undefined;
|
|
@@ -60,6 +64,8 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
60
64
|
hasActiveBookingAccount?: boolean | undefined;
|
|
61
65
|
hasPendingPaymentAction?: boolean | undefined;
|
|
62
66
|
isKlevioAvailable?: boolean | undefined;
|
|
67
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
68
|
+
publicHostSlug?: string | undefined;
|
|
63
69
|
}, {
|
|
64
70
|
name: string;
|
|
65
71
|
id: string;
|
|
@@ -77,6 +83,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
77
83
|
position?: "product" | "bookkeper" | "customer-experience" | "customer-experience-head" | "guest-coordinator" | "guest-coordinator-head" | "property-manager" | "property-manager-head" | "account-manager" | "account-manager-head" | "developer" | "finance" | "finance-head" | "marketing" | "marketing-head" | "product-head" | undefined;
|
|
78
84
|
photoUrl?: string | undefined;
|
|
79
85
|
isOnboardingPaused?: boolean | undefined;
|
|
86
|
+
notificationsPaused?: boolean | undefined;
|
|
80
87
|
hadOnboardingCall?: boolean | undefined;
|
|
81
88
|
stripeCustomerId?: string | undefined;
|
|
82
89
|
hasFullAccess?: boolean | undefined;
|
|
@@ -91,4 +98,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
91
98
|
hasActiveBookingAccount?: boolean | undefined;
|
|
92
99
|
hasPendingPaymentAction?: boolean | undefined;
|
|
93
100
|
isKlevioAvailable?: boolean | undefined;
|
|
101
|
+
stripeTrialSubscriptionId?: string | undefined;
|
|
102
|
+
publicHostSlug?: string | undefined;
|
|
94
103
|
}>;
|
|
@@ -15,6 +15,7 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
15
15
|
photoUrl: (0, zod_1.string)().optional(),
|
|
16
16
|
isOnboardingCompleted: (0, zod_1.boolean)(),
|
|
17
17
|
isOnboardingPaused: (0, zod_1.boolean)().optional(),
|
|
18
|
+
notificationsPaused: (0, zod_1.boolean)().optional(),
|
|
18
19
|
hadOnboardingCall: (0, zod_1.boolean)().optional(),
|
|
19
20
|
userRoleId: (0, zod_1.number)(),
|
|
20
21
|
stripeCustomerId: (0, zod_1.string)().optional(),
|
|
@@ -54,4 +55,6 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
54
55
|
hasActiveBookingAccount: (0, zod_1.boolean)().optional(),
|
|
55
56
|
hasPendingPaymentAction: (0, zod_1.boolean)().optional(),
|
|
56
57
|
isKlevioAvailable: (0, zod_1.boolean)().optional(),
|
|
58
|
+
stripeTrialSubscriptionId: (0, zod_1.string)().optional(),
|
|
59
|
+
publicHostSlug: (0, zod_1.string)().optional(),
|
|
57
60
|
});
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { WebhookDeliveryStatus, WebhookEndpointStatus } from "../../types/enums";
|
|
3
|
+
export declare const webhookEndpointSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
userId: z.ZodString;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
secret: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
events: z.ZodArray<z.ZodString, "many">;
|
|
10
|
+
status: z.ZodNativeEnum<typeof WebhookEndpointStatus>;
|
|
11
|
+
apiKeyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
createdAt: z.ZodDate;
|
|
13
|
+
updatedAt: z.ZodDate;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
id: string;
|
|
16
|
+
url: string;
|
|
17
|
+
secret: string;
|
|
18
|
+
status: WebhookEndpointStatus;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
userId: string;
|
|
22
|
+
events: string[];
|
|
23
|
+
description?: string | null | undefined;
|
|
24
|
+
apiKeyId?: string | null | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
id: string;
|
|
27
|
+
url: string;
|
|
28
|
+
secret: string;
|
|
29
|
+
status: WebhookEndpointStatus;
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
updatedAt: Date;
|
|
32
|
+
userId: string;
|
|
33
|
+
events: string[];
|
|
34
|
+
description?: string | null | undefined;
|
|
35
|
+
apiKeyId?: string | null | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const webhookEventSchema: z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
userId: z.ZodString;
|
|
40
|
+
type: z.ZodString;
|
|
41
|
+
payload: z.ZodUnknown;
|
|
42
|
+
propertyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
roomId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
createdAt: z.ZodDate;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
type: string;
|
|
48
|
+
id: string;
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
userId: string;
|
|
51
|
+
source?: string | null | undefined;
|
|
52
|
+
propertyId?: number | null | undefined;
|
|
53
|
+
roomId?: number | null | undefined;
|
|
54
|
+
payload?: unknown;
|
|
55
|
+
}, {
|
|
56
|
+
type: string;
|
|
57
|
+
id: string;
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
userId: string;
|
|
60
|
+
source?: string | null | undefined;
|
|
61
|
+
propertyId?: number | null | undefined;
|
|
62
|
+
roomId?: number | null | undefined;
|
|
63
|
+
payload?: unknown;
|
|
64
|
+
}>;
|
|
65
|
+
export declare const webhookDeliverySchema: z.ZodObject<{
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
endpointId: z.ZodString;
|
|
68
|
+
eventId: z.ZodString;
|
|
69
|
+
status: z.ZodNativeEnum<typeof WebhookDeliveryStatus>;
|
|
70
|
+
attemptCount: z.ZodNumber;
|
|
71
|
+
maxAttempts: z.ZodNumber;
|
|
72
|
+
lastAttemptAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
73
|
+
responseStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
74
|
+
responseBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
createdAt: z.ZodDate;
|
|
77
|
+
updatedAt: z.ZodDate;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
id: string;
|
|
80
|
+
status: WebhookDeliveryStatus;
|
|
81
|
+
createdAt: Date;
|
|
82
|
+
updatedAt: Date;
|
|
83
|
+
eventId: string;
|
|
84
|
+
endpointId: string;
|
|
85
|
+
attemptCount: number;
|
|
86
|
+
maxAttempts: number;
|
|
87
|
+
error?: string | null | undefined;
|
|
88
|
+
lastAttemptAt?: Date | null | undefined;
|
|
89
|
+
responseStatus?: number | null | undefined;
|
|
90
|
+
responseBody?: string | null | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
id: string;
|
|
93
|
+
status: WebhookDeliveryStatus;
|
|
94
|
+
createdAt: Date;
|
|
95
|
+
updatedAt: Date;
|
|
96
|
+
eventId: string;
|
|
97
|
+
endpointId: string;
|
|
98
|
+
attemptCount: number;
|
|
99
|
+
maxAttempts: number;
|
|
100
|
+
error?: string | null | undefined;
|
|
101
|
+
lastAttemptAt?: Date | null | undefined;
|
|
102
|
+
responseStatus?: number | null | undefined;
|
|
103
|
+
responseBody?: string | null | undefined;
|
|
104
|
+
}>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webhookDeliverySchema = exports.webhookEventSchema = exports.webhookEndpointSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.webhookEndpointSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.string)(),
|
|
8
|
+
userId: (0, zod_1.string)(),
|
|
9
|
+
url: (0, zod_1.string)(),
|
|
10
|
+
secret: (0, zod_1.string)(),
|
|
11
|
+
description: (0, zod_1.string)().nullish(),
|
|
12
|
+
events: (0, zod_1.string)().array(),
|
|
13
|
+
status: (0, zod_1.nativeEnum)(enums_1.WebhookEndpointStatus),
|
|
14
|
+
apiKeyId: (0, zod_1.string)().nullish(),
|
|
15
|
+
createdAt: (0, zod_1.date)(),
|
|
16
|
+
updatedAt: (0, zod_1.date)(),
|
|
17
|
+
});
|
|
18
|
+
exports.webhookEventSchema = (0, zod_1.object)({
|
|
19
|
+
id: (0, zod_1.string)(),
|
|
20
|
+
userId: (0, zod_1.string)(),
|
|
21
|
+
type: (0, zod_1.string)(),
|
|
22
|
+
payload: zod_1.z.unknown(),
|
|
23
|
+
propertyId: (0, zod_1.number)().int().nullish(),
|
|
24
|
+
roomId: (0, zod_1.number)().int().nullish(),
|
|
25
|
+
source: (0, zod_1.string)().nullish(),
|
|
26
|
+
createdAt: (0, zod_1.date)(),
|
|
27
|
+
});
|
|
28
|
+
exports.webhookDeliverySchema = (0, zod_1.object)({
|
|
29
|
+
id: (0, zod_1.string)(),
|
|
30
|
+
endpointId: (0, zod_1.string)(),
|
|
31
|
+
eventId: (0, zod_1.string)(),
|
|
32
|
+
status: (0, zod_1.nativeEnum)(enums_1.WebhookDeliveryStatus),
|
|
33
|
+
attemptCount: (0, zod_1.number)().int(),
|
|
34
|
+
maxAttempts: (0, zod_1.number)().int(),
|
|
35
|
+
lastAttemptAt: (0, zod_1.date)().nullish(),
|
|
36
|
+
responseStatus: (0, zod_1.number)().int().nullish(),
|
|
37
|
+
responseBody: (0, zod_1.string)().nullish(),
|
|
38
|
+
error: (0, zod_1.string)().nullish(),
|
|
39
|
+
createdAt: (0, zod_1.date)(),
|
|
40
|
+
updatedAt: (0, zod_1.date)(),
|
|
41
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { infer } from "zod";
|
|
2
|
+
import { apiKeySchema, apiKeyUsageLogSchema } from "../../schemas/api-key";
|
|
3
|
+
import { User } from "../user";
|
|
4
|
+
export interface ApiKey extends infer<typeof apiKeySchema> {
|
|
5
|
+
user?: User | null;
|
|
6
|
+
usageLogs?: ApiKeyUsageLog[];
|
|
7
|
+
}
|
|
8
|
+
export interface ApiKeyUsageLog extends infer<typeof apiKeyUsageLogSchema> {
|
|
9
|
+
apiKey?: ApiKey;
|
|
10
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { infer } from "zod";
|
|
2
2
|
import { bookingSettingsSchema } from "../../schemas/booking-settings";
|
|
3
3
|
import { Property } from "../property";
|
|
4
|
+
import { ListingExpectation } from "../listing-expectation";
|
|
4
5
|
export interface BookingSettings extends infer<typeof bookingSettingsSchema> {
|
|
5
6
|
property?: Property;
|
|
7
|
+
listingExpectations?: ListingExpectation[];
|
|
6
8
|
}
|