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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swell-js",
3
- "version": "3.22.2",
3
+ "version": "3.22.4",
4
4
  "description": "Swell JS library for client-side stores",
5
5
  "engines": {
6
6
  "node": ">=14.19.1",
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 {
@@ -60,7 +60,7 @@ interface ProductOptionSnake {
60
60
  | 'select'
61
61
  | 'multi_select'
62
62
  | 'file'
63
- | 'muti_file';
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?: Attribute[];
127
+ attributes?: Record<string, AttributeSnake>;
128
128
  bundle?: boolean;
129
129
  bundle_items?: Bundle[];
130
130
  category?: unknown;