@whiplashmerch/whiplash-api-client 0.1.22 → 0.2.0
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 +38 -360
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/Items.d.ts +13 -13
- package/dist/generated/data-contracts.d.ts +80 -232
- package/dist/generated/index.d.ts +0 -4
- package/generated/Items.ts +29 -29
- package/generated/data-contracts.ts +82 -245
- package/generated/index.ts +0 -4
- package/package.json +1 -1
- package/dist/generated/MetaKeys.d.ts +0 -110
- package/dist/generated/Public.d.ts +0 -33
- package/dist/generated/ScancodeAliases.d.ts +0 -20
- package/dist/generated/Scancodes.d.ts +0 -11
- package/generated/MetaKeys.ts +0 -250
- package/generated/Public.ts +0 -69
- package/generated/ScancodeAliases.ts +0 -61
- package/generated/Scancodes.ts +0 -31
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { APIV21EntitiesPostResponse, APIV2EntitiesCount, APIV2EntitiesMetaKey, GetApiV21MetaKeysCountParams, GetApiV21MetaKeysParams, GetApiV2MetaKeysCountParams, GetApiV2MetaKeysParams, PostApiV21MetaKeys, PostApiV2MetaKeys, PutApiV21MetaKeys, PutApiV2MetaKeys } from "./data-contracts";
|
|
2
|
-
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
-
/**
|
|
4
|
-
* @description Create a meta_key
|
|
5
|
-
*
|
|
6
|
-
* @tags meta_keys
|
|
7
|
-
* @name PostApiV2MetaKeys
|
|
8
|
-
* @summary Create a meta_key
|
|
9
|
-
* @request POST:/api/v2/meta_keys
|
|
10
|
-
*/
|
|
11
|
-
export declare const postApiV2MetaKeys: (client: HttpClient, ApiV2MetaKeys: PostApiV2MetaKeys, params?: RequestParams) => Promise<APIV2EntitiesMetaKey>;
|
|
12
|
-
/**
|
|
13
|
-
* @description Get a list of meta_keys
|
|
14
|
-
*
|
|
15
|
-
* @tags meta_keys
|
|
16
|
-
* @name GetApiV2MetaKeys
|
|
17
|
-
* @summary List all meta keys
|
|
18
|
-
* @request GET:/api/v2/meta_keys
|
|
19
|
-
*/
|
|
20
|
-
export declare const getApiV2MetaKeys: (client: HttpClient, query: GetApiV2MetaKeysParams, params?: RequestParams) => Promise<APIV2EntitiesMetaKey[]>;
|
|
21
|
-
/**
|
|
22
|
-
* @description Returns count of meta_keys
|
|
23
|
-
*
|
|
24
|
-
* @tags meta_keys
|
|
25
|
-
* @name GetApiV2MetaKeysCount
|
|
26
|
-
* @summary Count meta keys
|
|
27
|
-
* @request GET:/api/v2/meta_keys/count
|
|
28
|
-
*/
|
|
29
|
-
export declare const getApiV2MetaKeysCount: (client: HttpClient, query: GetApiV2MetaKeysCountParams, params?: RequestParams) => Promise<APIV2EntitiesCount>;
|
|
30
|
-
/**
|
|
31
|
-
* @description Destroy a meta_key
|
|
32
|
-
*
|
|
33
|
-
* @tags meta_keys
|
|
34
|
-
* @name DeleteApiV2MetaKeysId
|
|
35
|
-
* @summary Delete a meta_key
|
|
36
|
-
* @request DELETE:/api/v2/meta_keys/{id}
|
|
37
|
-
*/
|
|
38
|
-
export declare const deleteApiV2MetaKeysId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* @description Update a meta_key
|
|
41
|
-
*
|
|
42
|
-
* @tags meta_keys
|
|
43
|
-
* @name PutApiV2MetaKeysId
|
|
44
|
-
* @summary Update a meta_key
|
|
45
|
-
* @request PUT:/api/v2/meta_keys/{id}
|
|
46
|
-
*/
|
|
47
|
-
export declare const putApiV2MetaKeysId: (client: HttpClient, id: number, ApiV2MetaKeys: PutApiV2MetaKeys, params?: RequestParams) => Promise<APIV2EntitiesMetaKey>;
|
|
48
|
-
/**
|
|
49
|
-
* @description Get a meta_key
|
|
50
|
-
*
|
|
51
|
-
* @tags meta_keys
|
|
52
|
-
* @name GetApiV2MetaKeysId
|
|
53
|
-
* @summary Retrieve a meta key
|
|
54
|
-
* @request GET:/api/v2/meta_keys/{id}
|
|
55
|
-
*/
|
|
56
|
-
export declare const getApiV2MetaKeysId: (client: HttpClient, id: number, params?: RequestParams) => Promise<APIV2EntitiesMetaKey>;
|
|
57
|
-
/**
|
|
58
|
-
* @description Create a meta_key
|
|
59
|
-
*
|
|
60
|
-
* @tags meta_keys
|
|
61
|
-
* @name PostApiV21MetaKeys
|
|
62
|
-
* @summary Create a meta_key
|
|
63
|
-
* @request POST:/api/v2.1/meta_keys
|
|
64
|
-
*/
|
|
65
|
-
export declare const postApiV21MetaKeys: (client: HttpClient, ApiV21MetaKeys: PostApiV21MetaKeys, params?: RequestParams) => Promise<APIV21EntitiesPostResponse>;
|
|
66
|
-
/**
|
|
67
|
-
* @description Get a list of meta_keys
|
|
68
|
-
*
|
|
69
|
-
* @tags meta_keys
|
|
70
|
-
* @name GetApiV21MetaKeys
|
|
71
|
-
* @summary List all meta keys
|
|
72
|
-
* @request GET:/api/v2.1/meta_keys
|
|
73
|
-
*/
|
|
74
|
-
export declare const getApiV21MetaKeys: (client: HttpClient, query: GetApiV21MetaKeysParams, params?: RequestParams) => Promise<APIV2EntitiesMetaKey[]>;
|
|
75
|
-
/**
|
|
76
|
-
* @description Returns count of meta_keys
|
|
77
|
-
*
|
|
78
|
-
* @tags meta_keys
|
|
79
|
-
* @name GetApiV21MetaKeysCount
|
|
80
|
-
* @summary Count meta keys
|
|
81
|
-
* @request GET:/api/v2.1/meta_keys/count
|
|
82
|
-
*/
|
|
83
|
-
export declare const getApiV21MetaKeysCount: (client: HttpClient, query: GetApiV21MetaKeysCountParams, params?: RequestParams) => Promise<APIV2EntitiesCount>;
|
|
84
|
-
/**
|
|
85
|
-
* @description Destroy a meta_key
|
|
86
|
-
*
|
|
87
|
-
* @tags meta_keys
|
|
88
|
-
* @name DeleteApiV21MetaKeysId
|
|
89
|
-
* @summary Delete a meta_key
|
|
90
|
-
* @request DELETE:/api/v2.1/meta_keys/{id}
|
|
91
|
-
*/
|
|
92
|
-
export declare const deleteApiV21MetaKeysId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
|
|
93
|
-
/**
|
|
94
|
-
* @description Update a meta_key
|
|
95
|
-
*
|
|
96
|
-
* @tags meta_keys
|
|
97
|
-
* @name PutApiV21MetaKeysId
|
|
98
|
-
* @summary Update a meta_key
|
|
99
|
-
* @request PUT:/api/v2.1/meta_keys/{id}
|
|
100
|
-
*/
|
|
101
|
-
export declare const putApiV21MetaKeysId: (client: HttpClient, id: number, ApiV21MetaKeys: PutApiV21MetaKeys, params?: RequestParams) => Promise<void>;
|
|
102
|
-
/**
|
|
103
|
-
* @description Get a meta_key
|
|
104
|
-
*
|
|
105
|
-
* @tags meta_keys
|
|
106
|
-
* @name GetApiV21MetaKeysId
|
|
107
|
-
* @summary Retrieve a meta key
|
|
108
|
-
* @request GET:/api/v2.1/meta_keys/{id}
|
|
109
|
-
*/
|
|
110
|
-
export declare const getApiV21MetaKeysId: (client: HttpClient, id: number, params?: RequestParams) => Promise<APIV2EntitiesMetaKey>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from "./http-client";
|
|
2
|
-
/**
|
|
3
|
-
* No description
|
|
4
|
-
*
|
|
5
|
-
* @tags public
|
|
6
|
-
* @name GetApiV2PublicStatus
|
|
7
|
-
* @request GET:/api/v2/public/status
|
|
8
|
-
*/
|
|
9
|
-
export declare const getApiV2PublicStatus: (client: HttpClient, params?: RequestParams) => Promise<void>;
|
|
10
|
-
/**
|
|
11
|
-
* No description
|
|
12
|
-
*
|
|
13
|
-
* @tags public
|
|
14
|
-
* @name GetApiV2PublicCarrierStatus
|
|
15
|
-
* @request GET:/api/v2/public/carrier_status
|
|
16
|
-
*/
|
|
17
|
-
export declare const getApiV2PublicCarrierStatus: (client: HttpClient, params?: RequestParams) => Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* No description
|
|
20
|
-
*
|
|
21
|
-
* @tags public
|
|
22
|
-
* @name GetApiV21PublicStatus
|
|
23
|
-
* @request GET:/api/v2.1/public/status
|
|
24
|
-
*/
|
|
25
|
-
export declare const getApiV21PublicStatus: (client: HttpClient, params?: RequestParams) => Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* No description
|
|
28
|
-
*
|
|
29
|
-
* @tags public
|
|
30
|
-
* @name GetApiV21PublicCarrierStatus
|
|
31
|
-
* @request GET:/api/v2.1/public/carrier_status
|
|
32
|
-
*/
|
|
33
|
-
export declare const getApiV21PublicCarrierStatus: (client: HttpClient, params?: RequestParams) => Promise<void>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { APIV2EntitiesScancode, GetApiV21ScancodeAliasesParams, GetApiV2ScancodeAliasesParams } from "./data-contracts";
|
|
2
|
-
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
-
/**
|
|
4
|
-
* @description Get all scancode_aliases
|
|
5
|
-
*
|
|
6
|
-
* @tags scancode_aliases
|
|
7
|
-
* @name GetApiV2ScancodeAliases
|
|
8
|
-
* @summary List all scancode aliases
|
|
9
|
-
* @request GET:/api/v2/scancode_aliases
|
|
10
|
-
*/
|
|
11
|
-
export declare const getApiV2ScancodeAliases: (client: HttpClient, query: GetApiV2ScancodeAliasesParams, params?: RequestParams) => Promise<APIV2EntitiesScancode[]>;
|
|
12
|
-
/**
|
|
13
|
-
* @description Get all scancode_aliases
|
|
14
|
-
*
|
|
15
|
-
* @tags scancode_aliases
|
|
16
|
-
* @name GetApiV21ScancodeAliases
|
|
17
|
-
* @summary List all scancode aliases
|
|
18
|
-
* @request GET:/api/v2.1/scancode_aliases
|
|
19
|
-
*/
|
|
20
|
-
export declare const getApiV21ScancodeAliases: (client: HttpClient, query: GetApiV21ScancodeAliasesParams, params?: RequestParams) => Promise<APIV2EntitiesScancode[]>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { APIV2EntitiesScancode, GetApiV2ScancodesParams } from "./data-contracts";
|
|
2
|
-
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
-
/**
|
|
4
|
-
* @description Get all scancodes
|
|
5
|
-
*
|
|
6
|
-
* @tags scancodes
|
|
7
|
-
* @name GetApiV2Scancodes
|
|
8
|
-
* @summary List all scancodes
|
|
9
|
-
* @request GET:/api/v2/scancodes
|
|
10
|
-
*/
|
|
11
|
-
export declare const getApiV2Scancodes: (client: HttpClient, query: GetApiV2ScancodesParams, params?: RequestParams) => Promise<APIV2EntitiesScancode[]>;
|
package/generated/MetaKeys.ts
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
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
|
-
APIV21EntitiesPostResponse,
|
|
14
|
-
APIV2EntitiesApiError,
|
|
15
|
-
APIV2EntitiesCount,
|
|
16
|
-
APIV2EntitiesMetaKey,
|
|
17
|
-
GetApiV21MetaKeysCountParams,
|
|
18
|
-
GetApiV21MetaKeysParams,
|
|
19
|
-
GetApiV2MetaKeysCountParams,
|
|
20
|
-
GetApiV2MetaKeysParams,
|
|
21
|
-
PostApiV21MetaKeys,
|
|
22
|
-
PostApiV2MetaKeys,
|
|
23
|
-
PutApiV21MetaKeys,
|
|
24
|
-
PutApiV2MetaKeys,
|
|
25
|
-
} from "./data-contracts";
|
|
26
|
-
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @description Create a meta_key
|
|
30
|
-
*
|
|
31
|
-
* @tags meta_keys
|
|
32
|
-
* @name PostApiV2MetaKeys
|
|
33
|
-
* @summary Create a meta_key
|
|
34
|
-
* @request POST:/api/v2/meta_keys
|
|
35
|
-
*/
|
|
36
|
-
export const postApiV2MetaKeys = (client: HttpClient, ApiV2MetaKeys: PostApiV2MetaKeys, params: RequestParams = {}) => {
|
|
37
|
-
return client.request<APIV2EntitiesMetaKey, APIV2EntitiesApiError>({
|
|
38
|
-
path: `/api/v2/meta_keys`,
|
|
39
|
-
method: "POST",
|
|
40
|
-
body: ApiV2MetaKeys,
|
|
41
|
-
type: ContentType.Json,
|
|
42
|
-
format: "json",
|
|
43
|
-
...params,
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* @description Get a list of meta_keys
|
|
48
|
-
*
|
|
49
|
-
* @tags meta_keys
|
|
50
|
-
* @name GetApiV2MetaKeys
|
|
51
|
-
* @summary List all meta keys
|
|
52
|
-
* @request GET:/api/v2/meta_keys
|
|
53
|
-
*/
|
|
54
|
-
export const getApiV2MetaKeys = (client: HttpClient, query: GetApiV2MetaKeysParams, params: RequestParams = {}) => {
|
|
55
|
-
return client.request<APIV2EntitiesMetaKey[], APIV2EntitiesApiError>({
|
|
56
|
-
path: `/api/v2/meta_keys`,
|
|
57
|
-
method: "GET",
|
|
58
|
-
query: query,
|
|
59
|
-
format: "json",
|
|
60
|
-
...params,
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* @description Returns count of meta_keys
|
|
65
|
-
*
|
|
66
|
-
* @tags meta_keys
|
|
67
|
-
* @name GetApiV2MetaKeysCount
|
|
68
|
-
* @summary Count meta keys
|
|
69
|
-
* @request GET:/api/v2/meta_keys/count
|
|
70
|
-
*/
|
|
71
|
-
export const getApiV2MetaKeysCount = (
|
|
72
|
-
client: HttpClient,
|
|
73
|
-
query: GetApiV2MetaKeysCountParams,
|
|
74
|
-
params: RequestParams = {},
|
|
75
|
-
) => {
|
|
76
|
-
return client.request<APIV2EntitiesCount, APIV2EntitiesApiError>({
|
|
77
|
-
path: `/api/v2/meta_keys/count`,
|
|
78
|
-
method: "GET",
|
|
79
|
-
query: query,
|
|
80
|
-
format: "json",
|
|
81
|
-
...params,
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* @description Destroy a meta_key
|
|
86
|
-
*
|
|
87
|
-
* @tags meta_keys
|
|
88
|
-
* @name DeleteApiV2MetaKeysId
|
|
89
|
-
* @summary Delete a meta_key
|
|
90
|
-
* @request DELETE:/api/v2/meta_keys/{id}
|
|
91
|
-
*/
|
|
92
|
-
export const deleteApiV2MetaKeysId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
93
|
-
return client.request<void, APIV2EntitiesApiError>({
|
|
94
|
-
path: `/api/v2/meta_keys/${id}`,
|
|
95
|
-
method: "DELETE",
|
|
96
|
-
...params,
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* @description Update a meta_key
|
|
101
|
-
*
|
|
102
|
-
* @tags meta_keys
|
|
103
|
-
* @name PutApiV2MetaKeysId
|
|
104
|
-
* @summary Update a meta_key
|
|
105
|
-
* @request PUT:/api/v2/meta_keys/{id}
|
|
106
|
-
*/
|
|
107
|
-
export const putApiV2MetaKeysId = (
|
|
108
|
-
client: HttpClient,
|
|
109
|
-
id: number,
|
|
110
|
-
ApiV2MetaKeys: PutApiV2MetaKeys,
|
|
111
|
-
params: RequestParams = {},
|
|
112
|
-
) => {
|
|
113
|
-
return client.request<APIV2EntitiesMetaKey, APIV2EntitiesApiError>({
|
|
114
|
-
path: `/api/v2/meta_keys/${id}`,
|
|
115
|
-
method: "PUT",
|
|
116
|
-
body: ApiV2MetaKeys,
|
|
117
|
-
type: ContentType.Json,
|
|
118
|
-
format: "json",
|
|
119
|
-
...params,
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* @description Get a meta_key
|
|
124
|
-
*
|
|
125
|
-
* @tags meta_keys
|
|
126
|
-
* @name GetApiV2MetaKeysId
|
|
127
|
-
* @summary Retrieve a meta key
|
|
128
|
-
* @request GET:/api/v2/meta_keys/{id}
|
|
129
|
-
*/
|
|
130
|
-
export const getApiV2MetaKeysId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
131
|
-
return client.request<APIV2EntitiesMetaKey, APIV2EntitiesApiError>({
|
|
132
|
-
path: `/api/v2/meta_keys/${id}`,
|
|
133
|
-
method: "GET",
|
|
134
|
-
format: "json",
|
|
135
|
-
...params,
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* @description Create a meta_key
|
|
140
|
-
*
|
|
141
|
-
* @tags meta_keys
|
|
142
|
-
* @name PostApiV21MetaKeys
|
|
143
|
-
* @summary Create a meta_key
|
|
144
|
-
* @request POST:/api/v2.1/meta_keys
|
|
145
|
-
*/
|
|
146
|
-
export const postApiV21MetaKeys = (
|
|
147
|
-
client: HttpClient,
|
|
148
|
-
ApiV21MetaKeys: PostApiV21MetaKeys,
|
|
149
|
-
params: RequestParams = {},
|
|
150
|
-
) => {
|
|
151
|
-
return client.request<APIV21EntitiesPostResponse, APIV2EntitiesApiError>({
|
|
152
|
-
path: `/api/v2.1/meta_keys`,
|
|
153
|
-
method: "POST",
|
|
154
|
-
body: ApiV21MetaKeys,
|
|
155
|
-
type: ContentType.Json,
|
|
156
|
-
format: "json",
|
|
157
|
-
...params,
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* @description Get a list of meta_keys
|
|
162
|
-
*
|
|
163
|
-
* @tags meta_keys
|
|
164
|
-
* @name GetApiV21MetaKeys
|
|
165
|
-
* @summary List all meta keys
|
|
166
|
-
* @request GET:/api/v2.1/meta_keys
|
|
167
|
-
*/
|
|
168
|
-
export const getApiV21MetaKeys = (client: HttpClient, query: GetApiV21MetaKeysParams, params: RequestParams = {}) => {
|
|
169
|
-
return client.request<APIV2EntitiesMetaKey[], APIV2EntitiesApiError>({
|
|
170
|
-
path: `/api/v2.1/meta_keys`,
|
|
171
|
-
method: "GET",
|
|
172
|
-
query: query,
|
|
173
|
-
format: "json",
|
|
174
|
-
...params,
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* @description Returns count of meta_keys
|
|
179
|
-
*
|
|
180
|
-
* @tags meta_keys
|
|
181
|
-
* @name GetApiV21MetaKeysCount
|
|
182
|
-
* @summary Count meta keys
|
|
183
|
-
* @request GET:/api/v2.1/meta_keys/count
|
|
184
|
-
*/
|
|
185
|
-
export const getApiV21MetaKeysCount = (
|
|
186
|
-
client: HttpClient,
|
|
187
|
-
query: GetApiV21MetaKeysCountParams,
|
|
188
|
-
params: RequestParams = {},
|
|
189
|
-
) => {
|
|
190
|
-
return client.request<APIV2EntitiesCount, APIV2EntitiesApiError>({
|
|
191
|
-
path: `/api/v2.1/meta_keys/count`,
|
|
192
|
-
method: "GET",
|
|
193
|
-
query: query,
|
|
194
|
-
format: "json",
|
|
195
|
-
...params,
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* @description Destroy a meta_key
|
|
200
|
-
*
|
|
201
|
-
* @tags meta_keys
|
|
202
|
-
* @name DeleteApiV21MetaKeysId
|
|
203
|
-
* @summary Delete a meta_key
|
|
204
|
-
* @request DELETE:/api/v2.1/meta_keys/{id}
|
|
205
|
-
*/
|
|
206
|
-
export const deleteApiV21MetaKeysId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
207
|
-
return client.request<void, APIV2EntitiesApiError>({
|
|
208
|
-
path: `/api/v2.1/meta_keys/${id}`,
|
|
209
|
-
method: "DELETE",
|
|
210
|
-
...params,
|
|
211
|
-
});
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* @description Update a meta_key
|
|
215
|
-
*
|
|
216
|
-
* @tags meta_keys
|
|
217
|
-
* @name PutApiV21MetaKeysId
|
|
218
|
-
* @summary Update a meta_key
|
|
219
|
-
* @request PUT:/api/v2.1/meta_keys/{id}
|
|
220
|
-
*/
|
|
221
|
-
export const putApiV21MetaKeysId = (
|
|
222
|
-
client: HttpClient,
|
|
223
|
-
id: number,
|
|
224
|
-
ApiV21MetaKeys: PutApiV21MetaKeys,
|
|
225
|
-
params: RequestParams = {},
|
|
226
|
-
) => {
|
|
227
|
-
return client.request<void, APIV2EntitiesApiError>({
|
|
228
|
-
path: `/api/v2.1/meta_keys/${id}`,
|
|
229
|
-
method: "PUT",
|
|
230
|
-
body: ApiV21MetaKeys,
|
|
231
|
-
type: ContentType.Json,
|
|
232
|
-
...params,
|
|
233
|
-
});
|
|
234
|
-
};
|
|
235
|
-
/**
|
|
236
|
-
* @description Get a meta_key
|
|
237
|
-
*
|
|
238
|
-
* @tags meta_keys
|
|
239
|
-
* @name GetApiV21MetaKeysId
|
|
240
|
-
* @summary Retrieve a meta key
|
|
241
|
-
* @request GET:/api/v2.1/meta_keys/{id}
|
|
242
|
-
*/
|
|
243
|
-
export const getApiV21MetaKeysId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
244
|
-
return client.request<APIV2EntitiesMetaKey, APIV2EntitiesApiError>({
|
|
245
|
-
path: `/api/v2.1/meta_keys/${id}`,
|
|
246
|
-
method: "GET",
|
|
247
|
-
format: "json",
|
|
248
|
-
...params,
|
|
249
|
-
});
|
|
250
|
-
};
|
package/generated/Public.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
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 { HttpClient, RequestParams } from "./http-client";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* No description
|
|
16
|
-
*
|
|
17
|
-
* @tags public
|
|
18
|
-
* @name GetApiV2PublicStatus
|
|
19
|
-
* @request GET:/api/v2/public/status
|
|
20
|
-
*/
|
|
21
|
-
export const getApiV2PublicStatus = (client: HttpClient, params: RequestParams = {}) => {
|
|
22
|
-
return client.request<void, any>({
|
|
23
|
-
path: `/api/v2/public/status`,
|
|
24
|
-
method: "GET",
|
|
25
|
-
...params,
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* No description
|
|
30
|
-
*
|
|
31
|
-
* @tags public
|
|
32
|
-
* @name GetApiV2PublicCarrierStatus
|
|
33
|
-
* @request GET:/api/v2/public/carrier_status
|
|
34
|
-
*/
|
|
35
|
-
export const getApiV2PublicCarrierStatus = (client: HttpClient, params: RequestParams = {}) => {
|
|
36
|
-
return client.request<void, any>({
|
|
37
|
-
path: `/api/v2/public/carrier_status`,
|
|
38
|
-
method: "GET",
|
|
39
|
-
...params,
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags public
|
|
46
|
-
* @name GetApiV21PublicStatus
|
|
47
|
-
* @request GET:/api/v2.1/public/status
|
|
48
|
-
*/
|
|
49
|
-
export const getApiV21PublicStatus = (client: HttpClient, params: RequestParams = {}) => {
|
|
50
|
-
return client.request<void, any>({
|
|
51
|
-
path: `/api/v2.1/public/status`,
|
|
52
|
-
method: "GET",
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* No description
|
|
58
|
-
*
|
|
59
|
-
* @tags public
|
|
60
|
-
* @name GetApiV21PublicCarrierStatus
|
|
61
|
-
* @request GET:/api/v2.1/public/carrier_status
|
|
62
|
-
*/
|
|
63
|
-
export const getApiV21PublicCarrierStatus = (client: HttpClient, params: RequestParams = {}) => {
|
|
64
|
-
return client.request<void, any>({
|
|
65
|
-
path: `/api/v2.1/public/carrier_status`,
|
|
66
|
-
method: "GET",
|
|
67
|
-
...params,
|
|
68
|
-
});
|
|
69
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
-
APIV2EntitiesApiError,
|
|
14
|
-
APIV2EntitiesScancode,
|
|
15
|
-
GetApiV21ScancodeAliasesParams,
|
|
16
|
-
GetApiV2ScancodeAliasesParams,
|
|
17
|
-
} from "./data-contracts";
|
|
18
|
-
import { HttpClient, RequestParams } from "./http-client";
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @description Get all scancode_aliases
|
|
22
|
-
*
|
|
23
|
-
* @tags scancode_aliases
|
|
24
|
-
* @name GetApiV2ScancodeAliases
|
|
25
|
-
* @summary List all scancode aliases
|
|
26
|
-
* @request GET:/api/v2/scancode_aliases
|
|
27
|
-
*/
|
|
28
|
-
export const getApiV2ScancodeAliases = (
|
|
29
|
-
client: HttpClient,
|
|
30
|
-
query: GetApiV2ScancodeAliasesParams,
|
|
31
|
-
params: RequestParams = {},
|
|
32
|
-
) => {
|
|
33
|
-
return client.request<APIV2EntitiesScancode[], APIV2EntitiesApiError>({
|
|
34
|
-
path: `/api/v2/scancode_aliases`,
|
|
35
|
-
method: "GET",
|
|
36
|
-
query: query,
|
|
37
|
-
format: "json",
|
|
38
|
-
...params,
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* @description Get all scancode_aliases
|
|
43
|
-
*
|
|
44
|
-
* @tags scancode_aliases
|
|
45
|
-
* @name GetApiV21ScancodeAliases
|
|
46
|
-
* @summary List all scancode aliases
|
|
47
|
-
* @request GET:/api/v2.1/scancode_aliases
|
|
48
|
-
*/
|
|
49
|
-
export const getApiV21ScancodeAliases = (
|
|
50
|
-
client: HttpClient,
|
|
51
|
-
query: GetApiV21ScancodeAliasesParams,
|
|
52
|
-
params: RequestParams = {},
|
|
53
|
-
) => {
|
|
54
|
-
return client.request<APIV2EntitiesScancode[], APIV2EntitiesApiError>({
|
|
55
|
-
path: `/api/v2.1/scancode_aliases`,
|
|
56
|
-
method: "GET",
|
|
57
|
-
query: query,
|
|
58
|
-
format: "json",
|
|
59
|
-
...params,
|
|
60
|
-
});
|
|
61
|
-
};
|
package/generated/Scancodes.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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 { APIV2EntitiesApiError, APIV2EntitiesScancode, GetApiV2ScancodesParams } from "./data-contracts";
|
|
13
|
-
import { HttpClient, RequestParams } from "./http-client";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @description Get all scancodes
|
|
17
|
-
*
|
|
18
|
-
* @tags scancodes
|
|
19
|
-
* @name GetApiV2Scancodes
|
|
20
|
-
* @summary List all scancodes
|
|
21
|
-
* @request GET:/api/v2/scancodes
|
|
22
|
-
*/
|
|
23
|
-
export const getApiV2Scancodes = (client: HttpClient, query: GetApiV2ScancodesParams, params: RequestParams = {}) => {
|
|
24
|
-
return client.request<APIV2EntitiesScancode[], APIV2EntitiesApiError>({
|
|
25
|
-
path: `/api/v2/scancodes`,
|
|
26
|
-
method: "GET",
|
|
27
|
-
query: query,
|
|
28
|
-
format: "json",
|
|
29
|
-
...params,
|
|
30
|
-
});
|
|
31
|
-
};
|