@whiplashmerch/whiplash-api-client 3.2.39 → 3.2.41
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/dist/client.esm.js +179 -1
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/Orders.d.ts +37 -1
- package/dist/generated/PackageLabelReferences.d.ts +56 -0
- package/dist/generated/data-contracts.d.ts +154 -18
- package/dist/generated/index.d.ts +1 -0
- package/dist/mock-data/index.d.ts +1 -0
- package/dist/mock-data/v2_1/package-label-reference/created.d.ts +1 -0
- package/generated/Orders.ts +82 -0
- package/generated/PackageLabelReferences.ts +127 -0
- package/generated/data-contracts.ts +160 -18
- package/generated/index.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
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, GetApiV21OrdersIdPackingRulesCountParams, GetApiV21OrdersIdPackingRulesParams, GetApiV21OrdersIdShippingDocumentsParams, GetApiV21OrdersIdTraitsParams, GetApiV21OrdersParams, GetApiV2OrdersAggregateParams, GetApiV2OrdersCountParams, GetApiV2OrdersIdCallTraitParams, GetApiV2OrdersIdEventsCountParams, GetApiV2OrdersIdEventsParams, GetApiV2OrdersIdIncidentsCountParams, GetApiV2OrdersIdIncidentsParams, GetApiV2OrdersIdMessagesCountParams, GetApiV2OrdersIdMessagesParams, GetApiV2OrdersIdMetaFieldsParams, GetApiV2OrdersIdOrderDocumentsCountParams, GetApiV2OrdersIdOrderDocumentsParams, GetApiV2OrdersIdOrderItemsCountParams, GetApiV2OrdersIdOrderItemsInventoryInfoParams, GetApiV2OrdersIdOrderItemsParams, GetApiV2OrdersIdPackagesCountParams, GetApiV2OrdersIdPackagesParams, GetApiV2OrdersIdPackingRulesCountParams, GetApiV2OrdersIdPackingRulesParams, GetApiV2OrdersIdShippingDocumentsParams, 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, ApiV21EntitiesPackageLabelReference, ApiV21EntitiesPackingRule, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesRuleDismissal, ApiV21EntitiesSerialNumber, ApiV21EntitiesShippingDocument, ApiV21EntitiesShippingRate, ApiV21EntitiesWholesale, ApiV2EntitiesCount, ApiV2EntitiesCustomsInfo, ApiV2EntitiesIncident, ApiV2EntitiesListValue, ApiV2EntitiesMessage, ApiV2EntitiesOrder, ApiV2EntitiesOrderDocument, ApiV2EntitiesOrderEvent, ApiV2EntitiesOrderItem, ApiV2EntitiesOrderItemInventoryInfo, ApiV2EntitiesOrderItemLotMap, ApiV2EntitiesOrderMetadata, ApiV2EntitiesOriginator, ApiV2EntitiesPackage, ApiV2EntitiesPackageLabelReference, ApiV2EntitiesPackingRule, ApiV2EntitiesResult, ApiV2EntitiesRuleDismissal, ApiV2EntitiesSerialNumber, ApiV2EntitiesShippingDocument, ApiV2EntitiesShippingRate, ApiV2EntitiesWholesale, GetApiV21OrdersAggregateParams, GetApiV21OrdersCountParams, GetApiV21OrdersIdCallTraitParams, GetApiV21OrdersIdEventsCountParams, GetApiV21OrdersIdEventsParams, GetApiV21OrdersIdIncidentsCountParams, GetApiV21OrdersIdIncidentsParams, GetApiV21OrdersIdMessagesCountParams, GetApiV21OrdersIdMessagesParams, GetApiV21OrdersIdMetaFieldsParams, GetApiV21OrdersIdOrderDocumentsCountParams, GetApiV21OrdersIdOrderDocumentsParams, GetApiV21OrdersIdOrderItemsCountParams, GetApiV21OrdersIdOrderItemsInventoryInfoParams, GetApiV21OrdersIdOrderItemsParams, GetApiV21OrdersIdPackagesCountParams, GetApiV21OrdersIdPackagesParams, GetApiV21OrdersIdPackingRulesCountParams, GetApiV21OrdersIdPackingRulesParams, GetApiV21OrdersIdShippingDocumentsParams, GetApiV21OrdersIdTraitsParams, GetApiV21OrdersParams, GetApiV2OrdersAggregateParams, GetApiV2OrdersCountParams, GetApiV2OrdersIdCallTraitParams, GetApiV2OrdersIdEventsCountParams, GetApiV2OrdersIdEventsParams, GetApiV2OrdersIdIncidentsCountParams, GetApiV2OrdersIdIncidentsParams, GetApiV2OrdersIdMessagesCountParams, GetApiV2OrdersIdMessagesParams, GetApiV2OrdersIdMetaFieldsParams, GetApiV2OrdersIdOrderDocumentsCountParams, GetApiV2OrdersIdOrderDocumentsParams, GetApiV2OrdersIdOrderItemsCountParams, GetApiV2OrdersIdOrderItemsInventoryInfoParams, GetApiV2OrdersIdOrderItemsParams, GetApiV2OrdersIdPackagesCountParams, GetApiV2OrdersIdPackagesParams, GetApiV2OrdersIdPackingRulesCountParams, GetApiV2OrdersIdPackingRulesParams, GetApiV2OrdersIdShippingDocumentsParams, GetApiV2OrdersIdTraitsParams, GetApiV2OrdersParams, PostApiV21OrdersBulkRequest, PostApiV21OrdersIdIncidentsRequest, PostApiV21OrdersIdMessagesRequest, PostApiV21OrdersIdOrderDocumentsRequest, PostApiV21OrdersIdOrderItemsRequest, PostApiV21OrdersIdPackageLabelReferenceRequest, PostApiV21OrdersIdPackagesRequest, PostApiV21OrdersIdRuleDismissalsRequest, PostApiV21OrdersRequest, PostApiV2OrdersBulkRequest, PostApiV2OrdersIdIncidentsRequest, PostApiV2OrdersIdMessagesRequest, PostApiV2OrdersIdOrderDocumentsRequest, PostApiV2OrdersIdOrderItemsRequest, PostApiV2OrdersIdPackageLabelReferenceRequest, 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
|
|
@@ -333,6 +333,24 @@ export declare const getApiV2OrdersIdOrderItemsInventoryInfo: (client: HttpClien
|
|
|
333
333
|
* @request GET:/api/v2/orders/{id}/originator
|
|
334
334
|
*/
|
|
335
335
|
export declare const getApiV2OrdersIdOriginator: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesOriginator>;
|
|
336
|
+
/**
|
|
337
|
+
* @description Retrieve the package label reference for an order
|
|
338
|
+
*
|
|
339
|
+
* @tags orders
|
|
340
|
+
* @name GetApiV2OrdersIdPackageLabelReference
|
|
341
|
+
* @summary Retrieve package label reference
|
|
342
|
+
* @request GET:/api/v2/orders/{id}/package_label_reference
|
|
343
|
+
*/
|
|
344
|
+
export declare const getApiV2OrdersIdPackageLabelReference: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesPackageLabelReference>;
|
|
345
|
+
/**
|
|
346
|
+
* @description Create a package label reference for an order
|
|
347
|
+
*
|
|
348
|
+
* @tags orders
|
|
349
|
+
* @name PostApiV2OrdersIdPackageLabelReference
|
|
350
|
+
* @summary Create a package label reference
|
|
351
|
+
* @request POST:/api/v2/orders/{id}/package_label_reference
|
|
352
|
+
*/
|
|
353
|
+
export declare const postApiV2OrdersIdPackageLabelReference: (client: HttpClient, id: number, data: PostApiV2OrdersIdPackageLabelReferenceRequest, params?: RequestParams) => Promise<ApiV2EntitiesPackageLabelReference>;
|
|
336
354
|
/**
|
|
337
355
|
* @description Get all packages for an order
|
|
338
356
|
*
|
|
@@ -810,6 +828,24 @@ export declare const getApiV21OrdersIdOrderItemsInventoryInfo: (client: HttpClie
|
|
|
810
828
|
* @request GET:/api/v2.1/orders/{id}/originator
|
|
811
829
|
*/
|
|
812
830
|
export declare const getApiV21OrdersIdOriginator: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesOriginator>;
|
|
831
|
+
/**
|
|
832
|
+
* @description Retrieve the package label reference for an order
|
|
833
|
+
*
|
|
834
|
+
* @tags orders
|
|
835
|
+
* @name GetApiV21OrdersIdPackageLabelReference
|
|
836
|
+
* @summary Retrieve package label reference
|
|
837
|
+
* @request GET:/api/v2.1/orders/{id}/package_label_reference
|
|
838
|
+
*/
|
|
839
|
+
export declare const getApiV21OrdersIdPackageLabelReference: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesPackageLabelReference>;
|
|
840
|
+
/**
|
|
841
|
+
* @description Create a package label reference for an order
|
|
842
|
+
*
|
|
843
|
+
* @tags orders
|
|
844
|
+
* @name PostApiV21OrdersIdPackageLabelReference
|
|
845
|
+
* @summary Create a package label reference
|
|
846
|
+
* @request POST:/api/v2.1/orders/{id}/package_label_reference
|
|
847
|
+
*/
|
|
848
|
+
export declare const postApiV21OrdersIdPackageLabelReference: (client: HttpClient, id: number, data: PostApiV21OrdersIdPackageLabelReferenceRequest, params?: RequestParams) => Promise<ApiV21EntitiesPostResponse>;
|
|
813
849
|
/**
|
|
814
850
|
* @description Get all packages for an order
|
|
815
851
|
*
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ApiV21EntitiesPackageLabelReference, ApiV2EntitiesPackageLabelReference, PutApiV21PackageLabelReferencesIdRequest, PutApiV2PackageLabelReferencesIdRequest } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
/**
|
|
4
|
+
* @description Retrieve a package label reference
|
|
5
|
+
*
|
|
6
|
+
* @tags package_label_references
|
|
7
|
+
* @name GetApiV2PackageLabelReferencesId
|
|
8
|
+
* @summary Retrieve a package label reference
|
|
9
|
+
* @request GET:/api/v2/package_label_references/{id}
|
|
10
|
+
*/
|
|
11
|
+
export declare const getApiV2PackageLabelReferencesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesPackageLabelReference>;
|
|
12
|
+
/**
|
|
13
|
+
* @description Update a package label reference
|
|
14
|
+
*
|
|
15
|
+
* @tags package_label_references
|
|
16
|
+
* @name PutApiV2PackageLabelReferencesId
|
|
17
|
+
* @summary Update a package label reference
|
|
18
|
+
* @request PUT:/api/v2/package_label_references/{id}
|
|
19
|
+
*/
|
|
20
|
+
export declare const putApiV2PackageLabelReferencesId: (client: HttpClient, id: number, data: PutApiV2PackageLabelReferencesIdRequest, params?: RequestParams) => Promise<ApiV2EntitiesPackageLabelReference>;
|
|
21
|
+
/**
|
|
22
|
+
* @description Destroy a package label reference
|
|
23
|
+
*
|
|
24
|
+
* @tags package_label_references
|
|
25
|
+
* @name DeleteApiV2PackageLabelReferencesId
|
|
26
|
+
* @summary Destroy a package label reference
|
|
27
|
+
* @request DELETE:/api/v2/package_label_references/{id}
|
|
28
|
+
*/
|
|
29
|
+
export declare const deleteApiV2PackageLabelReferencesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* @description Retrieve a package label reference
|
|
32
|
+
*
|
|
33
|
+
* @tags package_label_references
|
|
34
|
+
* @name GetApiV21PackageLabelReferencesId
|
|
35
|
+
* @summary Retrieve a package label reference
|
|
36
|
+
* @request GET:/api/v2.1/package_label_references/{id}
|
|
37
|
+
*/
|
|
38
|
+
export declare const getApiV21PackageLabelReferencesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesPackageLabelReference>;
|
|
39
|
+
/**
|
|
40
|
+
* @description Update a package label reference
|
|
41
|
+
*
|
|
42
|
+
* @tags package_label_references
|
|
43
|
+
* @name PutApiV21PackageLabelReferencesId
|
|
44
|
+
* @summary Update a package label reference
|
|
45
|
+
* @request PUT:/api/v2.1/package_label_references/{id}
|
|
46
|
+
*/
|
|
47
|
+
export declare const putApiV21PackageLabelReferencesId: (client: HttpClient, id: number, data: PutApiV21PackageLabelReferencesIdRequest, params?: RequestParams) => Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* @description Destroy a package label reference
|
|
50
|
+
*
|
|
51
|
+
* @tags package_label_references
|
|
52
|
+
* @name DeleteApiV21PackageLabelReferencesId
|
|
53
|
+
* @summary Destroy a package label reference
|
|
54
|
+
* @request DELETE:/api/v2.1/package_label_references/{id}
|
|
55
|
+
*/
|
|
56
|
+
export declare const deleteApiV21PackageLabelReferencesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
|
|
@@ -2841,6 +2841,7 @@ export interface ApiV2EntitiesOrder {
|
|
|
2841
2841
|
* Note: this field has a limit of 35 chars.
|
|
2842
2842
|
*/
|
|
2843
2843
|
package_label_reference?: string | null;
|
|
2844
|
+
package_label_reference_record?: ApiV2EntitiesPackageLabelReference;
|
|
2844
2845
|
packages?: ApiV2EntitiesPackage[];
|
|
2845
2846
|
/** url for this orders packing slip */
|
|
2846
2847
|
packingslip_pdf_url?: string | null;
|
|
@@ -3779,6 +3780,29 @@ export interface ApiV2EntitiesPackage {
|
|
|
3779
3780
|
updated_at?: string | null;
|
|
3780
3781
|
}
|
|
3781
3782
|
/** V2 */
|
|
3783
|
+
export interface ApiV2EntitiesPackageLabelReference {
|
|
3784
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
3785
|
+
reference_identifier_2?: string | null;
|
|
3786
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
3787
|
+
reference_identifier_3?: string | null;
|
|
3788
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
3789
|
+
reference_identifier_4?: string | null;
|
|
3790
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
3791
|
+
reference_identifier_5?: string | null;
|
|
3792
|
+
/**
|
|
3793
|
+
* the package label reference id
|
|
3794
|
+
* @format int32
|
|
3795
|
+
*/
|
|
3796
|
+
id?: number;
|
|
3797
|
+
/**
|
|
3798
|
+
* the package label reference order id
|
|
3799
|
+
* @format int32
|
|
3800
|
+
*/
|
|
3801
|
+
order_id?: number;
|
|
3802
|
+
/** the package label reference identifier (max 35 characters) */
|
|
3803
|
+
reference_identifier?: string | null;
|
|
3804
|
+
}
|
|
3805
|
+
/** V2 */
|
|
3782
3806
|
export interface ApiV2EntitiesPackingRule {
|
|
3783
3807
|
/** is the rule currently active? */
|
|
3784
3808
|
active?: boolean | null;
|
|
@@ -8057,12 +8081,12 @@ export interface ApiV21EntitiesOrder {
|
|
|
8057
8081
|
*/
|
|
8058
8082
|
order_batch_id?: number | null;
|
|
8059
8083
|
/**
|
|
8060
|
-
* number of
|
|
8084
|
+
* number of merch line items in this Order
|
|
8061
8085
|
* @format int32
|
|
8062
8086
|
*/
|
|
8063
8087
|
order_item_count?: number;
|
|
8064
8088
|
/**
|
|
8065
|
-
* total quantity
|
|
8089
|
+
* total quantity across the merch line items in this Order
|
|
8066
8090
|
* @format int32
|
|
8067
8091
|
*/
|
|
8068
8092
|
order_item_quantity?: number;
|
|
@@ -8079,6 +8103,7 @@ export interface ApiV21EntitiesOrder {
|
|
|
8079
8103
|
* Note: this field has a limit of 35 chars.
|
|
8080
8104
|
*/
|
|
8081
8105
|
package_label_reference?: string | null;
|
|
8106
|
+
package_label_reference_record?: ApiV21EntitiesPackageLabelReference;
|
|
8082
8107
|
/** url for this orders packing slip */
|
|
8083
8108
|
packingslip_pdf_url?: string | null;
|
|
8084
8109
|
/** the order payment type */
|
|
@@ -8991,6 +9016,29 @@ export interface ApiV21EntitiesPackage {
|
|
|
8991
9016
|
updated_at?: string | null;
|
|
8992
9017
|
}
|
|
8993
9018
|
/** V3 */
|
|
9019
|
+
export interface ApiV21EntitiesPackageLabelReference {
|
|
9020
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
9021
|
+
reference_identifier_2?: string | null;
|
|
9022
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
9023
|
+
reference_identifier_3?: string | null;
|
|
9024
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
9025
|
+
reference_identifier_4?: string | null;
|
|
9026
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
9027
|
+
reference_identifier_5?: string | null;
|
|
9028
|
+
/**
|
|
9029
|
+
* the package label reference id
|
|
9030
|
+
* @format int32
|
|
9031
|
+
*/
|
|
9032
|
+
id?: number;
|
|
9033
|
+
/**
|
|
9034
|
+
* the package label reference order id
|
|
9035
|
+
* @format int32
|
|
9036
|
+
*/
|
|
9037
|
+
order_id?: number;
|
|
9038
|
+
/** the package label reference identifier (max 35 characters) */
|
|
9039
|
+
reference_identifier?: string | null;
|
|
9040
|
+
}
|
|
9041
|
+
/** V3 */
|
|
8994
9042
|
export interface ApiV21EntitiesPackingRule {
|
|
8995
9043
|
/** is the rule currently active? */
|
|
8996
9044
|
active?: boolean | null;
|
|
@@ -18390,6 +18438,8 @@ export interface PostApiV21OrdersBulkRequest {
|
|
|
18390
18438
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
18391
18439
|
permissions_limited?: boolean;
|
|
18392
18440
|
order_items?: string;
|
|
18441
|
+
/** Full package label reference record. */
|
|
18442
|
+
package_label_reference_record?: string;
|
|
18393
18443
|
/** desired incoterm for the order */
|
|
18394
18444
|
incoterm?: PostApiV21OrdersBulkRequestIncoterm;
|
|
18395
18445
|
/**
|
|
@@ -18690,6 +18740,18 @@ export interface PostApiV21OrdersIdOrderItemsRequest {
|
|
|
18690
18740
|
ih_category?: string;
|
|
18691
18741
|
};
|
|
18692
18742
|
}
|
|
18743
|
+
export interface PostApiV21OrdersIdPackageLabelReferenceRequest {
|
|
18744
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
18745
|
+
reference_identifier_2?: string;
|
|
18746
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
18747
|
+
reference_identifier_3?: string;
|
|
18748
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
18749
|
+
reference_identifier_4?: string;
|
|
18750
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
18751
|
+
reference_identifier_5?: string;
|
|
18752
|
+
/** Reference identifier (max 35 characters) */
|
|
18753
|
+
reference_identifier?: string;
|
|
18754
|
+
}
|
|
18693
18755
|
export interface PostApiV21OrdersIdPackagesRequest {
|
|
18694
18756
|
/** the package dimensional weight (in ounces) */
|
|
18695
18757
|
actual_dimensional_weight?: string;
|
|
@@ -19021,11 +19083,20 @@ export interface PostApiV21OrdersRequest {
|
|
|
19021
19083
|
/** miscellaneous info for the originator */
|
|
19022
19084
|
misc?: string;
|
|
19023
19085
|
};
|
|
19024
|
-
/**
|
|
19025
|
-
* User-defined reference for shipping labels on packages.
|
|
19026
|
-
* Note: this field has a limit of 35 chars.
|
|
19027
|
-
*/
|
|
19086
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
19028
19087
|
package_label_reference?: string;
|
|
19088
|
+
package_label_reference_attributes?: {
|
|
19089
|
+
/** the package label reference identifier (max 35 characters) */
|
|
19090
|
+
reference_identifier?: string;
|
|
19091
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
19092
|
+
reference_identifier_2?: string;
|
|
19093
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
19094
|
+
reference_identifier_3?: string;
|
|
19095
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
19096
|
+
reference_identifier_4?: string;
|
|
19097
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
19098
|
+
reference_identifier_5?: string;
|
|
19099
|
+
};
|
|
19029
19100
|
/** the order payment type */
|
|
19030
19101
|
payment_type?: PostApiV21OrdersRequestPaymentType;
|
|
19031
19102
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
@@ -21898,6 +21969,8 @@ export interface PostApiV2OrdersBulkRequest {
|
|
|
21898
21969
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
21899
21970
|
permissions_limited?: boolean;
|
|
21900
21971
|
order_items?: string;
|
|
21972
|
+
/** Full package label reference record. */
|
|
21973
|
+
package_label_reference_record?: string;
|
|
21901
21974
|
/** desired incoterm for the order */
|
|
21902
21975
|
incoterm?: PostApiV2OrdersBulkRequestIncoterm;
|
|
21903
21976
|
/**
|
|
@@ -22198,6 +22271,18 @@ export interface PostApiV2OrdersIdOrderItemsRequest {
|
|
|
22198
22271
|
ih_category?: string;
|
|
22199
22272
|
};
|
|
22200
22273
|
}
|
|
22274
|
+
export interface PostApiV2OrdersIdPackageLabelReferenceRequest {
|
|
22275
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
22276
|
+
reference_identifier_2?: string;
|
|
22277
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
22278
|
+
reference_identifier_3?: string;
|
|
22279
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
22280
|
+
reference_identifier_4?: string;
|
|
22281
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
22282
|
+
reference_identifier_5?: string;
|
|
22283
|
+
/** Reference identifier (max 35 characters) */
|
|
22284
|
+
reference_identifier?: string;
|
|
22285
|
+
}
|
|
22201
22286
|
export interface PostApiV2OrdersIdPackagesRequest {
|
|
22202
22287
|
/** the package dimensional weight (in ounces) */
|
|
22203
22288
|
actual_dimensional_weight?: string;
|
|
@@ -22529,11 +22614,20 @@ export interface PostApiV2OrdersRequest {
|
|
|
22529
22614
|
/** miscellaneous info for the originator */
|
|
22530
22615
|
misc?: string;
|
|
22531
22616
|
};
|
|
22532
|
-
/**
|
|
22533
|
-
* User-defined reference for shipping labels on packages.
|
|
22534
|
-
* Note: this field has a limit of 35 chars.
|
|
22535
|
-
*/
|
|
22617
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
22536
22618
|
package_label_reference?: string;
|
|
22619
|
+
package_label_reference_attributes?: {
|
|
22620
|
+
/** the package label reference identifier (max 35 characters) */
|
|
22621
|
+
reference_identifier?: string;
|
|
22622
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
22623
|
+
reference_identifier_2?: string;
|
|
22624
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
22625
|
+
reference_identifier_3?: string;
|
|
22626
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
22627
|
+
reference_identifier_4?: string;
|
|
22628
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
22629
|
+
reference_identifier_5?: string;
|
|
22630
|
+
};
|
|
22537
22631
|
/** the order payment type */
|
|
22538
22632
|
payment_type?: PostApiV2OrdersRequestPaymentType;
|
|
22539
22633
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
@@ -25371,11 +25465,20 @@ export interface PutApiV21OrdersIdRequest {
|
|
|
25371
25465
|
order_orig?: string;
|
|
25372
25466
|
/** the order type */
|
|
25373
25467
|
order_type?: PutApiV21OrdersIdRequestOrderType;
|
|
25374
|
-
/**
|
|
25375
|
-
* User-defined reference for shipping labels on packages.
|
|
25376
|
-
* Note: this field has a limit of 35 chars.
|
|
25377
|
-
*/
|
|
25468
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
25378
25469
|
package_label_reference?: string;
|
|
25470
|
+
package_label_reference_attributes?: {
|
|
25471
|
+
/** the package label reference identifier (max 35 characters) */
|
|
25472
|
+
reference_identifier?: string;
|
|
25473
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
25474
|
+
reference_identifier_2?: string;
|
|
25475
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
25476
|
+
reference_identifier_3?: string;
|
|
25477
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
25478
|
+
reference_identifier_4?: string;
|
|
25479
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
25480
|
+
reference_identifier_5?: string;
|
|
25481
|
+
};
|
|
25379
25482
|
/** url for this orders packing slip */
|
|
25380
25483
|
packingslip_pdf_url?: string;
|
|
25381
25484
|
/** the order payment type */
|
|
@@ -25669,6 +25772,18 @@ export interface PutApiV21OriginatorsIdRequest {
|
|
|
25669
25772
|
*/
|
|
25670
25773
|
last_notified_at?: string;
|
|
25671
25774
|
}
|
|
25775
|
+
export interface PutApiV21PackageLabelReferencesIdRequest {
|
|
25776
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
25777
|
+
reference_identifier_2?: string;
|
|
25778
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
25779
|
+
reference_identifier_3?: string;
|
|
25780
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
25781
|
+
reference_identifier_4?: string;
|
|
25782
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
25783
|
+
reference_identifier_5?: string;
|
|
25784
|
+
/** Reference identifier (max 35 characters) */
|
|
25785
|
+
reference_identifier?: string;
|
|
25786
|
+
}
|
|
25672
25787
|
export interface PutApiV21PackagesIdCallActionRequest {
|
|
25673
25788
|
action?: string;
|
|
25674
25789
|
/** Method params */
|
|
@@ -28228,11 +28343,20 @@ export interface PutApiV2OrdersIdRequest {
|
|
|
28228
28343
|
order_orig?: string;
|
|
28229
28344
|
/** the order type */
|
|
28230
28345
|
order_type?: PutApiV2OrdersIdRequestOrderType;
|
|
28231
|
-
/**
|
|
28232
|
-
* User-defined reference for shipping labels on packages.
|
|
28233
|
-
* Note: this field has a limit of 35 chars.
|
|
28234
|
-
*/
|
|
28346
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
28235
28347
|
package_label_reference?: string;
|
|
28348
|
+
package_label_reference_attributes?: {
|
|
28349
|
+
/** the package label reference identifier (max 35 characters) */
|
|
28350
|
+
reference_identifier?: string;
|
|
28351
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
28352
|
+
reference_identifier_2?: string;
|
|
28353
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
28354
|
+
reference_identifier_3?: string;
|
|
28355
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
28356
|
+
reference_identifier_4?: string;
|
|
28357
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
28358
|
+
reference_identifier_5?: string;
|
|
28359
|
+
};
|
|
28236
28360
|
/** url for this orders packing slip */
|
|
28237
28361
|
packingslip_pdf_url?: string;
|
|
28238
28362
|
/** the order payment type */
|
|
@@ -28526,6 +28650,18 @@ export interface PutApiV2OriginatorsIdRequest {
|
|
|
28526
28650
|
*/
|
|
28527
28651
|
last_notified_at?: string;
|
|
28528
28652
|
}
|
|
28653
|
+
export interface PutApiV2PackageLabelReferencesIdRequest {
|
|
28654
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
28655
|
+
reference_identifier_2?: string;
|
|
28656
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
28657
|
+
reference_identifier_3?: string;
|
|
28658
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
28659
|
+
reference_identifier_4?: string;
|
|
28660
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
28661
|
+
reference_identifier_5?: string;
|
|
28662
|
+
/** Reference identifier (max 35 characters) */
|
|
28663
|
+
reference_identifier?: string;
|
|
28664
|
+
}
|
|
28529
28665
|
export interface PutApiV2PackagesIdCallActionRequest {
|
|
28530
28666
|
action?: string;
|
|
28531
28667
|
/** Method params */
|
|
@@ -45,6 +45,7 @@ export * from './OrderItems';
|
|
|
45
45
|
export * from './OrderTotes';
|
|
46
46
|
export * from './Orders';
|
|
47
47
|
export * from './Originators';
|
|
48
|
+
export * from './PackageLabelReferences';
|
|
48
49
|
export * from './Packages';
|
|
49
50
|
export * from './PalletLocations';
|
|
50
51
|
export * from './Pallets';
|
|
@@ -85,6 +85,7 @@ export * from './v2_1/item/single';
|
|
|
85
85
|
export * from './v2_1/order/processing';
|
|
86
86
|
export * from './v2_1/shipnotice/processing';
|
|
87
87
|
export * from './v2_1/originator/created';
|
|
88
|
+
export * from './v2_1/package-label-reference/created';
|
|
88
89
|
export * from './v2_1/package/created';
|
|
89
90
|
export * from './v2_1/pallet-location/created';
|
|
90
91
|
export * from './v2_1/pallet/created';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ApiV21PackageLabelReferenceCreatedExample = "{\"id\":123}";
|
package/generated/Orders.ts
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
ApiV21EntitiesOrderDocument,
|
|
19
19
|
ApiV21EntitiesOrderEvent,
|
|
20
20
|
ApiV21EntitiesOrderItem,
|
|
21
|
+
ApiV21EntitiesPackageLabelReference,
|
|
21
22
|
ApiV21EntitiesPackingRule,
|
|
22
23
|
ApiV21EntitiesPostResponse,
|
|
23
24
|
ApiV21EntitiesResult,
|
|
@@ -30,6 +31,7 @@ import {
|
|
|
30
31
|
ApiV2EntitiesOrderDocument,
|
|
31
32
|
ApiV2EntitiesOrderEvent,
|
|
32
33
|
ApiV2EntitiesOrderItem,
|
|
34
|
+
ApiV2EntitiesPackageLabelReference,
|
|
33
35
|
ApiV2EntitiesPackingRule,
|
|
34
36
|
ApiV2EntitiesResult,
|
|
35
37
|
ApiV2EntitiesSerialNumber,
|
|
@@ -62,10 +64,12 @@ import {
|
|
|
62
64
|
PostApiV21OrdersBulkRequest,
|
|
63
65
|
PostApiV21OrdersIdOrderDocumentsRequest,
|
|
64
66
|
PostApiV21OrdersIdOrderItemsRequest,
|
|
67
|
+
PostApiV21OrdersIdPackageLabelReferenceRequest,
|
|
65
68
|
PostApiV21OrdersRequest,
|
|
66
69
|
PostApiV2OrdersBulkRequest,
|
|
67
70
|
PostApiV2OrdersIdOrderDocumentsRequest,
|
|
68
71
|
PostApiV2OrdersIdOrderItemsRequest,
|
|
72
|
+
PostApiV2OrdersIdPackageLabelReferenceRequest,
|
|
69
73
|
PostApiV2OrdersRequest,
|
|
70
74
|
PutApiV21OrdersIdCallActionRequest,
|
|
71
75
|
PutApiV21OrdersIdMetaFieldsRequest,
|
|
@@ -463,6 +467,45 @@ export const getApiV2OrdersIdOrderItemsCount = (
|
|
|
463
467
|
...params,
|
|
464
468
|
});
|
|
465
469
|
};
|
|
470
|
+
/**
|
|
471
|
+
* @description Retrieve the package label reference for an order
|
|
472
|
+
*
|
|
473
|
+
* @tags orders
|
|
474
|
+
* @name GetApiV2OrdersIdPackageLabelReference
|
|
475
|
+
* @summary Retrieve package label reference
|
|
476
|
+
* @request GET:/api/v2/orders/{id}/package_label_reference
|
|
477
|
+
*/
|
|
478
|
+
export const getApiV2OrdersIdPackageLabelReference = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
479
|
+
return client.request<ApiV2EntitiesPackageLabelReference, ApiSharedEntitiesApiError>({
|
|
480
|
+
path: `/api/v2/orders/${id}/package_label_reference`,
|
|
481
|
+
method: "GET",
|
|
482
|
+
format: "json",
|
|
483
|
+
...params,
|
|
484
|
+
});
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* @description Create a package label reference for an order
|
|
488
|
+
*
|
|
489
|
+
* @tags orders
|
|
490
|
+
* @name PostApiV2OrdersIdPackageLabelReference
|
|
491
|
+
* @summary Create a package label reference
|
|
492
|
+
* @request POST:/api/v2/orders/{id}/package_label_reference
|
|
493
|
+
*/
|
|
494
|
+
export const postApiV2OrdersIdPackageLabelReference = (
|
|
495
|
+
client: HttpClient,
|
|
496
|
+
id: number,
|
|
497
|
+
data: PostApiV2OrdersIdPackageLabelReferenceRequest,
|
|
498
|
+
params: RequestParams = {},
|
|
499
|
+
) => {
|
|
500
|
+
return client.request<ApiV2EntitiesPackageLabelReference, ApiSharedEntitiesApiError>({
|
|
501
|
+
path: `/api/v2/orders/${id}/package_label_reference`,
|
|
502
|
+
method: "POST",
|
|
503
|
+
body: data,
|
|
504
|
+
type: ContentType.Json,
|
|
505
|
+
format: "json",
|
|
506
|
+
...params,
|
|
507
|
+
});
|
|
508
|
+
};
|
|
466
509
|
/**
|
|
467
510
|
* @description Get packing rules with suggested items
|
|
468
511
|
*
|
|
@@ -943,6 +986,45 @@ export const getApiV21OrdersIdOrderItemsCount = (
|
|
|
943
986
|
...params,
|
|
944
987
|
});
|
|
945
988
|
};
|
|
989
|
+
/**
|
|
990
|
+
* @description Retrieve the package label reference for an order
|
|
991
|
+
*
|
|
992
|
+
* @tags orders
|
|
993
|
+
* @name GetApiV21OrdersIdPackageLabelReference
|
|
994
|
+
* @summary Retrieve package label reference
|
|
995
|
+
* @request GET:/api/v2.1/orders/{id}/package_label_reference
|
|
996
|
+
*/
|
|
997
|
+
export const getApiV21OrdersIdPackageLabelReference = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
998
|
+
return client.request<ApiV21EntitiesPackageLabelReference, ApiSharedEntitiesApiError>({
|
|
999
|
+
path: `/api/v2.1/orders/${id}/package_label_reference`,
|
|
1000
|
+
method: "GET",
|
|
1001
|
+
format: "json",
|
|
1002
|
+
...params,
|
|
1003
|
+
});
|
|
1004
|
+
};
|
|
1005
|
+
/**
|
|
1006
|
+
* @description Create a package label reference for an order
|
|
1007
|
+
*
|
|
1008
|
+
* @tags orders
|
|
1009
|
+
* @name PostApiV21OrdersIdPackageLabelReference
|
|
1010
|
+
* @summary Create a package label reference
|
|
1011
|
+
* @request POST:/api/v2.1/orders/{id}/package_label_reference
|
|
1012
|
+
*/
|
|
1013
|
+
export const postApiV21OrdersIdPackageLabelReference = (
|
|
1014
|
+
client: HttpClient,
|
|
1015
|
+
id: number,
|
|
1016
|
+
data: PostApiV21OrdersIdPackageLabelReferenceRequest,
|
|
1017
|
+
params: RequestParams = {},
|
|
1018
|
+
) => {
|
|
1019
|
+
return client.request<ApiV21EntitiesPostResponse, ApiSharedEntitiesApiError>({
|
|
1020
|
+
path: `/api/v2.1/orders/${id}/package_label_reference`,
|
|
1021
|
+
method: "POST",
|
|
1022
|
+
body: data,
|
|
1023
|
+
type: ContentType.Json,
|
|
1024
|
+
format: "json",
|
|
1025
|
+
...params,
|
|
1026
|
+
});
|
|
1027
|
+
};
|
|
946
1028
|
/**
|
|
947
1029
|
* @description Get packing rules with suggested items
|
|
948
1030
|
*
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/*
|
|
4
|
+
* ---------------------------------------------------------------
|
|
5
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
6
|
+
* ## ##
|
|
7
|
+
* ## AUTHOR: acacode ##
|
|
8
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
9
|
+
* ---------------------------------------------------------------
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
ApiSharedEntitiesApiError,
|
|
14
|
+
ApiV21EntitiesPackageLabelReference,
|
|
15
|
+
ApiV2EntitiesPackageLabelReference,
|
|
16
|
+
PutApiV21PackageLabelReferencesIdRequest,
|
|
17
|
+
PutApiV2PackageLabelReferencesIdRequest,
|
|
18
|
+
} from "./data-contracts";
|
|
19
|
+
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @description Retrieve a package label reference
|
|
23
|
+
*
|
|
24
|
+
* @tags package_label_references
|
|
25
|
+
* @name GetApiV2PackageLabelReferencesId
|
|
26
|
+
* @summary Retrieve a package label reference
|
|
27
|
+
* @request GET:/api/v2/package_label_references/{id}
|
|
28
|
+
*/
|
|
29
|
+
export const getApiV2PackageLabelReferencesId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
30
|
+
return client.request<ApiV2EntitiesPackageLabelReference, ApiSharedEntitiesApiError>({
|
|
31
|
+
path: `/api/v2/package_label_references/${id}`,
|
|
32
|
+
method: "GET",
|
|
33
|
+
format: "json",
|
|
34
|
+
...params,
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @description Update a package label reference
|
|
39
|
+
*
|
|
40
|
+
* @tags package_label_references
|
|
41
|
+
* @name PutApiV2PackageLabelReferencesId
|
|
42
|
+
* @summary Update a package label reference
|
|
43
|
+
* @request PUT:/api/v2/package_label_references/{id}
|
|
44
|
+
*/
|
|
45
|
+
export const putApiV2PackageLabelReferencesId = (
|
|
46
|
+
client: HttpClient,
|
|
47
|
+
id: number,
|
|
48
|
+
data: PutApiV2PackageLabelReferencesIdRequest,
|
|
49
|
+
params: RequestParams = {},
|
|
50
|
+
) => {
|
|
51
|
+
return client.request<ApiV2EntitiesPackageLabelReference, ApiSharedEntitiesApiError>({
|
|
52
|
+
path: `/api/v2/package_label_references/${id}`,
|
|
53
|
+
method: "PUT",
|
|
54
|
+
body: data,
|
|
55
|
+
type: ContentType.Json,
|
|
56
|
+
format: "json",
|
|
57
|
+
...params,
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* @description Destroy a package label reference
|
|
62
|
+
*
|
|
63
|
+
* @tags package_label_references
|
|
64
|
+
* @name DeleteApiV2PackageLabelReferencesId
|
|
65
|
+
* @summary Destroy a package label reference
|
|
66
|
+
* @request DELETE:/api/v2/package_label_references/{id}
|
|
67
|
+
*/
|
|
68
|
+
export const deleteApiV2PackageLabelReferencesId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
69
|
+
return client.request<void, ApiSharedEntitiesApiError>({
|
|
70
|
+
path: `/api/v2/package_label_references/${id}`,
|
|
71
|
+
method: "DELETE",
|
|
72
|
+
...params,
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* @description Retrieve a package label reference
|
|
77
|
+
*
|
|
78
|
+
* @tags package_label_references
|
|
79
|
+
* @name GetApiV21PackageLabelReferencesId
|
|
80
|
+
* @summary Retrieve a package label reference
|
|
81
|
+
* @request GET:/api/v2.1/package_label_references/{id}
|
|
82
|
+
*/
|
|
83
|
+
export const getApiV21PackageLabelReferencesId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
84
|
+
return client.request<ApiV21EntitiesPackageLabelReference, ApiSharedEntitiesApiError>({
|
|
85
|
+
path: `/api/v2.1/package_label_references/${id}`,
|
|
86
|
+
method: "GET",
|
|
87
|
+
format: "json",
|
|
88
|
+
...params,
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @description Update a package label reference
|
|
93
|
+
*
|
|
94
|
+
* @tags package_label_references
|
|
95
|
+
* @name PutApiV21PackageLabelReferencesId
|
|
96
|
+
* @summary Update a package label reference
|
|
97
|
+
* @request PUT:/api/v2.1/package_label_references/{id}
|
|
98
|
+
*/
|
|
99
|
+
export const putApiV21PackageLabelReferencesId = (
|
|
100
|
+
client: HttpClient,
|
|
101
|
+
id: number,
|
|
102
|
+
data: PutApiV21PackageLabelReferencesIdRequest,
|
|
103
|
+
params: RequestParams = {},
|
|
104
|
+
) => {
|
|
105
|
+
return client.request<void, ApiSharedEntitiesApiError>({
|
|
106
|
+
path: `/api/v2.1/package_label_references/${id}`,
|
|
107
|
+
method: "PUT",
|
|
108
|
+
body: data,
|
|
109
|
+
type: ContentType.Json,
|
|
110
|
+
...params,
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* @description Destroy a package label reference
|
|
115
|
+
*
|
|
116
|
+
* @tags package_label_references
|
|
117
|
+
* @name DeleteApiV21PackageLabelReferencesId
|
|
118
|
+
* @summary Destroy a package label reference
|
|
119
|
+
* @request DELETE:/api/v2.1/package_label_references/{id}
|
|
120
|
+
*/
|
|
121
|
+
export const deleteApiV21PackageLabelReferencesId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
122
|
+
return client.request<void, ApiSharedEntitiesApiError>({
|
|
123
|
+
path: `/api/v2.1/package_label_references/${id}`,
|
|
124
|
+
method: "DELETE",
|
|
125
|
+
...params,
|
|
126
|
+
});
|
|
127
|
+
};
|