hububb-saas-shared 1.2.49 → 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.
Files changed (91) hide show
  1. package/dist/schemas/api-key/index.d.ts +81 -0
  2. package/dist/schemas/api-key/index.js +33 -0
  3. package/dist/schemas/availability-settings/index.d.ts +2 -2
  4. package/dist/schemas/channex/booking.d.ts +2 -2
  5. package/dist/schemas/channex/thread.d.ts +2 -2
  6. package/dist/schemas/external-sync-request/index.d.ts +32 -0
  7. package/dist/schemas/external-sync-request/index.js +15 -0
  8. package/dist/schemas/guest-verification/index.d.ts +56 -0
  9. package/dist/schemas/guest-verification/index.js +24 -0
  10. package/dist/schemas/index.d.ts +8 -0
  11. package/dist/schemas/index.js +8 -0
  12. package/dist/schemas/invoice/index.d.ts +2 -2
  13. package/dist/schemas/klevio/index.d.ts +2 -2
  14. package/dist/schemas/listing-expectation/index.d.ts +17 -0
  15. package/dist/schemas/listing-expectation/index.js +11 -0
  16. package/dist/schemas/notification/index.d.ts +73 -0
  17. package/dist/schemas/notification/index.js +30 -0
  18. package/dist/schemas/property/index.d.ts +14 -8
  19. package/dist/schemas/property/index.js +2 -0
  20. package/dist/schemas/property-connection-request/index.d.ts +2 -2
  21. package/dist/schemas/property-guide/index.d.ts +32 -0
  22. package/dist/schemas/property-guide/index.js +20 -0
  23. package/dist/schemas/property-room/index.d.ts +2 -2
  24. package/dist/schemas/property-safety-details/index.d.ts +2 -2
  25. package/dist/schemas/push-token/index.d.ts +35 -0
  26. package/dist/schemas/push-token/index.js +17 -0
  27. package/dist/schemas/reservation/index.d.ts +3 -0
  28. package/dist/schemas/reservation/index.js +1 -0
  29. package/dist/schemas/reservation-access-log/index.d.ts +53 -0
  30. package/dist/schemas/reservation-access-log/index.js +22 -0
  31. package/dist/schemas/reservation-guest-invite/index.d.ts +35 -0
  32. package/dist/schemas/reservation-guest-invite/index.js +17 -0
  33. package/dist/schemas/seam/index.d.ts +4 -4
  34. package/dist/schemas/service-availability/index.d.ts +25 -0
  35. package/dist/schemas/service-availability/index.js +13 -0
  36. package/dist/schemas/service-provider/index.d.ts +2 -2
  37. package/dist/schemas/service-worker-payout/index.d.ts +88 -0
  38. package/dist/schemas/service-worker-payout/index.js +36 -0
  39. package/dist/schemas/task/index.d.ts +34 -4
  40. package/dist/schemas/task/index.js +11 -1
  41. package/dist/schemas/task-checklist-item/index.d.ts +2 -2
  42. package/dist/schemas/task-checklist-space/index.d.ts +2 -2
  43. package/dist/schemas/task-expense-fact/index.d.ts +37 -0
  44. package/dist/schemas/task-expense-fact/index.js +18 -0
  45. package/dist/schemas/task-photography-space/index.d.ts +2 -2
  46. package/dist/schemas/task-thread/index.d.ts +6 -0
  47. package/dist/schemas/thread/index.d.ts +78 -6
  48. package/dist/schemas/user/index.d.ts +9 -0
  49. package/dist/schemas/user/index.js +3 -0
  50. package/dist/schemas/webhook/index.d.ts +104 -0
  51. package/dist/schemas/webhook/index.js +41 -0
  52. package/dist/types/api-key/index.d.ts +10 -0
  53. package/dist/types/booking-settings/index.d.ts +2 -0
  54. package/dist/types/enums/index.d.ts +228 -0
  55. package/dist/types/enums/index.js +263 -1
  56. package/dist/types/external-sync-request/index.d.ts +4 -0
  57. package/dist/types/external-sync-request/index.js +2 -0
  58. package/dist/types/guest-verification/index.d.ts +3 -18
  59. package/dist/types/index.d.ts +7 -0
  60. package/dist/types/index.js +7 -0
  61. package/dist/types/listing-expectation/index.d.ts +6 -0
  62. package/dist/types/listing-expectation/index.js +2 -0
  63. package/dist/types/notification/index.d.ts +15 -0
  64. package/dist/types/notification/index.js +2 -0
  65. package/dist/types/property/index.d.ts +4 -0
  66. package/dist/types/property-guide/index.d.ts +6 -0
  67. package/dist/types/property-guide/index.js +2 -0
  68. package/dist/types/push-token/index.d.ts +6 -0
  69. package/dist/types/push-token/index.js +2 -0
  70. package/dist/types/reservation/index.d.ts +8 -0
  71. package/dist/types/reservation-access-log/index.d.ts +64 -0
  72. package/dist/types/reservation-access-log/index.js +2 -0
  73. package/dist/types/reservation-guest-invite/index.d.ts +9 -0
  74. package/dist/types/reservation-guest-invite/index.js +2 -0
  75. package/dist/types/service-availability/index.d.ts +6 -0
  76. package/dist/types/service-availability/index.js +2 -0
  77. package/dist/types/service-worker-payout/index.d.ts +17 -0
  78. package/dist/types/service-worker-payout/index.js +2 -0
  79. package/dist/types/task/index.d.ts +7 -0
  80. package/dist/types/task-expense-fact/index.d.ts +12 -0
  81. package/dist/types/task-expense-fact/index.js +2 -0
  82. package/dist/types/user/index.d.ts +10 -0
  83. package/dist/types/webhook/index.d.ts +15 -0
  84. package/dist/types/webhook/index.js +2 -0
  85. package/package.json +1 -1
  86. package/dist/schemas/enums/index.d.ts +0 -45
  87. package/dist/schemas/enums/index.js +0 -56
  88. package/dist/schemas/service-property/index.d.ts +0 -19
  89. package/dist/schemas/service-property/index.js +0 -11
  90. package/dist/types/service-property/index.d.ts +0 -8
  91. /package/dist/types/{service-property → api-key}/index.js +0 -0
