@arascreative/erp-api-client 0.1.0 → 1.0.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/index.d.mts +151 -283
- package/dist/index.d.ts +151 -283
- package/dist/index.js +98 -162
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +96 -162
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -22,110 +22,6 @@ interface AddressSearchResultItemDto {
|
|
|
22
22
|
subDistrictName?: string;
|
|
23
23
|
zipCode?: string;
|
|
24
24
|
}
|
|
25
|
-
type ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoCode = null | string;
|
|
26
|
-
type ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoData = null | AddressSearchResultItemDto[];
|
|
27
|
-
type ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoMessage = null | string;
|
|
28
|
-
type ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoErrors = null | string[];
|
|
29
|
-
type ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoRequestId = null | string;
|
|
30
|
-
interface ApiResponseOfIReadOnlyListOfAddressSearchResultItemDto {
|
|
31
|
-
code?: ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoCode;
|
|
32
|
-
data?: ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoData;
|
|
33
|
-
success?: boolean;
|
|
34
|
-
statusCode?: number;
|
|
35
|
-
message?: ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoMessage;
|
|
36
|
-
errors?: ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoErrors;
|
|
37
|
-
requestId?: ApiResponseOfIReadOnlyListOfAddressSearchResultItemDtoRequestId;
|
|
38
|
-
timestamp?: string;
|
|
39
|
-
}
|
|
40
|
-
type ApiResponseOfListOfWarehouseOptionResponseCode = null | string;
|
|
41
|
-
type ApiResponseOfListOfWarehouseOptionResponseData = null | WarehouseOptionResponse[];
|
|
42
|
-
type ApiResponseOfListOfWarehouseOptionResponseMessage = null | string;
|
|
43
|
-
type ApiResponseOfListOfWarehouseOptionResponseErrors = null | string[];
|
|
44
|
-
type ApiResponseOfListOfWarehouseOptionResponseRequestId = null | string;
|
|
45
|
-
interface ApiResponseOfListOfWarehouseOptionResponse {
|
|
46
|
-
code?: ApiResponseOfListOfWarehouseOptionResponseCode;
|
|
47
|
-
data?: ApiResponseOfListOfWarehouseOptionResponseData;
|
|
48
|
-
success?: boolean;
|
|
49
|
-
statusCode?: number;
|
|
50
|
-
message?: ApiResponseOfListOfWarehouseOptionResponseMessage;
|
|
51
|
-
errors?: ApiResponseOfListOfWarehouseOptionResponseErrors;
|
|
52
|
-
requestId?: ApiResponseOfListOfWarehouseOptionResponseRequestId;
|
|
53
|
-
timestamp?: string;
|
|
54
|
-
}
|
|
55
|
-
type ApiResponseOfObjectCode = null | string;
|
|
56
|
-
type ApiResponseOfObjectMessage = null | string;
|
|
57
|
-
type ApiResponseOfObjectErrors = null | string[];
|
|
58
|
-
type ApiResponseOfObjectRequestId = null | string;
|
|
59
|
-
interface ApiResponseOfObject {
|
|
60
|
-
code?: ApiResponseOfObjectCode;
|
|
61
|
-
data?: unknown;
|
|
62
|
-
success?: boolean;
|
|
63
|
-
statusCode?: number;
|
|
64
|
-
message?: ApiResponseOfObjectMessage;
|
|
65
|
-
errors?: ApiResponseOfObjectErrors;
|
|
66
|
-
requestId?: ApiResponseOfObjectRequestId;
|
|
67
|
-
timestamp?: string;
|
|
68
|
-
}
|
|
69
|
-
type ApiResponseOfPagedListOfStockItemResponseCode = null | string;
|
|
70
|
-
type ApiResponseOfPagedListOfStockItemResponseData = null | PagedListOfStockItemResponse;
|
|
71
|
-
type ApiResponseOfPagedListOfStockItemResponseMessage = null | string;
|
|
72
|
-
type ApiResponseOfPagedListOfStockItemResponseErrors = null | string[];
|
|
73
|
-
type ApiResponseOfPagedListOfStockItemResponseRequestId = null | string;
|
|
74
|
-
interface ApiResponseOfPagedListOfStockItemResponse {
|
|
75
|
-
code?: ApiResponseOfPagedListOfStockItemResponseCode;
|
|
76
|
-
data?: ApiResponseOfPagedListOfStockItemResponseData;
|
|
77
|
-
success?: boolean;
|
|
78
|
-
statusCode?: number;
|
|
79
|
-
message?: ApiResponseOfPagedListOfStockItemResponseMessage;
|
|
80
|
-
errors?: ApiResponseOfPagedListOfStockItemResponseErrors;
|
|
81
|
-
requestId?: ApiResponseOfPagedListOfStockItemResponseRequestId;
|
|
82
|
-
timestamp?: string;
|
|
83
|
-
}
|
|
84
|
-
type ApiResponseOfPagedListOfStockMovementResponseCode = null | string;
|
|
85
|
-
type ApiResponseOfPagedListOfStockMovementResponseData = null | PagedListOfStockMovementResponse;
|
|
86
|
-
type ApiResponseOfPagedListOfStockMovementResponseMessage = null | string;
|
|
87
|
-
type ApiResponseOfPagedListOfStockMovementResponseErrors = null | string[];
|
|
88
|
-
type ApiResponseOfPagedListOfStockMovementResponseRequestId = null | string;
|
|
89
|
-
interface ApiResponseOfPagedListOfStockMovementResponse {
|
|
90
|
-
code?: ApiResponseOfPagedListOfStockMovementResponseCode;
|
|
91
|
-
data?: ApiResponseOfPagedListOfStockMovementResponseData;
|
|
92
|
-
success?: boolean;
|
|
93
|
-
statusCode?: number;
|
|
94
|
-
message?: ApiResponseOfPagedListOfStockMovementResponseMessage;
|
|
95
|
-
errors?: ApiResponseOfPagedListOfStockMovementResponseErrors;
|
|
96
|
-
requestId?: ApiResponseOfPagedListOfStockMovementResponseRequestId;
|
|
97
|
-
timestamp?: string;
|
|
98
|
-
}
|
|
99
|
-
type ApiResponseOfPagedListOfWarehouseResponseCode = null | string;
|
|
100
|
-
type ApiResponseOfPagedListOfWarehouseResponseData = null | PagedListOfWarehouseResponse;
|
|
101
|
-
type ApiResponseOfPagedListOfWarehouseResponseMessage = null | string;
|
|
102
|
-
type ApiResponseOfPagedListOfWarehouseResponseErrors = null | string[];
|
|
103
|
-
type ApiResponseOfPagedListOfWarehouseResponseRequestId = null | string;
|
|
104
|
-
interface ApiResponseOfPagedListOfWarehouseResponse {
|
|
105
|
-
code?: ApiResponseOfPagedListOfWarehouseResponseCode;
|
|
106
|
-
data?: ApiResponseOfPagedListOfWarehouseResponseData;
|
|
107
|
-
success?: boolean;
|
|
108
|
-
statusCode?: number;
|
|
109
|
-
message?: ApiResponseOfPagedListOfWarehouseResponseMessage;
|
|
110
|
-
errors?: ApiResponseOfPagedListOfWarehouseResponseErrors;
|
|
111
|
-
requestId?: ApiResponseOfPagedListOfWarehouseResponseRequestId;
|
|
112
|
-
timestamp?: string;
|
|
113
|
-
}
|
|
114
|
-
type ApiResponseOfWarehouseResponseCode = null | string;
|
|
115
|
-
type ApiResponseOfWarehouseResponseData = null | WarehouseResponse;
|
|
116
|
-
type ApiResponseOfWarehouseResponseMessage = null | string;
|
|
117
|
-
type ApiResponseOfWarehouseResponseErrors = null | string[];
|
|
118
|
-
type ApiResponseOfWarehouseResponseRequestId = null | string;
|
|
119
|
-
interface ApiResponseOfWarehouseResponse {
|
|
120
|
-
code?: ApiResponseOfWarehouseResponseCode;
|
|
121
|
-
data?: ApiResponseOfWarehouseResponseData;
|
|
122
|
-
success?: boolean;
|
|
123
|
-
statusCode?: number;
|
|
124
|
-
message?: ApiResponseOfWarehouseResponseMessage;
|
|
125
|
-
errors?: ApiResponseOfWarehouseResponseErrors;
|
|
126
|
-
requestId?: ApiResponseOfWarehouseResponseRequestId;
|
|
127
|
-
timestamp?: string;
|
|
128
|
-
}
|
|
129
25
|
type ConsumeBatchRequestExternalReferenceNo = null | string;
|
|
130
26
|
type ConsumeBatchRequestNote = null | string;
|
|
131
27
|
interface ConsumeBatchRequest {
|
|
@@ -203,6 +99,17 @@ interface PersonInChargeData {
|
|
|
203
99
|
name: string;
|
|
204
100
|
phone: PersonInChargeDataPhone;
|
|
205
101
|
}
|
|
102
|
+
type ProblemDetailsType = null | string;
|
|
103
|
+
type ProblemDetailsTitle = null | string;
|
|
104
|
+
type ProblemDetailsDetail = null | string;
|
|
105
|
+
type ProblemDetailsInstance = null | string;
|
|
106
|
+
interface ProblemDetails {
|
|
107
|
+
type?: ProblemDetailsType;
|
|
108
|
+
title?: ProblemDetailsTitle;
|
|
109
|
+
status?: number;
|
|
110
|
+
detail?: ProblemDetailsDetail;
|
|
111
|
+
instance?: ProblemDetailsInstance;
|
|
112
|
+
}
|
|
206
113
|
type SourceTypeEnum = (typeof SourceTypeEnum)[keyof typeof SourceTypeEnum];
|
|
207
114
|
declare const SourceTypeEnum: {
|
|
208
115
|
readonly PURCHASE: "PURCHASE";
|
|
@@ -373,7 +280,7 @@ declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TEr
|
|
|
373
280
|
* Returns the id and name of every warehouse for use in dropdowns and selectors.
|
|
374
281
|
* @summary List warehouse options
|
|
375
282
|
*/
|
|
376
|
-
declare const getWarehouseOptions: (options?: AxiosRequestConfig) => Promise<AxiosResponse<
|
|
283
|
+
declare const getWarehouseOptions: (options?: AxiosRequestConfig) => Promise<AxiosResponse<WarehouseOptionResponse[]>>;
|
|
377
284
|
declare const getGetWarehouseOptionsQueryKey: () => readonly ["/api/warehouses/options"];
|
|
378
285
|
declare const getGetWarehouseOptionsQueryOptions: <TData = Awaited<ReturnType<typeof getWarehouseOptions>>, TError = AxiosError<unknown>>(options?: {
|
|
379
286
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseOptions>>, TError, TData>>;
|
|
@@ -405,7 +312,7 @@ declare function useGetWarehouseOptions<TData = Awaited<ReturnType<typeof getWar
|
|
|
405
312
|
* Returns a paginated list of warehouses with their active status and address details.
|
|
406
313
|
* @summary List warehouses
|
|
407
314
|
*/
|
|
408
|
-
declare const listWarehouses: (params?: ListWarehousesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<
|
|
315
|
+
declare const listWarehouses: (params?: ListWarehousesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PagedListOfWarehouseResponse>>;
|
|
409
316
|
declare const getListWarehousesQueryKey: (params?: ListWarehousesParams) => readonly ["/api/warehouses", ...ListWarehousesParams[]];
|
|
410
317
|
declare const getListWarehousesQueryOptions: <TData = Awaited<ReturnType<typeof listWarehouses>>, TError = AxiosError<unknown>>(params?: ListWarehousesParams, options?: {
|
|
411
318
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, TData>>;
|
|
@@ -438,7 +345,7 @@ declare function useListWarehouses<TData = Awaited<ReturnType<typeof listWarehou
|
|
|
438
345
|
* @summary Create a warehouse
|
|
439
346
|
*/
|
|
440
347
|
declare const createWarehouse: (createWarehouseCommand: CreateWarehouseCommand, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
441
|
-
declare const getCreateWarehouseMutationOptions: <TError = AxiosError<
|
|
348
|
+
declare const getCreateWarehouseMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
442
349
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createWarehouse>>, TError, {
|
|
443
350
|
data: CreateWarehouseCommand;
|
|
444
351
|
}, TContext>;
|
|
@@ -448,11 +355,11 @@ declare const getCreateWarehouseMutationOptions: <TError = AxiosError<ApiRespons
|
|
|
448
355
|
}, TContext>;
|
|
449
356
|
type CreateWarehouseMutationResult = NonNullable<Awaited<ReturnType<typeof createWarehouse>>>;
|
|
450
357
|
type CreateWarehouseMutationBody = CreateWarehouseCommand;
|
|
451
|
-
type CreateWarehouseMutationError = AxiosError<
|
|
358
|
+
type CreateWarehouseMutationError = AxiosError<ProblemDetails>;
|
|
452
359
|
/**
|
|
453
360
|
* @summary Create a warehouse
|
|
454
361
|
*/
|
|
455
|
-
declare const useCreateWarehouse: <TError = AxiosError<
|
|
362
|
+
declare const useCreateWarehouse: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
456
363
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createWarehouse>>, TError, {
|
|
457
364
|
data: CreateWarehouseCommand;
|
|
458
365
|
}, TContext>;
|
|
@@ -464,29 +371,29 @@ declare const useCreateWarehouse: <TError = AxiosError<ApiResponseOfObject>, TCo
|
|
|
464
371
|
* Returns the warehouse with the given identifier, or 404 when it does not exist.
|
|
465
372
|
* @summary Get warehouse by id
|
|
466
373
|
*/
|
|
467
|
-
declare const getWarehouseById: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<
|
|
374
|
+
declare const getWarehouseById: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WarehouseResponse>>;
|
|
468
375
|
declare const getGetWarehouseByIdQueryKey: (id?: string) => readonly [`/api/warehouses/${string}`];
|
|
469
|
-
declare const getGetWarehouseByIdQueryOptions: <TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = AxiosError<
|
|
376
|
+
declare const getGetWarehouseByIdQueryOptions: <TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
|
|
470
377
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>>;
|
|
471
378
|
axios?: AxiosRequestConfig;
|
|
472
379
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData> & {
|
|
473
380
|
queryKey: DataTag<QueryKey, TData>;
|
|
474
381
|
};
|
|
475
382
|
type GetWarehouseByIdQueryResult = NonNullable<Awaited<ReturnType<typeof getWarehouseById>>>;
|
|
476
|
-
type GetWarehouseByIdQueryError = AxiosError<
|
|
477
|
-
declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = AxiosError<
|
|
383
|
+
type GetWarehouseByIdQueryError = AxiosError<ProblemDetails>;
|
|
384
|
+
declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = AxiosError<ProblemDetails>>(id: string, options: {
|
|
478
385
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, Awaited<ReturnType<typeof getWarehouseById>>>, 'initialData'>;
|
|
479
386
|
axios?: AxiosRequestConfig;
|
|
480
387
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
481
388
|
queryKey: DataTag<QueryKey, TData>;
|
|
482
389
|
};
|
|
483
|
-
declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = AxiosError<
|
|
390
|
+
declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
|
|
484
391
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, Awaited<ReturnType<typeof getWarehouseById>>>, 'initialData'>;
|
|
485
392
|
axios?: AxiosRequestConfig;
|
|
486
393
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
487
394
|
queryKey: DataTag<QueryKey, TData>;
|
|
488
395
|
};
|
|
489
|
-
declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = AxiosError<
|
|
396
|
+
declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
|
|
490
397
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>>;
|
|
491
398
|
axios?: AxiosRequestConfig;
|
|
492
399
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
@@ -497,7 +404,7 @@ declare function useGetWarehouseById<TData = Awaited<ReturnType<typeof getWareho
|
|
|
497
404
|
* @summary Update a warehouse
|
|
498
405
|
*/
|
|
499
406
|
declare const updateWarehouse: (id: string, updateWarehouseCommand: UpdateWarehouseCommand, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
500
|
-
declare const getUpdateWarehouseMutationOptions: <TError = AxiosError<
|
|
407
|
+
declare const getUpdateWarehouseMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
501
408
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateWarehouse>>, TError, {
|
|
502
409
|
id: string;
|
|
503
410
|
data: UpdateWarehouseCommand;
|
|
@@ -509,11 +416,11 @@ declare const getUpdateWarehouseMutationOptions: <TError = AxiosError<ApiRespons
|
|
|
509
416
|
}, TContext>;
|
|
510
417
|
type UpdateWarehouseMutationResult = NonNullable<Awaited<ReturnType<typeof updateWarehouse>>>;
|
|
511
418
|
type UpdateWarehouseMutationBody = UpdateWarehouseCommand;
|
|
512
|
-
type UpdateWarehouseMutationError = AxiosError<
|
|
419
|
+
type UpdateWarehouseMutationError = AxiosError<ProblemDetails>;
|
|
513
420
|
/**
|
|
514
421
|
* @summary Update a warehouse
|
|
515
422
|
*/
|
|
516
|
-
declare const useUpdateWarehouse: <TError = AxiosError<
|
|
423
|
+
declare const useUpdateWarehouse: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
517
424
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateWarehouse>>, TError, {
|
|
518
425
|
id: string;
|
|
519
426
|
data: UpdateWarehouseCommand;
|
|
@@ -528,7 +435,7 @@ declare const useUpdateWarehouse: <TError = AxiosError<ApiResponseOfObject>, TCo
|
|
|
528
435
|
* @summary Delete a warehouse
|
|
529
436
|
*/
|
|
530
437
|
declare const deleteWarehouse: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
531
|
-
declare const getDeleteWarehouseMutationOptions: <TError = AxiosError<
|
|
438
|
+
declare const getDeleteWarehouseMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
532
439
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteWarehouse>>, TError, {
|
|
533
440
|
id: string;
|
|
534
441
|
}, TContext>;
|
|
@@ -537,11 +444,11 @@ declare const getDeleteWarehouseMutationOptions: <TError = AxiosError<ApiRespons
|
|
|
537
444
|
id: string;
|
|
538
445
|
}, TContext>;
|
|
539
446
|
type DeleteWarehouseMutationResult = NonNullable<Awaited<ReturnType<typeof deleteWarehouse>>>;
|
|
540
|
-
type DeleteWarehouseMutationError = AxiosError<
|
|
447
|
+
type DeleteWarehouseMutationError = AxiosError<ProblemDetails>;
|
|
541
448
|
/**
|
|
542
449
|
* @summary Delete a warehouse
|
|
543
450
|
*/
|
|
544
|
-
declare const useDeleteWarehouse: <TError = AxiosError<
|
|
451
|
+
declare const useDeleteWarehouse: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
545
452
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteWarehouse>>, TError, {
|
|
546
453
|
id: string;
|
|
547
454
|
}, TContext>;
|
|
@@ -554,7 +461,7 @@ declare const useDeleteWarehouse: <TError = AxiosError<ApiResponseOfObject>, TCo
|
|
|
554
461
|
* @summary Toggle warehouse status
|
|
555
462
|
*/
|
|
556
463
|
declare const toggleWarehouseStatus: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
557
|
-
declare const getToggleWarehouseStatusMutationOptions: <TError = AxiosError<
|
|
464
|
+
declare const getToggleWarehouseStatusMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
558
465
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof toggleWarehouseStatus>>, TError, {
|
|
559
466
|
id: string;
|
|
560
467
|
}, TContext>;
|
|
@@ -563,11 +470,11 @@ declare const getToggleWarehouseStatusMutationOptions: <TError = AxiosError<ApiR
|
|
|
563
470
|
id: string;
|
|
564
471
|
}, TContext>;
|
|
565
472
|
type ToggleWarehouseStatusMutationResult = NonNullable<Awaited<ReturnType<typeof toggleWarehouseStatus>>>;
|
|
566
|
-
type ToggleWarehouseStatusMutationError = AxiosError<
|
|
473
|
+
type ToggleWarehouseStatusMutationError = AxiosError<ProblemDetails>;
|
|
567
474
|
/**
|
|
568
475
|
* @summary Toggle warehouse status
|
|
569
476
|
*/
|
|
570
|
-
declare const useToggleWarehouseStatus: <TError = AxiosError<
|
|
477
|
+
declare const useToggleWarehouseStatus: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
571
478
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof toggleWarehouseStatus>>, TError, {
|
|
572
479
|
id: string;
|
|
573
480
|
}, TContext>;
|
|
@@ -575,7 +482,7 @@ declare const useToggleWarehouseStatus: <TError = AxiosError<ApiResponseOfObject
|
|
|
575
482
|
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof toggleWarehouseStatus>>, TError, {
|
|
576
483
|
id: string;
|
|
577
484
|
}, TContext>;
|
|
578
|
-
declare const searchAddresses: (params: SearchAddressesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<
|
|
485
|
+
declare const searchAddresses: (params: SearchAddressesParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<AddressSearchResultItemDto[]>>;
|
|
579
486
|
declare const getSearchAddressesQueryKey: (params?: SearchAddressesParams) => readonly ["/api/addresses/search", ...SearchAddressesParams[]];
|
|
580
487
|
declare const getSearchAddressesQueryOptions: <TData = Awaited<ReturnType<typeof searchAddresses>>, TError = AxiosError<unknown>>(params: SearchAddressesParams, options?: {
|
|
581
488
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, TData>>;
|
|
@@ -608,7 +515,7 @@ declare function useSearchAddresses<TData = Awaited<ReturnType<typeof searchAddr
|
|
|
608
515
|
* @summary Create a stock item
|
|
609
516
|
*/
|
|
610
517
|
declare const createStockItems: (createStockItemCommand: CreateStockItemCommand, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
611
|
-
declare const getCreateStockItemsMutationOptions: <TError = AxiosError<
|
|
518
|
+
declare const getCreateStockItemsMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
612
519
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createStockItems>>, TError, {
|
|
613
520
|
data: CreateStockItemCommand;
|
|
614
521
|
}, TContext>;
|
|
@@ -618,11 +525,11 @@ declare const getCreateStockItemsMutationOptions: <TError = AxiosError<ApiRespon
|
|
|
618
525
|
}, TContext>;
|
|
619
526
|
type CreateStockItemsMutationResult = NonNullable<Awaited<ReturnType<typeof createStockItems>>>;
|
|
620
527
|
type CreateStockItemsMutationBody = CreateStockItemCommand;
|
|
621
|
-
type CreateStockItemsMutationError = AxiosError<
|
|
528
|
+
type CreateStockItemsMutationError = AxiosError<ProblemDetails>;
|
|
622
529
|
/**
|
|
623
530
|
* @summary Create a stock item
|
|
624
531
|
*/
|
|
625
|
-
declare const useCreateStockItems: <TError = AxiosError<
|
|
532
|
+
declare const useCreateStockItems: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
626
533
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createStockItems>>, TError, {
|
|
627
534
|
data: CreateStockItemCommand;
|
|
628
535
|
}, TContext>;
|
|
@@ -634,7 +541,7 @@ declare const useCreateStockItems: <TError = AxiosError<ApiResponseOfObject>, TC
|
|
|
634
541
|
* Returns a paginated list of stock items, optionally filtered by search text, active status or warehouse, with current stock quantities.
|
|
635
542
|
* @summary List stock items
|
|
636
543
|
*/
|
|
637
|
-
declare const listStockItems: (params?: ListStockItemsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<
|
|
544
|
+
declare const listStockItems: (params?: ListStockItemsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PagedListOfStockItemResponse>>;
|
|
638
545
|
declare const getListStockItemsQueryKey: (params?: ListStockItemsParams) => readonly ["/api/stock-items", ...ListStockItemsParams[]];
|
|
639
546
|
declare const getListStockItemsQueryOptions: <TData = Awaited<ReturnType<typeof listStockItems>>, TError = AxiosError<unknown>>(params?: ListStockItemsParams, options?: {
|
|
640
547
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockItems>>, TError, TData>>;
|
|
@@ -667,7 +574,7 @@ declare function useListStockItems<TData = Awaited<ReturnType<typeof listStockIt
|
|
|
667
574
|
* @summary Create a batch
|
|
668
575
|
*/
|
|
669
576
|
declare const createBatch: (createBatchRequest: CreateBatchRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
670
|
-
declare const getCreateBatchMutationOptions: <TError = AxiosError<
|
|
577
|
+
declare const getCreateBatchMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
671
578
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createBatch>>, TError, {
|
|
672
579
|
data: CreateBatchRequest;
|
|
673
580
|
}, TContext>;
|
|
@@ -677,11 +584,11 @@ declare const getCreateBatchMutationOptions: <TError = AxiosError<ApiResponseOfO
|
|
|
677
584
|
}, TContext>;
|
|
678
585
|
type CreateBatchMutationResult = NonNullable<Awaited<ReturnType<typeof createBatch>>>;
|
|
679
586
|
type CreateBatchMutationBody = CreateBatchRequest;
|
|
680
|
-
type CreateBatchMutationError = AxiosError<
|
|
587
|
+
type CreateBatchMutationError = AxiosError<ProblemDetails>;
|
|
681
588
|
/**
|
|
682
589
|
* @summary Create a batch
|
|
683
590
|
*/
|
|
684
|
-
declare const useCreateBatch: <TError = AxiosError<
|
|
591
|
+
declare const useCreateBatch: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
685
592
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createBatch>>, TError, {
|
|
686
593
|
data: CreateBatchRequest;
|
|
687
594
|
}, TContext>;
|
|
@@ -694,7 +601,7 @@ declare const useCreateBatch: <TError = AxiosError<ApiResponseOfObject>, TContex
|
|
|
694
601
|
* @summary Consume a batch
|
|
695
602
|
*/
|
|
696
603
|
declare const consumeBatch: (id: string, consumeBatchRequest: ConsumeBatchRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
697
|
-
declare const getConsumeBatchMutationOptions: <TError = AxiosError<
|
|
604
|
+
declare const getConsumeBatchMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
698
605
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof consumeBatch>>, TError, {
|
|
699
606
|
id: string;
|
|
700
607
|
data: ConsumeBatchRequest;
|
|
@@ -706,11 +613,11 @@ declare const getConsumeBatchMutationOptions: <TError = AxiosError<ApiResponseOf
|
|
|
706
613
|
}, TContext>;
|
|
707
614
|
type ConsumeBatchMutationResult = NonNullable<Awaited<ReturnType<typeof consumeBatch>>>;
|
|
708
615
|
type ConsumeBatchMutationBody = ConsumeBatchRequest;
|
|
709
|
-
type ConsumeBatchMutationError = AxiosError<
|
|
616
|
+
type ConsumeBatchMutationError = AxiosError<ProblemDetails>;
|
|
710
617
|
/**
|
|
711
618
|
* @summary Consume a batch
|
|
712
619
|
*/
|
|
713
|
-
declare const useConsumeBatch: <TError = AxiosError<
|
|
620
|
+
declare const useConsumeBatch: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
714
621
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof consumeBatch>>, TError, {
|
|
715
622
|
id: string;
|
|
716
623
|
data: ConsumeBatchRequest;
|
|
@@ -724,7 +631,7 @@ declare const useConsumeBatch: <TError = AxiosError<ApiResponseOfObject>, TConte
|
|
|
724
631
|
* Returns a paginated ledger of stock movements, optionally filtered by item, batch or warehouse.
|
|
725
632
|
* @summary List stock movements
|
|
726
633
|
*/
|
|
727
|
-
declare const listStockMovements: (params?: ListStockMovementsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<
|
|
634
|
+
declare const listStockMovements: (params?: ListStockMovementsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PagedListOfStockMovementResponse>>;
|
|
728
635
|
declare const getListStockMovementsQueryKey: (params?: ListStockMovementsParams) => readonly ["/api/stock-movements", ...ListStockMovementsParams[]];
|
|
729
636
|
declare const getListStockMovementsQueryOptions: <TData = Awaited<ReturnType<typeof listStockMovements>>, TError = AxiosError<unknown>>(params?: ListStockMovementsParams, options?: {
|
|
730
637
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, TData>>;
|
|
@@ -765,19 +672,14 @@ declare function useListStockMovements<TData = Awaited<ReturnType<typeof listSto
|
|
|
765
672
|
* Returns the id and name of every warehouse for use in dropdowns and selectors.
|
|
766
673
|
* @summary List warehouse options
|
|
767
674
|
*/
|
|
768
|
-
declare const
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
warehouseId: zod.ZodUUID;
|
|
772
|
-
name: zod.ZodString;
|
|
773
|
-
}, zod.z.core.$strict>>>>;
|
|
774
|
-
success: zod.ZodOptional<zod.ZodBoolean>;
|
|
775
|
-
statusCode: zod.ZodOptional<zod.ZodNumber>;
|
|
776
|
-
message: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
777
|
-
errors: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
|
|
778
|
-
requestId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
779
|
-
timestamp: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
675
|
+
declare const getWarehouseOptionsResponseItem: zod.ZodObject<{
|
|
676
|
+
warehouseId: zod.ZodUUID;
|
|
677
|
+
name: zod.ZodString;
|
|
780
678
|
}, zod.z.core.$strict>;
|
|
679
|
+
declare const getWarehouseOptionsResponse: zod.ZodArray<zod.ZodObject<{
|
|
680
|
+
warehouseId: zod.ZodUUID;
|
|
681
|
+
name: zod.ZodString;
|
|
682
|
+
}, zod.z.core.$strict>>;
|
|
781
683
|
/**
|
|
782
684
|
* Returns a paginated list of warehouses with their active status and address details.
|
|
783
685
|
* @summary List warehouses
|
|
@@ -789,39 +691,30 @@ declare const listWarehousesQueryParams: zod.ZodObject<{
|
|
|
789
691
|
pageSize: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
|
|
790
692
|
}, zod.z.core.$strict>;
|
|
791
693
|
declare const listWarehousesResponse: zod.ZodObject<{
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
694
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
695
|
+
warehouseId: zod.ZodUUID;
|
|
696
|
+
name: zod.ZodString;
|
|
697
|
+
isActive: zod.ZodBoolean;
|
|
698
|
+
personInCharge: zod.ZodObject<{
|
|
796
699
|
name: zod.ZodString;
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
totalPages: zod.ZodOptional<zod.ZodNumber>;
|
|
816
|
-
hasNextPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
817
|
-
hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
818
|
-
}, zod.z.core.$strict>]>>;
|
|
819
|
-
success: zod.ZodOptional<zod.ZodBoolean>;
|
|
820
|
-
statusCode: zod.ZodOptional<zod.ZodNumber>;
|
|
821
|
-
message: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
822
|
-
errors: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
|
|
823
|
-
requestId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
824
|
-
timestamp: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
700
|
+
phone: zod.ZodNullable<zod.ZodString>;
|
|
701
|
+
}, zod.z.core.$strict>;
|
|
702
|
+
address: zod.ZodObject<{
|
|
703
|
+
addressId: zod.ZodUUID;
|
|
704
|
+
subDistrictName: zod.ZodString;
|
|
705
|
+
districtName: zod.ZodString;
|
|
706
|
+
cityName: zod.ZodString;
|
|
707
|
+
provinceName: zod.ZodString;
|
|
708
|
+
zipCode: zod.ZodString;
|
|
709
|
+
}, zod.z.core.$strict>;
|
|
710
|
+
fullAddressText: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
711
|
+
}, zod.z.core.$strict>>;
|
|
712
|
+
page: zod.ZodNumber;
|
|
713
|
+
pageSize: zod.ZodNumber;
|
|
714
|
+
totalCount: zod.ZodNumber;
|
|
715
|
+
totalPages: zod.ZodOptional<zod.ZodNumber>;
|
|
716
|
+
hasNextPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
717
|
+
hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
825
718
|
}, zod.z.core.$strict>;
|
|
826
719
|
/**
|
|
827
720
|
* Creates a new warehouse that must reference an existing address. Validation failures return 400.
|
|
@@ -844,31 +737,22 @@ declare const getWarehouseByIdParams: zod.ZodObject<{
|
|
|
844
737
|
id: zod.ZodUUID;
|
|
845
738
|
}, zod.z.core.$strict>;
|
|
846
739
|
declare const getWarehouseByIdResponse: zod.ZodObject<{
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
740
|
+
warehouseId: zod.ZodUUID;
|
|
741
|
+
name: zod.ZodString;
|
|
742
|
+
isActive: zod.ZodBoolean;
|
|
743
|
+
personInCharge: zod.ZodObject<{
|
|
850
744
|
name: zod.ZodString;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
zipCode: zod.ZodString;
|
|
863
|
-
}, zod.z.core.$strict>;
|
|
864
|
-
fullAddressText: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
865
|
-
}, zod.z.core.$strict>]>>;
|
|
866
|
-
success: zod.ZodOptional<zod.ZodBoolean>;
|
|
867
|
-
statusCode: zod.ZodOptional<zod.ZodNumber>;
|
|
868
|
-
message: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
869
|
-
errors: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
|
|
870
|
-
requestId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
871
|
-
timestamp: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
745
|
+
phone: zod.ZodNullable<zod.ZodString>;
|
|
746
|
+
}, zod.z.core.$strict>;
|
|
747
|
+
address: zod.ZodObject<{
|
|
748
|
+
addressId: zod.ZodUUID;
|
|
749
|
+
subDistrictName: zod.ZodString;
|
|
750
|
+
districtName: zod.ZodString;
|
|
751
|
+
cityName: zod.ZodString;
|
|
752
|
+
provinceName: zod.ZodString;
|
|
753
|
+
zipCode: zod.ZodString;
|
|
754
|
+
}, zod.z.core.$strict>;
|
|
755
|
+
fullAddressText: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
872
756
|
}, zod.z.core.$strict>;
|
|
873
757
|
/**
|
|
874
758
|
* Updates warehouse details such as name, address and person in charge.
|
|
@@ -906,26 +790,28 @@ declare const searchAddressesQueryParams: zod.ZodObject<{
|
|
|
906
790
|
keyword: zod.z.ZodCoercedString<unknown>;
|
|
907
791
|
limit: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
|
|
908
792
|
}, zod.z.core.$strict>;
|
|
909
|
-
declare const
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
subDistrictName: zod.ZodOptional<zod.ZodString>;
|
|
920
|
-
zipCode: zod.ZodOptional<zod.ZodString>;
|
|
921
|
-
}, zod.z.core.$strict>>>>;
|
|
922
|
-
success: zod.ZodOptional<zod.ZodBoolean>;
|
|
923
|
-
statusCode: zod.ZodOptional<zod.ZodNumber>;
|
|
924
|
-
message: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
925
|
-
errors: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
|
|
926
|
-
requestId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
927
|
-
timestamp: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
793
|
+
declare const searchAddressesResponseItem: zod.ZodObject<{
|
|
794
|
+
addressId: zod.ZodOptional<zod.ZodUUID>;
|
|
795
|
+
externalId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
796
|
+
destinationCode: zod.ZodOptional<zod.ZodString>;
|
|
797
|
+
originCode: zod.ZodOptional<zod.ZodString>;
|
|
798
|
+
provinceName: zod.ZodOptional<zod.ZodString>;
|
|
799
|
+
cityName: zod.ZodOptional<zod.ZodString>;
|
|
800
|
+
districtName: zod.ZodOptional<zod.ZodString>;
|
|
801
|
+
subDistrictName: zod.ZodOptional<zod.ZodString>;
|
|
802
|
+
zipCode: zod.ZodOptional<zod.ZodString>;
|
|
928
803
|
}, zod.z.core.$strict>;
|
|
804
|
+
declare const searchAddressesResponse: zod.ZodArray<zod.ZodObject<{
|
|
805
|
+
addressId: zod.ZodOptional<zod.ZodUUID>;
|
|
806
|
+
externalId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
807
|
+
destinationCode: zod.ZodOptional<zod.ZodString>;
|
|
808
|
+
originCode: zod.ZodOptional<zod.ZodString>;
|
|
809
|
+
provinceName: zod.ZodOptional<zod.ZodString>;
|
|
810
|
+
cityName: zod.ZodOptional<zod.ZodString>;
|
|
811
|
+
districtName: zod.ZodOptional<zod.ZodString>;
|
|
812
|
+
subDistrictName: zod.ZodOptional<zod.ZodString>;
|
|
813
|
+
zipCode: zod.ZodOptional<zod.ZodString>;
|
|
814
|
+
}, zod.z.core.$strict>>;
|
|
929
815
|
/**
|
|
930
816
|
* Creates a new stock item with a unique SKU. Validation failures return 400.
|
|
931
817
|
* @summary Create a stock item
|
|
@@ -952,33 +838,24 @@ declare const listStockItemsQueryParams: zod.ZodObject<{
|
|
|
952
838
|
warehouseId: zod.ZodOptional<zod.ZodUUID>;
|
|
953
839
|
}, zod.z.core.$strict>;
|
|
954
840
|
declare const listStockItemsResponse: zod.ZodObject<{
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
hasNextPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
974
|
-
hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
975
|
-
}, zod.z.core.$strict>]>>;
|
|
976
|
-
success: zod.ZodOptional<zod.ZodBoolean>;
|
|
977
|
-
statusCode: zod.ZodOptional<zod.ZodNumber>;
|
|
978
|
-
message: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
979
|
-
errors: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
|
|
980
|
-
requestId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
981
|
-
timestamp: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
841
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
842
|
+
id: zod.ZodOptional<zod.ZodUUID>;
|
|
843
|
+
sku: zod.ZodOptional<zod.ZodString>;
|
|
844
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
845
|
+
unit: zod.ZodOptional<zod.ZodString>;
|
|
846
|
+
isActive: zod.ZodOptional<zod.ZodBoolean>;
|
|
847
|
+
warehouseId: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
|
|
848
|
+
warehouseName: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
849
|
+
onHandQty: zod.ZodOptional<zod.ZodNumber>;
|
|
850
|
+
reservedQty: zod.ZodOptional<zod.ZodNumber>;
|
|
851
|
+
availableQty: zod.ZodOptional<zod.ZodNumber>;
|
|
852
|
+
}, zod.z.core.$strict>>;
|
|
853
|
+
page: zod.ZodNumber;
|
|
854
|
+
pageSize: zod.ZodNumber;
|
|
855
|
+
totalCount: zod.ZodNumber;
|
|
856
|
+
totalPages: zod.ZodOptional<zod.ZodNumber>;
|
|
857
|
+
hasNextPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
858
|
+
hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
982
859
|
}, zod.z.core.$strict>;
|
|
983
860
|
/**
|
|
984
861
|
* Creates a stock batch for an item in a warehouse, increasing on-hand quantity. Validation failures return 400.
|
|
@@ -1037,38 +914,29 @@ declare const listStockMovementsQueryParams: zod.ZodObject<{
|
|
|
1037
914
|
descending: zod.ZodOptional<zod.z.ZodCoercedBoolean<unknown>>;
|
|
1038
915
|
}, zod.z.core.$strict>;
|
|
1039
916
|
declare const listStockMovementsResponse: zod.ZodObject<{
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
hasNextPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
1064
|
-
hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
1065
|
-
}, zod.z.core.$strict>]>>;
|
|
1066
|
-
success: zod.ZodOptional<zod.ZodBoolean>;
|
|
1067
|
-
statusCode: zod.ZodOptional<zod.ZodNumber>;
|
|
1068
|
-
message: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1069
|
-
errors: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
|
|
1070
|
-
requestId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1071
|
-
timestamp: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
917
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
918
|
+
id: zod.ZodOptional<zod.ZodUUID>;
|
|
919
|
+
itemId: zod.ZodOptional<zod.ZodUUID>;
|
|
920
|
+
itemName: zod.ZodOptional<zod.ZodString>;
|
|
921
|
+
warehouseId: zod.ZodOptional<zod.ZodUUID>;
|
|
922
|
+
warehouseName: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
923
|
+
batchId: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
|
|
924
|
+
direction: zod.ZodOptional<zod.ZodString>;
|
|
925
|
+
quantity: zod.ZodOptional<zod.ZodNumber>;
|
|
926
|
+
sourceType: zod.ZodOptional<zod.ZodString>;
|
|
927
|
+
sourceReferenceId: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
|
|
928
|
+
externalReferenceNo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
929
|
+
note: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
930
|
+
createdAt: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
931
|
+
recordedBy: zod.ZodOptional<zod.ZodUUID>;
|
|
932
|
+
receivedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
933
|
+
}, zod.z.core.$strict>>;
|
|
934
|
+
page: zod.ZodNumber;
|
|
935
|
+
pageSize: zod.ZodNumber;
|
|
936
|
+
totalCount: zod.ZodNumber;
|
|
937
|
+
totalPages: zod.ZodOptional<zod.ZodNumber>;
|
|
938
|
+
hasNextPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
939
|
+
hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
1072
940
|
}, zod.z.core.$strict>;
|
|
1073
941
|
|
|
1074
|
-
export { type AddressData, type AddressSearchResultItemDto, type AddressSearchResultItemDtoExternalId, type
|
|
942
|
+
export { type AddressData, type AddressSearchResultItemDto, type AddressSearchResultItemDtoExternalId, type ConsumeBatchMutationBody, type ConsumeBatchMutationError, type ConsumeBatchMutationResult, type ConsumeBatchRequest, type ConsumeBatchRequestExternalReferenceNo, type ConsumeBatchRequestNote, ConsumeBatchSourceType, type CreateBatchMutationBody, type CreateBatchMutationError, type CreateBatchMutationResult, type CreateBatchRequest, type CreateBatchRequestExpiresOn, type CreateBatchRequestExternalReferenceNo, type CreateBatchRequestNote, type CreateBatchRequestReceivedBy, type CreateStockItemCommand, type CreateStockItemsMutationBody, type CreateStockItemsMutationError, type CreateStockItemsMutationResult, type CreateWarehouseCommand, type CreateWarehouseCommandFullAddressText, type CreateWarehouseMutationBody, type CreateWarehouseMutationError, type CreateWarehouseMutationResult, type DeleteWarehouseMutationError, type DeleteWarehouseMutationResult, type GetHealthQueryError, type GetHealthQueryResult, type GetWarehouseByIdQueryError, type GetWarehouseByIdQueryResult, type GetWarehouseOptionsQueryError, type GetWarehouseOptionsQueryResult, type ListStockItemsParams, type ListStockItemsQueryError, type ListStockItemsQueryResult, type ListStockMovementsParams, type ListStockMovementsQueryError, type ListStockMovementsQueryResult, type ListWarehousesParams, type ListWarehousesQueryError, type ListWarehousesQueryResult, type PagedListOfStockItemResponse, type PagedListOfStockMovementResponse, type PagedListOfWarehouseResponse, type PersonInChargeData, type PersonInChargeDataPhone, type ProblemDetails, type ProblemDetailsDetail, type ProblemDetailsInstance, type ProblemDetailsTitle, type ProblemDetailsType, type SearchAddressesParams, type SearchAddressesQueryError, type SearchAddressesQueryResult, SourceTypeEnum, type StockItemResponse, type StockItemResponseWarehouseId, type StockItemResponseWarehouseName, type StockMovementResponse, type StockMovementResponseBatchId, type StockMovementResponseExternalReferenceNo, type StockMovementResponseNote, type StockMovementResponseReceivedBy, type StockMovementResponseSourceReferenceId, type StockMovementResponseWarehouseName, type ToggleWarehouseStatusMutationError, type ToggleWarehouseStatusMutationResult, type UpdateWarehouseCommand, type UpdateWarehouseCommandFullAddressText, type UpdateWarehouseMutationBody, type UpdateWarehouseMutationError, type UpdateWarehouseMutationResult, type WarehouseOptionResponse, type WarehouseResponse, type WarehouseResponseFullAddressText, consumeBatch, consumeBatchBody, consumeBatchParams, createBatch, createBatchBody, createStockItems, createStockItemsBody, createWarehouse, createWarehouseBody, deleteWarehouse, deleteWarehouseParams, getConsumeBatchMutationOptions, getCreateBatchMutationOptions, getCreateStockItemsMutationOptions, getCreateWarehouseMutationOptions, getDeleteWarehouseMutationOptions, getGetHealthQueryKey, getGetHealthQueryOptions, getGetWarehouseByIdQueryKey, getGetWarehouseByIdQueryOptions, getGetWarehouseOptionsQueryKey, getGetWarehouseOptionsQueryOptions, getHealth, getListStockItemsQueryKey, getListStockItemsQueryOptions, getListStockMovementsQueryKey, getListStockMovementsQueryOptions, getListWarehousesQueryKey, getListWarehousesQueryOptions, getSearchAddressesQueryKey, getSearchAddressesQueryOptions, getToggleWarehouseStatusMutationOptions, getUpdateWarehouseMutationOptions, getWarehouseById, getWarehouseByIdParams, getWarehouseByIdResponse, getWarehouseOptions, getWarehouseOptionsResponse, getWarehouseOptionsResponseItem, listStockItems, listStockItemsQueryDescendingDefault, listStockItemsQueryPageDefault, listStockItemsQueryPageSizeDefault, listStockItemsQueryParams, listStockItemsResponse, listStockMovements, listStockMovementsQueryDescendingDefault, listStockMovementsQueryPageDefault, listStockMovementsQueryPageSizeDefault, listStockMovementsQueryParams, listStockMovementsResponse, listWarehouses, listWarehousesQueryPageDefault, listWarehousesQueryPageSizeDefault, listWarehousesQueryParams, listWarehousesResponse, searchAddresses, searchAddressesQueryLimitDefault, searchAddressesQueryParams, searchAddressesResponse, searchAddressesResponseItem, toggleWarehouseStatus, toggleWarehouseStatusParams, updateWarehouse, updateWarehouseBody, updateWarehouseParams, useConsumeBatch, useCreateBatch, useCreateStockItems, useCreateWarehouse, useDeleteWarehouse, useGetHealth, useGetWarehouseById, useGetWarehouseOptions, useListStockItems, useListStockMovements, useListWarehouses, useSearchAddresses, useToggleWarehouseStatus, useUpdateWarehouse };
|