@arascreative/erp-api-client 0.1.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 +885 -282
- package/dist/index.d.ts +885 -282
- package/dist/index.js +840 -162
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +727 -162
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -264,24 +264,402 @@ function useListStockMovements(params, options, queryClient) {
|
|
|
264
264
|
query.queryKey = queryOptions.queryKey;
|
|
265
265
|
return query;
|
|
266
266
|
}
|
|
267
|
+
var getApiIdentityAntiforgery = (options) => {
|
|
268
|
+
return axios.get(`/api/identity/antiforgery`, options);
|
|
269
|
+
};
|
|
270
|
+
var getGetApiIdentityAntiforgeryQueryKey = () => {
|
|
271
|
+
return [`/api/identity/antiforgery`];
|
|
272
|
+
};
|
|
273
|
+
var getGetApiIdentityAntiforgeryQueryOptions = (options) => {
|
|
274
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
275
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAntiforgeryQueryKey();
|
|
276
|
+
const queryFn = ({
|
|
277
|
+
signal
|
|
278
|
+
}) => getApiIdentityAntiforgery({ signal, ...axiosOptions });
|
|
279
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
280
|
+
};
|
|
281
|
+
function useGetApiIdentityAntiforgery(options, queryClient) {
|
|
282
|
+
const queryOptions = getGetApiIdentityAntiforgeryQueryOptions(options);
|
|
283
|
+
const query = useQuery(queryOptions, queryClient);
|
|
284
|
+
query.queryKey = queryOptions.queryKey;
|
|
285
|
+
return query;
|
|
286
|
+
}
|
|
287
|
+
var postApiIdentityLogin = (loginRequest, options) => {
|
|
288
|
+
return axios.post(`/api/identity/login`, loginRequest, options);
|
|
289
|
+
};
|
|
290
|
+
var getPostApiIdentityLoginMutationOptions = (options) => {
|
|
291
|
+
const mutationKey = ["postApiIdentityLogin"];
|
|
292
|
+
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 };
|
|
293
|
+
const mutationFn = (props) => {
|
|
294
|
+
const { data } = props ?? {};
|
|
295
|
+
return postApiIdentityLogin(data, axiosOptions);
|
|
296
|
+
};
|
|
297
|
+
return { mutationFn, ...mutationOptions };
|
|
298
|
+
};
|
|
299
|
+
var usePostApiIdentityLogin = (options, queryClient) => {
|
|
300
|
+
const mutationOptions = getPostApiIdentityLoginMutationOptions(options);
|
|
301
|
+
return useMutation(mutationOptions, queryClient);
|
|
302
|
+
};
|
|
303
|
+
var postApiIdentityLogout = (options) => {
|
|
304
|
+
return axios.post(`/api/identity/logout`, void 0, options);
|
|
305
|
+
};
|
|
306
|
+
var getPostApiIdentityLogoutMutationOptions = (options) => {
|
|
307
|
+
const mutationKey = ["postApiIdentityLogout"];
|
|
308
|
+
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 };
|
|
309
|
+
const mutationFn = () => {
|
|
310
|
+
return postApiIdentityLogout(axiosOptions);
|
|
311
|
+
};
|
|
312
|
+
return { mutationFn, ...mutationOptions };
|
|
313
|
+
};
|
|
314
|
+
var usePostApiIdentityLogout = (options, queryClient) => {
|
|
315
|
+
const mutationOptions = getPostApiIdentityLogoutMutationOptions(options);
|
|
316
|
+
return useMutation(mutationOptions, queryClient);
|
|
317
|
+
};
|
|
318
|
+
var postApiIdentityForgotPassword = (emailRequest, options) => {
|
|
319
|
+
return axios.post(`/api/identity/forgotPassword`, emailRequest, options);
|
|
320
|
+
};
|
|
321
|
+
var getPostApiIdentityForgotPasswordMutationOptions = (options) => {
|
|
322
|
+
const mutationKey = ["postApiIdentityForgotPassword"];
|
|
323
|
+
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 };
|
|
324
|
+
const mutationFn = (props) => {
|
|
325
|
+
const { data } = props ?? {};
|
|
326
|
+
return postApiIdentityForgotPassword(data, axiosOptions);
|
|
327
|
+
};
|
|
328
|
+
return { mutationFn, ...mutationOptions };
|
|
329
|
+
};
|
|
330
|
+
var usePostApiIdentityForgotPassword = (options, queryClient) => {
|
|
331
|
+
const mutationOptions = getPostApiIdentityForgotPasswordMutationOptions(options);
|
|
332
|
+
return useMutation(mutationOptions, queryClient);
|
|
333
|
+
};
|
|
334
|
+
var postApiIdentityResetPassword = (resetPasswordRequest, options) => {
|
|
335
|
+
return axios.post(`/api/identity/resetPassword`, resetPasswordRequest, options);
|
|
336
|
+
};
|
|
337
|
+
var getPostApiIdentityResetPasswordMutationOptions = (options) => {
|
|
338
|
+
const mutationKey = ["postApiIdentityResetPassword"];
|
|
339
|
+
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 };
|
|
340
|
+
const mutationFn = (props) => {
|
|
341
|
+
const { data } = props ?? {};
|
|
342
|
+
return postApiIdentityResetPassword(data, axiosOptions);
|
|
343
|
+
};
|
|
344
|
+
return { mutationFn, ...mutationOptions };
|
|
345
|
+
};
|
|
346
|
+
var usePostApiIdentityResetPassword = (options, queryClient) => {
|
|
347
|
+
const mutationOptions = getPostApiIdentityResetPasswordMutationOptions(options);
|
|
348
|
+
return useMutation(mutationOptions, queryClient);
|
|
349
|
+
};
|
|
350
|
+
var getApiIdentityManage2fa = (options) => {
|
|
351
|
+
return axios.get(`/api/identity/manage/2fa`, options);
|
|
352
|
+
};
|
|
353
|
+
var getGetApiIdentityManage2faQueryKey = () => {
|
|
354
|
+
return [`/api/identity/manage/2fa`];
|
|
355
|
+
};
|
|
356
|
+
var getGetApiIdentityManage2faQueryOptions = (options) => {
|
|
357
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
358
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityManage2faQueryKey();
|
|
359
|
+
const queryFn = ({
|
|
360
|
+
signal
|
|
361
|
+
}) => getApiIdentityManage2fa({ signal, ...axiosOptions });
|
|
362
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
363
|
+
};
|
|
364
|
+
function useGetApiIdentityManage2fa(options, queryClient) {
|
|
365
|
+
const queryOptions = getGetApiIdentityManage2faQueryOptions(options);
|
|
366
|
+
const query = useQuery(queryOptions, queryClient);
|
|
367
|
+
query.queryKey = queryOptions.queryKey;
|
|
368
|
+
return query;
|
|
369
|
+
}
|
|
370
|
+
var postApiIdentityManage2fa = (twoFactorRequest, options) => {
|
|
371
|
+
return axios.post(`/api/identity/manage/2fa`, twoFactorRequest, options);
|
|
372
|
+
};
|
|
373
|
+
var getPostApiIdentityManage2faMutationOptions = (options) => {
|
|
374
|
+
const mutationKey = ["postApiIdentityManage2fa"];
|
|
375
|
+
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 };
|
|
376
|
+
const mutationFn = (props) => {
|
|
377
|
+
const { data } = props ?? {};
|
|
378
|
+
return postApiIdentityManage2fa(data, axiosOptions);
|
|
379
|
+
};
|
|
380
|
+
return { mutationFn, ...mutationOptions };
|
|
381
|
+
};
|
|
382
|
+
var usePostApiIdentityManage2fa = (options, queryClient) => {
|
|
383
|
+
const mutationOptions = getPostApiIdentityManage2faMutationOptions(options);
|
|
384
|
+
return useMutation(mutationOptions, queryClient);
|
|
385
|
+
};
|
|
386
|
+
var getApiIdentityManageInfo = (options) => {
|
|
387
|
+
return axios.get(`/api/identity/manage/info`, options);
|
|
388
|
+
};
|
|
389
|
+
var getGetApiIdentityManageInfoQueryKey = () => {
|
|
390
|
+
return [`/api/identity/manage/info`];
|
|
391
|
+
};
|
|
392
|
+
var getGetApiIdentityManageInfoQueryOptions = (options) => {
|
|
393
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
394
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityManageInfoQueryKey();
|
|
395
|
+
const queryFn = ({
|
|
396
|
+
signal
|
|
397
|
+
}) => getApiIdentityManageInfo({ signal, ...axiosOptions });
|
|
398
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
399
|
+
};
|
|
400
|
+
function useGetApiIdentityManageInfo(options, queryClient) {
|
|
401
|
+
const queryOptions = getGetApiIdentityManageInfoQueryOptions(options);
|
|
402
|
+
const query = useQuery(queryOptions, queryClient);
|
|
403
|
+
query.queryKey = queryOptions.queryKey;
|
|
404
|
+
return query;
|
|
405
|
+
}
|
|
406
|
+
var postApiIdentityManageInfo = (updateAccountRequest, options) => {
|
|
407
|
+
return axios.post(`/api/identity/manage/info`, updateAccountRequest, options);
|
|
408
|
+
};
|
|
409
|
+
var getPostApiIdentityManageInfoMutationOptions = (options) => {
|
|
410
|
+
const mutationKey = ["postApiIdentityManageInfo"];
|
|
411
|
+
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 };
|
|
412
|
+
const mutationFn = (props) => {
|
|
413
|
+
const { data } = props ?? {};
|
|
414
|
+
return postApiIdentityManageInfo(data, axiosOptions);
|
|
415
|
+
};
|
|
416
|
+
return { mutationFn, ...mutationOptions };
|
|
417
|
+
};
|
|
418
|
+
var usePostApiIdentityManageInfo = (options, queryClient) => {
|
|
419
|
+
const mutationOptions = getPostApiIdentityManageInfoMutationOptions(options);
|
|
420
|
+
return useMutation(mutationOptions, queryClient);
|
|
421
|
+
};
|
|
422
|
+
var getApiIdentityAdminRoles = (options) => {
|
|
423
|
+
return axios.get(`/api/identity/admin/roles`, options);
|
|
424
|
+
};
|
|
425
|
+
var getGetApiIdentityAdminRolesQueryKey = () => {
|
|
426
|
+
return [`/api/identity/admin/roles`];
|
|
427
|
+
};
|
|
428
|
+
var getGetApiIdentityAdminRolesQueryOptions = (options) => {
|
|
429
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
430
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminRolesQueryKey();
|
|
431
|
+
const queryFn = ({
|
|
432
|
+
signal
|
|
433
|
+
}) => getApiIdentityAdminRoles({ signal, ...axiosOptions });
|
|
434
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
435
|
+
};
|
|
436
|
+
function useGetApiIdentityAdminRoles(options, queryClient) {
|
|
437
|
+
const queryOptions = getGetApiIdentityAdminRolesQueryOptions(options);
|
|
438
|
+
const query = useQuery(queryOptions, queryClient);
|
|
439
|
+
query.queryKey = queryOptions.queryKey;
|
|
440
|
+
return query;
|
|
441
|
+
}
|
|
442
|
+
var postApiIdentityAdminRoles = (roleNameRequest, options) => {
|
|
443
|
+
return axios.post(`/api/identity/admin/roles`, roleNameRequest, options);
|
|
444
|
+
};
|
|
445
|
+
var getPostApiIdentityAdminRolesMutationOptions = (options) => {
|
|
446
|
+
const mutationKey = ["postApiIdentityAdminRoles"];
|
|
447
|
+
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 };
|
|
448
|
+
const mutationFn = (props) => {
|
|
449
|
+
const { data } = props ?? {};
|
|
450
|
+
return postApiIdentityAdminRoles(data, axiosOptions);
|
|
451
|
+
};
|
|
452
|
+
return { mutationFn, ...mutationOptions };
|
|
453
|
+
};
|
|
454
|
+
var usePostApiIdentityAdminRoles = (options, queryClient) => {
|
|
455
|
+
const mutationOptions = getPostApiIdentityAdminRolesMutationOptions(options);
|
|
456
|
+
return useMutation(mutationOptions, queryClient);
|
|
457
|
+
};
|
|
458
|
+
var getApiIdentityAdminRolesId = (id, options) => {
|
|
459
|
+
return axios.get(`/api/identity/admin/roles/${id}`, options);
|
|
460
|
+
};
|
|
461
|
+
var getGetApiIdentityAdminRolesIdQueryKey = (id) => {
|
|
462
|
+
return [`/api/identity/admin/roles/${id}`];
|
|
463
|
+
};
|
|
464
|
+
var getGetApiIdentityAdminRolesIdQueryOptions = (id, options) => {
|
|
465
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
466
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminRolesIdQueryKey(id);
|
|
467
|
+
const queryFn = ({
|
|
468
|
+
signal
|
|
469
|
+
}) => getApiIdentityAdminRolesId(id, { signal, ...axiosOptions });
|
|
470
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
471
|
+
};
|
|
472
|
+
function useGetApiIdentityAdminRolesId(id, options, queryClient) {
|
|
473
|
+
const queryOptions = getGetApiIdentityAdminRolesIdQueryOptions(id, options);
|
|
474
|
+
const query = useQuery(queryOptions, queryClient);
|
|
475
|
+
query.queryKey = queryOptions.queryKey;
|
|
476
|
+
return query;
|
|
477
|
+
}
|
|
478
|
+
var putApiIdentityAdminRolesId = (id, roleNameRequest, options) => {
|
|
479
|
+
return axios.put(`/api/identity/admin/roles/${id}`, roleNameRequest, options);
|
|
480
|
+
};
|
|
481
|
+
var getPutApiIdentityAdminRolesIdMutationOptions = (options) => {
|
|
482
|
+
const mutationKey = ["putApiIdentityAdminRolesId"];
|
|
483
|
+
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 };
|
|
484
|
+
const mutationFn = (props) => {
|
|
485
|
+
const { id, data } = props ?? {};
|
|
486
|
+
return putApiIdentityAdminRolesId(id, data, axiosOptions);
|
|
487
|
+
};
|
|
488
|
+
return { mutationFn, ...mutationOptions };
|
|
489
|
+
};
|
|
490
|
+
var usePutApiIdentityAdminRolesId = (options, queryClient) => {
|
|
491
|
+
const mutationOptions = getPutApiIdentityAdminRolesIdMutationOptions(options);
|
|
492
|
+
return useMutation(mutationOptions, queryClient);
|
|
493
|
+
};
|
|
494
|
+
var deleteApiIdentityAdminRolesId = (id, options) => {
|
|
495
|
+
return axios.delete(`/api/identity/admin/roles/${id}`, options);
|
|
496
|
+
};
|
|
497
|
+
var getDeleteApiIdentityAdminRolesIdMutationOptions = (options) => {
|
|
498
|
+
const mutationKey = ["deleteApiIdentityAdminRolesId"];
|
|
499
|
+
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 };
|
|
500
|
+
const mutationFn = (props) => {
|
|
501
|
+
const { id } = props ?? {};
|
|
502
|
+
return deleteApiIdentityAdminRolesId(id, axiosOptions);
|
|
503
|
+
};
|
|
504
|
+
return { mutationFn, ...mutationOptions };
|
|
505
|
+
};
|
|
506
|
+
var useDeleteApiIdentityAdminRolesId = (options, queryClient) => {
|
|
507
|
+
const mutationOptions = getDeleteApiIdentityAdminRolesIdMutationOptions(options);
|
|
508
|
+
return useMutation(mutationOptions, queryClient);
|
|
509
|
+
};
|
|
510
|
+
var putApiIdentityAdminRolesIdPermissions = (id, setPermissionsRequest, options) => {
|
|
511
|
+
return axios.put(`/api/identity/admin/roles/${id}/permissions`, setPermissionsRequest, options);
|
|
512
|
+
};
|
|
513
|
+
var getPutApiIdentityAdminRolesIdPermissionsMutationOptions = (options) => {
|
|
514
|
+
const mutationKey = ["putApiIdentityAdminRolesIdPermissions"];
|
|
515
|
+
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 };
|
|
516
|
+
const mutationFn = (props) => {
|
|
517
|
+
const { id, data } = props ?? {};
|
|
518
|
+
return putApiIdentityAdminRolesIdPermissions(id, data, axiosOptions);
|
|
519
|
+
};
|
|
520
|
+
return { mutationFn, ...mutationOptions };
|
|
521
|
+
};
|
|
522
|
+
var usePutApiIdentityAdminRolesIdPermissions = (options, queryClient) => {
|
|
523
|
+
const mutationOptions = getPutApiIdentityAdminRolesIdPermissionsMutationOptions(options);
|
|
524
|
+
return useMutation(mutationOptions, queryClient);
|
|
525
|
+
};
|
|
526
|
+
var getApiIdentityAdminPermissions = (options) => {
|
|
527
|
+
return axios.get(`/api/identity/admin/permissions`, options);
|
|
528
|
+
};
|
|
529
|
+
var getGetApiIdentityAdminPermissionsQueryKey = () => {
|
|
530
|
+
return [`/api/identity/admin/permissions`];
|
|
531
|
+
};
|
|
532
|
+
var getGetApiIdentityAdminPermissionsQueryOptions = (options) => {
|
|
533
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
534
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminPermissionsQueryKey();
|
|
535
|
+
const queryFn = ({
|
|
536
|
+
signal
|
|
537
|
+
}) => getApiIdentityAdminPermissions({ signal, ...axiosOptions });
|
|
538
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
539
|
+
};
|
|
540
|
+
function useGetApiIdentityAdminPermissions(options, queryClient) {
|
|
541
|
+
const queryOptions = getGetApiIdentityAdminPermissionsQueryOptions(options);
|
|
542
|
+
const query = useQuery(queryOptions, queryClient);
|
|
543
|
+
query.queryKey = queryOptions.queryKey;
|
|
544
|
+
return query;
|
|
545
|
+
}
|
|
546
|
+
var getApiIdentityAdminUsers = (params, options) => {
|
|
547
|
+
return axios.get(`/api/identity/admin/users`, {
|
|
548
|
+
...options,
|
|
549
|
+
params: { ...params, ...options?.params }
|
|
550
|
+
});
|
|
551
|
+
};
|
|
552
|
+
var getGetApiIdentityAdminUsersQueryKey = (params) => {
|
|
553
|
+
return [`/api/identity/admin/users`, ...params ? [params] : []];
|
|
554
|
+
};
|
|
555
|
+
var getGetApiIdentityAdminUsersQueryOptions = (params, options) => {
|
|
556
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
557
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminUsersQueryKey(params);
|
|
558
|
+
const queryFn = ({
|
|
559
|
+
signal
|
|
560
|
+
}) => getApiIdentityAdminUsers(params, { signal, ...axiosOptions });
|
|
561
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
562
|
+
};
|
|
563
|
+
function useGetApiIdentityAdminUsers(params, options, queryClient) {
|
|
564
|
+
const queryOptions = getGetApiIdentityAdminUsersQueryOptions(params, options);
|
|
565
|
+
const query = useQuery(queryOptions, queryClient);
|
|
566
|
+
query.queryKey = queryOptions.queryKey;
|
|
567
|
+
return query;
|
|
568
|
+
}
|
|
569
|
+
var getApiIdentityAdminUsersIdRoles = (id, options) => {
|
|
570
|
+
return axios.get(`/api/identity/admin/users/${id}/roles`, options);
|
|
571
|
+
};
|
|
572
|
+
var getGetApiIdentityAdminUsersIdRolesQueryKey = (id) => {
|
|
573
|
+
return [`/api/identity/admin/users/${id}/roles`];
|
|
574
|
+
};
|
|
575
|
+
var getGetApiIdentityAdminUsersIdRolesQueryOptions = (id, options) => {
|
|
576
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
577
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminUsersIdRolesQueryKey(id);
|
|
578
|
+
const queryFn = ({
|
|
579
|
+
signal
|
|
580
|
+
}) => getApiIdentityAdminUsersIdRoles(id, { signal, ...axiosOptions });
|
|
581
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
582
|
+
};
|
|
583
|
+
function useGetApiIdentityAdminUsersIdRoles(id, options, queryClient) {
|
|
584
|
+
const queryOptions = getGetApiIdentityAdminUsersIdRolesQueryOptions(id, options);
|
|
585
|
+
const query = useQuery(queryOptions, queryClient);
|
|
586
|
+
query.queryKey = queryOptions.queryKey;
|
|
587
|
+
return query;
|
|
588
|
+
}
|
|
589
|
+
var putApiIdentityAdminUsersIdRoles = (id, setUserRolesRequest, options) => {
|
|
590
|
+
return axios.put(`/api/identity/admin/users/${id}/roles`, setUserRolesRequest, options);
|
|
591
|
+
};
|
|
592
|
+
var getPutApiIdentityAdminUsersIdRolesMutationOptions = (options) => {
|
|
593
|
+
const mutationKey = ["putApiIdentityAdminUsersIdRoles"];
|
|
594
|
+
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 };
|
|
595
|
+
const mutationFn = (props) => {
|
|
596
|
+
const { id, data } = props ?? {};
|
|
597
|
+
return putApiIdentityAdminUsersIdRoles(id, data, axiosOptions);
|
|
598
|
+
};
|
|
599
|
+
return { mutationFn, ...mutationOptions };
|
|
600
|
+
};
|
|
601
|
+
var usePutApiIdentityAdminUsersIdRoles = (options, queryClient) => {
|
|
602
|
+
const mutationOptions = getPutApiIdentityAdminUsersIdRolesMutationOptions(options);
|
|
603
|
+
return useMutation(mutationOptions, queryClient);
|
|
604
|
+
};
|
|
605
|
+
var getApiIdentityAdminUsersIdPermissions = (id, options) => {
|
|
606
|
+
return axios.get(`/api/identity/admin/users/${id}/permissions`, options);
|
|
607
|
+
};
|
|
608
|
+
var getGetApiIdentityAdminUsersIdPermissionsQueryKey = (id) => {
|
|
609
|
+
return [`/api/identity/admin/users/${id}/permissions`];
|
|
610
|
+
};
|
|
611
|
+
var getGetApiIdentityAdminUsersIdPermissionsQueryOptions = (id, options) => {
|
|
612
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
613
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiIdentityAdminUsersIdPermissionsQueryKey(id);
|
|
614
|
+
const queryFn = ({ signal }) => getApiIdentityAdminUsersIdPermissions(id, { signal, ...axiosOptions });
|
|
615
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
616
|
+
};
|
|
617
|
+
function useGetApiIdentityAdminUsersIdPermissions(id, options, queryClient) {
|
|
618
|
+
const queryOptions = getGetApiIdentityAdminUsersIdPermissionsQueryOptions(id, options);
|
|
619
|
+
const query = useQuery(queryOptions, queryClient);
|
|
620
|
+
query.queryKey = queryOptions.queryKey;
|
|
621
|
+
return query;
|
|
622
|
+
}
|
|
623
|
+
var putApiIdentityAdminUsersIdActive = (id, setUserActiveRequest, options) => {
|
|
624
|
+
return axios.put(`/api/identity/admin/users/${id}/active`, setUserActiveRequest, options);
|
|
625
|
+
};
|
|
626
|
+
var getPutApiIdentityAdminUsersIdActiveMutationOptions = (options) => {
|
|
627
|
+
const mutationKey = ["putApiIdentityAdminUsersIdActive"];
|
|
628
|
+
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 };
|
|
629
|
+
const mutationFn = (props) => {
|
|
630
|
+
const { id, data } = props ?? {};
|
|
631
|
+
return putApiIdentityAdminUsersIdActive(id, data, axiosOptions);
|
|
632
|
+
};
|
|
633
|
+
return { mutationFn, ...mutationOptions };
|
|
634
|
+
};
|
|
635
|
+
var usePutApiIdentityAdminUsersIdActive = (options, queryClient) => {
|
|
636
|
+
const mutationOptions = getPutApiIdentityAdminUsersIdActiveMutationOptions(options);
|
|
637
|
+
return useMutation(mutationOptions, queryClient);
|
|
638
|
+
};
|
|
639
|
+
var postApiIdentityAdminUsersIdLogout = (id, options) => {
|
|
640
|
+
return axios.post(`/api/identity/admin/users/${id}/logout`, void 0, options);
|
|
641
|
+
};
|
|
642
|
+
var getPostApiIdentityAdminUsersIdLogoutMutationOptions = (options) => {
|
|
643
|
+
const mutationKey = ["postApiIdentityAdminUsersIdLogout"];
|
|
644
|
+
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 };
|
|
645
|
+
const mutationFn = (props) => {
|
|
646
|
+
const { id } = props ?? {};
|
|
647
|
+
return postApiIdentityAdminUsersIdLogout(id, axiosOptions);
|
|
648
|
+
};
|
|
649
|
+
return { mutationFn, ...mutationOptions };
|
|
650
|
+
};
|
|
651
|
+
var usePostApiIdentityAdminUsersIdLogout = (options, queryClient) => {
|
|
652
|
+
const mutationOptions = getPostApiIdentityAdminUsersIdLogoutMutationOptions(options);
|
|
653
|
+
return useMutation(mutationOptions, queryClient);
|
|
654
|
+
};
|
|
267
655
|
|
|
268
656
|
// src/gen/v1.zod.ts
|
|
269
657
|
import * as zod from "zod";
|
|
270
|
-
var
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
zod.strictObject({
|
|
274
|
-
warehouseId: zod.uuid(),
|
|
275
|
-
name: zod.string()
|
|
276
|
-
})
|
|
277
|
-
).nullish(),
|
|
278
|
-
success: zod.boolean().optional(),
|
|
279
|
-
statusCode: zod.number().optional(),
|
|
280
|
-
message: zod.string().nullish(),
|
|
281
|
-
errors: zod.array(zod.string()).nullish(),
|
|
282
|
-
requestId: zod.string().nullish(),
|
|
283
|
-
timestamp: zod.iso.datetime({}).optional()
|
|
658
|
+
var getWarehouseOptionsResponseItem = zod.strictObject({
|
|
659
|
+
warehouseId: zod.uuid(),
|
|
660
|
+
name: zod.string()
|
|
284
661
|
});
|
|
662
|
+
var getWarehouseOptionsResponse = zod.array(getWarehouseOptionsResponseItem);
|
|
285
663
|
var listWarehousesQueryPageDefault = 1;
|
|
286
664
|
var listWarehousesQueryPageSizeDefault = 10;
|
|
287
665
|
var listWarehousesQueryParams = zod.strictObject({
|
|
@@ -289,61 +667,7 @@ var listWarehousesQueryParams = zod.strictObject({
|
|
|
289
667
|
pageSize: zod.coerce.number().default(listWarehousesQueryPageSizeDefault).describe("Number of items per page (max 100).")
|
|
290
668
|
});
|
|
291
669
|
var listWarehousesResponse = zod.strictObject({
|
|
292
|
-
|
|
293
|
-
data: zod.union([
|
|
294
|
-
zod.null(),
|
|
295
|
-
zod.strictObject({
|
|
296
|
-
items: zod.array(
|
|
297
|
-
zod.strictObject({
|
|
298
|
-
warehouseId: zod.uuid(),
|
|
299
|
-
name: zod.string(),
|
|
300
|
-
isActive: zod.boolean(),
|
|
301
|
-
personInCharge: zod.strictObject({
|
|
302
|
-
name: zod.string(),
|
|
303
|
-
phone: zod.string().nullable()
|
|
304
|
-
}),
|
|
305
|
-
address: zod.strictObject({
|
|
306
|
-
addressId: zod.uuid(),
|
|
307
|
-
subDistrictName: zod.string(),
|
|
308
|
-
districtName: zod.string(),
|
|
309
|
-
cityName: zod.string(),
|
|
310
|
-
provinceName: zod.string(),
|
|
311
|
-
zipCode: zod.string()
|
|
312
|
-
}),
|
|
313
|
-
fullAddressText: zod.string().nullish()
|
|
314
|
-
})
|
|
315
|
-
),
|
|
316
|
-
page: zod.number(),
|
|
317
|
-
pageSize: zod.number(),
|
|
318
|
-
totalCount: zod.number(),
|
|
319
|
-
totalPages: zod.number().optional(),
|
|
320
|
-
hasNextPage: zod.boolean().optional(),
|
|
321
|
-
hasPreviousPage: zod.boolean().optional()
|
|
322
|
-
})
|
|
323
|
-
]).optional(),
|
|
324
|
-
success: zod.boolean().optional(),
|
|
325
|
-
statusCode: zod.number().optional(),
|
|
326
|
-
message: zod.string().nullish(),
|
|
327
|
-
errors: zod.array(zod.string()).nullish(),
|
|
328
|
-
requestId: zod.string().nullish(),
|
|
329
|
-
timestamp: zod.iso.datetime({}).optional()
|
|
330
|
-
});
|
|
331
|
-
var createWarehouseBody = zod.strictObject({
|
|
332
|
-
name: zod.string(),
|
|
333
|
-
addressId: zod.uuid(),
|
|
334
|
-
personInCharge: zod.strictObject({
|
|
335
|
-
name: zod.string(),
|
|
336
|
-
phone: zod.string().nullable()
|
|
337
|
-
}),
|
|
338
|
-
fullAddressText: zod.string().nullish()
|
|
339
|
-
});
|
|
340
|
-
var getWarehouseByIdParams = zod.strictObject({
|
|
341
|
-
id: zod.uuid().describe("Warehouse identifier.")
|
|
342
|
-
});
|
|
343
|
-
var getWarehouseByIdResponse = zod.strictObject({
|
|
344
|
-
code: zod.string().nullish(),
|
|
345
|
-
data: zod.union([
|
|
346
|
-
zod.null(),
|
|
670
|
+
items: zod.array(
|
|
347
671
|
zod.strictObject({
|
|
348
672
|
warehouseId: zod.uuid(),
|
|
349
673
|
name: zod.string(),
|
|
@@ -362,13 +686,43 @@ var getWarehouseByIdResponse = zod.strictObject({
|
|
|
362
686
|
}),
|
|
363
687
|
fullAddressText: zod.string().nullish()
|
|
364
688
|
})
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
689
|
+
),
|
|
690
|
+
page: zod.number(),
|
|
691
|
+
pageSize: zod.number(),
|
|
692
|
+
totalCount: zod.number(),
|
|
693
|
+
totalPages: zod.number().optional(),
|
|
694
|
+
hasNextPage: zod.boolean().optional(),
|
|
695
|
+
hasPreviousPage: zod.boolean().optional()
|
|
696
|
+
});
|
|
697
|
+
var createWarehouseBody = zod.strictObject({
|
|
698
|
+
name: zod.string(),
|
|
699
|
+
addressId: zod.uuid(),
|
|
700
|
+
personInCharge: zod.strictObject({
|
|
701
|
+
name: zod.string(),
|
|
702
|
+
phone: zod.string().nullable()
|
|
703
|
+
}),
|
|
704
|
+
fullAddressText: zod.string().nullish()
|
|
705
|
+
});
|
|
706
|
+
var getWarehouseByIdParams = zod.strictObject({
|
|
707
|
+
id: zod.uuid().describe("Warehouse identifier.")
|
|
708
|
+
});
|
|
709
|
+
var getWarehouseByIdResponse = zod.strictObject({
|
|
710
|
+
warehouseId: zod.uuid(),
|
|
711
|
+
name: zod.string(),
|
|
712
|
+
isActive: zod.boolean(),
|
|
713
|
+
personInCharge: zod.strictObject({
|
|
714
|
+
name: zod.string(),
|
|
715
|
+
phone: zod.string().nullable()
|
|
716
|
+
}),
|
|
717
|
+
address: zod.strictObject({
|
|
718
|
+
addressId: zod.uuid(),
|
|
719
|
+
subDistrictName: zod.string(),
|
|
720
|
+
districtName: zod.string(),
|
|
721
|
+
cityName: zod.string(),
|
|
722
|
+
provinceName: zod.string(),
|
|
723
|
+
zipCode: zod.string()
|
|
724
|
+
}),
|
|
725
|
+
fullAddressText: zod.string().nullish()
|
|
372
726
|
});
|
|
373
727
|
var updateWarehouseParams = zod.strictObject({
|
|
374
728
|
id: zod.uuid().describe("Warehouse identifier.")
|
|
@@ -394,28 +748,18 @@ var searchAddressesQueryParams = zod.strictObject({
|
|
|
394
748
|
keyword: zod.coerce.string(),
|
|
395
749
|
limit: zod.coerce.number().default(searchAddressesQueryLimitDefault)
|
|
396
750
|
});
|
|
397
|
-
var
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
districtName: zod.string().optional(),
|
|
408
|
-
subDistrictName: zod.string().optional(),
|
|
409
|
-
zipCode: zod.string().optional()
|
|
410
|
-
})
|
|
411
|
-
).nullish(),
|
|
412
|
-
success: zod.boolean().optional(),
|
|
413
|
-
statusCode: zod.number().optional(),
|
|
414
|
-
message: zod.string().nullish(),
|
|
415
|
-
errors: zod.array(zod.string()).nullish(),
|
|
416
|
-
requestId: zod.string().nullish(),
|
|
417
|
-
timestamp: zod.iso.datetime({}).optional()
|
|
751
|
+
var searchAddressesResponseItem = zod.strictObject({
|
|
752
|
+
addressId: zod.uuid().optional(),
|
|
753
|
+
externalId: zod.string().nullish(),
|
|
754
|
+
destinationCode: zod.string().optional(),
|
|
755
|
+
originCode: zod.string().optional(),
|
|
756
|
+
provinceName: zod.string().optional(),
|
|
757
|
+
cityName: zod.string().optional(),
|
|
758
|
+
districtName: zod.string().optional(),
|
|
759
|
+
subDistrictName: zod.string().optional(),
|
|
760
|
+
zipCode: zod.string().optional()
|
|
418
761
|
});
|
|
762
|
+
var searchAddressesResponse = zod.array(searchAddressesResponseItem);
|
|
419
763
|
var createStockItemsBody = zod.strictObject({
|
|
420
764
|
name: zod.string(),
|
|
421
765
|
sku: zod.string(),
|
|
@@ -434,38 +778,26 @@ var listStockItemsQueryParams = zod.strictObject({
|
|
|
434
778
|
warehouseId: zod.uuid().optional().describe("Filters by warehouse.")
|
|
435
779
|
});
|
|
436
780
|
var listStockItemsResponse = zod.strictObject({
|
|
437
|
-
|
|
438
|
-
data: zod.union([
|
|
439
|
-
zod.null(),
|
|
781
|
+
items: zod.array(
|
|
440
782
|
zod.strictObject({
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
reservedQty: zod.number().optional(),
|
|
452
|
-
availableQty: zod.number().optional()
|
|
453
|
-
})
|
|
454
|
-
),
|
|
455
|
-
page: zod.number(),
|
|
456
|
-
pageSize: zod.number(),
|
|
457
|
-
totalCount: zod.number(),
|
|
458
|
-
totalPages: zod.number().optional(),
|
|
459
|
-
hasNextPage: zod.boolean().optional(),
|
|
460
|
-
hasPreviousPage: zod.boolean().optional()
|
|
783
|
+
id: zod.uuid().optional(),
|
|
784
|
+
sku: zod.string().optional(),
|
|
785
|
+
name: zod.string().optional(),
|
|
786
|
+
unit: zod.string().optional(),
|
|
787
|
+
isActive: zod.boolean().optional(),
|
|
788
|
+
warehouseId: zod.uuid().nullish(),
|
|
789
|
+
warehouseName: zod.string().nullish(),
|
|
790
|
+
onHandQty: zod.number().optional(),
|
|
791
|
+
reservedQty: zod.number().optional(),
|
|
792
|
+
availableQty: zod.number().optional()
|
|
461
793
|
})
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
794
|
+
),
|
|
795
|
+
page: zod.number(),
|
|
796
|
+
pageSize: zod.number(),
|
|
797
|
+
totalCount: zod.number(),
|
|
798
|
+
totalPages: zod.number().optional(),
|
|
799
|
+
hasNextPage: zod.boolean().optional(),
|
|
800
|
+
hasPreviousPage: zod.boolean().optional()
|
|
469
801
|
});
|
|
470
802
|
var createBatchBody = zod.strictObject({
|
|
471
803
|
itemId: zod.uuid(),
|
|
@@ -508,43 +840,163 @@ var listStockMovementsQueryParams = zod.strictObject({
|
|
|
508
840
|
descending: zod.coerce.boolean().optional().describe("Sort descending when true.")
|
|
509
841
|
});
|
|
510
842
|
var listStockMovementsResponse = zod.strictObject({
|
|
511
|
-
|
|
512
|
-
data: zod.union([
|
|
513
|
-
zod.null(),
|
|
843
|
+
items: zod.array(
|
|
514
844
|
zod.strictObject({
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
recordedBy: zod.uuid().optional(),
|
|
531
|
-
receivedBy: zod.string().nullish()
|
|
532
|
-
})
|
|
533
|
-
),
|
|
534
|
-
page: zod.number(),
|
|
535
|
-
pageSize: zod.number(),
|
|
536
|
-
totalCount: zod.number(),
|
|
537
|
-
totalPages: zod.number().optional(),
|
|
538
|
-
hasNextPage: zod.boolean().optional(),
|
|
539
|
-
hasPreviousPage: zod.boolean().optional()
|
|
845
|
+
id: zod.uuid().optional(),
|
|
846
|
+
itemId: zod.uuid().optional(),
|
|
847
|
+
itemName: zod.string().optional(),
|
|
848
|
+
warehouseId: zod.uuid().optional(),
|
|
849
|
+
warehouseName: zod.string().nullish(),
|
|
850
|
+
batchId: zod.uuid().nullish(),
|
|
851
|
+
direction: zod.string().optional(),
|
|
852
|
+
quantity: zod.number().optional(),
|
|
853
|
+
sourceType: zod.string().optional(),
|
|
854
|
+
sourceReferenceId: zod.uuid().nullish(),
|
|
855
|
+
externalReferenceNo: zod.string().nullish(),
|
|
856
|
+
note: zod.string().nullish(),
|
|
857
|
+
createdAt: zod.iso.datetime({}).optional(),
|
|
858
|
+
recordedBy: zod.uuid().optional(),
|
|
859
|
+
receivedBy: zod.string().nullish()
|
|
540
860
|
})
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
861
|
+
),
|
|
862
|
+
page: zod.number(),
|
|
863
|
+
pageSize: zod.number(),
|
|
864
|
+
totalCount: zod.number(),
|
|
865
|
+
totalPages: zod.number().optional(),
|
|
866
|
+
hasNextPage: zod.boolean().optional(),
|
|
867
|
+
hasPreviousPage: zod.boolean().optional()
|
|
868
|
+
});
|
|
869
|
+
var getApiIdentityAntiforgeryResponse = zod.strictObject({
|
|
870
|
+
requestToken: zod.string()
|
|
871
|
+
});
|
|
872
|
+
var postApiIdentityLoginBody = zod.strictObject({
|
|
873
|
+
email: zod.string(),
|
|
874
|
+
password: zod.string(),
|
|
875
|
+
twoFactorCode: zod.string().nullable(),
|
|
876
|
+
twoFactorRecoveryCode: zod.string().nullable()
|
|
877
|
+
});
|
|
878
|
+
var postApiIdentityLoginResponse = zod.strictObject({
|
|
879
|
+
requiresTwoFactor: zod.boolean()
|
|
880
|
+
});
|
|
881
|
+
var postApiIdentityForgotPasswordBody = zod.strictObject({
|
|
882
|
+
email: zod.string()
|
|
883
|
+
});
|
|
884
|
+
var postApiIdentityResetPasswordBody = zod.strictObject({
|
|
885
|
+
email: zod.string(),
|
|
886
|
+
resetCode: zod.string(),
|
|
887
|
+
newPassword: zod.string()
|
|
888
|
+
});
|
|
889
|
+
var getApiIdentityManage2faResponse = zod.strictObject({
|
|
890
|
+
sharedKey: zod.string().nullable(),
|
|
891
|
+
recoveryCodes: zod.array(zod.string()).nullable(),
|
|
892
|
+
recoveryCodesLeft: zod.number(),
|
|
893
|
+
isTwoFactorEnabled: zod.boolean(),
|
|
894
|
+
isMachineRemembered: zod.boolean()
|
|
895
|
+
});
|
|
896
|
+
var postApiIdentityManage2faBody = zod.strictObject({
|
|
897
|
+
enable: zod.boolean().nullable(),
|
|
898
|
+
resetSharedKey: zod.boolean(),
|
|
899
|
+
resetRecoveryCodes: zod.boolean(),
|
|
900
|
+
forgetMachine: zod.boolean(),
|
|
901
|
+
twoFactorCode: zod.string().nullable(),
|
|
902
|
+
password: zod.string().nullable()
|
|
903
|
+
});
|
|
904
|
+
var postApiIdentityManage2faResponse = zod.strictObject({
|
|
905
|
+
sharedKey: zod.string().nullable(),
|
|
906
|
+
recoveryCodes: zod.array(zod.string()).nullable(),
|
|
907
|
+
recoveryCodesLeft: zod.number(),
|
|
908
|
+
isTwoFactorEnabled: zod.boolean(),
|
|
909
|
+
isMachineRemembered: zod.boolean()
|
|
910
|
+
});
|
|
911
|
+
var getApiIdentityManageInfoResponse = zod.strictObject({
|
|
912
|
+
email: zod.string(),
|
|
913
|
+
isEmailConfirmed: zod.boolean()
|
|
914
|
+
});
|
|
915
|
+
var postApiIdentityManageInfoBody = zod.strictObject({
|
|
916
|
+
newEmail: zod.string().nullable(),
|
|
917
|
+
newPassword: zod.string().nullable(),
|
|
918
|
+
oldPassword: zod.string().nullable()
|
|
919
|
+
});
|
|
920
|
+
var postApiIdentityManageInfoResponse = zod.strictObject({
|
|
921
|
+
email: zod.string(),
|
|
922
|
+
isEmailConfirmed: zod.boolean()
|
|
923
|
+
});
|
|
924
|
+
var getApiIdentityAdminRolesResponseItem = zod.strictObject({
|
|
925
|
+
id: zod.uuid(),
|
|
926
|
+
name: zod.string(),
|
|
927
|
+
permissions: zod.array(zod.string())
|
|
928
|
+
});
|
|
929
|
+
var getApiIdentityAdminRolesResponse = zod.array(getApiIdentityAdminRolesResponseItem);
|
|
930
|
+
var postApiIdentityAdminRolesBody = zod.strictObject({
|
|
931
|
+
name: zod.string()
|
|
932
|
+
});
|
|
933
|
+
var getApiIdentityAdminRolesIdParams = zod.strictObject({
|
|
934
|
+
id: zod.uuid()
|
|
935
|
+
});
|
|
936
|
+
var getApiIdentityAdminRolesIdResponse = zod.strictObject({
|
|
937
|
+
id: zod.uuid(),
|
|
938
|
+
name: zod.string(),
|
|
939
|
+
permissions: zod.array(zod.string())
|
|
940
|
+
});
|
|
941
|
+
var putApiIdentityAdminRolesIdParams = zod.strictObject({
|
|
942
|
+
id: zod.uuid()
|
|
943
|
+
});
|
|
944
|
+
var putApiIdentityAdminRolesIdBody = zod.strictObject({
|
|
945
|
+
name: zod.string()
|
|
946
|
+
});
|
|
947
|
+
var deleteApiIdentityAdminRolesIdParams = zod.strictObject({
|
|
948
|
+
id: zod.uuid()
|
|
949
|
+
});
|
|
950
|
+
var putApiIdentityAdminRolesIdPermissionsParams = zod.strictObject({
|
|
951
|
+
id: zod.uuid()
|
|
952
|
+
});
|
|
953
|
+
var putApiIdentityAdminRolesIdPermissionsBody = zod.strictObject({
|
|
954
|
+
codes: zod.array(zod.string())
|
|
955
|
+
});
|
|
956
|
+
var getApiIdentityAdminPermissionsResponseItem = zod.strictObject({
|
|
957
|
+
module: zod.string(),
|
|
958
|
+
code: zod.string(),
|
|
959
|
+
description: zod.string()
|
|
960
|
+
});
|
|
961
|
+
var getApiIdentityAdminPermissionsResponse = zod.array(
|
|
962
|
+
getApiIdentityAdminPermissionsResponseItem
|
|
963
|
+
);
|
|
964
|
+
var getApiIdentityAdminUsersQueryParams = zod.strictObject({
|
|
965
|
+
email: zod.coerce.string()
|
|
966
|
+
});
|
|
967
|
+
var getApiIdentityAdminUsersResponse = zod.strictObject({
|
|
968
|
+
id: zod.uuid(),
|
|
969
|
+
email: zod.string(),
|
|
970
|
+
isActive: zod.boolean()
|
|
971
|
+
});
|
|
972
|
+
var getApiIdentityAdminUsersIdRolesParams = zod.strictObject({
|
|
973
|
+
id: zod.uuid()
|
|
974
|
+
});
|
|
975
|
+
var getApiIdentityAdminUsersIdRolesResponseItem = zod.string();
|
|
976
|
+
var getApiIdentityAdminUsersIdRolesResponse = zod.array(
|
|
977
|
+
getApiIdentityAdminUsersIdRolesResponseItem
|
|
978
|
+
);
|
|
979
|
+
var putApiIdentityAdminUsersIdRolesParams = zod.strictObject({
|
|
980
|
+
id: zod.uuid()
|
|
981
|
+
});
|
|
982
|
+
var putApiIdentityAdminUsersIdRolesBody = zod.strictObject({
|
|
983
|
+
roles: zod.array(zod.string())
|
|
984
|
+
});
|
|
985
|
+
var getApiIdentityAdminUsersIdPermissionsParams = zod.strictObject({
|
|
986
|
+
id: zod.uuid()
|
|
987
|
+
});
|
|
988
|
+
var getApiIdentityAdminUsersIdPermissionsResponseItem = zod.string();
|
|
989
|
+
var getApiIdentityAdminUsersIdPermissionsResponse = zod.array(
|
|
990
|
+
getApiIdentityAdminUsersIdPermissionsResponseItem
|
|
991
|
+
);
|
|
992
|
+
var putApiIdentityAdminUsersIdActiveParams = zod.strictObject({
|
|
993
|
+
id: zod.uuid()
|
|
994
|
+
});
|
|
995
|
+
var putApiIdentityAdminUsersIdActiveBody = zod.strictObject({
|
|
996
|
+
isActive: zod.boolean()
|
|
997
|
+
});
|
|
998
|
+
var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
999
|
+
id: zod.uuid()
|
|
548
1000
|
});
|
|
549
1001
|
export {
|
|
550
1002
|
ConsumeBatchSourceType,
|
|
@@ -558,13 +1010,60 @@ export {
|
|
|
558
1010
|
createStockItemsBody,
|
|
559
1011
|
createWarehouse,
|
|
560
1012
|
createWarehouseBody,
|
|
1013
|
+
deleteApiIdentityAdminRolesId,
|
|
1014
|
+
deleteApiIdentityAdminRolesIdParams,
|
|
561
1015
|
deleteWarehouse,
|
|
562
1016
|
deleteWarehouseParams,
|
|
1017
|
+
getApiIdentityAdminPermissions,
|
|
1018
|
+
getApiIdentityAdminPermissionsResponse,
|
|
1019
|
+
getApiIdentityAdminPermissionsResponseItem,
|
|
1020
|
+
getApiIdentityAdminRoles,
|
|
1021
|
+
getApiIdentityAdminRolesId,
|
|
1022
|
+
getApiIdentityAdminRolesIdParams,
|
|
1023
|
+
getApiIdentityAdminRolesIdResponse,
|
|
1024
|
+
getApiIdentityAdminRolesResponse,
|
|
1025
|
+
getApiIdentityAdminRolesResponseItem,
|
|
1026
|
+
getApiIdentityAdminUsers,
|
|
1027
|
+
getApiIdentityAdminUsersIdPermissions,
|
|
1028
|
+
getApiIdentityAdminUsersIdPermissionsParams,
|
|
1029
|
+
getApiIdentityAdminUsersIdPermissionsResponse,
|
|
1030
|
+
getApiIdentityAdminUsersIdPermissionsResponseItem,
|
|
1031
|
+
getApiIdentityAdminUsersIdRoles,
|
|
1032
|
+
getApiIdentityAdminUsersIdRolesParams,
|
|
1033
|
+
getApiIdentityAdminUsersIdRolesResponse,
|
|
1034
|
+
getApiIdentityAdminUsersIdRolesResponseItem,
|
|
1035
|
+
getApiIdentityAdminUsersQueryParams,
|
|
1036
|
+
getApiIdentityAdminUsersResponse,
|
|
1037
|
+
getApiIdentityAntiforgery,
|
|
1038
|
+
getApiIdentityAntiforgeryResponse,
|
|
1039
|
+
getApiIdentityManage2fa,
|
|
1040
|
+
getApiIdentityManage2faResponse,
|
|
1041
|
+
getApiIdentityManageInfo,
|
|
1042
|
+
getApiIdentityManageInfoResponse,
|
|
563
1043
|
getConsumeBatchMutationOptions,
|
|
564
1044
|
getCreateBatchMutationOptions,
|
|
565
1045
|
getCreateStockItemsMutationOptions,
|
|
566
1046
|
getCreateWarehouseMutationOptions,
|
|
1047
|
+
getDeleteApiIdentityAdminRolesIdMutationOptions,
|
|
567
1048
|
getDeleteWarehouseMutationOptions,
|
|
1049
|
+
getGetApiIdentityAdminPermissionsQueryKey,
|
|
1050
|
+
getGetApiIdentityAdminPermissionsQueryOptions,
|
|
1051
|
+
getGetApiIdentityAdminRolesIdQueryKey,
|
|
1052
|
+
getGetApiIdentityAdminRolesIdQueryOptions,
|
|
1053
|
+
getGetApiIdentityAdminRolesQueryKey,
|
|
1054
|
+
getGetApiIdentityAdminRolesQueryOptions,
|
|
1055
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryKey,
|
|
1056
|
+
getGetApiIdentityAdminUsersIdPermissionsQueryOptions,
|
|
1057
|
+
getGetApiIdentityAdminUsersIdRolesQueryKey,
|
|
1058
|
+
getGetApiIdentityAdminUsersIdRolesQueryOptions,
|
|
1059
|
+
getGetApiIdentityAdminUsersQueryKey,
|
|
1060
|
+
getGetApiIdentityAdminUsersQueryOptions,
|
|
1061
|
+
getGetApiIdentityAntiforgeryQueryKey,
|
|
1062
|
+
getGetApiIdentityAntiforgeryQueryOptions,
|
|
1063
|
+
getGetApiIdentityManage2faQueryKey,
|
|
1064
|
+
getGetApiIdentityManage2faQueryOptions,
|
|
1065
|
+
getGetApiIdentityManageInfoQueryKey,
|
|
1066
|
+
getGetApiIdentityManageInfoQueryOptions,
|
|
568
1067
|
getGetHealthQueryKey,
|
|
569
1068
|
getGetHealthQueryOptions,
|
|
570
1069
|
getGetWarehouseByIdQueryKey,
|
|
@@ -578,6 +1077,18 @@ export {
|
|
|
578
1077
|
getListStockMovementsQueryOptions,
|
|
579
1078
|
getListWarehousesQueryKey,
|
|
580
1079
|
getListWarehousesQueryOptions,
|
|
1080
|
+
getPostApiIdentityAdminRolesMutationOptions,
|
|
1081
|
+
getPostApiIdentityAdminUsersIdLogoutMutationOptions,
|
|
1082
|
+
getPostApiIdentityForgotPasswordMutationOptions,
|
|
1083
|
+
getPostApiIdentityLoginMutationOptions,
|
|
1084
|
+
getPostApiIdentityLogoutMutationOptions,
|
|
1085
|
+
getPostApiIdentityManage2faMutationOptions,
|
|
1086
|
+
getPostApiIdentityManageInfoMutationOptions,
|
|
1087
|
+
getPostApiIdentityResetPasswordMutationOptions,
|
|
1088
|
+
getPutApiIdentityAdminRolesIdMutationOptions,
|
|
1089
|
+
getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
|
|
1090
|
+
getPutApiIdentityAdminUsersIdActiveMutationOptions,
|
|
1091
|
+
getPutApiIdentityAdminUsersIdRolesMutationOptions,
|
|
581
1092
|
getSearchAddressesQueryKey,
|
|
582
1093
|
getSearchAddressesQueryOptions,
|
|
583
1094
|
getToggleWarehouseStatusMutationOptions,
|
|
@@ -587,6 +1098,7 @@ export {
|
|
|
587
1098
|
getWarehouseByIdResponse,
|
|
588
1099
|
getWarehouseOptions,
|
|
589
1100
|
getWarehouseOptionsResponse,
|
|
1101
|
+
getWarehouseOptionsResponseItem,
|
|
590
1102
|
listStockItems,
|
|
591
1103
|
listStockItemsQueryDescendingDefault,
|
|
592
1104
|
listStockItemsQueryPageDefault,
|
|
@@ -604,10 +1116,41 @@ export {
|
|
|
604
1116
|
listWarehousesQueryPageSizeDefault,
|
|
605
1117
|
listWarehousesQueryParams,
|
|
606
1118
|
listWarehousesResponse,
|
|
1119
|
+
postApiIdentityAdminRoles,
|
|
1120
|
+
postApiIdentityAdminRolesBody,
|
|
1121
|
+
postApiIdentityAdminUsersIdLogout,
|
|
1122
|
+
postApiIdentityAdminUsersIdLogoutParams,
|
|
1123
|
+
postApiIdentityForgotPassword,
|
|
1124
|
+
postApiIdentityForgotPasswordBody,
|
|
1125
|
+
postApiIdentityLogin,
|
|
1126
|
+
postApiIdentityLoginBody,
|
|
1127
|
+
postApiIdentityLoginResponse,
|
|
1128
|
+
postApiIdentityLogout,
|
|
1129
|
+
postApiIdentityManage2fa,
|
|
1130
|
+
postApiIdentityManage2faBody,
|
|
1131
|
+
postApiIdentityManage2faResponse,
|
|
1132
|
+
postApiIdentityManageInfo,
|
|
1133
|
+
postApiIdentityManageInfoBody,
|
|
1134
|
+
postApiIdentityManageInfoResponse,
|
|
1135
|
+
postApiIdentityResetPassword,
|
|
1136
|
+
postApiIdentityResetPasswordBody,
|
|
1137
|
+
putApiIdentityAdminRolesId,
|
|
1138
|
+
putApiIdentityAdminRolesIdBody,
|
|
1139
|
+
putApiIdentityAdminRolesIdParams,
|
|
1140
|
+
putApiIdentityAdminRolesIdPermissions,
|
|
1141
|
+
putApiIdentityAdminRolesIdPermissionsBody,
|
|
1142
|
+
putApiIdentityAdminRolesIdPermissionsParams,
|
|
1143
|
+
putApiIdentityAdminUsersIdActive,
|
|
1144
|
+
putApiIdentityAdminUsersIdActiveBody,
|
|
1145
|
+
putApiIdentityAdminUsersIdActiveParams,
|
|
1146
|
+
putApiIdentityAdminUsersIdRoles,
|
|
1147
|
+
putApiIdentityAdminUsersIdRolesBody,
|
|
1148
|
+
putApiIdentityAdminUsersIdRolesParams,
|
|
607
1149
|
searchAddresses,
|
|
608
1150
|
searchAddressesQueryLimitDefault,
|
|
609
1151
|
searchAddressesQueryParams,
|
|
610
1152
|
searchAddressesResponse,
|
|
1153
|
+
searchAddressesResponseItem,
|
|
611
1154
|
toggleWarehouseStatus,
|
|
612
1155
|
toggleWarehouseStatusParams,
|
|
613
1156
|
updateWarehouse,
|
|
@@ -617,13 +1160,35 @@ export {
|
|
|
617
1160
|
useCreateBatch,
|
|
618
1161
|
useCreateStockItems,
|
|
619
1162
|
useCreateWarehouse,
|
|
1163
|
+
useDeleteApiIdentityAdminRolesId,
|
|
620
1164
|
useDeleteWarehouse,
|
|
1165
|
+
useGetApiIdentityAdminPermissions,
|
|
1166
|
+
useGetApiIdentityAdminRoles,
|
|
1167
|
+
useGetApiIdentityAdminRolesId,
|
|
1168
|
+
useGetApiIdentityAdminUsers,
|
|
1169
|
+
useGetApiIdentityAdminUsersIdPermissions,
|
|
1170
|
+
useGetApiIdentityAdminUsersIdRoles,
|
|
1171
|
+
useGetApiIdentityAntiforgery,
|
|
1172
|
+
useGetApiIdentityManage2fa,
|
|
1173
|
+
useGetApiIdentityManageInfo,
|
|
621
1174
|
useGetHealth,
|
|
622
1175
|
useGetWarehouseById,
|
|
623
1176
|
useGetWarehouseOptions,
|
|
624
1177
|
useListStockItems,
|
|
625
1178
|
useListStockMovements,
|
|
626
1179
|
useListWarehouses,
|
|
1180
|
+
usePostApiIdentityAdminRoles,
|
|
1181
|
+
usePostApiIdentityAdminUsersIdLogout,
|
|
1182
|
+
usePostApiIdentityForgotPassword,
|
|
1183
|
+
usePostApiIdentityLogin,
|
|
1184
|
+
usePostApiIdentityLogout,
|
|
1185
|
+
usePostApiIdentityManage2fa,
|
|
1186
|
+
usePostApiIdentityManageInfo,
|
|
1187
|
+
usePostApiIdentityResetPassword,
|
|
1188
|
+
usePutApiIdentityAdminRolesId,
|
|
1189
|
+
usePutApiIdentityAdminRolesIdPermissions,
|
|
1190
|
+
usePutApiIdentityAdminUsersIdActive,
|
|
1191
|
+
usePutApiIdentityAdminUsersIdRoles,
|
|
627
1192
|
useSearchAddresses,
|
|
628
1193
|
useToggleWarehouseStatus,
|
|
629
1194
|
useUpdateWarehouse
|