hububb-saas-shared 1.0.92 → 1.0.93

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) {
@@ -37,3 +37,4 @@ export * from "./payment-method";
37
37
  export * from "./invoice";
38
38
  export * from "./blocked-date";
39
39
  export * from "./user-permission";
40
+ export * from "./property-merge";
@@ -53,3 +53,4 @@ __exportStar(require("./payment-method"), exports);
53
53
  __exportStar(require("./invoice"), exports);
54
54
  __exportStar(require("./blocked-date"), exports);
55
55
  __exportStar(require("./user-permission"), exports);
56
+ __exportStar(require("./property-merge"), exports);
@@ -24,6 +24,7 @@ export declare const propertySchema: z.ZodObject<{
24
24
  area: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  isAirbnbConnectionRequest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
26
  airbnbConnectionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"]>>>;
27
+ isMergedProperty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
27
28
  }, "strip", z.ZodTypeAny, {
28
29
  id: number;
29
30
  title: string;
@@ -48,6 +49,7 @@ export declare const propertySchema: z.ZodObject<{
48
49
  maximumNights?: number | null | undefined;
49
50
  isAirbnbConnectionRequest?: boolean | null | undefined;
50
51
  airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
52
+ isMergedProperty?: boolean | null | undefined;
51
53
  }, {
52
54
  id: number;
53
55
  title: string;
@@ -72,6 +74,7 @@ export declare const propertySchema: z.ZodObject<{
72
74
  maximumNights?: number | null | undefined;
73
75
  isAirbnbConnectionRequest?: boolean | null | undefined;
74
76
  airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
77
+ isMergedProperty?: boolean | null | undefined;
75
78
  }>;
76
79
  export declare const updatePropertySchema: z.ZodObject<{
77
80
  propertyDetails: z.ZodOptional<z.ZodObject<{
@@ -36,6 +36,7 @@ exports.propertySchema = (0, zod_1.object)({
36
36
  airbnbConnectionStatus: zod_1.z
37
37
  .enum(["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"])
38
38
  .nullish(),
39
+ isMergedProperty: (0, zod_1.boolean)().nullish(),
39
40
  });
40
41
  exports.updatePropertySchema = (0, zod_1.object)({
41
42
  propertyDetails: (0, zod_1.object)({
@@ -0,0 +1,25 @@
1
+ export declare const propertyMergeSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ parentPropertyId: import("zod").ZodNumber;
4
+ childPropertyId: import("zod").ZodNumber;
5
+ mergedAt: import("zod").ZodDate;
6
+ notes: import("zod").ZodOptional<import("zod").ZodString>;
7
+ createdAt: import("zod").ZodDate;
8
+ updatedAt: import("zod").ZodDate;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ id: number;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ parentPropertyId: number;
14
+ childPropertyId: number;
15
+ mergedAt: Date;
16
+ notes?: string | undefined;
17
+ }, {
18
+ id: number;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ parentPropertyId: number;
22
+ childPropertyId: number;
23
+ mergedAt: Date;
24
+ notes?: string | undefined;
25
+ }>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.propertyMergeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.propertyMergeSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ parentPropertyId: (0, zod_1.number)().int(),
8
+ childPropertyId: (0, zod_1.number)().int(),
9
+ mergedAt: (0, zod_1.date)(),
10
+ notes: (0, zod_1.string)().optional(),
11
+ createdAt: (0, zod_1.date)(),
12
+ updatedAt: (0, zod_1.date)(),
13
+ });
@@ -416,6 +416,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
416
416
  area: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
417
417
  isAirbnbConnectionRequest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
418
418
  airbnbConnectionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "REJECTED"]>>>;
419
+ isMergedProperty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
419
420
  }, "strip", z.ZodTypeAny, {
420
421
  id: number;
421
422
  title: string;
@@ -440,6 +441,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
440
441
  maximumNights?: number | null | undefined;
441
442
  isAirbnbConnectionRequest?: boolean | null | undefined;
442
443
  airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
444
+ isMergedProperty?: boolean | null | undefined;
443
445
  }, {
444
446
  id: number;
445
447
  title: string;
@@ -464,6 +466,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
464
466
  maximumNights?: number | null | undefined;
465
467
  isAirbnbConnectionRequest?: boolean | null | undefined;
466
468
  airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
469
+ isMergedProperty?: boolean | null | undefined;
467
470
  }>>;
468
471
  }>, "strip", z.ZodTypeAny, {
469
472
  id: number;
@@ -496,6 +499,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
496
499
  maximumNights?: number | null | undefined;
497
500
  isAirbnbConnectionRequest?: boolean | null | undefined;
498
501
  airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
502
+ isMergedProperty?: boolean | null | undefined;
499
503
  } | undefined;
500
504
  propertyNickname?: string | undefined;
501
505
  }, {
@@ -529,6 +533,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
529
533
  maximumNights?: number | null | undefined;
530
534
  isAirbnbConnectionRequest?: boolean | null | undefined;
531
535
  airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
536
+ isMergedProperty?: boolean | null | undefined;
532
537
  } | undefined;
533
538
  propertyNickname?: string | undefined;
534
539
  }>>;
@@ -710,6 +715,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
710
715
  maximumNights?: number | null | undefined;
711
716
  isAirbnbConnectionRequest?: boolean | null | undefined;
712
717
  airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
718
+ isMergedProperty?: boolean | null | undefined;
713
719
  } | undefined;
