@wix/auto_sdk_stores_inventory 1.0.98 → 1.0.99

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.
@@ -1,4 +1,4 @@
1
- import { UpdateInventoryVariantsRequest as UpdateInventoryVariantsRequest$1, UpdateInventoryVariantsResponse as UpdateInventoryVariantsResponse$1, DecrementInventoryRequest as DecrementInventoryRequest$1, DecrementInventoryResponse as DecrementInventoryResponse$1, IncrementInventoryRequest as IncrementInventoryRequest$1, IncrementInventoryResponse as IncrementInventoryResponse$1, GetInventoryVariantsRequest as GetInventoryVariantsRequest$1, GetInventoryVariantsResponse as GetInventoryVariantsResponse$1, QueryInventoryRequest as QueryInventoryRequest$1, QueryInventoryResponse as QueryInventoryResponse$1 } from './index.typings.mjs';
1
+ import { GetInventoryVariantsRequest as GetInventoryVariantsRequest$1, GetInventoryVariantsResponse as GetInventoryVariantsResponse$1, QueryInventoryRequest as QueryInventoryRequest$1, QueryInventoryResponse as QueryInventoryResponse$1, UpdateInventoryVariantsRequest as UpdateInventoryVariantsRequest$1, UpdateInventoryVariantsResponse as UpdateInventoryVariantsResponse$1, DecrementInventoryRequest as DecrementInventoryRequest$1, DecrementInventoryResponse as DecrementInventoryResponse$1, IncrementInventoryRequest as IncrementInventoryRequest$1, IncrementInventoryResponse as IncrementInventoryResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface InventoryItemV2 {
@@ -68,191 +68,6 @@ interface PreorderInfo {
68
68
  */
69
69
  limit?: number | null;
70
70
  }
71
- interface UpdateInventoryVariantsRequest {
72
- /** Inventory item. */
73
- inventoryItem: InventoryItemV2;
74
- /** @internal */
75
- reason?: ReasonTypeWithLiterals;
76
- }
77
- declare enum ReasonType {
78
- /** Unknown reason. */
79
- UNKNOWN = "UNKNOWN",
80
- /** Order related. */
81
- ORDER = "ORDER",
82
- /** Manual adjustment. */
83
- MANUAL = "MANUAL",
84
- /** Reverting an inventory change. */
85
- REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
86
- }
87
- /** @enumType */
88
- type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
89
- interface UpdateInventoryVariantsResponse {
90
- }
91
- interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
92
- /** Change availability. */
93
- setInStock?: boolean | null;
94
- /** Set new quantity. */
95
- setQuantity?: number | null;
96
- /**
97
- * Number to increment inventory by.
98
- * @min 1
99
- */
100
- incrementBy?: number | null;
101
- /**
102
- * Number to decrement inventory by.
103
- * @min 1
104
- */
105
- decrementBy?: number | null;
106
- /** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
107
- filter?: Record<string, any> | null;
108
- /** @internal */
109
- reason?: ReasonTypeWithLiterals;
110
- /** @internal */
111
- changeTrackingMethod?: boolean;
112
- }
113
- /** @oneof */
114
- interface BulkUpdateInventoryVariantsRequestActionOneOf {
115
- /** Change availability. */
116
- setInStock?: boolean | null;
117
- /** Set new quantity. */
118
- setQuantity?: number | null;
119
- /**
120
- * Number to increment inventory by.
121
- * @min 1
122
- */
123
- incrementBy?: number | null;
124
- /**
125
- * Number to decrement inventory by.
126
- * @min 1
127
- */
128
- decrementBy?: number | null;
129
- }
130
- interface BulkUpdateInventoryVariantsResponse {
131
- }
132
- interface BulkUpdateInventoryItemsRequest {
133
- /** Variants filter */
134
- variantsFilter?: Record<string, any> | null;
135
- /** Whether inventory is being tracked. */
136
- trackInventory?: boolean | null;
137
- }
138
- interface BulkUpdateInventoryItemsResponse {
139
- }
140
- interface DecrementInventoryRequest {
141
- /**
142
- * @minSize 1
143
- * @maxSize 300
144
- */
145
- decrementData?: DecrementData[];
146
- /** @internal */
147
- reason?: ReasonTypeWithLiterals;
148
- /** @internal */
149
- restrictInventoryValue?: boolean;
150
- }
151
- interface DecrementData extends DecrementDataIdOneOf {
152
- /**
153
- * Inventory item ID.
154
- * @maxLength 36
155
- */
156
- inventoryId?: string;
157
- /**
158
- * Deprecated: use productId.
159
- * @maxLength 36
160
- * @deprecated Deprecated: use productId.
161
- * @replacedBy product_id
162
- * @targetRemovalDate 2024-12-31
163
- */
164
- externalId?: string;
165
- /**
166
- * Product ID.
167
- * @maxLength 36
168
- */
169
- productId?: string;
170
- /**
171
- * Variant ID.
172
- * @format GUID
173
- */
174
- variantId?: string;
175
- /**
176
- * Number to decrement inventory by.
177
- * @min 1
178
- */
179
- decrementBy?: number;
180
- /**
181
- * Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
182
- * If true and the item is available for preorder, we allow negative inventory.
183
- * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
184
- */
185
- preorderRequest?: boolean;
186
- }
187
- /** @oneof */
188
- interface DecrementDataIdOneOf {
189
- /**
190
- * Inventory item ID.
191
- * @maxLength 36
192
- */
193
- inventoryId?: string;
194
- /**
195
- * Deprecated: use productId.
196
- * @maxLength 36
197
- * @deprecated Deprecated: use productId.
198
- * @replacedBy product_id
199
- * @targetRemovalDate 2024-12-31
200
- */
201
- externalId?: string;
202
- /**
203
- * Product ID.
204
- * @maxLength 36
205
- */
206
- productId?: string;
207
- }
208
- interface DecrementInventoryResponse {
209
- }
210
- interface IncrementInventoryRequest {
211
- /**
212
- * @minSize 1
213
- * @maxSize 300
214
- */
215
- incrementData?: IncrementData[];
216
- /** @internal */
217
- reason?: ReasonTypeWithLiterals;
218
- }
219
- interface IncrementData extends IncrementDataIdOneOf {
220
- /**
221
- * Inventory item ID.
222
- * @maxLength 36
223
- */
224
- inventoryId?: string;
225
- /**
226
- * Product ID.
227
- * @maxLength 36
228
- */
229
- productId?: string;
230
- /**
231
- * Variant ID.
232
- * @format GUID
233
- */
234
- variantId?: string;
235
- /**
236
- * Number to increment inventory by.
237
- * @min 1
238
- */
239
- incrementBy?: number;
240
- }
241
- /** @oneof */
242
- interface IncrementDataIdOneOf {
243
- /**
244
- * Inventory item ID.
245
- * @maxLength 36
246
- */
247
- inventoryId?: string;
248
- /**
249
- * Product ID.
250
- * @maxLength 36
251
- */
252
- productId?: string;
253
- }
254
- interface IncrementInventoryResponse {
255
- }
256
71
  interface InventoryItemChanged {
257
72
  /** Inventory item ID. */
258
73
  inventoryItemId?: string;
@@ -312,6 +127,18 @@ interface ChangedInventoryVariantData {
312
127
  /** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
313
128
  availableForPreorder?: boolean;
314
129
  }
130
+ declare enum ReasonType {
131
+ /** Unknown reason. */
132
+ UNKNOWN = "UNKNOWN",
133
+ /** Order related. */
134
+ ORDER = "ORDER",
135
+ /** Manual adjustment. */
136
+ MANUAL = "MANUAL",
137
+ /** Reverting an inventory change. */
138
+ REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
139
+ }
140
+ /** @enumType */
141
+ type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
315
142
  interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
316
143
  /** Inventory item ID. */
317
144
  inventoryId: string;
@@ -477,6 +304,179 @@ interface AccountInfo {
477
304
  */
478
305
  siteId?: string | null;
479
306
  }
307
+ interface UpdateInventoryVariantsRequest {
308
+ /** Inventory item. */
309
+ inventoryItem: InventoryItemV2;
310
+ /** @internal */
311
+ reason?: ReasonTypeWithLiterals;
312
+ }
313
+ interface UpdateInventoryVariantsResponse {
314
+ }
315
+ interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
316
+ /** Change availability. */
317
+ setInStock?: boolean | null;
318
+ /** Set new quantity. */
319
+ setQuantity?: number | null;
320
+ /**
321
+ * Number to increment inventory by.
322
+ * @min 1
323
+ */
324
+ incrementBy?: number | null;
325
+ /**
326
+ * Number to decrement inventory by.
327
+ * @min 1
328
+ */
329
+ decrementBy?: number | null;
330
+ /** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
331
+ filter?: Record<string, any> | null;
332
+ /** @internal */
333
+ reason?: ReasonTypeWithLiterals;
334
+ /** @internal */
335
+ changeTrackingMethod?: boolean;
336
+ }
337
+ /** @oneof */
338
+ interface BulkUpdateInventoryVariantsRequestActionOneOf {
339
+ /** Change availability. */
340
+ setInStock?: boolean | null;
341
+ /** Set new quantity. */
342
+ setQuantity?: number | null;
343
+ /**
344
+ * Number to increment inventory by.
345
+ * @min 1
346
+ */
347
+ incrementBy?: number | null;
348
+ /**
349
+ * Number to decrement inventory by.
350
+ * @min 1
351
+ */
352
+ decrementBy?: number | null;
353
+ }
354
+ interface BulkUpdateInventoryVariantsResponse {
355
+ }
356
+ interface BulkUpdateInventoryItemsRequest {
357
+ /** Variants filter */
358
+ variantsFilter?: Record<string, any> | null;
359
+ /** Whether inventory is being tracked. */
360
+ trackInventory?: boolean | null;
361
+ }
362
+ interface BulkUpdateInventoryItemsResponse {
363
+ }
364
+ interface DecrementInventoryRequest {
365
+ /**
366
+ * @minSize 1
367
+ * @maxSize 300
368
+ */
369
+ decrementData?: DecrementData[];
370
+ /** @internal */
371
+ reason?: ReasonTypeWithLiterals;
372
+ /** @internal */
373
+ restrictInventoryValue?: boolean;
374
+ }
375
+ interface DecrementData extends DecrementDataIdOneOf {
376
+ /**
377
+ * Inventory item ID.
378
+ * @maxLength 36
379
+ */
380
+ inventoryId?: string;
381
+ /**
382
+ * Deprecated: use productId.
383
+ * @maxLength 36
384
+ * @deprecated Deprecated: use productId.
385
+ * @replacedBy product_id
386
+ * @targetRemovalDate 2024-12-31
387
+ */
388
+ externalId?: string;
389
+ /**
390
+ * Product ID.
391
+ * @maxLength 36
392
+ */
393
+ productId?: string;
394
+ /**
395
+ * Variant ID.
396
+ * @format GUID
397
+ */
398
+ variantId?: string;
399
+ /**
400
+ * Number to decrement inventory by.
401
+ * @min 1
402
+ */
403
+ decrementBy?: number;
404
+ /**
405
+ * Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
406
+ * If true and the item is available for preorder, we allow negative inventory.
407
+ * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
408
+ */
409
+ preorderRequest?: boolean;
410
+ }
411
+ /** @oneof */
412
+ interface DecrementDataIdOneOf {
413
+ /**
414
+ * Inventory item ID.
415
+ * @maxLength 36
416
+ */
417
+ inventoryId?: string;
418
+ /**
419
+ * Deprecated: use productId.
420
+ * @maxLength 36
421
+ * @deprecated Deprecated: use productId.
422
+ * @replacedBy product_id
423
+ * @targetRemovalDate 2024-12-31
424
+ */
425
+ externalId?: string;
426
+ /**
427
+ * Product ID.
428
+ * @maxLength 36
429
+ */
430
+ productId?: string;
431
+ }
432
+ interface DecrementInventoryResponse {
433
+ }
434
+ interface IncrementInventoryRequest {
435
+ /**
436
+ * @minSize 1
437
+ * @maxSize 300
438
+ */
439
+ incrementData?: IncrementData[];
440
+ /** @internal */
441
+ reason?: ReasonTypeWithLiterals;
442
+ }
443
+ interface IncrementData extends IncrementDataIdOneOf {
444
+ /**
445
+ * Inventory item ID.
446
+ * @maxLength 36
447
+ */
448
+ inventoryId?: string;
449
+ /**
450
+ * Product ID.
451
+ * @maxLength 36
452
+ */
453
+ productId?: string;
454
+ /**
455
+ * Variant ID.
456
+ * @format GUID
457
+ */
458
+ variantId?: string;
459
+ /**
460
+ * Number to increment inventory by.
461
+ * @min 1
462
+ */
463
+ incrementBy?: number;
464
+ }
465
+ /** @oneof */
466
+ interface IncrementDataIdOneOf {
467
+ /**
468
+ * Inventory item ID.
469
+ * @maxLength 36
470
+ */
471
+ inventoryId?: string;
472
+ /**
473
+ * Product ID.
474
+ * @maxLength 36
475
+ */
476
+ productId?: string;
477
+ }
478
+ interface IncrementInventoryResponse {
479
+ }
480
480
 
481
481
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
482
482
  getUrl: (context: any) => string;
@@ -488,14 +488,14 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
488
488
  __responseType: Q;
489
489
  __originalResponseType: R;
490
490
  };
