hububb-saas-shared 1.2.8 → 1.2.9

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,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const ReservationStatusEnum: z.ZodEnum<["CONFIRMED", "CANCELLED", "PENDING"]>;
3
+ export declare const XeroSyncStatusEnum: z.ZodEnum<["PENDING", "SUCCESS", "FAILED", "SKIPPED"]>;
3
4
  export declare const ReservationCustomerSchema: z.ZodObject<{
4
5
  id: z.ZodString;
5
6
  firstName: z.ZodString;
@@ -144,6 +145,11 @@ export declare const ReservationSchema: z.ZodObject<{
144
145
  payoutId: z.ZodOptional<z.ZodNumber>;
145
146
  payoutAmount: z.ZodOptional<z.ZodNumber>;
146
147
  requiresPayout: z.ZodBoolean;
148
+ xeroSyncStatus: z.ZodOptional<z.ZodEnum<["PENDING", "SUCCESS", "FAILED", "SKIPPED"]>>;
149
+ xeroLastAttemptAt: z.ZodOptional<z.ZodDate>;
150
+ xeroLastSuccessAt: z.ZodOptional<z.ZodDate>;
151
+ xeroLastError: z.ZodOptional<z.ZodString>;
152
+ xeroRetryCount: z.ZodOptional<z.ZodNumber>;
147
153
  }, "strip", z.ZodTypeAny, {
148
154
  currency: string;
149
155
  id: number;
@@ -173,6 +179,11 @@ export declare const ReservationSchema: z.ZodObject<{
173
179
  paymentLink?: string | undefined;
174
180
  payoutId?: number | undefined;
175
181
  payoutAmount?: number | undefined;
182
+ xeroSyncStatus?: "PENDING" | "FAILED" | "SKIPPED" | "SUCCESS" | undefined;
183
+ xeroLastAttemptAt?: Date | undefined;
184
+ xeroLastSuccessAt?: Date | undefined;
185
+ xeroLastError?: string | undefined;
186
+ xeroRetryCount?: number | undefined;
176
187
  }, {
177
188
  currency: string;
178
189
  id: number;
@@ -202,4 +213,9 @@ export declare const ReservationSchema: z.ZodObject<{
202
213
  paymentLink?: string | undefined;
203
214
  payoutId?: number | undefined;
204
215
  payoutAmount?: number | undefined;
216
+ xeroSyncStatus?: "PENDING" | "FAILED" | "SKIPPED" | "SUCCESS" | undefined;
217
+ xeroLastAttemptAt?: Date | undefined;
218
+ xeroLastSuccessAt?: Date | undefined;
219
+ xeroLastError?: string | undefined;
220
+ xeroRetryCount?: number | undefined;
205
221
  }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReservationSchema = exports.ReservationFinanceSchema = exports.ReservationUnitAssignmentSchema = exports.ReservationServiceSchema = exports.ReservationCustomerSchema = exports.ReservationStatusEnum = void 0;
3
+ exports.ReservationSchema = exports.ReservationFinanceSchema = exports.ReservationUnitAssignmentSchema = exports.ReservationServiceSchema = exports.ReservationCustomerSchema = exports.XeroSyncStatusEnum = exports.ReservationStatusEnum = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const prisma_decimal_1 = require("../prisma-decimal");
6
6
  exports.ReservationStatusEnum = zod_1.z.enum([
@@ -8,6 +8,12 @@ exports.ReservationStatusEnum = zod_1.z.enum([
8
8
  "CANCELLED",
9
9
  "PENDING",
10
10
  ]);
11
+ exports.XeroSyncStatusEnum = zod_1.z.enum([
12
+ "PENDING",
13
+ "SUCCESS",
14
+ "FAILED",
15
+ "SKIPPED",
16
+ ]);
11
17
  exports.ReservationCustomerSchema = zod_1.z.object({
12
18
  id: zod_1.z.string().uuid(),
13
19
  firstName: zod_1.z.string(),
@@ -78,4 +84,9 @@ exports.ReservationSchema = zod_1.z.object({
78
84
  payoutId: zod_1.z.number().optional(),
79
85
  payoutAmount: zod_1.z.number().optional(),
80
86
  requiresPayout: zod_1.z.boolean(),
87
+ xeroSyncStatus: exports.XeroSyncStatusEnum.optional(),
88
+ xeroLastAttemptAt: zod_1.z.date().optional(),
89
+ xeroLastSuccessAt: zod_1.z.date().optional(),
90
+ xeroLastError: zod_1.z.string().optional(),
91
+ xeroRetryCount: zod_1.z.number().optional(),
81
92
  });
@@ -1094,6 +1094,11 @@ export declare const ChatThreadSchema: z.ZodObject<{
1094
1094
  payoutId: z.ZodOptional<z.ZodNumber>;
1095
1095
  payoutAmount: z.ZodOptional<z.ZodNumber>;
1096
1096
  requiresPayout: z.ZodBoolean;
1097
+ xeroSyncStatus: z.ZodOptional<z.ZodEnum<["PENDING", "SUCCESS", "FAILED", "SKIPPED"]>>;
1098
+ xeroLastAttemptAt: z.ZodOptional<z.ZodDate>;
1099
+ xeroLastSuccessAt: z.ZodOptional<z.ZodDate>;
1100
+ xeroLastError: z.ZodOptional<z.ZodString>;
1101
+ xeroRetryCount: z.ZodOptional<z.ZodNumber>;
1097
1102
  }, "id" | "status" | "propertyId" | "otaName" | "checkIn" | "checkOut"> & {
1098
1103
  propertyNickname: z.ZodOptional<z.ZodString>;
1099
1104
  property: z.ZodOptional<z.ZodObject<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "hububb-saas-shared",
4
- "version": "1.2.8",
4
+ "version": "1.2.9",
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",