@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,14 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
interface InventoryItemV2 {
|
|
2
2
|
/** Inventory item ID. */
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Deprecated: use productId.
|
|
6
|
-
* @readonly
|
|
7
|
-
* @deprecated Deprecated: use productId.
|
|
8
|
-
* @replacedBy product_id
|
|
9
|
-
* @targetRemovalDate 2024-12-31
|
|
10
|
-
*/
|
|
11
|
-
externalId?: string | null;
|
|
3
|
+
_id?: string | null;
|
|
12
4
|
/**
|
|
13
5
|
* Product ID.
|
|
14
6
|
* @readonly
|
|
@@ -32,7 +24,7 @@ export interface InventoryItemV2 {
|
|
|
32
24
|
/** Preorder information. */
|
|
33
25
|
preorderInfo?: PreorderInfo;
|
|
34
26
|
}
|
|
35
|
-
|
|
27
|
+
interface InventoryVariantV2 {
|
|
36
28
|
/** Variant ID. */
|
|
37
29
|
variantId?: string;
|
|
38
30
|
/** Whether the product is listed as in stock. */
|
|
@@ -45,7 +37,7 @@ export interface InventoryVariantV2 {
|
|
|
45
37
|
*/
|
|
46
38
|
availableForPreorder?: boolean;
|
|
47
39
|
}
|
|
48
|
-
|
|
40
|
+
interface PreorderInfo {
|
|
49
41
|
/** Whether the item is available for preorder. */
|
|
50
42
|
enabled?: boolean;
|
|
51
43
|
/**
|
|
@@ -60,11 +52,11 @@ export interface PreorderInfo {
|
|
|
60
52
|
*/
|
|
61
53
|
limit?: number | null;
|
|
62
54
|
}
|
|
63
|
-
|
|
55
|
+
interface UpdateInventoryVariantsRequest {
|
|
64
56
|
/** Inventory item. */
|
|
65
57
|
inventoryItem: InventoryItemV2;
|
|
66
58
|
}
|
|
67
|
-
|
|
59
|
+
declare enum ReasonType {
|
|
68
60
|
/** Unknown reason. */
|
|
69
61
|
UNKNOWN = "UNKNOWN",
|
|
70
62
|
/** Order related. */
|
|
@@ -74,11 +66,9 @@ export declare enum ReasonType {
|
|
|
74
66
|
/** Reverting an inventory change. */
|
|
75
67
|
REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
|
|
76
68
|
}
|
|
77
|
-
|
|
78
|
-
export type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
|
|
79
|
-
export interface UpdateInventoryVariantsResponse {
|
|
69
|
+
interface UpdateInventoryVariantsResponse {
|
|
80
70
|
}
|
|
81
|
-
|
|
71
|
+
interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
82
72
|
/** Change availability. */
|
|
83
73
|
setInStock?: boolean | null;
|
|
84
74
|
/** Set new quantity. */
|
|
@@ -97,7 +87,7 @@ export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryV
|
|
|
97
87
|
filter?: Record<string, any> | null;
|
|
98
88
|
}
|
|
99
89
|
/** @oneof */
|
|
100
|
-
|
|
90
|
+
interface BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
101
91
|
/** Change availability. */
|
|
102
92
|
setInStock?: boolean | null;
|
|
103
93
|
/** Set new quantity. */
|
|
@@ -113,37 +103,30 @@ export interface BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
|
113
103
|
*/
|
|
114
104
|
decrementBy?: number | null;
|
|
115
105
|
}
|
|
116
|
-
|
|
106
|
+
interface BulkUpdateInventoryVariantsResponse {
|
|
117
107
|
}
|
|
118
|
-
|
|
108
|
+
interface BulkUpdateInventoryItemsRequest {
|
|
119
109
|
/** Variants filter */
|
|
120
110
|
variantsFilter?: Record<string, any> | null;
|
|
121
111
|
/** Whether inventory is being tracked. */
|
|
122
112
|
trackInventory?: boolean | null;
|
|
123
113
|
}
|
|
124
|
-
|
|
114
|
+
interface BulkUpdateInventoryItemsResponse {
|
|
125
115
|
}
|
|
126
|
-
|
|
116
|
+
interface DecrementInventoryRequest {
|
|
127
117
|
/**
|
|
118
|
+
* Item or product to decrement.
|
|
128
119
|
* @minSize 1
|
|
129
120
|
* @maxSize 300
|
|
130
121
|
*/
|
|
131
122
|
decrementData?: DecrementData[];
|
|
132
123
|
}
|
|
133
|
-
|
|
124
|
+
interface DecrementData extends DecrementDataIdOneOf {
|
|
134
125
|
/**
|
|
135
126
|
* Inventory item ID.
|
|
136
127
|
* @maxLength 36
|
|
137
128
|
*/
|
|
138
129
|
inventoryId?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Deprecated: use productId.
|
|
141
|
-
* @maxLength 36
|
|
142
|
-
* @deprecated Deprecated: use productId.
|
|
143
|
-
* @replacedBy product_id
|
|
144
|
-
* @targetRemovalDate 2024-12-31
|
|
145
|
-
*/
|
|
146
|
-
externalId?: string;
|
|
147
130
|
/**
|
|
148
131
|
* Product ID.
|
|
149
132
|
* @maxLength 36
|
|
@@ -167,36 +150,29 @@ export interface DecrementData extends DecrementDataIdOneOf {
|
|
|
167
150
|
preorderRequest?: boolean;
|
|
168
151
|
}
|
|
169
152
|
/** @oneof */
|
|
170
|
-
|
|
153
|
+
interface DecrementDataIdOneOf {
|
|
171
154
|
/**
|
|
172
155
|
* Inventory item ID.
|
|
173
156
|
* @maxLength 36
|
|
174
157
|
*/
|
|
175
158
|
inventoryId?: string;
|
|
176
|
-
/**
|
|
177
|
-
* Deprecated: use productId.
|
|
178
|
-
* @maxLength 36
|
|
179
|
-
* @deprecated Deprecated: use productId.
|
|
180
|
-
* @replacedBy product_id
|
|
181
|
-
* @targetRemovalDate 2024-12-31
|
|
182
|
-
*/
|
|
183
|
-
externalId?: string;
|
|
184
159
|
/**
|
|
185
160
|
* Product ID.
|
|
186
161
|
* @maxLength 36
|
|
187
162
|
*/
|
|
188
163
|
productId?: string;
|
|
189
164
|
}
|
|
190
|
-
|
|
165
|
+
interface DecrementInventoryResponse {
|
|
191
166
|
}
|
|
192
|
-
|
|
167
|
+
interface IncrementInventoryRequest {
|
|
193
168
|
/**
|
|
169
|
+
* Item or product to increment.
|
|
194
170
|
* @minSize 1
|
|
195
171
|
* @maxSize 300
|
|
196
172
|
*/
|
|
197
173
|
incrementData?: IncrementData[];
|
|
198
174
|
}
|
|
199
|
-
|
|
175
|
+
interface IncrementData extends IncrementDataIdOneOf {
|
|
200
176
|
/**
|
|
201
177
|
* Inventory item ID.
|
|
202
178
|
* @maxLength 36
|
|
@@ -219,7 +195,7 @@ export interface IncrementData extends IncrementDataIdOneOf {
|
|
|
219
195
|
incrementBy?: number;
|
|
220
196
|
}
|
|
221
197
|
/** @oneof */
|
|
222
|
-
|
|
198
|
+
interface IncrementDataIdOneOf {
|
|
223
199
|
/**
|
|
224
200
|
* Inventory item ID.
|
|
225
201
|
* @maxLength 36
|
|
@@ -231,18 +207,11 @@ export interface IncrementDataIdOneOf {
|
|
|
231
207
|
*/
|
|
232
208
|
productId?: string;
|
|
233
209
|
}
|
|
234
|
-
|
|
210
|
+
interface IncrementInventoryResponse {
|
|
235
211
|
}
|
|
236
|
-
|
|
212
|
+
interface InventoryItemChanged {
|
|
237
213
|
/** Inventory item ID. */
|
|
238
214
|
inventoryItemId?: string;
|
|
239
|
-
/**
|
|
240
|
-
* Deprecated: use productId.
|
|
241
|
-
* @deprecated Deprecated: use productId.
|
|
242
|
-
* @replacedBy product_id
|
|
243
|
-
* @targetRemovalDate 2024-12-31
|
|
244
|
-
*/
|
|
245
|
-
externalId?: string;
|
|
246
215
|
/** Product ID. */
|
|
247
216
|
productId?: string;
|
|
248
217
|
/** Whether inventory is being tracked. */
|
|
@@ -252,34 +221,27 @@ export interface InventoryItemChanged {
|
|
|
252
221
|
/** Field mask of updated fields. */
|
|
253
222
|
fieldMask?: string[];
|
|
254
223
|
/** Date and time the inventory item was last updated. */
|
|
255
|
-
|
|
224
|
+
_updatedDate?: Date | null;
|
|
256
225
|
}
|
|
257
|
-
|
|
226
|
+
interface InventoryVariantsChanged {
|
|
258
227
|
/** Inventory item ID. */
|
|
259
228
|
inventoryItemId?: string;
|
|
260
|
-
/**
|
|
261
|
-
* Deprecated: use productId.
|
|
262
|
-
* @deprecated Deprecated: use productId.
|
|
263
|
-
* @replacedBy product_id
|
|
264
|
-
* @targetRemovalDate 2024-12-31
|
|
265
|
-
*/
|
|
266
|
-
externalId?: string;
|
|
267
229
|
/** Product ID. */
|
|
268
230
|
productId?: string;
|
|
269
231
|
/** Information about changed variants. */
|
|
270
232
|
variants?: ChangedInventoryVariant[];
|
|
271
233
|
/** Date and time the inventory variant item was last updated. */
|
|
272
|
-
|
|
234
|
+
_updatedDate?: Date | null;
|
|
273
235
|
}
|
|
274
|
-
|
|
236
|
+
interface ChangedInventoryVariant {
|
|
275
237
|
/** Variant ID. */
|
|
276
|
-
|
|
238
|
+
_id?: string;
|
|
277
239
|
/** Previous inventory variant data. */
|
|
278
240
|
oldValue?: ChangedInventoryVariantData;
|
|
279
241
|
/** Current inventory variant data. */
|
|
280
242
|
newValue?: ChangedInventoryVariantData;
|
|
281
243
|
}
|
|
282
|
-
|
|
244
|
+
interface ChangedInventoryVariantData {
|
|
283
245
|
/** Inventory variant quantity. */
|
|
284
246
|
quantity?: number | null;
|
|
285
247
|
/** Whether the product variant is in stock. */
|
|
@@ -287,58 +249,46 @@ export interface ChangedInventoryVariantData {
|
|
|
287
249
|
/** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
|
|
288
250
|
availableForPreorder?: boolean;
|
|
289
251
|
}
|
|
290
|
-
|
|
252
|
+
interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
|
|
291
253
|
/** Inventory item ID. */
|
|
292
254
|
inventoryId: string;
|
|
293
|
-
/**
|
|
294
|
-
* Deprecated (use productID instead).
|
|
295
|
-
* @deprecated Deprecated (use productID instead).
|
|
296
|
-
* @replacedBy product_id
|
|
297
|
-
* @targetRemovalDate 2024-12-31
|
|
298
|
-
*/
|
|
299
|
-
externalId?: string;
|
|
300
255
|
/** Product ID. */
|
|
301
256
|
productId?: string;
|
|
302
257
|
/** Variant IDs to query for this inventory item (optional). */
|
|
303
258
|
variantIds?: string[];
|
|
304
259
|
}
|
|
305
260
|
/** @oneof */
|
|
306
|
-
|
|
261
|
+
interface GetInventoryVariantsRequestIdOneOf {
|
|
307
262
|
/** Inventory item ID. */
|
|
308
263
|
inventoryId?: string;
|
|
309
|
-
/**
|
|
310
|
-
* Deprecated (use productID instead).
|
|
311
|
-
* @deprecated Deprecated (use productID instead).
|
|
312
|
-
* @replacedBy product_id
|
|
313
|
-
* @targetRemovalDate 2024-12-31
|
|
314
|
-
*/
|
|
315
|
-
externalId?: string;
|
|
316
264
|
/** Product ID. */
|
|
317
265
|
productId?: string;
|
|
318
266
|
}
|
|
319
|
-
|
|
267
|
+
interface GetInventoryVariantsResponse {
|
|
320
268
|
/** Inventory item. */
|
|
321
269
|
inventoryItem?: InventoryItemV2;
|
|
322
270
|
}
|
|
323
|
-
|
|
271
|
+
interface GetInventoryItemsRequest {
|
|
324
272
|
/** Product IDs */
|
|
325
273
|
productIds?: string[];
|
|
326
274
|
}
|
|
327
|
-
|
|
275
|
+
interface GetInventoryItemsResponse {
|
|
328
276
|
/** Inventory items. */
|
|
329
277
|
inventoryItems?: InventoryItemV2[];
|
|
330
278
|
}
|
|
331
|
-
|
|
279
|
+
interface QueryInventoryRequest {
|
|
280
|
+
/** Information about paging, filters, sorting. */
|
|
332
281
|
query?: Query;
|
|
333
282
|
}
|
|
334
|
-
|
|
283
|
+
interface Query {
|
|
284
|
+
/** Paging options to limit and skip the number of items. */
|
|
335
285
|
paging?: Paging;
|
|
336
286
|
/** Filter string */
|
|
337
287
|
filter?: string | null;
|
|
338
288
|
/** Sort string */
|
|
339
289
|
sort?: string | null;
|
|
340
290
|
}
|
|
341
|
-
|
|
291
|
+
interface Paging {
|
|
342
292
|
/**
|
|
343
293
|
* Amount of items to load per page
|
|
344
294
|
* @max 100
|
|
@@ -347,7 +297,7 @@ export interface Paging {
|
|
|
347
297
|
/** Number of items to skip in the display (relevant for all pages after the first) */
|
|
348
298
|
offset?: number | null;
|
|
349
299
|
}
|
|
350
|
-
|
|
300
|
+
interface QueryInventoryResponse {
|
|
351
301
|
/** Inventory items. */
|
|
352
302
|
inventoryItems?: InventoryItemV2[];
|
|
353
303
|
/** Display metadata. */
|
|
@@ -355,13 +305,13 @@ export interface QueryInventoryResponse {
|
|
|
355
305
|
/** Number of total results. */
|
|
356
306
|
totalResults?: number;
|
|
357
307
|
}
|
|
358
|
-
|
|
308
|
+
interface PagingMetadata {
|
|
359
309
|
/** Amount of items to load per page */
|
|
360
310
|
items?: number;
|
|
361
311
|
/** Number of items to skip in the display (relevant for all pages after the first) */
|
|
362
312
|
offset?: number;
|
|
363
313
|
}
|
|
364
|
-
|
|
314
|
+
interface MessageEnvelope {
|
|
365
315
|
/**
|
|
366
316
|
* App instance ID.
|
|
367
317
|
* @format GUID
|
|
@@ -377,7 +327,7 @@ export interface MessageEnvelope {
|
|
|
377
327
|
/** Stringify payload. */
|
|
378
328
|
data?: string;
|
|
379
329
|
}
|
|
380
|
-
|
|
330
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
381
331
|
/**
|
|
382
332
|
* ID of a site visitor that has not logged in to the site.
|
|
383
333
|
* @format GUID
|
|
@@ -402,7 +352,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
402
352
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
403
353
|
}
|
|
404
354
|
/** @oneof */
|
|
405
|
-
|
|
355
|
+
interface IdentificationDataIdOneOf {
|
|
406
356
|
/**
|
|
407
357
|
* ID of a site visitor that has not logged in to the site.
|
|
408
358
|
* @format GUID
|
|
@@ -424,7 +374,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
424
374
|
*/
|
|
425
375
|
appId?: string;
|
|
426
376
|
}
|
|
427
|
-
|
|
377
|
+
declare enum WebhookIdentityType {
|
|
428
378
|
UNKNOWN = "UNKNOWN",
|
|
429
379
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
430
380
|
MEMBER = "MEMBER",
|
|
@@ -432,4 +382,66 @@ export declare enum WebhookIdentityType {
|
|
|
432
382
|
APP = "APP"
|
|
433
383
|
}
|
|
434
384
|
/** @enumType */
|
|
435
|
-
|
|
385
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
386
|
+
interface BaseEventMetadata {
|
|
387
|
+
/**
|
|
388
|
+
* App instance ID.
|
|
389
|
+
* @format GUID
|
|
390
|
+
*/
|
|
391
|
+
instanceId?: string | null;
|
|
392
|
+
/**
|
|
393
|
+
* Event type.
|
|
394
|
+
* @maxLength 150
|
|
395
|
+
*/
|
|
396
|
+
eventType?: string;
|
|
397
|
+
/** The identification type and identity data. */
|
|
398
|
+
identity?: IdentificationData;
|
|
399
|
+
}
|
|
400
|
+
interface InventoryItemChangedEnvelope {
|
|
401
|
+
data: InventoryItemChanged;
|
|
402
|
+
metadata: BaseEventMetadata;
|
|
403
|
+
}
|
|
404
|
+
interface InventoryVariantsChangedEnvelope {
|
|
405
|
+
data: InventoryVariantsChanged;
|
|
406
|
+
metadata: BaseEventMetadata;
|
|
407
|
+
}
|
|
408
|
+
interface UpdateInventoryVariantsInventoryItem {
|
|
409
|
+
/** Inventory item ID. */
|
|
410
|
+
_id?: string | null;
|
|
411
|
+
/** Whether quantity is being tracked. */
|
|
412
|
+
trackQuantity?: boolean | null;
|
|
413
|
+
/** Variants associated with this inventory item. */
|
|
414
|
+
variants?: InventoryVariantV2[];
|
|
415
|
+
/**
|
|
416
|
+
* Last updated timestamp.
|
|
417
|
+
* @readonly
|
|
418
|
+
*/
|
|
419
|
+
lastUpdated?: Date | null;
|
|
420
|
+
/**
|
|
421
|
+
* Inventory’s unique numeric ID (assigned in ascending order).
|
|
422
|
+
* Primarily for sorting and filtering when crawling all inventories.
|
|
423
|
+
* @readonly
|
|
424
|
+
*/
|
|
425
|
+
numericId?: string;
|
|
426
|
+
/** Preorder information. */
|
|
427
|
+
preorderInfo?: PreorderInfo;
|
|
428
|
+
}
|
|
429
|
+
interface GetInventoryVariantsOptions extends GetInventoryVariantsOptionsIdOneOf {
|
|
430
|
+
/** Product ID. */
|
|
431
|
+
productId?: string;
|
|
432
|
+
/** Variant IDs to query for this inventory item (optional). */
|
|
433
|
+
variantIds?: string[];
|
|
434
|
+
}
|
|
435
|
+
/** @oneof */
|
|
436
|
+
interface GetInventoryVariantsOptionsIdOneOf {
|
|
437
|
+
/** Inventory item ID. */
|
|
438
|
+
inventoryId?: string;
|
|
439
|
+
/** Product ID. */
|
|
440
|
+
productId?: string;
|
|
441
|
+
}
|
|
442
|
+
interface QueryInventoryOptions {
|
|
443
|
+
/** Information about paging, filters, sorting. */
|
|
444
|
+
query?: Query;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
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 };
|