hububb-saas-shared 1.1.78 → 1.1.80

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.
@@ -66,3 +66,4 @@ export * from "./custom-bundle-service";
66
66
  export * from "./custom-bundle-coupon";
67
67
  export * from "./pending-payment-action";
68
68
  export * from "./seam";
69
+ export * from "./klevio";
@@ -82,3 +82,4 @@ __exportStar(require("./custom-bundle-service"), exports);
82
82
  __exportStar(require("./custom-bundle-coupon"), exports);
83
83
  __exportStar(require("./pending-payment-action"), exports);
84
84
  __exportStar(require("./seam"), exports);
85
+ __exportStar(require("./klevio"), exports);
@@ -0,0 +1,170 @@
1
+ import { z } from "zod";
2
+ export declare const klevioLockActionSchema: z.ZodEnum<["UNLOCK_LOCK", "OPEN"]>;
3
+ export declare const klevioAccountSchema: z.ZodObject<{
4
+ id: z.ZodNumber;
5
+ userId: z.ZodString;
6
+ apiKeyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ publicKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ isActive: z.ZodBoolean;
11
+ createdAt: z.ZodDate;
12
+ updatedAt: z.ZodDate;
13
+ }, "strip", z.ZodTypeAny, {
14
+ id: number;
15
+ createdAt: Date;
16
+ updatedAt: Date;
17
+ userId: string;
18
+ isActive: boolean;
19
+ name?: string | null | undefined;
20
+ apiKeyId?: string | null | undefined;
21
+ clientId?: string | null | undefined;
22
+ publicKey?: string | null | undefined;
23
+ }, {
24
+ id: number;
25
+ createdAt: Date;
26
+ updatedAt: Date;
27
+ userId: string;
28
+ isActive: boolean;
29
+ name?: string | null | undefined;
30
+ apiKeyId?: string | null | undefined;
31
+ clientId?: string | null | undefined;
32
+ publicKey?: string | null | undefined;
33
+ }>;
34
+ export declare const klevioLockSchema: z.ZodObject<{
35
+ id: z.ZodNumber;
36
+ klevioAccountId: z.ZodNumber;
37
+ klevioPropertyId: z.ZodString;
38
+ name: z.ZodString;
39
+ action: z.ZodEnum<["UNLOCK_LOCK", "OPEN"]>;
40
+ isConnected: z.ZodBoolean;
41
+ availableActions: z.ZodArray<z.ZodString, "many">;
42
+ hasKeypad: z.ZodBoolean;
43
+ masterKeyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ createdAt: z.ZodDate;
45
+ updatedAt: z.ZodDate;
46
+ }, "strip", z.ZodTypeAny, {
47
+ name: string;
48
+ id: number;
49
+ action: "UNLOCK_LOCK" | "OPEN";
50
+ isConnected: boolean;
51
+ createdAt: Date;
52
+ updatedAt: Date;
53
+ klevioAccountId: number;
54
+ klevioPropertyId: string;
55
+ availableActions: string[];
56
+ hasKeypad: boolean;
57
+ masterKeyId?: string | null | undefined;
58
+ }, {
59
+ name: string;
60
+ id: number;
61
+ action: "UNLOCK_LOCK" | "OPEN";
62
+ isConnected: boolean;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ klevioAccountId: number;
66
+ klevioPropertyId: string;
67
+ availableActions: string[];
68
+ hasKeypad: boolean;
69
+ masterKeyId?: string | null | undefined;
70
+ }>;
71
+ export declare const propertyKlevioLockSchema: z.ZodObject<{
72
+ id: z.ZodNumber;
73
+ propertyId: z.ZodNumber;
74
+ klevioLockId: z.ZodNumber;
75
+ isShared: z.ZodBoolean;
76
+ createdAt: z.ZodDate;
77
+ updatedAt: z.ZodDate;
78
+ }, "strip", z.ZodTypeAny, {
79
+ id: number;
80
+ createdAt: Date;
81
+ updatedAt: Date;
82
+ propertyId: number;
83
+ isShared: boolean;
84
+ klevioLockId: number;
85
+ }, {
86
+ id: number;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ propertyId: number;
90
+ isShared: boolean;
91
+ klevioLockId: number;
92
+ }>;
93
+ export declare const klevioKeySchema: z.ZodObject<{
94
+ id: z.ZodString;
95
+ klevioAccountId: z.ZodNumber;
96
+ klevioPropertyId: z.ZodString;
97
+ reservationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
98
+ taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
99
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
101
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
102
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ meta: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
104
+ createdAt: z.ZodDate;
105
+ updatedAt: z.ZodDate;
106
+ }, "strip", z.ZodTypeAny, {
107
+ id: string;
108
+ createdAt: Date;
109
+ updatedAt: Date;
110
+ klevioAccountId: number;
111
+ klevioPropertyId: string;
112
+ meta?: unknown;
113
+ email?: string | null | undefined;
114
+ status?: string | null | undefined;
115
+ reservationId?: number | null | undefined;
116
+ from?: Date | null | undefined;
117
+ taskId?: number | null | undefined;
118
+ to?: Date | null | undefined;
119
+ }, {
120
+ id: string;
121
+ createdAt: Date;
122
+ updatedAt: Date;
123
+ klevioAccountId: number;
124
+ klevioPropertyId: string;
125
+ meta?: unknown;
126
+ email?: string | null | undefined;
127
+ status?: string | null | undefined;
128
+ reservationId?: number | null | undefined;
129
+ from?: Date | null | undefined;
130
+ taskId?: number | null | undefined;
131
+ to?: Date | null | undefined;
132
+ }>;
133
+ export declare const klevioLockPreviewSchema: z.ZodObject<{
134
+ name: z.ZodString;
135
+ isConnected: z.ZodBoolean;
136
+ availableActions: z.ZodArray<z.ZodString, "many">;
137
+ hasKeypad: z.ZodBoolean;
138
+ masterKeyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ suggestedAction: z.ZodEnum<["UNLOCK_LOCK", "OPEN"]>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ name: string;
142
+ isConnected: boolean;
143
+ availableActions: string[];
144
+ hasKeypad: boolean;
145
+ suggestedAction: "UNLOCK_LOCK" | "OPEN";
146
+ masterKeyId?: string | null | undefined;
147
+ }, {
148
+ name: string;
149
+ isConnected: boolean;
150
+ availableActions: string[];
151
+ hasKeypad: boolean;
152
+ suggestedAction: "UNLOCK_LOCK" | "OPEN";
153
+ masterKeyId?: string | null | undefined;
154
+ }>;
155
+ export declare const lockControlResponseSchema: z.ZodObject<{
156
+ success: z.ZodBoolean;
157
+ lockId: z.ZodNumber;
158
+ lockName: z.ZodString;
159
+ action: z.ZodString;
160
+ }, "strip", z.ZodTypeAny, {
161
+ action: string;
162
+ success: boolean;
163
+ lockId: number;
164
+ lockName: string;
165
+ }, {
166
+ action: string;
167
+ success: boolean;
168
+ lockId: number;
169
+ lockName: string;
170
+ }>;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lockControlResponseSchema = exports.klevioLockPreviewSchema = exports.klevioKeySchema = exports.propertyKlevioLockSchema = exports.klevioLockSchema = exports.klevioAccountSchema = exports.klevioLockActionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.klevioLockActionSchema = zod_1.z.enum(["UNLOCK_LOCK", "OPEN"]);
6
+ exports.klevioAccountSchema = zod_1.z.object({
7
+ id: zod_1.z.number().int(),
8
+ userId: zod_1.z.string(),
9
+ apiKeyId: zod_1.z.string().nullish(),
10
+ clientId: zod_1.z.string().nullish(),
11
+ name: zod_1.z.string().nullish(),
12
+ publicKey: zod_1.z.string().nullish(),
13
+ isActive: zod_1.z.boolean(),
14
+ createdAt: zod_1.z.date(),
15
+ updatedAt: zod_1.z.date(),
16
+ });
17
+ exports.klevioLockSchema = zod_1.z.object({
18
+ id: zod_1.z.number().int(),
19
+ klevioAccountId: zod_1.z.number().int(),
20
+ klevioPropertyId: zod_1.z.string(),
21
+ name: zod_1.z.string(),
22
+ action: exports.klevioLockActionSchema,
23
+ isConnected: zod_1.z.boolean(),
24
+ availableActions: zod_1.z.array(zod_1.z.string()),
25
+ hasKeypad: zod_1.z.boolean(),
26
+ masterKeyId: zod_1.z.string().nullish(),
27
+ createdAt: zod_1.z.date(),
28
+ updatedAt: zod_1.z.date(),
29
+ });
30
+ exports.propertyKlevioLockSchema = zod_1.z.object({
31
+ id: zod_1.z.number().int(),
32
+ propertyId: zod_1.z.number().int(),
33
+ klevioLockId: zod_1.z.number().int(),
34
+ isShared: zod_1.z.boolean(),
35
+ createdAt: zod_1.z.date(),
36
+ updatedAt: zod_1.z.date(),
37
+ });
38
+ exports.klevioKeySchema = zod_1.z.object({
39
+ id: zod_1.z.string(),
40
+ klevioAccountId: zod_1.z.number().int(),
41
+ klevioPropertyId: zod_1.z.string(),
42
+ reservationId: zod_1.z.number().int().nullish(),
43
+ taskId: zod_1.z.number().int().nullish(),
44
+ email: zod_1.z.string().nullish(),
45
+ from: zod_1.z.date().nullish(),
46
+ to: zod_1.z.date().nullish(),
47
+ status: zod_1.z.string().nullish(),
48
+ meta: zod_1.z.unknown().nullish(),
49
+ createdAt: zod_1.z.date(),
50
+ updatedAt: zod_1.z.date(),
51
+ });
52
+ exports.klevioLockPreviewSchema = zod_1.z.object({
53
+ name: zod_1.z.string(),
54
+ isConnected: zod_1.z.boolean(),
55
+ availableActions: zod_1.z.array(zod_1.z.string()),
56
+ hasKeypad: zod_1.z.boolean(),
57
+ masterKeyId: zod_1.z.string().nullish(),
58
+ suggestedAction: exports.klevioLockActionSchema,
59
+ });
60
+ exports.lockControlResponseSchema = zod_1.z.object({
61
+ success: zod_1.z.boolean(),
62
+ lockId: zod_1.z.number().int(),
63
+ lockName: zod_1.z.string(),
64
+ action: zod_1.z.string(),
65
+ });
@@ -34,6 +34,7 @@ export declare const taskCommentSchema: import("zod").ZodObject<{
34
34
  internalNotes: import("zod").ZodOptional<import("zod").ZodString>;
35
35
  hasActiveBookingAccount: import("zod").ZodOptional<import("zod").ZodBoolean>;
36
36
  hasPendingPaymentAction: import("zod").ZodOptional<import("zod").ZodBoolean>;
37
+ isKlevioAvailable: import("zod").ZodOptional<import("zod").ZodBoolean>;
37
38
  }, "name" | "id" | "email" | "firstName" | "lastName" | "phone" | "photoUrl" | "userRoleId">, "strip", import("zod").ZodTypeAny, {
38
39
  name: string;
39
40
  id: string;
@@ -156,6 +157,7 @@ export declare const taskThreadSchema: import("zod").ZodObject<{
156
157
  internalNotes: import("zod").ZodOptional<import("zod").ZodString>;
157
158
  hasActiveBookingAccount: import("zod").ZodOptional<import("zod").ZodBoolean>;
158
159
  hasPendingPaymentAction: import("zod").ZodOptional<import("zod").ZodBoolean>;
160
+ isKlevioAvailable: import("zod").ZodOptional<import("zod").ZodBoolean>;
159
161
  }, "name" | "id" | "email" | "firstName" | "lastName" | "phone" | "photoUrl" | "userRoleId">, "strip", import("zod").ZodTypeAny, {
160
162
  name: string;
161
163
  id: string;
@@ -219,6 +219,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
219
219
  internalNotes: z.ZodOptional<z.ZodString>;
220
220
  hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
221
221
  hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
222
+ isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
222
223
  }, "strip", z.ZodTypeAny, {
223
224
  name: string;
224
225
  id: string;
@@ -249,6 +250,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
249
250
  internalNotes?: string | undefined;
250
251
  hasActiveBookingAccount?: boolean | undefined;
251
252
  hasPendingPaymentAction?: boolean | undefined;
253
+ isKlevioAvailable?: boolean | undefined;
252
254
  }, {
253
255
  name: string;
254
256
  id: string;
@@ -279,6 +281,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
279
281
  internalNotes?: string | undefined;
280
282
  hasActiveBookingAccount?: boolean | undefined;
281
283
  hasPendingPaymentAction?: boolean | undefined;
284
+ isKlevioAvailable?: boolean | undefined;
282
285
  }>>;
283
286
  contentType: z.ZodString;
284
287
  body: z.ZodString;
@@ -448,6 +451,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
448
451
  internalNotes?: string | undefined;
449
452
  hasActiveBookingAccount?: boolean | undefined;
450
453
  hasPendingPaymentAction?: boolean | undefined;
454
+ isKlevioAvailable?: boolean | undefined;
451
455
  } | undefined;
