swell-js 3.22.2 → 3.22.4
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/api-6f09d9cb.js +207 -0
- package/dist/api-73c0aac4.js +207 -0
- package/dist/api.js +2 -2
- package/dist/index-ffb531dc.js +3446 -0
- package/dist/index.js +2 -2
- package/dist/payment.js +1 -1
- package/dist/swell.cjs.js +3 -1
- package/dist/swell.cjs.js.map +1 -1
- package/dist/swell.umd.min.js +2 -1
- package/dist/swell.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +2 -0
- package/types/product/snake.d.ts +2 -2
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export interface ResultsResponse<T> {
|
|
|
93
93
|
end: number;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
|
+
page_count?: number;
|
|
96
97
|
results: Array<T>;
|
|
97
98
|
}
|
|
98
99
|
|
|
@@ -166,6 +167,7 @@ export namespace cart {
|
|
|
166
167
|
function submitOrder(): Promise<Order>;
|
|
167
168
|
function updateItem(id: string, input: CartItem): Promise<Cart>;
|
|
168
169
|
function update(input: object): Promise<Cart>;
|
|
170
|
+
function getOrder(checkoutId?: string): Promise<Order>
|
|
169
171
|
}
|
|
170
172
|
|
|
171
173
|
export namespace categories {
|
package/types/product/snake.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ interface ProductOptionSnake {
|
|
|
60
60
|
| 'select'
|
|
61
61
|
| 'multi_select'
|
|
62
62
|
| 'file'
|
|
63
|
-
| '
|
|
63
|
+
| 'multi_file';
|
|
64
64
|
name?: string;
|
|
65
65
|
parent_id?: string;
|
|
66
66
|
parent_value_ids?: string[];
|
|
@@ -124,7 +124,7 @@ interface VariantSnake extends BaseModel {
|
|
|
124
124
|
|
|
125
125
|
export interface ProductSnake extends BaseModel {
|
|
126
126
|
active?: boolean;
|
|
127
|
-
attributes?:
|
|
127
|
+
attributes?: Record<string, AttributeSnake>;
|
|
128
128
|
bundle?: boolean;
|
|
129
129
|
bundle_items?: Bundle[];
|
|
130
130
|
category?: unknown;
|