@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.
@@ -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: '2023-01-01';
14
- end_date: '2023-12-31'
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: '2023-01-01';
49
- end_date: '2023-12-31'
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: '2023-01-01';
58
- end_date: '2023-12-31'
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 softDelete(id: number): Promise<boolean>;
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 ExportedOrder {
5
- 'Order ID': number
6
- 'Customer': string
7
- 'Date': string
8
- 'Total': number
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
- 'Items': string
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 exportOrders(format: 'csv' | 'excel'): Promise<SpreadsheetWrapper>;
13
- declare function fetchAllWithDetails(): Promise<OrderWithTotals[] | []>;
14
- declare function prepareOrdersForExport(orders: OrderWithTotals[]): void;
15
- export declare function downloadOrders(format: 'csv' | 'excel', filename?: string): Promise<Response>;
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>;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  export {
2
2
  bulkDestroy,
3
- bulkSoftDelete,
4
3
  destroy,
5
- softDelete,
6
4
  } from './destroy'
7
5
  export {
8
6
  fetchAll,