hububb-saas-shared 1.0.68 → 1.0.70

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,6 +1,7 @@
1
1
  export declare enum ServiceType {
2
- ON_DEMAND = "FULL",
3
- SUBSCRIPTION = "PRORATED"
2
+ INTEGRATION = "INTEGRATION",
3
+ ON_DEMAND = "ON_DEMAND",
4
+ RECURRING = "RECURRING"
4
5
  }
5
6
  export declare enum TaskStatus {
6
7
  PENDING = "PENDING",
@@ -3,8 +3,9 @@ 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["ON_DEMAND"] = "FULL";
7
- ServiceType["SUBSCRIPTION"] = "PRORATED";
6
+ ServiceType["INTEGRATION"] = "INTEGRATION";
7
+ ServiceType["ON_DEMAND"] = "ON_DEMAND";
8
+ ServiceType["RECURRING"] = "RECURRING";
8
9
  })(ServiceType || (exports.ServiceType = ServiceType = {}));
9
10
  var TaskStatus;
10
11
  (function (TaskStatus) {
@@ -22,6 +22,8 @@ export declare const propertySchema: z.ZodObject<{
22
22
  minimumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  maximumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
24
  area: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ isAirbnbConnectionRequest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
+ airbnbConnectionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"]>>>;
25
27
  }, "strip", z.ZodTypeAny, {
26
28
  id: number;
27
29
  title: string;
@@ -44,6 +46,8 @@ export declare const propertySchema: z.ZodObject<{
44
46
  channexRoomTypeId?: string | null | undefined;
45
47
  minimumNights?: number | null | undefined;
46
48
  maximumNights?: number | null | undefined;
49
+ isAirbnbConnectionRequest?: boolean | null | undefined;
50
+ airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
47
51
  }, {
48
52
  id: number;
49
53
  title: string;
@@ -66,6 +70,8 @@ export declare const propertySchema: z.ZodObject<{
66
70
  channexRoomTypeId?: string | null | undefined;
67
71
  minimumNights?: number | null | undefined;
68
72
  maximumNights?: number | null | undefined;
73
+ isAirbnbConnectionRequest?: boolean | null | undefined;
74
+ airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
69
75
  }>;
70
76
  export declare const updatePropertySchema: z.ZodObject<{
71
77
  propertyDetails: z.ZodOptional<z.ZodObject<{
@@ -32,6 +32,10 @@ exports.propertySchema = (0, zod_1.object)({
32
32
  minimumNights: (0, zod_1.number)().int().nullish(),
33
33
  maximumNights: (0, zod_1.number)().int().nullish(),
34
34
  area: (0, zod_1.number)().int().nullish(),
35
+ isAirbnbConnectionRequest: (0, zod_1.boolean)().nullish(),
36
+ airbnbConnectionStatus: zod_1.z
37
+ .enum(["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"])
38
+ .nullish(),
35
39
  });
36
40
  exports.updatePropertySchema = (0, zod_1.object)({
37
41
  propertyDetails: (0, zod_1.object)({
@@ -360,6 +360,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
360
360
  minimumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
361
361
  maximumNights: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
362
362
  area: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
363
+ isAirbnbConnectionRequest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
364
+ airbnbConnectionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"]>>>;
363
365
  }, "strip", z.ZodTypeAny, {
364
366
  id: number;
365
367
  title: string;
@@ -382,6 +384,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
382
384
  channexRoomTypeId?: string | null | undefined;
383
385
  minimumNights?: number | null | undefined;
384
386
  maximumNights?: number | null | undefined;
387
+ isAirbnbConnectionRequest?: boolean | null | undefined;
388
+ airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
385
389
  }, {
386
390
  id: number;
387
391
  title: string;
@@ -404,6 +408,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
404
408
  channexRoomTypeId?: string | null | undefined;
405
409
  minimumNights?: number | null | undefined;
406
410
  maximumNights?: number | null | undefined;
411
+ isAirbnbConnectionRequest?: boolean | null | undefined;
412
+ airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
407
413
  }>>;
408
414
  }>, "strip", z.ZodTypeAny, {
409
415
  id: number;
@@ -434,6 +440,8 @@ export declare const ChatThreadSchema: z.ZodObject<{
434
440
  channexRoomTypeId?: string | null | undefined;
435
441
  minimumNights?: number | null | undefined;
436
442
  maximumNights?: number | null | undefined;
443
+ isAirbnbConnectionRequest?: boolean | null | undefined;
444
+ airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
437
445
  } | undefined;
438
446
  propertyNickname?: string | undefined;
439
447
  }, {
@@ -465,12 +473,15 @@ export declare const ChatThreadSchema: z.ZodObject<{
465
473
  channexRoomTypeId?: string | null | undefined;
466
474
  minimumNights?: number | null | undefined;
467
475
  maximumNights?: number | null | undefined;
476
+ isAirbnbConnectionRequest?: boolean | null | undefined;
477
+ airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
468
478
  } | undefined;
469
479
  propertyNickname?: string | undefined;
470
480
  }>>;
471
481
  isInquiryThread: z.ZodOptional<z.ZodBoolean>;
472
482
  whatsappTemplateSent: z.ZodOptional<z.ZodBoolean>;
473
483
  whatsappUserReplied: z.ZodOptional<z.ZodBoolean>;
484
+ lastWhatsappMessageSentAt: z.ZodOptional<z.ZodType<admin.firestore.Timestamp, z.ZodTypeDef, admin.firestore.Timestamp>>;
474
485
  }, "strip", z.ZodTypeAny, {
475
486
  type: "ONE_TO_ONE" | "GROUP";
476
487
  createdAt: admin.firestore.Timestamp;
@@ -564,12 +575,15 @@ export declare const ChatThreadSchema: z.ZodObject<{
564
575
  channexRoomTypeId?: string | null | undefined;
565
576
  minimumNights?: number | null | undefined;
566
577
  maximumNights?: number | null | undefined;
578
+ isAirbnbConnectionRequest?: boolean | null | undefined;
579
+ airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
567
580
  } | undefined;
568
581
  propertyNickname?: string | undefined;
569
582
  } | undefined;
570
583
  isInquiryThread?: boolean | undefined;
571
584
  whatsappTemplateSent?: boolean | undefined;
572
585
  whatsappUserReplied?: boolean | undefined;
586
+ lastWhatsappMessageSentAt?: admin.firestore.Timestamp | undefined;
573
587
  }, {
574
588
  type: "ONE_TO_ONE" | "GROUP";
575
589
  createdAt: admin.firestore.Timestamp;
@@ -663,12 +677,15 @@ export declare const ChatThreadSchema: z.ZodObject<{
663
677
  channexRoomTypeId?: string | null | undefined;
664
678
  minimumNights?: number | null | undefined;
665
679
  maximumNights?: number | null | undefined;
680
+ isAirbnbConnectionRequest?: boolean | null | undefined;
681
+ airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
666
682
  } | undefined;
667
683
  propertyNickname?: string | undefined;
668
684
  } | undefined;
669
685
  isInquiryThread?: boolean | undefined;
670
686
  whatsappTemplateSent?: boolean | undefined;
671
687
  whatsappUserReplied?: boolean | undefined;
688
+ lastWhatsappMessageSentAt?: admin.firestore.Timestamp | undefined;
672
689
  }>;
673
690
  export declare const MessageAutomationTemplateSchema: z.ZodObject<{
674
691
  id: z.ZodOptional<z.ZodString>;
@@ -93,6 +93,7 @@ exports.ChatThreadSchema = (0, zod_1.object)({
93
93
  isInquiryThread: (0, zod_1.optional)((0, zod_1.boolean)()),
94
94
  whatsappTemplateSent: (0, zod_1.optional)((0, zod_1.boolean)()),
95
95
  whatsappUserReplied: (0, zod_1.optional)((0, zod_1.boolean)()),
96
+ lastWhatsappMessageSentAt: (0, zod_1.optional)(zod_1.z.instanceof(admin.firestore.Timestamp)),
96
97
  });
97
98
  exports.MessageAutomationTemplateSchema = (0, zod_1.object)({
98
99
  id: (0, zod_1.optional)((0, zod_1.string)()),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.68",
4
+ "version": "1.0.70",
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",