@whiplashmerch/whiplash-api-client 3.2.6 → 3.2.8

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 { ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesScancode, ApiV2EntitiesScancode, GetApiV21ScancodesParams, GetApiV2ScancodesParams, PutApiV21ScancodesIdCallActionRequest, PutApiV21ScancodesIdCallAsyncActionRequest, PutApiV21ScancodesIdRequest, PutApiV2ScancodesIdCallActionRequest, PutApiV2ScancodesIdCallAsyncActionRequest, PutApiV2ScancodesIdRequest } from "./data-contracts";
1
+ import { ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesPostResponse, ApiV21EntitiesScancode, ApiV2EntitiesScancode, GetApiV21ScancodesParams, GetApiV2ScancodesParams, PostApiV21ScancodesRequest, PostApiV2ScancodesRequest, PutApiV21ScancodesIdCallActionRequest, PutApiV21ScancodesIdCallAsyncActionRequest, PutApiV21ScancodesIdRequest, PutApiV2ScancodesIdCallActionRequest, PutApiV2ScancodesIdCallAsyncActionRequest, PutApiV2ScancodesIdRequest } from "./data-contracts";
2
2
  import { HttpClient, RequestParams } from "./http-client";
3
3
  /**
4
4
  * @description Get all scancodes
@@ -9,6 +9,15 @@ import { HttpClient, RequestParams } from "./http-client";
9
9
  * @request GET:/api/v2/scancodes
10
10
  */
11
11
  export declare const getApiV2Scancodes: (client: HttpClient, query: GetApiV2ScancodesParams, params?: RequestParams) => Promise<ApiV2EntitiesScancode[]>;
12
+ /**
13
+ * @description Create a scancode
14
+ *
15
+ * @tags scancodes
16
+ * @name PostApiV2Scancodes
17
+ * @summary Create a scancode
18
+ * @request POST:/api/v2/scancodes
19
+ */
20
+ export declare const postApiV2Scancodes: (client: HttpClient, data: PostApiV2ScancodesRequest, params?: RequestParams) => Promise<ApiV2EntitiesScancode>;
12
21
  /**
13
22
  * @description Update a scancode
14
23
  *
@@ -45,6 +54,15 @@ export declare const putApiV2ScancodesIdCallAsyncAction: (client: HttpClient, ac
45
54
  * @request GET:/api/v2.1/scancodes
46
55
  */
47
56
  export declare const getApiV21Scancodes: (client: HttpClient, query: GetApiV21ScancodesParams, params?: RequestParams) => Promise<ApiV21EntitiesScancode[]>;
57
+ /**
58
+ * @description Create a scancode
59
+ *
60
+ * @tags scancodes
61
+ * @name PostApiV21Scancodes
62
+ * @summary Create a scancode
63
+ * @request POST:/api/v2.1/scancodes
64
+ */
65
+ export declare const postApiV21Scancodes: (client: HttpClient, data: PostApiV21ScancodesRequest, params?: RequestParams) => Promise<ApiV21EntitiesPostResponse>;
48
66
  /**
49
67
  * @description Update a scancode
50
68
  *
@@ -3795,6 +3795,8 @@ export interface ApiV2EntitiesPallet {
3795
3795
  * @format int32
3796
3796
  */
3797
3797
  total_package_count?: number | null;
3798
+ /** the total weight of the pallet */
3799
+ total_weight?: string | null;
3798
3800
  /**
3799
3801
  * the pallet last update date and time
3800
3802
  * @format date-time
@@ -8872,6 +8874,8 @@ export interface ApiV21EntitiesPallet {
8872
8874
  * @format int32
8873
8875
  */
8874
8876
  total_package_count?: number | null;
8877
+ /** the total weight of the pallet */
8878
+ total_weight?: string | null;
8875
8879
  /**
8876
8880
  * the pallet last update date and time
8877
8881
  * @format date-time
@@ -19141,6 +19145,15 @@ export interface PostApiV21RulesRequest {
19141
19145
  /** apply rule while Item to be added has inventory? */
19142
19146
  while_supplies_last?: boolean;
19143
19147
  }