491
+ declare function getInventoryVariants(): __PublicMethodMetaInfo<'POST', {
492
+ inventoryId: string;
493
+ }, GetInventoryVariantsRequest$1, GetInventoryVariantsRequest, GetInventoryVariantsResponse$1, GetInventoryVariantsResponse>;
494
+ declare function queryInventory(): __PublicMethodMetaInfo<'POST', {}, QueryInventoryRequest$1, QueryInventoryRequest, QueryInventoryResponse$1, QueryInventoryResponse>;
491
495
  declare function updateInventoryVariants(): __PublicMethodMetaInfo<'PATCH', {
492
496
  inventoryItemProductId: string;
493
497
  }, UpdateInventoryVariantsRequest$1, UpdateInventoryVariantsRequest, UpdateInventoryVariantsResponse$1, UpdateInventoryVariantsResponse>;
494
498
  declare function decrementInventory(): __PublicMethodMetaInfo<'POST', {}, DecrementInventoryRequest$1, DecrementInventoryRequest, DecrementInventoryResponse$1, DecrementInventoryResponse>;
495
499
  declare function incrementInventory(): __PublicMethodMetaInfo<'POST', {}, IncrementInventoryRequest$1, IncrementInventoryRequest, IncrementInventoryResponse$1, IncrementInventoryResponse>;
