@stacksjs/commerce 0.69.3 → 0.70.0
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 +86 -0
- package/dist/customers.test.d.ts +61 -0
- package/dist/destroy.d.ts +2 -0
- package/dist/export.d.ts +16 -0
- package/dist/fetch.d.ts +10 -0
- package/dist/gift-cards.test.d.ts +70 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3891 -1
- package/dist/manufacturers.test.d.ts +77 -0
- package/dist/orders.test.d.ts +27 -0
- package/dist/payments.test.d.ts +73 -0
- package/dist/reviews.test.d.ts +102 -0
- package/dist/store.d.ts +6 -0
- package/dist/types.d.ts +261 -0
- package/dist/units.test.d.ts +131 -0
- package/dist/update.d.ts +5 -0
- package/dist/variants.test.d.ts +131 -0
- package/package.json +5 -2
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
declare function fetchVariantById(id: number): void;
|
|
2
|
+
declare const requestData: {
|
|
3
|
+
product_id: 1;
|
|
4
|
+
variant: 'Color';
|
|
5
|
+
type: 'dropdown';
|
|
6
|
+
description: 'Available colors';
|
|
7
|
+
options: unknown
|
|
8
|
+
};
|
|
9
|
+
declare const request: unknown;
|
|
10
|
+
declare const variantId: undefined if (variantId);
|
|
11
|
+
declare const requestData: {
|
|
12
|
+
product_id: 1;
|
|
13
|
+
variant: 'Size';
|
|
14
|
+
type: 'radio';
|
|
15
|
+
description: 'Available sizes';
|
|
16
|
+
options: unknown
|
|
17
|
+
};
|
|
18
|
+
declare const request: unknown;
|
|
19
|
+
declare const requestData: {
|
|
20
|
+
product_id: 1;
|
|
21
|
+
variant: 'Size';
|
|
22
|
+
type: 'radio';
|
|
23
|
+
description: 'Available sizes';
|
|
24
|
+
options: unknown;
|
|
25
|
+
status: 'active'
|
|
26
|
+
};
|
|
27
|
+
declare const request: unknown;
|
|
28
|
+
declare const requestsData: Array<{
|
|
29
|
+
product_id: 1;
|
|
30
|
+
variant: 'Color';
|
|
31
|
+
type: 'dropdown';
|
|
32
|
+
description: 'Available colors';
|
|
33
|
+
options: unknown
|
|
34
|
+
} | {
|
|
35
|
+
product_id: 1;
|
|
36
|
+
variant: 'Size';
|
|
37
|
+
type: 'radio';
|
|
38
|
+
description: 'Available sizes';
|
|
39
|
+
options: unknown
|
|
40
|
+
}>;
|
|
41
|
+
declare const requests: (...args: any[]) => unknown;
|
|
42
|
+
declare const createdCount: unknown;
|
|
43
|
+
declare const initialData: {
|
|
44
|
+
product_id: 1;
|
|
45
|
+
variant: 'Color';
|
|
46
|
+
type: 'dropdown';
|
|
47
|
+
description: 'Available colors';
|
|
48
|
+
options: unknown
|
|
49
|
+
};
|
|
50
|
+
declare const createRequest: undefined;
|
|
51
|
+
declare const updateData: {
|
|
52
|
+
description: 'Updated color options';
|
|
53
|
+
options: unknown;
|
|
54
|
+
status: 'active'
|
|
55
|
+
};
|
|
56
|
+
declare const updateRequest: unknown;
|
|
57
|
+
declare const variantData1: {
|
|
58
|
+
product_id: 1;
|
|
59
|
+
variant: 'Color';
|
|
60
|
+
type: 'dropdown';
|
|
61
|
+
description: 'Available colors';
|
|
62
|
+
options: unknown
|
|
63
|
+
};
|
|
64
|
+
declare const variantData2: {
|
|
65
|
+
product_id: 1;
|
|
66
|
+
variant: 'Size';
|
|
67
|
+
type: 'radio';
|
|
68
|
+
description: 'Available sizes';
|
|
69
|
+
options: unknown
|
|
70
|
+
};
|
|
71
|
+
declare const request1: unknown;
|
|
72
|
+
declare const variant1: unknown;
|
|
73
|
+
declare const variant1Id: undefined const variant2Id;
|
|
74
|
+
declare const updateData1: unknown;
|
|
75
|
+
declare const updateData2: unknown;
|
|
76
|
+
declare const updateCount: unknown;
|
|
77
|
+
declare const updatedVariant1: unknown;
|
|
78
|
+
declare const updateCount: unknown;
|
|
79
|
+
declare const variantData: {
|
|
80
|
+
product_id: 1;
|
|
81
|
+
variant: 'Material';
|
|
82
|
+
type: 'dropdown';
|
|
83
|
+
description: 'Available materials';
|
|
84
|
+
options: unknown;
|
|
85
|
+
status: 'draft'
|
|
86
|
+
};
|
|
87
|
+
declare const request: undefined;
|
|
88
|
+
declare const result: unknown;
|
|
89
|
+
declare const updatedVariant: unknown;
|
|
90
|
+
declare const variantData: {
|
|
91
|
+
product_id: 1;
|
|
92
|
+
variant: 'Color';
|
|
93
|
+
type: 'dropdown';
|
|
94
|
+
description: 'Available colors';
|
|
95
|
+
options: unknown
|
|
96
|
+
};
|
|
97
|
+
declare const request: undefined;
|
|
98
|
+
declare const result: unknown;
|
|
99
|
+
declare const variants: Array<]
|
|
100
|
+
const variantIds = [>;
|
|
101
|
+
declare const variantData: {
|
|
102
|
+
product_id: 1;
|
|
103
|
+
variant: `Variant-${i}`;
|
|
104
|
+
type: 'dropdown';
|
|
105
|
+
description: `Test variant ${i}`;
|
|
106
|
+
options: unknown
|
|
107
|
+
};
|
|
108
|
+
declare const request: unknown;
|
|
109
|
+
declare const variantId: undefined expect(variantId).toBeDefined();
|
|
110
|
+
declare const deletedCount: unknown;
|
|
111
|
+
declare const fetchedVariant: unknown;
|
|
112
|
+
declare const deletedCount: unknown;
|
|
113
|
+
declare const rawOptions: Array<'Red' | 'Blue' | unknown>;
|
|
114
|
+
declare const rawOptions: Array<' Red ' | 'Blue ' | unknown>;
|
|
115
|
+
declare const rawOptions: Array<'Red' | '' | 'Blue' | ' ' | unknown>;
|
|
116
|
+
declare const optionSets: {
|
|
117
|
+
size: Array<'S' | 'M' | 'L'>;
|
|
118
|
+
color: Array<'Red' | 'Blue'>
|
|
119
|
+
};
|
|
120
|
+
declare const combinations: unknown;
|
|
121
|
+
declare const optionSets: {
|
|
122
|
+
size: Array<'S' | 'M'>;
|
|
123
|
+
color: Array<'Red' | 'Blue'>;
|
|
124
|
+
material: Array<'Cotton' | 'Polyester'>
|
|
125
|
+
};
|
|
126
|
+
declare const combinations: unknown;
|
|
127
|
+
declare const combinations: unknown;
|
|
128
|
+
declare const optionSets: {
|
|
129
|
+
size: Array<'S' | 'M' | 'L'>
|
|
130
|
+
};
|
|
131
|
+
declare const combinations: unknown;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/commerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.70.0",
|
|
5
5
|
"description": "Stacks ecommerce utilities.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
|
|
@@ -33,7 +33,10 @@
|
|
|
33
33
|
"typecheck": "bun tsc --noEmit",
|
|
34
34
|
"prepublishOnly": "bun run build"
|
|
35
35
|
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"ts-spreadsheets": "^0.2.0"
|
|
38
|
+
},
|
|
36
39
|
"devDependencies": {
|
|
37
|
-
"@stacksjs/development": "0.
|
|
40
|
+
"@stacksjs/development": "0.70.0"
|
|
38
41
|
}
|
|
39
42
|
}
|