452
456
  lastSeen?: import("../../helpers").Timestamp | undefined;
453
457
  externalMessageId?: string | undefined;
@@ -519,6 +523,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
519
523
  internalNotes?: string | undefined;
520
524
  hasActiveBookingAccount?: boolean | undefined;
521
525
  hasPendingPaymentAction?: boolean | undefined;
526
+ isKlevioAvailable?: boolean | undefined;
522
527
  } | undefined;
523
528
  lastSeen?: import("../../helpers").Timestamp | undefined;
524
529
  externalMessageId?: string | undefined;
@@ -589,6 +594,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
589
594
  internalNotes: z.ZodOptional<z.ZodString>;
590
595
  hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
591
596
  hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
597
+ isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
592
598
  }, "strip", z.ZodTypeAny, {
593
599
  name: string;
594
600
  id: string;
@@ -619,6 +625,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
619
625
  internalNotes?: string | undefined;
620
626
  hasActiveBookingAccount?: boolean | undefined;
621
627
  hasPendingPaymentAction?: boolean | undefined;
628
+ isKlevioAvailable?: boolean | undefined;
622
629
  }, {
623
630
  name: string;
624
631
  id: string;
@@ -649,6 +656,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
649
656
  internalNotes?: string | undefined;
650
657
  hasActiveBookingAccount?: boolean | undefined;
651
658
  hasPendingPaymentAction?: boolean | undefined;
659
+ isKlevioAvailable?: boolean | undefined;
652
660
  }>>;