496
- declare function getInventoryVariants(): __PublicMethodMetaInfo<'POST', {
497
- inventoryId: string;
498
- }, GetInventoryVariantsRequest$1, GetInventoryVariantsRequest, GetInventoryVariantsResponse$1, GetInventoryVariantsResponse>;
499
- declare function queryInventory(): __PublicMethodMetaInfo<'POST', {}, QueryInventoryRequest$1, QueryInventoryRequest, QueryInventoryResponse$1, QueryInventoryResponse>;
500
500
 
501
501
  export { type AccountInfo as AccountInfoOriginal, type BulkUpdateInventoryItemsRequest as BulkUpdateInventoryItemsRequestOriginal, type BulkUpdateInventoryItemsResponse as BulkUpdateInventoryItemsResponseOriginal, type BulkUpdateInventoryVariantsRequestActionOneOf as BulkUpdateInventoryVariantsRequestActionOneOfOriginal, type BulkUpdateInventoryVariantsRequest as BulkUpdateInventoryVariantsRequestOriginal, type BulkUpdateInventoryVariantsResponse as BulkUpdateInventoryVariantsResponseOriginal, type ChangedInventoryVariantData as ChangedInventoryVariantDataOriginal, type ChangedInventoryVariant as ChangedInventoryVariantOriginal, type DecrementDataIdOneOf as DecrementDataIdOneOfOriginal, type DecrementData as DecrementDataOriginal, type DecrementInventoryRequest as DecrementInventoryRequestOriginal, type DecrementInventoryResponse as DecrementInventoryResponseOriginal, type GetInventoryItemsRequest as GetInventoryItemsRequestOriginal, type GetInventoryItemsResponse as GetInventoryItemsResponseOriginal, type GetInventoryVariantsRequestIdOneOf as GetInventoryVariantsRequestIdOneOfOriginal, type GetInventoryVariantsRequest as GetInventoryVariantsRequestOriginal, type GetInventoryVariantsResponse as GetInventoryVariantsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IncrementDataIdOneOf as IncrementDataIdOneOfOriginal, type IncrementData as IncrementDataOriginal, type IncrementInventoryRequest as IncrementInventoryRequestOriginal, type IncrementInventoryResponse as IncrementInventoryResponseOriginal, type InventoryItemChanged as InventoryItemChangedOriginal, type InventoryItemV2 as InventoryItemV2Original, type InventoryVariantV2 as InventoryVariantV2Original, type InventoryVariantsChanged as InventoryVariantsChangedOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PagingMetadata as PagingMetadataOriginal, type Paging as PagingOriginal, type PreorderInfo as PreorderInfoOriginal, type QueryInventoryRequest as QueryInventoryRequestOriginal, type QueryInventoryResponse as QueryInventoryResponseOriginal, type Query as QueryOriginal, ReasonType as ReasonTypeOriginal, type ReasonTypeWithLiterals as ReasonTypeWithLiteralsOriginal, type UpdateInventoryVariantsRequest as UpdateInventoryVariantsRequestOriginal, type UpdateInventoryVariantsResponse as UpdateInventoryVariantsResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, decrementInventory, getInventoryVariants, incrementInventory, queryInventory, updateInventoryVariants };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_stores_inventory",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.stores.v2.inventory"
51
51
  }
52
52
  },
53
- "falconPackageHash": "880fb6a6404b67c8571561b9d785ad8ff8a8e24a028ecdab23d1d433"
53
+ "falconPackageHash": "363a1cda808d7afaf9a0056bae673c6b5463ffbe0da9b04a16cf323d"
54
54
  }