@stacksjs/commerce 0.70.16 → 0.70.17
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/coupons.test.d.ts +6 -14
- package/dist/destroy.d.ts +1 -3
- package/dist/export.d.ts +18 -12
- package/dist/index.d.ts +0 -2
- package/dist/index.js +927 -925
- package/dist/routes.test.d.ts +1 -2
- package/dist/tax.test.d.ts +1 -28
- package/dist/waitlist.test.d.ts +29 -1
- package/dist/zones.test.d.ts +1 -24
- package/package.json +2 -2
package/dist/coupons.test.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ declare const secondCouponData: {
|
|
|
10
10
|
discount_type: 'fixed';
|
|
11
11
|
discount_value: 5;
|
|
12
12
|
product_id: 2;
|
|
13
|
-
start_date:
|
|
14
|
-
end_date:
|
|
13
|
+
start_date: unknown;
|
|
14
|
+
end_date: unknown
|
|
15
15
|
};
|
|
16
16
|
declare const secondRequest: unknown;
|
|
17
17
|
declare const uniqueCode: unknown;
|
|
@@ -24,7 +24,6 @@ declare const request: unknown;
|
|
|
24
24
|
declare const fetchedCoupon: unknown;
|
|
25
25
|
declare let codes: Array<((...args: any[]) => unknown)>;
|
|
26
26
|
declare const today: unknown;
|
|
27
|
-
declare const todayStr: unknown;
|
|
28
27
|
declare const activeCode: unknown;
|
|
29
28
|
declare const inactiveCode: unknown;
|
|
30
29
|
declare const activeCoupons: (...args: any[]) => unknown;
|
|
@@ -45,8 +44,8 @@ declare const firstCouponData: {
|
|
|
45
44
|
discount_type: 'percentage';
|
|
46
45
|
discount_value: 10;
|
|
47
46
|
product_id: 1;
|
|
48
|
-
start_date:
|
|
49
|
-
end_date:
|
|
47
|
+
start_date: unknown;
|
|
48
|
+
end_date: unknown
|
|
50
49
|
};
|
|
51
50
|
declare const firstRequest: undefined expect(firstCouponId).toBeDefined();
|
|
52
51
|
declare const secondCouponData: {
|
|
@@ -54,8 +53,8 @@ declare const secondCouponData: {
|
|
|
54
53
|
discount_type: 'fixed';
|
|
55
54
|
discount_value: 5;
|
|
56
55
|
product_id: 1;
|
|
57
|
-
start_date:
|
|
58
|
-
end_date:
|
|
56
|
+
start_date: unknown;
|
|
57
|
+
end_date: unknown
|
|
59
58
|
};
|
|
60
59
|
declare const secondRequest: undefined expect(secondCouponId).toBeDefined();
|
|
61
60
|
declare const updateData: {
|
|
@@ -65,13 +64,6 @@ declare const updateRequest: unknown;
|
|
|
65
64
|
declare const uniqueCode: unknown;
|
|
66
65
|
declare const request: undefined;
|
|
67
66
|
declare const result: unknown;
|
|
68
|
-
declare const coupons: Array<]
|
|
69
|
-
const couponIds = [>;
|
|
70
|
-
declare const uniqueCode: unknown;
|
|
71
|
-
declare const request: unknown;
|
|
72
|
-
declare const couponId: undefined expect(couponId).toBeDefined();
|
|
73
|
-
declare const deletedCount: unknown;
|
|
74
|
-
declare const fetchedCoupon: unknown;
|
|
75
67
|
declare const pastDate: unknown;
|
|
76
68
|
declare const expiredCoupons: Array<]
|
|
77
69
|
const expiredCouponIds = [>;
|
package/dist/destroy.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
export declare function destroy(id: number): Promise<boolean>;
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function bulkDestroy(ids: number[]): Promise<number>;
|
|
4
|
-
export declare function bulkSoftDelete(ids: number[]): Promise<number>;
|
|
2
|
+
export declare function bulkDestroy(ids: number[]): Promise<number>;
|
package/dist/export.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import type { OrderWithTotals } from '../types';
|
|
2
1
|
import type { SpreadsheetWrapper } from 'ts-spreadsheets';
|
|
2
|
+
import type { WaitlistProductJsonResponse } from '@stacksjs/orm';
|
|
3
3
|
|
|
4
|
-
export declare interface
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
4
|
+
export declare interface ExportedWaitlistProduct {
|
|
5
|
+
'ID': number
|
|
6
|
+
'Name': string
|
|
7
|
+
'Email': string
|
|
8
|
+
'Phone': string
|
|
9
|
+
'Party Size': number
|
|
10
|
+
'Notification Preference': string
|
|
11
|
+
'Source': string
|
|
9
12
|
'Status': string
|
|
10
|
-
'
|
|
13
|
+
'Created At': string
|
|
14
|
+
'Notified At': string
|
|
15
|
+
'Purchased At': string
|
|
16
|
+
'Cancelled At': string
|
|
17
|
+
'Notes': string
|
|
11
18
|
}
|
|
12
|
-
export declare function
|
|
13
|
-
declare function
|
|
14
|
-
declare function
|
|
15
|
-
export declare function
|
|
16
|
-
export declare function storeOrdersExport(format: 'csv' | 'excel', path?: string): Promise<void>;
|
|
19
|
+
export declare function exportWaitlist(format: 'csv' | 'excel'): Promise<SpreadsheetWrapper>;
|
|
20
|
+
declare function prepareWaitlistForExport(waitlistProducts: WaitlistProductJsonResponse[]): void;
|
|
21
|
+
export declare function downloadWaitlist(format: 'csv' | 'excel', filename?: string): Promise<Response>;
|
|
22
|
+
export declare function storeWaitlistExport(format: 'csv' | 'excel', path?: string): Promise<void>;
|