@whiplashmerch/whiplash-api-client 3.2.1 → 3.2.3
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 { ApiV21EntitiesScancode, ApiV2EntitiesScancode, GetApiV21ScancodesParams, GetApiV2ScancodesParams, PutApiV21ScancodesIdRequest, PutApiV2ScancodesIdRequest } from "./data-contracts";
|
|
1
|
+
import { ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesScancode, ApiV2EntitiesScancode, GetApiV21ScancodesParams, GetApiV2ScancodesParams, 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
|
|
@@ -18,6 +18,24 @@ export declare const getApiV2Scancodes: (client: HttpClient, query: GetApiV2Scan
|
|
|
18
18
|
* @request PUT:/api/v2/scancodes/{id}
|
|
19
19
|
*/
|
|
20
20
|
export declare const putApiV2ScancodesId: (client: HttpClient, id: number, data: PutApiV2ScancodesIdRequest, params?: RequestParams) => Promise<ApiV2EntitiesScancode>;
|
|
21
|
+
/**
|
|
22
|
+
* @description Perform an action on a scancode
|
|
23
|
+
*
|
|
24
|
+
* @tags scancodes
|
|
25
|
+
* @name PutApiV2ScancodesIdCallAction
|
|
26
|
+
* @summary Perform an action on a scancode
|
|
27
|
+
* @request PUT:/api/v2/scancodes/{id}/call/{action}
|
|
28
|
+
*/
|
|
29
|
+
export declare const putApiV2ScancodesIdCallAction: (client: HttpClient, action: string, id: number, data: PutApiV2ScancodesIdCallActionRequest, params?: RequestParams) => Promise<ApiV2EntitiesScancode>;
|
|
30
|
+
/**
|
|
31
|
+
* @description Perform an action on a scancode asynchronously
|
|
32
|
+
*
|
|
33
|
+
* @tags scancodes
|
|
34
|
+
* @name PutApiV2ScancodesIdCallAsyncAction
|
|
35
|
+
* @summary Perform an action on a scancode asynchronously
|
|
36
|
+
* @request PUT:/api/v2/scancodes/{id}/call_async/{action}
|
|
37
|
+
*/
|
|
38
|
+
export declare const putApiV2ScancodesIdCallAsyncAction: (client: HttpClient, action: string, id: number, data: PutApiV2ScancodesIdCallAsyncActionRequest, params?: RequestParams) => Promise<ApiSharedEntitiesSidekiqBatch>;
|
|
21
39
|
/**
|
|
22
40
|
* @description Get all scancodes
|
|
23
41
|
*
|
|
@@ -36,3 +54,21 @@ export declare const getApiV21Scancodes: (client: HttpClient, query: GetApiV21Sc
|
|
|
36
54
|
* @request PUT:/api/v2.1/scancodes/{id}
|
|
37
55
|
*/
|
|
38
56
|
export declare const putApiV21ScancodesId: (client: HttpClient, id: number, data: PutApiV21ScancodesIdRequest, params?: RequestParams) => Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* @description Perform an action on a scancode
|
|
59
|
+
*
|
|
60
|
+
* @tags scancodes
|
|
61
|
+
* @name PutApiV21ScancodesIdCallAction
|
|
62
|
+
* @summary Perform an action on a scancode
|
|
63
|
+
* @request PUT:/api/v2.1/scancodes/{id}/call/{action}
|
|
64
|
+
*/
|
|
65
|
+
export declare const putApiV21ScancodesIdCallAction: (client: HttpClient, action: string, id: number, data: PutApiV21ScancodesIdCallActionRequest, params?: RequestParams) => Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* @description Perform an action on a scancode asynchronously
|
|
68
|
+
*
|
|
69
|
+
* @tags scancodes
|
|
70
|
+
* @name PutApiV21ScancodesIdCallAsyncAction
|
|
71
|
+
* @summary Perform an action on a scancode asynchronously
|
|
72
|
+
* @request PUT:/api/v2.1/scancodes/{id}/call_async/{action}
|
|
73
|
+
*/
|
|
74
|
+
export declare const putApiV21ScancodesIdCallAsyncAction: (client: HttpClient, action: string, id: number, data: PutApiV21ScancodesIdCallAsyncActionRequest, params?: RequestParams) => Promise<ApiSharedEntitiesSidekiqBatch>;
|
|
@@ -19463,6 +19463,8 @@ export interface PostApiV21TemplatesRequest {
|
|
|
19463
19463
|
default?: boolean;
|
|
19464
19464
|
/** Name of the template */
|
|
19465
19465
|
name: string;
|
|
19466
|
+
/** the template size */
|
|
19467
|
+
size?: string;
|
|
19466
19468
|
/**
|
|
19467
19469
|
* ID of the template type
|
|
19468
19470
|
* @format int32
|
|
@@ -22907,6 +22909,8 @@ export interface PostApiV2TemplatesRequest {
|
|
|
22907
22909
|
default?: boolean;
|
|
22908
22910
|
/** Name of the template */
|
|
22909
22911
|
name: string;
|
|
22912
|
+
/** the template size */
|
|
22913
|
+
size?: string;
|
|
22910
22914
|
/**
|
|
22911
22915
|
* ID of the template type
|
|
22912
22916
|
* @format int32
|
|
@@ -25316,6 +25320,16 @@ export interface PutApiV21ScancodeAliasesIdRequest {
|
|
|
25316
25320
|
/** the scancode for the scancode_alias */
|
|
25317
25321
|
scancode?: string;
|
|
25318
25322
|
}
|
|
25323
|
+
export interface PutApiV21ScancodesIdCallActionRequest {
|
|
25324
|
+
action?: string;
|
|
25325
|
+
/** Method params */
|
|
25326
|
+
args?: string;
|
|
25327
|
+
}
|
|
25328
|
+
export interface PutApiV21ScancodesIdCallAsyncActionRequest {
|
|
25329
|
+
action?: string;
|
|
25330
|
+
/** Method params */
|
|
25331
|
+
args?: string;
|
|
25332
|
+
}
|
|
25319
25333
|
export interface PutApiV21ScancodesIdRequest {
|
|
25320
25334
|
/** is this scancode active? */
|
|
25321
25335
|
active?: boolean;
|
|
@@ -25606,6 +25620,8 @@ export interface PutApiV21TemplatesIdRequest {
|
|
|
25606
25620
|
content?: string;
|
|
25607
25621
|
/** Name of the template */
|
|
25608
25622
|
name?: string;
|
|
25623
|
+
/** the template size */
|
|
25624
|
+
size?: string;
|
|
25609
25625
|
}
|
|
25610
25626
|
export interface PutApiV21TransportationMarkupsIdRequest {
|
|
25611
25627
|
/** A percentage added to the postage cost */
|
|
@@ -28131,6 +28147,16 @@ export interface PutApiV2ScancodeAliasesIdRequest {
|
|
|
28131
28147
|
/** the scancode for the scancode_alias */
|
|
28132
28148
|
scancode?: string;
|
|
28133
28149
|
}
|
|
28150
|
+
export interface PutApiV2ScancodesIdCallActionRequest {
|
|
28151
|
+
action?: string;
|
|
28152
|
+
/** Method params */
|
|
28153
|
+
args?: string;
|
|
28154
|
+
}
|
|
28155
|
+
export interface PutApiV2ScancodesIdCallAsyncActionRequest {
|
|
28156
|
+
action?: string;
|
|
28157
|
+
/** Method params */
|
|
28158
|
+
args?: string;
|
|
28159
|
+
}
|
|
28134
28160
|
export interface PutApiV2ScancodesIdRequest {
|
|
28135
28161
|
/** is this scancode active? */
|
|
28136
28162
|
active?: boolean;
|
|
@@ -28421,6 +28447,8 @@ export interface PutApiV2TemplatesIdRequest {
|
|
|
28421
28447
|
content?: string;
|
|
28422
28448
|
/** Name of the template */
|
|
28423
28449
|
name?: string;
|
|
28450
|
+
/** the template size */
|
|
28451
|
+
size?: string;
|
|
28424
28452
|
}
|
|
28425
28453
|
export interface PutApiV2TransportationMarkupsIdRequest {
|
|
28426
28454
|
/** A percentage added to the postage cost */
|
|
@@ -8278,6 +8278,8 @@ export interface PostApiV21TemplatesRequest {
|
|
|
8278
8278
|
default?: boolean;
|
|
8279
8279
|
/** Name of the template */
|
|
8280
8280
|
name: string;
|
|
8281
|
+
/** the template size */
|
|
8282
|
+
size?: string;
|
|
8281
8283
|
/**
|
|
8282
8284
|
* ID of the template type
|
|
8283
8285
|
* @format int32
|
|
@@ -10165,6 +10167,8 @@ export interface PostApiV2TemplatesRequest {
|
|
|
10165
10167
|
default?: boolean;
|
|
10166
10168
|
/** Name of the template */
|
|
10167
10169
|
name: string;
|
|
10170
|
+
/** the template size */
|
|
10171
|
+
size?: string;
|
|
10168
10172
|
/**
|
|
10169
10173
|
* ID of the template type
|
|
10170
10174
|
* @format int32
|
|
@@ -11305,6 +11309,8 @@ export interface PutApiV21TemplatesIdRequest {
|
|
|
11305
11309
|
content?: string;
|
|
11306
11310
|
/** Name of the template */
|
|
11307
11311
|
name?: string;
|
|
11312
|
+
/** the template size */
|
|
11313
|
+
size?: string;
|
|
11308
11314
|
}
|
|
11309
11315
|
|
|
11310
11316
|
export interface PutApiV21WholesaleItemsIdRequest {
|
|
@@ -12488,6 +12494,8 @@ export interface PutApiV2TemplatesIdRequest {
|
|
|
12488
12494
|
content?: string;
|
|
12489
12495
|
/** Name of the template */
|
|
12490
12496
|
name?: string;
|
|
12497
|
+
/** the template size */
|
|
12498
|
+
size?: string;
|
|
12491
12499
|
}
|
|
12492
12500
|
|
|
12493
12501
|
export interface PutApiV2WholesaleItemsIdRequest {
|