19148
+ export interface PostApiV21ScancodesRequest {
19149
+ /**
19150
+ * the item_id
19151
+ * @format int32
19152
+ */
19153
+ item_id: number;
19154
+ /** the name for the scancode */
19155
+ name: string;
19156
+ }
19144
19157
  export interface PostApiV21ShipnoticeItemsIdTagsRequest {
19145
19158
  /** The tag type associated with this resource */
19146
19159
  tag_type?: string;
@@ -22629,6 +22642,15 @@ export interface PostApiV2RulesRequest {
22629
22642
  /** apply rule while Item to be added has inventory? */
22630
22643
  while_supplies_last?: boolean;
22631
22644
  }
22645
+ export interface PostApiV2ScancodesRequest {
22646
+ /**
22647
+ * the item_id
22648
+ * @format int32
22649
+ */
22650
+ item_id: number;
22651
+ /** the name for the scancode */
22652
+ name: string;
22653
+ }
22632
22654
  export interface PostApiV2ShipnoticeItemsIdTagsRequest {
22633
22655
  /** The tag type associated with this resource */
22634
22656
  tag_type?: string;
@@ -96,6 +96,7 @@ export * from './v2_1/count/created';
96
96
  export * from './v2_1/return-address/created';
97
97
  export * from './v2_1/rule-dismissal/created';
98
98
  export * from './v2_1/rule/created';
99
+ export * from './v2_1/scancode/created';
99
100
  export * from './v2_1/shipnotice-item/created';
100
101
  export * from './v2_1/shipnotice/all';
101
102
  export * from './v2_1/shipnotice/created';
@@ -0,0 +1 @@
1
+ export declare const ApiV21ScancodeCreatedExample = "{\"id\":123}";
@@ -0,0 +1,60 @@
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
+ ApiV21EntitiesPostResponse,
15
+ ApiV2EntitiesScancode,
16
+ PostApiV21ScancodesRequest,
17
+ PostApiV2ScancodesRequest,
18
+ } from "./data-contracts";
19
+ import { ContentType, HttpClient, RequestParams } from "./http-client";
20
+
21
+ /**
22
+ * @description Create a scancode
23
+ *
24
+ * @tags scancodes
25
+ * @name PostApiV2Scancodes
26
+ * @summary Create a scancode
27
+ * @request POST:/api/v2/scancodes
28
+ */
29
+ export const postApiV2Scancodes = (client: HttpClient, data: PostApiV2ScancodesRequest, params: RequestParams = {}) => {
30
+ return client.request<ApiV2EntitiesScancode, ApiSharedEntitiesApiError>({
31
+ path: `/api/v2/scancodes`,
32
+ method: "POST",
33
+ body: data,
34
+ type: ContentType.Json,
35
+ format: "json",
36
+ ...params,
37
+ });
38
+ };
39
+ /**
40
+ * @description Create a scancode
41
+ *
42
+ * @tags scancodes
43
+ * @name PostApiV21Scancodes
44
+ * @summary Create a scancode
45
+ * @request POST:/api/v2.1/scancodes
46
+ */
47
+ export const postApiV21Scancodes = (
48
+ client: HttpClient,
49
+ data: PostApiV21ScancodesRequest,
50
+ params: RequestParams = {},
51
+ ) => {
52
+ return client.request<ApiV21EntitiesPostResponse, ApiSharedEntitiesApiError>({
53
+ path: `/api/v2.1/scancodes`,
54
+ method: "POST",
55
+ body: data,
56
+ type: ContentType.Json,
57
+ format: "json",
58
+ ...params,
59
+ });
60
+ };
@@ -7902,6 +7902,16 @@ export interface PostApiV21OrdersRequest {
7902
7902
  };
7903
7903
  }
7904
7904
 
7905
+ export interface PostApiV21ScancodesRequest {
7906
+ /**
7907
+ * the item_id
7908
+ * @format int32
7909
+ */
7910
+ item_id: number;
7911
+ /** the name for the scancode */
7912
+ name: string;
7913
+ }
7914
+
7905
7915
  export interface PostApiV21ShipnoticesBulkRequest {
7906
7916
  /** An array of shipnotice objects to create in bulk */
7907
7917
  resources: {
@@ -9805,6 +9815,16 @@ export interface PostApiV2OrdersRequest {
9805
9815
  };
9806
9816
  }
9807
9817
 
9818
+ export interface PostApiV2ScancodesRequest {
9819
+ /**
9820
+ * the item_id
9821
+ * @format int32
9822
+ */
9823
+ item_id: number;
9824
+ /** the name for the scancode */
9825
+ name: string;
9826
+ }
9827
+
9808
9828
  export interface PostApiV2ShipnoticesBulkRequest {
9809
9829
  /** An array of shipnotice objects to create in bulk */
9810
9830
  resources: {
@@ -13,6 +13,7 @@ export * from './Orders';
13
13
  export * from './Originators';
14
14
  export * from './Packages';
15
15
  export * from './Projects';
16
+ export * from './Scancodes';
16
17
  export * from './ShipnoticeItems';
17
18
  export * from './Shipnotices';
18
19
  export * from './Simulate';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whiplashmerch/whiplash-api-client",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "description": "",
5
5
  "devDependencies": {},
6
6
  "scripts": {