@arascreative/erp-api-client 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +736 -1
- package/dist/index.d.ts +736 -1
- package/dist/index.js +742 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +631 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41,13 +41,60 @@ __export(index_exports, {
|
|
|
41
41
|
createStockItemsBody: () => createStockItemsBody,
|
|
42
42
|
createWarehouse: () => createWarehouse,
|
|
43
43
|
createWarehouseBody: () => createWarehouseBody,
|
|
44
|
+
deleteApiIdentityAdminRolesId: () => deleteApiIdentityAdminRolesId,
|
|
45
|
+
deleteApiIdentityAdminRolesIdParams: () => deleteApiIdentityAdminRolesIdParams,
|
|
44
46
|
deleteWarehouse: () => deleteWarehouse,
|
|
45
47
|
deleteWarehouseParams: () => deleteWarehouseParams,
|
|
48
|
+
getApiIdentityAdminPermissions: () => getApiIdentityAdminPermissions,
|
|
49
|
+
getApiIdentityAdminPermissionsResponse: () => getApiIdentityAdminPermissionsResponse,
|
|
50
|
+
getApiIdentityAdminPermissionsResponseItem: () => getApiIdentityAdminPermissionsResponseItem,
|
|
51
|
+
getApiIdentityAdminRoles: () => getApiIdentityAdminRoles,
|
|
52
|
+
getApiIdentityAdminRolesId: () => getApiIdentityAdminRolesId,
|
|
53
|
+
getApiIdentityAdminRolesIdParams: () => getApiIdentityAdminRolesIdParams,
|
|
54
|
+
getApiIdentityAdminRolesIdResponse: () => getApiIdentityAdminRolesIdResponse,
|
|
55
|
+
getApiIdentityAdminRolesResponse: () => getApiIdentityAdminRolesResponse,
|
|
56
|
+
getApiIdentityAdminRolesResponseItem: () => getApiIdentityAdminRolesResponseItem,
|
|
57
|
+
getApiIdentityAdminUsers: () => getApiIdentityAdminUsers,
|
|
58
|
+
getApiIdentityAdminUsersIdPermissions: () => getApiIdentityAdminUsersIdPermissions,
|
|
59
|
+
getApiIdentityAdminUsersIdPermissionsParams: () => getApiIdentityAdminUsersIdPermissionsParams,
|
|
60
|
+
getApiIdentityAdminUsersIdPermissionsResponse: () => getApiIdentityAdminUsersIdPermissionsResponse,
|
|
61
|
+
getApiIdentityAdminUsersIdPermissionsResponseItem: () => getApiIdentityAdminUsersIdPermissionsResponseItem,
|
|
62
|
+
getApiIdentityAdminUsersIdRoles: () => getApiIdentityAdminUsersIdRoles,
|
|
63
|
+
getApiIdentityAdminUsersIdRolesParams: () => getApiIdentityAdminUsersIdRolesParams,
|
|
64
|
+
getApiIdentityAdminUsersIdRolesResponse: () => getApiIdentityAdminUsersIdRolesResponse,
|
|
65
|
+
getApiIdentityAdminUsersIdRolesResponseItem: () => getApiIdentityAdminUsersIdRolesResponseItem,
|
|
66
|
+
getApiIdentityAdminUsersQueryParams: () => getApiIdentityAdminUsersQueryParams,
|
|
67
|
+
getApiIdentityAdminUsersResponse: () => getApiIdentityAdminUsersResponse,
|
|
68
|
+
getApiIdentityAntiforgery: () => getApiIdentityAntiforgery,
|
|
69
|
+
getApiIdentityAntiforgeryResponse: () => getApiIdentityAntiforgeryResponse,
|
|
70
|
+
getApiIdentityManage2fa: () => getApiIdentityManage2fa,
|
|
71
|
+
getApiIdentityManage2faResponse: () => getApiIdentityManage2faResponse,
|
|
72
|
+
getApiIdentityManageInfo: () => getApiIdentityManageInfo,
|
|
73
|
+
getApiIdentityManageInfoResponse: () => getApiIdentityManageInfoResponse,
|
|
46
74
|
getConsumeBatchMutationOptions: () => getConsumeBatchMutationOptions,
|
|
47
75
|
getCreateBatchMutationOptions: () => getCreateBatchMutationOptions,
|
|
48
76
|
getCreateStockItemsMutationOptions: () => getCreateStockItemsMutationOptions,
|
|
49
77
|
getCreateWarehouseMutationOptions: () => getCreateWarehouseMutationOptions,
|
|
78
|
+
getDeleteApiIdentityAdminRolesIdMutationOptions: () => getDeleteApiIdentityAdminRolesIdMutationOptions,
|
|
50
79
|
getDeleteWarehouseMutationOptions: () => getDeleteWarehouseMutationOptions,
|
|
80
|
+
getGetApiIdentityAdminPermissionsQueryKey: () => getGetApiIdentityAdminPermissionsQueryKey,
|
|
81
|
+
getGetApiIdentityAdminPermissionsQueryOptions: () => getGetApiIdentityAdminPermissionsQueryOptions,
|
|
82
|
+
getGetApiIdentityAdminRolesIdQueryKey: () => getGetApiIdentityAdminRolesIdQueryKey,
|
|
83
|
+
getGetApiIdentityAdminRolesIdQueryOptions: () => getGetApiIdentityAdminRolesIdQueryOptions,
|
|
84
|
+
getGetApiIdentityAdminRolesQueryKey: () => getGetApiIdentityAdminRolesQueryKey,
|
|
85
|
+
getGetApiIdentityAdminRolesQueryOptions: () => getGetApiIdentityAdminRolesQueryOptions,
|
|
86
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryKey: () => getGetApiIdentityAdminUsersIdPermissionsQueryKey,
|
|
87
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryOptions: () => getGetApiIdentityAdminUsersIdPermissionsQueryOptions,
|
|
88
|
+
getGetApiIdentityAdminUsersIdRolesQueryKey: () => getGetApiIdentityAdminUsersIdRolesQueryKey,
|
|
89
|
+
getGetApiIdentityAdminUsersIdRolesQueryOptions: () => getGetApiIdentityAdminUsersIdRolesQueryOptions,
|
|
90
|
+
getGetApiIdentityAdminUsersQueryKey: () => getGetApiIdentityAdminUsersQueryKey,
|
|
91
|
+
getGetApiIdentityAdminUsersQueryOptions: () => getGetApiIdentityAdminUsersQueryOptions,
|
|
92
|
+
getGetApiIdentityAntiforgeryQueryKey: () => getGetApiIdentityAntiforgeryQueryKey,
|
|
93
|
+
getGetApiIdentityAntiforgeryQueryOptions: () => getGetApiIdentityAntiforgeryQueryOptions,
|
|
94
|
+
getGetApiIdentityManage2faQueryKey: () => getGetApiIdentityManage2faQueryKey,
|
|
95
|
+
getGetApiIdentityManage2faQueryOptions: () => getGetApiIdentityManage2faQueryOptions,
|
|
96
|
+
getGetApiIdentityManageInfoQueryKey: () => getGetApiIdentityManageInfoQueryKey,
|
|
97
|
+
getGetApiIdentityManageInfoQueryOptions: () => getGetApiIdentityManageInfoQueryOptions,
|
|
51
98
|
getGetHealthQueryKey: () => getGetHealthQueryKey,
|
|
52
99
|
getGetHealthQueryOptions: () => getGetHealthQueryOptions,
|
|
53
100
|
getGetWarehouseByIdQueryKey: () => getGetWarehouseByIdQueryKey,
|
|
@@ -61,6 +108,18 @@ __export(index_exports, {
|
|
|
61
108
|
getListStockMovementsQueryOptions: () => getListStockMovementsQueryOptions,
|
|
62
109
|
getListWarehousesQueryKey: () => getListWarehousesQueryKey,
|
|
63
110
|
getListWarehousesQueryOptions: () => getListWarehousesQueryOptions,
|
|
111
|
+
getPostApiIdentityAdminRolesMutationOptions: () => getPostApiIdentityAdminRolesMutationOptions,
|
|
112
|
+
getPostApiIdentityAdminUsersIdLogoutMutationOptions: () => getPostApiIdentityAdminUsersIdLogoutMutationOptions,
|
|
113
|
+
getPostApiIdentityForgotPasswordMutationOptions: () => getPostApiIdentityForgotPasswordMutationOptions,
|
|
114
|
+
getPostApiIdentityLoginMutationOptions: () => getPostApiIdentityLoginMutationOptions,
|
|
115
|
+
getPostApiIdentityLogoutMutationOptions: () => getPostApiIdentityLogoutMutationOptions,
|
|
116
|
+
getPostApiIdentityManage2faMutationOptions: () => getPostApiIdentityManage2faMutationOptions,
|
|
117
|
+
getPostApiIdentityManageInfoMutationOptions: () => getPostApiIdentityManageInfoMutationOptions,
|
|
118
|
+
getPostApiIdentityResetPasswordMutationOptions: () => getPostApiIdentityResetPasswordMutationOptions,
|
|
119
|
+
getPutApiIdentityAdminRolesIdMutationOptions: () => getPutApiIdentityAdminRolesIdMutationOptions,
|
|
120
|
+
getPutApiIdentityAdminRolesIdPermissionsMutationOptions: () => getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
|
|
121
|
+
getPutApiIdentityAdminUsersIdActiveMutationOptions: () => getPutApiIdentityAdminUsersIdActiveMutationOptions,
|
|
122
|
+
getPutApiIdentityAdminUsersIdRolesMutationOptions: () => getPutApiIdentityAdminUsersIdRolesMutationOptions,
|
|
64
123
|
getSearchAddressesQueryKey: () => getSearchAddressesQueryKey,
|
|
65
124
|
getSearchAddressesQueryOptions: () => getSearchAddressesQueryOptions,
|
|
66
125
|
getToggleWarehouseStatusMutationOptions: () => getToggleWarehouseStatusMutationOptions,
|
|
@@ -88,6 +147,36 @@ __export(index_exports, {
|
|
|
88
147
|
listWarehousesQueryPageSizeDefault: () => listWarehousesQueryPageSizeDefault,
|
|
89
148
|
listWarehousesQueryParams: () => listWarehousesQueryParams,
|
|
90
149
|
listWarehousesResponse: () => listWarehousesResponse,
|
|
150
|
+
postApiIdentityAdminRoles: () => postApiIdentityAdminRoles,
|
|
151
|
+
postApiIdentityAdminRolesBody: () => postApiIdentityAdminRolesBody,
|
|
152
|
+
postApiIdentityAdminUsersIdLogout: () => postApiIdentityAdminUsersIdLogout,
|
|
153
|
+
postApiIdentityAdminUsersIdLogoutParams: () => postApiIdentityAdminUsersIdLogoutParams,
|
|
154
|
+
postApiIdentityForgotPassword: () => postApiIdentityForgotPassword,
|
|
155
|
+
postApiIdentityForgotPasswordBody: () => postApiIdentityForgotPasswordBody,
|
|
156
|
+
postApiIdentityLogin: () => postApiIdentityLogin,
|
|
157
|
+
postApiIdentityLoginBody: () => postApiIdentityLoginBody,
|
|
158
|
+
postApiIdentityLoginResponse: () => postApiIdentityLoginResponse,
|
|
159
|
+
postApiIdentityLogout: () => postApiIdentityLogout,
|
|
160
|
+
postApiIdentityManage2fa: () => postApiIdentityManage2fa,
|
|
161
|
+
postApiIdentityManage2faBody: () => postApiIdentityManage2faBody,
|
|
162
|
+
postApiIdentityManage2faResponse: () => postApiIdentityManage2faResponse,
|
|
163
|
+
postApiIdentityManageInfo: () => postApiIdentityManageInfo,
|
|
164
|
+
postApiIdentityManageInfoBody: () => postApiIdentityManageInfoBody,
|
|
165
|
+
postApiIdentityManageInfoResponse: () => postApiIdentityManageInfoResponse,
|
|
166
|
+
postApiIdentityResetPassword: () => postApiIdentityResetPassword,
|
|
167
|
+
postApiIdentityResetPasswordBody: () => postApiIdentityResetPasswordBody,
|
|
168
|
+
putApiIdentityAdminRolesId: () => putApiIdentityAdminRolesId,
|
|
169
|
+
putApiIdentityAdminRolesIdBody: () => putApiIdentityAdminRolesIdBody,
|
|
170
|
+
putApiIdentityAdminRolesIdParams: () => putApiIdentityAdminRolesIdParams,
|
|
171
|
+
putApiIdentityAdminRolesIdPermissions: () => putApiIdentityAdminRolesIdPermissions,
|
|
172
|
+
putApiIdentityAdminRolesIdPermissionsBody: () => putApiIdentityAdminRolesIdPermissionsBody,
|
|
173
|
+
putApiIdentityAdminRolesIdPermissionsParams: () => putApiIdentityAdminRolesIdPermissionsParams,
|
|
174
|
+
putApiIdentityAdminUsersIdActive: () => putApiIdentityAdminUsersIdActive,
|
|
175
|
+
putApiIdentityAdminUsersIdActiveBody: () => putApiIdentityAdminUsersIdActiveBody,
|
|
176
|
+
putApiIdentityAdminUsersIdActiveParams: () => putApiIdentityAdminUsersIdActiveParams,
|
|
177
|
+
putApiIdentityAdminUsersIdRoles: () => putApiIdentityAdminUsersIdRoles,
|
|
178
|
+
putApiIdentityAdminUsersIdRolesBody: () => putApiIdentityAdminUsersIdRolesBody,
|
|
179
|
+
putApiIdentityAdminUsersIdRolesParams: () => putApiIdentityAdminUsersIdRolesParams,
|
|
91
180
|
searchAddresses: () => searchAddresses,
|
|
92
181
|
searchAddressesQueryLimitDefault: () => searchAddressesQueryLimitDefault,
|
|
93
182
|
searchAddressesQueryParams: () => searchAddressesQueryParams,
|
|
@@ -102,13 +191,35 @@ __export(index_exports, {
|
|
|
102
191
|
useCreateBatch: () => useCreateBatch,
|
|
103
192
|
useCreateStockItems: () => useCreateStockItems,
|
|
104
193
|
useCreateWarehouse: () => useCreateWarehouse,
|
|
194
|
+
useDeleteApiIdentityAdminRolesId: () => useDeleteApiIdentityAdminRolesId,
|
|
105
195
|
useDeleteWarehouse: () => useDeleteWarehouse,
|
|
196
|
+
useGetApiIdentityAdminPermissions: () => useGetApiIdentityAdminPermissions,
|
|
197
|
+
useGetApiIdentityAdminRoles: () => useGetApiIdentityAdminRoles,
|
|
198
|
+
useGetApiIdentityAdminRolesId: () => useGetApiIdentityAdminRolesId,
|
|
199
|
+
useGetApiIdentityAdminUsers: () => useGetApiIdentityAdminUsers,
|
|
200
|
+
useGetApiIdentityAdminUsersIdPermissions: () => useGetApiIdentityAdminUsersIdPermissions,
|
|
201
|
+
useGetApiIdentityAdminUsersIdRoles: () => useGetApiIdentityAdminUsersIdRoles,
|
|
202
|
+
useGetApiIdentityAntiforgery: () => useGetApiIdentityAntiforgery,
|
|
203
|
+
useGetApiIdentityManage2fa: () => useGetApiIdentityManage2fa,
|
|
204
|
+
useGetApiIdentityManageInfo: () => useGetApiIdentityManageInfo,
|
|
106
205
|
useGetHealth: () => useGetHealth,
|
|
107
206
|
useGetWarehouseById: () => useGetWarehouseById,
|
|
108
207
|
useGetWarehouseOptions: () => useGetWarehouseOptions,
|
|
109
208
|
useListStockItems: () => useListStockItems,
|
|
110
209
|
useListStockMovements: () => useListStockMovements,
|
|
111
210
|
useListWarehouses: () => useListWarehouses,
|
|
211
|
+
usePostApiIdentityAdminRoles: () => usePostApiIdentityAdminRoles,
|
|
212
|
+
usePostApiIdentityAdminUsersIdLogout: () => usePostApiIdentityAdminUsersIdLogout,
|
|
213
|
+
usePostApiIdentityForgotPassword: () => usePostApiIdentityForgotPassword,
|
|
214
|
+
usePostApiIdentityLogin: () => usePostApiIdentityLogin,
|
|
215
|
+
usePostApiIdentityLogout: () => usePostApiIdentityLogout,
|
|
216
|
+
usePostApiIdentityManage2fa: () => usePostApiIdentityManage2fa,
|
|
217
|
+
usePostApiIdentityManageInfo: () => usePostApiIdentityManageInfo,
|
|
218
|
+
usePostApiIdentityResetPassword: () => usePostApiIdentityResetPassword,
|
|
219
|
+
usePutApiIdentityAdminRolesId: () => usePutApiIdentityAdminRolesId,
|
|
220
|
+
usePutApiIdentityAdminRolesIdPermissions: () => usePutApiIdentityAdminRolesIdPermissions,
|
|
221
|
+
usePutApiIdentityAdminUsersIdActive: () => usePutApiIdentityAdminUsersIdActive,
|
|
222
|
+
usePutApiIdentityAdminUsersIdRoles: () => usePutApiIdentityAdminUsersIdRoles,
|
|
112
223
|
useSearchAddresses: () => useSearchAddresses,
|
|
113
224
|
useToggleWarehouseStatus: () => useToggleWarehouseStatus,
|
|
114
225
|
useUpdateWarehouse: () => useUpdateWarehouse
|
|
@@ -381,6 +492,394 @@ function useListStockMovements(params, options, queryClient) {
|
|
|
381
492
|
query.queryKey = queryOptions.queryKey;
|
|
382
493
|
return query;
|
|
383
494
|
}
|
|
495
|
+
var getApiIdentityAntiforgery = (options) => {
|
|
496
|
+
return import_axios.default.get(`/api/identity/antiforgery`, options);
|
|
497
|
+
};
|
|
498
|
+
var getGetApiIdentityAntiforgeryQueryKey = () => {
|
|
499
|
+
return [`/api/identity/antiforgery`];
|
|
500
|
+
};
|
|
501
|
+
var getGetApiIdentityAntiforgeryQueryOptions = (options) => {
|
|
502
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
503
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAntiforgeryQueryKey();
|
|
504
|
+
const queryFn = ({
|
|
505
|
+
signal
|
|
506
|
+
}) => getApiIdentityAntiforgery({ signal, ...axiosOptions });
|
|
507
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
508
|
+
};
|
|
509
|
+
function useGetApiIdentityAntiforgery(options, queryClient) {
|
|
510
|
+
const queryOptions = getGetApiIdentityAntiforgeryQueryOptions(options);
|
|
511
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
512
|
+
query.queryKey = queryOptions.queryKey;
|
|
513
|
+
return query;
|
|
514
|
+
}
|
|
515
|
+
var postApiIdentityLogin = (loginRequest, options) => {
|
|
516
|
+
return import_axios.default.post(`/api/identity/login`, loginRequest, options);
|
|
517
|
+
};
|
|
518
|
+
var getPostApiIdentityLoginMutationOptions = (options) => {
|
|
519
|
+
const mutationKey = ["postApiIdentityLogin"];
|
|
520
|
+
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 };
|
|
521
|
+
const mutationFn = (props) => {
|
|
522
|
+
const { data } = props ?? {};
|
|
523
|
+
return postApiIdentityLogin(data, axiosOptions);
|
|
524
|
+
};
|
|
525
|
+
return { mutationFn, ...mutationOptions };
|
|
526
|
+
};
|
|
527
|
+
var usePostApiIdentityLogin = (options, queryClient) => {
|
|
528
|
+
const mutationOptions = getPostApiIdentityLoginMutationOptions(options);
|
|
529
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
530
|
+
};
|
|
531
|
+
var postApiIdentityLogout = (options) => {
|
|
532
|
+
return import_axios.default.post(`/api/identity/logout`, void 0, options);
|
|
533
|
+
};
|
|
534
|
+
var getPostApiIdentityLogoutMutationOptions = (options) => {
|
|
535
|
+
const mutationKey = ["postApiIdentityLogout"];
|
|
536
|
+
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 };
|
|
537
|
+
const mutationFn = () => {
|
|
538
|
+
return postApiIdentityLogout(axiosOptions);
|
|
539
|
+
};
|
|
540
|
+
return { mutationFn, ...mutationOptions };
|
|
541
|
+
};
|
|
542
|
+
var usePostApiIdentityLogout = (options, queryClient) => {
|
|
543
|
+
const mutationOptions = getPostApiIdentityLogoutMutationOptions(options);
|
|
544
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
545
|
+
};
|
|
546
|
+
var postApiIdentityForgotPassword = (emailRequest, options) => {
|
|
547
|
+
return import_axios.default.post(`/api/identity/forgotPassword`, emailRequest, options);
|
|
548
|
+
};
|
|
549
|
+
var getPostApiIdentityForgotPasswordMutationOptions = (options) => {
|
|
550
|
+
const mutationKey = ["postApiIdentityForgotPassword"];
|
|
551
|
+
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 };
|
|
552
|
+
const mutationFn = (props) => {
|
|
553
|
+
const { data } = props ?? {};
|
|
554
|
+
return postApiIdentityForgotPassword(data, axiosOptions);
|
|
555
|
+
};
|
|
556
|
+
return { mutationFn, ...mutationOptions };
|
|
557
|
+
};
|
|
558
|
+
var usePostApiIdentityForgotPassword = (options, queryClient) => {
|
|
559
|
+
const mutationOptions = getPostApiIdentityForgotPasswordMutationOptions(options);
|
|
560
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
561
|
+
};
|
|
562
|
+
var postApiIdentityResetPassword = (resetPasswordRequest, options) => {
|
|
563
|
+
return import_axios.default.post(`/api/identity/resetPassword`, resetPasswordRequest, options);
|
|
564
|
+
};
|
|
565
|
+
var getPostApiIdentityResetPasswordMutationOptions = (options) => {
|
|
566
|
+
const mutationKey = ["postApiIdentityResetPassword"];
|
|
567
|
+
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 };
|
|
568
|
+
const mutationFn = (props) => {
|
|
569
|
+
const { data } = props ?? {};
|
|
570
|
+
return postApiIdentityResetPassword(data, axiosOptions);
|
|
571
|
+
};
|
|
572
|
+
return { mutationFn, ...mutationOptions };
|
|
573
|
+
};
|
|
574
|
+
var usePostApiIdentityResetPassword = (options, queryClient) => {
|
|
575
|
+
const mutationOptions = getPostApiIdentityResetPasswordMutationOptions(options);
|
|
576
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
577
|
+
};
|
|
578
|
+
var getApiIdentityManage2fa = (options) => {
|
|
579
|
+
return import_axios.default.get(`/api/identity/manage/2fa`, options);
|
|
580
|
+
};
|
|
581
|
+
var getGetApiIdentityManage2faQueryKey = () => {
|
|
582
|
+
return [`/api/identity/manage/2fa`];
|
|
583
|
+
};
|
|
584
|
+
var getGetApiIdentityManage2faQueryOptions = (options) => {
|
|
585
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
586
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityManage2faQueryKey();
|
|
587
|
+
const queryFn = ({
|
|
588
|
+
signal
|
|
589
|
+
}) => getApiIdentityManage2fa({ signal, ...axiosOptions });
|
|
590
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
591
|
+
};
|
|
592
|
+
function useGetApiIdentityManage2fa(options, queryClient) {
|
|
593
|
+
const queryOptions = getGetApiIdentityManage2faQueryOptions(options);
|
|
594
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
595
|
+
query.queryKey = queryOptions.queryKey;
|
|
596
|
+
return query;
|
|
597
|
+
}
|
|
598
|
+
var postApiIdentityManage2fa = (twoFactorRequest, options) => {
|
|
599
|
+
return import_axios.default.post(`/api/identity/manage/2fa`, twoFactorRequest, options);
|
|
600
|
+
};
|
|
601
|
+
var getPostApiIdentityManage2faMutationOptions = (options) => {
|
|
602
|
+
const mutationKey = ["postApiIdentityManage2fa"];
|
|
603
|
+
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 };
|
|
604
|
+
const mutationFn = (props) => {
|
|
605
|
+
const { data } = props ?? {};
|
|
606
|
+
return postApiIdentityManage2fa(data, axiosOptions);
|
|
607
|
+
};
|
|
608
|
+
return { mutationFn, ...mutationOptions };
|
|
609
|
+
};
|
|
610
|
+
var usePostApiIdentityManage2fa = (options, queryClient) => {
|
|
611
|
+
const mutationOptions = getPostApiIdentityManage2faMutationOptions(options);
|
|
612
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
613
|
+
};
|
|
614
|
+
var getApiIdentityManageInfo = (options) => {
|
|
615
|
+
return import_axios.default.get(`/api/identity/manage/info`, options);
|
|
616
|
+
};
|
|
617
|
+
var getGetApiIdentityManageInfoQueryKey = () => {
|
|
618
|
+
return [`/api/identity/manage/info`];
|
|
619
|
+
};
|
|
620
|
+
var getGetApiIdentityManageInfoQueryOptions = (options) => {
|
|
621
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
622
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityManageInfoQueryKey();
|
|
623
|
+
const queryFn = ({
|
|
624
|
+
signal
|
|
625
|
+
}) => getApiIdentityManageInfo({ signal, ...axiosOptions });
|
|
626
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
627
|
+
};
|
|
628
|
+
function useGetApiIdentityManageInfo(options, queryClient) {
|
|
629
|
+
const queryOptions = getGetApiIdentityManageInfoQueryOptions(options);
|
|
630
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
631
|
+
query.queryKey = queryOptions.queryKey;
|
|
632
|
+
return query;
|
|
633
|
+
}
|
|
634
|
+
var postApiIdentityManageInfo = (updateAccountRequest, options) => {
|
|
635
|
+
return import_axios.default.post(`/api/identity/manage/info`, updateAccountRequest, options);
|
|
636
|
+
};
|
|
637
|
+
var getPostApiIdentityManageInfoMutationOptions = (options) => {
|
|
638
|
+
const mutationKey = ["postApiIdentityManageInfo"];
|
|
639
|
+
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 };
|
|
640
|
+
const mutationFn = (props) => {
|
|
641
|
+
const { data } = props ?? {};
|
|
642
|
+
return postApiIdentityManageInfo(data, axiosOptions);
|
|
643
|
+
};
|
|
644
|
+
return { mutationFn, ...mutationOptions };
|
|
645
|
+
};
|
|
646
|
+
var usePostApiIdentityManageInfo = (options, queryClient) => {
|
|
647
|
+
const mutationOptions = getPostApiIdentityManageInfoMutationOptions(options);
|
|
648
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
649
|
+
};
|
|
650
|
+
var getApiIdentityAdminRoles = (options) => {
|
|
651
|
+
return import_axios.default.get(`/api/identity/admin/roles`, options);
|
|
652
|
+
};
|
|
653
|
+
var getGetApiIdentityAdminRolesQueryKey = () => {
|
|
654
|
+
return [`/api/identity/admin/roles`];
|
|
655
|
+
};
|
|
656
|
+
var getGetApiIdentityAdminRolesQueryOptions = (options) => {
|
|
657
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
658
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminRolesQueryKey();
|
|
659
|
+
const queryFn = ({
|
|
660
|
+
signal
|
|
661
|
+
}) => getApiIdentityAdminRoles({ signal, ...axiosOptions });
|
|
662
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
663
|
+
};
|
|
664
|
+
function useGetApiIdentityAdminRoles(options, queryClient) {
|
|
665
|
+
const queryOptions = getGetApiIdentityAdminRolesQueryOptions(options);
|
|
666
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
667
|
+
query.queryKey = queryOptions.queryKey;
|
|
668
|
+
return query;
|
|
669
|
+
}
|
|
670
|
+
var postApiIdentityAdminRoles = (roleNameRequest, options) => {
|
|
671
|
+
return import_axios.default.post(`/api/identity/admin/roles`, roleNameRequest, options);
|
|
672
|
+
};
|
|
673
|
+
var getPostApiIdentityAdminRolesMutationOptions = (options) => {
|
|
674
|
+
const mutationKey = ["postApiIdentityAdminRoles"];
|
|
675
|
+
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 };
|
|
676
|
+
const mutationFn = (props) => {
|
|
677
|
+
const { data } = props ?? {};
|
|
678
|
+
return postApiIdentityAdminRoles(data, axiosOptions);
|
|
679
|
+
};
|
|
680
|
+
return { mutationFn, ...mutationOptions };
|
|
681
|
+
};
|
|
682
|
+
var usePostApiIdentityAdminRoles = (options, queryClient) => {
|
|
683
|
+
const mutationOptions = getPostApiIdentityAdminRolesMutationOptions(options);
|
|
684
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
685
|
+
};
|
|
686
|
+
var getApiIdentityAdminRolesId = (id, options) => {
|
|
687
|
+
return import_axios.default.get(`/api/identity/admin/roles/${id}`, options);
|
|
688
|
+
};
|
|
689
|
+
var getGetApiIdentityAdminRolesIdQueryKey = (id) => {
|
|
690
|
+
return [`/api/identity/admin/roles/${id}`];
|
|
691
|
+
};
|
|
692
|
+
var getGetApiIdentityAdminRolesIdQueryOptions = (id, options) => {
|
|
693
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
694
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminRolesIdQueryKey(id);
|
|
695
|
+
const queryFn = ({
|
|
696
|
+
signal
|
|
697
|
+
}) => getApiIdentityAdminRolesId(id, { signal, ...axiosOptions });
|
|
698
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
699
|
+
};
|
|
700
|
+
function useGetApiIdentityAdminRolesId(id, options, queryClient) {
|
|
701
|
+
const queryOptions = getGetApiIdentityAdminRolesIdQueryOptions(id, options);
|
|
702
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
703
|
+
query.queryKey = queryOptions.queryKey;
|
|
704
|
+
return query;
|
|
705
|
+
}
|
|
706
|
+
var putApiIdentityAdminRolesId = (id, roleNameRequest, options) => {
|
|
707
|
+
return import_axios.default.put(`/api/identity/admin/roles/${id}`, roleNameRequest, options);
|
|
708
|
+
};
|
|
709
|
+
var getPutApiIdentityAdminRolesIdMutationOptions = (options) => {
|
|
710
|
+
const mutationKey = ["putApiIdentityAdminRolesId"];
|
|
711
|
+
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 };
|
|
712
|
+
const mutationFn = (props) => {
|
|
713
|
+
const { id, data } = props ?? {};
|
|
714
|
+
return putApiIdentityAdminRolesId(id, data, axiosOptions);
|
|
715
|
+
};
|
|
716
|
+
return { mutationFn, ...mutationOptions };
|
|
717
|
+
};
|
|
718
|
+
var usePutApiIdentityAdminRolesId = (options, queryClient) => {
|
|
719
|
+
const mutationOptions = getPutApiIdentityAdminRolesIdMutationOptions(options);
|
|
720
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
721
|
+
};
|
|
722
|
+
var deleteApiIdentityAdminRolesId = (id, options) => {
|
|
723
|
+
return import_axios.default.delete(`/api/identity/admin/roles/${id}`, options);
|
|
724
|
+
};
|
|
725
|
+
var getDeleteApiIdentityAdminRolesIdMutationOptions = (options) => {
|
|
726
|
+
const mutationKey = ["deleteApiIdentityAdminRolesId"];
|
|
727
|
+
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 };
|
|
728
|
+
const mutationFn = (props) => {
|
|
729
|
+
const { id } = props ?? {};
|
|
730
|
+
return deleteApiIdentityAdminRolesId(id, axiosOptions);
|
|
731
|
+
};
|
|
732
|
+
return { mutationFn, ...mutationOptions };
|
|
733
|
+
};
|
|
734
|
+
var useDeleteApiIdentityAdminRolesId = (options, queryClient) => {
|
|
735
|
+
const mutationOptions = getDeleteApiIdentityAdminRolesIdMutationOptions(options);
|
|
736
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
737
|
+
};
|
|
738
|
+
var putApiIdentityAdminRolesIdPermissions = (id, setPermissionsRequest, options) => {
|
|
739
|
+
return import_axios.default.put(`/api/identity/admin/roles/${id}/permissions`, setPermissionsRequest, options);
|
|
740
|
+
};
|
|
741
|
+
var getPutApiIdentityAdminRolesIdPermissionsMutationOptions = (options) => {
|
|
742
|
+
const mutationKey = ["putApiIdentityAdminRolesIdPermissions"];
|
|
743
|
+
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 };
|
|
744
|
+
const mutationFn = (props) => {
|
|
745
|
+
const { id, data } = props ?? {};
|
|
746
|
+
return putApiIdentityAdminRolesIdPermissions(id, data, axiosOptions);
|
|
747
|
+
};
|
|
748
|
+
return { mutationFn, ...mutationOptions };
|
|
749
|
+
};
|
|
750
|
+
var usePutApiIdentityAdminRolesIdPermissions = (options, queryClient) => {
|
|
751
|
+
const mutationOptions = getPutApiIdentityAdminRolesIdPermissionsMutationOptions(options);
|
|
752
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
753
|
+
};
|
|
754
|
+
var getApiIdentityAdminPermissions = (options) => {
|
|
755
|
+
return import_axios.default.get(`/api/identity/admin/permissions`, options);
|
|
756
|
+
};
|
|
757
|
+
var getGetApiIdentityAdminPermissionsQueryKey = () => {
|
|
758
|
+
return [`/api/identity/admin/permissions`];
|
|
759
|
+
};
|
|
760
|
+
var getGetApiIdentityAdminPermissionsQueryOptions = (options) => {
|
|
761
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
762
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminPermissionsQueryKey();
|
|
763
|
+
const queryFn = ({
|
|
764
|
+
signal
|
|
765
|
+
}) => getApiIdentityAdminPermissions({ signal, ...axiosOptions });
|
|
766
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
767
|
+
};
|
|
768
|
+
function useGetApiIdentityAdminPermissions(options, queryClient) {
|
|
769
|
+
const queryOptions = getGetApiIdentityAdminPermissionsQueryOptions(options);
|
|
770
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
771
|
+
query.queryKey = queryOptions.queryKey;
|
|
772
|
+
return query;
|
|
773
|
+
}
|
|
774
|
+
var getApiIdentityAdminUsers = (params, options) => {
|
|
775
|
+
return import_axios.default.get(`/api/identity/admin/users`, {
|
|
776
|
+
...options,
|
|
777
|
+
params: { ...params, ...options?.params }
|
|
778
|
+
});
|
|
779
|
+
};
|
|
780
|
+
var getGetApiIdentityAdminUsersQueryKey = (params) => {
|
|
781
|
+
return [`/api/identity/admin/users`, ...params ? [params] : []];
|
|
782
|
+
};
|
|
783
|
+
var getGetApiIdentityAdminUsersQueryOptions = (params, options) => {
|
|
784
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
785
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminUsersQueryKey(params);
|
|
786
|
+
const queryFn = ({
|
|
787
|
+
signal
|
|
788
|
+
}) => getApiIdentityAdminUsers(params, { signal, ...axiosOptions });
|
|
789
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
790
|
+
};
|
|
791
|
+
function useGetApiIdentityAdminUsers(params, options, queryClient) {
|
|
792
|
+
const queryOptions = getGetApiIdentityAdminUsersQueryOptions(params, options);
|
|
793
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
794
|
+
query.queryKey = queryOptions.queryKey;
|
|
795
|
+
return query;
|
|
796
|
+
}
|
|
797
|
+
var getApiIdentityAdminUsersIdRoles = (id, options) => {
|
|
798
|
+
return import_axios.default.get(`/api/identity/admin/users/${id}/roles`, options);
|
|
799
|
+
};
|
|
800
|
+
var getGetApiIdentityAdminUsersIdRolesQueryKey = (id) => {
|
|
801
|
+
return [`/api/identity/admin/users/${id}/roles`];
|
|
802
|
+
};
|
|
803
|
+
var getGetApiIdentityAdminUsersIdRolesQueryOptions = (id, options) => {
|
|
804
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
805
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminUsersIdRolesQueryKey(id);
|
|
806
|
+
const queryFn = ({
|
|
807
|
+
signal
|
|
808
|
+
}) => getApiIdentityAdminUsersIdRoles(id, { signal, ...axiosOptions });
|
|
809
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
810
|
+
};
|
|
811
|
+
function useGetApiIdentityAdminUsersIdRoles(id, options, queryClient) {
|
|
812
|
+
const queryOptions = getGetApiIdentityAdminUsersIdRolesQueryOptions(id, options);
|
|
813
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
814
|
+
query.queryKey = queryOptions.queryKey;
|
|
815
|
+
return query;
|
|
816
|
+
}
|
|
817
|
+
var putApiIdentityAdminUsersIdRoles = (id, setUserRolesRequest, options) => {
|
|
818
|
+
return import_axios.default.put(`/api/identity/admin/users/${id}/roles`, setUserRolesRequest, options);
|
|
819
|
+
};
|
|
820
|
+
var getPutApiIdentityAdminUsersIdRolesMutationOptions = (options) => {
|
|
821
|
+
const mutationKey = ["putApiIdentityAdminUsersIdRoles"];
|
|
822
|
+
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 };
|
|
823
|
+
const mutationFn = (props) => {
|
|
824
|
+
const { id, data } = props ?? {};
|
|
825
|
+
return putApiIdentityAdminUsersIdRoles(id, data, axiosOptions);
|
|
826
|
+
};
|
|
827
|
+
return { mutationFn, ...mutationOptions };
|
|
828
|
+
};
|
|
829
|
+
var usePutApiIdentityAdminUsersIdRoles = (options, queryClient) => {
|
|
830
|
+
const mutationOptions = getPutApiIdentityAdminUsersIdRolesMutationOptions(options);
|
|
831
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
832
|
+
};
|
|
833
|
+
var getApiIdentityAdminUsersIdPermissions = (id, options) => {
|
|
834
|
+
return import_axios.default.get(`/api/identity/admin/users/${id}/permissions`, options);
|
|
835
|
+
};
|
|
836
|
+
var getGetApiIdentityAdminUsersIdPermissionsQueryKey = (id) => {
|
|
837
|
+
return [`/api/identity/admin/users/${id}/permissions`];
|
|
838
|
+
};
|
|
839
|
+
var getGetApiIdentityAdminUsersIdPermissionsQueryOptions = (id, options) => {
|
|
840
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
841
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminUsersIdPermissionsQueryKey(id);
|
|
842
|
+
const queryFn = ({ signal }) => getApiIdentityAdminUsersIdPermissions(id, { signal, ...axiosOptions });
|
|
843
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
844
|
+
};
|
|
845
|
+
function useGetApiIdentityAdminUsersIdPermissions(id, options, queryClient) {
|
|
846
|
+
const queryOptions = getGetApiIdentityAdminUsersIdPermissionsQueryOptions(id, options);
|
|
847
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
848
|
+
query.queryKey = queryOptions.queryKey;
|
|
849
|
+
return query;
|
|
850
|
+
}
|
|
851
|
+
var putApiIdentityAdminUsersIdActive = (id, setUserActiveRequest, options) => {
|
|
852
|
+
return import_axios.default.put(`/api/identity/admin/users/${id}/active`, setUserActiveRequest, options);
|
|
853
|
+
};
|
|
854
|
+
var getPutApiIdentityAdminUsersIdActiveMutationOptions = (options) => {
|
|
855
|
+
const mutationKey = ["putApiIdentityAdminUsersIdActive"];
|
|
856
|
+
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 };
|
|
857
|
+
const mutationFn = (props) => {
|
|
858
|
+
const { id, data } = props ?? {};
|
|
859
|
+
return putApiIdentityAdminUsersIdActive(id, data, axiosOptions);
|
|
860
|
+
};
|
|
861
|
+
return { mutationFn, ...mutationOptions };
|
|
862
|
+
};
|
|
863
|
+
var usePutApiIdentityAdminUsersIdActive = (options, queryClient) => {
|
|
864
|
+
const mutationOptions = getPutApiIdentityAdminUsersIdActiveMutationOptions(options);
|
|
865
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
866
|
+
};
|
|
867
|
+
var postApiIdentityAdminUsersIdLogout = (id, options) => {
|
|
868
|
+
return import_axios.default.post(`/api/identity/admin/users/${id}/logout`, void 0, options);
|
|
869
|
+
};
|
|
870
|
+
var getPostApiIdentityAdminUsersIdLogoutMutationOptions = (options) => {
|
|
871
|
+
const mutationKey = ["postApiIdentityAdminUsersIdLogout"];
|
|
872
|
+
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 };
|
|
873
|
+
const mutationFn = (props) => {
|
|
874
|
+
const { id } = props ?? {};
|
|
875
|
+
return postApiIdentityAdminUsersIdLogout(id, axiosOptions);
|
|
876
|
+
};
|
|
877
|
+
return { mutationFn, ...mutationOptions };
|
|
878
|
+
};
|
|
879
|
+
var usePostApiIdentityAdminUsersIdLogout = (options, queryClient) => {
|
|
880
|
+
const mutationOptions = getPostApiIdentityAdminUsersIdLogoutMutationOptions(options);
|
|
881
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
882
|
+
};
|
|
384
883
|
|
|
385
884
|
// src/gen/v1.zod.ts
|
|
386
885
|
var zod = __toESM(require("zod"));
|
|
@@ -595,6 +1094,138 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
595
1094
|
hasNextPage: zod.boolean().optional(),
|
|
596
1095
|
hasPreviousPage: zod.boolean().optional()
|
|
597
1096
|
});
|
|
1097
|
+
var getApiIdentityAntiforgeryResponse = zod.strictObject({
|
|
1098
|
+
requestToken: zod.string()
|
|
1099
|
+
});
|
|
1100
|
+
var postApiIdentityLoginBody = zod.strictObject({
|
|
1101
|
+
email: zod.string(),
|
|
1102
|
+
password: zod.string(),
|
|
1103
|
+
twoFactorCode: zod.string().nullable(),
|
|
1104
|
+
twoFactorRecoveryCode: zod.string().nullable()
|
|
1105
|
+
});
|
|
1106
|
+
var postApiIdentityLoginResponse = zod.strictObject({
|
|
1107
|
+
requiresTwoFactor: zod.boolean()
|
|
1108
|
+
});
|
|
1109
|
+
var postApiIdentityForgotPasswordBody = zod.strictObject({
|
|
1110
|
+
email: zod.string()
|
|
1111
|
+
});
|
|
1112
|
+
var postApiIdentityResetPasswordBody = zod.strictObject({
|
|
1113
|
+
email: zod.string(),
|
|
1114
|
+
resetCode: zod.string(),
|
|
1115
|
+
newPassword: zod.string()
|
|
1116
|
+
});
|
|
1117
|
+
var getApiIdentityManage2faResponse = zod.strictObject({
|
|
1118
|
+
sharedKey: zod.string().nullable(),
|
|
1119
|
+
recoveryCodes: zod.array(zod.string()).nullable(),
|
|
1120
|
+
recoveryCodesLeft: zod.number(),
|
|
1121
|
+
isTwoFactorEnabled: zod.boolean(),
|
|
1122
|
+
isMachineRemembered: zod.boolean()
|
|
1123
|
+
});
|
|
1124
|
+
var postApiIdentityManage2faBody = zod.strictObject({
|
|
1125
|
+
enable: zod.boolean().nullable(),
|
|
1126
|
+
resetSharedKey: zod.boolean(),
|
|
1127
|
+
resetRecoveryCodes: zod.boolean(),
|
|
1128
|
+
forgetMachine: zod.boolean(),
|
|
1129
|
+
twoFactorCode: zod.string().nullable(),
|
|
1130
|
+
password: zod.string().nullable()
|
|
1131
|
+
});
|
|
1132
|
+
var postApiIdentityManage2faResponse = zod.strictObject({
|
|
1133
|
+
sharedKey: zod.string().nullable(),
|
|
1134
|
+
recoveryCodes: zod.array(zod.string()).nullable(),
|
|
1135
|
+
recoveryCodesLeft: zod.number(),
|
|
1136
|
+
isTwoFactorEnabled: zod.boolean(),
|
|
1137
|
+
isMachineRemembered: zod.boolean()
|
|
1138
|
+
});
|
|
1139
|
+
var getApiIdentityManageInfoResponse = zod.strictObject({
|
|
1140
|
+
email: zod.string(),
|
|
1141
|
+
isEmailConfirmed: zod.boolean()
|
|
1142
|
+
});
|
|
1143
|
+
var postApiIdentityManageInfoBody = zod.strictObject({
|
|
1144
|
+
newEmail: zod.string().nullable(),
|
|
1145
|
+
newPassword: zod.string().nullable(),
|
|
1146
|
+
oldPassword: zod.string().nullable()
|
|
1147
|
+
});
|
|
1148
|
+
var postApiIdentityManageInfoResponse = zod.strictObject({
|
|
1149
|
+
email: zod.string(),
|
|
1150
|
+
isEmailConfirmed: zod.boolean()
|
|
1151
|
+
});
|
|
1152
|
+
var getApiIdentityAdminRolesResponseItem = zod.strictObject({
|
|
1153
|
+
id: zod.uuid(),
|
|
1154
|
+
name: zod.string(),
|
|
1155
|
+
permissions: zod.array(zod.string())
|
|
1156
|
+
});
|
|
1157
|
+
var getApiIdentityAdminRolesResponse = zod.array(getApiIdentityAdminRolesResponseItem);
|
|
1158
|
+
var postApiIdentityAdminRolesBody = zod.strictObject({
|
|
1159
|
+
name: zod.string()
|
|
1160
|
+
});
|
|
1161
|
+
var getApiIdentityAdminRolesIdParams = zod.strictObject({
|
|
1162
|
+
id: zod.uuid()
|
|
1163
|
+
});
|
|
1164
|
+
var getApiIdentityAdminRolesIdResponse = zod.strictObject({
|
|
1165
|
+
id: zod.uuid(),
|
|
1166
|
+
name: zod.string(),
|
|
1167
|
+
permissions: zod.array(zod.string())
|
|
1168
|
+
});
|
|
1169
|
+
var putApiIdentityAdminRolesIdParams = zod.strictObject({
|
|
1170
|
+
id: zod.uuid()
|
|
1171
|
+
});
|
|
1172
|
+
var putApiIdentityAdminRolesIdBody = zod.strictObject({
|
|
1173
|
+
name: zod.string()
|
|
1174
|
+
});
|
|
1175
|
+
var deleteApiIdentityAdminRolesIdParams = zod.strictObject({
|
|
1176
|
+
id: zod.uuid()
|
|
1177
|
+
});
|
|
1178
|
+
var putApiIdentityAdminRolesIdPermissionsParams = zod.strictObject({
|
|
1179
|
+
id: zod.uuid()
|
|
1180
|
+
});
|
|
1181
|
+
var putApiIdentityAdminRolesIdPermissionsBody = zod.strictObject({
|
|
1182
|
+
codes: zod.array(zod.string())
|
|
1183
|
+
});
|
|
1184
|
+
var getApiIdentityAdminPermissionsResponseItem = zod.strictObject({
|
|
1185
|
+
module: zod.string(),
|
|
1186
|
+
code: zod.string(),
|
|
1187
|
+
description: zod.string()
|
|
1188
|
+
});
|
|
1189
|
+
var getApiIdentityAdminPermissionsResponse = zod.array(
|
|
1190
|
+
getApiIdentityAdminPermissionsResponseItem
|
|
1191
|
+
);
|
|
1192
|
+
var getApiIdentityAdminUsersQueryParams = zod.strictObject({
|
|
1193
|
+
email: zod.coerce.string()
|
|
1194
|
+
});
|
|
1195
|
+
var getApiIdentityAdminUsersResponse = zod.strictObject({
|
|
1196
|
+
id: zod.uuid(),
|
|
1197
|
+
email: zod.string(),
|
|
1198
|
+
isActive: zod.boolean()
|
|
1199
|
+
});
|
|
1200
|
+
var getApiIdentityAdminUsersIdRolesParams = zod.strictObject({
|
|
1201
|
+
id: zod.uuid()
|
|
1202
|
+
});
|
|
1203
|
+
var getApiIdentityAdminUsersIdRolesResponseItem = zod.string();
|
|
1204
|
+
var getApiIdentityAdminUsersIdRolesResponse = zod.array(
|
|
1205
|
+
getApiIdentityAdminUsersIdRolesResponseItem
|
|
1206
|
+
);
|
|
1207
|
+
var putApiIdentityAdminUsersIdRolesParams = zod.strictObject({
|
|
1208
|
+
id: zod.uuid()
|
|
1209
|
+
});
|
|
1210
|
+
var putApiIdentityAdminUsersIdRolesBody = zod.strictObject({
|
|
1211
|
+
roles: zod.array(zod.string())
|
|
1212
|
+
});
|
|
1213
|
+
var getApiIdentityAdminUsersIdPermissionsParams = zod.strictObject({
|
|
1214
|
+
id: zod.uuid()
|
|
1215
|
+
});
|
|
1216
|
+
var getApiIdentityAdminUsersIdPermissionsResponseItem = zod.string();
|
|
1217
|
+
var getApiIdentityAdminUsersIdPermissionsResponse = zod.array(
|
|
1218
|
+
getApiIdentityAdminUsersIdPermissionsResponseItem
|
|
1219
|
+
);
|
|
1220
|
+
var putApiIdentityAdminUsersIdActiveParams = zod.strictObject({
|
|
1221
|
+
id: zod.uuid()
|
|
1222
|
+
});
|
|
1223
|
+
var putApiIdentityAdminUsersIdActiveBody = zod.strictObject({
|
|
1224
|
+
isActive: zod.boolean()
|
|
1225
|
+
});
|
|
1226
|
+
var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
1227
|
+
id: zod.uuid()
|
|
1228
|
+
});
|
|
598
1229
|
// Annotate the CommonJS export names for ESM import in node:
|
|
599
1230
|
0 && (module.exports = {
|
|
600
1231
|
ConsumeBatchSourceType,
|
|
@@ -608,13 +1239,60 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
608
1239
|
createStockItemsBody,
|
|
609
1240
|
createWarehouse,
|
|
610
1241
|
createWarehouseBody,
|
|
1242
|
+
deleteApiIdentityAdminRolesId,
|
|
1243
|
+
deleteApiIdentityAdminRolesIdParams,
|
|
611
1244
|
deleteWarehouse,
|
|
612
1245
|
deleteWarehouseParams,
|
|
1246
|
+
getApiIdentityAdminPermissions,
|
|
1247
|
+
getApiIdentityAdminPermissionsResponse,
|
|
1248
|
+
getApiIdentityAdminPermissionsResponseItem,
|
|
1249
|
+
getApiIdentityAdminRoles,
|
|
1250
|
+
getApiIdentityAdminRolesId,
|
|
1251
|
+
getApiIdentityAdminRolesIdParams,
|
|
1252
|
+
getApiIdentityAdminRolesIdResponse,
|
|
1253
|
+
getApiIdentityAdminRolesResponse,
|
|
1254
|
+
getApiIdentityAdminRolesResponseItem,
|
|
1255
|
+
getApiIdentityAdminUsers,
|
|
1256
|
+
getApiIdentityAdminUsersIdPermissions,
|
|
1257
|
+
getApiIdentityAdminUsersIdPermissionsParams,
|
|
1258
|
+
getApiIdentityAdminUsersIdPermissionsResponse,
|
|
1259
|
+
getApiIdentityAdminUsersIdPermissionsResponseItem,
|
|
1260
|
+
getApiIdentityAdminUsersIdRoles,
|
|
1261
|
+
getApiIdentityAdminUsersIdRolesParams,
|
|
1262
|
+
getApiIdentityAdminUsersIdRolesResponse,
|
|
1263
|
+
getApiIdentityAdminUsersIdRolesResponseItem,
|
|
1264
|
+
getApiIdentityAdminUsersQueryParams,
|
|
1265
|
+
getApiIdentityAdminUsersResponse,
|
|
1266
|
+
getApiIdentityAntiforgery,
|
|
1267
|
+
getApiIdentityAntiforgeryResponse,
|
|
1268
|
+
getApiIdentityManage2fa,
|
|
1269
|
+
getApiIdentityManage2faResponse,
|
|
1270
|
+
getApiIdentityManageInfo,
|
|
1271
|
+
getApiIdentityManageInfoResponse,
|
|
613
1272
|
getConsumeBatchMutationOptions,
|
|
614
1273
|
getCreateBatchMutationOptions,
|
|
615
1274
|
getCreateStockItemsMutationOptions,
|
|
616
1275
|
getCreateWarehouseMutationOptions,
|
|
1276
|
+
getDeleteApiIdentityAdminRolesIdMutationOptions,
|
|
617
1277
|
getDeleteWarehouseMutationOptions,
|
|
1278
|
+
getGetApiIdentityAdminPermissionsQueryKey,
|
|
1279
|
+
getGetApiIdentityAdminPermissionsQueryOptions,
|
|
1280
|
+
getGetApiIdentityAdminRolesIdQueryKey,
|
|
1281
|
+
getGetApiIdentityAdminRolesIdQueryOptions,
|
|
1282
|
+
getGetApiIdentityAdminRolesQueryKey,
|
|
1283
|
+
getGetApiIdentityAdminRolesQueryOptions,
|
|
1284
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryKey,
|
|
1285
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryOptions,
|
|
1286
|
+
getGetApiIdentityAdminUsersIdRolesQueryKey,
|
|
1287
|
+
getGetApiIdentityAdminUsersIdRolesQueryOptions,
|
|
1288
|
+
getGetApiIdentityAdminUsersQueryKey,
|
|
1289
|
+
getGetApiIdentityAdminUsersQueryOptions,
|
|
1290
|
+
getGetApiIdentityAntiforgeryQueryKey,
|
|
1291
|
+
getGetApiIdentityAntiforgeryQueryOptions,
|
|
1292
|
+
getGetApiIdentityManage2faQueryKey,
|
|
1293
|
+
getGetApiIdentityManage2faQueryOptions,
|
|
1294
|
+
getGetApiIdentityManageInfoQueryKey,
|
|
1295
|
+
getGetApiIdentityManageInfoQueryOptions,
|
|
618
1296
|
getGetHealthQueryKey,
|
|
619
1297
|
getGetHealthQueryOptions,
|
|
620
1298
|
getGetWarehouseByIdQueryKey,
|
|
@@ -628,6 +1306,18 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
628
1306
|
getListStockMovementsQueryOptions,
|
|
629
1307
|
getListWarehousesQueryKey,
|
|
630
1308
|
getListWarehousesQueryOptions,
|
|
1309
|
+
getPostApiIdentityAdminRolesMutationOptions,
|
|
1310
|
+
getPostApiIdentityAdminUsersIdLogoutMutationOptions,
|
|
1311
|
+
getPostApiIdentityForgotPasswordMutationOptions,
|
|
1312
|
+
getPostApiIdentityLoginMutationOptions,
|
|
1313
|
+
getPostApiIdentityLogoutMutationOptions,
|
|
1314
|
+
getPostApiIdentityManage2faMutationOptions,
|
|
1315
|
+
getPostApiIdentityManageInfoMutationOptions,
|
|
1316
|
+
getPostApiIdentityResetPasswordMutationOptions,
|
|
1317
|
+
getPutApiIdentityAdminRolesIdMutationOptions,
|
|
1318
|
+
getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
|
|
1319
|
+
getPutApiIdentityAdminUsersIdActiveMutationOptions,
|
|
1320
|
+
getPutApiIdentityAdminUsersIdRolesMutationOptions,
|
|
631
1321
|
getSearchAddressesQueryKey,
|
|
632
1322
|
getSearchAddressesQueryOptions,
|
|
633
1323
|
getToggleWarehouseStatusMutationOptions,
|
|
@@ -655,6 +1345,36 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
655
1345
|
listWarehousesQueryPageSizeDefault,
|
|
656
1346
|
listWarehousesQueryParams,
|
|
657
1347
|
listWarehousesResponse,
|
|
1348
|
+
postApiIdentityAdminRoles,
|
|
1349
|
+
postApiIdentityAdminRolesBody,
|
|
1350
|
+
postApiIdentityAdminUsersIdLogout,
|
|
1351
|
+
postApiIdentityAdminUsersIdLogoutParams,
|
|
1352
|
+
postApiIdentityForgotPassword,
|
|
1353
|
+
postApiIdentityForgotPasswordBody,
|
|
1354
|
+
postApiIdentityLogin,
|
|
1355
|
+
postApiIdentityLoginBody,
|
|
1356
|
+
postApiIdentityLoginResponse,
|
|
1357
|
+
postApiIdentityLogout,
|
|
1358
|
+
postApiIdentityManage2fa,
|
|
1359
|
+
postApiIdentityManage2faBody,
|
|
1360
|
+
postApiIdentityManage2faResponse,
|
|
1361
|
+
postApiIdentityManageInfo,
|
|
1362
|
+
postApiIdentityManageInfoBody,
|
|
1363
|
+
postApiIdentityManageInfoResponse,
|
|
1364
|
+
postApiIdentityResetPassword,
|
|
1365
|
+
postApiIdentityResetPasswordBody,
|
|
1366
|
+
putApiIdentityAdminRolesId,
|
|
1367
|
+
putApiIdentityAdminRolesIdBody,
|
|
1368
|
+
putApiIdentityAdminRolesIdParams,
|
|
1369
|
+
putApiIdentityAdminRolesIdPermissions,
|
|
1370
|
+
putApiIdentityAdminRolesIdPermissionsBody,
|
|
1371
|
+
putApiIdentityAdminRolesIdPermissionsParams,
|
|
1372
|
+
putApiIdentityAdminUsersIdActive,
|
|
1373
|
+
putApiIdentityAdminUsersIdActiveBody,
|
|
1374
|
+
putApiIdentityAdminUsersIdActiveParams,
|
|
1375
|
+
putApiIdentityAdminUsersIdRoles,
|
|
1376
|
+
putApiIdentityAdminUsersIdRolesBody,
|
|
1377
|
+
putApiIdentityAdminUsersIdRolesParams,
|
|
658
1378
|
searchAddresses,
|
|
659
1379
|
searchAddressesQueryLimitDefault,
|
|
660
1380
|
searchAddressesQueryParams,
|
|
@@ -669,13 +1389,35 @@ var listStockMovementsResponse = zod.strictObject({
|
|
|
669
1389
|
useCreateBatch,
|
|
670
1390
|
useCreateStockItems,
|
|
671
1391
|
useCreateWarehouse,
|
|
1392
|
+
useDeleteApiIdentityAdminRolesId,
|
|
672
1393
|
useDeleteWarehouse,
|
|
1394
|
+
useGetApiIdentityAdminPermissions,
|
|
1395
|
+
useGetApiIdentityAdminRoles,
|
|
1396
|
+
useGetApiIdentityAdminRolesId,
|
|
1397
|
+
useGetApiIdentityAdminUsers,
|
|
1398
|
+
useGetApiIdentityAdminUsersIdPermissions,
|
|
1399
|
+
useGetApiIdentityAdminUsersIdRoles,
|
|
1400
|
+
useGetApiIdentityAntiforgery,
|
|
1401
|
+
useGetApiIdentityManage2fa,
|
|
1402
|
+
useGetApiIdentityManageInfo,
|
|
673
1403
|
useGetHealth,
|
|
674
1404
|
useGetWarehouseById,
|
|
675
1405
|
useGetWarehouseOptions,
|
|
676
1406
|
useListStockItems,
|
|
677
1407
|
useListStockMovements,
|
|
678
1408
|
useListWarehouses,
|
|
1409
|
+
usePostApiIdentityAdminRoles,
|
|
1410
|
+
usePostApiIdentityAdminUsersIdLogout,
|
|
1411
|
+
usePostApiIdentityForgotPassword,
|
|
1412
|
+
usePostApiIdentityLogin,
|
|
1413
|
+
usePostApiIdentityLogout,
|
|
1414
|
+
usePostApiIdentityManage2fa,
|
|
1415
|
+
usePostApiIdentityManageInfo,
|
|
1416
|
+
usePostApiIdentityResetPassword,
|
|
1417
|
+
usePutApiIdentityAdminRolesId,
|
|
1418
|
+
usePutApiIdentityAdminRolesIdPermissions,
|
|
1419
|
+
usePutApiIdentityAdminUsersIdActive,
|
|
1420
|
+
usePutApiIdentityAdminUsersIdRoles,
|
|
679
1421
|
useSearchAddresses,
|
|
680
1422
|
useToggleWarehouseStatus,
|
|
681
1423
|
useUpdateWarehouse
|