@arascreative/erp-api-client 1.0.0 → 1.2.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 +1158 -1
- package/dist/index.d.ts +1158 -1
- package/dist/index.js +1101 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +962 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37,17 +37,75 @@ __export(index_exports, {
|
|
|
37
37
|
consumeBatchParams: () => consumeBatchParams,
|
|
38
38
|
createBatch: () => createBatch,
|
|
39
39
|
createBatchBody: () => createBatchBody,
|
|
40
|
+
createCatalogItem: () => createCatalogItem,
|
|
41
|
+
createCatalogItemBody: () => createCatalogItemBody,
|
|
40
42
|
createStockItems: () => createStockItems,
|
|
41
43
|
createStockItemsBody: () => createStockItemsBody,
|
|
42
44
|
createWarehouse: () => createWarehouse,
|
|
43
45
|
createWarehouseBody: () => createWarehouseBody,
|
|
46
|
+
deleteApiIdentityAdminRolesId: () => deleteApiIdentityAdminRolesId,
|
|
47
|
+
deleteApiIdentityAdminRolesIdParams: () => deleteApiIdentityAdminRolesIdParams,
|
|
48
|
+
deleteCatalogItem: () => deleteCatalogItem,
|
|
49
|
+
deleteCatalogItemParams: () => deleteCatalogItemParams,
|
|
44
50
|
deleteWarehouse: () => deleteWarehouse,
|
|
45
51
|
deleteWarehouseParams: () => deleteWarehouseParams,
|
|
52
|
+
getApiIdentityAdminPermissions: () => getApiIdentityAdminPermissions,
|
|
53
|
+
getApiIdentityAdminPermissionsResponse: () => getApiIdentityAdminPermissionsResponse,
|
|
54
|
+
getApiIdentityAdminPermissionsResponseItem: () => getApiIdentityAdminPermissionsResponseItem,
|
|
55
|
+
getApiIdentityAdminRoles: () => getApiIdentityAdminRoles,
|
|
56
|
+
getApiIdentityAdminRolesId: () => getApiIdentityAdminRolesId,
|
|
57
|
+
getApiIdentityAdminRolesIdParams: () => getApiIdentityAdminRolesIdParams,
|
|
58
|
+
getApiIdentityAdminRolesIdResponse: () => getApiIdentityAdminRolesIdResponse,
|
|
59
|
+
getApiIdentityAdminRolesResponse: () => getApiIdentityAdminRolesResponse,
|
|
60
|
+
getApiIdentityAdminRolesResponseItem: () => getApiIdentityAdminRolesResponseItem,
|
|
61
|
+
getApiIdentityAdminUsers: () => getApiIdentityAdminUsers,
|
|
62
|
+
getApiIdentityAdminUsersIdPermissions: () => getApiIdentityAdminUsersIdPermissions,
|
|
63
|
+
getApiIdentityAdminUsersIdPermissionsParams: () => getApiIdentityAdminUsersIdPermissionsParams,
|
|
64
|
+
getApiIdentityAdminUsersIdPermissionsResponse: () => getApiIdentityAdminUsersIdPermissionsResponse,
|
|
65
|
+
getApiIdentityAdminUsersIdPermissionsResponseItem: () => getApiIdentityAdminUsersIdPermissionsResponseItem,
|
|
66
|
+
getApiIdentityAdminUsersIdRoles: () => getApiIdentityAdminUsersIdRoles,
|
|
67
|
+
getApiIdentityAdminUsersIdRolesParams: () => getApiIdentityAdminUsersIdRolesParams,
|
|
68
|
+
getApiIdentityAdminUsersIdRolesResponse: () => getApiIdentityAdminUsersIdRolesResponse,
|
|
69
|
+
getApiIdentityAdminUsersIdRolesResponseItem: () => getApiIdentityAdminUsersIdRolesResponseItem,
|
|
70
|
+
getApiIdentityAdminUsersQueryParams: () => getApiIdentityAdminUsersQueryParams,
|
|
71
|
+
getApiIdentityAdminUsersResponse: () => getApiIdentityAdminUsersResponse,
|
|
72
|
+
getApiIdentityAntiforgery: () => getApiIdentityAntiforgery,
|
|
73
|
+
getApiIdentityAntiforgeryResponse: () => getApiIdentityAntiforgeryResponse,
|
|
74
|
+
getApiIdentityManage2fa: () => getApiIdentityManage2fa,
|
|
75
|
+
getApiIdentityManage2faResponse: () => getApiIdentityManage2faResponse,
|
|
76
|
+
getApiIdentityManageInfo: () => getApiIdentityManageInfo,
|
|
77
|
+
getApiIdentityManageInfoResponse: () => getApiIdentityManageInfoResponse,
|
|
78
|
+
getCatalogItem: () => getCatalogItem,
|
|
79
|
+
getCatalogItemParams: () => getCatalogItemParams,
|
|
80
|
+
getCatalogItemResponse: () => getCatalogItemResponse,
|
|
46
81
|
getConsumeBatchMutationOptions: () => getConsumeBatchMutationOptions,
|
|
47
82
|
getCreateBatchMutationOptions: () => getCreateBatchMutationOptions,
|
|
83
|
+
getCreateCatalogItemMutationOptions: () => getCreateCatalogItemMutationOptions,
|
|
48
84
|
getCreateStockItemsMutationOptions: () => getCreateStockItemsMutationOptions,
|
|
49
85
|
getCreateWarehouseMutationOptions: () => getCreateWarehouseMutationOptions,
|
|
86
|
+
getDeleteApiIdentityAdminRolesIdMutationOptions: () => getDeleteApiIdentityAdminRolesIdMutationOptions,
|
|
87
|
+
getDeleteCatalogItemMutationOptions: () => getDeleteCatalogItemMutationOptions,
|
|
50
88
|
getDeleteWarehouseMutationOptions: () => getDeleteWarehouseMutationOptions,
|
|
89
|
+
getGetApiIdentityAdminPermissionsQueryKey: () => getGetApiIdentityAdminPermissionsQueryKey,
|
|
90
|
+
getGetApiIdentityAdminPermissionsQueryOptions: () => getGetApiIdentityAdminPermissionsQueryOptions,
|
|
91
|
+
getGetApiIdentityAdminRolesIdQueryKey: () => getGetApiIdentityAdminRolesIdQueryKey,
|
|
92
|
+
getGetApiIdentityAdminRolesIdQueryOptions: () => getGetApiIdentityAdminRolesIdQueryOptions,
|
|
93
|
+
getGetApiIdentityAdminRolesQueryKey: () => getGetApiIdentityAdminRolesQueryKey,
|
|
94
|
+
getGetApiIdentityAdminRolesQueryOptions: () => getGetApiIdentityAdminRolesQueryOptions,
|
|
95
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryKey: () => getGetApiIdentityAdminUsersIdPermissionsQueryKey,
|
|
96
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryOptions: () => getGetApiIdentityAdminUsersIdPermissionsQueryOptions,
|
|
97
|
+
getGetApiIdentityAdminUsersIdRolesQueryKey: () => getGetApiIdentityAdminUsersIdRolesQueryKey,
|
|
98
|
+
getGetApiIdentityAdminUsersIdRolesQueryOptions: () => getGetApiIdentityAdminUsersIdRolesQueryOptions,
|
|
99
|
+
getGetApiIdentityAdminUsersQueryKey: () => getGetApiIdentityAdminUsersQueryKey,
|
|
100
|
+
getGetApiIdentityAdminUsersQueryOptions: () => getGetApiIdentityAdminUsersQueryOptions,
|
|
101
|
+
getGetApiIdentityAntiforgeryQueryKey: () => getGetApiIdentityAntiforgeryQueryKey,
|
|
102
|
+
getGetApiIdentityAntiforgeryQueryOptions: () => getGetApiIdentityAntiforgeryQueryOptions,
|
|
103
|
+
getGetApiIdentityManage2faQueryKey: () => getGetApiIdentityManage2faQueryKey,
|
|
104
|
+
getGetApiIdentityManage2faQueryOptions: () => getGetApiIdentityManage2faQueryOptions,
|
|
105
|
+
getGetApiIdentityManageInfoQueryKey: () => getGetApiIdentityManageInfoQueryKey,
|
|
106
|
+
getGetApiIdentityManageInfoQueryOptions: () => getGetApiIdentityManageInfoQueryOptions,
|
|
107
|
+
getGetCatalogItemQueryKey: () => getGetCatalogItemQueryKey,
|
|
108
|
+
getGetCatalogItemQueryOptions: () => getGetCatalogItemQueryOptions,
|
|
51
109
|
getGetHealthQueryKey: () => getGetHealthQueryKey,
|
|
52
110
|
getGetHealthQueryOptions: () => getGetHealthQueryOptions,
|
|
53
111
|
getGetWarehouseByIdQueryKey: () => getGetWarehouseByIdQueryKey,
|
|
@@ -55,15 +113,30 @@ __export(index_exports, {
|
|
|
55
113
|
getGetWarehouseOptionsQueryKey: () => getGetWarehouseOptionsQueryKey,
|
|
56
114
|
getGetWarehouseOptionsQueryOptions: () => getGetWarehouseOptionsQueryOptions,
|
|
57
115
|
getHealth: () => getHealth,
|
|
116
|
+
getListCatalogItemsQueryKey: () => getListCatalogItemsQueryKey,
|
|
117
|
+
getListCatalogItemsQueryOptions: () => getListCatalogItemsQueryOptions,
|
|
58
118
|
getListStockItemsQueryKey: () => getListStockItemsQueryKey,
|
|
59
119
|
getListStockItemsQueryOptions: () => getListStockItemsQueryOptions,
|
|
60
120
|
getListStockMovementsQueryKey: () => getListStockMovementsQueryKey,
|
|
61
121
|
getListStockMovementsQueryOptions: () => getListStockMovementsQueryOptions,
|
|
62
122
|
getListWarehousesQueryKey: () => getListWarehousesQueryKey,
|
|
63
123
|
getListWarehousesQueryOptions: () => getListWarehousesQueryOptions,
|
|
124
|
+
getPostApiIdentityAdminRolesMutationOptions: () => getPostApiIdentityAdminRolesMutationOptions,
|
|
125
|
+
getPostApiIdentityAdminUsersIdLogoutMutationOptions: () => getPostApiIdentityAdminUsersIdLogoutMutationOptions,
|
|
126
|
+
getPostApiIdentityForgotPasswordMutationOptions: () => getPostApiIdentityForgotPasswordMutationOptions,
|
|
127
|
+
getPostApiIdentityLoginMutationOptions: () => getPostApiIdentityLoginMutationOptions,
|
|
128
|
+
getPostApiIdentityLogoutMutationOptions: () => getPostApiIdentityLogoutMutationOptions,
|
|
129
|
+
getPostApiIdentityManage2faMutationOptions: () => getPostApiIdentityManage2faMutationOptions,
|
|
130
|
+
getPostApiIdentityManageInfoMutationOptions: () => getPostApiIdentityManageInfoMutationOptions,
|
|
131
|
+
getPostApiIdentityResetPasswordMutationOptions: () => getPostApiIdentityResetPasswordMutationOptions,
|
|
132
|
+
getPutApiIdentityAdminRolesIdMutationOptions: () => getPutApiIdentityAdminRolesIdMutationOptions,
|
|
133
|
+
getPutApiIdentityAdminRolesIdPermissionsMutationOptions: () => getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
|
|
134
|
+
getPutApiIdentityAdminUsersIdActiveMutationOptions: () => getPutApiIdentityAdminUsersIdActiveMutationOptions,
|
|
135
|
+
getPutApiIdentityAdminUsersIdRolesMutationOptions: () => getPutApiIdentityAdminUsersIdRolesMutationOptions,
|
|
64
136
|
getSearchAddressesQueryKey: () => getSearchAddressesQueryKey,
|
|
65
137
|
getSearchAddressesQueryOptions: () => getSearchAddressesQueryOptions,
|
|
66
138
|
getToggleWarehouseStatusMutationOptions: () => getToggleWarehouseStatusMutationOptions,
|
|
139
|
+
getUpdateCatalogItemMutationOptions: () => getUpdateCatalogItemMutationOptions,
|
|
67
140
|
getUpdateWarehouseMutationOptions: () => getUpdateWarehouseMutationOptions,
|
|
68
141
|
getWarehouseById: () => getWarehouseById,
|
|
69
142
|
getWarehouseByIdParams: () => getWarehouseByIdParams,
|
|
@@ -71,6 +144,11 @@ __export(index_exports, {
|
|
|
71
144
|
getWarehouseOptions: () => getWarehouseOptions,
|
|
72
145
|
getWarehouseOptionsResponse: () => getWarehouseOptionsResponse,
|
|
73
146
|
getWarehouseOptionsResponseItem: () => getWarehouseOptionsResponseItem,
|
|
147
|
+
listCatalogItems: () => listCatalogItems,
|
|
148
|
+
listCatalogItemsQueryPageDefault: () => listCatalogItemsQueryPageDefault,
|
|
149
|
+
listCatalogItemsQueryPageSizeDefault: () => listCatalogItemsQueryPageSizeDefault,
|
|
150
|
+
listCatalogItemsQueryParams: () => listCatalogItemsQueryParams,
|
|
151
|
+
listCatalogItemsResponse: () => listCatalogItemsResponse,
|
|
74
152
|
listStockItems: () => listStockItems,
|
|
75
153
|
listStockItemsQueryDescendingDefault: () => listStockItemsQueryDescendingDefault,
|
|
76
154
|
listStockItemsQueryPageDefault: () => listStockItemsQueryPageDefault,
|
|
@@ -88,6 +166,36 @@ __export(index_exports, {
|
|
|
88
166
|
listWarehousesQueryPageSizeDefault: () => listWarehousesQueryPageSizeDefault,
|
|
89
167
|
listWarehousesQueryParams: () => listWarehousesQueryParams,
|
|
90
168
|
listWarehousesResponse: () => listWarehousesResponse,
|
|
169
|
+
postApiIdentityAdminRoles: () => postApiIdentityAdminRoles,
|
|
170
|
+
postApiIdentityAdminRolesBody: () => postApiIdentityAdminRolesBody,
|
|
171
|
+
postApiIdentityAdminUsersIdLogout: () => postApiIdentityAdminUsersIdLogout,
|
|
172
|
+
postApiIdentityAdminUsersIdLogoutParams: () => postApiIdentityAdminUsersIdLogoutParams,
|
|
173
|
+
postApiIdentityForgotPassword: () => postApiIdentityForgotPassword,
|
|
174
|
+
postApiIdentityForgotPasswordBody: () => postApiIdentityForgotPasswordBody,
|
|
175
|
+
postApiIdentityLogin: () => postApiIdentityLogin,
|
|
176
|
+
postApiIdentityLoginBody: () => postApiIdentityLoginBody,
|
|
177
|
+
postApiIdentityLoginResponse: () => postApiIdentityLoginResponse,
|
|
178
|
+
postApiIdentityLogout: () => postApiIdentityLogout,
|
|
179
|
+
postApiIdentityManage2fa: () => postApiIdentityManage2fa,
|
|
180
|
+
postApiIdentityManage2faBody: () => postApiIdentityManage2faBody,
|
|
181
|
+
postApiIdentityManage2faResponse: () => postApiIdentityManage2faResponse,
|
|
182
|
+
postApiIdentityManageInfo: () => postApiIdentityManageInfo,
|
|
183
|
+
postApiIdentityManageInfoBody: () => postApiIdentityManageInfoBody,
|
|
184
|
+
postApiIdentityManageInfoResponse: () => postApiIdentityManageInfoResponse,
|
|
185
|
+
postApiIdentityResetPassword: () => postApiIdentityResetPassword,
|
|
186
|
+
postApiIdentityResetPasswordBody: () => postApiIdentityResetPasswordBody,
|
|
187
|
+
putApiIdentityAdminRolesId: () => putApiIdentityAdminRolesId,
|
|
188
|
+
putApiIdentityAdminRolesIdBody: () => putApiIdentityAdminRolesIdBody,
|
|
189
|
+
putApiIdentityAdminRolesIdParams: () => putApiIdentityAdminRolesIdParams,
|
|
190
|
+
putApiIdentityAdminRolesIdPermissions: () => putApiIdentityAdminRolesIdPermissions,
|
|
191
|
+
putApiIdentityAdminRolesIdPermissionsBody: () => putApiIdentityAdminRolesIdPermissionsBody,
|
|
192
|
+
putApiIdentityAdminRolesIdPermissionsParams: () => putApiIdentityAdminRolesIdPermissionsParams,
|
|
193
|
+
putApiIdentityAdminUsersIdActive: () => putApiIdentityAdminUsersIdActive,
|
|
194
|
+
putApiIdentityAdminUsersIdActiveBody: () => putApiIdentityAdminUsersIdActiveBody,
|
|
195
|
+
putApiIdentityAdminUsersIdActiveParams: () => putApiIdentityAdminUsersIdActiveParams,
|
|
196
|
+
putApiIdentityAdminUsersIdRoles: () => putApiIdentityAdminUsersIdRoles,
|
|
197
|
+
putApiIdentityAdminUsersIdRolesBody: () => putApiIdentityAdminUsersIdRolesBody,
|
|
198
|
+
putApiIdentityAdminUsersIdRolesParams: () => putApiIdentityAdminUsersIdRolesParams,
|
|
91
199
|
searchAddresses: () => searchAddresses,
|
|
92
200
|
searchAddressesQueryLimitDefault: () => searchAddressesQueryLimitDefault,
|
|
93
201
|
searchAddressesQueryParams: () => searchAddressesQueryParams,
|
|
@@ -95,22 +203,53 @@ __export(index_exports, {
|
|
|
95
203
|
searchAddressesResponseItem: () => searchAddressesResponseItem,
|
|
96
204
|
toggleWarehouseStatus: () => toggleWarehouseStatus,
|
|
97
205
|
toggleWarehouseStatusParams: () => toggleWarehouseStatusParams,
|
|
206
|
+
updateCatalogItem: () => updateCatalogItem,
|
|
207
|
+
updateCatalogItemBody: () => updateCatalogItemBody,
|
|
208
|
+
updateCatalogItemParams: () => updateCatalogItemParams,
|
|
209
|
+
updateCatalogItemResponse: () => updateCatalogItemResponse,
|
|
98
210
|
updateWarehouse: () => updateWarehouse,
|
|
99
211
|
updateWarehouseBody: () => updateWarehouseBody,
|
|
100
212
|
updateWarehouseParams: () => updateWarehouseParams,
|
|
101
213
|
useConsumeBatch: () => useConsumeBatch,
|
|
102
214
|
useCreateBatch: () => useCreateBatch,
|
|
215
|
+
useCreateCatalogItem: () => useCreateCatalogItem,
|
|
103
216
|
useCreateStockItems: () => useCreateStockItems,
|
|
104
217
|
useCreateWarehouse: () => useCreateWarehouse,
|
|
218
|
+
useDeleteApiIdentityAdminRolesId: () => useDeleteApiIdentityAdminRolesId,
|
|
219
|
+
useDeleteCatalogItem: () => useDeleteCatalogItem,
|
|
105
220
|
useDeleteWarehouse: () => useDeleteWarehouse,
|
|
221
|
+
useGetApiIdentityAdminPermissions: () => useGetApiIdentityAdminPermissions,
|
|
222
|
+
useGetApiIdentityAdminRoles: () => useGetApiIdentityAdminRoles,
|
|
223
|
+
useGetApiIdentityAdminRolesId: () => useGetApiIdentityAdminRolesId,
|
|
224
|
+
useGetApiIdentityAdminUsers: () => useGetApiIdentityAdminUsers,
|
|
225
|
+
useGetApiIdentityAdminUsersIdPermissions: () => useGetApiIdentityAdminUsersIdPermissions,
|
|
226
|
+
useGetApiIdentityAdminUsersIdRoles: () => useGetApiIdentityAdminUsersIdRoles,
|
|
227
|
+
useGetApiIdentityAntiforgery: () => useGetApiIdentityAntiforgery,
|
|
228
|
+
useGetApiIdentityManage2fa: () => useGetApiIdentityManage2fa,
|
|
229
|
+
useGetApiIdentityManageInfo: () => useGetApiIdentityManageInfo,
|
|
230
|
+
useGetCatalogItem: () => useGetCatalogItem,
|
|
106
231
|
useGetHealth: () => useGetHealth,
|
|
107
232
|
useGetWarehouseById: () => useGetWarehouseById,
|
|
108
233
|
useGetWarehouseOptions: () => useGetWarehouseOptions,
|
|
234
|
+
useListCatalogItems: () => useListCatalogItems,
|
|
109
235
|
useListStockItems: () => useListStockItems,
|
|
110
236
|
useListStockMovements: () => useListStockMovements,
|
|
111
237
|
useListWarehouses: () => useListWarehouses,
|
|
238
|
+
usePostApiIdentityAdminRoles: () => usePostApiIdentityAdminRoles,
|
|
239
|
+
usePostApiIdentityAdminUsersIdLogout: () => usePostApiIdentityAdminUsersIdLogout,
|
|
240
|
+
usePostApiIdentityForgotPassword: () => usePostApiIdentityForgotPassword,
|
|
241
|
+
usePostApiIdentityLogin: () => usePostApiIdentityLogin,
|
|
242
|
+
usePostApiIdentityLogout: () => usePostApiIdentityLogout,
|
|
243
|
+
usePostApiIdentityManage2fa: () => usePostApiIdentityManage2fa,
|
|
244
|
+
usePostApiIdentityManageInfo: () => usePostApiIdentityManageInfo,
|
|
245
|
+
usePostApiIdentityResetPassword: () => usePostApiIdentityResetPassword,
|
|
246
|
+
usePutApiIdentityAdminRolesId: () => usePutApiIdentityAdminRolesId,
|
|
247
|
+
usePutApiIdentityAdminRolesIdPermissions: () => usePutApiIdentityAdminRolesIdPermissions,
|
|
248
|
+
usePutApiIdentityAdminUsersIdActive: () => usePutApiIdentityAdminUsersIdActive,
|
|
249
|
+
usePutApiIdentityAdminUsersIdRoles: () => usePutApiIdentityAdminUsersIdRoles,
|
|
112
250
|
useSearchAddresses: () => useSearchAddresses,
|
|
113
251
|
useToggleWarehouseStatus: () => useToggleWarehouseStatus,
|
|
252
|
+
useUpdateCatalogItem: () => useUpdateCatalogItem,
|
|
114
253
|
useUpdateWarehouse: () => useUpdateWarehouse
|
|
115
254
|
});
|
|
116
255
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -291,6 +430,93 @@ function useSearchAddresses(params, options, queryClient) {
|
|
|
291
430
|
query.queryKey = queryOptions.queryKey;
|
|
292
431
|
return query;
|
|
293
432
|
}
|
|
433
|
+
var createCatalogItem = (upsertCatalogItemRequest, options) => {
|
|
434
|
+
return import_axios.default.post(`/api/catalog`, upsertCatalogItemRequest, options);
|
|
435
|
+
};
|
|
436
|
+
var getCreateCatalogItemMutationOptions = (options) => {
|
|
437
|
+
const mutationKey = ["createCatalogItem"];
|
|
438
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
439
|
+
const mutationFn = (props) => {
|
|
440
|
+
const { data } = props ?? {};
|
|
441
|
+
return createCatalogItem(data, axiosOptions);
|
|
442
|
+
};
|
|
443
|
+
return { mutationFn, ...mutationOptions };
|
|
444
|
+
};
|
|
445
|
+
var useCreateCatalogItem = (options, queryClient) => {
|
|
446
|
+
const mutationOptions = getCreateCatalogItemMutationOptions(options);
|
|
447
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
448
|
+
};
|
|
449
|
+
var listCatalogItems = (params, options) => {
|
|
450
|
+
return import_axios.default.get(`/api/catalog`, {
|
|
451
|
+
...options,
|
|
452
|
+
params: { ...params, ...options?.params }
|
|
453
|
+
});
|
|
454
|
+
};
|
|
455
|
+
var getListCatalogItemsQueryKey = (params) => {
|
|
456
|
+
return [`/api/catalog`, ...params ? [params] : []];
|
|
457
|
+
};
|
|
458
|
+
var getListCatalogItemsQueryOptions = (params, options) => {
|
|
459
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
460
|
+
const queryKey = queryOptions?.queryKey ?? getListCatalogItemsQueryKey(params);
|
|
461
|
+
const queryFn = ({ signal }) => listCatalogItems(params, { signal, ...axiosOptions });
|
|
462
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
463
|
+
};
|
|
464
|
+
function useListCatalogItems(params, options, queryClient) {
|
|
465
|
+
const queryOptions = getListCatalogItemsQueryOptions(params, options);
|
|
466
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
467
|
+
query.queryKey = queryOptions.queryKey;
|
|
468
|
+
return query;
|
|
469
|
+
}
|
|
470
|
+
var updateCatalogItem = (id, upsertCatalogItemRequest, options) => {
|
|
471
|
+
return import_axios.default.put(`/api/catalog/${id}`, upsertCatalogItemRequest, options);
|
|
472
|
+
};
|
|
473
|
+
var getUpdateCatalogItemMutationOptions = (options) => {
|
|
474
|
+
const mutationKey = ["updateCatalogItem"];
|
|
475
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
476
|
+
const mutationFn = (props) => {
|
|
477
|
+
const { id, data } = props ?? {};
|
|
478
|
+
return updateCatalogItem(id, data, axiosOptions);
|
|
479
|
+
};
|
|
480
|
+
return { mutationFn, ...mutationOptions };
|
|
481
|
+
};
|
|
482
|
+
var useUpdateCatalogItem = (options, queryClient) => {
|
|
483
|
+
const mutationOptions = getUpdateCatalogItemMutationOptions(options);
|
|
484
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
485
|
+
};
|
|
486
|
+
var getCatalogItem = (id, options) => {
|
|
487
|
+
return import_axios.default.get(`/api/catalog/${id}`, options);
|
|
488
|
+
};
|
|
489
|
+
var getGetCatalogItemQueryKey = (id) => {
|
|
490
|
+
return [`/api/catalog/${id}`];
|
|
491
|
+
};
|
|
492
|
+
var getGetCatalogItemQueryOptions = (id, options) => {
|
|
493
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
494
|
+
const queryKey = queryOptions?.queryKey ?? getGetCatalogItemQueryKey(id);
|
|
495
|
+
const queryFn = ({ signal }) => getCatalogItem(id, { signal, ...axiosOptions });
|
|
496
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
497
|
+
};
|
|
498
|
+
function useGetCatalogItem(id, options, queryClient) {
|
|
499
|
+
const queryOptions = getGetCatalogItemQueryOptions(id, options);
|
|
500
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
501
|
+
query.queryKey = queryOptions.queryKey;
|
|
502
|
+
return query;
|
|
503
|
+
}
|
|
504
|
+
var deleteCatalogItem = (id, options) => {
|
|
505
|
+
return import_axios.default.delete(`/api/catalog/${id}`, options);
|
|
506
|
+
};
|
|
507
|
+
var getDeleteCatalogItemMutationOptions = (options) => {
|
|
508
|
+
const mutationKey = ["deleteCatalogItem"];
|
|
509
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
510
|
+
const mutationFn = (props) => {
|
|
511
|
+
const { id } = props ?? {};
|
|
512
|
+
return deleteCatalogItem(id, axiosOptions);
|
|
513
|
+
};
|
|
514
|
+
return { mutationFn, ...mutationOptions };
|
|
515
|
+
};
|
|
516
|
+
var useDeleteCatalogItem = (options, queryClient) => {
|
|
517
|
+
const mutationOptions = getDeleteCatalogItemMutationOptions(options);
|
|
518
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
519
|
+
};
|
|
294
520
|
var createStockItems = (createStockItemCommand, options) => {
|
|
295
521
|
return import_axios.default.post(`/api/stock-items`, createStockItemCommand, options);
|
|
296
522
|
};
|
|
@@ -381,6 +607,394 @@ function useListStockMovements(params, options, queryClient) {
|
|
|
381
607
|
query.queryKey = queryOptions.queryKey;
|
|
382
608
|
return query;
|
|
383
609
|
}
|
|
610
|
+
var getApiIdentityAntiforgery = (options) => {
|
|
611
|
+
return import_axios.default.get(`/api/identity/antiforgery`, options);
|
|
612
|
+
};
|
|
613
|
+
var getGetApiIdentityAntiforgeryQueryKey = () => {
|
|
614
|
+
return [`/api/identity/antiforgery`];
|
|
615
|
+
};
|
|
616
|
+
var getGetApiIdentityAntiforgeryQueryOptions = (options) => {
|
|
617
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
618
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAntiforgeryQueryKey();
|
|
619
|
+
const queryFn = ({
|
|
620
|
+
signal
|
|
621
|
+
}) => getApiIdentityAntiforgery({ signal, ...axiosOptions });
|
|
622
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
623
|
+
};
|
|
624
|
+
function useGetApiIdentityAntiforgery(options, queryClient) {
|
|
625
|
+
const queryOptions = getGetApiIdentityAntiforgeryQueryOptions(options);
|
|
626
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
627
|
+
query.queryKey = queryOptions.queryKey;
|
|
628
|
+
return query;
|
|
629
|
+
}
|
|
630
|
+
var postApiIdentityLogin = (loginRequest, options) => {
|
|
631
|
+
return import_axios.default.post(`/api/identity/login`, loginRequest, options);
|
|
632
|
+
};
|
|
633
|
+
var getPostApiIdentityLoginMutationOptions = (options) => {
|
|
634
|
+
const mutationKey = ["postApiIdentityLogin"];
|
|
635
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
636
|
+
const mutationFn = (props) => {
|
|
637
|
+
const { data } = props ?? {};
|
|
638
|
+
return postApiIdentityLogin(data, axiosOptions);
|
|
639
|
+
};
|
|
640
|
+
return { mutationFn, ...mutationOptions };
|
|
641
|
+
};
|
|
642
|
+
var usePostApiIdentityLogin = (options, queryClient) => {
|
|
643
|
+
const mutationOptions = getPostApiIdentityLoginMutationOptions(options);
|
|
644
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
645
|
+
};
|
|
646
|
+
var postApiIdentityLogout = (options) => {
|
|
647
|
+
return import_axios.default.post(`/api/identity/logout`, void 0, options);
|
|
648
|
+
};
|
|
649
|
+
var getPostApiIdentityLogoutMutationOptions = (options) => {
|
|
650
|
+
const mutationKey = ["postApiIdentityLogout"];
|
|
651
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
652
|
+
const mutationFn = () => {
|
|
653
|
+
return postApiIdentityLogout(axiosOptions);
|
|
654
|
+
};
|
|
655
|
+
return { mutationFn, ...mutationOptions };
|
|
656
|
+
};
|
|
657
|
+
var usePostApiIdentityLogout = (options, queryClient) => {
|
|
658
|
+
const mutationOptions = getPostApiIdentityLogoutMutationOptions(options);
|
|
659
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
660
|
+
};
|
|
661
|
+
var postApiIdentityForgotPassword = (emailRequest, options) => {
|
|
662
|
+
return import_axios.default.post(`/api/identity/forgotPassword`, emailRequest, options);
|
|
663
|
+
};
|
|
664
|
+
var getPostApiIdentityForgotPasswordMutationOptions = (options) => {
|
|
665
|
+
const mutationKey = ["postApiIdentityForgotPassword"];
|
|
666
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
667
|
+
const mutationFn = (props) => {
|
|
668
|
+
const { data } = props ?? {};
|
|
669
|
+
return postApiIdentityForgotPassword(data, axiosOptions);
|
|
670
|
+
};
|
|
671
|
+
return { mutationFn, ...mutationOptions };
|
|
672
|
+
};
|
|
673
|
+
var usePostApiIdentityForgotPassword = (options, queryClient) => {
|
|
674
|
+
const mutationOptions = getPostApiIdentityForgotPasswordMutationOptions(options);
|
|
675
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
676
|
+
};
|
|
677
|
+
var postApiIdentityResetPassword = (resetPasswordRequest, options) => {
|
|
678
|
+
return import_axios.default.post(`/api/identity/resetPassword`, resetPasswordRequest, options);
|
|
679
|
+
};
|
|
680
|
+
var getPostApiIdentityResetPasswordMutationOptions = (options) => {
|
|
681
|
+
const mutationKey = ["postApiIdentityResetPassword"];
|
|
682
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
683
|
+
const mutationFn = (props) => {
|
|
684
|
+
const { data } = props ?? {};
|
|
685
|
+
return postApiIdentityResetPassword(data, axiosOptions);
|
|
686
|
+
};
|
|
687
|
+
return { mutationFn, ...mutationOptions };
|
|
688
|
+
};
|
|
689
|
+
var usePostApiIdentityResetPassword = (options, queryClient) => {
|
|
690
|
+
const mutationOptions = getPostApiIdentityResetPasswordMutationOptions(options);
|
|
691
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
692
|
+
};
|
|
693
|
+
var getApiIdentityManage2fa = (options) => {
|
|
694
|
+
return import_axios.default.get(`/api/identity/manage/2fa`, options);
|
|
695
|
+
};
|
|
696
|
+
var getGetApiIdentityManage2faQueryKey = () => {
|
|
697
|
+
return [`/api/identity/manage/2fa`];
|
|
698
|
+
};
|
|
699
|
+
var getGetApiIdentityManage2faQueryOptions = (options) => {
|
|
700
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
701
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityManage2faQueryKey();
|
|
702
|
+
const queryFn = ({
|
|
703
|
+
signal
|
|
704
|
+
}) => getApiIdentityManage2fa({ signal, ...axiosOptions });
|
|
705
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
706
|
+
};
|
|
707
|
+
function useGetApiIdentityManage2fa(options, queryClient) {
|
|
708
|
+
const queryOptions = getGetApiIdentityManage2faQueryOptions(options);
|
|
709
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
710
|
+
query.queryKey = queryOptions.queryKey;
|
|
711
|
+
return query;
|
|
712
|
+
}
|
|
713
|
+
var postApiIdentityManage2fa = (twoFactorRequest, options) => {
|
|
714
|
+
return import_axios.default.post(`/api/identity/manage/2fa`, twoFactorRequest, options);
|
|
715
|
+
};
|
|
716
|
+
var getPostApiIdentityManage2faMutationOptions = (options) => {
|
|
717
|
+
const mutationKey = ["postApiIdentityManage2fa"];
|
|
718
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
719
|
+
const mutationFn = (props) => {
|
|
720
|
+
const { data } = props ?? {};
|
|
721
|
+
return postApiIdentityManage2fa(data, axiosOptions);
|
|
722
|
+
};
|
|
723
|
+
return { mutationFn, ...mutationOptions };
|
|
724
|
+
};
|
|
725
|
+
var usePostApiIdentityManage2fa = (options, queryClient) => {
|
|
726
|
+
const mutationOptions = getPostApiIdentityManage2faMutationOptions(options);
|
|
727
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
728
|
+
};
|
|
729
|
+
var getApiIdentityManageInfo = (options) => {
|
|
730
|
+
return import_axios.default.get(`/api/identity/manage/info`, options);
|
|
731
|
+
};
|
|
732
|
+
var getGetApiIdentityManageInfoQueryKey = () => {
|
|
733
|
+
return [`/api/identity/manage/info`];
|
|
734
|
+
};
|
|
735
|
+
var getGetApiIdentityManageInfoQueryOptions = (options) => {
|
|
736
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
737
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityManageInfoQueryKey();
|
|
738
|
+
const queryFn = ({
|
|
739
|
+
signal
|
|
740
|
+
}) => getApiIdentityManageInfo({ signal, ...axiosOptions });
|
|
741
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
742
|
+
};
|
|
743
|
+
function useGetApiIdentityManageInfo(options, queryClient) {
|
|
744
|
+
const queryOptions = getGetApiIdentityManageInfoQueryOptions(options);
|
|
745
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
746
|
+
query.queryKey = queryOptions.queryKey;
|
|
747
|
+
return query;
|
|
748
|
+
}
|
|
749
|
+
var postApiIdentityManageInfo = (updateAccountRequest, options) => {
|
|
750
|
+
return import_axios.default.post(`/api/identity/manage/info`, updateAccountRequest, options);
|
|
751
|
+
};
|
|
752
|
+
var getPostApiIdentityManageInfoMutationOptions = (options) => {
|
|
753
|
+
const mutationKey = ["postApiIdentityManageInfo"];
|
|
754
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
755
|
+
const mutationFn = (props) => {
|
|
756
|
+
const { data } = props ?? {};
|
|
757
|
+
return postApiIdentityManageInfo(data, axiosOptions);
|
|
758
|
+
};
|
|
759
|
+
return { mutationFn, ...mutationOptions };
|
|
760
|
+
};
|
|
761
|
+
var usePostApiIdentityManageInfo = (options, queryClient) => {
|
|
762
|
+
const mutationOptions = getPostApiIdentityManageInfoMutationOptions(options);
|
|
763
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
764
|
+
};
|
|
765
|
+
var getApiIdentityAdminRoles = (options) => {
|
|
766
|
+
return import_axios.default.get(`/api/identity/admin/roles`, options);
|
|
767
|
+
};
|
|
768
|
+
var getGetApiIdentityAdminRolesQueryKey = () => {
|
|
769
|
+
return [`/api/identity/admin/roles`];
|
|
770
|
+
};
|
|
771
|
+
var getGetApiIdentityAdminRolesQueryOptions = (options) => {
|
|
772
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
773
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminRolesQueryKey();
|
|
774
|
+
const queryFn = ({
|
|
775
|
+
signal
|
|
776
|
+
}) => getApiIdentityAdminRoles({ signal, ...axiosOptions });
|
|
777
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
778
|
+
};
|
|
779
|
+
function useGetApiIdentityAdminRoles(options, queryClient) {
|
|
780
|
+
const queryOptions = getGetApiIdentityAdminRolesQueryOptions(options);
|
|
781
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
782
|
+
query.queryKey = queryOptions.queryKey;
|
|
783
|
+
return query;
|
|
784
|
+
}
|
|
785
|
+
var postApiIdentityAdminRoles = (roleNameRequest, options) => {
|
|
786
|
+
return import_axios.default.post(`/api/identity/admin/roles`, roleNameRequest, options);
|
|
787
|
+
};
|
|
788
|
+
var getPostApiIdentityAdminRolesMutationOptions = (options) => {
|
|
789
|
+
const mutationKey = ["postApiIdentityAdminRoles"];
|
|
790
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
791
|
+
const mutationFn = (props) => {
|
|
792
|
+
const { data } = props ?? {};
|
|
793
|
+
return postApiIdentityAdminRoles(data, axiosOptions);
|
|
794
|
+
};
|
|
795
|
+
return { mutationFn, ...mutationOptions };
|
|
796
|
+
};
|
|
797
|
+
var usePostApiIdentityAdminRoles = (options, queryClient) => {
|
|
798
|
+
const mutationOptions = getPostApiIdentityAdminRolesMutationOptions(options);
|
|
799
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
800
|
+
};
|
|
801
|
+
var getApiIdentityAdminRolesId = (id, options) => {
|
|
802
|
+
return import_axios.default.get(`/api/identity/admin/roles/${id}`, options);
|
|
803
|
+
};
|
|
804
|
+
var getGetApiIdentityAdminRolesIdQueryKey = (id) => {
|
|
805
|
+
return [`/api/identity/admin/roles/${id}`];
|
|
806
|
+
};
|
|
807
|
+
var getGetApiIdentityAdminRolesIdQueryOptions = (id, options) => {
|
|
808
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
809
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminRolesIdQueryKey(id);
|
|
810
|
+
const queryFn = ({
|
|
811
|
+
signal
|
|
812
|
+
}) => getApiIdentityAdminRolesId(id, { signal, ...axiosOptions });
|
|
813
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
814
|
+
};
|
|
815
|
+
function useGetApiIdentityAdminRolesId(id, options, queryClient) {
|
|
816
|
+
const queryOptions = getGetApiIdentityAdminRolesIdQueryOptions(id, options);
|
|
817
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
818
|
+
query.queryKey = queryOptions.queryKey;
|
|
819
|
+
return query;
|
|
820
|
+
}
|
|
821
|
+
var putApiIdentityAdminRolesId = (id, roleNameRequest, options) => {
|
|
822
|
+
return import_axios.default.put(`/api/identity/admin/roles/${id}`, roleNameRequest, options);
|
|
823
|
+
};
|
|
824
|
+
var getPutApiIdentityAdminRolesIdMutationOptions = (options) => {
|
|
825
|
+
const mutationKey = ["putApiIdentityAdminRolesId"];
|
|
826
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
827
|
+
const mutationFn = (props) => {
|
|
828
|
+
const { id, data } = props ?? {};
|
|
829
|
+
return putApiIdentityAdminRolesId(id, data, axiosOptions);
|
|
830
|
+
};
|
|
831
|
+
return { mutationFn, ...mutationOptions };
|
|
832
|
+
};
|
|
833
|
+
var usePutApiIdentityAdminRolesId = (options, queryClient) => {
|
|
834
|
+
const mutationOptions = getPutApiIdentityAdminRolesIdMutationOptions(options);
|
|
835
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
836
|
+
};
|
|
837
|
+
var deleteApiIdentityAdminRolesId = (id, options) => {
|
|
838
|
+
return import_axios.default.delete(`/api/identity/admin/roles/${id}`, options);
|
|
839
|
+
};
|
|
840
|
+
var getDeleteApiIdentityAdminRolesIdMutationOptions = (options) => {
|
|
841
|
+
const mutationKey = ["deleteApiIdentityAdminRolesId"];
|
|
842
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
843
|
+
const mutationFn = (props) => {
|
|
844
|
+
const { id } = props ?? {};
|
|
845
|
+
return deleteApiIdentityAdminRolesId(id, axiosOptions);
|
|
846
|
+
};
|
|
847
|
+
return { mutationFn, ...mutationOptions };
|
|
848
|
+
};
|
|
849
|
+
var useDeleteApiIdentityAdminRolesId = (options, queryClient) => {
|
|
850
|
+
const mutationOptions = getDeleteApiIdentityAdminRolesIdMutationOptions(options);
|
|
851
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
852
|
+
};
|
|
853
|
+
var putApiIdentityAdminRolesIdPermissions = (id, setPermissionsRequest, options) => {
|
|
854
|
+
return import_axios.default.put(`/api/identity/admin/roles/${id}/permissions`, setPermissionsRequest, options);
|
|
855
|
+
};
|
|
856
|
+
var getPutApiIdentityAdminRolesIdPermissionsMutationOptions = (options) => {
|
|
857
|
+
const mutationKey = ["putApiIdentityAdminRolesIdPermissions"];
|
|
858
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
859
|
+
const mutationFn = (props) => {
|
|
860
|
+
const { id, data } = props ?? {};
|
|
861
|
+
return putApiIdentityAdminRolesIdPermissions(id, data, axiosOptions);
|
|
862
|
+
};
|
|
863
|
+
return { mutationFn, ...mutationOptions };
|
|
864
|
+
};
|
|
865
|
+
var usePutApiIdentityAdminRolesIdPermissions = (options, queryClient) => {
|
|
866
|
+
const mutationOptions = getPutApiIdentityAdminRolesIdPermissionsMutationOptions(options);
|
|
867
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
868
|
+
};
|
|
869
|
+
var getApiIdentityAdminPermissions = (options) => {
|
|
870
|
+
return import_axios.default.get(`/api/identity/admin/permissions`, options);
|
|
871
|
+
};
|
|
872
|
+
var getGetApiIdentityAdminPermissionsQueryKey = () => {
|
|
873
|
+
return [`/api/identity/admin/permissions`];
|
|
874
|
+
};
|
|
875
|
+
var getGetApiIdentityAdminPermissionsQueryOptions = (options) => {
|
|
876
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
877
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminPermissionsQueryKey();
|
|
878
|
+
const queryFn = ({
|
|
879
|
+
signal
|
|
880
|
+
}) => getApiIdentityAdminPermissions({ signal, ...axiosOptions });
|
|
881
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
882
|
+
};
|
|
883
|
+
function useGetApiIdentityAdminPermissions(options, queryClient) {
|
|
884
|
+
const queryOptions = getGetApiIdentityAdminPermissionsQueryOptions(options);
|
|
885
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
886
|
+
query.queryKey = queryOptions.queryKey;
|
|
887
|
+
return query;
|
|
888
|
+
}
|
|
889
|
+
var getApiIdentityAdminUsers = (params, options) => {
|
|
890
|
+
return import_axios.default.get(`/api/identity/admin/users`, {
|
|
891
|
+
...options,
|
|
892
|
+
params: { ...params, ...options?.params }
|
|
893
|
+
});
|
|
894
|
+
};
|
|
895
|
+
var getGetApiIdentityAdminUsersQueryKey = (params) => {
|
|
896
|
+
return [`/api/identity/admin/users`, ...params ? [params] : []];
|
|
897
|
+
};
|
|
898
|
+
var getGetApiIdentityAdminUsersQueryOptions = (params, options) => {
|
|
899
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
900
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminUsersQueryKey(params);
|
|
901
|
+
const queryFn = ({
|
|
902
|
+
signal
|
|
903
|
+
}) => getApiIdentityAdminUsers(params, { signal, ...axiosOptions });
|
|
904
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
905
|
+
};
|
|
906
|
+
function useGetApiIdentityAdminUsers(params, options, queryClient) {
|
|
907
|
+
const queryOptions = getGetApiIdentityAdminUsersQueryOptions(params, options);
|
|
908
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
909
|
+
query.queryKey = queryOptions.queryKey;
|
|
910
|
+
return query;
|
|
911
|
+
}
|
|
912
|
+
var getApiIdentityAdminUsersIdRoles = (id, options) => {
|
|
913
|
+
return import_axios.default.get(`/api/identity/admin/users/${id}/roles`, options);
|
|
914
|
+
};
|
|
915
|
+
var getGetApiIdentityAdminUsersIdRolesQueryKey = (id) => {
|
|
916
|
+
return [`/api/identity/admin/users/${id}/roles`];
|
|
917
|
+
};
|
|
918
|
+
var getGetApiIdentityAdminUsersIdRolesQueryOptions = (id, options) => {
|
|
919
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
920
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminUsersIdRolesQueryKey(id);
|
|
921
|
+
const queryFn = ({
|
|
922
|
+
signal
|
|
923
|
+
}) => getApiIdentityAdminUsersIdRoles(id, { signal, ...axiosOptions });
|
|
924
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
925
|
+
};
|
|
926
|
+
function useGetApiIdentityAdminUsersIdRoles(id, options, queryClient) {
|
|
927
|
+
const queryOptions = getGetApiIdentityAdminUsersIdRolesQueryOptions(id, options);
|
|
928
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
929
|
+
query.queryKey = queryOptions.queryKey;
|
|
930
|
+
return query;
|
|
931
|
+
}
|
|
932
|
+
var putApiIdentityAdminUsersIdRoles = (id, setUserRolesRequest, options) => {
|
|
933
|
+
return import_axios.default.put(`/api/identity/admin/users/${id}/roles`, setUserRolesRequest, options);
|
|
934
|
+
};
|
|
935
|
+
var getPutApiIdentityAdminUsersIdRolesMutationOptions = (options) => {
|
|
936
|
+
const mutationKey = ["putApiIdentityAdminUsersIdRoles"];
|
|
937
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
938
|
+
const mutationFn = (props) => {
|
|
939
|
+
const { id, data } = props ?? {};
|
|
940
|
+
return putApiIdentityAdminUsersIdRoles(id, data, axiosOptions);
|
|
941
|
+
};
|
|
942
|
+
return { mutationFn, ...mutationOptions };
|
|
943
|
+
};
|
|
944
|
+
var usePutApiIdentityAdminUsersIdRoles = (options, queryClient) => {
|
|
945
|
+
const mutationOptions = getPutApiIdentityAdminUsersIdRolesMutationOptions(options);
|
|
946
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
947
|
+
};
|
|
948
|
+
var getApiIdentityAdminUsersIdPermissions = (id, options) => {
|
|
949
|
+
return import_axios.default.get(`/api/identity/admin/users/${id}/permissions`, options);
|
|
950
|
+
};
|
|
951
|
+
var getGetApiIdentityAdminUsersIdPermissionsQueryKey = (id) => {
|
|
952
|
+
return [`/api/identity/admin/users/${id}/permissions`];
|
|
953
|
+
};
|
|
954
|
+
var getGetApiIdentityAdminUsersIdPermissionsQueryOptions = (id, options) => {
|
|
955
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
956
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminUsersIdPermissionsQueryKey(id);
|
|
957
|
+
const queryFn = ({ signal }) => getApiIdentityAdminUsersIdPermissions(id, { signal, ...axiosOptions });
|
|
958
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
959
|
+
};
|
|
960
|
+
function useGetApiIdentityAdminUsersIdPermissions(id, options, queryClient) {
|
|
961
|
+
const queryOptions = getGetApiIdentityAdminUsersIdPermissionsQueryOptions(id, options);
|
|
962
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
963
|
+
query.queryKey = queryOptions.queryKey;
|
|
964
|
+
return query;
|
|
965
|
+
}
|
|
966
|
+
var putApiIdentityAdminUsersIdActive = (id, setUserActiveRequest, options) => {
|
|
967
|
+
return import_axios.default.put(`/api/identity/admin/users/${id}/active`, setUserActiveRequest, options);
|
|
968
|
+
};
|
|
969
|
+
var getPutApiIdentityAdminUsersIdActiveMutationOptions = (options) => {
|
|
970
|
+
const mutationKey = ["putApiIdentityAdminUsersIdActive"];
|
|
971
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
972
|
+
const mutationFn = (props) => {
|
|
973
|
+
const { id, data } = props ?? {};
|
|
974
|
+
return putApiIdentityAdminUsersIdActive(id, data, axiosOptions);
|
|
975
|
+
};
|
|
976
|
+
return { mutationFn, ...mutationOptions };
|
|
977
|
+
};
|
|
978
|
+
var usePutApiIdentityAdminUsersIdActive = (options, queryClient) => {
|
|
979
|
+
const mutationOptions = getPutApiIdentityAdminUsersIdActiveMutationOptions(options);
|
|
980
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
981
|
+
};
|
|
982
|
+
var postApiIdentityAdminUsersIdLogout = (id, options) => {
|
|
983
|
+
return import_axios.default.post(`/api/identity/admin/users/${id}/logout`, void 0, options);
|
|
984
|
+
};
|
|
985
|
+
var getPostApiIdentityAdminUsersIdLogoutMutationOptions = (options) => {
|
|
986
|
+
const mutationKey = ["postApiIdentityAdminUsersIdLogout"];
|
|
987
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
988
|
+
const mutationFn = (props) => {
|
|
989
|
+
const { id } = props ?? {};
|
|
990
|
+
return postApiIdentityAdminUsersIdLogout(id, axiosOptions);
|
|
991
|
+
};
|
|
992
|
+
return { mutationFn, ...mutationOptions };
|
|
993
|
+
};
|
|
994
|
+
var usePostApiIdentityAdminUsersIdLogout = (options, queryClient) => {
|
|
995
|
+
const mutationOptions = getPostApiIdentityAdminUsersIdLogoutMutationOptions(options);
|
|
996
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
997
|
+
};
|
|
384
998
|
|
|
385
999
|
// src/gen/v1.zod.ts
|
|
386
1000
|
var zod = __toESM(require("zod"));
|
|
@@ -489,6 +1103,222 @@ var searchAddressesResponseItem = zod.strictObject({
|
|
|
489
1103
|
zipCode: zod.string().optional()
|
|
490
1104
|
});
|
|
491
1105
|
var searchAddressesResponse = zod.array(searchAddressesResponseItem);
|
|
1106
|
+
var createCatalogItemBody = zod.strictObject({
|
|
1107
|
+
categoryId: zod.uuid(),
|
|
1108
|
+
name: zod.string(),
|
|
1109
|
+
slug: zod.string(),
|
|
1110
|
+
status: zod.string(),
|
|
1111
|
+
classification: zod.string(),
|
|
1112
|
+
variants: zod.array(
|
|
1113
|
+
zod.strictObject({
|
|
1114
|
+
id: zod.uuid().nullish(),
|
|
1115
|
+
code: zod.string(),
|
|
1116
|
+
itemId: zod.uuid(),
|
|
1117
|
+
multiplier: zod.number(),
|
|
1118
|
+
attributes: zod.array(
|
|
1119
|
+
zod.strictObject({
|
|
1120
|
+
name: zod.string(),
|
|
1121
|
+
value: zod.string()
|
|
1122
|
+
})
|
|
1123
|
+
),
|
|
1124
|
+
weight: zod.strictObject({
|
|
1125
|
+
value: zod.number(),
|
|
1126
|
+
unit: zod.string()
|
|
1127
|
+
}),
|
|
1128
|
+
price: zod.strictObject({
|
|
1129
|
+
baseAmount: zod.number(),
|
|
1130
|
+
baseCurrency: zod.string(),
|
|
1131
|
+
sale: zod.union([
|
|
1132
|
+
zod.null(),
|
|
1133
|
+
zod.strictObject({
|
|
1134
|
+
amount: zod.number(),
|
|
1135
|
+
currency: zod.string(),
|
|
1136
|
+
startAt: zod.iso.datetime({}),
|
|
1137
|
+
endAt: zod.iso.datetime({})
|
|
1138
|
+
})
|
|
1139
|
+
]).optional(),
|
|
1140
|
+
wholesale: zod.array(
|
|
1141
|
+
zod.strictObject({
|
|
1142
|
+
minQty: zod.number(),
|
|
1143
|
+
amount: zod.number(),
|
|
1144
|
+
currency: zod.string()
|
|
1145
|
+
})
|
|
1146
|
+
).nullish()
|
|
1147
|
+
})
|
|
1148
|
+
})
|
|
1149
|
+
)
|
|
1150
|
+
});
|
|
1151
|
+
var listCatalogItemsQueryPageDefault = 1;
|
|
1152
|
+
var listCatalogItemsQueryPageSizeDefault = 10;
|
|
1153
|
+
var listCatalogItemsQueryParams = zod.strictObject({
|
|
1154
|
+
page: zod.coerce.number().default(listCatalogItemsQueryPageDefault),
|
|
1155
|
+
pageSize: zod.coerce.number().default(listCatalogItemsQueryPageSizeDefault)
|
|
1156
|
+
});
|
|
1157
|
+
var listCatalogItemsResponse = zod.strictObject({
|
|
1158
|
+
items: zod.array(
|
|
1159
|
+
zod.strictObject({
|
|
1160
|
+
id: zod.uuid(),
|
|
1161
|
+
categoryId: zod.uuid(),
|
|
1162
|
+
name: zod.string(),
|
|
1163
|
+
slug: zod.string(),
|
|
1164
|
+
status: zod.string(),
|
|
1165
|
+
classification: zod.string(),
|
|
1166
|
+
variantCount: zod.number()
|
|
1167
|
+
})
|
|
1168
|
+
),
|
|
1169
|
+
page: zod.number(),
|
|
1170
|
+
pageSize: zod.number(),
|
|
1171
|
+
totalCount: zod.number(),
|
|
1172
|
+
totalPages: zod.number().optional(),
|
|
1173
|
+
hasNextPage: zod.boolean().optional(),
|
|
1174
|
+
hasPreviousPage: zod.boolean().optional()
|
|
1175
|
+
});
|
|
1176
|
+
var updateCatalogItemParams = zod.strictObject({
|
|
1177
|
+
id: zod.uuid()
|
|
1178
|
+
});
|
|
1179
|
+
var updateCatalogItemBody = zod.strictObject({
|
|
1180
|
+
categoryId: zod.uuid(),
|
|
1181
|
+
name: zod.string(),
|
|
1182
|
+
slug: zod.string(),
|
|
1183
|
+
status: zod.string(),
|
|
1184
|
+
classification: zod.string(),
|
|
1185
|
+
variants: zod.array(
|
|
1186
|
+
zod.strictObject({
|
|
1187
|
+
id: zod.uuid().nullish(),
|
|
1188
|
+
code: zod.string(),
|
|
1189
|
+
itemId: zod.uuid(),
|
|
1190
|
+
multiplier: zod.number(),
|
|
1191
|
+
attributes: zod.array(
|
|
1192
|
+
zod.strictObject({
|
|
1193
|
+
name: zod.string(),
|
|
1194
|
+
value: zod.string()
|
|
1195
|
+
})
|
|
1196
|
+
),
|
|
1197
|
+
weight: zod.strictObject({
|
|
1198
|
+
value: zod.number(),
|
|
1199
|
+
unit: zod.string()
|
|
1200
|
+
}),
|
|
1201
|
+
price: zod.strictObject({
|
|
1202
|
+
baseAmount: zod.number(),
|
|
1203
|
+
baseCurrency: zod.string(),
|
|
1204
|
+
sale: zod.union([
|
|
1205
|
+
zod.null(),
|
|
1206
|
+
zod.strictObject({
|
|
1207
|
+
amount: zod.number(),
|
|
1208
|
+
currency: zod.string(),
|
|
1209
|
+
startAt: zod.iso.datetime({}),
|
|
1210
|
+
endAt: zod.iso.datetime({})
|
|
1211
|
+
})
|
|
1212
|
+
]).optional(),
|
|
1213
|
+
wholesale: zod.array(
|
|
1214
|
+
zod.strictObject({
|
|
1215
|
+
minQty: zod.number(),
|
|
1216
|
+
amount: zod.number(),
|
|
1217
|
+
currency: zod.string()
|
|
1218
|
+
})
|
|
1219
|
+
).nullish()
|
|
1220
|
+
})
|
|
1221
|
+
})
|
|
1222
|
+
)
|
|
1223
|
+
});
|
|
1224
|
+
var updateCatalogItemResponse = zod.strictObject({
|
|
1225
|
+
id: zod.uuid(),
|
|
1226
|
+
categoryId: zod.uuid(),
|
|
1227
|
+
name: zod.string(),
|
|
1228
|
+
slug: zod.string(),
|
|
1229
|
+
status: zod.string(),
|
|
1230
|
+
classification: zod.string(),
|
|
1231
|
+
variants: zod.array(
|
|
1232
|
+
zod.strictObject({
|
|
1233
|
+
id: zod.uuid().nullish(),
|
|
1234
|
+
code: zod.string(),
|
|
1235
|
+
itemId: zod.uuid(),
|
|
1236
|
+
multiplier: zod.number(),
|
|
1237
|
+
attributes: zod.array(
|
|
1238
|
+
zod.strictObject({
|
|
1239
|
+
name: zod.string(),
|
|
1240
|
+
value: zod.string()
|
|
1241
|
+
})
|
|
1242
|
+
),
|
|
1243
|
+
weight: zod.strictObject({
|
|
1244
|
+
value: zod.number(),
|
|
1245
|
+
unit: zod.string()
|
|
1246
|
+
}),
|
|
1247
|
+
price: zod.strictObject({
|
|
1248
|
+
baseAmount: zod.number(),
|
|
1249
|
+
baseCurrency: zod.string(),
|
|
1250
|
+
sale: zod.union([
|
|
1251
|
+
zod.null(),
|
|
1252
|
+
zod.strictObject({
|
|
1253
|
+
amount: zod.number(),
|
|
1254
|
+
currency: zod.string(),
|
|
1255
|
+
startAt: zod.iso.datetime({}),
|
|
1256
|
+
endAt: zod.iso.datetime({})
|
|
1257
|
+
})
|
|
1258
|
+
]).optional(),
|
|
1259
|
+
wholesale: zod.array(
|
|
1260
|
+
zod.strictObject({
|
|
1261
|
+
minQty: zod.number(),
|
|
1262
|
+
amount: zod.number(),
|
|
1263
|
+
currency: zod.string()
|
|
1264
|
+
})
|
|
1265
|
+
).nullish()
|
|
1266
|
+
})
|
|
1267
|
+
})
|
|
1268
|
+
)
|
|
1269
|
+
});
|
|
1270
|
+
var getCatalogItemParams = zod.strictObject({
|
|
1271
|
+
id: zod.uuid()
|
|
1272
|
+
});
|
|
1273
|
+
var getCatalogItemResponse = zod.strictObject({
|
|
1274
|
+
id: zod.uuid(),
|
|
1275
|
+
categoryId: zod.uuid(),
|
|
1276
|
+
name: zod.string(),
|
|
1277
|
+
slug: zod.string(),
|
|
1278
|
+
status: zod.string(),
|
|
1279
|
+
classification: zod.string(),
|
|
1280
|
+
variants: zod.array(
|
|
1281
|
+
zod.strictObject({
|
|
1282
|
+
id: zod.uuid().nullish(),
|
|
1283
|
+
code: zod.string(),
|
|
1284
|
+
itemId: zod.uuid(),
|
|
1285
|
+
multiplier: zod.number(),
|
|
1286
|
+
attributes: zod.array(
|
|
1287
|
+
zod.strictObject({
|
|
1288
|
+
name: zod.string(),
|
|
1289
|
+
value: zod.string()
|
|
1290
|
+
})
|
|
1291
|
+
),
|
|
1292
|
+
weight: zod.strictObject({
|
|
1293
|
+
value: zod.number(),
|
|
1294
|
+
unit: zod.string()
|
|
1295
|
+
}),
|
|
1296
|
+
price: zod.strictObject({
|
|
1297
|
+
baseAmount: zod.number(),
|
|
1298
|
+
baseCurrency: zod.string(),
|
|
1299
|
+
sale: zod.union([
|
|
1300
|
+
zod.null(),
|
|
1301
|
+
zod.strictObject({
|
|
1302
|
+
amount: zod.number(),
|
|
1303
|
+
currency: zod.string(),
|
|
1304
|
+
startAt: zod.iso.datetime({}),
|
|
1305
|
+
endAt: zod.iso.datetime({})
|
|
1306
|
+
})
|
|
1307
|
+
]).optional(),
|
|
1308
|
+
wholesale: zod.array(
|
|
1309
|
+
zod.strictObject({
|
|
1310
|
+
minQty: zod.number(),
|
|
1311
|
+
amount: zod.number(),
|
|
1312
|
+
currency: zod.string()
|
|
1313
|
+
})
|
|
1314
|
+
).nullish()
|
|
1315
|
+
})
|
|
1316
|
+
})
|
|
1317
|
+
)
|
|
1318
|
+
});
|
|
1319
|
+
var deleteCatalogItemParams = zod.strictObject({
|
|
1320
|
+
id: zod.uuid()
|
|
1321
|
+
});
|
|
492
1322
|
var createStockItemsBody = zod.strictObject({
|
|
493
1323
|
name: zod.string(),
|
|
494
1324
|
sku: zod.string(),
|
|
@@ -595,6 +1425,138 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
595
1425
|
hasNextPage: zod.boolean().optional(),
|
|
596
1426
|
hasPreviousPage: zod.boolean().optional()
|
|
597
1427
|
});
|
|
1428
|
+
var getApiIdentityAntiforgeryResponse = zod.strictObject({
|
|
1429
|
+
requestToken: zod.string()
|
|
1430
|
+
});
|
|
1431
|
+
var postApiIdentityLoginBody = zod.strictObject({
|
|
1432
|
+
email: zod.string(),
|
|
1433
|
+
password: zod.string(),
|
|
1434
|
+
twoFactorCode: zod.string().nullable(),
|
|
1435
|
+
twoFactorRecoveryCode: zod.string().nullable()
|
|
1436
|
+
});
|
|
1437
|
+
var postApiIdentityLoginResponse = zod.strictObject({
|
|
1438
|
+
requiresTwoFactor: zod.boolean()
|
|
1439
|
+
});
|
|
1440
|
+
var postApiIdentityForgotPasswordBody = zod.strictObject({
|
|
1441
|
+
email: zod.string()
|
|
1442
|
+
});
|
|
1443
|
+
var postApiIdentityResetPasswordBody = zod.strictObject({
|
|
1444
|
+
email: zod.string(),
|
|
1445
|
+
resetCode: zod.string(),
|
|
1446
|
+
newPassword: zod.string()
|
|
1447
|
+
});
|
|
1448
|
+
var getApiIdentityManage2faResponse = zod.strictObject({
|
|
1449
|
+
sharedKey: zod.string().nullable(),
|
|
1450
|
+
recoveryCodes: zod.array(zod.string()).nullable(),
|
|
1451
|
+
recoveryCodesLeft: zod.number(),
|
|
1452
|
+
isTwoFactorEnabled: zod.boolean(),
|
|
1453
|
+
isMachineRemembered: zod.boolean()
|
|
1454
|
+
});
|
|
1455
|
+
var postApiIdentityManage2faBody = zod.strictObject({
|
|
1456
|
+
enable: zod.boolean().nullable(),
|
|
1457
|
+
resetSharedKey: zod.boolean(),
|
|
1458
|
+
resetRecoveryCodes: zod.boolean(),
|
|
1459
|
+
forgetMachine: zod.boolean(),
|
|
1460
|
+
twoFactorCode: zod.string().nullable(),
|
|
1461
|
+
password: zod.string().nullable()
|
|
1462
|
+
});
|
|
1463
|
+
var postApiIdentityManage2faResponse = zod.strictObject({
|
|
1464
|
+
sharedKey: zod.string().nullable(),
|
|
1465
|
+
recoveryCodes: zod.array(zod.string()).nullable(),
|
|
1466
|
+
recoveryCodesLeft: zod.number(),
|
|
1467
|
+
isTwoFactorEnabled: zod.boolean(),
|
|
1468
|
+
isMachineRemembered: zod.boolean()
|
|
1469
|
+
});
|
|
1470
|
+
var getApiIdentityManageInfoResponse = zod.strictObject({
|
|
1471
|
+
email: zod.string(),
|
|
1472
|
+
isEmailConfirmed: zod.boolean()
|
|
1473
|
+
});
|
|
1474
|
+
var postApiIdentityManageInfoBody = zod.strictObject({
|
|
1475
|
+
newEmail: zod.string().nullable(),
|
|
1476
|
+
newPassword: zod.string().nullable(),
|
|
1477
|
+
oldPassword: zod.string().nullable()
|
|
1478
|
+
});
|
|
1479
|
+
var postApiIdentityManageInfoResponse = zod.strictObject({
|
|
1480
|
+
email: zod.string(),
|
|
1481
|
+
isEmailConfirmed: zod.boolean()
|
|
1482
|
+
});
|
|
1483
|
+
var getApiIdentityAdminRolesResponseItem = zod.strictObject({
|
|
1484
|
+
id: zod.uuid(),
|
|
1485
|
+
name: zod.string(),
|
|
1486
|
+
permissions: zod.array(zod.string())
|
|
1487
|
+
});
|
|
1488
|
+
var getApiIdentityAdminRolesResponse = zod.array(getApiIdentityAdminRolesResponseItem);
|
|
1489
|
+
var postApiIdentityAdminRolesBody = zod.strictObject({
|
|
1490
|
+
name: zod.string()
|
|
1491
|
+
});
|
|
1492
|
+
var getApiIdentityAdminRolesIdParams = zod.strictObject({
|
|
1493
|
+
id: zod.uuid()
|
|
1494
|
+
});
|
|
1495
|
+
var getApiIdentityAdminRolesIdResponse = zod.strictObject({
|
|
1496
|
+
id: zod.uuid(),
|
|
1497
|
+
name: zod.string(),
|
|
1498
|
+
permissions: zod.array(zod.string())
|
|
1499
|
+
});
|
|
1500
|
+
var putApiIdentityAdminRolesIdParams = zod.strictObject({
|
|
1501
|
+
id: zod.uuid()
|
|
1502
|
+
});
|
|
1503
|
+
var putApiIdentityAdminRolesIdBody = zod.strictObject({
|
|
1504
|
+
name: zod.string()
|
|
1505
|
+
});
|
|
1506
|
+
var deleteApiIdentityAdminRolesIdParams = zod.strictObject({
|
|
1507
|
+
id: zod.uuid()
|
|
1508
|
+
});
|
|
1509
|
+
var putApiIdentityAdminRolesIdPermissionsParams = zod.strictObject({
|
|
1510
|
+
id: zod.uuid()
|
|
1511
|
+
});
|
|
1512
|
+
var putApiIdentityAdminRolesIdPermissionsBody = zod.strictObject({
|
|
1513
|
+
codes: zod.array(zod.string())
|
|
1514
|
+
});
|
|
1515
|
+
var getApiIdentityAdminPermissionsResponseItem = zod.strictObject({
|
|
1516
|
+
module: zod.string(),
|
|
1517
|
+
code: zod.string(),
|
|
1518
|
+
description: zod.string()
|
|
1519
|
+
});
|
|
1520
|
+
var getApiIdentityAdminPermissionsResponse = zod.array(
|
|
1521
|
+
getApiIdentityAdminPermissionsResponseItem
|
|
1522
|
+
);
|
|
1523
|
+
var getApiIdentityAdminUsersQueryParams = zod.strictObject({
|
|
1524
|
+
email: zod.coerce.string()
|
|
1525
|
+
});
|
|
1526
|
+
var getApiIdentityAdminUsersResponse = zod.strictObject({
|
|
1527
|
+
id: zod.uuid(),
|
|
1528
|
+
email: zod.string(),
|
|
1529
|
+
isActive: zod.boolean()
|
|
1530
|
+
});
|
|
1531
|
+
var getApiIdentityAdminUsersIdRolesParams = zod.strictObject({
|
|
1532
|
+
id: zod.uuid()
|
|
1533
|
+
});
|
|
1534
|
+
var getApiIdentityAdminUsersIdRolesResponseItem = zod.string();
|
|
1535
|
+
var getApiIdentityAdminUsersIdRolesResponse = zod.array(
|
|
1536
|
+
getApiIdentityAdminUsersIdRolesResponseItem
|
|
1537
|
+
);
|
|
1538
|
+
var putApiIdentityAdminUsersIdRolesParams = zod.strictObject({
|
|
1539
|
+
id: zod.uuid()
|
|
1540
|
+
});
|
|
1541
|
+
var putApiIdentityAdminUsersIdRolesBody = zod.strictObject({
|
|
1542
|
+
roles: zod.array(zod.string())
|
|
1543
|
+
});
|
|
1544
|
+
var getApiIdentityAdminUsersIdPermissionsParams = zod.strictObject({
|
|
1545
|
+
id: zod.uuid()
|
|
1546
|
+
});
|
|
1547
|
+
var getApiIdentityAdminUsersIdPermissionsResponseItem = zod.string();
|
|
1548
|
+
var getApiIdentityAdminUsersIdPermissionsResponse = zod.array(
|
|
1549
|
+
getApiIdentityAdminUsersIdPermissionsResponseItem
|
|
1550
|
+
);
|
|
1551
|
+
var putApiIdentityAdminUsersIdActiveParams = zod.strictObject({
|
|
1552
|
+
id: zod.uuid()
|
|
1553
|
+
});
|
|
1554
|
+
var putApiIdentityAdminUsersIdActiveBody = zod.strictObject({
|
|
1555
|
+
isActive: zod.boolean()
|
|
1556
|
+
});
|
|
1557
|
+
var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
1558
|
+
id: zod.uuid()
|
|
1559
|
+
});
|
|
598
1560
|
// Annotate the CommonJS export names for ESM import in node:
|
|
599
1561
|
0 && (module.exports = {
|
|
600
1562
|
ConsumeBatchSourceType,
|
|
@@ -604,17 +1566,75 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
604
1566
|
consumeBatchParams,
|
|
605
1567
|
createBatch,
|
|
606
1568
|
createBatchBody,
|
|
1569
|
+
createCatalogItem,
|
|
1570
|
+
createCatalogItemBody,
|
|
607
1571
|
createStockItems,
|
|
608
1572
|
createStockItemsBody,
|
|
609
1573
|
createWarehouse,
|
|
610
1574
|
createWarehouseBody,
|
|
1575
|
+
deleteApiIdentityAdminRolesId,
|
|
1576
|
+
deleteApiIdentityAdminRolesIdParams,
|
|
1577
|
+
deleteCatalogItem,
|
|
1578
|
+
deleteCatalogItemParams,
|
|
611
1579
|
deleteWarehouse,
|
|
612
1580
|
deleteWarehouseParams,
|
|
1581
|
+
getApiIdentityAdminPermissions,
|
|
1582
|
+
getApiIdentityAdminPermissionsResponse,
|
|
1583
|
+
getApiIdentityAdminPermissionsResponseItem,
|
|
1584
|
+
getApiIdentityAdminRoles,
|
|
1585
|
+
getApiIdentityAdminRolesId,
|
|
1586
|
+
getApiIdentityAdminRolesIdParams,
|
|
1587
|
+
getApiIdentityAdminRolesIdResponse,
|
|
1588
|
+
getApiIdentityAdminRolesResponse,
|
|
1589
|
+
getApiIdentityAdminRolesResponseItem,
|
|
1590
|
+
getApiIdentityAdminUsers,
|
|
1591
|
+
getApiIdentityAdminUsersIdPermissions,
|
|
1592
|
+
getApiIdentityAdminUsersIdPermissionsParams,
|
|
1593
|
+
getApiIdentityAdminUsersIdPermissionsResponse,
|
|
1594
|
+
getApiIdentityAdminUsersIdPermissionsResponseItem,
|
|
1595
|
+
getApiIdentityAdminUsersIdRoles,
|
|
1596
|
+
getApiIdentityAdminUsersIdRolesParams,
|
|
1597
|
+
getApiIdentityAdminUsersIdRolesResponse,
|
|
1598
|
+
getApiIdentityAdminUsersIdRolesResponseItem,
|
|
1599
|
+
getApiIdentityAdminUsersQueryParams,
|
|
1600
|
+
getApiIdentityAdminUsersResponse,
|
|
1601
|
+
getApiIdentityAntiforgery,
|
|
1602
|
+
getApiIdentityAntiforgeryResponse,
|
|
1603
|
+
getApiIdentityManage2fa,
|
|
1604
|
+
getApiIdentityManage2faResponse,
|
|
1605
|
+
getApiIdentityManageInfo,
|
|
1606
|
+
getApiIdentityManageInfoResponse,
|
|
1607
|
+
getCatalogItem,
|
|
1608
|
+
getCatalogItemParams,
|
|
1609
|
+
getCatalogItemResponse,
|
|
613
1610
|
getConsumeBatchMutationOptions,
|
|
614
1611
|
getCreateBatchMutationOptions,
|
|
1612
|
+
getCreateCatalogItemMutationOptions,
|
|
615
1613
|
getCreateStockItemsMutationOptions,
|
|
616
1614
|
getCreateWarehouseMutationOptions,
|
|
1615
|
+
getDeleteApiIdentityAdminRolesIdMutationOptions,
|
|
1616
|
+
getDeleteCatalogItemMutationOptions,
|
|
617
1617
|
getDeleteWarehouseMutationOptions,
|
|
1618
|
+
getGetApiIdentityAdminPermissionsQueryKey,
|
|
1619
|
+
getGetApiIdentityAdminPermissionsQueryOptions,
|
|
1620
|
+
getGetApiIdentityAdminRolesIdQueryKey,
|
|
1621
|
+
getGetApiIdentityAdminRolesIdQueryOptions,
|
|
1622
|
+
getGetApiIdentityAdminRolesQueryKey,
|
|
1623
|
+
getGetApiIdentityAdminRolesQueryOptions,
|
|
1624
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryKey,
|
|
1625
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryOptions,
|
|
1626
|
+
getGetApiIdentityAdminUsersIdRolesQueryKey,
|
|
1627
|
+
getGetApiIdentityAdminUsersIdRolesQueryOptions,
|
|
1628
|
+
getGetApiIdentityAdminUsersQueryKey,
|
|
1629
|
+
getGetApiIdentityAdminUsersQueryOptions,
|
|
1630
|
+
getGetApiIdentityAntiforgeryQueryKey,
|
|
1631
|
+
getGetApiIdentityAntiforgeryQueryOptions,
|
|
1632
|
+
getGetApiIdentityManage2faQueryKey,
|
|
1633
|
+
getGetApiIdentityManage2faQueryOptions,
|
|
1634
|
+
getGetApiIdentityManageInfoQueryKey,
|
|
1635
|
+
getGetApiIdentityManageInfoQueryOptions,
|
|
1636
|
+
getGetCatalogItemQueryKey,
|
|
1637
|
+
getGetCatalogItemQueryOptions,
|
|
618
1638
|
getGetHealthQueryKey,
|
|
619
1639
|
getGetHealthQueryOptions,
|
|
620
1640
|
getGetWarehouseByIdQueryKey,
|
|
@@ -622,15 +1642,30 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
622
1642
|
getGetWarehouseOptionsQueryKey,
|
|
623
1643
|
getGetWarehouseOptionsQueryOptions,
|
|
624
1644
|
getHealth,
|
|
1645
|
+
getListCatalogItemsQueryKey,
|
|
1646
|
+
getListCatalogItemsQueryOptions,
|
|
625
1647
|
getListStockItemsQueryKey,
|
|
626
1648
|
getListStockItemsQueryOptions,
|
|
627
1649
|
getListStockMovementsQueryKey,
|
|
628
1650
|
getListStockMovementsQueryOptions,
|
|
629
1651
|
getListWarehousesQueryKey,
|
|
630
1652
|
getListWarehousesQueryOptions,
|
|
1653
|
+
getPostApiIdentityAdminRolesMutationOptions,
|
|
1654
|
+
getPostApiIdentityAdminUsersIdLogoutMutationOptions,
|
|
1655
|
+
getPostApiIdentityForgotPasswordMutationOptions,
|
|
1656
|
+
getPostApiIdentityLoginMutationOptions,
|
|
1657
|
+
getPostApiIdentityLogoutMutationOptions,
|
|
1658
|
+
getPostApiIdentityManage2faMutationOptions,
|
|
1659
|
+
getPostApiIdentityManageInfoMutationOptions,
|
|
1660
|
+
getPostApiIdentityResetPasswordMutationOptions,
|
|
1661
|
+
getPutApiIdentityAdminRolesIdMutationOptions,
|
|
1662
|
+
getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
|
|
1663
|
+
getPutApiIdentityAdminUsersIdActiveMutationOptions,
|
|
1664
|
+
getPutApiIdentityAdminUsersIdRolesMutationOptions,
|
|
631
1665
|
getSearchAddressesQueryKey,
|
|
632
1666
|
getSearchAddressesQueryOptions,
|
|
633
1667
|
getToggleWarehouseStatusMutationOptions,
|
|
1668
|
+
getUpdateCatalogItemMutationOptions,
|
|
634
1669
|
getUpdateWarehouseMutationOptions,
|
|
635
1670
|
getWarehouseById,
|
|
636
1671
|
getWarehouseByIdParams,
|
|
@@ -638,6 +1673,11 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
638
1673
|
getWarehouseOptions,
|
|
639
1674
|
getWarehouseOptionsResponse,
|
|
640
1675
|
getWarehouseOptionsResponseItem,
|
|
1676
|
+
listCatalogItems,
|
|
1677
|
+
listCatalogItemsQueryPageDefault,
|
|
1678
|
+
listCatalogItemsQueryPageSizeDefault,
|
|
1679
|
+
listCatalogItemsQueryParams,
|
|
1680
|
+
listCatalogItemsResponse,
|
|
641
1681
|
listStockItems,
|
|
642
1682
|
listStockItemsQueryDescendingDefault,
|
|
643
1683
|
listStockItemsQueryPageDefault,
|
|
@@ -655,6 +1695,36 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
655
1695
|
listWarehousesQueryPageSizeDefault,
|
|
656
1696
|
listWarehousesQueryParams,
|
|
657
1697
|
listWarehousesResponse,
|
|
1698
|
+
postApiIdentityAdminRoles,
|
|
1699
|
+
postApiIdentityAdminRolesBody,
|
|
1700
|
+
postApiIdentityAdminUsersIdLogout,
|
|
1701
|
+
postApiIdentityAdminUsersIdLogoutParams,
|
|
1702
|
+
postApiIdentityForgotPassword,
|
|
1703
|
+
postApiIdentityForgotPasswordBody,
|
|
1704
|
+
postApiIdentityLogin,
|
|
1705
|
+
postApiIdentityLoginBody,
|
|
1706
|
+
postApiIdentityLoginResponse,
|
|
1707
|
+
postApiIdentityLogout,
|
|
1708
|
+
postApiIdentityManage2fa,
|
|
1709
|
+
postApiIdentityManage2faBody,
|
|
1710
|
+
postApiIdentityManage2faResponse,
|
|
1711
|
+
postApiIdentityManageInfo,
|
|
1712
|
+
postApiIdentityManageInfoBody,
|
|
1713
|
+
postApiIdentityManageInfoResponse,
|
|
1714
|
+
postApiIdentityResetPassword,
|
|
1715
|
+
postApiIdentityResetPasswordBody,
|
|
1716
|
+
putApiIdentityAdminRolesId,
|
|
1717
|
+
putApiIdentityAdminRolesIdBody,
|
|
1718
|
+
putApiIdentityAdminRolesIdParams,
|
|
1719
|
+
putApiIdentityAdminRolesIdPermissions,
|
|
1720
|
+
putApiIdentityAdminRolesIdPermissionsBody,
|
|
1721
|
+
putApiIdentityAdminRolesIdPermissionsParams,
|
|
1722
|
+
putApiIdentityAdminUsersIdActive,
|
|
1723
|
+
putApiIdentityAdminUsersIdActiveBody,
|
|
1724
|
+
putApiIdentityAdminUsersIdActiveParams,
|
|
1725
|
+
putApiIdentityAdminUsersIdRoles,
|
|
1726
|
+
putApiIdentityAdminUsersIdRolesBody,
|
|
1727
|
+
putApiIdentityAdminUsersIdRolesParams,
|
|
658
1728
|
searchAddresses,
|
|
659
1729
|
searchAddressesQueryLimitDefault,
|
|
660
1730
|
searchAddressesQueryParams,
|
|
@@ -662,22 +1732,53 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
662
1732
|
searchAddressesResponseItem,
|
|
663
1733
|
toggleWarehouseStatus,
|
|
664
1734
|
toggleWarehouseStatusParams,
|
|
1735
|
+
updateCatalogItem,
|
|
1736
|
+
updateCatalogItemBody,
|
|
1737
|
+
updateCatalogItemParams,
|
|
1738
|
+
updateCatalogItemResponse,
|
|
665
1739
|
updateWarehouse,
|
|
666
1740
|
updateWarehouseBody,
|
|
667
1741
|
updateWarehouseParams,
|
|
668
1742
|
useConsumeBatch,
|
|
669
1743
|
useCreateBatch,
|
|
1744
|
+
useCreateCatalogItem,
|
|
670
1745
|
useCreateStockItems,
|
|
671
1746
|
useCreateWarehouse,
|
|
1747
|
+
useDeleteApiIdentityAdminRolesId,
|
|
1748
|
+
useDeleteCatalogItem,
|
|
672
1749
|
useDeleteWarehouse,
|
|
1750
|
+
useGetApiIdentityAdminPermissions,
|
|
1751
|
+
useGetApiIdentityAdminRoles,
|
|
1752
|
+
useGetApiIdentityAdminRolesId,
|
|
1753
|
+
useGetApiIdentityAdminUsers,
|
|
1754
|
+
useGetApiIdentityAdminUsersIdPermissions,
|
|
1755
|
+
useGetApiIdentityAdminUsersIdRoles,
|
|
1756
|
+
useGetApiIdentityAntiforgery,
|
|
1757
|
+
useGetApiIdentityManage2fa,
|
|
1758
|
+
useGetApiIdentityManageInfo,
|
|
1759
|
+
useGetCatalogItem,
|
|
673
1760
|
useGetHealth,
|
|
674
1761
|
useGetWarehouseById,
|
|
675
1762
|
useGetWarehouseOptions,
|
|
1763
|
+
useListCatalogItems,
|
|
676
1764
|
useListStockItems,
|
|
677
1765
|
useListStockMovements,
|
|
678
1766
|
useListWarehouses,
|
|
1767
|
+
usePostApiIdentityAdminRoles,
|
|
1768
|
+
usePostApiIdentityAdminUsersIdLogout,
|
|
1769
|
+
usePostApiIdentityForgotPassword,
|
|
1770
|
+
usePostApiIdentityLogin,
|
|
1771
|
+
usePostApiIdentityLogout,
|
|
1772
|
+
usePostApiIdentityManage2fa,
|
|
1773
|
+
usePostApiIdentityManageInfo,
|
|
1774
|
+
usePostApiIdentityResetPassword,
|
|
1775
|
+
usePutApiIdentityAdminRolesId,
|
|
1776
|
+
usePutApiIdentityAdminRolesIdPermissions,
|
|
1777
|
+
usePutApiIdentityAdminUsersIdActive,
|
|
1778
|
+
usePutApiIdentityAdminUsersIdRoles,
|
|
679
1779
|
useSearchAddresses,
|
|
680
1780
|
useToggleWarehouseStatus,
|
|
1781
|
+
useUpdateCatalogItem,
|
|
681
1782
|
useUpdateWarehouse
|
|
682
1783
|
});
|
|
683
1784
|
//# sourceMappingURL=index.js.map
|