hububb-saas-shared 1.1.39 → 1.1.41

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) {
@@ -9,6 +9,7 @@ export declare const purchaseSchema: import("zod").ZodObject<{
9
9
  purchaseDate: import("zod").ZodDate;
10
10
  createdAt: import("zod").ZodDate;
11
11
  updatedAt: import("zod").ZodDate;
12
+ receiptUrl: import("zod").ZodOptional<import("zod").ZodString>;
12
13
  }, "strip", import("zod").ZodTypeAny, {
13
14
  id: string;
14
15
  status: PurchaseStatus;
@@ -19,6 +20,7 @@ export declare const purchaseSchema: import("zod").ZodObject<{
19
20
  priceType: PriceType;
20
21
  propertyId: number;
21
22
  purchaseDate: Date;
23
+ receiptUrl?: string | undefined;
22
24
  }, {
23
25
  id: string;
24
26
  status: PurchaseStatus;
@@ -29,4 +31,5 @@ export declare const purchaseSchema: import("zod").ZodObject<{
29
31
  priceType: PriceType;
30
32
  propertyId: number;
31
33
  purchaseDate: Date;
34
+ receiptUrl?: string | undefined;
32
35
  }>;
@@ -13,4 +13,5 @@ exports.purchaseSchema = (0, zod_1.object)({
13
13
  purchaseDate: (0, zod_1.date)(),
14
14
  createdAt: (0, zod_1.date)(),
15
15
  updatedAt: (0, zod_1.date)(),
16
+ receiptUrl: (0, zod_1.string)().optional(),
16
17
  });
@@ -94,6 +94,7 @@ export declare const ReservationSchema: z.ZodObject<{
94
94
  paidOut: z.ZodBoolean;
95
95
  payoutId: z.ZodOptional<z.ZodNumber>;
96
96
  payoutAmount: z.ZodOptional<z.ZodNumber>;
97
+ requiresPayout: z.ZodBoolean;
97
98
  }, "strip", z.ZodTypeAny, {
98
99
  currency: string;
99
100
  id: number;
@@ -115,6 +116,7 @@ export declare const ReservationSchema: z.ZodObject<{
115
116
  otaCommission: string;
116
117
  readyForPayout: boolean;
117
118
  paidOut: boolean;
119
+ requiresPayout: boolean;
118
120
  notes?: string | undefined;
119
121
  checkedInMark?: Date | undefined;
120
122
  checkedOutMark?: Date | undefined;
@@ -143,6 +145,7 @@ export declare const ReservationSchema: z.ZodObject<{
143
145
  otaCommission: string;
144
146
  readyForPayout: boolean;
145
147
  paidOut: boolean;
148
+ requiresPayout: boolean;
146
149
  notes?: string | undefined;
147
150
  checkedInMark?: Date | undefined;
148
151
  checkedOutMark?: Date | undefined;
@@ -59,4 +59,5 @@ exports.ReservationSchema = zod_1.z.object({
59
59
  paidOut: zod_1.z.boolean(),
60
60
  payoutId: zod_1.z.number().optional(),
61
61
  payoutAmount: zod_1.z.number().optional(),
62
+ requiresPayout: zod_1.z.boolean(),
62
63
  });
@@ -0,0 +1,19 @@
1
+ export declare const roomImageSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodNumber;
3
+ name: import("zod").ZodString;
4
+ type: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"LIVING_ROOM">, import("zod").ZodLiteral<"BEDROOM">]>, import("zod").ZodLiteral<"KITCHEN">]>, import("zod").ZodLiteral<"BATHROOM">]>, import("zod").ZodLiteral<"BALCONY">]>, import("zod").ZodLiteral<"TOILET">]>, import("zod").ZodLiteral<"OTHER">]>;
5
+ createdAt: import("zod").ZodDate;
6
+ updatedAt: import("zod").ZodDate;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ name: string;
9
+ type: "LIVING_ROOM" | "BEDROOM" | "KITCHEN" | "BATHROOM" | "BALCONY" | "TOILET" | "OTHER";
10
+ id: number;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ }, {
14
+ name: string;
15
+ type: "LIVING_ROOM" | "BEDROOM" | "KITCHEN" | "BATHROOM" | "BALCONY" | "TOILET" | "OTHER";
16
+ id: number;
17
+ createdAt: Date;
18
+ updatedAt: Date;
19
+ }>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.roomImageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.roomImageSchema = (0, zod_1.object)({
6
+ id: (0, zod_1.number)().int(),
7
+ name: (0, zod_1.string)(),
8
+ type: (0, zod_1.literal)("LIVING_ROOM")
9
+ .or((0, zod_1.literal)("BEDROOM"))
10
+ .or((0, zod_1.literal)("KITCHEN"))
11
+ .or((0, zod_1.literal)("BATHROOM"))
12
+ .or((0, zod_1.literal)("BALCONY"))
13
+ .or((0, zod_1.literal)("TOILET"))
14
+ .or((0, zod_1.literal)("OTHER")),
15
+ createdAt: (0, zod_1.date)(),
16
+ updatedAt: (0, zod_1.date)(),
17
+ });
@@ -963,6 +963,7 @@ export declare const ChatThreadSchema: z.ZodObject<{
963
963
  paidOut: z.ZodBoolean;
964
964
  payoutId: z.ZodOptional<z.ZodNumber>;
965
965
  payoutAmount: z.ZodOptional<z.ZodNumber>;
966
+ requiresPayout: z.ZodBoolean;
966
967
  }, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut">, {
967
968
  propertyNickname: z.ZodOptional<z.ZodString>;
968
969
  property: z.ZodOptional<z.ZodObject<{
@@ -0,0 +1,6 @@
1
+ import { infer } from "zod";
2
+ import { roomImageSchema } from "../../schemas/room-image";
3
+ import { Image } from "../image";
4
+ export interface RoomImage extends infer<typeof roomImageSchema> {
5
+ images?: Image[];
6
+ }
@@ -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.1.39",
4
+ "version": "1.1.41",
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",