@@ -0,0 +1,32 @@
1
+ export { GUIDE_ICON_KEYS, GUIDE_ICON_LABELS, GUIDE_ICON_PHOSPHOR_NAMES, type GuideIconKey } from '../../constants/property-guide-icons';
2
+ export declare const propertyGuideSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodNumber;
4
+ propertyId: import("zod").ZodNumber;
5
+ title: import("zod").ZodString;
6
+ body: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
7
+ iconKey: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<["kitchen", "heating", "wifi", "parking", "tv", "access", "maintenance", "laundry", "rubbish", "water", "electricity", "outdoor", "bedroom", "bathroom", "general"]>>>;
8
+ images: import("zod").ZodArray<import("zod").ZodString, "many">;
9
+ order: import("zod").ZodNumber;
10
+ createdAt: import("zod").ZodDate;
11
+ updatedAt: import("zod").ZodDate;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ id: number;
14
+ order: number;
15
+ title: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ propertyId: number;
19
+ images: string[];
20
+ body?: string | null | undefined;
21
+ iconKey?: "kitchen" | "heating" | "wifi" | "parking" | "tv" | "access" | "maintenance" | "laundry" | "rubbish" | "water" | "electricity" | "outdoor" | "bedroom" | "bathroom" | "general" | null | undefined;
22
+ }, {
23
+ id: number;
24
+ order: number;
25
+ title: string;
26
+ createdAt: Date;
27
+ updatedAt: Date;
28
+ propertyId: number;
29
+ images: string[];
30
+ body?: string | null | undefined;
31
+ iconKey?: "kitchen" | "heating" | "wifi" | "parking" | "tv" | "access" | "maintenance" | "laundry" | "rubbish" | "water" | "electricity" | "outdoor" | "bedroom" | "bathroom" | "general" | null | undefined;
32
+ }>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.propertyGuideSchema = exports.GUIDE_ICON_PHOSPHOR_NAMES = exports.GUIDE_ICON_LABELS = exports.GUIDE_ICON_KEYS = void 0;
4
+ const zod_1 = require("zod");
5
+ const property_guide_icons_1 = require("../../constants/property-guide-icons");
6
+ var property_guide_icons_2 = require("../../constants/property-guide-icons");
7
+ Object.defineProperty(exports, "GUIDE_ICON_KEYS", { enumerable: true, get: function () { return property_guide_icons_2.GUIDE_ICON_KEYS; } });
8
+ Object.defineProperty(exports, "GUIDE_ICON_LABELS", { enumerable: true, get: function () { return property_guide_icons_2.GUIDE_ICON_LABELS; } });
9
+ Object.defineProperty(exports, "GUIDE_ICON_PHOSPHOR_NAMES", { enumerable: true, get: function () { return property_guide_icons_2.GUIDE_ICON_PHOSPHOR_NAMES; } });
10
+ exports.propertyGuideSchema = (0, zod_1.object)({
11
+ id: (0, zod_1.number)().int(),
12
+ propertyId: (0, zod_1.number)().int(),
13
+ title: (0, zod_1.string)(),
14
+ body: (0, zod_1.string)().nullable().optional(),
15
+ iconKey: (0, zod_1.enum)(property_guide_icons_1.GUIDE_ICON_KEYS).nullable().optional(),
16
+ images: (0, zod_1.array)((0, zod_1.string)()),
17
+ order: (0, zod_1.number)().int(),
18
+ createdAt: (0, zod_1.date)(),
19
+ updatedAt: (0, zod_1.date)(),
20
+ });
@@ -10,7 +10,7 @@ export declare const propertyRoomSchema: import("zod").ZodObject<{
10
10
  noWindows: import("zod").ZodOptional<import("zod").ZodBoolean>;
11
11
  }, "strip", import("zod").ZodTypeAny, {
12
12
  name: string;
13
- type: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
13
+ type: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "DINING_ROOM" | "BALCONY" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE" | "OTHER";
14
14
  id: number;
15
15
  order: number | null;
16
16
  createdAt: Date;
@@ -20,7 +20,7 @@ export declare const propertyRoomSchema: import("zod").ZodObject<{
20
20
  noWindows?: boolean | undefined;
21
21
  }, {
22
22
  name: string;
23
- type: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
23
+ type: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "DINING_ROOM" | "BALCONY" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE" | "OTHER";
24
24
  id: number;
25
25
  order: number | null;
26
26
  createdAt: Date;
@@ -11,15 +11,15 @@ export declare const propertySafetyDetailsSchema: import("zod").ZodObject<{
11
11
  createdAt: Date;
12
12
  updatedAt: Date;
13
13
  propertyId: number;
14
+ weapons?: boolean | undefined;
14
15
  exteriorSecurityCamera?: boolean | undefined;
15
16
  noiseMonitoring?: boolean | undefined;
16
- weapons?: boolean | undefined;
17
17
  }, {
18
18
  id: number;
19
19
  createdAt: Date;
20
20
  updatedAt: Date;
21
21
  propertyId: number;
22
+ weapons?: boolean | undefined;
22
23
  exteriorSecurityCamera?: boolean | undefined;
23
24
  noiseMonitoring?: boolean | undefined;
24
- weapons?: boolean | undefined;
25
25
  }>;
@@ -0,0 +1,35 @@
1
+ import { Platform, PushApp } from "../../types/enums";
2
+ export declare const pushTokenSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodString;
4
+ userId: import("zod").ZodString;
5
+ expoToken: import("zod").ZodString;
6
+ platform: import("zod").ZodNativeEnum<typeof Platform>;
7
+ deviceId: import("zod").ZodString;
8
+ app: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNativeEnum<typeof PushApp>>>;
9
+ language: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
10
+ lastSeenAt: import("zod").ZodDate;
11
+ createdAt: import("zod").ZodDate;
12
+ updatedAt: import("zod").ZodDate;
13
+ }, "strip", import("zod").ZodTypeAny, {
14
+ platform: Platform;
15
+ id: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ userId: string;
19
+ deviceId: string;
20
+ expoToken: string;
21
+ lastSeenAt: Date;
22
+ language?: string | null | undefined;
23
+ app?: PushApp | null | undefined;
24
+ }, {
25
+ platform: Platform;
26
+ id: string;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ userId: string;
30
+ deviceId: string;
31
+ expoToken: string;
32
+ lastSeenAt: Date;
33
+ language?: string | null | undefined;
34
+ app?: PushApp | null | undefined;
35
+ }>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pushTokenSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.pushTokenSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.string)(),
8
+ userId: (0, zod_1.string)(),
9
+ expoToken: (0, zod_1.string)(),
10
+ platform: (0, zod_1.nativeEnum)(enums_1.Platform),
11
+ deviceId: (0, zod_1.string)(),
12
+ app: (0, zod_1.nativeEnum)(enums_1.PushApp).nullish(),
13
+ language: (0, zod_1.string)().nullish(),
14
+ lastSeenAt: (0, zod_1.date)(),
15
+ createdAt: (0, zod_1.date)(),
16
+ updatedAt: (0, zod_1.date)(),
17
+ });
@@ -147,6 +147,7 @@ export declare const ReservationSchema: z.ZodObject<{
147
147
  checkedOutMark: z.ZodOptional<z.ZodDate>;
148
148
  threadId: z.ZodOptional<z.ZodString>;
149
149
  paymentLink: z.ZodOptional<z.ZodString>;
150
+ userId: z.ZodOptional<z.ZodString>;
150
151
  readyForPayout: z.ZodBoolean;
151
152
  paidOut: z.ZodBoolean;
152
153
  payoutId: z.ZodOptional<z.ZodNumber>;
@@ -283,6 +284,7 @@ export declare const ReservationSchema: z.ZodObject<{
283
284
  paidOut: boolean;
284
285
  requiresPayout: boolean;
285
286
  isUnitChanged: boolean;
287
+ userId?: string | undefined;
286
288
  notes?: string | undefined;
287
289
  checkedInMark?: Date | undefined;
288
290
  checkedOutMark?: Date | undefined;
@@ -343,6 +345,7 @@ export declare const ReservationSchema: z.ZodObject<{
343
345
  paidOut: boolean;
344
346
  requiresPayout: boolean;
345
347
  isUnitChanged: boolean;
348
+ userId?: string | undefined;
346
349
  notes?: string | undefined;
347
350
  checkedInMark?: Date | undefined;
348
351
  checkedOutMark?: Date | undefined;
@@ -77,6 +77,7 @@ exports.ReservationSchema = zod_1.z.object({
77
77
  checkedOutMark: zod_1.z.date().optional(),
78
78
  threadId: zod_1.z.string().optional(),
79
79
  paymentLink: zod_1.z.string().optional(),
80
+ userId: zod_1.z.string().optional(),
80
81
  readyForPayout: zod_1.z.boolean(),
81
82
  paidOut: zod_1.z.boolean(),
82
83
  payoutId: zod_1.z.number().optional(),
@@ -0,0 +1,53 @@
1
+ import { z } from "zod";
2
+ export declare const reservationAccessLogSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ reservationId: z.ZodNumber;
5
+ roomId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
+ propertyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
+ seamDeviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ seamAccessCodeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ klevioLockId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ klevioKeyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ eventType: z.ZodString;
12
+ occurredAt: z.ZodDate;
13
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ userEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ userRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
18
+ createdAt: z.ZodDate;
19
+ }, "strip", z.ZodTypeAny, {
20
+ id: number;
21
+ createdAt: Date;
22
+ reservationId: number;
23
+ eventType: string;
24
+ occurredAt: Date;
25
+ metadata?: unknown;
26
+ userId?: string | null | undefined;
27
+ propertyId?: number | null | undefined;
28
+ roomId?: number | null | undefined;
29
+ seamDeviceId?: string | null | undefined;
30
+ seamAccessCodeId?: string | null | undefined;
31
+ klevioLockId?: number | null | undefined;
32
+ klevioKeyId?: string | null | undefined;
33
+ userEmail?: string | null | undefined;
34
+ userName?: string | null | undefined;
35
+ userRole?: string | null | undefined;
36
+ }, {
37
+ id: number;
38
+ createdAt: Date;
39
+ reservationId: number;
40
+ eventType: string;
41
+ occurredAt: Date;
42
+ metadata?: unknown;
43
+ userId?: string | null | undefined;
44
+ propertyId?: number | null | undefined;
45
+ roomId?: number | null | undefined;
46
+ seamDeviceId?: string | null | undefined;
47
+ seamAccessCodeId?: string | null | undefined;
48
+ klevioLockId?: number | null | undefined;
49
+ klevioKeyId?: string | null | undefined;
50
+ userEmail?: string | null | undefined;
51
+ userName?: string | null | undefined;
52
+ userRole?: string | null | undefined;
53
+ }>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reservationAccessLogSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.reservationAccessLogSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ reservationId: (0, zod_1.number)().int(),
8
+ roomId: (0, zod_1.number)().int().nullish(),
9
+ propertyId: (0, zod_1.number)().int().nullish(),
10
+ seamDeviceId: (0, zod_1.string)().nullish(),
11
+ seamAccessCodeId: (0, zod_1.string)().nullish(),
12
+ klevioLockId: (0, zod_1.number)().int().nullish(),
13
+ klevioKeyId: (0, zod_1.string)().nullish(),
14
+ eventType: (0, zod_1.string)(),
15
+ occurredAt: (0, zod_1.date)(),
16
+ userId: (0, zod_1.string)().nullish(),
17
+ userEmail: (0, zod_1.string)().nullish(),
18
+ userName: (0, zod_1.string)().nullish(),
19
+ userRole: (0, zod_1.string)().nullish(),
20
+ metadata: zod_1.z.unknown().nullish(),
21
+ createdAt: (0, zod_1.date)(),
22
+ });
@@ -0,0 +1,35 @@
1
+ import { GuestInviteStatus } from "../../types/enums";
2
+ export declare const reservationGuestInviteSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodNumber;
4
+ reservationId: import("zod").ZodNumber;
5
+ invitedByUserId: import("zod").ZodString;
6
+ phone: import("zod").ZodString;
7
+ email: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
8
+ status: import("zod").ZodNativeEnum<typeof GuestInviteStatus>;
9
+ inviteeUserId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
10
+ token: import("zod").ZodString;
11
+ createdAt: import("zod").ZodDate;
12
+ updatedAt: import("zod").ZodDate;
13
+ }, "strip", import("zod").ZodTypeAny, {
14
+ id: number;
15
+ status: GuestInviteStatus;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ phone: string;
19
+ reservationId: number;
20
+ invitedByUserId: string;
21
+ token: string;
22
+ email?: string | null | undefined;
23
+ inviteeUserId?: string | null | undefined;
24
+ }, {
25
+ id: number;
26
+ status: GuestInviteStatus;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ phone: string;
30
+ reservationId: number;
31
+ invitedByUserId: string;
32
+ token: string;
33
+ email?: string | null | undefined;
34
+ inviteeUserId?: string | null | undefined;
35
+ }>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reservationGuestInviteSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.reservationGuestInviteSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.number)().int(),
8
+ reservationId: (0, zod_1.number)().int(),
9
+ invitedByUserId: (0, zod_1.string)(),
10
+ phone: (0, zod_1.string)(),
11
+ email: (0, zod_1.string)().nullish(),
12
+ status: (0, zod_1.nativeEnum)(enums_1.GuestInviteStatus),
13
+ inviteeUserId: (0, zod_1.string)().nullish(),
14
+ token: (0, zod_1.string)(),
15
+ createdAt: (0, zod_1.date)(),
16
+ updatedAt: (0, zod_1.date)(),
17
+ });
@@ -40,8 +40,8 @@ export declare const seamAccountSchema: z.ZodObject<{
40
40
  isActive: boolean;
41
41
  accountTypeDisplayName: string;
42
42
  accountName?: string | null | undefined;
43
- imageUrl?: string | null | undefined;
44
43
  workspaceId?: string | null | undefined;
44
+ imageUrl?: string | null | undefined;
45
45
  customMetadata?: {} | null | undefined;
46
46
  lastSyncedAt?: Date | null | undefined;
47
47
  }, {
@@ -53,8 +53,8 @@ export declare const seamAccountSchema: z.ZodObject<{
53
53
  isActive: boolean;
54
54
  accountTypeDisplayName: string;
55
55
  accountName?: string | null | undefined;
56
- imageUrl?: string | null | undefined;
57
56
  workspaceId?: string | null | undefined;
57
+ imageUrl?: string | null | undefined;
58
58
  customMetadata?: {} | null | undefined;
59
59
  lastSyncedAt?: Date | null | undefined;
60
60
  }>;
@@ -107,8 +107,8 @@ export declare const seamDeviceSchema: z.ZodObject<{
107
107
  location?: string | null | undefined;
108
108
  online?: boolean | null | undefined;
109
109
  nickname?: string | null | undefined;
110
- imageUrl?: string | null | undefined;
111
110
  workspaceId?: string | null | undefined;
111
+ imageUrl?: string | null | undefined;
112
112
  lastSyncedAt?: Date | null | undefined;
113
113
  batteryLevel?: string | null | undefined;
114
114
  batteryStatus?: string | null | undefined;
@@ -138,8 +138,8 @@ export declare const seamDeviceSchema: z.ZodObject<{
138
138
  location?: string | null | undefined;
139
139
  online?: boolean | null | undefined;
140
140
  nickname?: string | null | undefined;
141
- imageUrl?: string | null | undefined;
142
141
  workspaceId?: string | null | undefined;
142
+ imageUrl?: string | null | undefined;
143
143
  lastSyncedAt?: Date | null | undefined;
144
144
  batteryLevel?: string | null | undefined;
145
145
  batteryStatus?: string | null | undefined;
@@ -0,0 +1,25 @@
1
+ export declare const serviceAvailabilitySchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ serviceId: import("zod").ZodNumber;
4
+ dayOfWeek: import("zod").ZodNumber;
5
+ startTime: import("zod").ZodString;
6
+ endTime: import("zod").ZodString;
7
+ createdAt: import("zod").ZodDate;
8
+ updatedAt: import("zod").ZodDate;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ endTime: string;
11
+ startTime: string;
12
+ id: number;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ serviceId: number;
16
+ dayOfWeek: number;
17
+ }, {
18
+ endTime: string;
19
+ startTime: string;
20
+ id: number;
21
+ createdAt: Date;
22
+ updatedAt: Date;
23
+ serviceId: number;
24
+ dayOfWeek: number;
25
+ }>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serviceAvailabilitySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.serviceAvailabilitySchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ serviceId: (0, zod_1.number)().int(),
8
+ dayOfWeek: (0, zod_1.number)().int(),
9
+ startTime: (0, zod_1.string)(),
10
+ endTime: (0, zod_1.string)(),
11
+ createdAt: (0, zod_1.date)(),
12
+ updatedAt: (0, zod_1.date)(),
13
+ });
@@ -20,7 +20,7 @@ export declare const ServiceProviderSchema: import("zod").ZodObject<{
20
20
  isOnboardingCompleted: import("zod").ZodBoolean;
21
21
  }, "strip", import("zod").ZodTypeAny, {
22
22
  name: string;
23
- type: "INDIVIDUAL" | "BUSINESS";
23
+ type: "BUSINESS" | "INDIVIDUAL";
24
24
  id: number;
25
25
  email: string;
26
26
  description: string | null;
@@ -40,7 +40,7 @@ export declare const ServiceProviderSchema: import("zod").ZodObject<{
40
40
  ownerId: string;
41
41
  }, {
42
42
  name: string;
43
- type: "INDIVIDUAL" | "BUSINESS";
43
+ type: "BUSINESS" | "INDIVIDUAL";
44
44
  id: number;
45
45
  email: string;
46
46
  description: string | null;
@@ -0,0 +1,88 @@
1
+ import { ServiceWorkerPayoutStatus } from "../../types/enums";
2
+ export declare const serviceWorkerPayoutInfoSchema: import("zod").ZodObject<{
3
+ id: import("zod").ZodNumber;
4
+ serviceWorkerId: import("zod").ZodNumber;
5
+ fullName: import("zod").ZodString;
6
+ sortCode: import("zod").ZodString;
7
+ accountNumber: import("zod").ZodString;
8
+ createdAt: import("zod").ZodDate;
9
+ updatedAt: import("zod").ZodDate;
10
+ }, "strip", import("zod").ZodTypeAny, {
11
+ id: number;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ accountNumber: string;
15
+ fullName: string;
16
+ sortCode: string;
17
+ serviceWorkerId: number;
18
+ }, {
19
+ id: number;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ accountNumber: string;
23
+ fullName: string;
24
+ sortCode: string;
25
+ serviceWorkerId: number;
26
+ }>;
27
+ export declare const serviceWorkerPayoutSchema: import("zod").ZodObject<{
28
+ id: import("zod").ZodNumber;
29
+ createdAt: import("zod").ZodDate;
30
+ updatedAt: import("zod").ZodDate;
31
+ total: import("zod").ZodNumber;
32
+ status: import("zod").ZodNativeEnum<typeof ServiceWorkerPayoutStatus>;
33
+ payoutDate: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
34
+ opsSeenAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
35
+ currency: import("zod").ZodString;
36
+ payoutInfoId: import("zod").ZodNumber;
37
+ invoiceUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
38
+ }, "strip", import("zod").ZodTypeAny, {
39
+ currency: string;
40
+ id: number;
41
+ total: number;
42
+ status: ServiceWorkerPayoutStatus;
43
+ createdAt: Date;
44
+ updatedAt: Date;
45
+ payoutInfoId: number;
46
+ payoutDate?: Date | null | undefined;
47
+ opsSeenAt?: Date | null | undefined;
48
+ invoiceUrl?: string | null | undefined;
49
+ }, {
50
+ currency: string;
51
+ id: number;
52
+ total: number;
53
+ status: ServiceWorkerPayoutStatus;
54
+ createdAt: Date;
55
+ updatedAt: Date;
56
+ payoutInfoId: number;
57
+ payoutDate?: Date | null | undefined;
58
+ opsSeenAt?: Date | null | undefined;
59
+ invoiceUrl?: string | null | undefined;
60
+ }>;
61
+ export declare const serviceWorkerWorkingHoursSchema: import("zod").ZodObject<{
62
+ id: import("zod").ZodNumber;
63
+ serviceWorkerId: import("zod").ZodNumber;
64
+ dayOfWeek: import("zod").ZodNumber;
65
+ isEnabled: import("zod").ZodBoolean;
66
+ startTime: import("zod").ZodString;
67
+ endTime: import("zod").ZodString;
68
+ createdAt: import("zod").ZodDate;
69
+ updatedAt: import("zod").ZodDate;
70
+ }, "strip", import("zod").ZodTypeAny, {
71
+ endTime: string;
72
+ startTime: string;
73
+ id: number;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ serviceWorkerId: number;
77
+ dayOfWeek: number;
78
+ isEnabled: boolean;
79
+ }, {
80
+ endTime: string;
81
+ startTime: string;
82
+ id: number;
83
+ createdAt: Date;
84
+ updatedAt: Date;
85
+ serviceWorkerId: number;
86
+ dayOfWeek: number;
87
+ isEnabled: boolean;
88
+ }>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serviceWorkerWorkingHoursSchema = exports.serviceWorkerPayoutSchema = exports.serviceWorkerPayoutInfoSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enums_1 = require("../../types/enums");
6
+ exports.serviceWorkerPayoutInfoSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.number)().int(),
8
+ serviceWorkerId: (0, zod_1.number)().int(),
9
+ fullName: (0, zod_1.string)(),
10
+ sortCode: (0, zod_1.string)(),
11
+ accountNumber: (0, zod_1.string)(),
12
+ createdAt: (0, zod_1.date)(),
13
+ updatedAt: (0, zod_1.date)(),
14
+ });
15
+ exports.serviceWorkerPayoutSchema = (0, zod_1.object)({
16
+ id: (0, zod_1.number)().int(),
17
+ createdAt: (0, zod_1.date)(),
18
+ updatedAt: (0, zod_1.date)(),
19
+ total: (0, zod_1.number)(),
20
+ status: (0, zod_1.nativeEnum)(enums_1.ServiceWorkerPayoutStatus),
21
+ payoutDate: (0, zod_1.date)().nullish(),
22
+ opsSeenAt: (0, zod_1.date)().nullish(),
23
+ currency: (0, zod_1.string)(),
24
+ payoutInfoId: (0, zod_1.number)().int(),
25
+ invoiceUrl: (0, zod_1.string)().nullish(),
26
+ });
27
+ exports.serviceWorkerWorkingHoursSchema = (0, zod_1.object)({
28
+ id: (0, zod_1.number)().int(),
29
+ serviceWorkerId: (0, zod_1.number)().int(),
30
+ dayOfWeek: (0, zod_1.number)().int(),
31
+ isEnabled: (0, zod_1.boolean)(),
32
+ startTime: (0, zod_1.string)(),
33
+ endTime: (0, zod_1.string)(),
34
+ createdAt: (0, zod_1.date)(),
35
+ updatedAt: (0, zod_1.date)(),
36
+ });
@@ -1,4 +1,4 @@
1
- import { TaskBlockReason, TaskPriority, TaskStatus } from "../../types/enums";
1
+ import { TaskBlockReason, TaskPaymentStatus, TaskPriority, TaskStatus } from "../../types/enums";
2
2
  export declare const taskSchema: import("zod").ZodObject<{
3
3
  id: import("zod").ZodNumber;
4
4
  status: import("zod").ZodNativeEnum<typeof TaskStatus>;
@@ -11,7 +11,12 @@ export declare const taskSchema: import("zod").ZodObject<{
11
11
  createdAt: import("zod").ZodDate;
12
12
  updatedAt: import("zod").ZodDate;
13
13
  propertyId: import("zod").ZodNumber;
14
- paymentStatus: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"PENDING">, import("zod").ZodLiteral<"PAID">]>, import("zod").ZodLiteral<"FAILED">]>;
14
+ reservationId: import("zod").ZodOptional<import("zod").ZodNumber>;
15
+ roomId: import("zod").ZodOptional<import("zod").ZodNumber>;
16
+ automationId: import("zod").ZodOptional<import("zod").ZodNumber>;
17
+ purchaseId: import("zod").ZodOptional<import("zod").ZodString>;
18
+ serviceId: import("zod").ZodOptional<import("zod").ZodNumber>;
19
+ paymentStatus: import("zod").ZodNativeEnum<typeof TaskPaymentStatus>;
15
20
  assignedWorkerId: import("zod").ZodOptional<import("zod").ZodNumber>;
