@arascreative/erp-client 1.1.0 → 3.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/generated/api.d.ts +109 -112
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +77 -77
- package/dist/generated/zod.d.ts +166 -129
- package/dist/generated/zod.d.ts.map +1 -1
- package/dist/generated/zod.js +27 -28
- package/package.json +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -681,21 +681,6 @@ export type DeleteStoredFile409 = {
|
|
|
681
681
|
instance?: string;
|
|
682
682
|
errors?: DeleteStoredFile409Errors;
|
|
683
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
684
|
export type CreateWarehouseBodyFullAddressText = string | null;
|
|
700
685
|
export type CreateWarehouseBody = {
|
|
701
686
|
name: string;
|
|
@@ -755,39 +740,36 @@ export type ListWarehousesParams = {
|
|
|
755
740
|
search?: string;
|
|
756
741
|
isActive?: boolean;
|
|
757
742
|
};
|
|
758
|
-
export type
|
|
743
|
+
export type ListWarehouses200ItemPic = {
|
|
759
744
|
name: string;
|
|
760
745
|
phone: string;
|
|
761
746
|
};
|
|
762
|
-
export type
|
|
763
|
-
export type
|
|
764
|
-
export type
|
|
765
|
-
export type
|
|
766
|
-
export type
|
|
767
|
-
export type
|
|
768
|
-
export type
|
|
747
|
+
export type ListWarehouses200ItemAddressDestinationCode = string | null;
|
|
748
|
+
export type ListWarehouses200ItemAddressProvinceName = string | null;
|
|
749
|
+
export type ListWarehouses200ItemAddressCityName = string | null;
|
|
750
|
+
export type ListWarehouses200ItemAddressDistrictName = string | null;
|
|
751
|
+
export type ListWarehouses200ItemAddressSubDistrictName = string | null;
|
|
752
|
+
export type ListWarehouses200ItemAddressZipCode = string | null;
|
|
753
|
+
export type ListWarehouses200ItemAddress = {
|
|
769
754
|
addressId: string;
|
|
770
|
-
destinationCode:
|
|
771
|
-
provinceName:
|
|
772
|
-
cityName:
|
|
773
|
-
districtName:
|
|
774
|
-
subDistrictName:
|
|
775
|
-
zipCode:
|
|
776
|
-
};
|
|
777
|
-
export type
|
|
778
|
-
export type
|
|
755
|
+
destinationCode: ListWarehouses200ItemAddressDestinationCode;
|
|
756
|
+
provinceName: ListWarehouses200ItemAddressProvinceName;
|
|
757
|
+
cityName: ListWarehouses200ItemAddressCityName;
|
|
758
|
+
districtName: ListWarehouses200ItemAddressDistrictName;
|
|
759
|
+
subDistrictName: ListWarehouses200ItemAddressSubDistrictName;
|
|
760
|
+
zipCode: ListWarehouses200ItemAddressZipCode;
|
|
761
|
+
};
|
|
762
|
+
export type ListWarehouses200ItemFullAddressText = string | null;
|
|
763
|
+
export type ListWarehouses200Item = {
|
|
779
764
|
id: string;
|
|
780
765
|
name: string;
|
|
781
|
-
pic:
|
|
782
|
-
address:
|
|
783
|
-
fullAddressText:
|
|
766
|
+
pic: ListWarehouses200ItemPic;
|
|
767
|
+
address: ListWarehouses200ItemAddress;
|
|
768
|
+
fullAddressText: ListWarehouses200ItemFullAddressText;
|
|
784
769
|
isActive: boolean;
|
|
785
770
|
createdAt: string;
|
|
786
771
|
updatedAt: string;
|
|
787
772
|
};
|
|
788
|
-
export type ListWarehouses200 = {
|
|
789
|
-
'0': ListWarehouses2000;
|
|
790
|
-
};
|
|
791
773
|
export type ListStockMovementsParams = {
|
|
792
774
|
itemId?: string;
|
|
793
775
|
batchId?: string;
|
|
@@ -941,6 +923,21 @@ export type CreateBatch409 = {
|
|
|
941
923
|
instance?: string;
|
|
942
924
|
errors?: CreateBatch409Errors;
|
|
943
925
|
};
|
|
926
|
+
export type GetHealth200 = {
|
|
927
|
+
status: string;
|
|
928
|
+
timestamp: string;
|
|
929
|
+
};
|
|
930
|
+
export type GetHealth503Errors = {
|
|
931
|
+
[key: string]: string[];
|
|
932
|
+
};
|
|
933
|
+
export type GetHealth503 = {
|
|
934
|
+
type: string;
|
|
935
|
+
title: string;
|
|
936
|
+
status: number;
|
|
937
|
+
detail?: string;
|
|
938
|
+
instance?: string;
|
|
939
|
+
errors?: GetHealth503Errors;
|
|
940
|
+
};
|
|
944
941
|
export type Get200 = {
|
|
945
942
|
message: string;
|
|
946
943
|
};
|
|
@@ -969,7 +966,7 @@ export type getAntiforgeryTokenResponseSuccess = (getAntiforgeryTokenResponse200
|
|
|
969
966
|
export type getAntiforgeryTokenResponse = (getAntiforgeryTokenResponseSuccess);
|
|
970
967
|
export declare const getGetAntiforgeryTokenUrl: () => string;
|
|
971
968
|
export declare const getAntiforgeryToken: (options?: RequestInit) => Promise<getAntiforgeryTokenResponse>;
|
|
972
|
-
export declare const getGetAntiforgeryTokenQueryKey: () => readonly ["/identity/antiforgery"];
|
|
969
|
+
export declare const getGetAntiforgeryTokenQueryKey: () => readonly ["/api/v1/identity/antiforgery"];
|
|
973
970
|
export declare const getGetAntiforgeryTokenQueryOptions: <TData = Awaited<ReturnType<typeof getAntiforgeryToken>>, TError = unknown>(options?: {
|
|
974
971
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAntiforgeryToken>>, TError, TData>>;
|
|
975
972
|
fetch?: RequestInit;
|
|
@@ -1071,7 +1068,7 @@ export type getCurrentUserResponseError = (getCurrentUserResponse401) & {
|
|
|
1071
1068
|
export type getCurrentUserResponse = (getCurrentUserResponseSuccess | getCurrentUserResponseError);
|
|
1072
1069
|
export declare const getGetCurrentUserUrl: () => string;
|
|
1073
1070
|
export declare const getCurrentUser: (options?: RequestInit) => Promise<getCurrentUserResponse>;
|
|
1074
|
-
export declare const getGetCurrentUserQueryKey: () => readonly ["/identity/me"];
|
|
1071
|
+
export declare const getGetCurrentUserQueryKey: () => readonly ["/api/v1/identity/me"];
|
|
1075
1072
|
export declare const getGetCurrentUserQueryOptions: <TData = Awaited<ReturnType<typeof getCurrentUser>>, TError = GetCurrentUser401>(options?: {
|
|
1076
1073
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCurrentUser>>, TError, TData>>;
|
|
1077
1074
|
fetch?: RequestInit;
|
|
@@ -1206,7 +1203,7 @@ export type searchAddressesResponseError = (searchAddressesResponse400) & {
|
|
|
1206
1203
|
export type searchAddressesResponse = (searchAddressesResponseSuccess | searchAddressesResponseError);
|
|
1207
1204
|
export declare const getSearchAddressesUrl: (params: SearchAddressesParams) => string;
|
|
1208
1205
|
export declare const searchAddresses: (params: SearchAddressesParams, options?: RequestInit) => Promise<searchAddressesResponse>;
|
|
1209
|
-
export declare const getSearchAddressesQueryKey: (params?: SearchAddressesParams) => readonly ["/addresses/search", ...SearchAddressesParams[]];
|
|
1206
|
+
export declare const getSearchAddressesQueryKey: (params?: SearchAddressesParams) => readonly ["/api/v1/addresses/search", ...SearchAddressesParams[]];
|
|
1210
1207
|
export declare const getSearchAddressesQueryOptions: <TData = Awaited<ReturnType<typeof searchAddresses>>, TError = SearchAddresses400>(params: SearchAddressesParams, options?: {
|
|
1211
1208
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, TData>>;
|
|
1212
1209
|
fetch?: RequestInit;
|
|
@@ -1516,7 +1513,7 @@ export type getFileAccessUrlResponseError = (getFileAccessUrlResponse400 | getFi
|
|
|
1516
1513
|
export type getFileAccessUrlResponse = (getFileAccessUrlResponseSuccess | getFileAccessUrlResponseError);
|
|
1517
1514
|
export declare const getGetFileAccessUrlUrl: (id: string, params?: GetFileAccessUrlParams) => string;
|
|
1518
1515
|
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[]];
|
|
1516
|
+
export declare const getGetFileAccessUrlQueryKey: (id?: string, params?: GetFileAccessUrlParams) => readonly [`/api/v1/files/${string}/access-url`, ...GetFileAccessUrlParams[]];
|
|
1520
1517
|
export declare const getGetFileAccessUrlQueryOptions: <TData = Awaited<ReturnType<typeof getFileAccessUrl>>, TError = GetFileAccessUrl400 | GetFileAccessUrl404 | GetFileAccessUrl422>(id: string, params?: GetFileAccessUrlParams, options?: {
|
|
1521
1518
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFileAccessUrl>>, TError, TData>>;
|
|
1522
1519
|
fetch?: RequestInit;
|
|
@@ -1564,7 +1561,7 @@ export type getWarehouseByIdResponseError = (getWarehouseByIdResponse404) & {
|
|
|
1564
1561
|
export type getWarehouseByIdResponse = (getWarehouseByIdResponseSuccess | getWarehouseByIdResponseError);
|
|
1565
1562
|
export declare const getGetWarehouseByIdUrl: (id: string) => string;
|
|
1566
1563
|
export declare const getWarehouseById: (id: string, options?: RequestInit) => Promise<getWarehouseByIdResponse>;
|
|
1567
|
-
export declare const getGetWarehouseByIdQueryKey: (id?: string) => readonly [`/warehouses/${string}`];
|
|
1564
|
+
export declare const getGetWarehouseByIdQueryKey: (id?: string) => readonly [`/api/v1/warehouses/${string}`];
|
|
1568
1565
|
export declare const getGetWarehouseByIdQueryOptions: <TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = GetWarehouseById404>(id: string, options?: {
|
|
1569
1566
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>>;
|
|
1570
1567
|
fetch?: RequestInit;
|
|
@@ -1802,7 +1799,7 @@ export type getStoredFileByIdResponseError = (getStoredFileByIdResponse400 | get
|
|
|
1802
1799
|
export type getStoredFileByIdResponse = (getStoredFileByIdResponseSuccess | getStoredFileByIdResponseError);
|
|
1803
1800
|
export declare const getGetStoredFileByIdUrl: (id: string) => string;
|
|
1804
1801
|
export declare const getStoredFileById: (id: string, options?: RequestInit) => Promise<getStoredFileByIdResponse>;
|
|
1805
|
-
export declare const getGetStoredFileByIdQueryKey: (id?: string) => readonly [`/files/${string}`];
|
|
1802
|
+
export declare const getGetStoredFileByIdQueryKey: (id?: string) => readonly [`/api/v1/files/${string}`];
|
|
1806
1803
|
export declare const getGetStoredFileByIdQueryOptions: <TData = Awaited<ReturnType<typeof getStoredFileById>>, TError = GetStoredFileById400 | GetStoredFileById404>(id: string, options?: {
|
|
1807
1804
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getStoredFileById>>, TError, TData>>;
|
|
1808
1805
|
fetch?: RequestInit;
|
|
@@ -1872,86 +1869,39 @@ export declare const useDeleteStoredFile: <TError = DeleteStoredFile400 | Delete
|
|
|
1872
1869
|
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteStoredFile>>, TError, {
|
|
1873
1870
|
id: string;
|
|
1874
1871
|
}, 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 = {
|
|
1872
|
+
export type getApiV1CustomersResponse200 = {
|
|
1923
1873
|
data: void;
|
|
1924
1874
|
status: 200;
|
|
1925
1875
|
};
|
|
1926
|
-
export type
|
|
1876
|
+
export type getApiV1CustomersResponseSuccess = (getApiV1CustomersResponse200) & {
|
|
1927
1877
|
headers: Headers;
|
|
1928
1878
|
};
|
|
1929
|
-
export type
|
|
1930
|
-
export declare const
|
|
1931
|
-
export declare const
|
|
1932
|
-
export declare const
|
|
1933
|
-
export declare const
|
|
1934
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
1879
|
+
export type getApiV1CustomersResponse = (getApiV1CustomersResponseSuccess);
|
|
1880
|
+
export declare const getGetApiV1CustomersUrl: () => string;
|
|
1881
|
+
export declare const getApiV1Customers: (options?: RequestInit) => Promise<getApiV1CustomersResponse>;
|
|
1882
|
+
export declare const getGetApiV1CustomersQueryKey: () => readonly ["/api/v1/customers"];
|
|
1883
|
+
export declare const getGetApiV1CustomersQueryOptions: <TData = Awaited<ReturnType<typeof getApiV1Customers>>, TError = unknown>(options?: {
|
|
1884
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData>>;
|
|
1935
1885
|
fetch?: RequestInit;
|
|
1936
|
-
}) => UseQueryOptions<Awaited<ReturnType<typeof
|
|
1886
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData> & {
|
|
1937
1887
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1938
1888
|
};
|
|
1939
|
-
export type
|
|
1940
|
-
export type
|
|
1941
|
-
export declare function
|
|
1942
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
1889
|
+
export type GetApiV1CustomersQueryResult = NonNullable<Awaited<ReturnType<typeof getApiV1Customers>>>;
|
|
1890
|
+
export type GetApiV1CustomersQueryError = unknown;
|
|
1891
|
+
export declare function useGetApiV1Customers<TData = Awaited<ReturnType<typeof getApiV1Customers>>, TError = unknown>(options: {
|
|
1892
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, Awaited<ReturnType<typeof getApiV1Customers>>>, 'initialData'>;
|
|
1943
1893
|
fetch?: RequestInit;
|
|
1944
1894
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1945
1895
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1946
1896
|
};
|
|
1947
|
-
export declare function
|
|
1948
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
1897
|
+
export declare function useGetApiV1Customers<TData = Awaited<ReturnType<typeof getApiV1Customers>>, TError = unknown>(options?: {
|
|
1898
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, Awaited<ReturnType<typeof getApiV1Customers>>>, 'initialData'>;
|
|
1949
1899
|
fetch?: RequestInit;
|
|
1950
1900
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1951
1901
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1952
1902
|
};
|
|
1953
|
-
export declare function
|
|
1954
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
1903
|
+
export declare function useGetApiV1Customers<TData = Awaited<ReturnType<typeof getApiV1Customers>>, TError = unknown>(options?: {
|
|
1904
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData>>;
|
|
1955
1905
|
fetch?: RequestInit;
|
|
1956
1906
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1957
1907
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
@@ -2016,7 +1966,7 @@ export declare const useCreateWarehouse: <TError = CreateWarehouse400 | CreateWa
|
|
|
2016
1966
|
* @summary List all warehouses
|
|
2017
1967
|
*/
|
|
2018
1968
|
export type listWarehousesResponse200 = {
|
|
2019
|
-
data:
|
|
1969
|
+
data: ListWarehouses200Item[];
|
|
2020
1970
|
status: 200;
|
|
2021
1971
|
};
|
|
2022
1972
|
export type listWarehousesResponseSuccess = (listWarehousesResponse200) & {
|
|
@@ -2025,7 +1975,7 @@ export type listWarehousesResponseSuccess = (listWarehousesResponse200) & {
|
|
|
2025
1975
|
export type listWarehousesResponse = (listWarehousesResponseSuccess);
|
|
2026
1976
|
export declare const getListWarehousesUrl: (params?: ListWarehousesParams) => string;
|
|
2027
1977
|
export declare const listWarehouses: (params?: ListWarehousesParams, options?: RequestInit) => Promise<listWarehousesResponse>;
|
|
2028
|
-
export declare const getListWarehousesQueryKey: (params?: ListWarehousesParams) => readonly ["/warehouses", ...ListWarehousesParams[]];
|
|
1978
|
+
export declare const getListWarehousesQueryKey: (params?: ListWarehousesParams) => readonly ["/api/v1/warehouses", ...ListWarehousesParams[]];
|
|
2029
1979
|
export declare const getListWarehousesQueryOptions: <TData = Awaited<ReturnType<typeof listWarehouses>>, TError = unknown>(params?: ListWarehousesParams, options?: {
|
|
2030
1980
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, TData>>;
|
|
2031
1981
|
fetch?: RequestInit;
|
|
@@ -2066,7 +2016,7 @@ export type listStockMovementsResponseSuccess = (listStockMovementsResponse200)
|
|
|
2066
2016
|
export type listStockMovementsResponse = (listStockMovementsResponseSuccess);
|
|
2067
2017
|
export declare const getListStockMovementsUrl: (params?: ListStockMovementsParams) => string;
|
|
2068
2018
|
export declare const listStockMovements: (params?: ListStockMovementsParams, options?: RequestInit) => Promise<listStockMovementsResponse>;
|
|
2069
|
-
export declare const getListStockMovementsQueryKey: (params?: ListStockMovementsParams) => readonly ["/stock-movements", ...ListStockMovementsParams[]];
|
|
2019
|
+
export declare const getListStockMovementsQueryKey: (params?: ListStockMovementsParams) => readonly ["/api/v1/stock-movements", ...ListStockMovementsParams[]];
|
|
2070
2020
|
export declare const getListStockMovementsQueryOptions: <TData = Awaited<ReturnType<typeof listStockMovements>>, TError = unknown>(params?: ListStockMovementsParams, options?: {
|
|
2071
2021
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, TData>>;
|
|
2072
2022
|
fetch?: RequestInit;
|
|
@@ -2154,7 +2104,7 @@ export type listStockItemsResponseSuccess = (listStockItemsResponse200) & {
|
|
|
2154
2104
|
export type listStockItemsResponse = (listStockItemsResponseSuccess);
|
|
2155
2105
|
export declare const getListStockItemsUrl: (params?: ListStockItemsParams) => string;
|
|
2156
2106
|
export declare const listStockItems: (params?: ListStockItemsParams, options?: RequestInit) => Promise<listStockItemsResponse>;
|
|
2157
|
-
export declare const getListStockItemsQueryKey: (params?: ListStockItemsParams) => readonly ["/stock-items", ...ListStockItemsParams[]];
|
|
2107
|
+
export declare const getListStockItemsQueryKey: (params?: ListStockItemsParams) => readonly ["/api/v1/stock-items", ...ListStockItemsParams[]];
|
|
2158
2108
|
export declare const getListStockItemsQueryOptions: <TData = Awaited<ReturnType<typeof listStockItems>>, TError = unknown>(params?: ListStockItemsParams, options?: {
|
|
2159
2109
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockItems>>, TError, TData>>;
|
|
2160
2110
|
fetch?: RequestInit;
|
|
@@ -2232,6 +2182,53 @@ export declare const useCreateBatch: <TError = CreateBatch400 | CreateBatch404 |
|
|
|
2232
2182
|
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createBatch>>, TError, {
|
|
2233
2183
|
data: CreateBatchBody;
|
|
2234
2184
|
}, TContext>;
|
|
2185
|
+
/**
|
|
2186
|
+
* @summary Health check
|
|
2187
|
+
*/
|
|
2188
|
+
export type getHealthResponse200 = {
|
|
2189
|
+
data: GetHealth200;
|
|
2190
|
+
status: 200;
|
|
2191
|
+
};
|
|
2192
|
+
export type getHealthResponse503 = {
|
|
2193
|
+
data: GetHealth503;
|
|
2194
|
+
status: 503;
|
|
2195
|
+
};
|
|
2196
|
+
export type getHealthResponseSuccess = (getHealthResponse200) & {
|
|
2197
|
+
headers: Headers;
|
|
2198
|
+
};
|
|
2199
|
+
export type getHealthResponseError = (getHealthResponse503) & {
|
|
2200
|
+
headers: Headers;
|
|
2201
|
+
};
|
|
2202
|
+
export type getHealthResponse = (getHealthResponseSuccess | getHealthResponseError);
|
|
2203
|
+
export declare const getGetHealthUrl: () => string;
|
|
2204
|
+
export declare const getHealth: (options?: RequestInit) => Promise<getHealthResponse>;
|
|
2205
|
+
export declare const getGetHealthQueryKey: () => readonly ["/health"];
|
|
2206
|
+
export declare const getGetHealthQueryOptions: <TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
2207
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>>;
|
|
2208
|
+
fetch?: RequestInit;
|
|
2209
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData> & {
|
|
2210
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2211
|
+
};
|
|
2212
|
+
export type GetHealthQueryResult = NonNullable<Awaited<ReturnType<typeof getHealth>>>;
|
|
2213
|
+
export type GetHealthQueryError = GetHealth503;
|
|
2214
|
+
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options: {
|
|
2215
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getHealth>>, TError, Awaited<ReturnType<typeof getHealth>>>, 'initialData'>;
|
|
2216
|
+
fetch?: RequestInit;
|
|
2217
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
2218
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2219
|
+
};
|
|
2220
|
+
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
2221
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getHealth>>, TError, Awaited<ReturnType<typeof getHealth>>>, 'initialData'>;
|
|
2222
|
+
fetch?: RequestInit;
|
|
2223
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2224
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2225
|
+
};
|
|
2226
|
+
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
2227
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>>;
|
|
2228
|
+
fetch?: RequestInit;
|
|
2229
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2230
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2231
|
+
};
|
|
2235
2232
|
/**
|
|
2236
2233
|
* @summary API welcome message
|
|
2237
2234
|
*/
|