hububb-saas-shared 1.2.48 → 1.2.50
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/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 +81 -6
- package/dist/schemas/thread/index.js +2 -1
- 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
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ApiKeyStatus } from "../../types/enums";
|
|
2
|
+
export declare const apiKeySchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodString;
|
|
4
|
+
name: import("zod").ZodString;
|
|
5
|
+
prefix: import("zod").ZodString;
|
|
6
|
+
keyHash: import("zod").ZodString;
|
|
7
|
+
email: import("zod").ZodString;
|
|
8
|
+
userId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
9
|
+
scopes: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
10
|
+
status: import("zod").ZodNativeEnum<typeof ApiKeyStatus>;
|
|
11
|
+
expiresAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
12
|
+
lastUsedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
13
|
+
revokedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
14
|
+
revokedBy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
15
|
+
createdBy: import("zod").ZodString;
|
|
16
|
+
createdAt: import("zod").ZodDate;
|
|
17
|
+
updatedAt: import("zod").ZodDate;
|
|
18
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
19
|
+
name: string;
|
|
20
|
+
id: string;
|
|
21
|
+
prefix: string;
|
|
22
|
+
email: string;
|
|
23
|
+
status: ApiKeyStatus;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
createdBy: string;
|
|
27
|
+
keyHash: string;
|
|
28
|
+
scopes: string[];
|
|
29
|
+
userId?: string | null | undefined;
|
|
30
|
+
expiresAt?: Date | null | undefined;
|
|
31
|
+
lastUsedAt?: Date | null | undefined;
|
|
32
|
+
revokedAt?: Date | null | undefined;
|
|
33
|
+
revokedBy?: string | null | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
name: string;
|
|
36
|
+
id: string;
|
|
37
|
+
prefix: string;
|
|
38
|
+
email: string;
|
|
39
|
+
status: ApiKeyStatus;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
updatedAt: Date;
|
|
42
|
+
createdBy: string;
|
|
43
|
+
keyHash: string;
|
|
44
|
+
scopes: string[];
|
|
45
|
+
userId?: string | null | undefined;
|
|
46
|
+
expiresAt?: Date | null | undefined;
|
|
47
|
+
lastUsedAt?: Date | null | undefined;
|
|
48
|
+
revokedAt?: Date | null | undefined;
|
|
49
|
+
revokedBy?: string | null | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
export declare const apiKeyUsageLogSchema: import("zod").ZodObject<{
|
|
52
|
+
id: import("zod").ZodString;
|
|
53
|
+
apiKeyId: import("zod").ZodString;
|
|
54
|
+
endpoint: import("zod").ZodString;
|
|
55
|
+
method: import("zod").ZodString;
|
|
56
|
+
statusCode: import("zod").ZodNumber;
|
|
57
|
+
responseTime: import("zod").ZodNumber;
|
|
58
|
+
ipAddress: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
59
|
+
userAgent: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
60
|
+
createdAt: import("zod").ZodDate;
|
|
61
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
62
|
+
id: string;
|
|
63
|
+
statusCode: number;
|
|
64
|
+
method: string;
|
|
65
|
+
createdAt: Date;
|
|
66
|
+
apiKeyId: string;
|
|
67
|
+
endpoint: string;
|
|
68
|
+
responseTime: number;
|
|
69
|
+
ipAddress?: string | null | undefined;
|
|
70
|
+
userAgent?: string | null | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
id: string;
|
|
73
|
+
statusCode: number;
|
|
74
|
+
method: string;
|
|
75
|
+
createdAt: Date;
|
|
76
|
+
apiKeyId: string;
|
|
77
|
+
endpoint: string;
|
|
78
|
+
responseTime: number;
|
|
79
|
+
ipAddress?: string | null | undefined;
|
|
80
|
+
userAgent?: string | null | undefined;
|
|
81
|
+
}>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.apiKeyUsageLogSchema = exports.apiKeySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.apiKeySchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.string)(),
|
|
8
|
+
name: (0, zod_1.string)(),
|
|
9
|
+
prefix: (0, zod_1.string)(),
|
|
10
|
+
keyHash: (0, zod_1.string)(),
|
|
11
|
+
email: (0, zod_1.string)(),
|
|
12
|
+
userId: (0, zod_1.string)().nullish(),
|
|
13
|
+
scopes: (0, zod_1.string)().array(),
|
|
14
|
+
status: (0, zod_1.nativeEnum)(enums_1.ApiKeyStatus),
|
|
15
|
+
expiresAt: (0, zod_1.date)().nullish(),
|
|
16
|
+
lastUsedAt: (0, zod_1.date)().nullish(),
|
|
17
|
+
revokedAt: (0, zod_1.date)().nullish(),
|
|
18
|
+
revokedBy: (0, zod_1.string)().nullish(),
|
|
19
|
+
createdBy: (0, zod_1.string)(),
|
|
20
|
+
createdAt: (0, zod_1.date)(),
|
|
21
|
+
updatedAt: (0, zod_1.date)(),
|
|
22
|
+
});
|
|
23
|
+
exports.apiKeyUsageLogSchema = (0, zod_1.object)({
|
|
24
|
+
id: (0, zod_1.string)(),
|
|
25
|
+
apiKeyId: (0, zod_1.string)(),
|
|
26
|
+
endpoint: (0, zod_1.string)(),
|
|
27
|
+
method: (0, zod_1.string)(),
|
|
28
|
+
statusCode: (0, zod_1.number)().int(),
|
|
29
|
+
responseTime: (0, zod_1.number)().int(),
|
|
30
|
+
ipAddress: (0, zod_1.string)().nullish(),
|
|
31
|
+
userAgent: (0, zod_1.string)().nullish(),
|
|
32
|
+
createdAt: (0, zod_1.date)(),
|
|
33
|
+
});
|
|
@@ -18,8 +18,8 @@ export declare const availabilitySettingsSchema: z.ZodObject<{
|
|
|
18
18
|
id: number;
|
|
19
19
|
createdAt: Date;
|
|
20
20
|
updatedAt: Date;
|
|
21
|
-
propertyId: number;
|
|
22
21
|
hasAvailability: boolean;
|
|
22
|
+
propertyId: number;
|
|
23
23
|
allowRtbAboveMaxNights?: boolean | undefined;
|
|
24
24
|
bookingLeadTime?: number | undefined;
|
|
25
25
|
sameDayBookingCutoffTime?: string | undefined;
|
|
@@ -33,8 +33,8 @@ export declare const availabilitySettingsSchema: z.ZodObject<{
|
|
|
33
33
|
id: number;
|
|
34
34
|
createdAt: Date;
|
|
35
35
|
updatedAt: Date;
|
|
36
|
-
propertyId: number;
|
|
37
36
|
hasAvailability: boolean;
|
|
37
|
+
propertyId: number;
|
|
38
38
|
allowRtbAboveMaxNights?: boolean | undefined;
|
|
39
39
|
bookingLeadTime?: number | undefined;
|
|
40
40
|
sameDayBookingCutoffTime?: string | undefined;
|
|
@@ -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;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const externalSyncRequestSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
userId: z.ZodString;
|
|
5
|
+
apiKeyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
idempotencyKey: z.ZodString;
|
|
7
|
+
method: z.ZodString;
|
|
8
|
+
endpoint: z.ZodString;
|
|
9
|
+
responseStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
responseBody: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
11
|
+
createdAt: z.ZodDate;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id: string;
|
|
14
|
+
method: string;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
userId: string;
|
|
17
|
+
endpoint: string;
|
|
18
|
+
idempotencyKey: string;
|
|
19
|
+
apiKeyId?: string | null | undefined;
|
|
20
|
+
responseStatus?: number | null | undefined;
|
|
21
|
+
responseBody?: unknown;
|
|
22
|
+
}, {
|
|
23
|
+
id: string;
|
|
24
|
+
method: string;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
userId: string;
|
|
27
|
+
endpoint: string;
|
|
28
|
+
idempotencyKey: string;
|
|
29
|
+
apiKeyId?: string | null | undefined;
|
|
30
|
+
responseStatus?: number | null | undefined;
|
|
31
|
+
responseBody?: unknown;
|
|
32
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.externalSyncRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.externalSyncRequestSchema = (0, zod_1.object)({
|
|
6
|
+
id: (0, zod_1.string)(),
|
|
7
|
+
userId: (0, zod_1.string)(),
|
|
8
|
+
apiKeyId: (0, zod_1.string)().nullish(),
|
|
9
|
+
idempotencyKey: (0, zod_1.string)(),
|
|
10
|
+
method: (0, zod_1.string)(),
|
|
11
|
+
endpoint: (0, zod_1.string)(),
|
|
12
|
+
responseStatus: (0, zod_1.number)().int().nullish(),
|
|
13
|
+
responseBody: zod_1.z.unknown().nullish(),
|
|
14
|
+
createdAt: (0, zod_1.date)(),
|
|
15
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { GuestDocumentType, GuestVerificationStatus } from "../../types/guest-verification";
|
|
2
|
+
export declare const guestVerificationSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodString;
|
|
4
|
+
userId: import("zod").ZodString;
|
|
5
|
+
status: import("zod").ZodNativeEnum<typeof GuestVerificationStatus>;
|
|
6
|
+
currentStep: import("zod").ZodString;
|
|
7
|
+
country: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
8
|
+
documentType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNativeEnum<typeof GuestDocumentType>>>;
|
|
9
|
+
firstName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
10
|
+
middleName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
11
|
+
lastName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
12
|
+
documentFrontUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
13
|
+
documentBackUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
14
|
+
selfieUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
15
|
+
submittedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
16
|
+
reviewedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
17
|
+
rejectionReason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
18
|
+
createdAt: import("zod").ZodDate;
|
|
19
|
+
updatedAt: import("zod").ZodDate;
|
|
20
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
21
|
+
id: string;
|
|
22
|
+
status: GuestVerificationStatus;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
userId: string;
|
|
26
|
+
currentStep: string;
|
|
27
|
+
country?: string | null | undefined;
|
|
28
|
+
firstName?: string | null | undefined;
|
|
29
|
+
lastName?: string | null | undefined;
|
|
30
|
+
submittedAt?: Date | null | undefined;
|
|
31
|
+
rejectionReason?: string | null | undefined;
|
|
32
|
+
documentType?: GuestDocumentType | null | undefined;
|
|
33
|
+
middleName?: string | null | undefined;
|
|
34
|
+
documentFrontUrl?: string | null | undefined;
|
|
35
|
+
documentBackUrl?: string | null | undefined;
|
|
36
|
+
selfieUrl?: string | null | undefined;
|
|
37
|
+
reviewedAt?: Date | null | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
id: string;
|
|
40
|
+
status: GuestVerificationStatus;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
userId: string;
|
|
44
|
+
currentStep: string;
|
|
45
|
+
country?: string | null | undefined;
|
|
46
|
+
firstName?: string | null | undefined;
|
|
47
|
+
lastName?: string | null | undefined;
|
|
48
|
+
submittedAt?: Date | null | undefined;
|
|
49
|
+
rejectionReason?: string | null | undefined;
|
|
50
|
+
documentType?: GuestDocumentType | null | undefined;
|
|
51
|
+
middleName?: string | null | undefined;
|
|
52
|
+
documentFrontUrl?: string | null | undefined;
|
|
53
|
+
documentBackUrl?: string | null | undefined;
|
|
54
|
+
selfieUrl?: string | null | undefined;
|
|
55
|
+
reviewedAt?: Date | null | undefined;
|
|
56
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.guestVerificationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const guest_verification_1 = require("../../types/guest-verification");
|
|
6
|
+
exports.guestVerificationSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.string)(),
|
|
8
|
+
userId: (0, zod_1.string)(),
|
|
9
|
+
status: (0, zod_1.nativeEnum)(guest_verification_1.GuestVerificationStatus),
|
|
10
|
+
currentStep: (0, zod_1.string)(),
|
|
11
|
+
country: (0, zod_1.string)().nullish(),
|
|
12
|
+
documentType: (0, zod_1.nativeEnum)(guest_verification_1.GuestDocumentType).nullish(),
|
|
13
|
+
firstName: (0, zod_1.string)().nullish(),
|
|
14
|
+
middleName: (0, zod_1.string)().nullish(),
|
|
15
|
+
lastName: (0, zod_1.string)().nullish(),
|
|
16
|
+
documentFrontUrl: (0, zod_1.string)().nullish(),
|
|
17
|
+
documentBackUrl: (0, zod_1.string)().nullish(),
|
|
18
|
+
selfieUrl: (0, zod_1.string)().nullish(),
|
|
19
|
+
submittedAt: (0, zod_1.date)().nullish(),
|
|
20
|
+
reviewedAt: (0, zod_1.date)().nullish(),
|
|
21
|
+
rejectionReason: (0, zod_1.string)().nullish(),
|
|
22
|
+
createdAt: (0, zod_1.date)(),
|
|
23
|
+
updatedAt: (0, zod_1.date)(),
|
|
24
|
+
});
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -109,3 +109,11 @@ export * from "./pass-through-tax";
|
|
|
109
109
|
export * from "./booking-settings";
|
|
110
110
|
export * from "./availability-settings";
|
|
111
111
|
export * from "./seasonal-min-nights";
|
|
112
|
+
export * from "./guest-verification";
|
|
113
|
+
export * from "./listing-expectation";
|
|
114
|
+
export * from "./notification";
|
|
115
|
+
export * from "./push-token";
|
|
116
|
+
export * from "./reservation-guest-invite";
|
|
117
|
+
export * from "./task-expense-fact";
|
|
118
|
+
export * from "./reservation-access-log";
|
|
119
|
+
export * from "./property-guide";
|
package/dist/schemas/index.js
CHANGED
|
@@ -125,3 +125,11 @@ __exportStar(require("./pass-through-tax"), exports);
|
|
|
125
125
|
__exportStar(require("./booking-settings"), exports);
|
|
126
126
|
__exportStar(require("./availability-settings"), exports);
|
|
127
127
|
__exportStar(require("./seasonal-min-nights"), exports);
|
|
128
|
+
__exportStar(require("./guest-verification"), exports);
|
|
129
|
+
__exportStar(require("./listing-expectation"), exports);
|
|
130
|
+
__exportStar(require("./notification"), exports);
|
|
131
|
+
__exportStar(require("./push-token"), exports);
|
|
132
|
+
__exportStar(require("./reservation-guest-invite"), exports);
|
|
133
|
+
__exportStar(require("./task-expense-fact"), exports);
|
|
134
|
+
__exportStar(require("./reservation-access-log"), exports);
|
|
135
|
+
__exportStar(require("./property-guide"), exports);
|
|
@@ -22,8 +22,8 @@ export declare const invoiceSchema: import("zod").ZodObject<{
|
|
|
22
22
|
userId: string;
|
|
23
23
|
dueDate: Date;
|
|
24
24
|
amount: number;
|
|
25
|
-
subscriptionId?: string | undefined;
|
|
26
25
|
purchaseId?: string | undefined;
|
|
26
|
+
subscriptionId?: string | undefined;
|
|
27
27
|
stripeInvoiceId?: string | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
currency: string;
|
|
@@ -35,7 +35,7 @@ export declare const invoiceSchema: import("zod").ZodObject<{
|
|
|
35
35
|
userId: string;
|
|
36
36
|
dueDate: Date;
|
|
37
37
|
amount: number;
|
|
38
|
-
subscriptionId?: string | undefined;
|
|
39
38
|
purchaseId?: string | undefined;
|
|
39
|
+
subscriptionId?: string | undefined;
|
|
40
40
|
stripeInvoiceId?: string | undefined;
|
|
41
41
|
}>;
|
|
@@ -86,15 +86,15 @@ export declare const propertyKlevioLockSchema: z.ZodObject<{
|
|
|
86
86
|
createdAt: Date;
|
|
87
87
|
updatedAt: Date;
|
|
88
88
|
propertyId: number;
|
|
89
|
-
isShared: boolean;
|
|
90
89
|
klevioLockId: number;
|
|
90
|
+
isShared: boolean;
|
|
91
91
|
}, {
|
|
92
92
|
id: number;
|
|
93
93
|
createdAt: Date;
|
|
94
94
|
updatedAt: Date;
|
|
95
95
|
propertyId: number;
|
|
96
|
-
isShared: boolean;
|
|
97
96
|
klevioLockId: number;
|
|
97
|
+
isShared: boolean;
|
|
98
98
|
}>;
|
|
99
99
|
export declare const klevioKeySchema: z.ZodObject<{
|
|
100
100
|
id: z.ZodString;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ListingExpectationType } from "../../types/enums";
|
|
2
|
+
export declare const listingExpectationSchema: import("zod").ZodObject<{
|
|
3
|
+
id: import("zod").ZodNumber;
|
|
4
|
+
bookingSettingsId: import("zod").ZodNumber;
|
|
5
|
+
type: import("zod").ZodNativeEnum<typeof ListingExpectationType>;
|
|
6
|
+
addedDetails: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
7
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
8
|
+
type: ListingExpectationType;
|
|
9
|
+
id: number;
|
|
10
|
+
bookingSettingsId: number;
|
|
11
|
+
addedDetails?: string | null | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
type: ListingExpectationType;
|
|
14
|
+
id: number;
|
|
15
|
+
bookingSettingsId: number;
|
|
16
|
+
addedDetails?: string | null | undefined;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listingExpectationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.listingExpectationSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.number)().int(),
|
|
8
|
+
bookingSettingsId: (0, zod_1.number)().int(),
|
|
9
|
+
type: (0, zod_1.nativeEnum)(enums_1.ListingExpectationType),
|
|
10
|
+
addedDetails: (0, zod_1.string)().nullish(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { NotificationRecipientRole } from "../../types/enums";
|
|
3
|
+
export declare const notificationSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
userId: z.ZodString;
|
|
6
|
+
eventType: z.ZodString;
|
|
7
|
+
role: z.ZodNativeEnum<typeof NotificationRecipientRole>;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
body: z.ZodString;
|
|
10
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
11
|
+
taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
propertyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
roomId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
readAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
15
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
16
|
+
createdAt: z.ZodDate;
|
|
17
|
+
updatedAt: z.ZodDate;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
id: string;
|
|
20
|
+
body: string;
|
|
21
|
+
title: string;
|
|
22
|
+
role: NotificationRecipientRole;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
userId: string;
|
|
26
|
+
eventType: string;
|
|
27
|
+
data?: unknown;
|
|
28
|
+
propertyId?: number | null | undefined;
|
|
29
|
+
roomId?: number | null | undefined;
|
|
30
|
+
taskId?: number | null | undefined;
|
|
31
|
+
readAt?: Date | null | undefined;
|
|
32
|
+
archivedAt?: Date | null | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
id: string;
|
|
35
|
+
body: string;
|
|
36
|
+
title: string;
|
|
37
|
+
role: NotificationRecipientRole;
|
|
38
|
+
createdAt: Date;
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
userId: string;
|
|
41
|
+
eventType: string;
|
|
42
|
+
data?: unknown;
|
|
43
|
+
propertyId?: number | null | undefined;
|
|
44
|
+
roomId?: number | null | undefined;
|
|
45
|
+
taskId?: number | null | undefined;
|
|
46
|
+
readAt?: Date | null | undefined;
|
|
47
|
+
archivedAt?: Date | null | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const notificationPreferenceSchema: z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
userId: z.ZodString;
|
|
52
|
+
eventType: z.ZodString;
|
|
53
|
+
emailEnabled: z.ZodBoolean;
|
|
54
|
+
pushEnabled: z.ZodBoolean;
|
|
55
|
+
createdAt: z.ZodDate;
|
|
56
|
+
updatedAt: z.ZodDate;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
id: string;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
updatedAt: Date;
|
|
61
|
+
userId: string;
|
|
62
|
+
eventType: string;
|
|
63
|
+
emailEnabled: boolean;
|
|
64
|
+
pushEnabled: boolean;
|
|
65
|
+
}, {
|
|
66
|
+
id: string;
|
|
67
|
+
createdAt: Date;
|
|
68
|
+
updatedAt: Date;
|
|
69
|
+
userId: string;
|
|
70
|
+
eventType: string;
|
|
71
|
+
emailEnabled: boolean;
|
|
72
|
+
pushEnabled: boolean;
|
|
73
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationPreferenceSchema = exports.notificationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../../types/enums");
|
|
6
|
+
exports.notificationSchema = (0, zod_1.object)({
|
|
7
|
+
id: (0, zod_1.string)(),
|
|
8
|
+
userId: (0, zod_1.string)(),
|
|
9
|
+
eventType: (0, zod_1.string)(),
|
|
10
|
+
role: (0, zod_1.nativeEnum)(enums_1.NotificationRecipientRole),
|
|
11
|
+
title: (0, zod_1.string)(),
|
|
12
|
+
body: (0, zod_1.string)(),
|
|
13
|
+
data: zod_1.z.unknown().nullish(),
|
|
14
|
+
taskId: (0, zod_1.number)().int().nullish(),
|
|
15
|
+
propertyId: (0, zod_1.number)().int().nullish(),
|
|
16
|
+
roomId: (0, zod_1.number)().int().nullish(),
|
|
17
|
+
readAt: (0, zod_1.date)().nullish(),
|
|
18
|
+
archivedAt: (0, zod_1.date)().nullish(),
|
|
19
|
+
createdAt: (0, zod_1.date)(),
|
|
20
|
+
updatedAt: (0, zod_1.date)(),
|
|
21
|
+
});
|
|
22
|
+
exports.notificationPreferenceSchema = (0, zod_1.object)({
|
|
23
|
+
id: (0, zod_1.string)(),
|
|
24
|
+
userId: (0, zod_1.string)(),
|
|
25
|
+
eventType: (0, zod_1.string)(),
|
|
26
|
+
emailEnabled: zod_1.z.boolean(),
|
|
27
|
+
pushEnabled: zod_1.z.boolean(),
|
|
28
|
+
createdAt: (0, zod_1.date)(),
|
|
29
|
+
updatedAt: (0, zod_1.date)(),
|
|
30
|
+
});
|
|
@@ -30,6 +30,8 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
30
30
|
vat: z.ZodOptional<z.ZodString>;
|
|
31
31
|
customBundleId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
32
|
onboardingPlanChoice: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"HANDS_FREE_PRO">, z.ZodLiteral<"CUSTOM_BUILD">]>>;
|
|
33
|
+
hasAvailability: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
publicListingSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
35
|
}, "strip", z.ZodTypeAny, {
|
|
34
36
|
id: number;
|
|
35
37
|
title: string;
|
|
@@ -60,6 +62,8 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
60
62
|
vat?: string | undefined;
|
|
61
63
|
customBundleId?: number | null | undefined;
|
|
62
64
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
65
|
+
hasAvailability?: boolean | undefined;
|
|
66
|
+
publicListingSlug?: string | null | undefined;
|
|
63
67
|
}, {
|
|
64
68
|
id: number;
|
|
65
69
|
title: string;
|
|
@@ -90,6 +94,8 @@ export declare const propertySchema: z.ZodObject<{
|
|
|
90
94
|
vat?: string | undefined;
|
|
91
95
|
customBundleId?: number | null | undefined;
|
|
92
96
|
onboardingPlanChoice?: "HANDS_FREE_PRO" | "CUSTOM_BUILD" | undefined;
|
|
97
|
+
hasAvailability?: boolean | undefined;
|
|
98
|
+
publicListingSlug?: string | null | undefined;
|
|
93
99
|
}>;
|
|
94
100
|
export declare const updatePropertySchema: z.ZodObject<{
|
|
95
101
|
propertyDetails: z.ZodOptional<z.ZodObject<{
|
|
@@ -281,13 +287,13 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
281
287
|
noiseMonitoring: z.ZodOptional<z.ZodBoolean>;
|
|
282
288
|
weapons: z.ZodOptional<z.ZodBoolean>;
|
|
283
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
weapons?: boolean | undefined;
|
|
284
291
|
exteriorSecurityCamera?: boolean | undefined;
|
|
285
292
|
noiseMonitoring?: boolean | undefined;
|
|
286
|
-
weapons?: boolean | undefined;
|
|
287
293
|
}, {
|
|
294
|
+
weapons?: boolean | undefined;
|
|
288
295
|
exteriorSecurityCamera?: boolean | undefined;
|
|
289
296
|
noiseMonitoring?: boolean | undefined;
|
|
290
|
-
weapons?: boolean | undefined;
|
|
291
297
|
}>>;
|
|
292
298
|
price: z.ZodOptional<z.ZodObject<{
|
|
293
299
|
guestsIncluded: z.ZodOptional<z.ZodNumber>;
|
|
@@ -381,12 +387,12 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
381
387
|
order: z.ZodOptional<z.ZodNumber>;
|
|
382
388
|
}, "strip", z.ZodTypeAny, {
|
|
383
389
|
name: string;
|
|
384
|
-
type: "BEDROOM" | "BATHROOM" | "
|
|
390
|
+
type: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "OTHER";
|
|
385
391
|
id?: number | undefined;
|
|
386
392
|
order?: number | undefined;
|
|
387
393
|
}, {
|
|
388
394
|
name: string;
|
|
389
|
-
type: "BEDROOM" | "BATHROOM" | "
|
|
395
|
+
type: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "OTHER";
|
|
390
396
|
id?: number | undefined;
|
|
391
397
|
order?: number | undefined;
|
|
392
398
|
}>, "many">>;
|
|
@@ -493,9 +499,9 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
493
499
|
airbnbId?: string | undefined;
|
|
494
500
|
} | undefined;
|
|
495
501
|
safetyDetails?: {
|
|
502
|
+
weapons?: boolean | undefined;
|
|
496
503
|
exteriorSecurityCamera?: boolean | undefined;
|
|
497
504
|
noiseMonitoring?: boolean | undefined;
|
|
498
|
-
weapons?: boolean | undefined;
|
|
499
505
|
} | undefined;
|
|
500
506
|
amenities?: (string | number)[] | undefined;
|
|
501
507
|
images?: {
|
|
@@ -510,7 +516,7 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
510
516
|
}[] | undefined;
|
|
511
517
|
propertyRooms?: {
|
|
512
518
|
name: string;
|
|
513
|
-
type: "BEDROOM" | "BATHROOM" | "
|
|
519
|
+
type: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "OTHER";
|
|
514
520
|
id?: number | undefined;
|
|
515
521
|
order?: number | undefined;
|
|
516
522
|
}[] | undefined;
|
|
@@ -603,9 +609,9 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
603
609
|
airbnbId?: string | undefined;
|
|
604
610
|
} | undefined;
|
|
605
611
|
safetyDetails?: {
|
|
612
|
+
weapons?: boolean | undefined;
|
|
606
613
|
exteriorSecurityCamera?: boolean | undefined;
|
|
607
614
|
noiseMonitoring?: boolean | undefined;
|
|
608
|
-
weapons?: boolean | undefined;
|
|
609
615
|
} | undefined;
|
|
610
616
|
amenities?: (string | number)[] | undefined;
|
|
611
617
|
images?: {
|
|
@@ -620,7 +626,7 @@ export declare const updatePropertySchema: z.ZodObject<{
|
|
|
620
626
|
}[] | undefined;
|
|
621
627
|
propertyRooms?: {
|
|
622
628
|
name: string;
|
|
623
|
-
type: "BEDROOM" | "BATHROOM" | "
|
|
629
|
+
type: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "OTHER";
|
|
624
630
|
id?: number | undefined;
|
|
625
631
|
order?: number | undefined;
|
|
626
632
|
}[] | undefined;
|
|
@@ -42,6 +42,8 @@ exports.propertySchema = (0, zod_1.object)({
|
|
|
42
42
|
vat: (0, zod_1.string)().optional(),
|
|
43
43
|
customBundleId: (0, zod_1.number)().int().nullish(),
|
|
44
44
|
onboardingPlanChoice: (0, zod_1.union)([(0, zod_1.literal)("HANDS_FREE_PRO"), (0, zod_1.literal)("CUSTOM_BUILD")]).optional(),
|
|
45
|
+
hasAvailability: (0, zod_1.boolean)().optional(),
|
|
46
|
+
publicListingSlug: (0, zod_1.string)().nullish(),
|
|
45
47
|
});
|
|
46
48
|
exports.updatePropertySchema = (0, zod_1.object)({
|
|
47
49
|
propertyDetails: (0, zod_1.object)({
|
|
@@ -11,13 +11,13 @@ export declare const propertyConnectionRequestSchema: z.ZodObject<{
|
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
updatedAt: Date;
|
|
13
13
|
propertyId: number;
|
|
14
|
-
type?: "AIRBNB" | "BOOKING_COM" | "
|
|
14
|
+
type?: "AIRBNB" | "BOOKING_COM" | "HUBUBB" | "AGODA" | "EXPEDIA" | "VRBO" | "CTRIP" | null | undefined;
|
|
15
15
|
status?: "PENDING" | "IN_PROGRESS" | "COMPLETED" | "REJECTED" | null | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
id: number;
|
|
18
18
|
createdAt: Date;
|
|
19
19
|
updatedAt: Date;
|
|
20
20
|
propertyId: number;
|
|
21
|
-
type?: "AIRBNB" | "BOOKING_COM" | "
|
|
21
|
+
type?: "AIRBNB" | "BOOKING_COM" | "HUBUBB" | "AGODA" | "EXPEDIA" | "VRBO" | "CTRIP" | null | undefined;
|
|
22
22
|
status?: "PENDING" | "IN_PROGRESS" | "COMPLETED" | "REJECTED" | null | undefined;
|
|
23
23
|
}>;
|