@voyantjs/checkout 0.77.11 → 0.77.12
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.
- package/dist/routes.d.ts +10 -10
- package/dist/service.js +2 -2
- package/dist/validation.d.ts +3 -3
- package/package.json +6 -6
package/dist/routes.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
75
75
|
createdAt: string;
|
|
76
76
|
updatedAt: string;
|
|
77
77
|
organizationId: string | null;
|
|
78
|
-
status: "void" | "draft" | "
|
|
78
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
79
79
|
issueDate: string;
|
|
80
80
|
currency: string;
|
|
81
81
|
notes: string | null;
|
|
@@ -171,7 +171,7 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
171
171
|
createdAt: string;
|
|
172
172
|
updatedAt: string;
|
|
173
173
|
organizationId: string | null;
|
|
174
|
-
status: "void" | "draft" | "
|
|
174
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
175
175
|
issueDate: string;
|
|
176
176
|
currency: string;
|
|
177
177
|
notes: string | null;
|
|
@@ -210,7 +210,7 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
210
210
|
createdAt: string;
|
|
211
211
|
updatedAt: string;
|
|
212
212
|
organizationId: string | null;
|
|
213
|
-
status: "void" | "draft" | "
|
|
213
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
214
214
|
issueDate: string;
|
|
215
215
|
currency: string;
|
|
216
216
|
notes: string | null;
|
|
@@ -437,7 +437,7 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
437
437
|
createdAt: string;
|
|
438
438
|
updatedAt: string;
|
|
439
439
|
organizationId: string | null;
|
|
440
|
-
status: "void" | "draft" | "
|
|
440
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
441
441
|
issueDate: string;
|
|
442
442
|
currency: string;
|
|
443
443
|
notes: string | null;
|
|
@@ -476,7 +476,7 @@ export declare function createCheckoutRoutes(options?: CheckoutRoutesOptions): i
|
|
|
476
476
|
createdAt: string;
|
|
477
477
|
updatedAt: string;
|
|
478
478
|
organizationId: string | null;
|
|
479
|
-
status: "void" | "draft" | "
|
|
479
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
480
480
|
issueDate: string;
|
|
481
481
|
currency: string;
|
|
482
482
|
notes: string | null;
|
|
@@ -703,7 +703,7 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
703
703
|
createdAt: string;
|
|
704
704
|
updatedAt: string;
|
|
705
705
|
organizationId: string | null;
|
|
706
|
-
status: "void" | "draft" | "
|
|
706
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
707
707
|
issueDate: string;
|
|
708
708
|
currency: string;
|
|
709
709
|
notes: string | null;
|
|
@@ -799,7 +799,7 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
799
799
|
createdAt: string;
|
|
800
800
|
updatedAt: string;
|
|
801
801
|
organizationId: string | null;
|
|
802
|
-
status: "void" | "draft" | "
|
|
802
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
803
803
|
issueDate: string;
|
|
804
804
|
currency: string;
|
|
805
805
|
notes: string | null;
|
|
@@ -838,7 +838,7 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
838
838
|
createdAt: string;
|
|
839
839
|
updatedAt: string;
|
|
840
840
|
organizationId: string | null;
|
|
841
|
-
status: "void" | "draft" | "
|
|
841
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
842
842
|
issueDate: string;
|
|
843
843
|
currency: string;
|
|
844
844
|
notes: string | null;
|
|
@@ -1065,7 +1065,7 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
1065
1065
|
createdAt: string;
|
|
1066
1066
|
updatedAt: string;
|
|
1067
1067
|
organizationId: string | null;
|
|
1068
|
-
status: "void" | "draft" | "
|
|
1068
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
1069
1069
|
issueDate: string;
|
|
1070
1070
|
currency: string;
|
|
1071
1071
|
notes: string | null;
|
|
@@ -1104,7 +1104,7 @@ export declare function createCheckoutAdminRoutes(options?: CheckoutRoutesOption
|
|
|
1104
1104
|
createdAt: string;
|
|
1105
1105
|
updatedAt: string;
|
|
1106
1106
|
organizationId: string | null;
|
|
1107
|
-
status: "void" | "draft" | "
|
|
1107
|
+
status: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
1108
1108
|
issueDate: string;
|
|
1109
1109
|
currency: string;
|
|
1110
1110
|
notes: string | null;
|
package/dist/service.js
CHANGED
|
@@ -5,7 +5,7 @@ import { and, asc, desc, eq, gt, inArray, sql } from "drizzle-orm";
|
|
|
5
5
|
const OUTSTANDING_SCHEDULE_STATUSES = ["pending", "due"];
|
|
6
6
|
const OUTSTANDING_INVOICE_STATUSES = [
|
|
7
7
|
"draft",
|
|
8
|
-
"
|
|
8
|
+
"issued",
|
|
9
9
|
"partially_paid",
|
|
10
10
|
"overdue",
|
|
11
11
|
];
|
|
@@ -274,7 +274,7 @@ async function createCollectionInvoice(db, context, plan, notes) {
|
|
|
274
274
|
personId: context.booking.personId,
|
|
275
275
|
organizationId: context.booking.organizationId,
|
|
276
276
|
invoiceType: documentType,
|
|
277
|
-
status: "
|
|
277
|
+
status: "issued",
|
|
278
278
|
currency: context.booking.sellCurrency,
|
|
279
279
|
baseCurrency: context.booking.baseCurrency,
|
|
280
280
|
fxRateSetId: null,
|
package/dist/validation.d.ts
CHANGED
|
@@ -940,8 +940,8 @@ export declare const checkoutReminderRunListQuerySchema: z.ZodObject<{
|
|
|
940
940
|
failed: "failed";
|
|
941
941
|
queued: "queued";
|
|
942
942
|
skipped: "skipped";
|
|
943
|
-
sent: "sent";
|
|
944
943
|
processing: "processing";
|
|
944
|
+
sent: "sent";
|
|
945
945
|
}>>;
|
|
946
946
|
}, z.core.$strip>;
|
|
947
947
|
export declare const checkoutReminderRunSchema: z.ZodObject<{
|
|
@@ -964,8 +964,8 @@ export declare const checkoutReminderRunSchema: z.ZodObject<{
|
|
|
964
964
|
failed: "failed";
|
|
965
965
|
queued: "queued";
|
|
966
966
|
skipped: "skipped";
|
|
967
|
-
sent: "sent";
|
|
968
967
|
processing: "processing";
|
|
968
|
+
sent: "sent";
|
|
969
969
|
}>;
|
|
970
970
|
deliveryStatus: z.ZodNullable<z.ZodEnum<{
|
|
971
971
|
pending: "pending";
|
|
@@ -1006,8 +1006,8 @@ export declare const checkoutReminderRunListResponseSchema: z.ZodObject<{
|
|
|
1006
1006
|
failed: "failed";
|
|
1007
1007
|
queued: "queued";
|
|
1008
1008
|
skipped: "skipped";
|
|
1009
|
-
sent: "sent";
|
|
1010
1009
|
processing: "processing";
|
|
1010
|
+
sent: "sent";
|
|
1011
1011
|
}>;
|
|
1012
1012
|
deliveryStatus: z.ZodNullable<z.ZodEnum<{
|
|
1013
1013
|
pending: "pending";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/checkout",
|
|
3
|
-
"version": "0.77.
|
|
3
|
+
"version": "0.77.12",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"hono": "^4.12.10",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@voyantjs/bookings": "0.77.
|
|
33
|
-
"@voyantjs/core": "0.77.
|
|
34
|
-
"@voyantjs/finance": "0.77.
|
|
35
|
-
"@voyantjs/hono": "0.77.
|
|
36
|
-
"@voyantjs/notifications": "0.77.
|
|
32
|
+
"@voyantjs/bookings": "0.77.12",
|
|
33
|
+
"@voyantjs/core": "0.77.12",
|
|
34
|
+
"@voyantjs/finance": "0.77.12",
|
|
35
|
+
"@voyantjs/hono": "0.77.12",
|
|
36
|
+
"@voyantjs/notifications": "0.77.12"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "^6.0.2",
|