@wix/auto_sdk_stores_inventory 1.0.10 → 1.0.12
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/build/index.d.mts +74 -0
- package/build/index.d.ts +74 -0
- package/build/index.js +541 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +509 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +74 -0
- package/build/internal/index.d.ts +74 -0
- package/build/internal/index.js +541 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +509 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +268 -0
- package/build/internal/meta.d.ts +268 -0
- package/build/internal/meta.js +391 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +360 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/internal/{cjs/src/stores-v2-inventory-inventory.types.d.ts → stores-v2-inventory-inventory.universal-CAYc4_b7.d.mts} +146 -51
- package/build/internal/{es/src/stores-v2-inventory-inventory.types.d.ts → stores-v2-inventory-inventory.universal-CAYc4_b7.d.ts} +146 -51
- package/build/meta.d.mts +268 -0
- package/build/meta.d.ts +268 -0
- package/build/meta.js +391 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +360 -0
- package/build/meta.mjs.map +1 -0
- package/build/{es/src/stores-v2-inventory-inventory.types.d.ts → stores-v2-inventory-inventory.universal-BltJPMge.d.mts} +108 -96
- package/build/{cjs/src/stores-v2-inventory-inventory.types.d.ts → stores-v2-inventory-inventory.universal-BltJPMge.d.ts} +108 -96
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory-inventory.context.d.ts +0 -20
- package/build/cjs/src/stores-v2-inventory-inventory.context.js +0 -25
- package/build/cjs/src/stores-v2-inventory-inventory.context.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory-inventory.http.d.ts +0 -31
- package/build/cjs/src/stores-v2-inventory-inventory.http.js +0 -291
- package/build/cjs/src/stores-v2-inventory-inventory.http.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory-inventory.meta.d.ts +0 -21
- package/build/cjs/src/stores-v2-inventory-inventory.meta.js +0 -125
- package/build/cjs/src/stores-v2-inventory-inventory.meta.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory-inventory.public.d.ts +0 -60
- package/build/cjs/src/stores-v2-inventory-inventory.public.js +0 -60
- package/build/cjs/src/stores-v2-inventory-inventory.public.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory-inventory.types.js +0 -23
- package/build/cjs/src/stores-v2-inventory-inventory.types.js.map +0 -1
- package/build/cjs/src/stores-v2-inventory-inventory.universal.d.ts +0 -600
- package/build/cjs/src/stores-v2-inventory-inventory.universal.js +0 -277
- package/build/cjs/src/stores-v2-inventory-inventory.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/stores-v2-inventory-inventory.context.d.ts +0 -20
- package/build/es/src/stores-v2-inventory-inventory.context.js +0 -20
- package/build/es/src/stores-v2-inventory-inventory.context.js.map +0 -1
- package/build/es/src/stores-v2-inventory-inventory.http.d.ts +0 -31
- package/build/es/src/stores-v2-inventory-inventory.http.js +0 -283
- package/build/es/src/stores-v2-inventory-inventory.http.js.map +0 -1
- package/build/es/src/stores-v2-inventory-inventory.meta.d.ts +0 -21
- package/build/es/src/stores-v2-inventory-inventory.meta.js +0 -94
- package/build/es/src/stores-v2-inventory-inventory.meta.js.map +0 -1
- package/build/es/src/stores-v2-inventory-inventory.public.d.ts +0 -60
- package/build/es/src/stores-v2-inventory-inventory.public.js +0 -50
- package/build/es/src/stores-v2-inventory-inventory.public.js.map +0 -1
- package/build/es/src/stores-v2-inventory-inventory.types.js +0 -20
- package/build/es/src/stores-v2-inventory-inventory.types.js.map +0 -1
- package/build/es/src/stores-v2-inventory-inventory.universal.d.ts +0 -600
- package/build/es/src/stores-v2-inventory-inventory.universal.js +0 -246
- package/build/es/src/stores-v2-inventory-inventory.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.context.d.ts +0 -20
- package/build/internal/cjs/src/stores-v2-inventory-inventory.context.js +0 -25
- package/build/internal/cjs/src/stores-v2-inventory-inventory.context.js.map +0 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.http.d.ts +0 -31
- package/build/internal/cjs/src/stores-v2-inventory-inventory.http.js +0 -291
- package/build/internal/cjs/src/stores-v2-inventory-inventory.http.js.map +0 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.d.ts +0 -21
- package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.js +0 -125
- package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.js.map +0 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.public.d.ts +0 -60
- package/build/internal/cjs/src/stores-v2-inventory-inventory.public.js +0 -60
- package/build/internal/cjs/src/stores-v2-inventory-inventory.public.js.map +0 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.types.js +0 -23
- package/build/internal/cjs/src/stores-v2-inventory-inventory.types.js.map +0 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.d.ts +0 -683
- package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.js +0 -277
- package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.context.d.ts +0 -20
- package/build/internal/es/src/stores-v2-inventory-inventory.context.js +0 -20
- package/build/internal/es/src/stores-v2-inventory-inventory.context.js.map +0 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.http.d.ts +0 -31
- package/build/internal/es/src/stores-v2-inventory-inventory.http.js +0 -283
- package/build/internal/es/src/stores-v2-inventory-inventory.http.js.map +0 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.meta.d.ts +0 -21
- package/build/internal/es/src/stores-v2-inventory-inventory.meta.js +0 -94
- package/build/internal/es/src/stores-v2-inventory-inventory.meta.js.map +0 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.public.d.ts +0 -60
- package/build/internal/es/src/stores-v2-inventory-inventory.public.js +0 -50
- package/build/internal/es/src/stores-v2-inventory-inventory.public.js.map +0 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.types.js +0 -20
- package/build/internal/es/src/stores-v2-inventory-inventory.types.js.map +0 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.universal.d.ts +0 -683
- package/build/internal/es/src/stores-v2-inventory-inventory.universal.js +0 -246
- package/build/internal/es/src/stores-v2-inventory-inventory.universal.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
interface InventoryItemV2 {
|
|
2
2
|
/** Inventory item ID. */
|
|
3
|
-
|
|
3
|
+
_id?: string | null;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* @internal
|
|
6
|
+
* @internal
|
|
6
7
|
* @readonly
|
|
7
8
|
* @deprecated Deprecated: use productId.
|
|
8
9
|
* @replacedBy product_id
|
|
@@ -32,7 +33,7 @@ export interface InventoryItemV2 {
|
|
|
32
33
|
/** Preorder information. */
|
|
33
34
|
preorderInfo?: PreorderInfo;
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
+
interface InventoryVariantV2 {
|
|
36
37
|
/** Variant ID. */
|
|
37
38
|
variantId?: string;
|
|
38
39
|
/** Whether the product is listed as in stock. */
|
|
@@ -45,7 +46,7 @@ export interface InventoryVariantV2 {
|
|
|
45
46
|
*/
|
|
46
47
|
availableForPreorder?: boolean;
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
+
interface PreorderInfo {
|
|
49
50
|
/** Whether the item is available for preorder. */
|
|
50
51
|
enabled?: boolean;
|
|
51
52
|
/**
|
|
@@ -60,11 +61,11 @@ export interface PreorderInfo {
|
|
|
60
61
|
*/
|
|
61
62
|
limit?: number | null;
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
+
interface UpdateInventoryVariantsRequest {
|
|
64
65
|
/** Inventory item. */
|
|
65
66
|
inventoryItem: InventoryItemV2;
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
+
declare enum ReasonType {
|
|
68
69
|
/** Unknown reason. */
|
|
69
70
|
UNKNOWN = "UNKNOWN",
|
|
70
71
|
/** Order related. */
|
|
@@ -74,11 +75,9 @@ export declare enum ReasonType {
|
|
|
74
75
|
/** Reverting an inventory change. */
|
|
75
76
|
REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
|
|
76
77
|
}
|
|
77
|
-
|
|
78
|
-
export type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
|
|
79
|
-
export interface UpdateInventoryVariantsResponse {
|
|
78
|
+
interface UpdateInventoryVariantsResponse {
|
|
80
79
|
}
|
|
81
|
-
|
|
80
|
+
interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
82
81
|
/** Change availability. */
|
|
83
82
|
setInStock?: boolean | null;
|
|
84
83
|
/** Set new quantity. */
|
|
@@ -97,7 +96,7 @@ export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryV
|
|
|
97
96
|
filter?: Record<string, any> | null;
|
|
98
97
|
}
|
|
99
98
|
/** @oneof */
|
|
100
|
-
|
|
99
|
+
interface BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
101
100
|
/** Change availability. */
|
|
102
101
|
setInStock?: boolean | null;
|
|
103
102
|
/** Set new quantity. */
|
|
@@ -113,31 +112,33 @@ export interface BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
|
113
112
|
*/
|
|
114
113
|
decrementBy?: number | null;
|
|
115
114
|
}
|
|
116
|
-
|
|
115
|
+
interface BulkUpdateInventoryVariantsResponse {
|
|
117
116
|
}
|
|
118
|
-
|
|
117
|
+
interface BulkUpdateInventoryItemsRequest {
|
|
119
118
|
/** Variants filter */
|
|
120
119
|
variantsFilter?: Record<string, any> | null;
|
|
121
120
|
/** Whether inventory is being tracked. */
|
|
122
121
|
trackInventory?: boolean | null;
|
|
123
122
|
}
|
|
124
|
-
|
|
123
|
+
interface BulkUpdateInventoryItemsResponse {
|
|
125
124
|
}
|
|
126
|
-
|
|
125
|
+
interface DecrementInventoryRequest {
|
|
127
126
|
/**
|
|
127
|
+
* Item or product to decrement.
|
|
128
128
|
* @minSize 1
|
|
129
129
|
* @maxSize 300
|
|
130
130
|
*/
|
|
131
131
|
decrementData?: DecrementData[];
|
|
132
132
|
}
|
|
133
|
-
|
|
133
|
+
interface DecrementData extends DecrementDataIdOneOf {
|
|
134
134
|
/**
|
|
135
135
|
* Inventory item ID.
|
|
136
136
|
* @maxLength 36
|
|
137
137
|
*/
|
|
138
138
|
inventoryId?: string;
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
140
|
+
* @internal
|
|
141
|
+
* @internal
|
|
141
142
|
* @maxLength 36
|
|
142
143
|
* @deprecated Deprecated: use productId.
|
|
143
144
|
* @replacedBy product_id
|
|
@@ -167,14 +168,15 @@ export interface DecrementData extends DecrementDataIdOneOf {
|
|
|
167
168
|
preorderRequest?: boolean;
|
|
168
169
|
}
|
|
169
170
|
/** @oneof */
|
|
170
|
-
|
|
171
|
+
interface DecrementDataIdOneOf {
|
|
171
172
|
/**
|
|
172
173
|
* Inventory item ID.
|
|
173
174
|
* @maxLength 36
|
|
174
175
|
*/
|
|
175
176
|
inventoryId?: string;
|
|
176
177
|
/**
|
|
177
|
-
*
|
|
178
|
+
* @internal
|
|
179
|
+
* @internal
|
|
178
180
|
* @maxLength 36
|
|
179
181
|
* @deprecated Deprecated: use productId.
|
|
180
182
|
* @replacedBy product_id
|
|
@@ -187,16 +189,17 @@ export interface DecrementDataIdOneOf {
|
|
|
187
189
|
*/
|
|
188
190
|
productId?: string;
|
|
189
191
|
}
|
|
190
|
-
|
|
192
|
+
interface DecrementInventoryResponse {
|
|
191
193
|
}
|
|
192
|
-
|
|
194
|
+
interface IncrementInventoryRequest {
|
|
193
195
|
/**
|
|
196
|
+
* Item or product to increment.
|
|
194
197
|
* @minSize 1
|
|
195
198
|
* @maxSize 300
|
|
196
199
|
*/
|
|
197
200
|
incrementData?: IncrementData[];
|
|
198
201
|
}
|
|
199
|
-
|
|
202
|
+
interface IncrementData extends IncrementDataIdOneOf {
|
|
200
203
|
/**
|
|
201
204
|
* Inventory item ID.
|
|
202
205
|
* @maxLength 36
|
|
@@ -219,7 +222,7 @@ export interface IncrementData extends IncrementDataIdOneOf {
|
|
|
219
222
|
incrementBy?: number;
|
|
220
223
|
}
|
|
221
224
|
/** @oneof */
|
|
222
|
-
|
|
225
|
+
interface IncrementDataIdOneOf {
|
|
223
226
|
/**
|
|
224
227
|
* Inventory item ID.
|
|
225
228
|
* @maxLength 36
|
|
@@ -231,13 +234,14 @@ export interface IncrementDataIdOneOf {
|
|
|
231
234
|
*/
|
|
232
235
|
productId?: string;
|
|
233
236
|
}
|
|
234
|
-
|
|
237
|
+
interface IncrementInventoryResponse {
|
|
235
238
|
}
|
|
236
|
-
|
|
239
|
+
interface InventoryItemChanged {
|
|
237
240
|
/** Inventory item ID. */
|
|
238
241
|
inventoryItemId?: string;
|
|
239
242
|
/**
|
|
240
|
-
*
|
|
243
|
+
* @internal
|
|
244
|
+
* @internal
|
|
241
245
|
* @deprecated Deprecated: use productId.
|
|
242
246
|
* @replacedBy product_id
|
|
243
247
|
* @targetRemovalDate 2024-12-31
|
|
@@ -252,13 +256,14 @@ export interface InventoryItemChanged {
|
|
|
252
256
|
/** Field mask of updated fields. */
|
|
253
257
|
fieldMask?: string[];
|
|
254
258
|
/** Date and time the inventory item was last updated. */
|
|
255
|
-
|
|
259
|
+
_updatedDate?: Date | null;
|
|
256
260
|
}
|
|
257
|
-
|
|
261
|
+
interface InventoryVariantsChanged {
|
|
258
262
|
/** Inventory item ID. */
|
|
259
263
|
inventoryItemId?: string;
|
|
260
264
|
/**
|
|
261
|
-
*
|
|
265
|
+
* @internal
|
|
266
|
+
* @internal
|
|
262
267
|
* @deprecated Deprecated: use productId.
|
|
263
268
|
* @replacedBy product_id
|
|
264
269
|
* @targetRemovalDate 2024-12-31
|
|
@@ -269,17 +274,17 @@ export interface InventoryVariantsChanged {
|
|
|
269
274
|
/** Information about changed variants. */
|
|
270
275
|
variants?: ChangedInventoryVariant[];
|
|
271
276
|
/** Date and time the inventory variant item was last updated. */
|
|
272
|
-
|
|
277
|
+
_updatedDate?: Date | null;
|
|
273
278
|
}
|
|
274
|
-
|
|
279
|
+
interface ChangedInventoryVariant {
|
|
275
280
|
/** Variant ID. */
|
|
276
|
-
|
|
281
|
+
_id?: string;
|
|
277
282
|
/** Previous inventory variant data. */
|
|
278
283
|
oldValue?: ChangedInventoryVariantData;
|
|
279
284
|
/** Current inventory variant data. */
|
|
280
285
|
newValue?: ChangedInventoryVariantData;
|
|
281
286
|
}
|
|
282
|
-
|
|
287
|
+
interface ChangedInventoryVariantData {
|
|
283
288
|
/** Inventory variant quantity. */
|
|
284
289
|
quantity?: number | null;
|
|
285
290
|
/** Whether the product variant is in stock. */
|
|
@@ -287,11 +292,12 @@ export interface ChangedInventoryVariantData {
|
|
|
287
292
|
/** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
|
|
288
293
|
availableForPreorder?: boolean;
|
|
289
294
|
}
|
|
290
|
-
|
|
295
|
+
interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
|
|
291
296
|
/** Inventory item ID. */
|
|
292
297
|
inventoryId: string;
|
|
293
298
|
/**
|
|
294
|
-
*
|
|
299
|
+
* @internal
|
|
300
|
+
* @internal
|
|
295
301
|
* @deprecated Deprecated (use productID instead).
|
|
296
302
|
* @replacedBy product_id
|
|
297
303
|
* @targetRemovalDate 2024-12-31
|
|
@@ -303,11 +309,12 @@ export interface GetInventoryVariantsRequest extends GetInventoryVariantsRequest
|
|
|
303
309
|
variantIds?: string[];
|
|
304
310
|
}
|
|
305
311
|
/** @oneof */
|
|
306
|
-
|
|
312
|
+
interface GetInventoryVariantsRequestIdOneOf {
|
|
307
313
|
/** Inventory item ID. */
|
|
308
314
|
inventoryId?: string;
|
|
309
315
|
/**
|
|
310
|
-
*
|
|
316
|
+
* @internal
|
|
317
|
+
* @internal
|
|
311
318
|
* @deprecated Deprecated (use productID instead).
|
|
312
319
|
* @replacedBy product_id
|
|
313
320
|
* @targetRemovalDate 2024-12-31
|
|
@@ -316,29 +323,31 @@ export interface GetInventoryVariantsRequestIdOneOf {
|
|
|
316
323
|
/** Product ID. */
|
|
317
324
|
productId?: string;
|
|
318
325
|
}
|
|
319
|
-
|
|
326
|
+
interface GetInventoryVariantsResponse {
|
|
320
327
|
/** Inventory item. */
|
|
321
328
|
inventoryItem?: InventoryItemV2;
|
|
322
329
|
}
|
|
323
|
-
|
|
330
|
+
interface GetInventoryItemsRequest {
|
|
324
331
|
/** Product IDs */
|
|
325
332
|
productIds?: string[];
|
|
326
333
|
}
|
|
327
|
-
|
|
334
|
+
interface GetInventoryItemsResponse {
|
|
328
335
|
/** Inventory items. */
|
|
329
336
|
inventoryItems?: InventoryItemV2[];
|
|
330
337
|
}
|
|
331
|
-
|
|
338
|
+
interface QueryInventoryRequest {
|
|
339
|
+
/** Information about paging, filters, sorting. */
|
|
332
340
|
query?: Query;
|
|
333
341
|
}
|
|
334
|
-
|
|
342
|
+
interface Query {
|
|
343
|
+
/** Paging options to limit and skip the number of items. */
|
|
335
344
|
paging?: Paging;
|
|
336
345
|
/** Filter string */
|
|
337
346
|
filter?: string | null;
|
|
338
347
|
/** Sort string */
|
|
339
348
|
sort?: string | null;
|
|
340
349
|
}
|
|
341
|
-
|
|
350
|
+
interface Paging {
|
|
342
351
|
/**
|
|
343
352
|
* Amount of items to load per page
|
|
344
353
|
* @max 100
|
|
@@ -347,7 +356,7 @@ export interface Paging {
|
|
|
347
356
|
/** Number of items to skip in the display (relevant for all pages after the first) */
|
|
348
357
|
offset?: number | null;
|
|
349
358
|
}
|
|
350
|
-
|
|
359
|
+
interface QueryInventoryResponse {
|
|
351
360
|
/** Inventory items. */
|
|
352
361
|
inventoryItems?: InventoryItemV2[];
|
|
353
362
|
/** Display metadata. */
|
|
@@ -355,13 +364,13 @@ export interface QueryInventoryResponse {
|
|
|
355
364
|
/** Number of total results. */
|
|
356
365
|
totalResults?: number;
|
|
357
366
|
}
|
|
358
|
-
|
|
367
|
+
interface PagingMetadata {
|
|
359
368
|
/** Amount of items to load per page */
|
|
360
369
|
items?: number;
|
|
361
370
|
/** Number of items to skip in the display (relevant for all pages after the first) */
|
|
362
371
|
offset?: number;
|
|
363
372
|
}
|
|
364
|
-
|
|
373
|
+
interface MessageEnvelope {
|
|
365
374
|
/**
|
|
366
375
|
* App instance ID.
|
|
367
376
|
* @format GUID
|
|
@@ -377,7 +386,7 @@ export interface MessageEnvelope {
|
|
|
377
386
|
/** Stringify payload. */
|
|
378
387
|
data?: string;
|
|
379
388
|
}
|
|
380
|
-
|
|
389
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
381
390
|
/**
|
|
382
391
|
* ID of a site visitor that has not logged in to the site.
|
|
383
392
|
* @format GUID
|
|
@@ -402,7 +411,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
402
411
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
403
412
|
}
|
|
404
413
|
/** @oneof */
|
|
405
|
-
|
|
414
|
+
interface IdentificationDataIdOneOf {
|
|
406
415
|
/**
|
|
407
416
|
* ID of a site visitor that has not logged in to the site.
|
|
408
417
|
* @format GUID
|
|
@@ -424,7 +433,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
424
433
|
*/
|
|
425
434
|
appId?: string;
|
|
426
435
|
}
|
|
427
|
-
|
|
436
|
+
declare enum WebhookIdentityType {
|
|
428
437
|
UNKNOWN = "UNKNOWN",
|
|
429
438
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
430
439
|
MEMBER = "MEMBER",
|
|
@@ -432,4 +441,90 @@ export declare enum WebhookIdentityType {
|
|
|
432
441
|
APP = "APP"
|
|
433
442
|
}
|
|
434
443
|
/** @enumType */
|
|
435
|
-
|
|
444
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
445
|
+
interface BaseEventMetadata {
|
|
446
|
+
/**
|
|
447
|
+
* App instance ID.
|
|
448
|
+
* @format GUID
|
|
449
|
+
*/
|
|
450
|
+
instanceId?: string | null;
|
|
451
|
+
/**
|
|
452
|
+
* Event type.
|
|
453
|
+
* @maxLength 150
|
|
454
|
+
*/
|
|
455
|
+
eventType?: string;
|
|
456
|
+
/** The identification type and identity data. */
|
|
457
|
+
identity?: IdentificationData;
|
|
458
|
+
}
|
|
459
|
+
interface InventoryItemChangedEnvelope {
|
|
460
|
+
data: InventoryItemChanged;
|
|
461
|
+
metadata: BaseEventMetadata;
|
|
462
|
+
}
|
|
463
|
+
interface InventoryVariantsChangedEnvelope {
|
|
464
|
+
data: InventoryVariantsChanged;
|
|
465
|
+
metadata: BaseEventMetadata;
|
|
466
|
+
}
|
|
467
|
+
interface UpdateInventoryVariantsInventoryItem {
|
|
468
|
+
/** Inventory item ID. */
|
|
469
|
+
_id?: string | null;
|
|
470
|
+
/**
|
|
471
|
+
* @internal
|
|
472
|
+
* @internal
|
|
473
|
+
* @readonly
|
|
474
|
+
* @deprecated Deprecated: use productId.
|
|
475
|
+
* @replacedBy product_id
|
|
476
|
+
* @targetRemovalDate 2024-12-31
|
|
477
|
+
*/
|
|
478
|
+
externalId?: string | null;
|
|
479
|
+
/** Whether quantity is being tracked. */
|
|
480
|
+
trackQuantity?: boolean | null;
|
|
481
|
+
/** Variants associated with this inventory item. */
|
|
482
|
+
variants?: InventoryVariantV2[];
|
|
483
|
+
/**
|
|
484
|
+
* Last updated timestamp.
|
|
485
|
+
* @readonly
|
|
486
|
+
*/
|
|
487
|
+
lastUpdated?: Date | null;
|
|
488
|
+
/**
|
|
489
|
+
* Inventory’s unique numeric ID (assigned in ascending order).
|
|
490
|
+
* Primarily for sorting and filtering when crawling all inventories.
|
|
491
|
+
* @readonly
|
|
492
|
+
*/
|
|
493
|
+
numericId?: string;
|
|
494
|
+
/** Preorder information. */
|
|
495
|
+
preorderInfo?: PreorderInfo;
|
|
496
|
+
}
|
|
497
|
+
interface GetInventoryVariantsOptions extends GetInventoryVariantsOptionsIdOneOf {
|
|
498
|
+
/**
|
|
499
|
+
* @internal
|
|
500
|
+
* @internal
|
|
501
|
+
* @deprecated Deprecated (use productID instead).
|
|
502
|
+
* @replacedBy product_id
|
|
503
|
+
* @targetRemovalDate 2024-12-31
|
|
504
|
+
*/
|
|
505
|
+
externalId?: string;
|
|
506
|
+
/** Product ID. */
|
|
507
|
+
productId?: string;
|
|
508
|
+
/** Variant IDs to query for this inventory item (optional). */
|
|
509
|
+
variantIds?: string[];
|
|
510
|
+
}
|
|
511
|
+
/** @oneof */
|
|
512
|
+
interface GetInventoryVariantsOptionsIdOneOf {
|
|
513
|
+
/** Inventory item ID. */
|
|
514
|
+
inventoryId?: string;
|
|
515
|
+
/**
|
|
516
|
+
* @internal
|
|
517
|
+
* @deprecated Deprecated (use productID instead).
|
|
518
|
+
* @replacedBy product_id
|
|
519
|
+
* @targetRemovalDate 2024-12-31
|
|
520
|
+
*/
|
|
521
|
+
externalId?: string;
|
|
522
|
+
/** Product ID. */
|
|
523
|
+
productId?: string;
|
|
524
|
+
}
|
|
525
|
+
interface QueryInventoryOptions {
|
|
526
|
+
/** Information about paging, filters, sorting. */
|
|
527
|
+
query?: Query;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
export { type Query as A, type BulkUpdateInventoryVariantsRequest as B, type ChangedInventoryVariant as C, type DecrementData as D, type Paging as E, type PagingMetadata as F, type GetInventoryVariantsOptions as G, type IdentificationData as H, type IncrementData as I, type IdentificationDataIdOneOf as J, type BaseEventMetadata as K, type GetInventoryVariantsOptionsIdOneOf as L, type MessageEnvelope as M, type PreorderInfo as P, type QueryInventoryOptions as Q, ReasonType as R, type UpdateInventoryVariantsInventoryItem as U, WebhookIdentityType as W, type GetInventoryVariantsResponse as a, type QueryInventoryResponse as b, type InventoryItemChangedEnvelope as c, type InventoryVariantsChangedEnvelope as d, type InventoryItemV2 as e, type InventoryVariantV2 as f, type UpdateInventoryVariantsRequest as g, type UpdateInventoryVariantsResponse as h, type BulkUpdateInventoryVariantsRequestActionOneOf as i, type BulkUpdateInventoryVariantsResponse as j, type BulkUpdateInventoryItemsRequest as k, type BulkUpdateInventoryItemsResponse as l, type DecrementInventoryRequest as m, type DecrementDataIdOneOf as n, type DecrementInventoryResponse as o, type IncrementInventoryRequest as p, type IncrementDataIdOneOf as q, type IncrementInventoryResponse as r, type InventoryItemChanged as s, type InventoryVariantsChanged as t, type ChangedInventoryVariantData as u, type GetInventoryVariantsRequest as v, type GetInventoryVariantsRequestIdOneOf as w, type GetInventoryItemsRequest as x, type GetInventoryItemsResponse as y, type QueryInventoryRequest as z };
|