16
21
  startedAt: import("zod").ZodOptional<import("zod").ZodDate>;
17
22
  completedAt: import("zod").ZodOptional<import("zod").ZodDate>;
@@ -41,7 +46,12 @@ export declare const taskSchema: import("zod").ZodObject<{
41
46
  parentTaskId: import("zod").ZodOptional<import("zod").ZodNumber>;
42
47
  providerPaidOut: import("zod").ZodOptional<import("zod").ZodBoolean>;
43
48
  serviceProviderPayoutId: import("zod").ZodOptional<import("zod").ZodNumber>;
49
+ workerPaidOut: import("zod").ZodOptional<import("zod").ZodBoolean>;
50
+ serviceWorkerPayoutId: import("zod").ZodOptional<import("zod").ZodNumber>;
44
51
  assignedProviderId: import("zod").ZodOptional<import("zod").ZodNumber>;
52
+ isEntirePropertyPhotographed: import("zod").ZodOptional<import("zod").ZodBoolean>;
53
+ assignedWorkerAt: import("zod").ZodOptional<import("zod").ZodDate>;
54
+ durationMinutes: import("zod").ZodOptional<import("zod").ZodNumber>;
45
55
  }, "strip", import("zod").ZodTypeAny, {
46
56
  id: number;
47
57
  priority: TaskPriority;
@@ -53,9 +63,14 @@ export declare const taskSchema: import("zod").ZodObject<{
53
63
  subdepartmentId: number;
54
64
  propertyId: number;
55
65
  dueDate: Date;
56
- paymentStatus: "PENDING" | "PAID" | "FAILED";
66
+ paymentStatus: TaskPaymentStatus;
57
67
  description?: string | undefined;
58
68
  internalNotes?: string | undefined;
69
+ serviceId?: number | undefined;
70
+ roomId?: number | undefined;
71
+ reservationId?: number | undefined;
72
+ automationId?: number | undefined;
73
+ purchaseId?: string | undefined;
59
74
  assignedWorkerId?: number | undefined;
60
75
  startedAt?: Date | undefined;
61
76
  completedAt?: Date | undefined;
@@ -84,7 +99,12 @@ export declare const taskSchema: import("zod").ZodObject<{
84
99
  parentTaskId?: number | undefined;
85
100
  providerPaidOut?: boolean | undefined;
86
101
  serviceProviderPayoutId?: number | undefined;
102
+ workerPaidOut?: boolean | undefined;
103
+ serviceWorkerPayoutId?: number | undefined;
87
104
  assignedProviderId?: number | undefined;
105
+ isEntirePropertyPhotographed?: boolean | undefined;
106
+ assignedWorkerAt?: Date | undefined;
107
+ durationMinutes?: number | undefined;
88
108
  }, {
89
109
  id: number;
90
110
  priority: TaskPriority;
@@ -96,9 +116,14 @@ export declare const taskSchema: import("zod").ZodObject<{
96
116
  subdepartmentId: number;
97
117
  propertyId: number;
98
118
  dueDate: Date;
99
- paymentStatus: "PENDING" | "PAID" | "FAILED";
119
+ paymentStatus: TaskPaymentStatus;
100
120
  description?: string | undefined;
101
121
  internalNotes?: string | undefined;
122
+ serviceId?: number | undefined;
123
+ roomId?: number | undefined;
124
+ reservationId?: number | undefined;
125
+ automationId?: number | undefined;
126
+ purchaseId?: string | undefined;
102
127
  assignedWorkerId?: number | undefined;
103
128
  startedAt?: Date | undefined;
104
129
  completedAt?: Date | undefined;
@@ -127,5 +152,10 @@ export declare const taskSchema: import("zod").ZodObject<{
127
152
  parentTaskId?: number | undefined;
128
153
  providerPaidOut?: boolean | undefined;
129
154
  serviceProviderPayoutId?: number | undefined;
155
+ workerPaidOut?: boolean | undefined;
156
+ serviceWorkerPayoutId?: number | undefined;
130
157
  assignedProviderId?: number | undefined;
158
+ isEntirePropertyPhotographed?: boolean | undefined;
159
+ assignedWorkerAt?: Date | undefined;
160
+ durationMinutes?: number | undefined;
131
161
  }>;
@@ -15,7 +15,12 @@ exports.taskSchema = (0, zod_1.object)({
15
15
  createdAt: (0, zod_1.date)(),
16
16
  updatedAt: (0, zod_1.date)(),
17
17
  propertyId: (0, zod_1.number)().int(),
18
- paymentStatus: (0, zod_1.literal)("PENDING").or((0, zod_1.literal)("PAID")).or((0, zod_1.literal)("FAILED")),
18
+ reservationId: (0, zod_1.number)().int().optional(),
19
+ roomId: (0, zod_1.number)().int().optional(),
20
+ automationId: (0, zod_1.number)().int().optional(),
21
+ purchaseId: (0, zod_1.string)().optional(),
22
+ serviceId: (0, zod_1.number)().int().optional(),
23
+ paymentStatus: (0, zod_1.nativeEnum)(enums_1.TaskPaymentStatus),
19
24
  assignedWorkerId: (0, zod_1.number)().int().optional(),
20
25
  startedAt: (0, zod_1.date)().optional(),
21
26
  completedAt: (0, zod_1.date)().optional(),
@@ -45,5 +50,10 @@ exports.taskSchema = (0, zod_1.object)({
45
50
  parentTaskId: (0, zod_1.number)().int().optional(),
46
51
  providerPaidOut: (0, zod_1.boolean)().optional(),
47
52
  serviceProviderPayoutId: (0, zod_1.number)().int().optional(),
53
+ workerPaidOut: (0, zod_1.boolean)().optional(),
54
+ serviceWorkerPayoutId: (0, zod_1.number)().int().optional(),
48
55
  assignedProviderId: (0, zod_1.number)().int().optional(),
56
+ isEntirePropertyPhotographed: (0, zod_1.boolean)().optional(),
57
+ assignedWorkerAt: (0, zod_1.date)().optional(),
58
+ durationMinutes: (0, zod_1.number)().int().optional(),
49
59
  });