@whiplashmerch/whiplash-api-client 3.2.40 → 3.2.42

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.
@@ -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
+ };
@@ -1481,6 +1481,7 @@ export interface ApiV2EntitiesOrder {
1481
1481
  * Note: this field has a limit of 35 chars.
1482
1482
  */
1483
1483
  package_label_reference?: string | null;
1484
+ package_label_reference_record?: ApiV2EntitiesPackageLabelReference;
1484
1485
  packages?: ApiV2EntitiesPackage[];
1485
1486
  /** url for this orders packing slip */
1486
1487
  packingslip_pdf_url?: string | null;
@@ -1959,6 +1960,30 @@ export interface ApiV2EntitiesPackage {
1959
1960
  updated_at?: string | null;
1960
1961
  }
1961
1962
 
1963
+ /** V2 */
1964
+ export interface ApiV2EntitiesPackageLabelReference {
1965
+ /** the package label reference identifier 2 (max 35 characters) */
1966
+ reference_identifier_2?: string | null;
1967
+ /** the package label reference identifier 3 (max 35 characters) */
1968
+ reference_identifier_3?: string | null;
1969
+ /** the package label reference identifier 4 (max 35 characters) */
1970
+ reference_identifier_4?: string | null;
1971
+ /** the package label reference identifier 5 (max 35 characters) */
1972
+ reference_identifier_5?: string | null;
1973
+ /**
1974
+ * the package label reference id
1975
+ * @format int32
1976
+ */
1977
+ id?: number;
1978
+ /**
1979
+ * the package label reference order id
1980
+ * @format int32
1981
+ */
1982
+ order_id?: number;
1983
+ /** the package label reference identifier (max 35 characters) */
1984
+ reference_identifier?: string | null;
1985
+ }
1986
+
1962
1987
  /** V2 */
1963
1988
  export interface ApiV2EntitiesPackingRule {
1964
1989
  /** is the rule currently active? */
@@ -4186,6 +4211,7 @@ export interface ApiV21EntitiesOrder {
4186
4211
  * Note: this field has a limit of 35 chars.
4187
4212
  */
4188
4213
  package_label_reference?: string | null;
4214
+ package_label_reference_record?: ApiV21EntitiesPackageLabelReference;
4189
4215
  /** url for this orders packing slip */
4190
4216
  packingslip_pdf_url?: string | null;
4191
4217
  /** the order payment type */
@@ -4557,6 +4583,30 @@ export interface ApiV21EntitiesOriginator {
4557
4583
  updated_at?: string;
4558
4584
  }
4559
4585
 
4586
+ /** V3 */
4587
+ export interface ApiV21EntitiesPackageLabelReference {
4588
+ /** the package label reference identifier 2 (max 35 characters) */
4589
+ reference_identifier_2?: string | null;
4590
+ /** the package label reference identifier 3 (max 35 characters) */
4591
+ reference_identifier_3?: string | null;
4592
+ /** the package label reference identifier 4 (max 35 characters) */
4593
+ reference_identifier_4?: string | null;
4594
+ /** the package label reference identifier 5 (max 35 characters) */
4595
+ reference_identifier_5?: string | null;
4596
+ /**
4597
+ * the package label reference id
4598
+ * @format int32
4599
+ */
4600
+ id?: number;
4601
+ /**
4602
+ * the package label reference order id
4603
+ * @format int32
4604
+ */
4605
+ order_id?: number;
4606
+ /** the package label reference identifier (max 35 characters) */
4607
+ reference_identifier?: string | null;
4608
+ }
4609
+
4560
4610
  /** V3 */
4561
4611
  export interface ApiV21EntitiesPackingRule {
4562
4612
  /** is the rule currently active? */
@@ -5354,6 +5404,20 @@ export interface GetApiV21DocumentsParams {
5354
5404
  sort?: string;
5355
5405
  /** A comma separated list of tags to search on (ex: "account transaction,AccountExporters::Invoice"). */
5356
5406
  tagged_with?: string;
5407
+ /**
5408
+ * Page of results to fetch
5409
+ * @format int32
5410
+ */
5411
+ page?: number;
5412
+ /**
5413
+ * Number of results to return per page
5414
+ * @format int32
5415
+ */
5416
+ per_page?: number;
5417
+ /** Include total count of results */
5418
+ page_total?: boolean;
5419
+ /** Include prev/next links in response headers */
5420
+ page_links?: boolean;
5357
5421
  }
5358
5422
 
5359
5423
  export interface GetApiV21ItemsCountParams {
@@ -6076,6 +6140,20 @@ export interface GetApiV2DocumentsParams {
6076
6140
  sort?: string;
6077
6141
  /** A comma separated list of tags to search on (ex: "account transaction,AccountExporters::Invoice"). */
6078
6142
  tagged_with?: string;
6143
+ /**
6144
+ * Page of results to fetch
6145
+ * @format int32
6146
+ */
6147
+ page?: number;
6148
+ /**
6149
+ * Number of results to return per page
6150
+ * @format int32
6151
+ */
6152
+ per_page?: number;
6153
+ /** Include total count of results */
6154
+ page_total?: boolean;
6155
+ /** Include prev/next links in response headers */
6156
+ page_links?: boolean;
6079
6157
  }
6080
6158
 
6081
6159
  export interface GetApiV2ItemsCountParams {
@@ -7468,6 +7546,8 @@ export interface PostApiV21OrdersBulkRequest {
7468
7546
  /** Permission limited orders are not editable, but still may be processed/shipped */
7469
7547
  permissions_limited?: boolean;
7470
7548
  order_items?: string;
7549
+ /** Full package label reference record. */
7550
+ package_label_reference_record?: string;
7471
7551
  /** desired incoterm for the order */
7472
7552
  incoterm?: PostApiV21OrdersBulkRequestIncoterm;
7473
7553
  /**
@@ -7721,6 +7801,19 @@ export interface PostApiV21OrdersIdOrderItemsRequest {
7721
7801
  };
7722
7802
  }
7723
7803
 
7804
+ export interface PostApiV21OrdersIdPackageLabelReferenceRequest {
7805
+ /** Reference identifier 2 (max 35 characters) */
7806
+ reference_identifier_2?: string;
7807
+ /** Reference identifier 3 (max 35 characters) */
7808
+ reference_identifier_3?: string;
7809
+ /** Reference identifier 4 (max 35 characters) */
7810
+ reference_identifier_4?: string;
7811
+ /** Reference identifier 5 (max 35 characters) */
7812
+ reference_identifier_5?: string;
7813
+ /** Reference identifier (max 35 characters) */
7814
+ reference_identifier?: string;
7815
+ }
7816
+
7724
7817
  export interface PostApiV21OrdersRequest {
7725
7818
  /** the order billing street address 1 */
7726
7819
  billing_address_1?: string;
@@ -8016,11 +8109,20 @@ export interface PostApiV21OrdersRequest {
8016
8109
  /** miscellaneous info for the originator */
8017
8110
  misc?: string;
8018
8111
  };
8019
- /**
8020
- * User-defined reference for shipping labels on packages.
8021
- * Note: this field has a limit of 35 chars.
8022
- */
8112
+ /** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
8023
8113
  package_label_reference?: string;
8114
+ package_label_reference_attributes?: {
8115
+ /** the package label reference identifier (max 35 characters) */
8116
+ reference_identifier?: string;
8117
+ /** the package label reference identifier 2 (max 35 characters) */
8118
+ reference_identifier_2?: string;
8119
+ /** the package label reference identifier 3 (max 35 characters) */
8120
+ reference_identifier_3?: string;
8121
+ /** the package label reference identifier 4 (max 35 characters) */
8122
+ reference_identifier_4?: string;
8123
+ /** the package label reference identifier 5 (max 35 characters) */
8124
+ reference_identifier_5?: string;
8125
+ };
8024
8126
  /** the order payment type */
8025
8127
  payment_type?: PostApiV21OrdersRequestPaymentType;
8026
8128
  /** Permission limited orders are not editable, but still may be processed/shipped */
@@ -9388,6 +9490,8 @@ export interface PostApiV2OrdersBulkRequest {
9388
9490
  /** Permission limited orders are not editable, but still may be processed/shipped */
9389
9491
  permissions_limited?: boolean;
9390
9492
  order_items?: string;
9493
+ /** Full package label reference record. */
9494
+ package_label_reference_record?: string;
9391
9495
  /** desired incoterm for the order */
9392
9496
  incoterm?: PostApiV2OrdersBulkRequestIncoterm;
9393
9497
  /**
@@ -9641,6 +9745,19 @@ export interface PostApiV2OrdersIdOrderItemsRequest {
9641
9745
  };
9642
9746
  }
9643
9747
 
9748
+ export interface PostApiV2OrdersIdPackageLabelReferenceRequest {
9749
+ /** Reference identifier 2 (max 35 characters) */
9750
+ reference_identifier_2?: string;
9751
+ /** Reference identifier 3 (max 35 characters) */
9752
+ reference_identifier_3?: string;
9753
+ /** Reference identifier 4 (max 35 characters) */
9754
+ reference_identifier_4?: string;
9755
+ /** Reference identifier 5 (max 35 characters) */
9756
+ reference_identifier_5?: string;
9757
+ /** Reference identifier (max 35 characters) */
9758
+ reference_identifier?: string;
9759
+ }
9760
+
9644
9761
  export interface PostApiV2OrdersRequest {
9645
9762
  /** the order billing street address 1 */
9646
9763
  billing_address_1?: string;
@@ -9936,11 +10053,20 @@ export interface PostApiV2OrdersRequest {
9936
10053
  /** miscellaneous info for the originator */
9937
10054
  misc?: string;
9938
10055
  };
9939
- /**
9940
- * User-defined reference for shipping labels on packages.
9941
- * Note: this field has a limit of 35 chars.
9942
- */
10056
+ /** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
9943
10057
  package_label_reference?: string;
10058
+ package_label_reference_attributes?: {
10059
+ /** the package label reference identifier (max 35 characters) */
10060
+ reference_identifier?: string;
10061
+ /** the package label reference identifier 2 (max 35 characters) */
10062
+ reference_identifier_2?: string;
10063
+ /** the package label reference identifier 3 (max 35 characters) */
10064
+ reference_identifier_3?: string;
10065
+ /** the package label reference identifier 4 (max 35 characters) */
10066
+ reference_identifier_4?: string;
10067
+ /** the package label reference identifier 5 (max 35 characters) */
10068
+ reference_identifier_5?: string;
10069
+ };
9944
10070
  /** the order payment type */
9945
10071
  payment_type?: PostApiV2OrdersRequestPaymentType;
9946
10072
  /** Permission limited orders are not editable, but still may be processed/shipped */
@@ -11355,11 +11481,20 @@ export interface PutApiV21OrdersIdRequest {
11355
11481
  order_orig?: string;
11356
11482
  /** the order type */
11357
11483
  order_type?: PutApiV21OrdersIdRequestOrderType;
11358
- /**
11359
- * User-defined reference for shipping labels on packages.
11360
- * Note: this field has a limit of 35 chars.
11361
- */
11484
+ /** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
11362
11485
  package_label_reference?: string;
11486
+ package_label_reference_attributes?: {
11487
+ /** the package label reference identifier (max 35 characters) */
11488
+ reference_identifier?: string;
11489
+ /** the package label reference identifier 2 (max 35 characters) */
11490
+ reference_identifier_2?: string;
11491
+ /** the package label reference identifier 3 (max 35 characters) */
11492
+ reference_identifier_3?: string;
11493
+ /** the package label reference identifier 4 (max 35 characters) */
11494
+ reference_identifier_4?: string;
11495
+ /** the package label reference identifier 5 (max 35 characters) */
11496
+ reference_identifier_5?: string;
11497
+ };
11363
11498
  /** url for this orders packing slip */
11364
11499
  packingslip_pdf_url?: string;
11365
11500
  /** the order payment type */
@@ -11552,6 +11687,19 @@ export interface PutApiV21OrdersIdRequest {
11552
11687
  };
11553
11688
  }
11554
11689
 
11690
+ export interface PutApiV21PackageLabelReferencesIdRequest {
11691
+ /** Reference identifier 2 (max 35 characters) */
11692
+ reference_identifier_2?: string;
11693
+ /** Reference identifier 3 (max 35 characters) */
11694
+ reference_identifier_3?: string;
11695
+ /** Reference identifier 4 (max 35 characters) */
11696
+ reference_identifier_4?: string;
11697
+ /** Reference identifier 5 (max 35 characters) */
11698
+ reference_identifier_5?: string;
11699
+ /** Reference identifier (max 35 characters) */
11700
+ reference_identifier?: string;
11701
+ }
11702
+
11555
11703
  export interface PutApiV21ShipnoticeItemsIdMetaFieldsRequest {
11556
11704
  /** Included meta fields for associations */
11557
11705
  association_fields?: object;
@@ -12555,11 +12703,20 @@ export interface PutApiV2OrdersIdRequest {
12555
12703
  order_orig?: string;
12556
12704
  /** the order type */
12557
12705
  order_type?: PutApiV2OrdersIdRequestOrderType;
12558
- /**
12559
- * User-defined reference for shipping labels on packages.
12560
- * Note: this field has a limit of 35 chars.
12561
- */
12706
+ /** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
12562
12707
  package_label_reference?: string;
12708
+ package_label_reference_attributes?: {
12709
+ /** the package label reference identifier (max 35 characters) */
12710
+ reference_identifier?: string;
12711
+ /** the package label reference identifier 2 (max 35 characters) */
12712
+ reference_identifier_2?: string;
12713
+ /** the package label reference identifier 3 (max 35 characters) */
12714
+ reference_identifier_3?: string;
12715
+ /** the package label reference identifier 4 (max 35 characters) */
12716
+ reference_identifier_4?: string;
12717
+ /** the package label reference identifier 5 (max 35 characters) */
12718
+ reference_identifier_5?: string;
12719
+ };
12563
12720
  /** url for this orders packing slip */
12564
12721
  packingslip_pdf_url?: string;
12565
12722
  /** the order payment type */
@@ -12752,6 +12909,19 @@ export interface PutApiV2OrdersIdRequest {
12752
12909
  };
12753
12910
  }
12754
12911
 
12912
+ export interface PutApiV2PackageLabelReferencesIdRequest {
12913
+ /** Reference identifier 2 (max 35 characters) */
12914
+ reference_identifier_2?: string;
12915
+ /** Reference identifier 3 (max 35 characters) */
12916
+ reference_identifier_3?: string;
12917
+ /** Reference identifier 4 (max 35 characters) */
12918
+ reference_identifier_4?: string;
12919
+ /** Reference identifier 5 (max 35 characters) */
12920
+ reference_identifier_5?: string;
12921
+ /** Reference identifier (max 35 characters) */
12922
+ reference_identifier?: string;
12923
+ }
12924
+
12755
12925
  export interface PutApiV2ShipnoticeItemsIdMetaFieldsRequest {
12756
12926
  /** Included meta fields for associations */
12757
12927
  association_fields?: object;
@@ -11,6 +11,7 @@ export * from './OrderItems';
11
11
  export * from './OrderTotes';
12
12
  export * from './Orders';
13
13
  export * from './Originators';
14
+ export * from './PackageLabelReferences';
14
15
  export * from './Packages';
15
16
  export * from './Projects';
16
17
  export * from './Scancodes';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whiplashmerch/whiplash-api-client",
3
- "version": "3.2.40",
3
+ "version": "3.2.42",
4
4
  "description": "",
5
5
  "devDependencies": {},
6
6
  "scripts": {