@whiplashmerch/whiplash-api-client 2.0.7 → 2.0.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.
@@ -0,0 +1,146 @@
1
+ import { ApiV21EntitiesPostResponse, ApiV2EntitiesCount, ApiV2EntitiesPackage, ApiV2EntitiesPallet, GetApiV21PalletsCountParams, GetApiV21PalletsIdPackagesParams, GetApiV21PalletsParams, GetApiV2PalletsCountParams, GetApiV2PalletsIdPackagesParams, GetApiV2PalletsParams, PutApiV21PalletsIdCallActionRequest, PutApiV21PalletsIdRequest, PutApiV2PalletsIdCallActionRequest, PutApiV2PalletsIdRequest } from "./data-contracts";
2
+ import { HttpClient, RequestParams } from "./http-client";
3
+ /**
4
+ * @description Get all pallets
5
+ *
6
+ * @tags pallets
7
+ * @name GetApiV2Pallets
8
+ * @summary List all pallets
9
+ * @request GET:/api/v2/pallets
10
+ */
11
+ export declare const getApiV2Pallets: (client: HttpClient, query: GetApiV2PalletsParams, params?: RequestParams) => Promise<ApiV2EntitiesPallet[]>;
12
+ /**
13
+ * @description Create a pallet
14
+ *
15
+ * @tags pallets
16
+ * @name PostApiV2Pallets
17
+ * @summary Create a pallet
18
+ * @request POST:/api/v2/pallets
19
+ */
20
+ export declare const postApiV2Pallets: (client: HttpClient, params?: RequestParams) => Promise<ApiV2EntitiesPallet>;
21
+ /**
22
+ * @description Returns count of pallets
23
+ *
24
+ * @tags pallets
25
+ * @name GetApiV2PalletsCount
26
+ * @summary Count pallets
27
+ * @request GET:/api/v2/pallets/count
28
+ */
29
+ export declare const getApiV2PalletsCount: (client: HttpClient, query: GetApiV2PalletsCountParams, params?: RequestParams) => Promise<ApiV2EntitiesCount>;
30
+ /**
31
+ * @description Get a pallet
32
+ *
33
+ * @tags pallets
34
+ * @name GetApiV2PalletsId
35
+ * @summary Get a pallet by ID
36
+ * @request GET:/api/v2/pallets/{id}
37
+ */
38
+ export declare const getApiV2PalletsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesPallet>;
39
+ /**
40
+ * @description Update a pallet
41
+ *
42
+ * @tags pallets
43
+ * @name PutApiV2PalletsId
44
+ * @summary Update a pallet
45
+ * @request PUT:/api/v2/pallets/{id}
46
+ */
47
+ export declare const putApiV2PalletsId: (client: HttpClient, id: number, data: PutApiV2PalletsIdRequest, params?: RequestParams) => Promise<ApiV2EntitiesPallet>;
48
+ /**
49
+ * @description Destroy a pallet
50
+ *
51
+ * @tags pallets
52
+ * @name DeleteApiV2PalletsId
53
+ * @summary Destroy a pallet
54
+ * @request DELETE:/api/v2/pallets/{id}
55
+ */
56
+ export declare const deleteApiV2PalletsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
57
+ /**
58
+ * @description Perform an action on a pallet
59
+ *
60
+ * @tags pallets
61
+ * @name PutApiV2PalletsIdCallAction
62
+ * @summary Perform an action on a pallet
63
+ * @request PUT:/api/v2/pallets/{id}/call/{action}
64
+ */
65
+ export declare const putApiV2PalletsIdCallAction: (client: HttpClient, action: string, id: number, data: PutApiV2PalletsIdCallActionRequest, params?: RequestParams) => Promise<ApiV2EntitiesPallet>;
66
+ /**
67
+ * @description Get all packages for a Pallet
68
+ *
69
+ * @tags pallets
70
+ * @name GetApiV2PalletsIdPackages
71
+ * @summary List all packages for a pallet
72
+ * @request GET:/api/v2/pallets/{id}/packages
73
+ */
74
+ export declare const getApiV2PalletsIdPackages: (client: HttpClient, { id, ...query }: GetApiV2PalletsIdPackagesParams, params?: RequestParams) => Promise<ApiV2EntitiesPackage[]>;
75
+ /**
76
+ * @description Get all pallets
77
+ *
78
+ * @tags pallets
79
+ * @name GetApiV21Pallets
80
+ * @summary List all pallets
81
+ * @request GET:/api/v2.1/pallets
82
+ */
83
+ export declare const getApiV21Pallets: (client: HttpClient, query: GetApiV21PalletsParams, params?: RequestParams) => Promise<ApiV2EntitiesPallet[]>;
84
+ /**
85
+ * @description Create a pallet
86
+ *
87
+ * @tags pallets
88
+ * @name PostApiV21Pallets
89
+ * @summary Create a pallet
90
+ * @request POST:/api/v2.1/pallets
91
+ */
92
+ export declare const postApiV21Pallets: (client: HttpClient, params?: RequestParams) => Promise<ApiV21EntitiesPostResponse>;
93
+ /**
94
+ * @description Returns count of pallets
95
+ *
96
+ * @tags pallets
97
+ * @name GetApiV21PalletsCount
98
+ * @summary Count pallets
99
+ * @request GET:/api/v2.1/pallets/count
100
+ */
101
+ export declare const getApiV21PalletsCount: (client: HttpClient, query: GetApiV21PalletsCountParams, params?: RequestParams) => Promise<ApiV2EntitiesCount>;
102
+ /**
103
+ * @description Get a pallet
104
+ *
105
+ * @tags pallets
106
+ * @name GetApiV21PalletsId
107
+ * @summary Get a pallet by ID
108
+ * @request GET:/api/v2.1/pallets/{id}
109
+ */
110
+ export declare const getApiV21PalletsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesPallet>;
111
+ /**
112
+ * @description Update a pallet
113
+ *
114
+ * @tags pallets
115
+ * @name PutApiV21PalletsId
116
+ * @summary Update a pallet
117
+ * @request PUT:/api/v2.1/pallets/{id}
118
+ */
119
+ export declare const putApiV21PalletsId: (client: HttpClient, id: number, data: PutApiV21PalletsIdRequest, params?: RequestParams) => Promise<void>;
120
+ /**
121
+ * @description Destroy a pallet
122
+ *
123
+ * @tags pallets
124
+ * @name DeleteApiV21PalletsId
125
+ * @summary Destroy a pallet
126
+ * @request DELETE:/api/v2.1/pallets/{id}
127
+ */
128
+ export declare const deleteApiV21PalletsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
129
+ /**
130
+ * @description Perform an action on a pallet
131
+ *
132
+ * @tags pallets
133
+ * @name PutApiV21PalletsIdCallAction
134
+ * @summary Perform an action on a pallet
135
+ * @request PUT:/api/v2.1/pallets/{id}/call/{action}
136
+ */
137
+ export declare const putApiV21PalletsIdCallAction: (client: HttpClient, action: string, id: number, data: PutApiV21PalletsIdCallActionRequest, params?: RequestParams) => Promise<void>;
138
+ /**
139
+ * @description Get all packages for a Pallet
140
+ *
141
+ * @tags pallets
142
+ * @name GetApiV21PalletsIdPackages
143
+ * @summary List all packages for a pallet
144
+ * @request GET:/api/v2.1/pallets/{id}/packages
145
+ */
146
+ export declare const getApiV21PalletsIdPackages: (client: HttpClient, { id, ...query }: GetApiV21PalletsIdPackagesParams, params?: RequestParams) => Promise<ApiV2EntitiesPackage[]>;