@whiplashmerch/whiplash-api-client 0.0.1
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 +7391 -0
- package/dist/client.esm.js.map +1 -0
- package/dist/generated/http-client.d.ts +41 -0
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/v2/BundleItems.d.ts +29 -0
- package/dist/generated/v2/ConsumerReturns.d.ts +110 -0
- package/dist/generated/v2/Customers.d.ts +47 -0
- package/dist/generated/v2/Documents.d.ts +38 -0
- package/dist/generated/v2/Items.d.ts +245 -0
- package/dist/generated/v2/MetaKeys.d.ts +56 -0
- package/dist/generated/v2/NotificationEvents.d.ts +20 -0
- package/dist/generated/v2/NotificationSubscriptions.d.ts +65 -0
- package/dist/generated/v2/OrderDocuments.d.ts +11 -0
- package/dist/generated/v2/OrderItems.d.ts +83 -0
- package/dist/generated/v2/Orders.d.ts +182 -0
- package/dist/generated/v2/Originators.d.ts +11 -0
- package/dist/generated/v2/Public.d.ts +17 -0
- package/dist/generated/v2/ScancodeAliases.d.ts +10 -0
- package/dist/generated/v2/Scancodes.d.ts +10 -0
- package/dist/generated/v2/ShipnoticeItems.d.ts +65 -0
- package/dist/generated/v2/Shipnotices.d.ts +155 -0
- package/dist/generated/v2/Simulate.d.ts +56 -0
- package/dist/generated/v2/Templates.d.ts +47 -0
- package/dist/generated/v2/data-contracts.d.ts +6511 -0
- package/dist/generated/v2/index.d.ts +20 -0
- package/dist/generated/v2.1/BundleItems.d.ts +29 -0
- package/dist/generated/v2.1/ConsumerReturns.d.ts +110 -0
- package/dist/generated/v2.1/Customers.d.ts +47 -0
- package/dist/generated/v2.1/Documents.d.ts +38 -0
- package/dist/generated/v2.1/Items.d.ts +245 -0
- package/dist/generated/v2.1/MetaKeys.d.ts +56 -0
- package/dist/generated/v2.1/NotificationEvents.d.ts +20 -0
- package/dist/generated/v2.1/NotificationSubscriptions.d.ts +65 -0
- package/dist/generated/v2.1/OrderDocuments.d.ts +11 -0
- package/dist/generated/v2.1/OrderItems.d.ts +83 -0
- package/dist/generated/v2.1/Orders.d.ts +182 -0
- package/dist/generated/v2.1/Originators.d.ts +11 -0
- package/dist/generated/v2.1/Public.d.ts +17 -0
- package/dist/generated/v2.1/ScancodeAliases.d.ts +10 -0
- package/dist/generated/v2.1/ShipnoticeItems.d.ts +65 -0
- package/dist/generated/v2.1/Shipnotices.d.ts +155 -0
- package/dist/generated/v2.1/Simulate.d.ts +56 -0
- package/dist/generated/v2.1/Templates.d.ts +47 -0
- package/dist/generated/v2.1/data-contracts.d.ts +6499 -0
- package/dist/generated/v2.1/index.d.ts +19 -0
- package/dist/index.d.ts +1 -0
- package/generated/http-client.ts +142 -0
- package/generated/index.ts +2 -0
- package/generated/v2/BundleItems.ts +67 -0
- package/generated/v2/ConsumerReturns.ts +265 -0
- package/generated/v2/Customers.ts +113 -0
- package/generated/v2/Documents.ts +86 -0
- package/generated/v2/Items.ts +556 -0
- package/generated/v2/MetaKeys.ts +130 -0
- package/generated/v2/NotificationEvents.ts +55 -0
- package/generated/v2/NotificationSubscriptions.ts +157 -0
- package/generated/v2/OrderDocuments.ts +30 -0
- package/generated/v2/OrderItems.ts +189 -0
- package/generated/v2/Orders.ts +436 -0
- package/generated/v2/Originators.ts +35 -0
- package/generated/v2/Public.ts +41 -0
- package/generated/v2/ScancodeAliases.ts +34 -0
- package/generated/v2/Scancodes.ts +30 -0
- package/generated/v2/ShipnoticeItems.ts +152 -0
- package/generated/v2/Shipnotices.ts +367 -0
- package/generated/v2/Simulate.ts +160 -0
- package/generated/v2/Templates.ts +110 -0
- package/generated/v2/data-contracts.ts +6647 -0
- package/generated/v2/index.ts +20 -0
- package/generated/v2.1/BundleItems.ts +67 -0
- package/generated/v2.1/ConsumerReturns.ts +267 -0
- package/generated/v2.1/Customers.ts +113 -0
- package/generated/v2.1/Documents.ts +90 -0
- package/generated/v2.1/Items.ts +563 -0
- package/generated/v2.1/MetaKeys.ts +132 -0
- package/generated/v2.1/NotificationEvents.ts +55 -0
- package/generated/v2.1/NotificationSubscriptions.ts +161 -0
- package/generated/v2.1/OrderDocuments.ts +30 -0
- package/generated/v2.1/OrderItems.ts +189 -0
- package/generated/v2.1/Orders.ts +439 -0
- package/generated/v2.1/Originators.ts +35 -0
- package/generated/v2.1/Public.ts +41 -0
- package/generated/v2.1/ScancodeAliases.ts +34 -0
- package/generated/v2.1/ShipnoticeItems.ts +152 -0
- package/generated/v2.1/Shipnotices.ts +369 -0
- package/generated/v2.1/Simulate.ts +160 -0
- package/generated/v2.1/Templates.ts +114 -0
- package/generated/v2.1/data-contracts.ts +6635 -0
- package/generated/v2.1/index.ts +19 -0
- package/index.ts +1 -0
- package/package.json +23 -0
|
@@ -0,0 +1,369 @@
|
|
|
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 { ContentType, HttpClient, RequestParams } from "./../http-client";
|
|
13
|
+
import {
|
|
14
|
+
APIV21EntitiesApiError,
|
|
15
|
+
APIV21EntitiesCount,
|
|
16
|
+
APIV21EntitiesMetaFields,
|
|
17
|
+
APIV21EntitiesPostResponse,
|
|
18
|
+
APIV21EntitiesResult,
|
|
19
|
+
APIV21EntitiesShipnotice,
|
|
20
|
+
APIV21EntitiesShipnoticeItem,
|
|
21
|
+
GetApiV21ShipnoticesCountParams,
|
|
22
|
+
GetApiV21ShipnoticesIdMetaFieldsPayload,
|
|
23
|
+
GetApiV21ShipnoticesIdShipnoticeItemsCountParams,
|
|
24
|
+
GetApiV21ShipnoticesIdShipnoticeItemsParams,
|
|
25
|
+
GetApiV21ShipnoticesParams,
|
|
26
|
+
PostApiV21ShipnoticesBulkPayload,
|
|
27
|
+
PostApiV21ShipnoticesIdShipnoticeItemsPayload,
|
|
28
|
+
PostApiV21ShipnoticesPayload,
|
|
29
|
+
PutApiV21ShipnoticesIdPayload,
|
|
30
|
+
PutApiV21ShipnoticesOriginatorOriginatorIdPayload,
|
|
31
|
+
} from "./data-contracts";
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* No description
|
|
35
|
+
*
|
|
36
|
+
* @tags shipnotices
|
|
37
|
+
* @name PostApiV21Shipnotices
|
|
38
|
+
* @summary Create a ship notice
|
|
39
|
+
* @request POST:/api/v2.1/shipnotices
|
|
40
|
+
*/
|
|
41
|
+
export const postApiV21Shipnotices = (
|
|
42
|
+
client: HttpClient,
|
|
43
|
+
data: PostApiV21ShipnoticesPayload,
|
|
44
|
+
params: RequestParams = {},
|
|
45
|
+
) => {
|
|
46
|
+
return client.request<APIV21EntitiesPostResponse, APIV21EntitiesApiError>({
|
|
47
|
+
path: `/api/v2.1/shipnotices`,
|
|
48
|
+
method: "POST",
|
|
49
|
+
body: data,
|
|
50
|
+
type: ContentType.FormData,
|
|
51
|
+
format: "json",
|
|
52
|
+
...params,
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* No description
|
|
57
|
+
*
|
|
58
|
+
* @tags shipnotices
|
|
59
|
+
* @name GetApiV21Shipnotices
|
|
60
|
+
* @summary List all ship notices
|
|
61
|
+
* @request GET:/api/v2.1/shipnotices
|
|
62
|
+
*/
|
|
63
|
+
export const getApiV21Shipnotices = (
|
|
64
|
+
client: HttpClient,
|
|
65
|
+
query: GetApiV21ShipnoticesParams,
|
|
66
|
+
params: RequestParams = {},
|
|
67
|
+
) => {
|
|
68
|
+
return client.request<APIV21EntitiesShipnotice[], APIV21EntitiesApiError>({
|
|
69
|
+
path: `/api/v2.1/shipnotices`,
|
|
70
|
+
method: "GET",
|
|
71
|
+
query: query,
|
|
72
|
+
format: "json",
|
|
73
|
+
...params,
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @description Bulk requests are processed asynchronously. They automatically create a saved search with all of the newly created consumer_returns.
|
|
78
|
+
*
|
|
79
|
+
* @tags shipnotices
|
|
80
|
+
* @name PostApiV21ShipnoticesBulk
|
|
81
|
+
* @summary Create consumer_returns in bulk
|
|
82
|
+
* @request POST:/api/v2.1/shipnotices/bulk
|
|
83
|
+
*/
|
|
84
|
+
export const postApiV21ShipnoticesBulk = (
|
|
85
|
+
client: HttpClient,
|
|
86
|
+
data: PostApiV21ShipnoticesBulkPayload,
|
|
87
|
+
params: RequestParams = {},
|
|
88
|
+
) => {
|
|
89
|
+
return client.request<APIV21EntitiesResult, APIV21EntitiesApiError>({
|
|
90
|
+
path: `/api/v2.1/shipnotices/bulk`,
|
|
91
|
+
method: "POST",
|
|
92
|
+
body: data,
|
|
93
|
+
type: ContentType.FormData,
|
|
94
|
+
format: "json",
|
|
95
|
+
...params,
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* @description Get resource actions
|
|
100
|
+
*
|
|
101
|
+
* @tags shipnotices
|
|
102
|
+
* @name GetApiV21ShipnoticesActions
|
|
103
|
+
* @summary List actions you can peform
|
|
104
|
+
* @request GET:/api/v2.1/shipnotices/actions
|
|
105
|
+
*/
|
|
106
|
+
export const getApiV21ShipnoticesActions = (client: HttpClient, params: RequestParams = {}) => {
|
|
107
|
+
return client.request<void, APIV21EntitiesApiError>({
|
|
108
|
+
path: `/api/v2.1/shipnotices/actions`,
|
|
109
|
+
method: "GET",
|
|
110
|
+
...params,
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* No description
|
|
115
|
+
*
|
|
116
|
+
* @tags originators
|
|
117
|
+
* @name DeleteApiV21ShipnoticesOriginatorOriginatorId
|
|
118
|
+
* @summary Destroy a ship notice
|
|
119
|
+
* @request DELETE:/api/v2.1/shipnotices/originator/{originator_id}
|
|
120
|
+
*/
|
|
121
|
+
export const deleteApiV21ShipnoticesOriginatorOriginatorId = (
|
|
122
|
+
client: HttpClient,
|
|
123
|
+
originatorId: number,
|
|
124
|
+
params: RequestParams = {},
|
|
125
|
+
) => {
|
|
126
|
+
return client.request<APIV21EntitiesShipnotice, APIV21EntitiesApiError>({
|
|
127
|
+
path: `/api/v2.1/shipnotices/originator/${originatorId}`,
|
|
128
|
+
method: "DELETE",
|
|
129
|
+
format: "json",
|
|
130
|
+
...params,
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* @description NOTE: You may not update a ship notice's items en masse. You must edit them individually after they've been created.
|
|
135
|
+
*
|
|
136
|
+
* @tags originators
|
|
137
|
+
* @name PutApiV21ShipnoticesOriginatorOriginatorId
|
|
138
|
+
* @summary Update a ship notice
|
|
139
|
+
* @request PUT:/api/v2.1/shipnotices/originator/{originator_id}
|
|
140
|
+
*/
|
|
141
|
+
export const putApiV21ShipnoticesOriginatorOriginatorId = (
|
|
142
|
+
client: HttpClient,
|
|
143
|
+
originatorId: number,
|
|
144
|
+
data: PutApiV21ShipnoticesOriginatorOriginatorIdPayload,
|
|
145
|
+
params: RequestParams = {},
|
|
146
|
+
) => {
|
|
147
|
+
return client.request<void, APIV21EntitiesApiError>({
|
|
148
|
+
path: `/api/v2.1/shipnotices/originator/${originatorId}`,
|
|
149
|
+
method: "PUT",
|
|
150
|
+
body: data,
|
|
151
|
+
type: ContentType.FormData,
|
|
152
|
+
...params,
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* No description
|
|
157
|
+
*
|
|
158
|
+
* @tags originators
|
|
159
|
+
* @name GetApiV21ShipnoticesOriginatorOriginatorId
|
|
160
|
+
* @summary Retrieve a ship notice
|
|
161
|
+
* @request GET:/api/v2.1/shipnotices/originator/{originator_id}
|
|
162
|
+
*/
|
|
163
|
+
export const getApiV21ShipnoticesOriginatorOriginatorId = (
|
|
164
|
+
client: HttpClient,
|
|
165
|
+
originatorId: number,
|
|
166
|
+
params: RequestParams = {},
|
|
167
|
+
) => {
|
|
168
|
+
return client.request<APIV21EntitiesShipnotice, APIV21EntitiesApiError>({
|
|
169
|
+
path: `/api/v2.1/shipnotices/originator/${originatorId}`,
|
|
170
|
+
method: "GET",
|
|
171
|
+
format: "json",
|
|
172
|
+
...params,
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* No description
|
|
177
|
+
*
|
|
178
|
+
* @tags shipnotices
|
|
179
|
+
* @name GetApiV21ShipnoticesIdOrdersWaiting
|
|
180
|
+
* @summary Count orders waiting for stock in a ship notice
|
|
181
|
+
* @request GET:/api/v2.1/shipnotices/{id}/orders_waiting
|
|
182
|
+
*/
|
|
183
|
+
export const getApiV21ShipnoticesIdOrdersWaiting = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
184
|
+
return client.request<APIV21EntitiesCount, APIV21EntitiesApiError>({
|
|
185
|
+
path: `/api/v2.1/shipnotices/${id}/orders_waiting`,
|
|
186
|
+
method: "GET",
|
|
187
|
+
format: "json",
|
|
188
|
+
...params,
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* No description
|
|
193
|
+
*
|
|
194
|
+
* @tags shipnotices
|
|
195
|
+
* @name DeleteApiV21ShipnoticesId
|
|
196
|
+
* @summary Destroy a ship notice
|
|
197
|
+
* @request DELETE:/api/v2.1/shipnotices/{id}
|
|
198
|
+
*/
|
|
199
|
+
export const deleteApiV21ShipnoticesId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
200
|
+
return client.request<APIV21EntitiesShipnotice, APIV21EntitiesApiError>({
|
|
201
|
+
path: `/api/v2.1/shipnotices/${id}`,
|
|
202
|
+
method: "DELETE",
|
|
203
|
+
format: "json",
|
|
204
|
+
...params,
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* @description NOTE: You may not update a ship notice's items en masse. You must edit them individually after they've been created.
|
|
209
|
+
*
|
|
210
|
+
* @tags shipnotices
|
|
211
|
+
* @name PutApiV21ShipnoticesId
|
|
212
|
+
* @summary Update a ship notice
|
|
213
|
+
* @request PUT:/api/v2.1/shipnotices/{id}
|
|
214
|
+
*/
|
|
215
|
+
export const putApiV21ShipnoticesId = (
|
|
216
|
+
client: HttpClient,
|
|
217
|
+
id: number,
|
|
218
|
+
data: PutApiV21ShipnoticesIdPayload,
|
|
219
|
+
params: RequestParams = {},
|
|
220
|
+
) => {
|
|
221
|
+
return client.request<void, APIV21EntitiesApiError>({
|
|
222
|
+
path: `/api/v2.1/shipnotices/${id}`,
|
|
223
|
+
method: "PUT",
|
|
224
|
+
body: data,
|
|
225
|
+
type: ContentType.FormData,
|
|
226
|
+
...params,
|
|
227
|
+
});
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* No description
|
|
231
|
+
*
|
|
232
|
+
* @tags shipnotices
|
|
233
|
+
* @name GetApiV21ShipnoticesId
|
|
234
|
+
* @summary Retrieve a ship notice
|
|
235
|
+
* @request GET:/api/v2.1/shipnotices/{id}
|
|
236
|
+
*/
|
|
237
|
+
export const getApiV21ShipnoticesId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
238
|
+
return client.request<APIV21EntitiesShipnotice, APIV21EntitiesApiError>({
|
|
239
|
+
path: `/api/v2.1/shipnotices/${id}`,
|
|
240
|
+
method: "GET",
|
|
241
|
+
format: "json",
|
|
242
|
+
...params,
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* No description
|
|
247
|
+
*
|
|
248
|
+
* @tags shipnotices
|
|
249
|
+
* @name PostApiV21ShipnoticesIdShipnoticeItems
|
|
250
|
+
* @summary Create a ship notice item
|
|
251
|
+
* @request POST:/api/v2.1/shipnotices/{id}/shipnotice_items
|
|
252
|
+
*/
|
|
253
|
+
export const postApiV21ShipnoticesIdShipnoticeItems = (
|
|
254
|
+
client: HttpClient,
|
|
255
|
+
id: number,
|
|
256
|
+
data: PostApiV21ShipnoticesIdShipnoticeItemsPayload,
|
|
257
|
+
params: RequestParams = {},
|
|
258
|
+
) => {
|
|
259
|
+
return client.request<APIV21EntitiesShipnoticeItem, APIV21EntitiesApiError>({
|
|
260
|
+
path: `/api/v2.1/shipnotices/${id}/shipnotice_items`,
|
|
261
|
+
method: "POST",
|
|
262
|
+
body: data,
|
|
263
|
+
type: ContentType.FormData,
|
|
264
|
+
format: "json",
|
|
265
|
+
...params,
|
|
266
|
+
});
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* No description
|
|
270
|
+
*
|
|
271
|
+
* @tags shipnotices
|
|
272
|
+
* @name GetApiV21ShipnoticesIdShipnoticeItems
|
|
273
|
+
* @summary List associated ship notice items
|
|
274
|
+
* @request GET:/api/v2.1/shipnotices/{id}/shipnotice_items
|
|
275
|
+
*/
|
|
276
|
+
export const getApiV21ShipnoticesIdShipnoticeItems = (
|
|
277
|
+
client: HttpClient,
|
|
278
|
+
{ id, ...query }: GetApiV21ShipnoticesIdShipnoticeItemsParams,
|
|
279
|
+
params: RequestParams = {},
|
|
280
|
+
) => {
|
|
281
|
+
return client.request<APIV21EntitiesShipnoticeItem[], APIV21EntitiesApiError>({
|
|
282
|
+
path: `/api/v2.1/shipnotices/${id}/shipnotice_items`,
|
|
283
|
+
method: "GET",
|
|
284
|
+
query: query,
|
|
285
|
+
format: "json",
|
|
286
|
+
...params,
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* @description Update Shop meta fields
|
|
291
|
+
*
|
|
292
|
+
* @tags shipnotices
|
|
293
|
+
* @name PutApiV21ShipnoticesIdMetaFields
|
|
294
|
+
* @summary Set meta fields
|
|
295
|
+
* @request PUT:/api/v2.1/shipnotices/{id}/meta_fields
|
|
296
|
+
*/
|
|
297
|
+
export const putApiV21ShipnoticesIdMetaFields = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
298
|
+
return client.request<void, APIV21EntitiesApiError>({
|
|
299
|
+
path: `/api/v2.1/shipnotices/${id}/meta_fields`,
|
|
300
|
+
method: "PUT",
|
|
301
|
+
type: ContentType.Json,
|
|
302
|
+
...params,
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* @description Get the meta fields for a(n) Shop
|
|
307
|
+
*
|
|
308
|
+
* @tags shipnotices
|
|
309
|
+
* @name GetApiV21ShipnoticesIdMetaFields
|
|
310
|
+
* @summary List meta fields
|
|
311
|
+
* @request GET:/api/v2.1/shipnotices/{id}/meta_fields
|
|
312
|
+
*/
|
|
313
|
+
export const getApiV21ShipnoticesIdMetaFields = (
|
|
314
|
+
client: HttpClient,
|
|
315
|
+
id: number,
|
|
316
|
+
data: GetApiV21ShipnoticesIdMetaFieldsPayload,
|
|
317
|
+
params: RequestParams = {},
|
|
318
|
+
) => {
|
|
319
|
+
return client.request<APIV21EntitiesMetaFields, APIV21EntitiesApiError>({
|
|
320
|
+
path: `/api/v2.1/shipnotices/${id}/meta_fields`,
|
|
321
|
+
method: "GET",
|
|
322
|
+
body: data,
|
|
323
|
+
type: ContentType.FormData,
|
|
324
|
+
format: "json",
|
|
325
|
+
...params,
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* No description
|
|
330
|
+
*
|
|
331
|
+
* @tags shipnotices
|
|
332
|
+
* @name GetApiV21ShipnoticesIdShipnoticeItemsCount
|
|
333
|
+
* @summary Count associated ship notice items
|
|
334
|
+
* @request GET:/api/v2.1/shipnotices/{id}/shipnotice_items/count
|
|
335
|
+
*/
|
|
336
|
+
export const getApiV21ShipnoticesIdShipnoticeItemsCount = (
|
|
337
|
+
client: HttpClient,
|
|
338
|
+
{ id, ...query }: GetApiV21ShipnoticesIdShipnoticeItemsCountParams,
|
|
339
|
+
params: RequestParams = {},
|
|
340
|
+
) => {
|
|
341
|
+
return client.request<APIV21EntitiesCount, APIV21EntitiesApiError>({
|
|
342
|
+
path: `/api/v2.1/shipnotices/${id}/shipnotice_items/count`,
|
|
343
|
+
method: "GET",
|
|
344
|
+
query: query,
|
|
345
|
+
format: "json",
|
|
346
|
+
...params,
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* No description
|
|
351
|
+
*
|
|
352
|
+
* @tags shipnotices
|
|
353
|
+
* @name GetApiV21ShipnoticesCount
|
|
354
|
+
* @summary Count ship notices
|
|
355
|
+
* @request GET:/api/v2.1/shipnotices/count
|
|
356
|
+
*/
|
|
357
|
+
export const getApiV21ShipnoticesCount = (
|
|
358
|
+
client: HttpClient,
|
|
359
|
+
query: GetApiV21ShipnoticesCountParams,
|
|
360
|
+
params: RequestParams = {},
|
|
361
|
+
) => {
|
|
362
|
+
return client.request<APIV21EntitiesCount, APIV21EntitiesApiError>({
|
|
363
|
+
path: `/api/v2.1/shipnotices/count`,
|
|
364
|
+
method: "GET",
|
|
365
|
+
query: query,
|
|
366
|
+
format: "json",
|
|
367
|
+
...params,
|
|
368
|
+
});
|
|
369
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
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 { ContentType, HttpClient, RequestParams } from "./../http-client";
|
|
13
|
+
import {
|
|
14
|
+
APIV21EntitiesApiError,
|
|
15
|
+
APIV21EntitiesConsumerReturn,
|
|
16
|
+
APIV21EntitiesOrder,
|
|
17
|
+
APIV21EntitiesShipnotice,
|
|
18
|
+
PostApiV21SimulateConsumerReturnsCreatePayload,
|
|
19
|
+
PostApiV21SimulateOrdersCreatePayload,
|
|
20
|
+
PostApiV21SimulateShipnoticesCreatePayload,
|
|
21
|
+
PutApiV21SimulateConsumerReturnsConsumerReturnIdProcessingPayload,
|
|
22
|
+
PutApiV21SimulateOrdersOrderIdProcessingPayload,
|
|
23
|
+
PutApiV21SimulateShipnoticesShipnoticeIdProcessingPayload,
|
|
24
|
+
} from "./data-contracts";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description Customer users don't have access to staff actions, so this simulates a consumer return's workflow, allowing you to process a consumer return and, optionally, finalize it.
|
|
28
|
+
*
|
|
29
|
+
* @tags simulate
|
|
30
|
+
* @name PutApiV21SimulateConsumerReturnsConsumerReturnIdProcessing
|
|
31
|
+
* @summary Simulate processing for an consumer return
|
|
32
|
+
* @request PUT:/api/v2.1/simulate/consumer_returns/{consumer_return_id}/processing
|
|
33
|
+
*/
|
|
34
|
+
export const putApiV21SimulateConsumerReturnsConsumerReturnIdProcessing = (
|
|
35
|
+
client: HttpClient,
|
|
36
|
+
consumerReturnId: number,
|
|
37
|
+
data: PutApiV21SimulateConsumerReturnsConsumerReturnIdProcessingPayload,
|
|
38
|
+
params: RequestParams = {},
|
|
39
|
+
) => {
|
|
40
|
+
return client.request<APIV21EntitiesConsumerReturn, APIV21EntitiesApiError>({
|
|
41
|
+
path: `/api/v2.1/simulate/consumer_returns/${consumerReturnId}/processing`,
|
|
42
|
+
method: "PUT",
|
|
43
|
+
body: data,
|
|
44
|
+
type: ContentType.FormData,
|
|
45
|
+
format: "json",
|
|
46
|
+
...params,
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* No description
|
|
51
|
+
*
|
|
52
|
+
* @tags simulate
|
|
53
|
+
* @name PostApiV21SimulateConsumerReturnsCreate
|
|
54
|
+
* @summary Create a consumer return with simulated data
|
|
55
|
+
* @request POST:/api/v2.1/simulate/consumer_returns/create
|
|
56
|
+
*/
|
|
57
|
+
export const postApiV21SimulateConsumerReturnsCreate = (
|
|
58
|
+
client: HttpClient,
|
|
59
|
+
data: PostApiV21SimulateConsumerReturnsCreatePayload,
|
|
60
|
+
params: RequestParams = {},
|
|
61
|
+
) => {
|
|
62
|
+
return client.request<APIV21EntitiesConsumerReturn, APIV21EntitiesApiError>({
|
|
63
|
+
path: `/api/v2.1/simulate/consumer_returns/create`,
|
|
64
|
+
method: "POST",
|
|
65
|
+
body: data,
|
|
66
|
+
type: ContentType.FormData,
|
|
67
|
+
format: "json",
|
|
68
|
+
...params,
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* @description Customer users don't have access to staff actions, so this simulates a ship notice's workflow, allowing you to process a ship notice and, optionally, finalize it.
|
|
73
|
+
*
|
|
74
|
+
* @tags simulate
|
|
75
|
+
* @name PutApiV21SimulateShipnoticesShipnoticeIdProcessing
|
|
76
|
+
* @summary Simulate processing for an ship notice
|
|
77
|
+
* @request PUT:/api/v2.1/simulate/shipnotices/{shipnotice_id}/processing
|
|
78
|
+
*/
|
|
79
|
+
export const putApiV21SimulateShipnoticesShipnoticeIdProcessing = (
|
|
80
|
+
client: HttpClient,
|
|
81
|
+
shipnoticeId: number,
|
|
82
|
+
data: PutApiV21SimulateShipnoticesShipnoticeIdProcessingPayload,
|
|
83
|
+
params: RequestParams = {},
|
|
84
|
+
) => {
|
|
85
|
+
return client.request<APIV21EntitiesShipnotice, APIV21EntitiesApiError>({
|
|
86
|
+
path: `/api/v2.1/simulate/shipnotices/${shipnoticeId}/processing`,
|
|
87
|
+
method: "PUT",
|
|
88
|
+
body: data,
|
|
89
|
+
type: ContentType.FormData,
|
|
90
|
+
format: "json",
|
|
91
|
+
...params,
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* No description
|
|
96
|
+
*
|
|
97
|
+
* @tags simulate
|
|
98
|
+
* @name PostApiV21SimulateShipnoticesCreate
|
|
99
|
+
* @summary Create a shipnotice with simulated data
|
|
100
|
+
* @request POST:/api/v2.1/simulate/shipnotices/create
|
|
101
|
+
*/
|
|
102
|
+
export const postApiV21SimulateShipnoticesCreate = (
|
|
103
|
+
client: HttpClient,
|
|
104
|
+
data: PostApiV21SimulateShipnoticesCreatePayload,
|
|
105
|
+
params: RequestParams = {},
|
|
106
|
+
) => {
|
|
107
|
+
return client.request<APIV21EntitiesShipnotice, APIV21EntitiesApiError>({
|
|
108
|
+
path: `/api/v2.1/simulate/shipnotices/create`,
|
|
109
|
+
method: "POST",
|
|
110
|
+
body: data,
|
|
111
|
+
type: ContentType.FormData,
|
|
112
|
+
format: "json",
|
|
113
|
+
...params,
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* @description Customer users don't have access to staff actions, so this simulates an order's workflow, from batched to packed to shipped
|
|
118
|
+
*
|
|
119
|
+
* @tags simulate
|
|
120
|
+
* @name PutApiV21SimulateOrdersOrderIdProcessing
|
|
121
|
+
* @summary Simulate processing for an order
|
|
122
|
+
* @request PUT:/api/v2.1/simulate/orders/{order_id}/processing
|
|
123
|
+
*/
|
|
124
|
+
export const putApiV21SimulateOrdersOrderIdProcessing = (
|
|
125
|
+
client: HttpClient,
|
|
126
|
+
orderId: number,
|
|
127
|
+
data: PutApiV21SimulateOrdersOrderIdProcessingPayload,
|
|
128
|
+
params: RequestParams = {},
|
|
129
|
+
) => {
|
|
130
|
+
return client.request<APIV21EntitiesOrder, APIV21EntitiesApiError>({
|
|
131
|
+
path: `/api/v2.1/simulate/orders/${orderId}/processing`,
|
|
132
|
+
method: "PUT",
|
|
133
|
+
body: data,
|
|
134
|
+
type: ContentType.FormData,
|
|
135
|
+
format: "json",
|
|
136
|
+
...params,
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* No description
|
|
141
|
+
*
|
|
142
|
+
* @tags simulate
|
|
143
|
+
* @name PostApiV21SimulateOrdersCreate
|
|
144
|
+
* @summary Create an order with simulated data
|
|
145
|
+
* @request POST:/api/v2.1/simulate/orders/create
|
|
146
|
+
*/
|
|
147
|
+
export const postApiV21SimulateOrdersCreate = (
|
|
148
|
+
client: HttpClient,
|
|
149
|
+
data: PostApiV21SimulateOrdersCreatePayload,
|
|
150
|
+
params: RequestParams = {},
|
|
151
|
+
) => {
|
|
152
|
+
return client.request<APIV21EntitiesOrder, APIV21EntitiesApiError>({
|
|
153
|
+
path: `/api/v2.1/simulate/orders/create`,
|
|
154
|
+
method: "POST",
|
|
155
|
+
body: data,
|
|
156
|
+
type: ContentType.FormData,
|
|
157
|
+
format: "json",
|
|
158
|
+
...params,
|
|
159
|
+
});
|
|
160
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { ContentType, HttpClient, RequestParams } from "./../http-client";
|
|
13
|
+
import {
|
|
14
|
+
APIV21EntitiesApiError,
|
|
15
|
+
APIV21EntitiesTemplate,
|
|
16
|
+
GetApiV21TemplatesParams,
|
|
17
|
+
PostApiV21TemplatesPayload,
|
|
18
|
+
PutApiV21TemplatesIdPayload,
|
|
19
|
+
} from "./data-contracts";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* No description
|
|
23
|
+
*
|
|
24
|
+
* @tags templates
|
|
25
|
+
* @name PostApiV21Templates
|
|
26
|
+
* @summary Create a template
|
|
27
|
+
* @request POST:/api/v2.1/templates
|
|
28
|
+
*/
|
|
29
|
+
export const postApiV21Templates = (
|
|
30
|
+
client: HttpClient,
|
|
31
|
+
data: PostApiV21TemplatesPayload,
|
|
32
|
+
params: RequestParams = {},
|
|
33
|
+
) => {
|
|
34
|
+
return client.request<APIV21EntitiesTemplate, APIV21EntitiesApiError>({
|
|
35
|
+
path: `/api/v2.1/templates`,
|
|
36
|
+
method: "POST",
|
|
37
|
+
body: data,
|
|
38
|
+
type: ContentType.FormData,
|
|
39
|
+
format: "json",
|
|
40
|
+
...params,
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* No description
|
|
45
|
+
*
|
|
46
|
+
* @tags templates
|
|
47
|
+
* @name GetApiV21Templates
|
|
48
|
+
* @summary List all templates
|
|
49
|
+
* @request GET:/api/v2.1/templates
|
|
50
|
+
*/
|
|
51
|
+
export const getApiV21Templates = (client: HttpClient, query: GetApiV21TemplatesParams, params: RequestParams = {}) => {
|
|
52
|
+
return client.request<APIV21EntitiesTemplate[], APIV21EntitiesApiError>({
|
|
53
|
+
path: `/api/v2.1/templates`,
|
|
54
|
+
method: "GET",
|
|
55
|
+
query: query,
|
|
56
|
+
format: "json",
|
|
57
|
+
...params,
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* No description
|
|
62
|
+
*
|
|
63
|
+
* @tags templates
|
|
64
|
+
* @name DeleteApiV21TemplatesId
|
|
65
|
+
* @summary Destroy a template
|
|
66
|
+
* @request DELETE:/api/v2.1/templates/{id}
|
|
67
|
+
*/
|
|
68
|
+
export const deleteApiV21TemplatesId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
69
|
+
return client.request<APIV21EntitiesTemplate, APIV21EntitiesApiError>({
|
|
70
|
+
path: `/api/v2.1/templates/${id}`,
|
|
71
|
+
method: "DELETE",
|
|
72
|
+
format: "json",
|
|
73
|
+
...params,
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* No description
|
|
78
|
+
*
|
|
79
|
+
* @tags templates
|
|
80
|
+
* @name PutApiV21TemplatesId
|
|
81
|
+
* @summary Update a template
|
|
82
|
+
* @request PUT:/api/v2.1/templates/{id}
|
|
83
|
+
*/
|
|
84
|
+
export const putApiV21TemplatesId = (
|
|
85
|
+
client: HttpClient,
|
|
86
|
+
id: number,
|
|
87
|
+
data: PutApiV21TemplatesIdPayload,
|
|
88
|
+
params: RequestParams = {},
|
|
89
|
+
) => {
|
|
90
|
+
return client.request<APIV21EntitiesTemplate, APIV21EntitiesApiError>({
|
|
91
|
+
path: `/api/v2.1/templates/${id}`,
|
|
92
|
+
method: "PUT",
|
|
93
|
+
body: data,
|
|
94
|
+
type: ContentType.FormData,
|
|
95
|
+
format: "json",
|
|
96
|
+
...params,
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* No description
|
|
101
|
+
*
|
|
102
|
+
* @tags templates
|
|
103
|
+
* @name GetApiV21TemplatesId
|
|
104
|
+
* @summary Retrieve a template
|
|
105
|
+
* @request GET:/api/v2.1/templates/{id}
|
|
106
|
+
*/
|
|
107
|
+
export const getApiV21TemplatesId = (client: HttpClient, id: number, params: RequestParams = {}) => {
|
|
108
|
+
return client.request<APIV21EntitiesTemplate, APIV21EntitiesApiError>({
|
|
109
|
+
path: `/api/v2.1/templates/${id}`,
|
|
110
|
+
method: "GET",
|
|
111
|
+
format: "json",
|
|
112
|
+
...params,
|
|
113
|
+
});
|
|
114
|
+
};
|