@arascreative/erp-client 0.0.0-stage → 1.1.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/generated/api.d.ts +2282 -0
- package/dist/generated/api.d.ts.map +1 -0
- package/dist/generated/api.js +961 -0
- package/dist/generated/zod.d.ts +1087 -0
- package/dist/generated/zod.d.ts.map +1 -0
- package/dist/generated/zod.js +404 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.test.js +13 -0
- package/package.json +57 -3
- package/README.md +0 -3
|
@@ -0,0 +1,2282 @@
|
|
|
1
|
+
import type { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
export type GetAntiforgeryToken200 = {
|
|
3
|
+
requestToken: string;
|
|
4
|
+
headerName: string;
|
|
5
|
+
};
|
|
6
|
+
export type LoginBody = {
|
|
7
|
+
email: string;
|
|
8
|
+
passwordPlain: string;
|
|
9
|
+
};
|
|
10
|
+
export type Login200User = {
|
|
11
|
+
id: string;
|
|
12
|
+
email: string;
|
|
13
|
+
username: string;
|
|
14
|
+
kind: string;
|
|
15
|
+
};
|
|
16
|
+
export type Login200 = {
|
|
17
|
+
user: Login200User;
|
|
18
|
+
expiresAt: string;
|
|
19
|
+
requestToken: string;
|
|
20
|
+
headerName: string;
|
|
21
|
+
};
|
|
22
|
+
export type Login400Errors = {
|
|
23
|
+
[key: string]: string[];
|
|
24
|
+
};
|
|
25
|
+
export type Login400 = {
|
|
26
|
+
type: string;
|
|
27
|
+
title: string;
|
|
28
|
+
status: number;
|
|
29
|
+
detail?: string;
|
|
30
|
+
instance?: string;
|
|
31
|
+
errors?: Login400Errors;
|
|
32
|
+
};
|
|
33
|
+
export type Login401Errors = {
|
|
34
|
+
[key: string]: string[];
|
|
35
|
+
};
|
|
36
|
+
export type Login401 = {
|
|
37
|
+
type: string;
|
|
38
|
+
title: string;
|
|
39
|
+
status: number;
|
|
40
|
+
detail?: string;
|
|
41
|
+
instance?: string;
|
|
42
|
+
errors?: Login401Errors;
|
|
43
|
+
};
|
|
44
|
+
export type Login403Errors = {
|
|
45
|
+
[key: string]: string[];
|
|
46
|
+
};
|
|
47
|
+
export type Login403 = {
|
|
48
|
+
type: string;
|
|
49
|
+
title: string;
|
|
50
|
+
status: number;
|
|
51
|
+
detail?: string;
|
|
52
|
+
instance?: string;
|
|
53
|
+
errors?: Login403Errors;
|
|
54
|
+
};
|
|
55
|
+
export type Login429Errors = {
|
|
56
|
+
[key: string]: string[];
|
|
57
|
+
};
|
|
58
|
+
export type Login429 = {
|
|
59
|
+
type: string;
|
|
60
|
+
title: string;
|
|
61
|
+
status: number;
|
|
62
|
+
detail?: string;
|
|
63
|
+
instance?: string;
|
|
64
|
+
errors?: Login429Errors;
|
|
65
|
+
};
|
|
66
|
+
export type GetCurrentUser200User = {
|
|
67
|
+
id: string;
|
|
68
|
+
email: string;
|
|
69
|
+
username: string;
|
|
70
|
+
kind: string;
|
|
71
|
+
};
|
|
72
|
+
export type GetCurrentUser200 = {
|
|
73
|
+
user: GetCurrentUser200User;
|
|
74
|
+
};
|
|
75
|
+
export type GetCurrentUser401Errors = {
|
|
76
|
+
[key: string]: string[];
|
|
77
|
+
};
|
|
78
|
+
export type GetCurrentUser401 = {
|
|
79
|
+
type: string;
|
|
80
|
+
title: string;
|
|
81
|
+
status: number;
|
|
82
|
+
detail?: string;
|
|
83
|
+
instance?: string;
|
|
84
|
+
errors?: GetCurrentUser401Errors;
|
|
85
|
+
};
|
|
86
|
+
export type Logout200 = {
|
|
87
|
+
requestToken: string;
|
|
88
|
+
headerName: string;
|
|
89
|
+
};
|
|
90
|
+
export type Logout403Errors = {
|
|
91
|
+
[key: string]: string[];
|
|
92
|
+
};
|
|
93
|
+
export type Logout403 = {
|
|
94
|
+
type: string;
|
|
95
|
+
title: string;
|
|
96
|
+
status: number;
|
|
97
|
+
detail?: string;
|
|
98
|
+
instance?: string;
|
|
99
|
+
errors?: Logout403Errors;
|
|
100
|
+
};
|
|
101
|
+
export type CreateOwnerBody = {
|
|
102
|
+
email: string;
|
|
103
|
+
username: string;
|
|
104
|
+
passwordPlain: string;
|
|
105
|
+
};
|
|
106
|
+
export type CreateOwner201 = {
|
|
107
|
+
id: string;
|
|
108
|
+
};
|
|
109
|
+
export type CreateOwner400Errors = {
|
|
110
|
+
[key: string]: string[];
|
|
111
|
+
};
|
|
112
|
+
export type CreateOwner400 = {
|
|
113
|
+
type: string;
|
|
114
|
+
title: string;
|
|
115
|
+
status: number;
|
|
116
|
+
detail?: string;
|
|
117
|
+
instance?: string;
|
|
118
|
+
errors?: CreateOwner400Errors;
|
|
119
|
+
};
|
|
120
|
+
export type CreateOwner403Errors = {
|
|
121
|
+
[key: string]: string[];
|
|
122
|
+
};
|
|
123
|
+
export type CreateOwner403 = {
|
|
124
|
+
type: string;
|
|
125
|
+
title: string;
|
|
126
|
+
status: number;
|
|
127
|
+
detail?: string;
|
|
128
|
+
instance?: string;
|
|
129
|
+
errors?: CreateOwner403Errors;
|
|
130
|
+
};
|
|
131
|
+
export type CreateOwner409Errors = {
|
|
132
|
+
[key: string]: string[];
|
|
133
|
+
};
|
|
134
|
+
export type CreateOwner409 = {
|
|
135
|
+
type: string;
|
|
136
|
+
title: string;
|
|
137
|
+
status: number;
|
|
138
|
+
detail?: string;
|
|
139
|
+
instance?: string;
|
|
140
|
+
errors?: CreateOwner409Errors;
|
|
141
|
+
};
|
|
142
|
+
export type CreateOwner422Errors = {
|
|
143
|
+
[key: string]: string[];
|
|
144
|
+
};
|
|
145
|
+
export type CreateOwner422 = {
|
|
146
|
+
type: string;
|
|
147
|
+
title: string;
|
|
148
|
+
status: number;
|
|
149
|
+
detail?: string;
|
|
150
|
+
instance?: string;
|
|
151
|
+
errors?: CreateOwner422Errors;
|
|
152
|
+
};
|
|
153
|
+
export type SearchAddressesParams = {
|
|
154
|
+
keyword: string;
|
|
155
|
+
limit?: number;
|
|
156
|
+
};
|
|
157
|
+
export type SearchAddresses200ItemExternalId = string | null;
|
|
158
|
+
export type SearchAddresses200Item = {
|
|
159
|
+
addressId: string;
|
|
160
|
+
externalId: SearchAddresses200ItemExternalId;
|
|
161
|
+
destinationCode: string;
|
|
162
|
+
originCode: string;
|
|
163
|
+
provinceName: string;
|
|
164
|
+
cityName: string;
|
|
165
|
+
districtName: string;
|
|
166
|
+
subDistrictName: string;
|
|
167
|
+
zipCode: string;
|
|
168
|
+
};
|
|
169
|
+
export type SearchAddresses400Errors = {
|
|
170
|
+
[key: string]: string[];
|
|
171
|
+
};
|
|
172
|
+
export type SearchAddresses400 = {
|
|
173
|
+
type: string;
|
|
174
|
+
title: string;
|
|
175
|
+
status: number;
|
|
176
|
+
detail?: string;
|
|
177
|
+
instance?: string;
|
|
178
|
+
errors?: SearchAddresses400Errors;
|
|
179
|
+
};
|
|
180
|
+
export type InitiateUploadBody = {
|
|
181
|
+
originalName: string;
|
|
182
|
+
mimeType: string;
|
|
183
|
+
sizeBytes: number;
|
|
184
|
+
checksum: string;
|
|
185
|
+
purpose: string;
|
|
186
|
+
expiresInSeconds?: number;
|
|
187
|
+
};
|
|
188
|
+
export type InitiateUpload201 = {
|
|
189
|
+
fileId: string;
|
|
190
|
+
storageKey: string;
|
|
191
|
+
presignedUploadUrl: string;
|
|
192
|
+
expiresInSeconds: number;
|
|
193
|
+
};
|
|
194
|
+
export type InitiateUpload400Errors = {
|
|
195
|
+
[key: string]: string[];
|
|
196
|
+
};
|
|
197
|
+
export type InitiateUpload400 = {
|
|
198
|
+
type: string;
|
|
199
|
+
title: string;
|
|
200
|
+
status: number;
|
|
201
|
+
detail?: string;
|
|
202
|
+
instance?: string;
|
|
203
|
+
errors?: InitiateUpload400Errors;
|
|
204
|
+
};
|
|
205
|
+
export type InitiateUpload413Errors = {
|
|
206
|
+
[key: string]: string[];
|
|
207
|
+
};
|
|
208
|
+
export type InitiateUpload413 = {
|
|
209
|
+
type: string;
|
|
210
|
+
title: string;
|
|
211
|
+
status: number;
|
|
212
|
+
detail?: string;
|
|
213
|
+
instance?: string;
|
|
214
|
+
errors?: InitiateUpload413Errors;
|
|
215
|
+
};
|
|
216
|
+
export type InitiateUpload422Errors = {
|
|
217
|
+
[key: string]: string[];
|
|
218
|
+
};
|
|
219
|
+
export type InitiateUpload422 = {
|
|
220
|
+
type: string;
|
|
221
|
+
title: string;
|
|
222
|
+
status: number;
|
|
223
|
+
detail?: string;
|
|
224
|
+
instance?: string;
|
|
225
|
+
errors?: InitiateUpload422Errors;
|
|
226
|
+
};
|
|
227
|
+
export type UploadFileBody = {
|
|
228
|
+
originalName: string;
|
|
229
|
+
mimeType: string;
|
|
230
|
+
contentBase64: string;
|
|
231
|
+
purpose: string;
|
|
232
|
+
uploadedBy?: string;
|
|
233
|
+
};
|
|
234
|
+
export type UploadFile201 = {
|
|
235
|
+
id: string;
|
|
236
|
+
originalName: string;
|
|
237
|
+
mimeType: string;
|
|
238
|
+
sizeBytes: number;
|
|
239
|
+
checksum: string;
|
|
240
|
+
status: string;
|
|
241
|
+
visibility: string;
|
|
242
|
+
purpose: string;
|
|
243
|
+
accessUrl: string;
|
|
244
|
+
expiresAt: string;
|
|
245
|
+
};
|
|
246
|
+
export type UploadFile400Errors = {
|
|
247
|
+
[key: string]: string[];
|
|
248
|
+
};
|
|
249
|
+
export type UploadFile400 = {
|
|
250
|
+
type: string;
|
|
251
|
+
title: string;
|
|
252
|
+
status: number;
|
|
253
|
+
detail?: string;
|
|
254
|
+
instance?: string;
|
|
255
|
+
errors?: UploadFile400Errors;
|
|
256
|
+
};
|
|
257
|
+
export type UploadFile413Errors = {
|
|
258
|
+
[key: string]: string[];
|
|
259
|
+
};
|
|
260
|
+
export type UploadFile413 = {
|
|
261
|
+
type: string;
|
|
262
|
+
title: string;
|
|
263
|
+
status: number;
|
|
264
|
+
detail?: string;
|
|
265
|
+
instance?: string;
|
|
266
|
+
errors?: UploadFile413Errors;
|
|
267
|
+
};
|
|
268
|
+
export type UploadFile422Errors = {
|
|
269
|
+
[key: string]: string[];
|
|
270
|
+
};
|
|
271
|
+
export type UploadFile422 = {
|
|
272
|
+
type: string;
|
|
273
|
+
title: string;
|
|
274
|
+
status: number;
|
|
275
|
+
detail?: string;
|
|
276
|
+
instance?: string;
|
|
277
|
+
errors?: UploadFile422Errors;
|
|
278
|
+
};
|
|
279
|
+
export type ToggleWarehouseStatus200 = {
|
|
280
|
+
isActive: boolean;
|
|
281
|
+
};
|
|
282
|
+
export type ToggleWarehouseStatus404Errors = {
|
|
283
|
+
[key: string]: string[];
|
|
284
|
+
};
|
|
285
|
+
export type ToggleWarehouseStatus404 = {
|
|
286
|
+
type: string;
|
|
287
|
+
title: string;
|
|
288
|
+
status: number;
|
|
289
|
+
detail?: string;
|
|
290
|
+
instance?: string;
|
|
291
|
+
errors?: ToggleWarehouseStatus404Errors;
|
|
292
|
+
};
|
|
293
|
+
export type ChangeStockItemStatusBody = {
|
|
294
|
+
status: string;
|
|
295
|
+
};
|
|
296
|
+
export type ChangeStockItemStatus200 = {
|
|
297
|
+
status: string;
|
|
298
|
+
};
|
|
299
|
+
export type ChangeStockItemStatus400Errors = {
|
|
300
|
+
[key: string]: string[];
|
|
301
|
+
};
|
|
302
|
+
export type ChangeStockItemStatus400 = {
|
|
303
|
+
type: string;
|
|
304
|
+
title: string;
|
|
305
|
+
status: number;
|
|
306
|
+
detail?: string;
|
|
307
|
+
instance?: string;
|
|
308
|
+
errors?: ChangeStockItemStatus400Errors;
|
|
309
|
+
};
|
|
310
|
+
export type ChangeStockItemStatus404Errors = {
|
|
311
|
+
[key: string]: string[];
|
|
312
|
+
};
|
|
313
|
+
export type ChangeStockItemStatus404 = {
|
|
314
|
+
type: string;
|
|
315
|
+
title: string;
|
|
316
|
+
status: number;
|
|
317
|
+
detail?: string;
|
|
318
|
+
instance?: string;
|
|
319
|
+
errors?: ChangeStockItemStatus404Errors;
|
|
320
|
+
};
|
|
321
|
+
export type CompleteUploadBody = {
|
|
322
|
+
actualChecksum?: string;
|
|
323
|
+
};
|
|
324
|
+
export type CompleteUpload200 = {
|
|
325
|
+
id: string;
|
|
326
|
+
status: string;
|
|
327
|
+
activatedAt: string;
|
|
328
|
+
};
|
|
329
|
+
export type CompleteUpload400Errors = {
|
|
330
|
+
[key: string]: string[];
|
|
331
|
+
};
|
|
332
|
+
export type CompleteUpload400 = {
|
|
333
|
+
type: string;
|
|
334
|
+
title: string;
|
|
335
|
+
status: number;
|
|
336
|
+
detail?: string;
|
|
337
|
+
instance?: string;
|
|
338
|
+
errors?: CompleteUpload400Errors;
|
|
339
|
+
};
|
|
340
|
+
export type CompleteUpload404Errors = {
|
|
341
|
+
[key: string]: string[];
|
|
342
|
+
};
|
|
343
|
+
export type CompleteUpload404 = {
|
|
344
|
+
type: string;
|
|
345
|
+
title: string;
|
|
346
|
+
status: number;
|
|
347
|
+
detail?: string;
|
|
348
|
+
instance?: string;
|
|
349
|
+
errors?: CompleteUpload404Errors;
|
|
350
|
+
};
|
|
351
|
+
export type CompleteUpload422Errors = {
|
|
352
|
+
[key: string]: string[];
|
|
353
|
+
};
|
|
354
|
+
export type CompleteUpload422 = {
|
|
355
|
+
type: string;
|
|
356
|
+
title: string;
|
|
357
|
+
status: number;
|
|
358
|
+
detail?: string;
|
|
359
|
+
instance?: string;
|
|
360
|
+
errors?: CompleteUpload422Errors;
|
|
361
|
+
};
|
|
362
|
+
export type CompleteUpload500Errors = {
|
|
363
|
+
[key: string]: string[];
|
|
364
|
+
};
|
|
365
|
+
export type CompleteUpload500 = {
|
|
366
|
+
type: string;
|
|
367
|
+
title: string;
|
|
368
|
+
status: number;
|
|
369
|
+
detail?: string;
|
|
370
|
+
instance?: string;
|
|
371
|
+
errors?: CompleteUpload500Errors;
|
|
372
|
+
};
|
|
373
|
+
export type GetFileAccessUrlParams = {
|
|
374
|
+
expiresInSeconds?: number;
|
|
375
|
+
};
|
|
376
|
+
export type GetFileAccessUrl200 = {
|
|
377
|
+
fileId: string;
|
|
378
|
+
url: string;
|
|
379
|
+
isPublic: boolean;
|
|
380
|
+
expiresAt: string;
|
|
381
|
+
};
|
|
382
|
+
export type GetFileAccessUrl400Errors = {
|
|
383
|
+
[key: string]: string[];
|
|
384
|
+
};
|
|
385
|
+
export type GetFileAccessUrl400 = {
|
|
386
|
+
type: string;
|
|
387
|
+
title: string;
|
|
388
|
+
status: number;
|
|
389
|
+
detail?: string;
|
|
390
|
+
instance?: string;
|
|
391
|
+
errors?: GetFileAccessUrl400Errors;
|
|
392
|
+
};
|
|
393
|
+
export type GetFileAccessUrl404Errors = {
|
|
394
|
+
[key: string]: string[];
|
|
395
|
+
};
|
|
396
|
+
export type GetFileAccessUrl404 = {
|
|
397
|
+
type: string;
|
|
398
|
+
title: string;
|
|
399
|
+
status: number;
|
|
400
|
+
detail?: string;
|
|
401
|
+
instance?: string;
|
|
402
|
+
errors?: GetFileAccessUrl404Errors;
|
|
403
|
+
};
|
|
404
|
+
export type GetFileAccessUrl422Errors = {
|
|
405
|
+
[key: string]: string[];
|
|
406
|
+
};
|
|
407
|
+
export type GetFileAccessUrl422 = {
|
|
408
|
+
type: string;
|
|
409
|
+
title: string;
|
|
410
|
+
status: number;
|
|
411
|
+
detail?: string;
|
|
412
|
+
instance?: string;
|
|
413
|
+
errors?: GetFileAccessUrl422Errors;
|
|
414
|
+
};
|
|
415
|
+
export type GetWarehouseById200Pic = {
|
|
416
|
+
name: string;
|
|
417
|
+
phone: string;
|
|
418
|
+
};
|
|
419
|
+
export type GetWarehouseById200AddressDestinationCode = string | null;
|
|
420
|
+
export type GetWarehouseById200AddressProvinceName = string | null;
|
|
421
|
+
export type GetWarehouseById200AddressCityName = string | null;
|
|
422
|
+
export type GetWarehouseById200AddressDistrictName = string | null;
|
|
423
|
+
export type GetWarehouseById200AddressSubDistrictName = string | null;
|
|
424
|
+
export type GetWarehouseById200AddressZipCode = string | null;
|
|
425
|
+
export type GetWarehouseById200Address = {
|
|
426
|
+
addressId: string;
|
|
427
|
+
destinationCode: GetWarehouseById200AddressDestinationCode;
|
|
428
|
+
provinceName: GetWarehouseById200AddressProvinceName;
|
|
429
|
+
cityName: GetWarehouseById200AddressCityName;
|
|
430
|
+
districtName: GetWarehouseById200AddressDistrictName;
|
|
431
|
+
subDistrictName: GetWarehouseById200AddressSubDistrictName;
|
|
432
|
+
zipCode: GetWarehouseById200AddressZipCode;
|
|
433
|
+
};
|
|
434
|
+
export type GetWarehouseById200FullAddressText = string | null;
|
|
435
|
+
export type GetWarehouseById200 = {
|
|
436
|
+
id: string;
|
|
437
|
+
name: string;
|
|
438
|
+
pic: GetWarehouseById200Pic;
|
|
439
|
+
address: GetWarehouseById200Address;
|
|
440
|
+
fullAddressText: GetWarehouseById200FullAddressText;
|
|
441
|
+
isActive: boolean;
|
|
442
|
+
createdAt: string;
|
|
443
|
+
updatedAt: string;
|
|
444
|
+
};
|
|
445
|
+
export type GetWarehouseById404Errors = {
|
|
446
|
+
[key: string]: string[];
|
|
447
|
+
};
|
|
448
|
+
export type GetWarehouseById404 = {
|
|
449
|
+
type: string;
|
|
450
|
+
title: string;
|
|
451
|
+
status: number;
|
|
452
|
+
detail?: string;
|
|
453
|
+
instance?: string;
|
|
454
|
+
errors?: GetWarehouseById404Errors;
|
|
455
|
+
};
|
|
456
|
+
export type UpdateWarehouseBodyFullAddressText = string | null;
|
|
457
|
+
export type UpdateWarehouseBody = {
|
|
458
|
+
name: string;
|
|
459
|
+
picName: string;
|
|
460
|
+
picPhone: string;
|
|
461
|
+
addressId: string;
|
|
462
|
+
fullAddressText?: UpdateWarehouseBodyFullAddressText;
|
|
463
|
+
};
|
|
464
|
+
export type UpdateWarehouse400Errors = {
|
|
465
|
+
[key: string]: string[];
|
|
466
|
+
};
|
|
467
|
+
export type UpdateWarehouse400 = {
|
|
468
|
+
type: string;
|
|
469
|
+
title: string;
|
|
470
|
+
status: number;
|
|
471
|
+
detail?: string;
|
|
472
|
+
instance?: string;
|
|
473
|
+
errors?: UpdateWarehouse400Errors;
|
|
474
|
+
};
|
|
475
|
+
export type UpdateWarehouse404Errors = {
|
|
476
|
+
[key: string]: string[];
|
|
477
|
+
};
|
|
478
|
+
export type UpdateWarehouse404 = {
|
|
479
|
+
type: string;
|
|
480
|
+
title: string;
|
|
481
|
+
status: number;
|
|
482
|
+
detail?: string;
|
|
483
|
+
instance?: string;
|
|
484
|
+
errors?: UpdateWarehouse404Errors;
|
|
485
|
+
};
|
|
486
|
+
export type UpdateWarehouse409Errors = {
|
|
487
|
+
[key: string]: string[];
|
|
488
|
+
};
|
|
489
|
+
export type UpdateWarehouse409 = {
|
|
490
|
+
type: string;
|
|
491
|
+
title: string;
|
|
492
|
+
status: number;
|
|
493
|
+
detail?: string;
|
|
494
|
+
instance?: string;
|
|
495
|
+
errors?: UpdateWarehouse409Errors;
|
|
496
|
+
};
|
|
497
|
+
export type UpdateWarehouse422Errors = {
|
|
498
|
+
[key: string]: string[];
|
|
499
|
+
};
|
|
500
|
+
export type UpdateWarehouse422 = {
|
|
501
|
+
type: string;
|
|
502
|
+
title: string;
|
|
503
|
+
status: number;
|
|
504
|
+
detail?: string;
|
|
505
|
+
instance?: string;
|
|
506
|
+
errors?: UpdateWarehouse422Errors;
|
|
507
|
+
};
|
|
508
|
+
export type DeleteWarehouse400Errors = {
|
|
509
|
+
[key: string]: string[];
|
|
510
|
+
};
|
|
511
|
+
export type DeleteWarehouse400 = {
|
|
512
|
+
type: string;
|
|
513
|
+
title: string;
|
|
514
|
+
status: number;
|
|
515
|
+
detail?: string;
|
|
516
|
+
instance?: string;
|
|
517
|
+
errors?: DeleteWarehouse400Errors;
|
|
518
|
+
};
|
|
519
|
+
export type DeleteWarehouse404Errors = {
|
|
520
|
+
[key: string]: string[];
|
|
521
|
+
};
|
|
522
|
+
export type DeleteWarehouse404 = {
|
|
523
|
+
type: string;
|
|
524
|
+
title: string;
|
|
525
|
+
status: number;
|
|
526
|
+
detail?: string;
|
|
527
|
+
instance?: string;
|
|
528
|
+
errors?: DeleteWarehouse404Errors;
|
|
529
|
+
};
|
|
530
|
+
export type DeleteWarehouse409Errors = {
|
|
531
|
+
[key: string]: string[];
|
|
532
|
+
};
|
|
533
|
+
export type DeleteWarehouse409 = {
|
|
534
|
+
type: string;
|
|
535
|
+
title: string;
|
|
536
|
+
status: number;
|
|
537
|
+
detail?: string;
|
|
538
|
+
instance?: string;
|
|
539
|
+
errors?: DeleteWarehouse409Errors;
|
|
540
|
+
};
|
|
541
|
+
export type UpdateStockItemBodyImageFileId = string | null;
|
|
542
|
+
export type UpdateStockItemBody = {
|
|
543
|
+
name: string;
|
|
544
|
+
sku: string;
|
|
545
|
+
imageFileId?: UpdateStockItemBodyImageFileId;
|
|
546
|
+
};
|
|
547
|
+
export type UpdateStockItem400Errors = {
|
|
548
|
+
[key: string]: string[];
|
|
549
|
+
};
|
|
550
|
+
export type UpdateStockItem400 = {
|
|
551
|
+
type: string;
|
|
552
|
+
title: string;
|
|
553
|
+
status: number;
|
|
554
|
+
detail?: string;
|
|
555
|
+
instance?: string;
|
|
556
|
+
errors?: UpdateStockItem400Errors;
|
|
557
|
+
};
|
|
558
|
+
export type UpdateStockItem404Errors = {
|
|
559
|
+
[key: string]: string[];
|
|
560
|
+
};
|
|
561
|
+
export type UpdateStockItem404 = {
|
|
562
|
+
type: string;
|
|
563
|
+
title: string;
|
|
564
|
+
status: number;
|
|
565
|
+
detail?: string;
|
|
566
|
+
instance?: string;
|
|
567
|
+
errors?: UpdateStockItem404Errors;
|
|
568
|
+
};
|
|
569
|
+
export type UpdateStockItem409Errors = {
|
|
570
|
+
[key: string]: string[];
|
|
571
|
+
};
|
|
572
|
+
export type UpdateStockItem409 = {
|
|
573
|
+
type: string;
|
|
574
|
+
title: string;
|
|
575
|
+
status: number;
|
|
576
|
+
detail?: string;
|
|
577
|
+
instance?: string;
|
|
578
|
+
errors?: UpdateStockItem409Errors;
|
|
579
|
+
};
|
|
580
|
+
export type DeleteStockItem400Errors = {
|
|
581
|
+
[key: string]: string[];
|
|
582
|
+
};
|
|
583
|
+
export type DeleteStockItem400 = {
|
|
584
|
+
type: string;
|
|
585
|
+
title: string;
|
|
586
|
+
status: number;
|
|
587
|
+
detail?: string;
|
|
588
|
+
instance?: string;
|
|
589
|
+
errors?: DeleteStockItem400Errors;
|
|
590
|
+
};
|
|
591
|
+
export type DeleteStockItem404Errors = {
|
|
592
|
+
[key: string]: string[];
|
|
593
|
+
};
|
|
594
|
+
export type DeleteStockItem404 = {
|
|
595
|
+
type: string;
|
|
596
|
+
title: string;
|
|
597
|
+
status: number;
|
|
598
|
+
detail?: string;
|
|
599
|
+
instance?: string;
|
|
600
|
+
errors?: DeleteStockItem404Errors;
|
|
601
|
+
};
|
|
602
|
+
export type DeleteStockItem409Errors = {
|
|
603
|
+
[key: string]: string[];
|
|
604
|
+
};
|
|
605
|
+
export type DeleteStockItem409 = {
|
|
606
|
+
type: string;
|
|
607
|
+
title: string;
|
|
608
|
+
status: number;
|
|
609
|
+
detail?: string;
|
|
610
|
+
instance?: string;
|
|
611
|
+
errors?: DeleteStockItem409Errors;
|
|
612
|
+
};
|
|
613
|
+
export type GetStoredFileById200 = {
|
|
614
|
+
id: string;
|
|
615
|
+
originalName: string;
|
|
616
|
+
mimeType: string;
|
|
617
|
+
sizeBytes: number;
|
|
618
|
+
checksum: string;
|
|
619
|
+
storageKey: string;
|
|
620
|
+
status: string;
|
|
621
|
+
visibility: string;
|
|
622
|
+
purpose: string;
|
|
623
|
+
uploadedBy: string;
|
|
624
|
+
expiresAt: string;
|
|
625
|
+
createdAt: string;
|
|
626
|
+
activatedAt: string;
|
|
627
|
+
deletedAt: string;
|
|
628
|
+
};
|
|
629
|
+
export type GetStoredFileById400Errors = {
|
|
630
|
+
[key: string]: string[];
|
|
631
|
+
};
|
|
632
|
+
export type GetStoredFileById400 = {
|
|
633
|
+
type: string;
|
|
634
|
+
title: string;
|
|
635
|
+
status: number;
|
|
636
|
+
detail?: string;
|
|
637
|
+
instance?: string;
|
|
638
|
+
errors?: GetStoredFileById400Errors;
|
|
639
|
+
};
|
|
640
|
+
export type GetStoredFileById404Errors = {
|
|
641
|
+
[key: string]: string[];
|
|
642
|
+
};
|
|
643
|
+
export type GetStoredFileById404 = {
|
|
644
|
+
type: string;
|
|
645
|
+
title: string;
|
|
646
|
+
status: number;
|
|
647
|
+
detail?: string;
|
|
648
|
+
instance?: string;
|
|
649
|
+
errors?: GetStoredFileById404Errors;
|
|
650
|
+
};
|
|
651
|
+
export type DeleteStoredFile400Errors = {
|
|
652
|
+
[key: string]: string[];
|
|
653
|
+
};
|
|
654
|
+
export type DeleteStoredFile400 = {
|
|
655
|
+
type: string;
|
|
656
|
+
title: string;
|
|
657
|
+
status: number;
|
|
658
|
+
detail?: string;
|
|
659
|
+
instance?: string;
|
|
660
|
+
errors?: DeleteStoredFile400Errors;
|
|
661
|
+
};
|
|
662
|
+
export type DeleteStoredFile404Errors = {
|
|
663
|
+
[key: string]: string[];
|
|
664
|
+
};
|
|
665
|
+
export type DeleteStoredFile404 = {
|
|
666
|
+
type: string;
|
|
667
|
+
title: string;
|
|
668
|
+
status: number;
|
|
669
|
+
detail?: string;
|
|
670
|
+
instance?: string;
|
|
671
|
+
errors?: DeleteStoredFile404Errors;
|
|
672
|
+
};
|
|
673
|
+
export type DeleteStoredFile409Errors = {
|
|
674
|
+
[key: string]: string[];
|
|
675
|
+
};
|
|
676
|
+
export type DeleteStoredFile409 = {
|
|
677
|
+
type: string;
|
|
678
|
+
title: string;
|
|
679
|
+
status: number;
|
|
680
|
+
detail?: string;
|
|
681
|
+
instance?: string;
|
|
682
|
+
errors?: DeleteStoredFile409Errors;
|
|
683
|
+
};
|
|
684
|
+
export type GetHealth200 = {
|
|
685
|
+
status: string;
|
|
686
|
+
timestamp: string;
|
|
687
|
+
};
|
|
688
|
+
export type GetHealth503Errors = {
|
|
689
|
+
[key: string]: string[];
|
|
690
|
+
};
|
|
691
|
+
export type GetHealth503 = {
|
|
692
|
+
type: string;
|
|
693
|
+
title: string;
|
|
694
|
+
status: number;
|
|
695
|
+
detail?: string;
|
|
696
|
+
instance?: string;
|
|
697
|
+
errors?: GetHealth503Errors;
|
|
698
|
+
};
|
|
699
|
+
export type CreateWarehouseBodyFullAddressText = string | null;
|
|
700
|
+
export type CreateWarehouseBody = {
|
|
701
|
+
name: string;
|
|
702
|
+
picName: string;
|
|
703
|
+
picPhone: string;
|
|
704
|
+
addressId: string;
|
|
705
|
+
fullAddressText?: CreateWarehouseBodyFullAddressText;
|
|
706
|
+
};
|
|
707
|
+
export type CreateWarehouse201 = {
|
|
708
|
+
id: string;
|
|
709
|
+
};
|
|
710
|
+
export type CreateWarehouse400Errors = {
|
|
711
|
+
[key: string]: string[];
|
|
712
|
+
};
|
|
713
|
+
export type CreateWarehouse400 = {
|
|
714
|
+
type: string;
|
|
715
|
+
title: string;
|
|
716
|
+
status: number;
|
|
717
|
+
detail?: string;
|
|
718
|
+
instance?: string;
|
|
719
|
+
errors?: CreateWarehouse400Errors;
|
|
720
|
+
};
|
|
721
|
+
export type CreateWarehouse404Errors = {
|
|
722
|
+
[key: string]: string[];
|
|
723
|
+
};
|
|
724
|
+
export type CreateWarehouse404 = {
|
|
725
|
+
type: string;
|
|
726
|
+
title: string;
|
|
727
|
+
status: number;
|
|
728
|
+
detail?: string;
|
|
729
|
+
instance?: string;
|
|
730
|
+
errors?: CreateWarehouse404Errors;
|
|
731
|
+
};
|
|
732
|
+
export type CreateWarehouse409Errors = {
|
|
733
|
+
[key: string]: string[];
|
|
734
|
+
};
|
|
735
|
+
export type CreateWarehouse409 = {
|
|
736
|
+
type: string;
|
|
737
|
+
title: string;
|
|
738
|
+
status: number;
|
|
739
|
+
detail?: string;
|
|
740
|
+
instance?: string;
|
|
741
|
+
errors?: CreateWarehouse409Errors;
|
|
742
|
+
};
|
|
743
|
+
export type CreateWarehouse422Errors = {
|
|
744
|
+
[key: string]: string[];
|
|
745
|
+
};
|
|
746
|
+
export type CreateWarehouse422 = {
|
|
747
|
+
type: string;
|
|
748
|
+
title: string;
|
|
749
|
+
status: number;
|
|
750
|
+
detail?: string;
|
|
751
|
+
instance?: string;
|
|
752
|
+
errors?: CreateWarehouse422Errors;
|
|
753
|
+
};
|
|
754
|
+
export type ListWarehousesParams = {
|
|
755
|
+
search?: string;
|
|
756
|
+
isActive?: boolean;
|
|
757
|
+
};
|
|
758
|
+
export type ListWarehouses2000Pic = {
|
|
759
|
+
name: string;
|
|
760
|
+
phone: string;
|
|
761
|
+
};
|
|
762
|
+
export type ListWarehouses2000AddressDestinationCode = string | null;
|
|
763
|
+
export type ListWarehouses2000AddressProvinceName = string | null;
|
|
764
|
+
export type ListWarehouses2000AddressCityName = string | null;
|
|
765
|
+
export type ListWarehouses2000AddressDistrictName = string | null;
|
|
766
|
+
export type ListWarehouses2000AddressSubDistrictName = string | null;
|
|
767
|
+
export type ListWarehouses2000AddressZipCode = string | null;
|
|
768
|
+
export type ListWarehouses2000Address = {
|
|
769
|
+
addressId: string;
|
|
770
|
+
destinationCode: ListWarehouses2000AddressDestinationCode;
|
|
771
|
+
provinceName: ListWarehouses2000AddressProvinceName;
|
|
772
|
+
cityName: ListWarehouses2000AddressCityName;
|
|
773
|
+
districtName: ListWarehouses2000AddressDistrictName;
|
|
774
|
+
subDistrictName: ListWarehouses2000AddressSubDistrictName;
|
|
775
|
+
zipCode: ListWarehouses2000AddressZipCode;
|
|
776
|
+
};
|
|
777
|
+
export type ListWarehouses2000FullAddressText = string | null;
|
|
778
|
+
export type ListWarehouses2000 = {
|
|
779
|
+
id: string;
|
|
780
|
+
name: string;
|
|
781
|
+
pic: ListWarehouses2000Pic;
|
|
782
|
+
address: ListWarehouses2000Address;
|
|
783
|
+
fullAddressText: ListWarehouses2000FullAddressText;
|
|
784
|
+
isActive: boolean;
|
|
785
|
+
createdAt: string;
|
|
786
|
+
updatedAt: string;
|
|
787
|
+
};
|
|
788
|
+
export type ListWarehouses200 = {
|
|
789
|
+
'0': ListWarehouses2000;
|
|
790
|
+
};
|
|
791
|
+
export type ListStockMovementsParams = {
|
|
792
|
+
itemId?: string;
|
|
793
|
+
batchId?: string;
|
|
794
|
+
warehouseId?: string;
|
|
795
|
+
page?: number;
|
|
796
|
+
pageSize?: number;
|
|
797
|
+
orderBy?: string;
|
|
798
|
+
descending?: boolean;
|
|
799
|
+
};
|
|
800
|
+
export type ListStockMovements200ItemsItemBatchId = string | null;
|
|
801
|
+
export type ListStockMovements200ItemsItemSourceReferenceId = string | null;
|
|
802
|
+
export type ListStockMovements200ItemsItemExternalReferenceNo = string | null;
|
|
803
|
+
export type ListStockMovements200ItemsItemNote = string | null;
|
|
804
|
+
export type ListStockMovements200ItemsItemRecordedBy = string | null;
|
|
805
|
+
export type ListStockMovements200ItemsItemReceivedBy = string | null;
|
|
806
|
+
export type ListStockMovements200ItemsItem = {
|
|
807
|
+
id: string;
|
|
808
|
+
itemId: string;
|
|
809
|
+
itemName: string;
|
|
810
|
+
warehouseId: string;
|
|
811
|
+
warehouseName: string;
|
|
812
|
+
batchId: ListStockMovements200ItemsItemBatchId;
|
|
813
|
+
direction: string;
|
|
814
|
+
quantity: number;
|
|
815
|
+
sourceType: string;
|
|
816
|
+
sourceReferenceId: ListStockMovements200ItemsItemSourceReferenceId;
|
|
817
|
+
externalReferenceNo: ListStockMovements200ItemsItemExternalReferenceNo;
|
|
818
|
+
note: ListStockMovements200ItemsItemNote;
|
|
819
|
+
createdAt: string;
|
|
820
|
+
recordedBy: ListStockMovements200ItemsItemRecordedBy;
|
|
821
|
+
receivedBy: ListStockMovements200ItemsItemReceivedBy;
|
|
822
|
+
};
|
|
823
|
+
export type ListStockMovements200 = {
|
|
824
|
+
items: ListStockMovements200ItemsItem[];
|
|
825
|
+
page: number;
|
|
826
|
+
pageSize: number;
|
|
827
|
+
totalCount: number;
|
|
828
|
+
totalPages: number;
|
|
829
|
+
hasNextPage: boolean;
|
|
830
|
+
hasPreviousPage: boolean;
|
|
831
|
+
};
|
|
832
|
+
export type CreateStockItemBodyImageFileId = string | null;
|
|
833
|
+
export type CreateStockItemBody = {
|
|
834
|
+
name: string;
|
|
835
|
+
sku: string;
|
|
836
|
+
imageFileId?: CreateStockItemBodyImageFileId;
|
|
837
|
+
};
|
|
838
|
+
export type CreateStockItem201 = {
|
|
839
|
+
id: string;
|
|
840
|
+
};
|
|
841
|
+
export type CreateStockItem400Errors = {
|
|
842
|
+
[key: string]: string[];
|
|
843
|
+
};
|
|
844
|
+
export type CreateStockItem400 = {
|
|
845
|
+
type: string;
|
|
846
|
+
title: string;
|
|
847
|
+
status: number;
|
|
848
|
+
detail?: string;
|
|
849
|
+
instance?: string;
|
|
850
|
+
errors?: CreateStockItem400Errors;
|
|
851
|
+
};
|
|
852
|
+
export type CreateStockItem409Errors = {
|
|
853
|
+
[key: string]: string[];
|
|
854
|
+
};
|
|
855
|
+
export type CreateStockItem409 = {
|
|
856
|
+
type: string;
|
|
857
|
+
title: string;
|
|
858
|
+
status: number;
|
|
859
|
+
detail?: string;
|
|
860
|
+
instance?: string;
|
|
861
|
+
errors?: CreateStockItem409Errors;
|
|
862
|
+
};
|
|
863
|
+
export type ListStockItemsParams = {
|
|
864
|
+
warehouseId?: string;
|
|
865
|
+
search?: string;
|
|
866
|
+
isActive?: boolean;
|
|
867
|
+
page?: number;
|
|
868
|
+
pageSize?: number;
|
|
869
|
+
orderBy?: string;
|
|
870
|
+
descending?: boolean;
|
|
871
|
+
};
|
|
872
|
+
export type ListStockItems200ItemsItem = {
|
|
873
|
+
id: string;
|
|
874
|
+
sku: string;
|
|
875
|
+
name: string;
|
|
876
|
+
isActive: boolean;
|
|
877
|
+
onHandQty: number;
|
|
878
|
+
reservedQty: number;
|
|
879
|
+
availableQty: number;
|
|
880
|
+
};
|
|
881
|
+
export type ListStockItems200 = {
|
|
882
|
+
items: ListStockItems200ItemsItem[];
|
|
883
|
+
page: number;
|
|
884
|
+
pageSize: number;
|
|
885
|
+
totalCount: number;
|
|
886
|
+
totalPages: number;
|
|
887
|
+
hasNextPage: boolean;
|
|
888
|
+
hasPreviousPage: boolean;
|
|
889
|
+
};
|
|
890
|
+
export type CreateBatchBodyExpiresOn = string | null;
|
|
891
|
+
export type CreateBatchBodyExternalReferenceNo = string | null;
|
|
892
|
+
export type CreateBatchBodyNote = string | null;
|
|
893
|
+
export type CreateBatchBodyReceivedBy = string | null;
|
|
894
|
+
export type CreateBatchBodyRecordedBy = string | null;
|
|
895
|
+
export type CreateBatchBody = {
|
|
896
|
+
itemId: string;
|
|
897
|
+
warehouseId: string;
|
|
898
|
+
receivedAt: string;
|
|
899
|
+
receivedQty: number;
|
|
900
|
+
sourceType: string;
|
|
901
|
+
unitCost: number;
|
|
902
|
+
expiresOn?: CreateBatchBodyExpiresOn;
|
|
903
|
+
externalReferenceNo?: CreateBatchBodyExternalReferenceNo;
|
|
904
|
+
note?: CreateBatchBodyNote;
|
|
905
|
+
receivedBy?: CreateBatchBodyReceivedBy;
|
|
906
|
+
recordedBy?: CreateBatchBodyRecordedBy;
|
|
907
|
+
};
|
|
908
|
+
export type CreateBatch201 = {
|
|
909
|
+
id: string;
|
|
910
|
+
};
|
|
911
|
+
export type CreateBatch400Errors = {
|
|
912
|
+
[key: string]: string[];
|
|
913
|
+
};
|
|
914
|
+
export type CreateBatch400 = {
|
|
915
|
+
type: string;
|
|
916
|
+
title: string;
|
|
917
|
+
status: number;
|
|
918
|
+
detail?: string;
|
|
919
|
+
instance?: string;
|
|
920
|
+
errors?: CreateBatch400Errors;
|
|
921
|
+
};
|
|
922
|
+
export type CreateBatch404Errors = {
|
|
923
|
+
[key: string]: string[];
|
|
924
|
+
};
|
|
925
|
+
export type CreateBatch404 = {
|
|
926
|
+
type: string;
|
|
927
|
+
title: string;
|
|
928
|
+
status: number;
|
|
929
|
+
detail?: string;
|
|
930
|
+
instance?: string;
|
|
931
|
+
errors?: CreateBatch404Errors;
|
|
932
|
+
};
|
|
933
|
+
export type CreateBatch409Errors = {
|
|
934
|
+
[key: string]: string[];
|
|
935
|
+
};
|
|
936
|
+
export type CreateBatch409 = {
|
|
937
|
+
type: string;
|
|
938
|
+
title: string;
|
|
939
|
+
status: number;
|
|
940
|
+
detail?: string;
|
|
941
|
+
instance?: string;
|
|
942
|
+
errors?: CreateBatch409Errors;
|
|
943
|
+
};
|
|
944
|
+
export type Get200 = {
|
|
945
|
+
message: string;
|
|
946
|
+
};
|
|
947
|
+
export type Get503Errors = {
|
|
948
|
+
[key: string]: string[];
|
|
949
|
+
};
|
|
950
|
+
export type Get503 = {
|
|
951
|
+
type: string;
|
|
952
|
+
title: string;
|
|
953
|
+
status: number;
|
|
954
|
+
detail?: string;
|
|
955
|
+
instance?: string;
|
|
956
|
+
errors?: Get503Errors;
|
|
957
|
+
};
|
|
958
|
+
/**
|
|
959
|
+
* Stores an HttpOnly antiforgery cookie and returns the request token and header name. Send both on subsequent identity requests that change data.
|
|
960
|
+
* @summary Get an antiforgery token
|
|
961
|
+
*/
|
|
962
|
+
export type getAntiforgeryTokenResponse200 = {
|
|
963
|
+
data: GetAntiforgeryToken200;
|
|
964
|
+
status: 200;
|
|
965
|
+
};
|
|
966
|
+
export type getAntiforgeryTokenResponseSuccess = (getAntiforgeryTokenResponse200) & {
|
|
967
|
+
headers: Headers;
|
|
968
|
+
};
|
|
969
|
+
export type getAntiforgeryTokenResponse = (getAntiforgeryTokenResponseSuccess);
|
|
970
|
+
export declare const getGetAntiforgeryTokenUrl: () => string;
|
|
971
|
+
export declare const getAntiforgeryToken: (options?: RequestInit) => Promise<getAntiforgeryTokenResponse>;
|
|
972
|
+
export declare const getGetAntiforgeryTokenQueryKey: () => readonly ["/identity/antiforgery"];
|
|
973
|
+
export declare const getGetAntiforgeryTokenQueryOptions: <TData = Awaited<ReturnType<typeof getAntiforgeryToken>>, TError = unknown>(options?: {
|
|
974
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAntiforgeryToken>>, TError, TData>>;
|
|
975
|
+
fetch?: RequestInit;
|
|
976
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getAntiforgeryToken>>, TError, TData> & {
|
|
977
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
978
|
+
};
|
|
979
|
+
export type GetAntiforgeryTokenQueryResult = NonNullable<Awaited<ReturnType<typeof getAntiforgeryToken>>>;
|
|
980
|
+
export type GetAntiforgeryTokenQueryError = unknown;
|
|
981
|
+
export declare function useGetAntiforgeryToken<TData = Awaited<ReturnType<typeof getAntiforgeryToken>>, TError = unknown>(options: {
|
|
982
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAntiforgeryToken>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getAntiforgeryToken>>, TError, Awaited<ReturnType<typeof getAntiforgeryToken>>>, 'initialData'>;
|
|
983
|
+
fetch?: RequestInit;
|
|
984
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
985
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
986
|
+
};
|
|
987
|
+
export declare function useGetAntiforgeryToken<TData = Awaited<ReturnType<typeof getAntiforgeryToken>>, TError = unknown>(options?: {
|
|
988
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAntiforgeryToken>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getAntiforgeryToken>>, TError, Awaited<ReturnType<typeof getAntiforgeryToken>>>, 'initialData'>;
|
|
989
|
+
fetch?: RequestInit;
|
|
990
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
991
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
992
|
+
};
|
|
993
|
+
export declare function useGetAntiforgeryToken<TData = Awaited<ReturnType<typeof getAntiforgeryToken>>, TError = unknown>(options?: {
|
|
994
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAntiforgeryToken>>, TError, TData>>;
|
|
995
|
+
fetch?: RequestInit;
|
|
996
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
997
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
998
|
+
};
|
|
999
|
+
/**
|
|
1000
|
+
* Creates a new server-side session with the configured absolute lifetime and rotates the antiforgery token. Use the returned requestToken for subsequent requests.
|
|
1001
|
+
* @summary Sign in with email and password
|
|
1002
|
+
*/
|
|
1003
|
+
export type loginResponse200 = {
|
|
1004
|
+
data: Login200;
|
|
1005
|
+
status: 200;
|
|
1006
|
+
};
|
|
1007
|
+
export type loginResponse400 = {
|
|
1008
|
+
data: Login400;
|
|
1009
|
+
status: 400;
|
|
1010
|
+
};
|
|
1011
|
+
export type loginResponse401 = {
|
|
1012
|
+
data: Login401;
|
|
1013
|
+
status: 401;
|
|
1014
|
+
};
|
|
1015
|
+
export type loginResponse403 = {
|
|
1016
|
+
data: Login403;
|
|
1017
|
+
status: 403;
|
|
1018
|
+
};
|
|
1019
|
+
export type loginResponse429 = {
|
|
1020
|
+
data: Login429;
|
|
1021
|
+
status: 429;
|
|
1022
|
+
};
|
|
1023
|
+
export type loginResponseSuccess = (loginResponse200) & {
|
|
1024
|
+
headers: Headers;
|
|
1025
|
+
};
|
|
1026
|
+
export type loginResponseError = (loginResponse400 | loginResponse401 | loginResponse403 | loginResponse429) & {
|
|
1027
|
+
headers: Headers;
|
|
1028
|
+
};
|
|
1029
|
+
export type loginResponse = (loginResponseSuccess | loginResponseError);
|
|
1030
|
+
export declare const getLoginUrl: () => string;
|
|
1031
|
+
export declare const login: (loginBody: LoginBody, options?: RequestInit) => Promise<loginResponse>;
|
|
1032
|
+
export declare const getLoginMutationOptions: <TError = Login400 | Login401 | Login403 | Login429, TContext = unknown>(options?: {
|
|
1033
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof login>>, TError, {
|
|
1034
|
+
data: LoginBody;
|
|
1035
|
+
}, TContext>;
|
|
1036
|
+
fetch?: RequestInit;
|
|
1037
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof login>>, TError, {
|
|
1038
|
+
data: LoginBody;
|
|
1039
|
+
}, TContext>;
|
|
1040
|
+
export type LoginMutationResult = NonNullable<Awaited<ReturnType<typeof login>>>;
|
|
1041
|
+
export type LoginMutationBody = LoginBody;
|
|
1042
|
+
export type LoginMutationError = Login400 | Login401 | Login403 | Login429;
|
|
1043
|
+
/**
|
|
1044
|
+
* @summary Sign in with email and password
|
|
1045
|
+
*/
|
|
1046
|
+
export declare const useLogin: <TError = Login400 | Login401 | Login403 | Login429, TContext = unknown>(options?: {
|
|
1047
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof login>>, TError, {
|
|
1048
|
+
data: LoginBody;
|
|
1049
|
+
}, TContext>;
|
|
1050
|
+
fetch?: RequestInit;
|
|
1051
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof login>>, TError, {
|
|
1052
|
+
data: LoginBody;
|
|
1053
|
+
}, TContext>;
|
|
1054
|
+
/**
|
|
1055
|
+
* @summary Get the current signed-in user
|
|
1056
|
+
*/
|
|
1057
|
+
export type getCurrentUserResponse200 = {
|
|
1058
|
+
data: GetCurrentUser200;
|
|
1059
|
+
status: 200;
|
|
1060
|
+
};
|
|
1061
|
+
export type getCurrentUserResponse401 = {
|
|
1062
|
+
data: GetCurrentUser401;
|
|
1063
|
+
status: 401;
|
|
1064
|
+
};
|
|
1065
|
+
export type getCurrentUserResponseSuccess = (getCurrentUserResponse200) & {
|
|
1066
|
+
headers: Headers;
|
|
1067
|
+
};
|
|
1068
|
+
export type getCurrentUserResponseError = (getCurrentUserResponse401) & {
|
|
1069
|
+
headers: Headers;
|
|
1070
|
+
};
|
|
1071
|
+
export type getCurrentUserResponse = (getCurrentUserResponseSuccess | getCurrentUserResponseError);
|
|
1072
|
+
export declare const getGetCurrentUserUrl: () => string;
|
|
1073
|
+
export declare const getCurrentUser: (options?: RequestInit) => Promise<getCurrentUserResponse>;
|
|
1074
|
+
export declare const getGetCurrentUserQueryKey: () => readonly ["/identity/me"];
|
|
1075
|
+
export declare const getGetCurrentUserQueryOptions: <TData = Awaited<ReturnType<typeof getCurrentUser>>, TError = GetCurrentUser401>(options?: {
|
|
1076
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCurrentUser>>, TError, TData>>;
|
|
1077
|
+
fetch?: RequestInit;
|
|
1078
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getCurrentUser>>, TError, TData> & {
|
|
1079
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1080
|
+
};
|
|
1081
|
+
export type GetCurrentUserQueryResult = NonNullable<Awaited<ReturnType<typeof getCurrentUser>>>;
|
|
1082
|
+
export type GetCurrentUserQueryError = GetCurrentUser401;
|
|
1083
|
+
export declare function useGetCurrentUser<TData = Awaited<ReturnType<typeof getCurrentUser>>, TError = GetCurrentUser401>(options: {
|
|
1084
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCurrentUser>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getCurrentUser>>, TError, Awaited<ReturnType<typeof getCurrentUser>>>, 'initialData'>;
|
|
1085
|
+
fetch?: RequestInit;
|
|
1086
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1087
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1088
|
+
};
|
|
1089
|
+
export declare function useGetCurrentUser<TData = Awaited<ReturnType<typeof getCurrentUser>>, TError = GetCurrentUser401>(options?: {
|
|
1090
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCurrentUser>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getCurrentUser>>, TError, Awaited<ReturnType<typeof getCurrentUser>>>, 'initialData'>;
|
|
1091
|
+
fetch?: RequestInit;
|
|
1092
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1093
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1094
|
+
};
|
|
1095
|
+
export declare function useGetCurrentUser<TData = Awaited<ReturnType<typeof getCurrentUser>>, TError = GetCurrentUser401>(options?: {
|
|
1096
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCurrentUser>>, TError, TData>>;
|
|
1097
|
+
fetch?: RequestInit;
|
|
1098
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1099
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1100
|
+
};
|
|
1101
|
+
/**
|
|
1102
|
+
* @summary Revoke the current session and clear its cookie
|
|
1103
|
+
*/
|
|
1104
|
+
export type logoutResponse200 = {
|
|
1105
|
+
data: Logout200;
|
|
1106
|
+
status: 200;
|
|
1107
|
+
};
|
|
1108
|
+
export type logoutResponse403 = {
|
|
1109
|
+
data: Logout403;
|
|
1110
|
+
status: 403;
|
|
1111
|
+
};
|
|
1112
|
+
export type logoutResponseSuccess = (logoutResponse200) & {
|
|
1113
|
+
headers: Headers;
|
|
1114
|
+
};
|
|
1115
|
+
export type logoutResponseError = (logoutResponse403) & {
|
|
1116
|
+
headers: Headers;
|
|
1117
|
+
};
|
|
1118
|
+
export type logoutResponse = (logoutResponseSuccess | logoutResponseError);
|
|
1119
|
+
export declare const getLogoutUrl: () => string;
|
|
1120
|
+
export declare const logout: (options?: RequestInit) => Promise<logoutResponse>;
|
|
1121
|
+
export declare const getLogoutMutationOptions: <TError = Logout403, TContext = unknown>(options?: {
|
|
1122
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof logout>>, TError, void, TContext>;
|
|
1123
|
+
fetch?: RequestInit;
|
|
1124
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof logout>>, TError, void, TContext>;
|
|
1125
|
+
export type LogoutMutationResult = NonNullable<Awaited<ReturnType<typeof logout>>>;
|
|
1126
|
+
export type LogoutMutationError = Logout403;
|
|
1127
|
+
/**
|
|
1128
|
+
* @summary Revoke the current session and clear its cookie
|
|
1129
|
+
*/
|
|
1130
|
+
export declare const useLogout: <TError = Logout403, TContext = unknown>(options?: {
|
|
1131
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof logout>>, TError, void, TContext>;
|
|
1132
|
+
fetch?: RequestInit;
|
|
1133
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof logout>>, TError, void, TContext>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Creates the single owner account for the tenant. Use this endpoint only once per deployment.
|
|
1136
|
+
* @summary Create the owner account
|
|
1137
|
+
*/
|
|
1138
|
+
export type createOwnerResponse201 = {
|
|
1139
|
+
data: CreateOwner201;
|
|
1140
|
+
status: 201;
|
|
1141
|
+
};
|
|
1142
|
+
export type createOwnerResponse400 = {
|
|
1143
|
+
data: CreateOwner400;
|
|
1144
|
+
status: 400;
|
|
1145
|
+
};
|
|
1146
|
+
export type createOwnerResponse403 = {
|
|
1147
|
+
data: CreateOwner403;
|
|
1148
|
+
status: 403;
|
|
1149
|
+
};
|
|
1150
|
+
export type createOwnerResponse409 = {
|
|
1151
|
+
data: CreateOwner409;
|
|
1152
|
+
status: 409;
|
|
1153
|
+
};
|
|
1154
|
+
export type createOwnerResponse422 = {
|
|
1155
|
+
data: CreateOwner422;
|
|
1156
|
+
status: 422;
|
|
1157
|
+
};
|
|
1158
|
+
export type createOwnerResponseSuccess = (createOwnerResponse201) & {
|
|
1159
|
+
headers: Headers;
|
|
1160
|
+
};
|
|
1161
|
+
export type createOwnerResponseError = (createOwnerResponse400 | createOwnerResponse403 | createOwnerResponse409 | createOwnerResponse422) & {
|
|
1162
|
+
headers: Headers;
|
|
1163
|
+
};
|
|
1164
|
+
export type createOwnerResponse = (createOwnerResponseSuccess | createOwnerResponseError);
|
|
1165
|
+
export declare const getCreateOwnerUrl: () => string;
|
|
1166
|
+
export declare const createOwner: (createOwnerBody: CreateOwnerBody, options?: RequestInit) => Promise<createOwnerResponse>;
|
|
1167
|
+
export declare const getCreateOwnerMutationOptions: <TError = CreateOwner400 | CreateOwner403 | CreateOwner409 | CreateOwner422, TContext = unknown>(options?: {
|
|
1168
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createOwner>>, TError, {
|
|
1169
|
+
data: CreateOwnerBody;
|
|
1170
|
+
}, TContext>;
|
|
1171
|
+
fetch?: RequestInit;
|
|
1172
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createOwner>>, TError, {
|
|
1173
|
+
data: CreateOwnerBody;
|
|
1174
|
+
}, TContext>;
|
|
1175
|
+
export type CreateOwnerMutationResult = NonNullable<Awaited<ReturnType<typeof createOwner>>>;
|
|
1176
|
+
export type CreateOwnerMutationBody = CreateOwnerBody;
|
|
1177
|
+
export type CreateOwnerMutationError = CreateOwner400 | CreateOwner403 | CreateOwner409 | CreateOwner422;
|
|
1178
|
+
/**
|
|
1179
|
+
* @summary Create the owner account
|
|
1180
|
+
*/
|
|
1181
|
+
export declare const useCreateOwner: <TError = CreateOwner400 | CreateOwner403 | CreateOwner409 | CreateOwner422, TContext = unknown>(options?: {
|
|
1182
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createOwner>>, TError, {
|
|
1183
|
+
data: CreateOwnerBody;
|
|
1184
|
+
}, TContext>;
|
|
1185
|
+
fetch?: RequestInit;
|
|
1186
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createOwner>>, TError, {
|
|
1187
|
+
data: CreateOwnerBody;
|
|
1188
|
+
}, TContext>;
|
|
1189
|
+
/**
|
|
1190
|
+
* @summary Search addresses by keyword
|
|
1191
|
+
*/
|
|
1192
|
+
export type searchAddressesResponse200 = {
|
|
1193
|
+
data: SearchAddresses200Item[];
|
|
1194
|
+
status: 200;
|
|
1195
|
+
};
|
|
1196
|
+
export type searchAddressesResponse400 = {
|
|
1197
|
+
data: SearchAddresses400;
|
|
1198
|
+
status: 400;
|
|
1199
|
+
};
|
|
1200
|
+
export type searchAddressesResponseSuccess = (searchAddressesResponse200) & {
|
|
1201
|
+
headers: Headers;
|
|
1202
|
+
};
|
|
1203
|
+
export type searchAddressesResponseError = (searchAddressesResponse400) & {
|
|
1204
|
+
headers: Headers;
|
|
1205
|
+
};
|
|
1206
|
+
export type searchAddressesResponse = (searchAddressesResponseSuccess | searchAddressesResponseError);
|
|
1207
|
+
export declare const getSearchAddressesUrl: (params: SearchAddressesParams) => string;
|
|
1208
|
+
export declare const searchAddresses: (params: SearchAddressesParams, options?: RequestInit) => Promise<searchAddressesResponse>;
|
|
1209
|
+
export declare const getSearchAddressesQueryKey: (params?: SearchAddressesParams) => readonly ["/addresses/search", ...SearchAddressesParams[]];
|
|
1210
|
+
export declare const getSearchAddressesQueryOptions: <TData = Awaited<ReturnType<typeof searchAddresses>>, TError = SearchAddresses400>(params: SearchAddressesParams, options?: {
|
|
1211
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, TData>>;
|
|
1212
|
+
fetch?: RequestInit;
|
|
1213
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, TData> & {
|
|
1214
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1215
|
+
};
|
|
1216
|
+
export type SearchAddressesQueryResult = NonNullable<Awaited<ReturnType<typeof searchAddresses>>>;
|
|
1217
|
+
export type SearchAddressesQueryError = SearchAddresses400;
|
|
1218
|
+
export declare function useSearchAddresses<TData = Awaited<ReturnType<typeof searchAddresses>>, TError = SearchAddresses400>(params: SearchAddressesParams, options: {
|
|
1219
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, Awaited<ReturnType<typeof searchAddresses>>>, 'initialData'>;
|
|
1220
|
+
fetch?: RequestInit;
|
|
1221
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1222
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1223
|
+
};
|
|
1224
|
+
export declare function useSearchAddresses<TData = Awaited<ReturnType<typeof searchAddresses>>, TError = SearchAddresses400>(params: SearchAddressesParams, options?: {
|
|
1225
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, Awaited<ReturnType<typeof searchAddresses>>>, 'initialData'>;
|
|
1226
|
+
fetch?: RequestInit;
|
|
1227
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1228
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1229
|
+
};
|
|
1230
|
+
export declare function useSearchAddresses<TData = Awaited<ReturnType<typeof searchAddresses>>, TError = SearchAddresses400>(params: SearchAddressesParams, options?: {
|
|
1231
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, TData>>;
|
|
1232
|
+
fetch?: RequestInit;
|
|
1233
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1234
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1235
|
+
};
|
|
1236
|
+
/**
|
|
1237
|
+
* Creates a pending file metadata record and generates a presigned S3 upload URL for direct client-to-storage upload.
|
|
1238
|
+
* @summary Initiate direct file upload to storage
|
|
1239
|
+
*/
|
|
1240
|
+
export type initiateUploadResponse201 = {
|
|
1241
|
+
data: InitiateUpload201;
|
|
1242
|
+
status: 201;
|
|
1243
|
+
};
|
|
1244
|
+
export type initiateUploadResponse400 = {
|
|
1245
|
+
data: InitiateUpload400;
|
|
1246
|
+
status: 400;
|
|
1247
|
+
};
|
|
1248
|
+
export type initiateUploadResponse413 = {
|
|
1249
|
+
data: InitiateUpload413;
|
|
1250
|
+
status: 413;
|
|
1251
|
+
};
|
|
1252
|
+
export type initiateUploadResponse422 = {
|
|
1253
|
+
data: InitiateUpload422;
|
|
1254
|
+
status: 422;
|
|
1255
|
+
};
|
|
1256
|
+
export type initiateUploadResponseSuccess = (initiateUploadResponse201) & {
|
|
1257
|
+
headers: Headers;
|
|
1258
|
+
};
|
|
1259
|
+
export type initiateUploadResponseError = (initiateUploadResponse400 | initiateUploadResponse413 | initiateUploadResponse422) & {
|
|
1260
|
+
headers: Headers;
|
|
1261
|
+
};
|
|
1262
|
+
export type initiateUploadResponse = (initiateUploadResponseSuccess | initiateUploadResponseError);
|
|
1263
|
+
export declare const getInitiateUploadUrl: () => string;
|
|
1264
|
+
export declare const initiateUpload: (initiateUploadBody: InitiateUploadBody, options?: RequestInit) => Promise<initiateUploadResponse>;
|
|
1265
|
+
export declare const getInitiateUploadMutationOptions: <TError = InitiateUpload400 | InitiateUpload413 | InitiateUpload422, TContext = unknown>(options?: {
|
|
1266
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof initiateUpload>>, TError, {
|
|
1267
|
+
data: InitiateUploadBody;
|
|
1268
|
+
}, TContext>;
|
|
1269
|
+
fetch?: RequestInit;
|
|
1270
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof initiateUpload>>, TError, {
|
|
1271
|
+
data: InitiateUploadBody;
|
|
1272
|
+
}, TContext>;
|
|
1273
|
+
export type InitiateUploadMutationResult = NonNullable<Awaited<ReturnType<typeof initiateUpload>>>;
|
|
1274
|
+
export type InitiateUploadMutationBody = InitiateUploadBody;
|
|
1275
|
+
export type InitiateUploadMutationError = InitiateUpload400 | InitiateUpload413 | InitiateUpload422;
|
|
1276
|
+
/**
|
|
1277
|
+
* @summary Initiate direct file upload to storage
|
|
1278
|
+
*/
|
|
1279
|
+
export declare const useInitiateUpload: <TError = InitiateUpload400 | InitiateUpload413 | InitiateUpload422, TContext = unknown>(options?: {
|
|
1280
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof initiateUpload>>, TError, {
|
|
1281
|
+
data: InitiateUploadBody;
|
|
1282
|
+
}, TContext>;
|
|
1283
|
+
fetch?: RequestInit;
|
|
1284
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof initiateUpload>>, TError, {
|
|
1285
|
+
data: InitiateUploadBody;
|
|
1286
|
+
}, TContext>;
|
|
1287
|
+
/**
|
|
1288
|
+
* Uploads a file directly with base64 encoded content, verifies against purpose policy, stores to S3, and activates immediately.
|
|
1289
|
+
* @summary Direct upload file
|
|
1290
|
+
*/
|
|
1291
|
+
export type uploadFileResponse201 = {
|
|
1292
|
+
data: UploadFile201;
|
|
1293
|
+
status: 201;
|
|
1294
|
+
};
|
|
1295
|
+
export type uploadFileResponse400 = {
|
|
1296
|
+
data: UploadFile400;
|
|
1297
|
+
status: 400;
|
|
1298
|
+
};
|
|
1299
|
+
export type uploadFileResponse413 = {
|
|
1300
|
+
data: UploadFile413;
|
|
1301
|
+
status: 413;
|
|
1302
|
+
};
|
|
1303
|
+
export type uploadFileResponse422 = {
|
|
1304
|
+
data: UploadFile422;
|
|
1305
|
+
status: 422;
|
|
1306
|
+
};
|
|
1307
|
+
export type uploadFileResponseSuccess = (uploadFileResponse201) & {
|
|
1308
|
+
headers: Headers;
|
|
1309
|
+
};
|
|
1310
|
+
export type uploadFileResponseError = (uploadFileResponse400 | uploadFileResponse413 | uploadFileResponse422) & {
|
|
1311
|
+
headers: Headers;
|
|
1312
|
+
};
|
|
1313
|
+
export type uploadFileResponse = (uploadFileResponseSuccess | uploadFileResponseError);
|
|
1314
|
+
export declare const getUploadFileUrl: () => string;
|
|
1315
|
+
export declare const uploadFile: (uploadFileBody: UploadFileBody, options?: RequestInit) => Promise<uploadFileResponse>;
|
|
1316
|
+
export declare const getUploadFileMutationOptions: <TError = UploadFile400 | UploadFile413 | UploadFile422, TContext = unknown>(options?: {
|
|
1317
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof uploadFile>>, TError, {
|
|
1318
|
+
data: UploadFileBody;
|
|
1319
|
+
}, TContext>;
|
|
1320
|
+
fetch?: RequestInit;
|
|
1321
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof uploadFile>>, TError, {
|
|
1322
|
+
data: UploadFileBody;
|
|
1323
|
+
}, TContext>;
|
|
1324
|
+
export type UploadFileMutationResult = NonNullable<Awaited<ReturnType<typeof uploadFile>>>;
|
|
1325
|
+
export type UploadFileMutationBody = UploadFileBody;
|
|
1326
|
+
export type UploadFileMutationError = UploadFile400 | UploadFile413 | UploadFile422;
|
|
1327
|
+
/**
|
|
1328
|
+
* @summary Direct upload file
|
|
1329
|
+
*/
|
|
1330
|
+
export declare const useUploadFile: <TError = UploadFile400 | UploadFile413 | UploadFile422, TContext = unknown>(options?: {
|
|
1331
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof uploadFile>>, TError, {
|
|
1332
|
+
data: UploadFileBody;
|
|
1333
|
+
}, TContext>;
|
|
1334
|
+
fetch?: RequestInit;
|
|
1335
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof uploadFile>>, TError, {
|
|
1336
|
+
data: UploadFileBody;
|
|
1337
|
+
}, TContext>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Toggles the active state of a warehouse. Soft-deleted warehouses cannot be toggled.
|
|
1340
|
+
* @summary Toggle warehouse active status
|
|
1341
|
+
*/
|
|
1342
|
+
export type toggleWarehouseStatusResponse200 = {
|
|
1343
|
+
data: ToggleWarehouseStatus200;
|
|
1344
|
+
status: 200;
|
|
1345
|
+
};
|
|
1346
|
+
export type toggleWarehouseStatusResponse404 = {
|
|
1347
|
+
data: ToggleWarehouseStatus404;
|
|
1348
|
+
status: 404;
|
|
1349
|
+
};
|
|
1350
|
+
export type toggleWarehouseStatusResponseSuccess = (toggleWarehouseStatusResponse200) & {
|
|
1351
|
+
headers: Headers;
|
|
1352
|
+
};
|
|
1353
|
+
export type toggleWarehouseStatusResponseError = (toggleWarehouseStatusResponse404) & {
|
|
1354
|
+
headers: Headers;
|
|
1355
|
+
};
|
|
1356
|
+
export type toggleWarehouseStatusResponse = (toggleWarehouseStatusResponseSuccess | toggleWarehouseStatusResponseError);
|
|
1357
|
+
export declare const getToggleWarehouseStatusUrl: (id: string) => string;
|
|
1358
|
+
export declare const toggleWarehouseStatus: (id: string, options?: RequestInit) => Promise<toggleWarehouseStatusResponse>;
|
|
1359
|
+
export declare const getToggleWarehouseStatusMutationOptions: <TError = ToggleWarehouseStatus404, TContext = unknown>(options?: {
|
|
1360
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof toggleWarehouseStatus>>, TError, {
|
|
1361
|
+
id: string;
|
|
1362
|
+
}, TContext>;
|
|
1363
|
+
fetch?: RequestInit;
|
|
1364
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof toggleWarehouseStatus>>, TError, {
|
|
1365
|
+
id: string;
|
|
1366
|
+
}, TContext>;
|
|
1367
|
+
export type ToggleWarehouseStatusMutationResult = NonNullable<Awaited<ReturnType<typeof toggleWarehouseStatus>>>;
|
|
1368
|
+
export type ToggleWarehouseStatusMutationError = ToggleWarehouseStatus404;
|
|
1369
|
+
/**
|
|
1370
|
+
* @summary Toggle warehouse active status
|
|
1371
|
+
*/
|
|
1372
|
+
export declare const useToggleWarehouseStatus: <TError = ToggleWarehouseStatus404, TContext = unknown>(options?: {
|
|
1373
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof toggleWarehouseStatus>>, TError, {
|
|
1374
|
+
id: string;
|
|
1375
|
+
}, TContext>;
|
|
1376
|
+
fetch?: RequestInit;
|
|
1377
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof toggleWarehouseStatus>>, TError, {
|
|
1378
|
+
id: string;
|
|
1379
|
+
}, TContext>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Activates or deactivates a stock item.
|
|
1382
|
+
* @summary Change stock item active status
|
|
1383
|
+
*/
|
|
1384
|
+
export type changeStockItemStatusResponse200 = {
|
|
1385
|
+
data: ChangeStockItemStatus200;
|
|
1386
|
+
status: 200;
|
|
1387
|
+
};
|
|
1388
|
+
export type changeStockItemStatusResponse400 = {
|
|
1389
|
+
data: ChangeStockItemStatus400;
|
|
1390
|
+
status: 400;
|
|
1391
|
+
};
|
|
1392
|
+
export type changeStockItemStatusResponse404 = {
|
|
1393
|
+
data: ChangeStockItemStatus404;
|
|
1394
|
+
status: 404;
|
|
1395
|
+
};
|
|
1396
|
+
export type changeStockItemStatusResponseSuccess = (changeStockItemStatusResponse200) & {
|
|
1397
|
+
headers: Headers;
|
|
1398
|
+
};
|
|
1399
|
+
export type changeStockItemStatusResponseError = (changeStockItemStatusResponse400 | changeStockItemStatusResponse404) & {
|
|
1400
|
+
headers: Headers;
|
|
1401
|
+
};
|
|
1402
|
+
export type changeStockItemStatusResponse = (changeStockItemStatusResponseSuccess | changeStockItemStatusResponseError);
|
|
1403
|
+
export declare const getChangeStockItemStatusUrl: (id: string) => string;
|
|
1404
|
+
export declare const changeStockItemStatus: (id: string, changeStockItemStatusBody: ChangeStockItemStatusBody, options?: RequestInit) => Promise<changeStockItemStatusResponse>;
|
|
1405
|
+
export declare const getChangeStockItemStatusMutationOptions: <TError = ChangeStockItemStatus400 | ChangeStockItemStatus404, TContext = unknown>(options?: {
|
|
1406
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof changeStockItemStatus>>, TError, {
|
|
1407
|
+
id: string;
|
|
1408
|
+
data: ChangeStockItemStatusBody;
|
|
1409
|
+
}, TContext>;
|
|
1410
|
+
fetch?: RequestInit;
|
|
1411
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof changeStockItemStatus>>, TError, {
|
|
1412
|
+
id: string;
|
|
1413
|
+
data: ChangeStockItemStatusBody;
|
|
1414
|
+
}, TContext>;
|
|
1415
|
+
export type ChangeStockItemStatusMutationResult = NonNullable<Awaited<ReturnType<typeof changeStockItemStatus>>>;
|
|
1416
|
+
export type ChangeStockItemStatusMutationBody = ChangeStockItemStatusBody;
|
|
1417
|
+
export type ChangeStockItemStatusMutationError = ChangeStockItemStatus400 | ChangeStockItemStatus404;
|
|
1418
|
+
/**
|
|
1419
|
+
* @summary Change stock item active status
|
|
1420
|
+
*/
|
|
1421
|
+
export declare const useChangeStockItemStatus: <TError = ChangeStockItemStatus400 | ChangeStockItemStatus404, TContext = unknown>(options?: {
|
|
1422
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof changeStockItemStatus>>, TError, {
|
|
1423
|
+
id: string;
|
|
1424
|
+
data: ChangeStockItemStatusBody;
|
|
1425
|
+
}, TContext>;
|
|
1426
|
+
fetch?: RequestInit;
|
|
1427
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof changeStockItemStatus>>, TError, {
|
|
1428
|
+
id: string;
|
|
1429
|
+
data: ChangeStockItemStatusBody;
|
|
1430
|
+
}, TContext>;
|
|
1431
|
+
/**
|
|
1432
|
+
* Verifies that physical object was written to storage provider, verifies checksum, and transitions file to ACTIVE.
|
|
1433
|
+
* @summary Complete direct file upload
|
|
1434
|
+
*/
|
|
1435
|
+
export type completeUploadResponse200 = {
|
|
1436
|
+
data: CompleteUpload200;
|
|
1437
|
+
status: 200;
|
|
1438
|
+
};
|
|
1439
|
+
export type completeUploadResponse400 = {
|
|
1440
|
+
data: CompleteUpload400;
|
|
1441
|
+
status: 400;
|
|
1442
|
+
};
|
|
1443
|
+
export type completeUploadResponse404 = {
|
|
1444
|
+
data: CompleteUpload404;
|
|
1445
|
+
status: 404;
|
|
1446
|
+
};
|
|
1447
|
+
export type completeUploadResponse422 = {
|
|
1448
|
+
data: CompleteUpload422;
|
|
1449
|
+
status: 422;
|
|
1450
|
+
};
|
|
1451
|
+
export type completeUploadResponse500 = {
|
|
1452
|
+
data: CompleteUpload500;
|
|
1453
|
+
status: 500;
|
|
1454
|
+
};
|
|
1455
|
+
export type completeUploadResponseSuccess = (completeUploadResponse200) & {
|
|
1456
|
+
headers: Headers;
|
|
1457
|
+
};
|
|
1458
|
+
export type completeUploadResponseError = (completeUploadResponse400 | completeUploadResponse404 | completeUploadResponse422 | completeUploadResponse500) & {
|
|
1459
|
+
headers: Headers;
|
|
1460
|
+
};
|
|
1461
|
+
export type completeUploadResponse = (completeUploadResponseSuccess | completeUploadResponseError);
|
|
1462
|
+
export declare const getCompleteUploadUrl: (id: string) => string;
|
|
1463
|
+
export declare const completeUpload: (id: string, completeUploadBody: CompleteUploadBody, options?: RequestInit) => Promise<completeUploadResponse>;
|
|
1464
|
+
export declare const getCompleteUploadMutationOptions: <TError = CompleteUpload400 | CompleteUpload404 | CompleteUpload422 | CompleteUpload500, TContext = unknown>(options?: {
|
|
1465
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof completeUpload>>, TError, {
|
|
1466
|
+
id: string;
|
|
1467
|
+
data: CompleteUploadBody;
|
|
1468
|
+
}, TContext>;
|
|
1469
|
+
fetch?: RequestInit;
|
|
1470
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof completeUpload>>, TError, {
|
|
1471
|
+
id: string;
|
|
1472
|
+
data: CompleteUploadBody;
|
|
1473
|
+
}, TContext>;
|
|
1474
|
+
export type CompleteUploadMutationResult = NonNullable<Awaited<ReturnType<typeof completeUpload>>>;
|
|
1475
|
+
export type CompleteUploadMutationBody = CompleteUploadBody;
|
|
1476
|
+
export type CompleteUploadMutationError = CompleteUpload400 | CompleteUpload404 | CompleteUpload422 | CompleteUpload500;
|
|
1477
|
+
/**
|
|
1478
|
+
* @summary Complete direct file upload
|
|
1479
|
+
*/
|
|
1480
|
+
export declare const useCompleteUpload: <TError = CompleteUpload400 | CompleteUpload404 | CompleteUpload422 | CompleteUpload500, TContext = unknown>(options?: {
|
|
1481
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof completeUpload>>, TError, {
|
|
1482
|
+
id: string;
|
|
1483
|
+
data: CompleteUploadBody;
|
|
1484
|
+
}, TContext>;
|
|
1485
|
+
fetch?: RequestInit;
|
|
1486
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof completeUpload>>, TError, {
|
|
1487
|
+
id: string;
|
|
1488
|
+
data: CompleteUploadBody;
|
|
1489
|
+
}, TContext>;
|
|
1490
|
+
/**
|
|
1491
|
+
* Generates a public CDN URL (for public files) or a time-limited signed download URL (for private files).
|
|
1492
|
+
* @summary Get file download or CDN access URL
|
|
1493
|
+
*/
|
|
1494
|
+
export type getFileAccessUrlResponse200 = {
|
|
1495
|
+
data: GetFileAccessUrl200;
|
|
1496
|
+
status: 200;
|
|
1497
|
+
};
|
|
1498
|
+
export type getFileAccessUrlResponse400 = {
|
|
1499
|
+
data: GetFileAccessUrl400;
|
|
1500
|
+
status: 400;
|
|
1501
|
+
};
|
|
1502
|
+
export type getFileAccessUrlResponse404 = {
|
|
1503
|
+
data: GetFileAccessUrl404;
|
|
1504
|
+
status: 404;
|
|
1505
|
+
};
|
|
1506
|
+
export type getFileAccessUrlResponse422 = {
|
|
1507
|
+
data: GetFileAccessUrl422;
|
|
1508
|
+
status: 422;
|
|
1509
|
+
};
|
|
1510
|
+
export type getFileAccessUrlResponseSuccess = (getFileAccessUrlResponse200) & {
|
|
1511
|
+
headers: Headers;
|
|
1512
|
+
};
|
|
1513
|
+
export type getFileAccessUrlResponseError = (getFileAccessUrlResponse400 | getFileAccessUrlResponse404 | getFileAccessUrlResponse422) & {
|
|
1514
|
+
headers: Headers;
|
|
1515
|
+
};
|
|
1516
|
+
export type getFileAccessUrlResponse = (getFileAccessUrlResponseSuccess | getFileAccessUrlResponseError);
|
|
1517
|
+
export declare const getGetFileAccessUrlUrl: (id: string, params?: GetFileAccessUrlParams) => string;
|
|
1518
|
+
export declare const getFileAccessUrl: (id: string, params?: GetFileAccessUrlParams, options?: RequestInit) => Promise<getFileAccessUrlResponse>;
|
|
1519
|
+
export declare const getGetFileAccessUrlQueryKey: (id?: string, params?: GetFileAccessUrlParams) => readonly [`/files/${string}/access-url`, ...GetFileAccessUrlParams[]];
|
|
1520
|
+
export declare const getGetFileAccessUrlQueryOptions: <TData = Awaited<ReturnType<typeof getFileAccessUrl>>, TError = GetFileAccessUrl400 | GetFileAccessUrl404 | GetFileAccessUrl422>(id: string, params?: GetFileAccessUrlParams, options?: {
|
|
1521
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFileAccessUrl>>, TError, TData>>;
|
|
1522
|
+
fetch?: RequestInit;
|
|
1523
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getFileAccessUrl>>, TError, TData> & {
|
|
1524
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1525
|
+
};
|
|
1526
|
+
export type GetFileAccessUrlQueryResult = NonNullable<Awaited<ReturnType<typeof getFileAccessUrl>>>;
|
|
1527
|
+
export type GetFileAccessUrlQueryError = GetFileAccessUrl400 | GetFileAccessUrl404 | GetFileAccessUrl422;
|
|
1528
|
+
export declare function useGetFileAccessUrl<TData = Awaited<ReturnType<typeof getFileAccessUrl>>, TError = GetFileAccessUrl400 | GetFileAccessUrl404 | GetFileAccessUrl422>(id: string, params: undefined | GetFileAccessUrlParams, options: {
|
|
1529
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFileAccessUrl>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getFileAccessUrl>>, TError, Awaited<ReturnType<typeof getFileAccessUrl>>>, 'initialData'>;
|
|
1530
|
+
fetch?: RequestInit;
|
|
1531
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1532
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1533
|
+
};
|
|
1534
|
+
export declare function useGetFileAccessUrl<TData = Awaited<ReturnType<typeof getFileAccessUrl>>, TError = GetFileAccessUrl400 | GetFileAccessUrl404 | GetFileAccessUrl422>(id: string, params?: GetFileAccessUrlParams, options?: {
|
|
1535
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFileAccessUrl>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getFileAccessUrl>>, TError, Awaited<ReturnType<typeof getFileAccessUrl>>>, 'initialData'>;
|
|
1536
|
+
fetch?: RequestInit;
|
|
1537
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1538
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1539
|
+
};
|
|
1540
|
+
export declare function useGetFileAccessUrl<TData = Awaited<ReturnType<typeof getFileAccessUrl>>, TError = GetFileAccessUrl400 | GetFileAccessUrl404 | GetFileAccessUrl422>(id: string, params?: GetFileAccessUrlParams, options?: {
|
|
1541
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFileAccessUrl>>, TError, TData>>;
|
|
1542
|
+
fetch?: RequestInit;
|
|
1543
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1544
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1545
|
+
};
|
|
1546
|
+
/**
|
|
1547
|
+
* Retrieves warehouse details by its identifier. Returns 404 if not found or soft-deleted.
|
|
1548
|
+
* @summary Get warehouse by ID
|
|
1549
|
+
*/
|
|
1550
|
+
export type getWarehouseByIdResponse200 = {
|
|
1551
|
+
data: GetWarehouseById200;
|
|
1552
|
+
status: 200;
|
|
1553
|
+
};
|
|
1554
|
+
export type getWarehouseByIdResponse404 = {
|
|
1555
|
+
data: GetWarehouseById404;
|
|
1556
|
+
status: 404;
|
|
1557
|
+
};
|
|
1558
|
+
export type getWarehouseByIdResponseSuccess = (getWarehouseByIdResponse200) & {
|
|
1559
|
+
headers: Headers;
|
|
1560
|
+
};
|
|
1561
|
+
export type getWarehouseByIdResponseError = (getWarehouseByIdResponse404) & {
|
|
1562
|
+
headers: Headers;
|
|
1563
|
+
};
|
|
1564
|
+
export type getWarehouseByIdResponse = (getWarehouseByIdResponseSuccess | getWarehouseByIdResponseError);
|
|
1565
|
+
export declare const getGetWarehouseByIdUrl: (id: string) => string;
|
|
1566
|
+
export declare const getWarehouseById: (id: string, options?: RequestInit) => Promise<getWarehouseByIdResponse>;
|
|
1567
|
+
export declare const getGetWarehouseByIdQueryKey: (id?: string) => readonly [`/warehouses/${string}`];
|
|
1568
|
+
export declare const getGetWarehouseByIdQueryOptions: <TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = GetWarehouseById404>(id: string, options?: {
|
|
1569
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>>;
|
|
1570
|
+
fetch?: RequestInit;
|
|
1571
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData> & {
|
|
1572
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1573
|
+
};
|
|
1574
|
+
export type GetWarehouseByIdQueryResult = NonNullable<Awaited<ReturnType<typeof getWarehouseById>>>;
|
|
1575
|
+
export type GetWarehouseByIdQueryError = GetWarehouseById404;
|
|
1576
|
+
export declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = GetWarehouseById404>(id: string, options: {
|
|
1577
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, Awaited<ReturnType<typeof getWarehouseById>>>, 'initialData'>;
|
|
1578
|
+
fetch?: RequestInit;
|
|
1579
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1580
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1581
|
+
};
|
|
1582
|
+
export declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = GetWarehouseById404>(id: string, options?: {
|
|
1583
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, Awaited<ReturnType<typeof getWarehouseById>>>, 'initialData'>;
|
|
1584
|
+
fetch?: RequestInit;
|
|
1585
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1586
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1587
|
+
};
|
|
1588
|
+
export declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = GetWarehouseById404>(id: string, options?: {
|
|
1589
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>>;
|
|
1590
|
+
fetch?: RequestInit;
|
|
1591
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1592
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1593
|
+
};
|
|
1594
|
+
/**
|
|
1595
|
+
* Updates warehouse name, person in charge, and address. Increments version on update.
|
|
1596
|
+
* @summary Update warehouse
|
|
1597
|
+
*/
|
|
1598
|
+
export type updateWarehouseResponse400 = {
|
|
1599
|
+
data: UpdateWarehouse400;
|
|
1600
|
+
status: 400;
|
|
1601
|
+
};
|
|
1602
|
+
export type updateWarehouseResponse404 = {
|
|
1603
|
+
data: UpdateWarehouse404;
|
|
1604
|
+
status: 404;
|
|
1605
|
+
};
|
|
1606
|
+
export type updateWarehouseResponse409 = {
|
|
1607
|
+
data: UpdateWarehouse409;
|
|
1608
|
+
status: 409;
|
|
1609
|
+
};
|
|
1610
|
+
export type updateWarehouseResponse422 = {
|
|
1611
|
+
data: UpdateWarehouse422;
|
|
1612
|
+
status: 422;
|
|
1613
|
+
};
|
|
1614
|
+
export type updateWarehouseResponseError = (updateWarehouseResponse400 | updateWarehouseResponse404 | updateWarehouseResponse409 | updateWarehouseResponse422) & {
|
|
1615
|
+
headers: Headers;
|
|
1616
|
+
};
|
|
1617
|
+
export type updateWarehouseResponse = (updateWarehouseResponseError);
|
|
1618
|
+
export declare const getUpdateWarehouseUrl: (id: string) => string;
|
|
1619
|
+
export declare const updateWarehouse: (id: string, updateWarehouseBody: UpdateWarehouseBody, options?: RequestInit) => Promise<updateWarehouseResponse>;
|
|
1620
|
+
export declare const getUpdateWarehouseMutationOptions: <TError = UpdateWarehouse400 | UpdateWarehouse404 | UpdateWarehouse409 | UpdateWarehouse422, TContext = unknown>(options?: {
|
|
1621
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateWarehouse>>, TError, {
|
|
1622
|
+
id: string;
|
|
1623
|
+
data: UpdateWarehouseBody;
|
|
1624
|
+
}, TContext>;
|
|
1625
|
+
fetch?: RequestInit;
|
|
1626
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof updateWarehouse>>, TError, {
|
|
1627
|
+
id: string;
|
|
1628
|
+
data: UpdateWarehouseBody;
|
|
1629
|
+
}, TContext>;
|
|
1630
|
+
export type UpdateWarehouseMutationResult = NonNullable<Awaited<ReturnType<typeof updateWarehouse>>>;
|
|
1631
|
+
export type UpdateWarehouseMutationBody = UpdateWarehouseBody;
|
|
1632
|
+
export type UpdateWarehouseMutationError = UpdateWarehouse400 | UpdateWarehouse404 | UpdateWarehouse409 | UpdateWarehouse422;
|
|
1633
|
+
/**
|
|
1634
|
+
* @summary Update warehouse
|
|
1635
|
+
*/
|
|
1636
|
+
export declare const useUpdateWarehouse: <TError = UpdateWarehouse400 | UpdateWarehouse404 | UpdateWarehouse409 | UpdateWarehouse422, TContext = unknown>(options?: {
|
|
1637
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateWarehouse>>, TError, {
|
|
1638
|
+
id: string;
|
|
1639
|
+
data: UpdateWarehouseBody;
|
|
1640
|
+
}, TContext>;
|
|
1641
|
+
fetch?: RequestInit;
|
|
1642
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateWarehouse>>, TError, {
|
|
1643
|
+
id: string;
|
|
1644
|
+
data: UpdateWarehouseBody;
|
|
1645
|
+
}, TContext>;
|
|
1646
|
+
/**
|
|
1647
|
+
* Soft-deletes a warehouse by setting its deletedAt timestamp. Cannot delete active warehouses.
|
|
1648
|
+
* @summary Delete warehouse
|
|
1649
|
+
*/
|
|
1650
|
+
export type deleteWarehouseResponse400 = {
|
|
1651
|
+
data: DeleteWarehouse400;
|
|
1652
|
+
status: 400;
|
|
1653
|
+
};
|
|
1654
|
+
export type deleteWarehouseResponse404 = {
|
|
1655
|
+
data: DeleteWarehouse404;
|
|
1656
|
+
status: 404;
|
|
1657
|
+
};
|
|
1658
|
+
export type deleteWarehouseResponse409 = {
|
|
1659
|
+
data: DeleteWarehouse409;
|
|
1660
|
+
status: 409;
|
|
1661
|
+
};
|
|
1662
|
+
export type deleteWarehouseResponseError = (deleteWarehouseResponse400 | deleteWarehouseResponse404 | deleteWarehouseResponse409) & {
|
|
1663
|
+
headers: Headers;
|
|
1664
|
+
};
|
|
1665
|
+
export type deleteWarehouseResponse = (deleteWarehouseResponseError);
|
|
1666
|
+
export declare const getDeleteWarehouseUrl: (id: string) => string;
|
|
1667
|
+
export declare const deleteWarehouse: (id: string, options?: RequestInit) => Promise<deleteWarehouseResponse>;
|
|
1668
|
+
export declare const getDeleteWarehouseMutationOptions: <TError = DeleteWarehouse400 | DeleteWarehouse404 | DeleteWarehouse409, TContext = unknown>(options?: {
|
|
1669
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteWarehouse>>, TError, {
|
|
1670
|
+
id: string;
|
|
1671
|
+
}, TContext>;
|
|
1672
|
+
fetch?: RequestInit;
|
|
1673
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteWarehouse>>, TError, {
|
|
1674
|
+
id: string;
|
|
1675
|
+
}, TContext>;
|
|
1676
|
+
export type DeleteWarehouseMutationResult = NonNullable<Awaited<ReturnType<typeof deleteWarehouse>>>;
|
|
1677
|
+
export type DeleteWarehouseMutationError = DeleteWarehouse400 | DeleteWarehouse404 | DeleteWarehouse409;
|
|
1678
|
+
/**
|
|
1679
|
+
* @summary Delete warehouse
|
|
1680
|
+
*/
|
|
1681
|
+
export declare const useDeleteWarehouse: <TError = DeleteWarehouse400 | DeleteWarehouse404 | DeleteWarehouse409, TContext = unknown>(options?: {
|
|
1682
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteWarehouse>>, TError, {
|
|
1683
|
+
id: string;
|
|
1684
|
+
}, TContext>;
|
|
1685
|
+
fetch?: RequestInit;
|
|
1686
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteWarehouse>>, TError, {
|
|
1687
|
+
id: string;
|
|
1688
|
+
}, TContext>;
|
|
1689
|
+
/**
|
|
1690
|
+
* Updates a stock item name, SKU, or image. Increments version on update.
|
|
1691
|
+
* @summary Update stock item
|
|
1692
|
+
*/
|
|
1693
|
+
export type updateStockItemResponse400 = {
|
|
1694
|
+
data: UpdateStockItem400;
|
|
1695
|
+
status: 400;
|
|
1696
|
+
};
|
|
1697
|
+
export type updateStockItemResponse404 = {
|
|
1698
|
+
data: UpdateStockItem404;
|
|
1699
|
+
status: 404;
|
|
1700
|
+
};
|
|
1701
|
+
export type updateStockItemResponse409 = {
|
|
1702
|
+
data: UpdateStockItem409;
|
|
1703
|
+
status: 409;
|
|
1704
|
+
};
|
|
1705
|
+
export type updateStockItemResponseError = (updateStockItemResponse400 | updateStockItemResponse404 | updateStockItemResponse409) & {
|
|
1706
|
+
headers: Headers;
|
|
1707
|
+
};
|
|
1708
|
+
export type updateStockItemResponse = (updateStockItemResponseError);
|
|
1709
|
+
export declare const getUpdateStockItemUrl: (id: string) => string;
|
|
1710
|
+
export declare const updateStockItem: (id: string, updateStockItemBody: UpdateStockItemBody, options?: RequestInit) => Promise<updateStockItemResponse>;
|
|
1711
|
+
export declare const getUpdateStockItemMutationOptions: <TError = UpdateStockItem400 | UpdateStockItem404 | UpdateStockItem409, TContext = unknown>(options?: {
|
|
1712
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateStockItem>>, TError, {
|
|
1713
|
+
id: string;
|
|
1714
|
+
data: UpdateStockItemBody;
|
|
1715
|
+
}, TContext>;
|
|
1716
|
+
fetch?: RequestInit;
|
|
1717
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof updateStockItem>>, TError, {
|
|
1718
|
+
id: string;
|
|
1719
|
+
data: UpdateStockItemBody;
|
|
1720
|
+
}, TContext>;
|
|
1721
|
+
export type UpdateStockItemMutationResult = NonNullable<Awaited<ReturnType<typeof updateStockItem>>>;
|
|
1722
|
+
export type UpdateStockItemMutationBody = UpdateStockItemBody;
|
|
1723
|
+
export type UpdateStockItemMutationError = UpdateStockItem400 | UpdateStockItem404 | UpdateStockItem409;
|
|
1724
|
+
/**
|
|
1725
|
+
* @summary Update stock item
|
|
1726
|
+
*/
|
|
1727
|
+
export declare const useUpdateStockItem: <TError = UpdateStockItem400 | UpdateStockItem404 | UpdateStockItem409, TContext = unknown>(options?: {
|
|
1728
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateStockItem>>, TError, {
|
|
1729
|
+
id: string;
|
|
1730
|
+
data: UpdateStockItemBody;
|
|
1731
|
+
}, TContext>;
|
|
1732
|
+
fetch?: RequestInit;
|
|
1733
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateStockItem>>, TError, {
|
|
1734
|
+
id: string;
|
|
1735
|
+
data: UpdateStockItemBody;
|
|
1736
|
+
}, TContext>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Soft-deletes a stock item by setting its deletedAt timestamp. Cannot delete active stock items.
|
|
1739
|
+
* @summary Delete stock item
|
|
1740
|
+
*/
|
|
1741
|
+
export type deleteStockItemResponse400 = {
|
|
1742
|
+
data: DeleteStockItem400;
|
|
1743
|
+
status: 400;
|
|
1744
|
+
};
|
|
1745
|
+
export type deleteStockItemResponse404 = {
|
|
1746
|
+
data: DeleteStockItem404;
|
|
1747
|
+
status: 404;
|
|
1748
|
+
};
|
|
1749
|
+
export type deleteStockItemResponse409 = {
|
|
1750
|
+
data: DeleteStockItem409;
|
|
1751
|
+
status: 409;
|
|
1752
|
+
};
|
|
1753
|
+
export type deleteStockItemResponseError = (deleteStockItemResponse400 | deleteStockItemResponse404 | deleteStockItemResponse409) & {
|
|
1754
|
+
headers: Headers;
|
|
1755
|
+
};
|
|
1756
|
+
export type deleteStockItemResponse = (deleteStockItemResponseError);
|
|
1757
|
+
export declare const getDeleteStockItemUrl: (id: string) => string;
|
|
1758
|
+
export declare const deleteStockItem: (id: string, options?: RequestInit) => Promise<deleteStockItemResponse>;
|
|
1759
|
+
export declare const getDeleteStockItemMutationOptions: <TError = DeleteStockItem400 | DeleteStockItem404 | DeleteStockItem409, TContext = unknown>(options?: {
|
|
1760
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteStockItem>>, TError, {
|
|
1761
|
+
id: string;
|
|
1762
|
+
}, TContext>;
|
|
1763
|
+
fetch?: RequestInit;
|
|
1764
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteStockItem>>, TError, {
|
|
1765
|
+
id: string;
|
|
1766
|
+
}, TContext>;
|
|
1767
|
+
export type DeleteStockItemMutationResult = NonNullable<Awaited<ReturnType<typeof deleteStockItem>>>;
|
|
1768
|
+
export type DeleteStockItemMutationError = DeleteStockItem400 | DeleteStockItem404 | DeleteStockItem409;
|
|
1769
|
+
/**
|
|
1770
|
+
* @summary Delete stock item
|
|
1771
|
+
*/
|
|
1772
|
+
export declare const useDeleteStockItem: <TError = DeleteStockItem400 | DeleteStockItem404 | DeleteStockItem409, TContext = unknown>(options?: {
|
|
1773
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteStockItem>>, TError, {
|
|
1774
|
+
id: string;
|
|
1775
|
+
}, TContext>;
|
|
1776
|
+
fetch?: RequestInit;
|
|
1777
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteStockItem>>, TError, {
|
|
1778
|
+
id: string;
|
|
1779
|
+
}, TContext>;
|
|
1780
|
+
/**
|
|
1781
|
+
* Retrieves active stored file metadata by its ID.
|
|
1782
|
+
* @summary Get stored file by ID
|
|
1783
|
+
*/
|
|
1784
|
+
export type getStoredFileByIdResponse200 = {
|
|
1785
|
+
data: GetStoredFileById200;
|
|
1786
|
+
status: 200;
|
|
1787
|
+
};
|
|
1788
|
+
export type getStoredFileByIdResponse400 = {
|
|
1789
|
+
data: GetStoredFileById400;
|
|
1790
|
+
status: 400;
|
|
1791
|
+
};
|
|
1792
|
+
export type getStoredFileByIdResponse404 = {
|
|
1793
|
+
data: GetStoredFileById404;
|
|
1794
|
+
status: 404;
|
|
1795
|
+
};
|
|
1796
|
+
export type getStoredFileByIdResponseSuccess = (getStoredFileByIdResponse200) & {
|
|
1797
|
+
headers: Headers;
|
|
1798
|
+
};
|
|
1799
|
+
export type getStoredFileByIdResponseError = (getStoredFileByIdResponse400 | getStoredFileByIdResponse404) & {
|
|
1800
|
+
headers: Headers;
|
|
1801
|
+
};
|
|
1802
|
+
export type getStoredFileByIdResponse = (getStoredFileByIdResponseSuccess | getStoredFileByIdResponseError);
|
|
1803
|
+
export declare const getGetStoredFileByIdUrl: (id: string) => string;
|
|
1804
|
+
export declare const getStoredFileById: (id: string, options?: RequestInit) => Promise<getStoredFileByIdResponse>;
|
|
1805
|
+
export declare const getGetStoredFileByIdQueryKey: (id?: string) => readonly [`/files/${string}`];
|
|
1806
|
+
export declare const getGetStoredFileByIdQueryOptions: <TData = Awaited<ReturnType<typeof getStoredFileById>>, TError = GetStoredFileById400 | GetStoredFileById404>(id: string, options?: {
|
|
1807
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getStoredFileById>>, TError, TData>>;
|
|
1808
|
+
fetch?: RequestInit;
|
|
1809
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getStoredFileById>>, TError, TData> & {
|
|
1810
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1811
|
+
};
|
|
1812
|
+
export type GetStoredFileByIdQueryResult = NonNullable<Awaited<ReturnType<typeof getStoredFileById>>>;
|
|
1813
|
+
export type GetStoredFileByIdQueryError = GetStoredFileById400 | GetStoredFileById404;
|
|
1814
|
+
export declare function useGetStoredFileById<TData = Awaited<ReturnType<typeof getStoredFileById>>, TError = GetStoredFileById400 | GetStoredFileById404>(id: string, options: {
|
|
1815
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getStoredFileById>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getStoredFileById>>, TError, Awaited<ReturnType<typeof getStoredFileById>>>, 'initialData'>;
|
|
1816
|
+
fetch?: RequestInit;
|
|
1817
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1818
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1819
|
+
};
|
|
1820
|
+
export declare function useGetStoredFileById<TData = Awaited<ReturnType<typeof getStoredFileById>>, TError = GetStoredFileById400 | GetStoredFileById404>(id: string, options?: {
|
|
1821
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getStoredFileById>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getStoredFileById>>, TError, Awaited<ReturnType<typeof getStoredFileById>>>, 'initialData'>;
|
|
1822
|
+
fetch?: RequestInit;
|
|
1823
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1824
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1825
|
+
};
|
|
1826
|
+
export declare function useGetStoredFileById<TData = Awaited<ReturnType<typeof getStoredFileById>>, TError = GetStoredFileById400 | GetStoredFileById404>(id: string, options?: {
|
|
1827
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getStoredFileById>>, TError, TData>>;
|
|
1828
|
+
fetch?: RequestInit;
|
|
1829
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1830
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1831
|
+
};
|
|
1832
|
+
/**
|
|
1833
|
+
* Marks a stored file as DELETED. Files in active use by other modules cannot be deleted.
|
|
1834
|
+
* @summary Soft delete stored file
|
|
1835
|
+
*/
|
|
1836
|
+
export type deleteStoredFileResponse400 = {
|
|
1837
|
+
data: DeleteStoredFile400;
|
|
1838
|
+
status: 400;
|
|
1839
|
+
};
|
|
1840
|
+
export type deleteStoredFileResponse404 = {
|
|
1841
|
+
data: DeleteStoredFile404;
|
|
1842
|
+
status: 404;
|
|
1843
|
+
};
|
|
1844
|
+
export type deleteStoredFileResponse409 = {
|
|
1845
|
+
data: DeleteStoredFile409;
|
|
1846
|
+
status: 409;
|
|
1847
|
+
};
|
|
1848
|
+
export type deleteStoredFileResponseError = (deleteStoredFileResponse400 | deleteStoredFileResponse404 | deleteStoredFileResponse409) & {
|
|
1849
|
+
headers: Headers;
|
|
1850
|
+
};
|
|
1851
|
+
export type deleteStoredFileResponse = (deleteStoredFileResponseError);
|
|
1852
|
+
export declare const getDeleteStoredFileUrl: (id: string) => string;
|
|
1853
|
+
export declare const deleteStoredFile: (id: string, options?: RequestInit) => Promise<deleteStoredFileResponse>;
|
|
1854
|
+
export declare const getDeleteStoredFileMutationOptions: <TError = DeleteStoredFile400 | DeleteStoredFile404 | DeleteStoredFile409, TContext = unknown>(options?: {
|
|
1855
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteStoredFile>>, TError, {
|
|
1856
|
+
id: string;
|
|
1857
|
+
}, TContext>;
|
|
1858
|
+
fetch?: RequestInit;
|
|
1859
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteStoredFile>>, TError, {
|
|
1860
|
+
id: string;
|
|
1861
|
+
}, TContext>;
|
|
1862
|
+
export type DeleteStoredFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteStoredFile>>>;
|
|
1863
|
+
export type DeleteStoredFileMutationError = DeleteStoredFile400 | DeleteStoredFile404 | DeleteStoredFile409;
|
|
1864
|
+
/**
|
|
1865
|
+
* @summary Soft delete stored file
|
|
1866
|
+
*/
|
|
1867
|
+
export declare const useDeleteStoredFile: <TError = DeleteStoredFile400 | DeleteStoredFile404 | DeleteStoredFile409, TContext = unknown>(options?: {
|
|
1868
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteStoredFile>>, TError, {
|
|
1869
|
+
id: string;
|
|
1870
|
+
}, TContext>;
|
|
1871
|
+
fetch?: RequestInit;
|
|
1872
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteStoredFile>>, TError, {
|
|
1873
|
+
id: string;
|
|
1874
|
+
}, TContext>;
|
|
1875
|
+
/**
|
|
1876
|
+
* @summary Health check
|
|
1877
|
+
*/
|
|
1878
|
+
export type getHealthResponse200 = {
|
|
1879
|
+
data: GetHealth200;
|
|
1880
|
+
status: 200;
|
|
1881
|
+
};
|
|
1882
|
+
export type getHealthResponse503 = {
|
|
1883
|
+
data: GetHealth503;
|
|
1884
|
+
status: 503;
|
|
1885
|
+
};
|
|
1886
|
+
export type getHealthResponseSuccess = (getHealthResponse200) & {
|
|
1887
|
+
headers: Headers;
|
|
1888
|
+
};
|
|
1889
|
+
export type getHealthResponseError = (getHealthResponse503) & {
|
|
1890
|
+
headers: Headers;
|
|
1891
|
+
};
|
|
1892
|
+
export type getHealthResponse = (getHealthResponseSuccess | getHealthResponseError);
|
|
1893
|
+
export declare const getGetHealthUrl: () => string;
|
|
1894
|
+
export declare const getHealth: (options?: RequestInit) => Promise<getHealthResponse>;
|
|
1895
|
+
export declare const getGetHealthQueryKey: () => readonly ["/health"];
|
|
1896
|
+
export declare const getGetHealthQueryOptions: <TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
1897
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>>;
|
|
1898
|
+
fetch?: RequestInit;
|
|
1899
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData> & {
|
|
1900
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1901
|
+
};
|
|
1902
|
+
export type GetHealthQueryResult = NonNullable<Awaited<ReturnType<typeof getHealth>>>;
|
|
1903
|
+
export type GetHealthQueryError = GetHealth503;
|
|
1904
|
+
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options: {
|
|
1905
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getHealth>>, TError, Awaited<ReturnType<typeof getHealth>>>, 'initialData'>;
|
|
1906
|
+
fetch?: RequestInit;
|
|
1907
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1908
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1909
|
+
};
|
|
1910
|
+
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
1911
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getHealth>>, TError, Awaited<ReturnType<typeof getHealth>>>, 'initialData'>;
|
|
1912
|
+
fetch?: RequestInit;
|
|
1913
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1914
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1915
|
+
};
|
|
1916
|
+
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
1917
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>>;
|
|
1918
|
+
fetch?: RequestInit;
|
|
1919
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1920
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1921
|
+
};
|
|
1922
|
+
export type getCustomersResponse200 = {
|
|
1923
|
+
data: void;
|
|
1924
|
+
status: 200;
|
|
1925
|
+
};
|
|
1926
|
+
export type getCustomersResponseSuccess = (getCustomersResponse200) & {
|
|
1927
|
+
headers: Headers;
|
|
1928
|
+
};
|
|
1929
|
+
export type getCustomersResponse = (getCustomersResponseSuccess);
|
|
1930
|
+
export declare const getGetCustomersUrl: () => string;
|
|
1931
|
+
export declare const getCustomers: (options?: RequestInit) => Promise<getCustomersResponse>;
|
|
1932
|
+
export declare const getGetCustomersQueryKey: () => readonly ["/customers"];
|
|
1933
|
+
export declare const getGetCustomersQueryOptions: <TData = Awaited<ReturnType<typeof getCustomers>>, TError = unknown>(options?: {
|
|
1934
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCustomers>>, TError, TData>>;
|
|
1935
|
+
fetch?: RequestInit;
|
|
1936
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getCustomers>>, TError, TData> & {
|
|
1937
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1938
|
+
};
|
|
1939
|
+
export type GetCustomersQueryResult = NonNullable<Awaited<ReturnType<typeof getCustomers>>>;
|
|
1940
|
+
export type GetCustomersQueryError = unknown;
|
|
1941
|
+
export declare function useGetCustomers<TData = Awaited<ReturnType<typeof getCustomers>>, TError = unknown>(options: {
|
|
1942
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCustomers>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getCustomers>>, TError, Awaited<ReturnType<typeof getCustomers>>>, 'initialData'>;
|
|
1943
|
+
fetch?: RequestInit;
|
|
1944
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1945
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1946
|
+
};
|
|
1947
|
+
export declare function useGetCustomers<TData = Awaited<ReturnType<typeof getCustomers>>, TError = unknown>(options?: {
|
|
1948
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCustomers>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getCustomers>>, TError, Awaited<ReturnType<typeof getCustomers>>>, 'initialData'>;
|
|
1949
|
+
fetch?: RequestInit;
|
|
1950
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1951
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1952
|
+
};
|
|
1953
|
+
export declare function useGetCustomers<TData = Awaited<ReturnType<typeof getCustomers>>, TError = unknown>(options?: {
|
|
1954
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCustomers>>, TError, TData>>;
|
|
1955
|
+
fetch?: RequestInit;
|
|
1956
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1957
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1958
|
+
};
|
|
1959
|
+
/**
|
|
1960
|
+
* Creates a new warehouse with an address resolved from the Address service and an initial active state.
|
|
1961
|
+
* @summary Create a new warehouse
|
|
1962
|
+
*/
|
|
1963
|
+
export type createWarehouseResponse201 = {
|
|
1964
|
+
data: CreateWarehouse201;
|
|
1965
|
+
status: 201;
|
|
1966
|
+
};
|
|
1967
|
+
export type createWarehouseResponse400 = {
|
|
1968
|
+
data: CreateWarehouse400;
|
|
1969
|
+
status: 400;
|
|
1970
|
+
};
|
|
1971
|
+
export type createWarehouseResponse404 = {
|
|
1972
|
+
data: CreateWarehouse404;
|
|
1973
|
+
status: 404;
|
|
1974
|
+
};
|
|
1975
|
+
export type createWarehouseResponse409 = {
|
|
1976
|
+
data: CreateWarehouse409;
|
|
1977
|
+
status: 409;
|
|
1978
|
+
};
|
|
1979
|
+
export type createWarehouseResponse422 = {
|
|
1980
|
+
data: CreateWarehouse422;
|
|
1981
|
+
status: 422;
|
|
1982
|
+
};
|
|
1983
|
+
export type createWarehouseResponseSuccess = (createWarehouseResponse201) & {
|
|
1984
|
+
headers: Headers;
|
|
1985
|
+
};
|
|
1986
|
+
export type createWarehouseResponseError = (createWarehouseResponse400 | createWarehouseResponse404 | createWarehouseResponse409 | createWarehouseResponse422) & {
|
|
1987
|
+
headers: Headers;
|
|
1988
|
+
};
|
|
1989
|
+
export type createWarehouseResponse = (createWarehouseResponseSuccess | createWarehouseResponseError);
|
|
1990
|
+
export declare const getCreateWarehouseUrl: () => string;
|
|
1991
|
+
export declare const createWarehouse: (createWarehouseBody: CreateWarehouseBody, options?: RequestInit) => Promise<createWarehouseResponse>;
|
|
1992
|
+
export declare const getCreateWarehouseMutationOptions: <TError = CreateWarehouse400 | CreateWarehouse404 | CreateWarehouse409 | CreateWarehouse422, TContext = unknown>(options?: {
|
|
1993
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createWarehouse>>, TError, {
|
|
1994
|
+
data: CreateWarehouseBody;
|
|
1995
|
+
}, TContext>;
|
|
1996
|
+
fetch?: RequestInit;
|
|
1997
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createWarehouse>>, TError, {
|
|
1998
|
+
data: CreateWarehouseBody;
|
|
1999
|
+
}, TContext>;
|
|
2000
|
+
export type CreateWarehouseMutationResult = NonNullable<Awaited<ReturnType<typeof createWarehouse>>>;
|
|
2001
|
+
export type CreateWarehouseMutationBody = CreateWarehouseBody;
|
|
2002
|
+
export type CreateWarehouseMutationError = CreateWarehouse400 | CreateWarehouse404 | CreateWarehouse409 | CreateWarehouse422;
|
|
2003
|
+
/**
|
|
2004
|
+
* @summary Create a new warehouse
|
|
2005
|
+
*/
|
|
2006
|
+
export declare const useCreateWarehouse: <TError = CreateWarehouse400 | CreateWarehouse404 | CreateWarehouse409 | CreateWarehouse422, TContext = unknown>(options?: {
|
|
2007
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createWarehouse>>, TError, {
|
|
2008
|
+
data: CreateWarehouseBody;
|
|
2009
|
+
}, TContext>;
|
|
2010
|
+
fetch?: RequestInit;
|
|
2011
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createWarehouse>>, TError, {
|
|
2012
|
+
data: CreateWarehouseBody;
|
|
2013
|
+
}, TContext>;
|
|
2014
|
+
/**
|
|
2015
|
+
* Retrieves a filtered list of warehouses. Excludes soft-deleted warehouses.
|
|
2016
|
+
* @summary List all warehouses
|
|
2017
|
+
*/
|
|
2018
|
+
export type listWarehousesResponse200 = {
|
|
2019
|
+
data: ListWarehouses200;
|
|
2020
|
+
status: 200;
|
|
2021
|
+
};
|
|
2022
|
+
export type listWarehousesResponseSuccess = (listWarehousesResponse200) & {
|
|
2023
|
+
headers: Headers;
|
|
2024
|
+
};
|
|
2025
|
+
export type listWarehousesResponse = (listWarehousesResponseSuccess);
|
|
2026
|
+
export declare const getListWarehousesUrl: (params?: ListWarehousesParams) => string;
|
|
2027
|
+
export declare const listWarehouses: (params?: ListWarehousesParams, options?: RequestInit) => Promise<listWarehousesResponse>;
|
|
2028
|
+
export declare const getListWarehousesQueryKey: (params?: ListWarehousesParams) => readonly ["/warehouses", ...ListWarehousesParams[]];
|
|
2029
|
+
export declare const getListWarehousesQueryOptions: <TData = Awaited<ReturnType<typeof listWarehouses>>, TError = unknown>(params?: ListWarehousesParams, options?: {
|
|
2030
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, TData>>;
|
|
2031
|
+
fetch?: RequestInit;
|
|
2032
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, TData> & {
|
|
2033
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2034
|
+
};
|
|
2035
|
+
export type ListWarehousesQueryResult = NonNullable<Awaited<ReturnType<typeof listWarehouses>>>;
|
|
2036
|
+
export type ListWarehousesQueryError = unknown;
|
|
2037
|
+
export declare function useListWarehouses<TData = Awaited<ReturnType<typeof listWarehouses>>, TError = unknown>(params: undefined | ListWarehousesParams, options: {
|
|
2038
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, Awaited<ReturnType<typeof listWarehouses>>>, 'initialData'>;
|
|
2039
|
+
fetch?: RequestInit;
|
|
2040
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
2041
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2042
|
+
};
|
|
2043
|
+
export declare function useListWarehouses<TData = Awaited<ReturnType<typeof listWarehouses>>, TError = unknown>(params?: ListWarehousesParams, options?: {
|
|
2044
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, Awaited<ReturnType<typeof listWarehouses>>>, 'initialData'>;
|
|
2045
|
+
fetch?: RequestInit;
|
|
2046
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2047
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2048
|
+
};
|
|
2049
|
+
export declare function useListWarehouses<TData = Awaited<ReturnType<typeof listWarehouses>>, TError = unknown>(params?: ListWarehousesParams, options?: {
|
|
2050
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, TData>>;
|
|
2051
|
+
fetch?: RequestInit;
|
|
2052
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2053
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2054
|
+
};
|
|
2055
|
+
/**
|
|
2056
|
+
* Lists paginated stock movements with optional filtering by itemId, batchId, warehouseId, and sorting.
|
|
2057
|
+
* @summary List stock movements
|
|
2058
|
+
*/
|
|
2059
|
+
export type listStockMovementsResponse200 = {
|
|
2060
|
+
data: ListStockMovements200;
|
|
2061
|
+
status: 200;
|
|
2062
|
+
};
|
|
2063
|
+
export type listStockMovementsResponseSuccess = (listStockMovementsResponse200) & {
|
|
2064
|
+
headers: Headers;
|
|
2065
|
+
};
|
|
2066
|
+
export type listStockMovementsResponse = (listStockMovementsResponseSuccess);
|
|
2067
|
+
export declare const getListStockMovementsUrl: (params?: ListStockMovementsParams) => string;
|
|
2068
|
+
export declare const listStockMovements: (params?: ListStockMovementsParams, options?: RequestInit) => Promise<listStockMovementsResponse>;
|
|
2069
|
+
export declare const getListStockMovementsQueryKey: (params?: ListStockMovementsParams) => readonly ["/stock-movements", ...ListStockMovementsParams[]];
|
|
2070
|
+
export declare const getListStockMovementsQueryOptions: <TData = Awaited<ReturnType<typeof listStockMovements>>, TError = unknown>(params?: ListStockMovementsParams, options?: {
|
|
2071
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, TData>>;
|
|
2072
|
+
fetch?: RequestInit;
|
|
2073
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, TData> & {
|
|
2074
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2075
|
+
};
|
|
2076
|
+
export type ListStockMovementsQueryResult = NonNullable<Awaited<ReturnType<typeof listStockMovements>>>;
|
|
2077
|
+
export type ListStockMovementsQueryError = unknown;
|
|
2078
|
+
export declare function useListStockMovements<TData = Awaited<ReturnType<typeof listStockMovements>>, TError = unknown>(params: undefined | ListStockMovementsParams, options: {
|
|
2079
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, Awaited<ReturnType<typeof listStockMovements>>>, 'initialData'>;
|
|
2080
|
+
fetch?: RequestInit;
|
|
2081
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
2082
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2083
|
+
};
|
|
2084
|
+
export declare function useListStockMovements<TData = Awaited<ReturnType<typeof listStockMovements>>, TError = unknown>(params?: ListStockMovementsParams, options?: {
|
|
2085
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, Awaited<ReturnType<typeof listStockMovements>>>, 'initialData'>;
|
|
2086
|
+
fetch?: RequestInit;
|
|
2087
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2088
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2089
|
+
};
|
|
2090
|
+
export declare function useListStockMovements<TData = Awaited<ReturnType<typeof listStockMovements>>, TError = unknown>(params?: ListStockMovementsParams, options?: {
|
|
2091
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, TData>>;
|
|
2092
|
+
fetch?: RequestInit;
|
|
2093
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2094
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2095
|
+
};
|
|
2096
|
+
/**
|
|
2097
|
+
* Creates a new stock item with a unique SKU and name.
|
|
2098
|
+
* @summary Create a new stock item
|
|
2099
|
+
*/
|
|
2100
|
+
export type createStockItemResponse201 = {
|
|
2101
|
+
data: CreateStockItem201;
|
|
2102
|
+
status: 201;
|
|
2103
|
+
};
|
|
2104
|
+
export type createStockItemResponse400 = {
|
|
2105
|
+
data: CreateStockItem400;
|
|
2106
|
+
status: 400;
|
|
2107
|
+
};
|
|
2108
|
+
export type createStockItemResponse409 = {
|
|
2109
|
+
data: CreateStockItem409;
|
|
2110
|
+
status: 409;
|
|
2111
|
+
};
|
|
2112
|
+
export type createStockItemResponseSuccess = (createStockItemResponse201) & {
|
|
2113
|
+
headers: Headers;
|
|
2114
|
+
};
|
|
2115
|
+
export type createStockItemResponseError = (createStockItemResponse400 | createStockItemResponse409) & {
|
|
2116
|
+
headers: Headers;
|
|
2117
|
+
};
|
|
2118
|
+
export type createStockItemResponse = (createStockItemResponseSuccess | createStockItemResponseError);
|
|
2119
|
+
export declare const getCreateStockItemUrl: () => string;
|
|
2120
|
+
export declare const createStockItem: (createStockItemBody: CreateStockItemBody, options?: RequestInit) => Promise<createStockItemResponse>;
|
|
2121
|
+
export declare const getCreateStockItemMutationOptions: <TError = CreateStockItem400 | CreateStockItem409, TContext = unknown>(options?: {
|
|
2122
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createStockItem>>, TError, {
|
|
2123
|
+
data: CreateStockItemBody;
|
|
2124
|
+
}, TContext>;
|
|
2125
|
+
fetch?: RequestInit;
|
|
2126
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createStockItem>>, TError, {
|
|
2127
|
+
data: CreateStockItemBody;
|
|
2128
|
+
}, TContext>;
|
|
2129
|
+
export type CreateStockItemMutationResult = NonNullable<Awaited<ReturnType<typeof createStockItem>>>;
|
|
2130
|
+
export type CreateStockItemMutationBody = CreateStockItemBody;
|
|
2131
|
+
export type CreateStockItemMutationError = CreateStockItem400 | CreateStockItem409;
|
|
2132
|
+
/**
|
|
2133
|
+
* @summary Create a new stock item
|
|
2134
|
+
*/
|
|
2135
|
+
export declare const useCreateStockItem: <TError = CreateStockItem400 | CreateStockItem409, TContext = unknown>(options?: {
|
|
2136
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createStockItem>>, TError, {
|
|
2137
|
+
data: CreateStockItemBody;
|
|
2138
|
+
}, TContext>;
|
|
2139
|
+
fetch?: RequestInit;
|
|
2140
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createStockItem>>, TError, {
|
|
2141
|
+
data: CreateStockItemBody;
|
|
2142
|
+
}, TContext>;
|
|
2143
|
+
/**
|
|
2144
|
+
* Lists paginated stock items with aggregate on-hand, reserved, and available stock levels. Optionally filters by warehouseId, search, and isActive status.
|
|
2145
|
+
* @summary List stock items
|
|
2146
|
+
*/
|
|
2147
|
+
export type listStockItemsResponse200 = {
|
|
2148
|
+
data: ListStockItems200;
|
|
2149
|
+
status: 200;
|
|
2150
|
+
};
|
|
2151
|
+
export type listStockItemsResponseSuccess = (listStockItemsResponse200) & {
|
|
2152
|
+
headers: Headers;
|
|
2153
|
+
};
|
|
2154
|
+
export type listStockItemsResponse = (listStockItemsResponseSuccess);
|
|
2155
|
+
export declare const getListStockItemsUrl: (params?: ListStockItemsParams) => string;
|
|
2156
|
+
export declare const listStockItems: (params?: ListStockItemsParams, options?: RequestInit) => Promise<listStockItemsResponse>;
|
|
2157
|
+
export declare const getListStockItemsQueryKey: (params?: ListStockItemsParams) => readonly ["/stock-items", ...ListStockItemsParams[]];
|
|
2158
|
+
export declare const getListStockItemsQueryOptions: <TData = Awaited<ReturnType<typeof listStockItems>>, TError = unknown>(params?: ListStockItemsParams, options?: {
|
|
2159
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockItems>>, TError, TData>>;
|
|
2160
|
+
fetch?: RequestInit;
|
|
2161
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof listStockItems>>, TError, TData> & {
|
|
2162
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2163
|
+
};
|
|
2164
|
+
export type ListStockItemsQueryResult = NonNullable<Awaited<ReturnType<typeof listStockItems>>>;
|
|
2165
|
+
export type ListStockItemsQueryError = unknown;
|
|
2166
|
+
export declare function useListStockItems<TData = Awaited<ReturnType<typeof listStockItems>>, TError = unknown>(params: undefined | ListStockItemsParams, options: {
|
|
2167
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockItems>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listStockItems>>, TError, Awaited<ReturnType<typeof listStockItems>>>, 'initialData'>;
|
|
2168
|
+
fetch?: RequestInit;
|
|
2169
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
2170
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2171
|
+
};
|
|
2172
|
+
export declare function useListStockItems<TData = Awaited<ReturnType<typeof listStockItems>>, TError = unknown>(params?: ListStockItemsParams, options?: {
|
|
2173
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockItems>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listStockItems>>, TError, Awaited<ReturnType<typeof listStockItems>>>, 'initialData'>;
|
|
2174
|
+
fetch?: RequestInit;
|
|
2175
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2176
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2177
|
+
};
|
|
2178
|
+
export declare function useListStockItems<TData = Awaited<ReturnType<typeof listStockItems>>, TError = unknown>(params?: ListStockItemsParams, options?: {
|
|
2179
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockItems>>, TError, TData>>;
|
|
2180
|
+
fetch?: RequestInit;
|
|
2181
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2182
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2183
|
+
};
|
|
2184
|
+
/**
|
|
2185
|
+
* Records a new batch receipt into a warehouse and updates stock levels atomically.
|
|
2186
|
+
* @summary Create a new stock batch
|
|
2187
|
+
*/
|
|
2188
|
+
export type createBatchResponse201 = {
|
|
2189
|
+
data: CreateBatch201;
|
|
2190
|
+
status: 201;
|
|
2191
|
+
};
|
|
2192
|
+
export type createBatchResponse400 = {
|
|
2193
|
+
data: CreateBatch400;
|
|
2194
|
+
status: 400;
|
|
2195
|
+
};
|
|
2196
|
+
export type createBatchResponse404 = {
|
|
2197
|
+
data: CreateBatch404;
|
|
2198
|
+
status: 404;
|
|
2199
|
+
};
|
|
2200
|
+
export type createBatchResponse409 = {
|
|
2201
|
+
data: CreateBatch409;
|
|
2202
|
+
status: 409;
|
|
2203
|
+
};
|
|
2204
|
+
export type createBatchResponseSuccess = (createBatchResponse201) & {
|
|
2205
|
+
headers: Headers;
|
|
2206
|
+
};
|
|
2207
|
+
export type createBatchResponseError = (createBatchResponse400 | createBatchResponse404 | createBatchResponse409) & {
|
|
2208
|
+
headers: Headers;
|
|
2209
|
+
};
|
|
2210
|
+
export type createBatchResponse = (createBatchResponseSuccess | createBatchResponseError);
|
|
2211
|
+
export declare const getCreateBatchUrl: () => string;
|
|
2212
|
+
export declare const createBatch: (createBatchBody: CreateBatchBody, options?: RequestInit) => Promise<createBatchResponse>;
|
|
2213
|
+
export declare const getCreateBatchMutationOptions: <TError = CreateBatch400 | CreateBatch404 | CreateBatch409, TContext = unknown>(options?: {
|
|
2214
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createBatch>>, TError, {
|
|
2215
|
+
data: CreateBatchBody;
|
|
2216
|
+
}, TContext>;
|
|
2217
|
+
fetch?: RequestInit;
|
|
2218
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createBatch>>, TError, {
|
|
2219
|
+
data: CreateBatchBody;
|
|
2220
|
+
}, TContext>;
|
|
2221
|
+
export type CreateBatchMutationResult = NonNullable<Awaited<ReturnType<typeof createBatch>>>;
|
|
2222
|
+
export type CreateBatchMutationBody = CreateBatchBody;
|
|
2223
|
+
export type CreateBatchMutationError = CreateBatch400 | CreateBatch404 | CreateBatch409;
|
|
2224
|
+
/**
|
|
2225
|
+
* @summary Create a new stock batch
|
|
2226
|
+
*/
|
|
2227
|
+
export declare const useCreateBatch: <TError = CreateBatch400 | CreateBatch404 | CreateBatch409, TContext = unknown>(options?: {
|
|
2228
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createBatch>>, TError, {
|
|
2229
|
+
data: CreateBatchBody;
|
|
2230
|
+
}, TContext>;
|
|
2231
|
+
fetch?: RequestInit;
|
|
2232
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createBatch>>, TError, {
|
|
2233
|
+
data: CreateBatchBody;
|
|
2234
|
+
}, TContext>;
|
|
2235
|
+
/**
|
|
2236
|
+
* @summary API welcome message
|
|
2237
|
+
*/
|
|
2238
|
+
export type getResponse200 = {
|
|
2239
|
+
data: Get200;
|
|
2240
|
+
status: 200;
|
|
2241
|
+
};
|
|
2242
|
+
export type getResponse503 = {
|
|
2243
|
+
data: Get503;
|
|
2244
|
+
status: 503;
|
|
2245
|
+
};
|
|
2246
|
+
export type getResponseSuccess = (getResponse200) & {
|
|
2247
|
+
headers: Headers;
|
|
2248
|
+
};
|
|
2249
|
+
export type getResponseError = (getResponse503) & {
|
|
2250
|
+
headers: Headers;
|
|
2251
|
+
};
|
|
2252
|
+
export type getResponse = (getResponseSuccess | getResponseError);
|
|
2253
|
+
export declare const getGetUrl: () => string;
|
|
2254
|
+
export declare const get: (options?: RequestInit) => Promise<getResponse>;
|
|
2255
|
+
export declare const getGetQueryKey: () => readonly ["/"];
|
|
2256
|
+
export declare const getGetQueryOptions: <TData = Awaited<ReturnType<typeof get>>, TError = Get503>(options?: {
|
|
2257
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof get>>, TError, TData>>;
|
|
2258
|
+
fetch?: RequestInit;
|
|
2259
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof get>>, TError, TData> & {
|
|
2260
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2261
|
+
};
|
|
2262
|
+
export type GetQueryResult = NonNullable<Awaited<ReturnType<typeof get>>>;
|
|
2263
|
+
export type GetQueryError = Get503;
|
|
2264
|
+
export declare function useGet<TData = Awaited<ReturnType<typeof get>>, TError = Get503>(options: {
|
|
2265
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof get>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof get>>, TError, Awaited<ReturnType<typeof get>>>, 'initialData'>;
|
|
2266
|
+
fetch?: RequestInit;
|
|
2267
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
2268
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2269
|
+
};
|
|
2270
|
+
export declare function useGet<TData = Awaited<ReturnType<typeof get>>, TError = Get503>(options?: {
|
|
2271
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof get>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof get>>, TError, Awaited<ReturnType<typeof get>>>, 'initialData'>;
|
|
2272
|
+
fetch?: RequestInit;
|
|
2273
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2274
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2275
|
+
};
|
|
2276
|
+
export declare function useGet<TData = Awaited<ReturnType<typeof get>>, TError = Get503>(options?: {
|
|
2277
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof get>>, TError, TData>>;
|
|
2278
|
+
fetch?: RequestInit;
|
|
2279
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2280
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2281
|
+
};
|
|
2282
|
+
//# sourceMappingURL=api.d.ts.map
|