@whiplashmerch/whiplash-api-client 3.2.24 → 3.2.25
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 { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesCount, ApiV21EntitiesCustomsInfo, ApiV21EntitiesIncident, ApiV21EntitiesListValue, ApiV21EntitiesMessage, ApiV21EntitiesOrder, ApiV21EntitiesOrderDocument, ApiV21EntitiesOrderEvent, ApiV21EntitiesOrderItem, ApiV21EntitiesOrderItemLotMap, ApiV21EntitiesOrderMetadata, ApiV21EntitiesOriginator, ApiV21EntitiesPackage, ApiV21EntitiesPackingRule, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesRuleDismissal, ApiV21EntitiesSerialNumber, ApiV21EntitiesShippingDocument, ApiV21EntitiesShippingRate, ApiV21EntitiesWholesale, ApiV2EntitiesCount, ApiV2EntitiesCustomsInfo, ApiV2EntitiesIncident, ApiV2EntitiesListValue, ApiV2EntitiesMessage, ApiV2EntitiesOrder, ApiV2EntitiesOrderDocument, ApiV2EntitiesOrderEvent, ApiV2EntitiesOrderItem, ApiV2EntitiesOrderItemLotMap, ApiV2EntitiesOrderMetadata, ApiV2EntitiesOriginator, ApiV2EntitiesPackage, ApiV2EntitiesPackingRule, ApiV2EntitiesResult, ApiV2EntitiesRuleDismissal, ApiV2EntitiesSerialNumber, ApiV2EntitiesShippingDocument, ApiV2EntitiesShippingRate, ApiV2EntitiesWholesale, GetApiV21OrdersAggregateParams, GetApiV21OrdersCountParams, GetApiV21OrdersIdCallTraitParams, GetApiV21OrdersIdEventsCountParams, GetApiV21OrdersIdEventsParams, GetApiV21OrdersIdIncidentsCountParams, GetApiV21OrdersIdIncidentsParams, GetApiV21OrdersIdMessagesCountParams, GetApiV21OrdersIdMessagesParams, GetApiV21OrdersIdMetaFieldsParams, GetApiV21OrdersIdOrderDocumentsCountParams, GetApiV21OrdersIdOrderDocumentsParams, GetApiV21OrdersIdOrderItemsCountParams, GetApiV21OrdersIdOrderItemsParams, GetApiV21OrdersIdPackagesCountParams, GetApiV21OrdersIdPackagesParams, GetApiV21OrdersIdShippingDocumentsParams, GetApiV21OrdersIdSuggestedItemsParams, GetApiV21OrdersIdTraitsParams, GetApiV21OrdersParams, GetApiV2OrdersAggregateParams, GetApiV2OrdersCountParams, GetApiV2OrdersIdCallTraitParams, GetApiV2OrdersIdEventsCountParams, GetApiV2OrdersIdEventsParams, GetApiV2OrdersIdIncidentsCountParams, GetApiV2OrdersIdIncidentsParams, GetApiV2OrdersIdMessagesCountParams, GetApiV2OrdersIdMessagesParams, GetApiV2OrdersIdMetaFieldsParams, GetApiV2OrdersIdOrderDocumentsCountParams, GetApiV2OrdersIdOrderDocumentsParams, GetApiV2OrdersIdOrderItemsCountParams, GetApiV2OrdersIdOrderItemsParams, GetApiV2OrdersIdPackagesCountParams, GetApiV2OrdersIdPackagesParams, GetApiV2OrdersIdShippingDocumentsParams, GetApiV2OrdersIdSuggestedItemsParams, GetApiV2OrdersIdTraitsParams, GetApiV2OrdersParams, PostApiV21OrdersBulkRequest, PostApiV21OrdersIdIncidentsRequest, PostApiV21OrdersIdMessagesRequest, PostApiV21OrdersIdOrderDocumentsRequest, PostApiV21OrdersIdOrderItemsRequest, PostApiV21OrdersIdPackagesRequest, PostApiV21OrdersIdRuleDismissalsRequest, PostApiV21OrdersRequest, PostApiV2OrdersBulkRequest, PostApiV2OrdersIdIncidentsRequest, PostApiV2OrdersIdMessagesRequest, PostApiV2OrdersIdOrderDocumentsRequest, PostApiV2OrdersIdOrderItemsRequest, PostApiV2OrdersIdPackagesRequest, PostApiV2OrdersIdRuleDismissalsRequest, PostApiV2OrdersRequest, PutApiV21OrdersIdCallActionRequest, PutApiV21OrdersIdCallAsyncActionRequest, PutApiV21OrdersIdCustomsInfoRequest, PutApiV21OrdersIdMetaFieldsRequest, PutApiV21OrdersIdRequest, PutApiV21OrdersIdWholesaleRequest, PutApiV2OrdersIdCallActionRequest, PutApiV2OrdersIdCallAsyncActionRequest, PutApiV2OrdersIdCustomsInfoRequest, PutApiV2OrdersIdMetaFieldsRequest, PutApiV2OrdersIdRequest, PutApiV2OrdersIdWholesaleRequest } from "./data-contracts";
|
|
1
|
+
import { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesCount, ApiV21EntitiesCustomsInfo, ApiV21EntitiesIncident, ApiV21EntitiesListValue, ApiV21EntitiesMessage, ApiV21EntitiesOrder, ApiV21EntitiesOrderDocument, ApiV21EntitiesOrderEvent, ApiV21EntitiesOrderItem, ApiV21EntitiesOrderItemInventoryInfo, ApiV21EntitiesOrderItemLotMap, ApiV21EntitiesOrderMetadata, ApiV21EntitiesOriginator, ApiV21EntitiesPackage, ApiV21EntitiesPackingRule, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesRuleDismissal, ApiV21EntitiesSerialNumber, ApiV21EntitiesShippingDocument, ApiV21EntitiesShippingRate, ApiV21EntitiesWholesale, ApiV2EntitiesCount, ApiV2EntitiesCustomsInfo, ApiV2EntitiesIncident, ApiV2EntitiesListValue, ApiV2EntitiesMessage, ApiV2EntitiesOrder, ApiV2EntitiesOrderDocument, ApiV2EntitiesOrderEvent, ApiV2EntitiesOrderItem, ApiV2EntitiesOrderItemInventoryInfo, ApiV2EntitiesOrderItemLotMap, ApiV2EntitiesOrderMetadata, ApiV2EntitiesOriginator, ApiV2EntitiesPackage, ApiV2EntitiesPackingRule, ApiV2EntitiesResult, ApiV2EntitiesRuleDismissal, ApiV2EntitiesSerialNumber, ApiV2EntitiesShippingDocument, ApiV2EntitiesShippingRate, ApiV2EntitiesWholesale, GetApiV21OrdersAggregateParams, GetApiV21OrdersCountParams, GetApiV21OrdersIdCallTraitParams, GetApiV21OrdersIdEventsCountParams, GetApiV21OrdersIdEventsParams, GetApiV21OrdersIdIncidentsCountParams, GetApiV21OrdersIdIncidentsParams, GetApiV21OrdersIdMessagesCountParams, GetApiV21OrdersIdMessagesParams, GetApiV21OrdersIdMetaFieldsParams, GetApiV21OrdersIdOrderDocumentsCountParams, GetApiV21OrdersIdOrderDocumentsParams, GetApiV21OrdersIdOrderItemsCountParams, GetApiV21OrdersIdOrderItemsInventoryInfoParams, GetApiV21OrdersIdOrderItemsParams, GetApiV21OrdersIdPackagesCountParams, GetApiV21OrdersIdPackagesParams, GetApiV21OrdersIdShippingDocumentsParams, GetApiV21OrdersIdSuggestedItemsParams, GetApiV21OrdersIdTraitsParams, GetApiV21OrdersParams, GetApiV2OrdersAggregateParams, GetApiV2OrdersCountParams, GetApiV2OrdersIdCallTraitParams, GetApiV2OrdersIdEventsCountParams, GetApiV2OrdersIdEventsParams, GetApiV2OrdersIdIncidentsCountParams, GetApiV2OrdersIdIncidentsParams, GetApiV2OrdersIdMessagesCountParams, GetApiV2OrdersIdMessagesParams, GetApiV2OrdersIdMetaFieldsParams, GetApiV2OrdersIdOrderDocumentsCountParams, GetApiV2OrdersIdOrderDocumentsParams, GetApiV2OrdersIdOrderItemsCountParams, GetApiV2OrdersIdOrderItemsInventoryInfoParams, GetApiV2OrdersIdOrderItemsParams, GetApiV2OrdersIdPackagesCountParams, GetApiV2OrdersIdPackagesParams, GetApiV2OrdersIdShippingDocumentsParams, GetApiV2OrdersIdSuggestedItemsParams, GetApiV2OrdersIdTraitsParams, GetApiV2OrdersParams, PostApiV21OrdersBulkRequest, PostApiV21OrdersIdIncidentsRequest, PostApiV21OrdersIdMessagesRequest, PostApiV21OrdersIdOrderDocumentsRequest, PostApiV21OrdersIdOrderItemsRequest, PostApiV21OrdersIdPackagesRequest, PostApiV21OrdersIdRuleDismissalsRequest, PostApiV21OrdersRequest, PostApiV2OrdersBulkRequest, PostApiV2OrdersIdIncidentsRequest, PostApiV2OrdersIdMessagesRequest, PostApiV2OrdersIdOrderDocumentsRequest, PostApiV2OrdersIdOrderItemsRequest, PostApiV2OrdersIdPackagesRequest, PostApiV2OrdersIdRuleDismissalsRequest, PostApiV2OrdersRequest, PutApiV21OrdersIdCallActionRequest, PutApiV21OrdersIdCallAsyncActionRequest, PutApiV21OrdersIdCustomsInfoRequest, PutApiV21OrdersIdMetaFieldsRequest, PutApiV21OrdersIdRequest, PutApiV21OrdersIdWholesaleRequest, PutApiV2OrdersIdCallActionRequest, PutApiV2OrdersIdCallAsyncActionRequest, PutApiV2OrdersIdCustomsInfoRequest, PutApiV2OrdersIdMetaFieldsRequest, PutApiV2OrdersIdRequest, PutApiV2OrdersIdWholesaleRequest } from "./data-contracts";
|
|
2
2
|
import { HttpClient, RequestParams } from "./http-client";
|
|
3
3
|
/**
|
|
4
4
|
* @description Retrieves a list of orders
|
|
@@ -315,6 +315,15 @@ export declare const postApiV2OrdersIdOrderItems: (client: HttpClient, id: numbe
|
|
|
315
315
|
* @request GET:/api/v2/orders/{id}/order_items/count
|
|
316
316
|
*/
|
|
317
317
|
export declare const getApiV2OrdersIdOrderItemsCount: (client: HttpClient, { id, ...query }: GetApiV2OrdersIdOrderItemsCountParams, params?: RequestParams) => Promise<ApiV2EntitiesCount>;
|
|
318
|
+
/**
|
|
319
|
+
* @description Get inventory info for a list of order items
|
|
320
|
+
*
|
|
321
|
+
* @tags orders
|
|
322
|
+
* @name GetApiV2OrdersIdOrderItemsInventoryInfo
|
|
323
|
+
* @summary List inventory info for order items
|
|
324
|
+
* @request GET:/api/v2/orders/{id}/order_items_inventory_info
|
|
325
|
+
*/
|
|
326
|
+
export declare const getApiV2OrdersIdOrderItemsInventoryInfo: (client: HttpClient, { id, ...query }: GetApiV2OrdersIdOrderItemsInventoryInfoParams, params?: RequestParams) => Promise<ApiV2EntitiesOrderItemInventoryInfo[]>;
|
|
318
327
|
/**
|
|
319
328
|
* @description Get the originator for a(n) Item
|
|
320
329
|
*
|
|
@@ -774,6 +783,15 @@ export declare const postApiV21OrdersIdOrderItems: (client: HttpClient, id: numb
|
|
|
774
783
|
* @request GET:/api/v2.1/orders/{id}/order_items/count
|
|
775
784
|
*/
|
|
776
785
|
export declare const getApiV21OrdersIdOrderItemsCount: (client: HttpClient, { id, ...query }: GetApiV21OrdersIdOrderItemsCountParams, params?: RequestParams) => Promise<ApiV21EntitiesCount>;
|
|
786
|
+
/**
|
|
787
|
+
* @description Get inventory info for a list of order items
|
|
788
|
+
*
|
|
789
|
+
* @tags orders
|
|
790
|
+
* @name GetApiV21OrdersIdOrderItemsInventoryInfo
|
|
791
|
+
* @summary List inventory info for order items
|
|
792
|
+
* @request GET:/api/v2.1/orders/{id}/order_items_inventory_info
|
|
793
|
+
*/
|
|
794
|
+
export declare const getApiV21OrdersIdOrderItemsInventoryInfo: (client: HttpClient, { id, ...query }: GetApiV21OrdersIdOrderItemsInventoryInfoParams, params?: RequestParams) => Promise<ApiV21EntitiesOrderItemInventoryInfo[]>;
|
|
777
795
|
/**
|
|
778
796
|
* @description Get the originator for a(n) Item
|
|
779
797
|
*
|
|
@@ -3439,6 +3439,27 @@ export interface ApiV2EntitiesOrderItem {
|
|
|
3439
3439
|
wholesale_item?: ApiV2EntitiesWholesaleItem;
|
|
3440
3440
|
}
|
|
3441
3441
|
/** V2 */
|
|
3442
|
+
export interface ApiV2EntitiesOrderItemInventoryInfo {
|
|
3443
|
+
/** does backstock quantity exceeds the order item quantity */
|
|
3444
|
+
backstock_available?: boolean;
|
|
3445
|
+
/** does the order_item belong to a multi-warehouse customer and have inventory in another warehouse */
|
|
3446
|
+
has_inventory_in_other_warehouses?: boolean;
|
|
3447
|
+
/**
|
|
3448
|
+
* The order item ID
|
|
3449
|
+
* @format int32
|
|
3450
|
+
*/
|
|
3451
|
+
id?: number;
|
|
3452
|
+
/** is pickable quantity less than the order item quantity */
|
|
3453
|
+
insufficient_inventory?: boolean;
|
|
3454
|
+
/**
|
|
3455
|
+
* The item ID
|
|
3456
|
+
* @format int32
|
|
3457
|
+
*/
|
|
3458
|
+
item_id?: number;
|
|
3459
|
+
/** does the item have negative total inventory */
|
|
3460
|
+
negative_inventory?: boolean;
|
|
3461
|
+
}
|
|
3462
|
+
/** V2 */
|
|
3442
3463
|
export interface ApiV2EntitiesOrderItemLotMap {
|
|
3443
3464
|
/** is this item available? */
|
|
3444
3465
|
available?: boolean;
|
|
@@ -8559,6 +8580,27 @@ export interface ApiV21EntitiesOrderItem {
|
|
|
8559
8580
|
wholesale_item?: ApiV21EntitiesWholesaleItem;
|
|
8560
8581
|
}
|
|
8561
8582
|
/** V3 */
|
|
8583
|
+
export interface ApiV21EntitiesOrderItemInventoryInfo {
|
|
8584
|
+
/** does backstock quantity exceeds the order item quantity */
|
|
8585
|
+
backstock_available?: boolean;
|
|
8586
|
+
/** does the order_item belong to a multi-warehouse customer and have inventory in another warehouse */
|
|
8587
|
+
has_inventory_in_other_warehouses?: boolean;
|
|
8588
|
+
/**
|
|
8589
|
+
* The order item ID
|
|
8590
|
+
* @format int32
|
|
8591
|
+
*/
|
|
8592
|
+
id?: number;
|
|
8593
|
+
/** is pickable quantity less than the order item quantity */
|
|
8594
|
+
insufficient_inventory?: boolean;
|
|
8595
|
+
/**
|
|
8596
|
+
* The item ID
|
|
8597
|
+
* @format int32
|
|
8598
|
+
*/
|
|
8599
|
+
item_id?: number;
|
|
8600
|
+
/** does the item have negative total inventory */
|
|
8601
|
+
negative_inventory?: boolean;
|
|
8602
|
+
}
|
|
8603
|
+
/** V3 */
|
|
8562
8604
|
export interface ApiV21EntitiesOrderItemLotMap {
|
|
8563
8605
|
/** is this item available? */
|
|
8564
8606
|
available?: boolean;
|
|
@@ -12425,6 +12467,25 @@ export interface GetApiV21OrdersIdOrderItemsCountParams {
|
|
|
12425
12467
|
search?: string;
|
|
12426
12468
|
id: number;
|
|
12427
12469
|
}
|
|
12470
|
+
export interface GetApiV21OrdersIdOrderItemsInventoryInfoParams {
|
|
12471
|
+
/** List of order item IDs */
|
|
12472
|
+
order_item_ids?: number[];
|
|
12473
|
+
/**
|
|
12474
|
+
* Page of results to fetch
|
|
12475
|
+
* @format int32
|
|
12476
|
+
*/
|
|
12477
|
+
page?: number;
|
|
12478
|
+
/**
|
|
12479
|
+
* Number of results to return per page
|
|
12480
|
+
* @format int32
|
|
12481
|
+
*/
|
|
12482
|
+
per_page?: number;
|
|
12483
|
+
/** Include total count of results */
|
|
12484
|
+
page_total?: boolean;
|
|
12485
|
+
/** Include prev/next links in response headers */
|
|
12486
|
+
page_links?: boolean;
|
|
12487
|
+
id: number;
|
|
12488
|
+
}
|
|
12428
12489
|
export interface GetApiV21OrdersIdOrderItemsParams {
|
|
12429
12490
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
12430
12491
|
search?: string;
|
|
@@ -15273,6 +15334,25 @@ export interface GetApiV2OrdersIdOrderItemsCountParams {
|
|
|
15273
15334
|
search?: string;
|
|
15274
15335
|
id: number;
|
|
15275
15336
|
}
|
|
15337
|
+
export interface GetApiV2OrdersIdOrderItemsInventoryInfoParams {
|
|
15338
|
+
/** List of order item IDs */
|
|
15339
|
+
order_item_ids?: number[];
|
|
15340
|
+
/**
|
|
15341
|
+
* Page of results to fetch
|
|
15342
|
+
* @format int32
|
|
15343
|
+
*/
|
|
15344
|
+
page?: number;
|
|
15345
|
+
/**
|
|
15346
|
+
* Number of results to return per page
|
|
15347
|
+
* @format int32
|
|
15348
|
+
*/
|
|
15349
|
+
per_page?: number;
|
|
15350
|
+
/** Include total count of results */
|
|
15351
|
+
page_total?: boolean;
|
|
15352
|
+
/** Include prev/next links in response headers */
|
|
15353
|
+
page_links?: boolean;
|
|
15354
|
+
id: number;
|
|
15355
|
+
}
|
|
15276
15356
|
export interface GetApiV2OrdersIdOrderItemsParams {
|
|
15277
15357
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
15278
15358
|
search?: string;
|