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.
Files changed (93) 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/icons.d.ts +5 -0
  22. package/dist/schemas/property-guide/icons.js +55 -0
  23. package/dist/schemas/property-guide/index.d.ts +32 -0
  24. package/dist/schemas/property-guide/index.js +20 -0
  25. package/dist/schemas/property-room/index.d.ts +2 -2
  26. package/dist/schemas/property-safety-details/index.d.ts +2 -2
  27. package/dist/schemas/push-token/index.d.ts +35 -0
  28. package/dist/schemas/push-token/index.js +17 -0
  29. package/dist/schemas/reservation/index.d.ts +3 -0
  30. package/dist/schemas/reservation/index.js +1 -0
  31. package/dist/schemas/reservation-access-log/index.d.ts +53 -0
  32. package/dist/schemas/reservation-access-log/index.js +22 -0
  33. package/dist/schemas/reservation-guest-invite/index.d.ts +35 -0
  34. package/dist/schemas/reservation-guest-invite/index.js +17 -0
  35. package/dist/schemas/seam/index.d.ts +4 -4
  36. package/dist/schemas/service-availability/index.d.ts +25 -0
  37. package/dist/schemas/service-availability/index.js +13 -0
  38. package/dist/schemas/service-provider/index.d.ts +2 -2
  39. package/dist/schemas/service-worker-payout/index.d.ts +88 -0
  40. package/dist/schemas/service-worker-payout/index.js +36 -0
  41. package/dist/schemas/task/index.d.ts +34 -4
  42. package/dist/schemas/task/index.js +11 -1
  43. package/dist/schemas/task-checklist-item/index.d.ts +2 -2
  44. package/dist/schemas/task-checklist-space/index.d.ts +2 -2
  45. package/dist/schemas/task-expense-fact/index.d.ts +37 -0
  46. package/dist/schemas/task-expense-fact/index.js +18 -0
  47. package/dist/schemas/task-photography-space/index.d.ts +2 -2
  48. package/dist/schemas/task-thread/index.d.ts +6 -0
  49. package/dist/schemas/thread/index.d.ts +78 -6
  50. package/dist/schemas/user/index.d.ts +9 -0
  51. package/dist/schemas/user/index.js +3 -0
  52. package/dist/schemas/webhook/index.d.ts +104 -0
  53. package/dist/schemas/webhook/index.js +41 -0
  54. package/dist/types/api-key/index.d.ts +10 -0
  55. package/dist/types/booking-settings/index.d.ts +2 -0
  56. package/dist/types/enums/index.d.ts +228 -0
  57. package/dist/types/enums/index.js +263 -1
  58. package/dist/types/external-sync-request/index.d.ts +4 -0
  59. package/dist/types/external-sync-request/index.js +2 -0
  60. package/dist/types/guest-verification/index.d.ts +3 -18
  61. package/dist/types/index.d.ts +7 -0
  62. package/dist/types/index.js +7 -0
  63. package/dist/types/listing-expectation/index.d.ts +6 -0
  64. package/dist/types/listing-expectation/index.js +2 -0
  65. package/dist/types/notification/index.d.ts +15 -0
  66. package/dist/types/notification/index.js +2 -0
  67. package/dist/types/property/index.d.ts +4 -0
  68. package/dist/types/property-guide/index.d.ts +6 -0
  69. package/dist/types/property-guide/index.js +2 -0
  70. package/dist/types/push-token/index.d.ts +6 -0
  71. package/dist/types/push-token/index.js +2 -0
  72. package/dist/types/reservation/index.d.ts +8 -0
  73. package/dist/types/reservation-access-log/index.d.ts +64 -0
  74. package/dist/types/reservation-access-log/index.js +2 -0
  75. package/dist/types/reservation-guest-invite/index.d.ts +9 -0
  76. package/dist/types/reservation-guest-invite/index.js +2 -0
  77. package/dist/types/service-availability/index.d.ts +6 -0
  78. package/dist/types/service-availability/index.js +2 -0
  79. package/dist/types/service-worker-payout/index.d.ts +17 -0
  80. package/dist/types/service-worker-payout/index.js +2 -0
  81. package/dist/types/task/index.d.ts +7 -0
  82. package/dist/types/task-expense-fact/index.d.ts +12 -0
  83. package/dist/types/task-expense-fact/index.js +2 -0
  84. package/dist/types/user/index.d.ts +10 -0
  85. package/dist/types/webhook/index.d.ts +15 -0
  86. package/dist/types/webhook/index.js +2 -0
  87. package/package.json +1 -1
  88. package/dist/schemas/enums/index.d.ts +0 -45
  89. package/dist/schemas/enums/index.js +0 -56
  90. package/dist/schemas/service-property/index.d.ts +0 -19
  91. package/dist/schemas/service-property/index.js +0 -11
  92. package/dist/types/service-property/index.d.ts +0 -8
  93. /package/dist/types/{service-property → api-key}/index.js +0 -0
