hububb-saas-shared 1.0.45 → 1.0.47

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.
@@ -1,7 +1,6 @@
1
1
  export declare enum ServiceType {
2
- INTEGRATION = "INTEGRATION",
3
- ON_DEMAND = "ON_DEMAND",
4
- RECURRING = "RECURRING"
2
+ ON_DEMAND = "FULL",
3
+ SUBSCRIPTION = "PRORATED"
5
4
  }
6
5
  export declare enum TaskStatus {
7
6
  PENDING = "PENDING",
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionStatus = exports.PurchaseStatus = exports.PriceType = exports.InvoiceStatus = exports.InvoiceType = exports.TaskPriority = exports.TaskStatus = exports.ServiceType = void 0;
4
4
  var ServiceType;
5
5
  (function (ServiceType) {
6
- ServiceType["INTEGRATION"] = "INTEGRATION";
7
- ServiceType["ON_DEMAND"] = "ON_DEMAND";
8
- ServiceType["RECURRING"] = "RECURRING";
6
+ ServiceType["ON_DEMAND"] = "FULL";
7
+ ServiceType["SUBSCRIPTION"] = "PRORATED";
9
8
  })(ServiceType || (exports.ServiceType = ServiceType = {}));
10
9
  var TaskStatus;
11
10
  (function (TaskStatus) {
@@ -1,3 +1,4 @@
1
+ import { SubscriptionStatus } from "../../types";
1
2
  export declare const subscriptionServiceSchema: import("zod").ZodObject<{
2
3
  id: import("zod").ZodString;
3
4
  subscriptionId: import("zod").ZodString;
@@ -5,12 +6,15 @@ export declare const subscriptionServiceSchema: import("zod").ZodObject<{
5
6
  propertyId: import("zod").ZodNumber;
6
7
  stripePriceId: import("zod").ZodString;
7
8
  price: import("zod").ZodNumber;
9
+ status: import("zod").ZodNativeEnum<typeof SubscriptionStatus>;
10
+ canceledAt: import("zod").ZodOptional<import("zod").ZodDate>;
8
11
  lastBilledAt: import("zod").ZodOptional<import("zod").ZodDate>;
9
12
  nextBillingDate: import("zod").ZodOptional<import("zod").ZodDate>;
10
13
  createdAt: import("zod").ZodDate;
11
14
  updatedAt: import("zod").ZodDate;
12
15
  }, "strip", import("zod").ZodTypeAny, {
13
16
  id: string;
17
+ status: SubscriptionStatus;
14
18
  createdAt: Date;
15
19
  updatedAt: Date;
16
20
  price: number;
@@ -18,10 +22,12 @@ export declare const subscriptionServiceSchema: import("zod").ZodObject<{
18
22
  stripePriceId: string;
19
23
  propertyId: number;
20
24
  subscriptionId: string;
25
+ canceledAt?: Date | undefined;
21
26
  lastBilledAt?: Date | undefined;
22
27
  nextBillingDate?: Date | undefined;
23
28
  }, {
24
29
  id: string;
30
+ status: SubscriptionStatus;
25
31
  createdAt: Date;
26
32
  updatedAt: Date;
27
33
  price: number;
@@ -29,6 +35,7 @@ export declare const subscriptionServiceSchema: import("zod").ZodObject<{
29
35
  stripePriceId: string;
30
36
  propertyId: number;
31
37
  subscriptionId: string;
38
+ canceledAt?: Date | undefined;
32
39
  lastBilledAt?: Date | undefined;
33
40
  nextBillingDate?: Date | undefined;
34
41
  }>;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.subscriptionServiceSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const types_1 = require("../../types");
5
6
  exports.subscriptionServiceSchema = (0, zod_1.object)({
6
7
  id: (0, zod_1.string)(),
7
8
  subscriptionId: (0, zod_1.string)(),
@@ -9,6 +10,8 @@ exports.subscriptionServiceSchema = (0, zod_1.object)({
9
10
  propertyId: (0, zod_1.number)(),
10
11
  stripePriceId: (0, zod_1.string)(),
11
12
  price: (0, zod_1.number)(),
13
+ status: (0, zod_1.nativeEnum)(types_1.SubscriptionStatus),
14
+ canceledAt: (0, zod_1.date)().optional(),
12
15
  lastBilledAt: (0, zod_1.date)().optional(),
13
16
  nextBillingDate: (0, zod_1.date)().optional(),
14
17
  createdAt: (0, zod_1.date)(),
@@ -13,6 +13,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
13
13
  firstName: import("zod").ZodString;
14
14
  lastName: import("zod").ZodString;
15
15
  phone: import("zod").ZodString;
16
+ photoUrl: import("zod").ZodOptional<import("zod").ZodString>;
16
17
  isOnboardingCompleted: import("zod").ZodBoolean;
17
18
  userRoleId: import("zod").ZodNumber;
18
19
  stripeCustomerId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -28,6 +29,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
28
29
  phone: string;
29
30
  isOnboardingCompleted: boolean;
30
31
  userRoleId: number;
32
+ photoUrl?: string | undefined;
31
33
  stripeCustomerId?: string | undefined;
32
34
  }, {
33
35
  name: string;
@@ -41,6 +43,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
41
43
  phone: string;
42
44
  isOnboardingCompleted: boolean;
43
45
  userRoleId: number;
46
+ photoUrl?: string | undefined;
44
47
  stripeCustomerId?: string | undefined;
45
48
  }>>;
46
49
  contentType: import("zod").ZodString;
@@ -72,6 +75,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
72
75
  phone: string;
73
76
  isOnboardingCompleted: boolean;
74
77
  userRoleId: number;
78
+ photoUrl?: string | undefined;
75
79
  stripeCustomerId?: string | undefined;
76
80
  } | undefined;
77
81
  lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
@@ -98,6 +102,7 @@ export declare const ChatMessageSchema: import("zod").ZodObject<{
98
102
  phone: string;
99
103
  isOnboardingCompleted: boolean;
100
104
  userRoleId: number;
105
+ photoUrl?: string | undefined;
101
106
  stripeCustomerId?: string | undefined;
102
107
  } | undefined;
103
108
  lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
@@ -122,6 +127,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
122
127
  firstName: import("zod").ZodString;
123
128
  lastName: import("zod").ZodString;
124
129
  phone: import("zod").ZodString;
130
+ photoUrl: import("zod").ZodOptional<import("zod").ZodString>;
125
131
  isOnboardingCompleted: import("zod").ZodBoolean;
126
132
  userRoleId: import("zod").ZodNumber;
127
133
  stripeCustomerId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -137,6 +143,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
137
143
  phone: string;
138
144
  isOnboardingCompleted: boolean;
139
145
  userRoleId: number;
146
+ photoUrl?: string | undefined;
140
147
  stripeCustomerId?: string | undefined;
141
148
  }, {
142
149
  name: string;
@@ -150,6 +157,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
150
157
  phone: string;
151
158
  isOnboardingCompleted: boolean;
152
159
  userRoleId: number;
160
+ photoUrl?: string | undefined;
153
161
  stripeCustomerId?: string | undefined;
154
162
  }>>;
155
163
  contentType: import("zod").ZodString;
@@ -181,6 +189,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
181
189
  phone: string;
182
190
  isOnboardingCompleted: boolean;
183
191
  userRoleId: number;
192
+ photoUrl?: string | undefined;
184
193
  stripeCustomerId?: string | undefined;
185
194
  } | undefined;
186
195
  lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
@@ -207,6 +216,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
207
216
  phone: string;
208
217
  isOnboardingCompleted: boolean;
209
218
  userRoleId: number;
219
+ photoUrl?: string | undefined;
210
220
  stripeCustomerId?: string | undefined;
211
221
  } | undefined;
212
222
  lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
@@ -223,6 +233,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
223
233
  firstName: import("zod").ZodString;
224
234
  lastName: import("zod").ZodString;
225
235
  phone: import("zod").ZodString;
236
+ photoUrl: import("zod").ZodOptional<import("zod").ZodString>;
226
237
  isOnboardingCompleted: import("zod").ZodBoolean;
227
238
  userRoleId: import("zod").ZodNumber;
228
239
  stripeCustomerId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -238,6 +249,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
238
249
  phone: string;
239
250
  isOnboardingCompleted: boolean;
240
251
  userRoleId: number;
252
+ photoUrl?: string | undefined;
241
253
  stripeCustomerId?: string | undefined;
242
254
  }, {
243
255
  name: string;
@@ -251,6 +263,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
251
263
  phone: string;
252
264
  isOnboardingCompleted: boolean;
253
265
  userRoleId: number;
266
+ photoUrl?: string | undefined;
254
267
  stripeCustomerId?: string | undefined;
255
268
  }>, "many">>;
256
269
  type: import("zod").ZodUnion<[import("zod").ZodLiteral<"ONE_TO_ONE">, import("zod").ZodLiteral<"GROUP">]>;
@@ -298,6 +311,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
298
311
  phone: string;
299
312
  isOnboardingCompleted: boolean;
300
313
  userRoleId: number;
314
+ photoUrl?: string | undefined;
301
315
  stripeCustomerId?: string | undefined;
302
316
  } | undefined;
303
317
  lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
@@ -315,6 +329,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
315
329
  phone: string;
316
330
  isOnboardingCompleted: boolean;
317
331
  userRoleId: number;
332
+ photoUrl?: string | undefined;
318
333
  stripeCustomerId?: string | undefined;
319
334
  }[] | undefined;
320
335
  externalThreadId?: string | undefined;
@@ -355,6 +370,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
355
370
  phone: string;
356
371
  isOnboardingCompleted: boolean;
357
372
  userRoleId: number;
373
+ photoUrl?: string | undefined;
358
374
  stripeCustomerId?: string | undefined;
359
375
  } | undefined;
360
376
  lastSeen?: import("@firebase/firestore-types").Timestamp | undefined;
@@ -372,6 +388,7 @@ export declare const ChatThreadSchema: import("zod").ZodObject<{
372
388
  phone: string;
373
389
  isOnboardingCompleted: boolean;
374
390
  userRoleId: number;
391
+ photoUrl?: string | undefined;
375
392
  stripeCustomerId?: string | undefined;
376
393
  }[] | undefined;
377
394
  externalThreadId?: string | undefined;
@@ -8,6 +8,7 @@ export declare const userSchema: import("zod").ZodObject<{
8
8
  firstName: import("zod").ZodString;
9
9
  lastName: import("zod").ZodString;
10
10
  phone: import("zod").ZodString;
11
+ photoUrl: import("zod").ZodOptional<import("zod").ZodString>;
11
12
  isOnboardingCompleted: import("zod").ZodBoolean;
12
13
  userRoleId: import("zod").ZodNumber;
13
14
  stripeCustomerId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -23,6 +24,7 @@ export declare const userSchema: import("zod").ZodObject<{
23
24
  phone: string;
24
25
  isOnboardingCompleted: boolean;
25
26
  userRoleId: number;
27
+ photoUrl?: string | undefined;
26
28
  stripeCustomerId?: string | undefined;
27
29
  }, {
28
30
  name: string;
@@ -36,5 +38,6 @@ export declare const userSchema: import("zod").ZodObject<{
36
38
  phone: string;
37
39
  isOnboardingCompleted: boolean;
38
40
  userRoleId: number;
41
+ photoUrl?: string | undefined;
39
42
  stripeCustomerId?: string | undefined;
40
43
  }>;
@@ -12,6 +12,7 @@ exports.userSchema = (0, zod_1.object)({
12
12
  firstName: (0, zod_1.string)(),
13
13
  lastName: (0, zod_1.string)(),
14
14
  phone: (0, zod_1.string)(),
15
+ photoUrl: (0, zod_1.string)().optional(),
15
16
  isOnboardingCompleted: (0, zod_1.boolean)(),
16
17
  userRoleId: (0, zod_1.number)(),
17
18
  stripeCustomerId: (0, zod_1.string)().optional(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.45",
4
+ "version": "1.0.47",
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",