@whiplashmerch/whiplash-api-client 3.2.7 → 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.
- package/dist/client.esm.js +39 -1
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/Scancodes.d.ts +19 -1
- package/dist/generated/data-contracts.d.ts +18 -0
- package/dist/mock-data/index.d.ts +1 -0
- package/dist/mock-data/v2_1/scancode/created.d.ts +1 -0
- package/generated/Scancodes.ts +60 -0
- package/generated/data-contracts.ts +20 -0
- package/generated/index.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
*
|
|
@@ -19145,6 +19145,15 @@ export interface PostApiV21RulesRequest {
|
|
|
19145
19145
|
/** apply rule while Item to be added has inventory? */
|
|
19146
19146
|
while_supplies_last?: boolean;
|
|
19147
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
|
+
}
|
|
19148
19157
|
export interface PostApiV21ShipnoticeItemsIdTagsRequest {
|
|
19149
19158
|
/** The tag type associated with this resource */
|
|
19150
19159
|
tag_type?: string;
|
|
@@ -22633,6 +22642,15 @@ export interface PostApiV2RulesRequest {
|
|
|
22633
22642
|
/** apply rule while Item to be added has inventory? */
|
|
22634
22643
|
while_supplies_last?: boolean;
|
|
22635
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
|
+
}
|
|
22636
22654
|
export interface PostApiV2ShipnoticeItemsIdTagsRequest {
|
|
22637
22655
|
/** The tag type associated with this resource */
|
|
22638
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: {
|
package/generated/index.ts
CHANGED