@arascreative/erp-client 2.0.0 → 3.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 +183 -89
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +111 -77
- package/dist/generated/zod.d.ts +38 -24
- package/dist/generated/zod.d.ts.map +1 -1
- package/dist/generated/zod.js +17 -9
- package/package.json +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -177,6 +177,50 @@ export type SearchAddresses400 = {
|
|
|
177
177
|
instance?: string;
|
|
178
178
|
errors?: SearchAddresses400Errors;
|
|
179
179
|
};
|
|
180
|
+
export type UploadStockItemImageBody = {
|
|
181
|
+
originalName: string;
|
|
182
|
+
mimeType: string;
|
|
183
|
+
contentBase64: string;
|
|
184
|
+
};
|
|
185
|
+
export type UploadStockItemImage201 = {
|
|
186
|
+
fileId: string;
|
|
187
|
+
accessUrl: string;
|
|
188
|
+
mimeType: string;
|
|
189
|
+
sizeBytes: number;
|
|
190
|
+
};
|
|
191
|
+
export type UploadStockItemImage400Errors = {
|
|
192
|
+
[key: string]: string[];
|
|
193
|
+
};
|
|
194
|
+
export type UploadStockItemImage400 = {
|
|
195
|
+
type: string;
|
|
196
|
+
title: string;
|
|
197
|
+
status: number;
|
|
198
|
+
detail?: string;
|
|
199
|
+
instance?: string;
|
|
200
|
+
errors?: UploadStockItemImage400Errors;
|
|
201
|
+
};
|
|
202
|
+
export type UploadStockItemImage413Errors = {
|
|
203
|
+
[key: string]: string[];
|
|
204
|
+
};
|
|
205
|
+
export type UploadStockItemImage413 = {
|
|
206
|
+
type: string;
|
|
207
|
+
title: string;
|
|
208
|
+
status: number;
|
|
209
|
+
detail?: string;
|
|
210
|
+
instance?: string;
|
|
211
|
+
errors?: UploadStockItemImage413Errors;
|
|
212
|
+
};
|
|
213
|
+
export type UploadStockItemImage422Errors = {
|
|
214
|
+
[key: string]: string[];
|
|
215
|
+
};
|
|
216
|
+
export type UploadStockItemImage422 = {
|
|
217
|
+
type: string;
|
|
218
|
+
title: string;
|
|
219
|
+
status: number;
|
|
220
|
+
detail?: string;
|
|
221
|
+
instance?: string;
|
|
222
|
+
errors?: UploadStockItemImage422Errors;
|
|
223
|
+
};
|
|
180
224
|
export type InitiateUploadBody = {
|
|
181
225
|
originalName: string;
|
|
182
226
|
mimeType: string;
|
|
@@ -229,7 +273,6 @@ export type UploadFileBody = {
|
|
|
229
273
|
mimeType: string;
|
|
230
274
|
contentBase64: string;
|
|
231
275
|
purpose: string;
|
|
232
|
-
uploadedBy?: string;
|
|
233
276
|
};
|
|
234
277
|
export type UploadFile201 = {
|
|
235
278
|
id: string;
|
|
@@ -681,21 +724,6 @@ export type DeleteStoredFile409 = {
|
|
|
681
724
|
instance?: string;
|
|
682
725
|
errors?: DeleteStoredFile409Errors;
|
|
683
726
|
};
|
|
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
727
|
export type CreateWarehouseBodyFullAddressText = string | null;
|
|
700
728
|
export type CreateWarehouseBody = {
|
|
701
729
|
name: string;
|
|
@@ -938,6 +966,21 @@ export type CreateBatch409 = {
|
|
|
938
966
|
instance?: string;
|
|
939
967
|
errors?: CreateBatch409Errors;
|
|
940
968
|
};
|
|
969
|
+
export type GetHealth200 = {
|
|
970
|
+
status: string;
|
|
971
|
+
timestamp: string;
|
|
972
|
+
};
|
|
973
|
+
export type GetHealth503Errors = {
|
|
974
|
+
[key: string]: string[];
|
|
975
|
+
};
|
|
976
|
+
export type GetHealth503 = {
|
|
977
|
+
type: string;
|
|
978
|
+
title: string;
|
|
979
|
+
status: number;
|
|
980
|
+
detail?: string;
|
|
981
|
+
instance?: string;
|
|
982
|
+
errors?: GetHealth503Errors;
|
|
983
|
+
};
|
|
941
984
|
export type Get200 = {
|
|
942
985
|
message: string;
|
|
943
986
|
};
|
|
@@ -966,7 +1009,7 @@ export type getAntiforgeryTokenResponseSuccess = (getAntiforgeryTokenResponse200
|
|
|
966
1009
|
export type getAntiforgeryTokenResponse = (getAntiforgeryTokenResponseSuccess);
|
|
967
1010
|
export declare const getGetAntiforgeryTokenUrl: () => string;
|
|
968
1011
|
export declare const getAntiforgeryToken: (options?: RequestInit) => Promise<getAntiforgeryTokenResponse>;
|
|
969
|
-
export declare const getGetAntiforgeryTokenQueryKey: () => readonly ["/identity/antiforgery"];
|
|
1012
|
+
export declare const getGetAntiforgeryTokenQueryKey: () => readonly ["/api/v1/identity/antiforgery"];
|
|
970
1013
|
export declare const getGetAntiforgeryTokenQueryOptions: <TData = Awaited<ReturnType<typeof getAntiforgeryToken>>, TError = unknown>(options?: {
|
|
971
1014
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAntiforgeryToken>>, TError, TData>>;
|
|
972
1015
|
fetch?: RequestInit;
|
|
@@ -1068,7 +1111,7 @@ export type getCurrentUserResponseError = (getCurrentUserResponse401) & {
|
|
|
1068
1111
|
export type getCurrentUserResponse = (getCurrentUserResponseSuccess | getCurrentUserResponseError);
|
|
1069
1112
|
export declare const getGetCurrentUserUrl: () => string;
|
|
1070
1113
|
export declare const getCurrentUser: (options?: RequestInit) => Promise<getCurrentUserResponse>;
|
|
1071
|
-
export declare const getGetCurrentUserQueryKey: () => readonly ["/identity/me"];
|
|
1114
|
+
export declare const getGetCurrentUserQueryKey: () => readonly ["/api/v1/identity/me"];
|
|
1072
1115
|
export declare const getGetCurrentUserQueryOptions: <TData = Awaited<ReturnType<typeof getCurrentUser>>, TError = GetCurrentUser401>(options?: {
|
|
1073
1116
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCurrentUser>>, TError, TData>>;
|
|
1074
1117
|
fetch?: RequestInit;
|
|
@@ -1203,7 +1246,7 @@ export type searchAddressesResponseError = (searchAddressesResponse400) & {
|
|
|
1203
1246
|
export type searchAddressesResponse = (searchAddressesResponseSuccess | searchAddressesResponseError);
|
|
1204
1247
|
export declare const getSearchAddressesUrl: (params: SearchAddressesParams) => string;
|
|
1205
1248
|
export declare const searchAddresses: (params: SearchAddressesParams, options?: RequestInit) => Promise<searchAddressesResponse>;
|
|
1206
|
-
export declare const getSearchAddressesQueryKey: (params?: SearchAddressesParams) => readonly ["/addresses/search", ...SearchAddressesParams[]];
|
|
1249
|
+
export declare const getSearchAddressesQueryKey: (params?: SearchAddressesParams) => readonly ["/api/v1/addresses/search", ...SearchAddressesParams[]];
|
|
1207
1250
|
export declare const getSearchAddressesQueryOptions: <TData = Awaited<ReturnType<typeof searchAddresses>>, TError = SearchAddresses400>(params: SearchAddressesParams, options?: {
|
|
1208
1251
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof searchAddresses>>, TError, TData>>;
|
|
1209
1252
|
fetch?: RequestInit;
|
|
@@ -1230,6 +1273,57 @@ export declare function useSearchAddresses<TData = Awaited<ReturnType<typeof sea
|
|
|
1230
1273
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1231
1274
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1232
1275
|
};
|
|
1276
|
+
/**
|
|
1277
|
+
* Uploads an image to storage using the `stock-item.image` purpose and returns the file id. The returned file id can be sent as `imageFileId` when creating or updating a stock item.
|
|
1278
|
+
* @summary Upload stock item image
|
|
1279
|
+
*/
|
|
1280
|
+
export type uploadStockItemImageResponse201 = {
|
|
1281
|
+
data: UploadStockItemImage201;
|
|
1282
|
+
status: 201;
|
|
1283
|
+
};
|
|
1284
|
+
export type uploadStockItemImageResponse400 = {
|
|
1285
|
+
data: UploadStockItemImage400;
|
|
1286
|
+
status: 400;
|
|
1287
|
+
};
|
|
1288
|
+
export type uploadStockItemImageResponse413 = {
|
|
1289
|
+
data: UploadStockItemImage413;
|
|
1290
|
+
status: 413;
|
|
1291
|
+
};
|
|
1292
|
+
export type uploadStockItemImageResponse422 = {
|
|
1293
|
+
data: UploadStockItemImage422;
|
|
1294
|
+
status: 422;
|
|
1295
|
+
};
|
|
1296
|
+
export type uploadStockItemImageResponseSuccess = (uploadStockItemImageResponse201) & {
|
|
1297
|
+
headers: Headers;
|
|
1298
|
+
};
|
|
1299
|
+
export type uploadStockItemImageResponseError = (uploadStockItemImageResponse400 | uploadStockItemImageResponse413 | uploadStockItemImageResponse422) & {
|
|
1300
|
+
headers: Headers;
|
|
1301
|
+
};
|
|
1302
|
+
export type uploadStockItemImageResponse = (uploadStockItemImageResponseSuccess | uploadStockItemImageResponseError);
|
|
1303
|
+
export declare const getUploadStockItemImageUrl: () => string;
|
|
1304
|
+
export declare const uploadStockItemImage: (uploadStockItemImageBody: UploadStockItemImageBody, options?: RequestInit) => Promise<uploadStockItemImageResponse>;
|
|
1305
|
+
export declare const getUploadStockItemImageMutationOptions: <TError = UploadStockItemImage400 | UploadStockItemImage413 | UploadStockItemImage422, TContext = unknown>(options?: {
|
|
1306
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof uploadStockItemImage>>, TError, {
|
|
1307
|
+
data: UploadStockItemImageBody;
|
|
1308
|
+
}, TContext>;
|
|
1309
|
+
fetch?: RequestInit;
|
|
1310
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof uploadStockItemImage>>, TError, {
|
|
1311
|
+
data: UploadStockItemImageBody;
|
|
1312
|
+
}, TContext>;
|
|
1313
|
+
export type UploadStockItemImageMutationResult = NonNullable<Awaited<ReturnType<typeof uploadStockItemImage>>>;
|
|
1314
|
+
export type UploadStockItemImageMutationBody = UploadStockItemImageBody;
|
|
1315
|
+
export type UploadStockItemImageMutationError = UploadStockItemImage400 | UploadStockItemImage413 | UploadStockItemImage422;
|
|
1316
|
+
/**
|
|
1317
|
+
* @summary Upload stock item image
|
|
1318
|
+
*/
|
|
1319
|
+
export declare const useUploadStockItemImage: <TError = UploadStockItemImage400 | UploadStockItemImage413 | UploadStockItemImage422, TContext = unknown>(options?: {
|
|
1320
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof uploadStockItemImage>>, TError, {
|
|
1321
|
+
data: UploadStockItemImageBody;
|
|
1322
|
+
}, TContext>;
|
|
1323
|
+
fetch?: RequestInit;
|
|
1324
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof uploadStockItemImage>>, TError, {
|
|
1325
|
+
data: UploadStockItemImageBody;
|
|
1326
|
+
}, TContext>;
|
|
1233
1327
|
/**
|
|
1234
1328
|
* Creates a pending file metadata record and generates a presigned S3 upload URL for direct client-to-storage upload.
|
|
1235
1329
|
* @summary Initiate direct file upload to storage
|
|
@@ -1513,7 +1607,7 @@ export type getFileAccessUrlResponseError = (getFileAccessUrlResponse400 | getFi
|
|
|
1513
1607
|
export type getFileAccessUrlResponse = (getFileAccessUrlResponseSuccess | getFileAccessUrlResponseError);
|
|
1514
1608
|
export declare const getGetFileAccessUrlUrl: (id: string, params?: GetFileAccessUrlParams) => string;
|
|
1515
1609
|
export declare const getFileAccessUrl: (id: string, params?: GetFileAccessUrlParams, options?: RequestInit) => Promise<getFileAccessUrlResponse>;
|
|
1516
|
-
export declare const getGetFileAccessUrlQueryKey: (id?: string, params?: GetFileAccessUrlParams) => readonly [`/files/${string}/access-url`, ...GetFileAccessUrlParams[]];
|
|
1610
|
+
export declare const getGetFileAccessUrlQueryKey: (id?: string, params?: GetFileAccessUrlParams) => readonly [`/api/v1/files/${string}/access-url`, ...GetFileAccessUrlParams[]];
|
|
1517
1611
|
export declare const getGetFileAccessUrlQueryOptions: <TData = Awaited<ReturnType<typeof getFileAccessUrl>>, TError = GetFileAccessUrl400 | GetFileAccessUrl404 | GetFileAccessUrl422>(id: string, params?: GetFileAccessUrlParams, options?: {
|
|
1518
1612
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFileAccessUrl>>, TError, TData>>;
|
|
1519
1613
|
fetch?: RequestInit;
|
|
@@ -1561,7 +1655,7 @@ export type getWarehouseByIdResponseError = (getWarehouseByIdResponse404) & {
|
|
|
1561
1655
|
export type getWarehouseByIdResponse = (getWarehouseByIdResponseSuccess | getWarehouseByIdResponseError);
|
|
1562
1656
|
export declare const getGetWarehouseByIdUrl: (id: string) => string;
|
|
1563
1657
|
export declare const getWarehouseById: (id: string, options?: RequestInit) => Promise<getWarehouseByIdResponse>;
|
|
1564
|
-
export declare const getGetWarehouseByIdQueryKey: (id?: string) => readonly [`/warehouses/${string}`];
|
|
1658
|
+
export declare const getGetWarehouseByIdQueryKey: (id?: string) => readonly [`/api/v1/warehouses/${string}`];
|
|
1565
1659
|
export declare const getGetWarehouseByIdQueryOptions: <TData = Awaited<ReturnType<typeof getWarehouseById>>, TError = GetWarehouseById404>(id: string, options?: {
|
|
1566
1660
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getWarehouseById>>, TError, TData>>;
|
|
1567
1661
|
fetch?: RequestInit;
|
|
@@ -1799,7 +1893,7 @@ export type getStoredFileByIdResponseError = (getStoredFileByIdResponse400 | get
|
|
|
1799
1893
|
export type getStoredFileByIdResponse = (getStoredFileByIdResponseSuccess | getStoredFileByIdResponseError);
|
|
1800
1894
|
export declare const getGetStoredFileByIdUrl: (id: string) => string;
|
|
1801
1895
|
export declare const getStoredFileById: (id: string, options?: RequestInit) => Promise<getStoredFileByIdResponse>;
|
|
1802
|
-
export declare const getGetStoredFileByIdQueryKey: (id?: string) => readonly [`/files/${string}`];
|
|
1896
|
+
export declare const getGetStoredFileByIdQueryKey: (id?: string) => readonly [`/api/v1/files/${string}`];
|
|
1803
1897
|
export declare const getGetStoredFileByIdQueryOptions: <TData = Awaited<ReturnType<typeof getStoredFileById>>, TError = GetStoredFileById400 | GetStoredFileById404>(id: string, options?: {
|
|
1804
1898
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getStoredFileById>>, TError, TData>>;
|
|
1805
1899
|
fetch?: RequestInit;
|
|
@@ -1869,86 +1963,39 @@ export declare const useDeleteStoredFile: <TError = DeleteStoredFile400 | Delete
|
|
|
1869
1963
|
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteStoredFile>>, TError, {
|
|
1870
1964
|
id: string;
|
|
1871
1965
|
}, TContext>;
|
|
1872
|
-
|
|
1873
|
-
* @summary Health check
|
|
1874
|
-
*/
|
|
1875
|
-
export type getHealthResponse200 = {
|
|
1876
|
-
data: GetHealth200;
|
|
1877
|
-
status: 200;
|
|
1878
|
-
};
|
|
1879
|
-
export type getHealthResponse503 = {
|
|
1880
|
-
data: GetHealth503;
|
|
1881
|
-
status: 503;
|
|
1882
|
-
};
|
|
1883
|
-
export type getHealthResponseSuccess = (getHealthResponse200) & {
|
|
1884
|
-
headers: Headers;
|
|
1885
|
-
};
|
|
1886
|
-
export type getHealthResponseError = (getHealthResponse503) & {
|
|
1887
|
-
headers: Headers;
|
|
1888
|
-
};
|
|
1889
|
-
export type getHealthResponse = (getHealthResponseSuccess | getHealthResponseError);
|
|
1890
|
-
export declare const getGetHealthUrl: () => string;
|
|
1891
|
-
export declare const getHealth: (options?: RequestInit) => Promise<getHealthResponse>;
|
|
1892
|
-
export declare const getGetHealthQueryKey: () => readonly ["/health"];
|
|
1893
|
-
export declare const getGetHealthQueryOptions: <TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
1894
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>>;
|
|
1895
|
-
fetch?: RequestInit;
|
|
1896
|
-
}) => UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData> & {
|
|
1897
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1898
|
-
};
|
|
1899
|
-
export type GetHealthQueryResult = NonNullable<Awaited<ReturnType<typeof getHealth>>>;
|
|
1900
|
-
export type GetHealthQueryError = GetHealth503;
|
|
1901
|
-
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options: {
|
|
1902
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getHealth>>, TError, Awaited<ReturnType<typeof getHealth>>>, 'initialData'>;
|
|
1903
|
-
fetch?: RequestInit;
|
|
1904
|
-
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1905
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1906
|
-
};
|
|
1907
|
-
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
1908
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getHealth>>, TError, Awaited<ReturnType<typeof getHealth>>>, 'initialData'>;
|
|
1909
|
-
fetch?: RequestInit;
|
|
1910
|
-
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1911
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1912
|
-
};
|
|
1913
|
-
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
1914
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>>;
|
|
1915
|
-
fetch?: RequestInit;
|
|
1916
|
-
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1917
|
-
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1918
|
-
};
|
|
1919
|
-
export type getCustomersResponse200 = {
|
|
1966
|
+
export type getApiV1CustomersResponse200 = {
|
|
1920
1967
|
data: void;
|
|
1921
1968
|
status: 200;
|
|
1922
1969
|
};
|
|
1923
|
-
export type
|
|
1970
|
+
export type getApiV1CustomersResponseSuccess = (getApiV1CustomersResponse200) & {
|
|
1924
1971
|
headers: Headers;
|
|
1925
1972
|
};
|
|
1926
|
-
export type
|
|
1927
|
-
export declare const
|
|
1928
|
-
export declare const
|
|
1929
|
-
export declare const
|
|
1930
|
-
export declare const
|
|
1931
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
1973
|
+
export type getApiV1CustomersResponse = (getApiV1CustomersResponseSuccess);
|
|
1974
|
+
export declare const getGetApiV1CustomersUrl: () => string;
|
|
1975
|
+
export declare const getApiV1Customers: (options?: RequestInit) => Promise<getApiV1CustomersResponse>;
|
|
1976
|
+
export declare const getGetApiV1CustomersQueryKey: () => readonly ["/api/v1/customers"];
|
|
1977
|
+
export declare const getGetApiV1CustomersQueryOptions: <TData = Awaited<ReturnType<typeof getApiV1Customers>>, TError = unknown>(options?: {
|
|
1978
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData>>;
|
|
1932
1979
|
fetch?: RequestInit;
|
|
1933
|
-
}) => UseQueryOptions<Awaited<ReturnType<typeof
|
|
1980
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData> & {
|
|
1934
1981
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1935
1982
|
};
|
|
1936
|
-
export type
|
|
1937
|
-
export type
|
|
1938
|
-
export declare function
|
|
1939
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
1983
|
+
export type GetApiV1CustomersQueryResult = NonNullable<Awaited<ReturnType<typeof getApiV1Customers>>>;
|
|
1984
|
+
export type GetApiV1CustomersQueryError = unknown;
|
|
1985
|
+
export declare function useGetApiV1Customers<TData = Awaited<ReturnType<typeof getApiV1Customers>>, TError = unknown>(options: {
|
|
1986
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, Awaited<ReturnType<typeof getApiV1Customers>>>, 'initialData'>;
|
|
1940
1987
|
fetch?: RequestInit;
|
|
1941
1988
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1942
1989
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1943
1990
|
};
|
|
1944
|
-
export declare function
|
|
1945
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
1991
|
+
export declare function useGetApiV1Customers<TData = Awaited<ReturnType<typeof getApiV1Customers>>, TError = unknown>(options?: {
|
|
1992
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, Awaited<ReturnType<typeof getApiV1Customers>>>, 'initialData'>;
|
|
1946
1993
|
fetch?: RequestInit;
|
|
1947
1994
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1948
1995
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1949
1996
|
};
|
|
1950
|
-
export declare function
|
|
1951
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof
|
|
1997
|
+
export declare function useGetApiV1Customers<TData = Awaited<ReturnType<typeof getApiV1Customers>>, TError = unknown>(options?: {
|
|
1998
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApiV1Customers>>, TError, TData>>;
|
|
1952
1999
|
fetch?: RequestInit;
|
|
1953
2000
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1954
2001
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
@@ -2022,7 +2069,7 @@ export type listWarehousesResponseSuccess = (listWarehousesResponse200) & {
|
|
|
2022
2069
|
export type listWarehousesResponse = (listWarehousesResponseSuccess);
|
|
2023
2070
|
export declare const getListWarehousesUrl: (params?: ListWarehousesParams) => string;
|
|
2024
2071
|
export declare const listWarehouses: (params?: ListWarehousesParams, options?: RequestInit) => Promise<listWarehousesResponse>;
|
|
2025
|
-
export declare const getListWarehousesQueryKey: (params?: ListWarehousesParams) => readonly ["/warehouses", ...ListWarehousesParams[]];
|
|
2072
|
+
export declare const getListWarehousesQueryKey: (params?: ListWarehousesParams) => readonly ["/api/v1/warehouses", ...ListWarehousesParams[]];
|
|
2026
2073
|
export declare const getListWarehousesQueryOptions: <TData = Awaited<ReturnType<typeof listWarehouses>>, TError = unknown>(params?: ListWarehousesParams, options?: {
|
|
2027
2074
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listWarehouses>>, TError, TData>>;
|
|
2028
2075
|
fetch?: RequestInit;
|
|
@@ -2063,7 +2110,7 @@ export type listStockMovementsResponseSuccess = (listStockMovementsResponse200)
|
|
|
2063
2110
|
export type listStockMovementsResponse = (listStockMovementsResponseSuccess);
|
|
2064
2111
|
export declare const getListStockMovementsUrl: (params?: ListStockMovementsParams) => string;
|
|
2065
2112
|
export declare const listStockMovements: (params?: ListStockMovementsParams, options?: RequestInit) => Promise<listStockMovementsResponse>;
|
|
2066
|
-
export declare const getListStockMovementsQueryKey: (params?: ListStockMovementsParams) => readonly ["/stock-movements", ...ListStockMovementsParams[]];
|
|
2113
|
+
export declare const getListStockMovementsQueryKey: (params?: ListStockMovementsParams) => readonly ["/api/v1/stock-movements", ...ListStockMovementsParams[]];
|
|
2067
2114
|
export declare const getListStockMovementsQueryOptions: <TData = Awaited<ReturnType<typeof listStockMovements>>, TError = unknown>(params?: ListStockMovementsParams, options?: {
|
|
2068
2115
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockMovements>>, TError, TData>>;
|
|
2069
2116
|
fetch?: RequestInit;
|
|
@@ -2151,7 +2198,7 @@ export type listStockItemsResponseSuccess = (listStockItemsResponse200) & {
|
|
|
2151
2198
|
export type listStockItemsResponse = (listStockItemsResponseSuccess);
|
|
2152
2199
|
export declare const getListStockItemsUrl: (params?: ListStockItemsParams) => string;
|
|
2153
2200
|
export declare const listStockItems: (params?: ListStockItemsParams, options?: RequestInit) => Promise<listStockItemsResponse>;
|
|
2154
|
-
export declare const getListStockItemsQueryKey: (params?: ListStockItemsParams) => readonly ["/stock-items", ...ListStockItemsParams[]];
|
|
2201
|
+
export declare const getListStockItemsQueryKey: (params?: ListStockItemsParams) => readonly ["/api/v1/stock-items", ...ListStockItemsParams[]];
|
|
2155
2202
|
export declare const getListStockItemsQueryOptions: <TData = Awaited<ReturnType<typeof listStockItems>>, TError = unknown>(params?: ListStockItemsParams, options?: {
|
|
2156
2203
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listStockItems>>, TError, TData>>;
|
|
2157
2204
|
fetch?: RequestInit;
|
|
@@ -2229,6 +2276,53 @@ export declare const useCreateBatch: <TError = CreateBatch400 | CreateBatch404 |
|
|
|
2229
2276
|
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createBatch>>, TError, {
|
|
2230
2277
|
data: CreateBatchBody;
|
|
2231
2278
|
}, TContext>;
|
|
2279
|
+
/**
|
|
2280
|
+
* @summary Health check
|
|
2281
|
+
*/
|
|
2282
|
+
export type getHealthResponse200 = {
|
|
2283
|
+
data: GetHealth200;
|
|
2284
|
+
status: 200;
|
|
2285
|
+
};
|
|
2286
|
+
export type getHealthResponse503 = {
|
|
2287
|
+
data: GetHealth503;
|
|
2288
|
+
status: 503;
|
|
2289
|
+
};
|
|
2290
|
+
export type getHealthResponseSuccess = (getHealthResponse200) & {
|
|
2291
|
+
headers: Headers;
|
|
2292
|
+
};
|
|
2293
|
+
export type getHealthResponseError = (getHealthResponse503) & {
|
|
2294
|
+
headers: Headers;
|
|
2295
|
+
};
|
|
2296
|
+
export type getHealthResponse = (getHealthResponseSuccess | getHealthResponseError);
|
|
2297
|
+
export declare const getGetHealthUrl: () => string;
|
|
2298
|
+
export declare const getHealth: (options?: RequestInit) => Promise<getHealthResponse>;
|
|
2299
|
+
export declare const getGetHealthQueryKey: () => readonly ["/health"];
|
|
2300
|
+
export declare const getGetHealthQueryOptions: <TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
2301
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>>;
|
|
2302
|
+
fetch?: RequestInit;
|
|
2303
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData> & {
|
|
2304
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2305
|
+
};
|
|
2306
|
+
export type GetHealthQueryResult = NonNullable<Awaited<ReturnType<typeof getHealth>>>;
|
|
2307
|
+
export type GetHealthQueryError = GetHealth503;
|
|
2308
|
+
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options: {
|
|
2309
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getHealth>>, TError, Awaited<ReturnType<typeof getHealth>>>, 'initialData'>;
|
|
2310
|
+
fetch?: RequestInit;
|
|
2311
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
2312
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2313
|
+
};
|
|
2314
|
+
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
2315
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getHealth>>, TError, Awaited<ReturnType<typeof getHealth>>>, 'initialData'>;
|
|
2316
|
+
fetch?: RequestInit;
|
|
2317
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2318
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2319
|
+
};
|
|
2320
|
+
export declare function useGetHealth<TData = Awaited<ReturnType<typeof getHealth>>, TError = GetHealth503>(options?: {
|
|
2321
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getHealth>>, TError, TData>>;
|
|
2322
|
+
fetch?: RequestInit;
|
|
2323
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
2324
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
2325
|
+
};
|
|
2232
2326
|
/**
|
|
2233
2327
|
* @summary API welcome message
|
|
2234
2328
|
*/
|