@@ -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
  });
@@ -11,15 +11,15 @@ export declare const taskChecklistItemSchema: import("zod").ZodObject<{
11
11
  createdAt: Date;
12
12
  updatedAt: Date;
13
13
  taskChecklistSpaceId: number;
14
- content?: string | undefined;
15
14
  completed?: boolean | undefined;
15
+ content?: string | undefined;
16
16
  completedAt?: Date | undefined;
17
17
  }, {
18
18
  id: number;
19
19
  createdAt: Date;
20
20
  updatedAt: Date;
21
21
  taskChecklistSpaceId: number;
22
- content?: string | undefined;
23
22
  completed?: boolean | undefined;
23
+ content?: string | undefined;
24
24
  completedAt?: Date | undefined;
25
25
  }>;
@@ -12,7 +12,7 @@ export declare const taskChecklistSpaceSchema: import("zod").ZodObject<{
12
12
  updatedAt: Date;
13
13
  propertyRoomId: number;
14
14
  roomName: string;
15
- roomType: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
15
+ roomType: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "DINING_ROOM" | "BALCONY" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE" | "OTHER";
16
16
  taskChecklistId: number;
17
17
  }, {
18
18
  id: number;
@@ -20,6 +20,6 @@ export declare const taskChecklistSpaceSchema: import("zod").ZodObject<{
20
20
  updatedAt: Date;
21
21
  propertyRoomId: number;
22
22
  roomName: string;
23
- roomType: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
23
+ roomType: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "DINING_ROOM" | "BALCONY" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE" | "OTHER";
24
24
  taskChecklistId: number;
25
25
  }>;
@@ -0,0 +1,37 @@
1
+ export declare const taskExpenseFactSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ taskId: import("zod").ZodNumber;
4
+ reservationId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
5
+ propertyId: import("zod").ZodNumber;
6
+ roomId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
7
+ dateString: import("zod").ZodString;
8
+ date: import("zod").ZodDate;
9
+ hostTotal: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodEffects<import("zod").ZodString, number, string>]>;
10
+ currency: import("zod").ZodString;
11
+ createdAt: import("zod").ZodDate;
12
+ updatedAt: import("zod").ZodDate;
13
+ }, "strip", import("zod").ZodTypeAny, {
14
+ currency: string;
15
+ id: number;
16
+ date: Date;
17
+ createdAt: Date;
18
+ updatedAt: Date;
19
+ propertyId: number;
20
+ taskId: number;
21
+ hostTotal: number;
22
+ dateString: string;
23
+ roomId?: number | null | undefined;
24
+ reservationId?: number | null | undefined;
25
+ }, {
26
+ currency: string;
27
+ id: number;
28
+ date: Date;
29
+ createdAt: Date;
30
+ updatedAt: Date;
31
+ propertyId: number;
32
+ taskId: number;
33
+ hostTotal: string | number;
34
+ dateString: string;
35
+ roomId?: number | null | undefined;
36
+ reservationId?: number | null | undefined;
37
+ }>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.taskExpenseFactSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const prisma_decimal_1 = require("../prisma-decimal");
6
+ exports.taskExpenseFactSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.number)().int(),
8
+ taskId: (0, zod_1.number)().int(),
9
+ reservationId: (0, zod_1.number)().int().nullish(),
10
+ propertyId: (0, zod_1.number)().int(),
11
+ roomId: (0, zod_1.number)().int().nullish(),
12
+ dateString: (0, zod_1.string)(),
13
+ date: (0, zod_1.date)(),
14
+ hostTotal: prisma_decimal_1.zDecimal,
15
+ currency: (0, zod_1.string)(),
16
+ createdAt: (0, zod_1.date)(),
17
+ updatedAt: (0, zod_1.date)(),
18
+ });
@@ -13,7 +13,7 @@ export declare const taskPhotographySpaceSchema: import("zod").ZodObject<{
13
13
  propertyRoomId: number;
14
14
  taskId: number;
15
15
  roomName: string;
16
- roomType: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
16
+ roomType: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "DINING_ROOM" | "BALCONY" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE" | "OTHER";
17
17
  }, {
18
18
  id: number;
19
19
  createdAt: Date;
@@ -21,5 +21,5 @@ export declare const taskPhotographySpaceSchema: import("zod").ZodObject<{
21
21
  propertyRoomId: number;
22
22
  taskId: number;
23
23
  roomName: string;
24
- roomType: "BEDROOM" | "BATHROOM" | "LIVING_ROOM" | "KITCHEN" | "BALCONY" | "TOILET" | "OTHER" | "DINING_ROOM" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE";
24
+ roomType: "BEDROOM" | "BATHROOM" | "TOILET" | "LIVING_ROOM" | "KITCHEN" | "DINING_ROOM" | "BALCONY" | "OUTDOOR" | "WORKSPACE" | "STORAGE" | "COMMON_SPACE" | "OTHER";
25
25
  }>;
@@ -17,6 +17,7 @@ export declare const taskCommentSchema: import("zod").ZodObject<{
17
17
  photoUrl: import("zod").ZodOptional<import("zod").ZodString>;
18
18
  isOnboardingCompleted: import("zod").ZodBoolean;
19
19
  isOnboardingPaused: import("zod").ZodOptional<import("zod").ZodBoolean>;
20
+ notificationsPaused: import("zod").ZodOptional<import("zod").ZodBoolean>;
20
21
  hadOnboardingCall: import("zod").ZodOptional<import("zod").ZodBoolean>;
21
22
  userRoleId: import("zod").ZodNumber;
22
23
  stripeCustomerId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -35,6 +36,8 @@ export declare const taskCommentSchema: import("zod").ZodObject<{
35
36
  hasActiveBookingAccount: import("zod").ZodOptional<import("zod").ZodBoolean>;
36
37
  hasPendingPaymentAction: import("zod").ZodOptional<import("zod").ZodBoolean>;
37
38
  isKlevioAvailable: import("zod").ZodOptional<import("zod").ZodBoolean>;
39
+ stripeTrialSubscriptionId: import("zod").ZodOptional<import("zod").ZodString>;
40
+ publicHostSlug: import("zod").ZodOptional<import("zod").ZodString>;
38
41
  }, "name" | "id" | "email" | "firstName" | "lastName" | "phone" | "photoUrl" | "userRoleId">, "strip", import("zod").ZodTypeAny, {
39
42
  name: string;
40
43
  id: string;
@@ -140,6 +143,7 @@ export declare const taskThreadSchema: import("zod").ZodObject<{
140
143
  photoUrl: import("zod").ZodOptional<import("zod").ZodString>;
141
144
  isOnboardingCompleted: import("zod").ZodBoolean;
142
145
  isOnboardingPaused: import("zod").ZodOptional<import("zod").ZodBoolean>;
146
+ notificationsPaused: import("zod").ZodOptional<import("zod").ZodBoolean>;
143
147
  hadOnboardingCall: import("zod").ZodOptional<import("zod").ZodBoolean>;
144
148
  userRoleId: import("zod").ZodNumber;
145
149
  stripeCustomerId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -158,6 +162,8 @@ export declare const taskThreadSchema: import("zod").ZodObject<{
158
162
  hasActiveBookingAccount: import("zod").ZodOptional<import("zod").ZodBoolean>;
159
163
  hasPendingPaymentAction: import("zod").ZodOptional<import("zod").ZodBoolean>;
160
164
  isKlevioAvailable: import("zod").ZodOptional<import("zod").ZodBoolean>;
165
+ stripeTrialSubscriptionId: import("zod").ZodOptional<import("zod").ZodString>;
166
+ publicHostSlug: import("zod").ZodOptional<import("zod").ZodString>;
161
167
  }, "name" | "id" | "email" | "firstName" | "lastName" | "phone" | "photoUrl" | "userRoleId">, "strip", import("zod").ZodTypeAny, {
162
168
  name: string;
163
169
  id: string;