653
661
  contentType: z.ZodString;
654
662
  body: z.ZodString;
@@ -818,6 +826,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
818
826
  internalNotes?: string | undefined;
819
827
  hasActiveBookingAccount?: boolean | undefined;
820
828
  hasPendingPaymentAction?: boolean | undefined;
829
+ isKlevioAvailable?: boolean | undefined;
821
830
  } | undefined;
822
831
  lastSeen?: import("../../helpers").Timestamp | undefined;
823
832
  externalMessageId?: string | undefined;
@@ -889,6 +898,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
889
898
  internalNotes?: string | undefined;
890
899
  hasActiveBookingAccount?: boolean | undefined;
891
900
  hasPendingPaymentAction?: boolean | undefined;
901
+ isKlevioAvailable?: boolean | undefined;
892
902
  } | undefined;
893
903
  lastSeen?: import("../../helpers").Timestamp | undefined;
894
904
  externalMessageId?: string | undefined;
@@ -951,6 +961,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
951
961
  internalNotes: z.ZodOptional<z.ZodString>;
952
962
  hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
953
963
  hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
964
+ isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
954
965
  } & {
955
966
  userRole: z.ZodOptional<z.ZodObject<{
956
967
  id: z.ZodNumber;
@@ -998,6 +1009,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
998
1009
  internalNotes?: string | undefined;
999
1010
  hasActiveBookingAccount?: boolean | undefined;
1000
1011
  hasPendingPaymentAction?: boolean | undefined;
1012
+ isKlevioAvailable?: boolean | undefined;
1001
1013
  userRole?: {
1002
1014
  name: string;
1003
1015
  id: number;
@@ -1034,6 +1046,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1034
1046
  internalNotes?: string | undefined;
1035
1047
  hasActiveBookingAccount?: boolean | undefined;
1036
1048
  hasPendingPaymentAction?: boolean | undefined;
1049
+ isKlevioAvailable?: boolean | undefined;
1037
1050
  userRole?: {
1038
1051
  name: string;
1039
1052
  id: number;
@@ -1287,6 +1300,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1287
1300
  internalNotes: z.ZodOptional<z.ZodString>;
1288
1301
  hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
1289
1302
  hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
1303
+ isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
1290
1304
  }, "name" | "id" | "email" | "firstName" | "lastName" | "phone" | "photoUrl" | "userRoleId">, "strip", z.ZodTypeAny, {
1291
1305
  name: string;
1292
1306
  id: string;
@@ -1336,6 +1350,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1336
1350
  internalNotes: z.ZodOptional<z.ZodString>;
1337
1351
  hasActiveBookingAccount: z.ZodOptional<z.ZodBoolean>;
1338
1352
  hasPendingPaymentAction: z.ZodOptional<z.ZodBoolean>;
1353
+ isKlevioAvailable: z.ZodOptional<z.ZodBoolean>;
1339
1354
  }, "name" | "id" | "firstName" | "lastName" | "photoUrl">, "strip", z.ZodTypeAny, {
1340
1355
  name: string;
1341
1356
  id: string;
@@ -1403,6 +1418,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1403
1418
  internalNotes?: string | undefined;
1404
1419
  hasActiveBookingAccount?: boolean | undefined;
1405
1420
  hasPendingPaymentAction?: boolean | undefined;
1421
+ isKlevioAvailable?: boolean | undefined;
1406
1422
  } | undefined;
1407
1423
  lastSeen?: import("../../helpers").Timestamp | undefined;
1408
1424
  externalMessageId?: string | undefined;
@@ -1464,6 +1480,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1464
1480
  internalNotes?: string | undefined;
1465
1481
  hasActiveBookingAccount?: boolean | undefined;
1466
1482
  hasPendingPaymentAction?: boolean | undefined;
1483
+ isKlevioAvailable?: boolean | undefined;
1467
1484
  userRole?: {
1468
1485
  name: string;
1469
1486
  id: number;
@@ -1590,6 +1607,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1590
1607
  internalNotes?: string | undefined;
1591
1608
  hasActiveBookingAccount?: boolean | undefined;
1592
1609
  hasPendingPaymentAction?: boolean | undefined;
1610
+ isKlevioAvailable?: boolean | undefined;
1593
1611
  } | undefined;
1594
1612
  lastSeen?: import("../../helpers").Timestamp | undefined;
1595
1613
  externalMessageId?: string | undefined;
@@ -1651,6 +1669,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
1651
1669
  internalNotes?: string | undefined;
1652
1670
  hasActiveBookingAccount?: boolean | undefined;
1653
1671
  hasPendingPaymentAction?: boolean | undefined;
1672
+ isKlevioAvailable?: boolean | undefined;
1654
1673
  userRole?: {
1655
1674
  name: string;
1656
1675
  id: number;
@@ -28,6 +28,7 @@ export declare const userSchema: import("zod").ZodObject<{
28
28
  internalNotes: import("zod").ZodOptional<import("zod").ZodString>;
29
29
  hasActiveBookingAccount: import("zod").ZodOptional<import("zod").ZodBoolean>;
30
30
  hasPendingPaymentAction: import("zod").ZodOptional<import("zod").ZodBoolean>;
31
+ isKlevioAvailable: import("zod").ZodOptional<import("zod").ZodBoolean>;
31
32
  }, "strip", import("zod").ZodTypeAny, {
32
33
  name: string;
33
34
  id: string;
@@ -58,6 +59,7 @@ export declare const userSchema: import("zod").ZodObject<{
58
59
  internalNotes?: string | undefined;
59
60
  hasActiveBookingAccount?: boolean | undefined;
60
61
  hasPendingPaymentAction?: boolean | undefined;
62
+ isKlevioAvailable?: boolean | undefined;
61
63
  }, {
62
64
  name: string;
63
65
  id: string;
@@ -88,4 +90,5 @@ export declare const userSchema: import("zod").ZodObject<{
88
90
  internalNotes?: string | undefined;
89
91
  hasActiveBookingAccount?: boolean | undefined;
90
92
  hasPendingPaymentAction?: boolean | undefined;
93
+ isKlevioAvailable?: boolean | undefined;
91
94
  }>;
@@ -53,4 +53,5 @@ exports.userSchema = (0, zod_1.object)({
53
53
  internalNotes: (0, zod_1.string)().optional(),
54
54
  hasActiveBookingAccount: (0, zod_1.boolean)().optional(),
55
55
  hasPendingPaymentAction: (0, zod_1.boolean)().optional(),
56
+ isKlevioAvailable: (0, zod_1.boolean)().optional(),
56
57
  });
@@ -67,3 +67,4 @@ export * from "./custom-bundle-service";
67
67
  export * from "./custom-bundle-coupon";
68
68
  export * from "./pending-payment-action";
69
69
  export * from "./seam";
70
+ export * from "./klevio";
@@ -83,3 +83,4 @@ __exportStar(require("./custom-bundle-service"), exports);
83
83
  __exportStar(require("./custom-bundle-coupon"), exports);
84
84
  __exportStar(require("./pending-payment-action"), exports);
85
85
  __exportStar(require("./seam"), exports);
86
+ __exportStar(require("./klevio"), exports);
@@ -0,0 +1,82 @@
1
+ import { z } from "zod";
2
+ import { klevioAccountSchema, klevioLockSchema, klevioLockActionSchema, propertyKlevioLockSchema, klevioKeySchema, klevioLockPreviewSchema, lockControlResponseSchema } from "../../schemas/klevio";
3
+ import { Property } from "../property";
4
+ import { User } from "../user";
5
+ import { Reservation } from "../reservation";
6
+ import { Task } from "../task";
7
+ export type KlevioLockAction = z.infer<typeof klevioLockActionSchema>;
8
+ export interface KlevioAccount extends z.infer<typeof klevioAccountSchema> {
9
+ user?: User;
10
+ locks?: KlevioLock[];
11
+ keys?: KlevioKey[];
12
+ }
13
+ export interface KlevioAccountWithCounts {
14
+ id: number;
15
+ apiKeyId: string | null;
16
+ clientId: string | null;
17
+ name: string | null;
18
+ isActive: boolean;
19
+ createdAt: string;
20
+ updatedAt: string;
21
+ locksCount: number;
22
+ keysCount: number;
23
+ }
24
+ export interface KlevioAccountSummary {
25
+ id: number;
26
+ name: string | null;
27
+ }
28
+ export interface KlevioLock extends z.infer<typeof klevioLockSchema> {
29
+ account?: KlevioAccountSummary;
30
+ properties?: PropertyKlevioLock[];
31
+ }
32
+ export interface PropertyKlevioLock extends z.infer<typeof propertyKlevioLockSchema> {
33
+ property?: Property;
34
+ lock?: KlevioLock;
35
+ }
36
+ export interface KlevioKey extends z.infer<typeof klevioKeySchema> {
37
+ account?: KlevioAccount;
38
+ reservation?: Reservation | null;
39
+ task?: Task | null;
40
+ }
41
+ export type KlevioLockPreview = z.infer<typeof klevioLockPreviewSchema>;
42
+ export type LockControlResponse = z.infer<typeof lockControlResponseSchema>;
43
+ export interface CreateKlevioAccountParams {
44
+ apiKeyId: string;
45
+ privateKey: string;
46
+ clientId: string;
47
+ name?: string;
48
+ }
49
+ export interface CreateKlevioAccountResponse {
50
+ id: number;
51
+ name: string | null;
52
+ createdAt: string;
53
+ reactivated?: boolean;
54
+ }
55
+ export interface FetchLocksParams {
56
+ accountId: number;
57
+ klevioPropertyId: string;
58
+ }
59
+ export interface FetchLocksResponse {
60
+ locks: KlevioLockPreview[];
61
+ klevioPropertyId: string;
62
+ }
63
+ export interface SaveLocksParams {
64
+ accountId: number;
65
+ klevioPropertyId: string;
66
+ locks: Array<{
67
+ name: string;
68
+ action: KlevioLockAction;
69
+ masterKeyId?: string;
70
+ isConnected?: boolean;
71
+ availableActions?: string[];
72
+ hasKeypad?: boolean;
73
+ }>;
74
+ }
75
+ export interface SaveLocksResponse {
76
+ saved: number;
77
+ locks: KlevioLock[];
78
+ }
79
+ export interface AssignLockParams {
80
+ lockId: number;
81
+ propertyId: number;
82
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.1.78",
4
+ "version": "1.1.80",
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",