714
720
  propertyNickname?: string | undefined;
715
721
  } | undefined;
@@ -840,6 +846,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
840
846
  maximumNights?: number | null | undefined;
841
847
  isAirbnbConnectionRequest?: boolean | null | undefined;
842
848
  airbnbConnectionStatus?: "PENDING" | "COMPLETED" | "IN_PROGRESS" | "REJECTED" | null | undefined;
849
+ isMergedProperty?: boolean | null | undefined;
843
850
  } | undefined;
844
851
  propertyNickname?: string | undefined;
845
852
  } | undefined;
@@ -38,3 +38,4 @@ export * from "./invoice";
38
38
  export * from "./enums";
39
39
  export * from "./blocked-date";
40
40
  export * from "./user-permission";
41
+ export * from "./property-merge";
@@ -54,3 +54,4 @@ __exportStar(require("./invoice"), exports);
54
54
  __exportStar(require("./enums"), exports);
55
55
  __exportStar(require("./blocked-date"), exports);
56
56
  __exportStar(require("./user-permission"), exports);
57
+ __exportStar(require("./property-merge"), exports);
@@ -14,6 +14,7 @@ import { TaskAutomation } from "../task-automation";
14
14
  import { SubscriptionService } from "../subscription-service";
15
15
  import { Purchase } from "../purchase";
16
16
  import { BlockedDate } from "../blocked-date";
17
+ import { PropertyMerge } from "../property-merge";
17
18
  export interface Property extends infer<typeof propertySchema> {
18
19
  user?: User;
19
20
  rooms?: Room[];
@@ -33,6 +34,8 @@ export interface Property extends infer<typeof propertySchema> {
33
34
  subscriptionServices?: SubscriptionService[];
34
35
  purchases?: Purchase[];
35
36
  blockedDates?: BlockedDate[];
37
+ mergedChildren?: PropertyMerge[];
38
+ mergedParent?: PropertyMerge;
36
39
  }
37
40
  export interface UpdatePropertySchema extends infer<typeof updatePropertySchema> {
38
41
  }
@@ -0,0 +1,7 @@
1
+ import { infer } from "zod";
2
+ import { propertyMergeSchema } from "../../schemas";
3
+ import { Property } from "../property";
4
+ export interface PropertyMerge extends infer<typeof propertyMergeSchema> {
5
+ parentProperty?: Property;
6
+ childProperty?: Property;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.0.92",
4
+ "version": "1.0.93",
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",