falconhub-apilibrary 1.3.1 → 1.4.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 +818 -1646
- package/dist/index.mjs +415 -1003
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -217,6 +217,25 @@ declare class TokenManager {
|
|
|
217
217
|
private stopAutoRefreshTimer;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
+
interface ChangePasswordRequest {
|
|
221
|
+
email: string;
|
|
222
|
+
oldPassword: string;
|
|
223
|
+
newPassword: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
interface ConfirmEmailRequest {
|
|
227
|
+
email: string;
|
|
228
|
+
expiresAt: number;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface GetSecretKeyRequest {
|
|
232
|
+
otpCode?: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface GetSecretKeyResponse {
|
|
236
|
+
secretKey: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
220
239
|
interface LoginRequest {
|
|
221
240
|
email: string;
|
|
222
241
|
password: string;
|
|
@@ -244,6 +263,15 @@ interface RefreshTokenResponse {
|
|
|
244
263
|
type: string;
|
|
245
264
|
}
|
|
246
265
|
|
|
266
|
+
interface SendOtpRequest {
|
|
267
|
+
email: string;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
interface ValidateOtpRequest {
|
|
271
|
+
email: string;
|
|
272
|
+
otp: string;
|
|
273
|
+
}
|
|
274
|
+
|
|
247
275
|
interface ValidateSessionRenewedResponse {
|
|
248
276
|
accessToken: string;
|
|
249
277
|
refreshToken: string;
|
|
@@ -257,26 +285,6 @@ interface ValidateSessionResponse {
|
|
|
257
285
|
isRemembered: boolean;
|
|
258
286
|
}
|
|
259
287
|
|
|
260
|
-
interface ConfirmEmailRequest {
|
|
261
|
-
email: string;
|
|
262
|
-
expiresAt: number;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
interface SendOtpRequest {
|
|
266
|
-
email: string;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
interface ValidateOtpRequest {
|
|
270
|
-
email: string;
|
|
271
|
-
otp: string;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
interface ChangePasswordRequest {
|
|
275
|
-
email: string;
|
|
276
|
-
oldPassword: string;
|
|
277
|
-
newPassword: string;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
288
|
declare class AuthService {
|
|
281
289
|
private api;
|
|
282
290
|
private crytpoService;
|
|
@@ -305,6 +313,12 @@ declare class AuthService {
|
|
|
305
313
|
* Cierra sesión: notifica al servidor y limpia tokens
|
|
306
314
|
*/
|
|
307
315
|
logout(): Promise<ResponseModel>;
|
|
316
|
+
/**
|
|
317
|
+
* Obtiene la SecretKey del usuario autenticado.
|
|
318
|
+
* Requiere sesión activa. Si el usuario tiene 2FA habilitado, se debe proveer el OTP.
|
|
319
|
+
* @param request - Objeto opcional con otpCode (requerido si IsTwoFactorEnabled)
|
|
320
|
+
*/
|
|
321
|
+
getSecretKey(request?: GetSecretKeyRequest): Promise<ResponseModel<GetSecretKeyResponse>>;
|
|
308
322
|
/**
|
|
309
323
|
* Confirma el correo electrónico de un usuario.
|
|
310
324
|
* @param request - Email y expiresAt
|
|
@@ -335,231 +349,73 @@ declare class AuthService {
|
|
|
335
349
|
getTokens(): TokenData | null;
|
|
336
350
|
}
|
|
337
351
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
interface GenderUserProfile {
|
|
352
|
+
/**
|
|
353
|
+
* Interfaz que representa un género del catálogo.
|
|
354
|
+
*/
|
|
355
|
+
interface Gender {
|
|
345
356
|
genderId: number;
|
|
346
357
|
gender: string;
|
|
358
|
+
key: string;
|
|
347
359
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
interface UserTypeUserProfile {
|
|
355
|
-
userTypeId: number;
|
|
356
|
-
userType: string;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
interface UserProfileResponse {
|
|
360
|
-
userId: number;
|
|
361
|
-
username: string;
|
|
362
|
-
firstName: string;
|
|
363
|
-
lastName: string;
|
|
364
|
-
fullName: string;
|
|
365
|
-
email: string;
|
|
366
|
-
phone: string;
|
|
367
|
-
profilePhoto: string;
|
|
368
|
-
areaCode: AreaCodeUserProfile;
|
|
369
|
-
birthday: Date;
|
|
370
|
-
gender: GenderUserProfile;
|
|
371
|
-
role: RoleUserProfile;
|
|
372
|
-
userType: UserTypeUserProfile;
|
|
373
|
-
userReferralCode: string;
|
|
374
|
-
securityLevel: number;
|
|
375
|
-
emailVerified: boolean;
|
|
376
|
-
phoneVerified: boolean;
|
|
377
|
-
lastLogin: Date;
|
|
378
|
-
mustChangePassword: boolean;
|
|
379
|
-
passwordExpiresAt: Date;
|
|
380
|
-
isActive: boolean;
|
|
381
|
-
createdAt: Date;
|
|
382
|
-
updatedAt: Date;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
interface UserBasicResponse {
|
|
386
|
-
userId: number;
|
|
387
|
-
username: string;
|
|
388
|
-
firstName: string;
|
|
389
|
-
lastName: string;
|
|
390
|
-
fullName: string;
|
|
391
|
-
email: string;
|
|
392
|
-
phone: string;
|
|
393
|
-
role: string;
|
|
394
|
-
roleId: number;
|
|
395
|
-
userType: number;
|
|
396
|
-
userTypeId: number;
|
|
397
|
-
isActive: boolean;
|
|
398
|
-
securityLevel: number;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
interface AdminUser {
|
|
402
|
-
userId: number;
|
|
403
|
-
username: string;
|
|
404
|
-
firstName: string;
|
|
405
|
-
lastName: string;
|
|
406
|
-
email: string;
|
|
407
|
-
phone: string;
|
|
408
|
-
areaCodeId: number | null;
|
|
409
|
-
birthday: string | null;
|
|
410
|
-
referrerUserId: number | null;
|
|
411
|
-
userReferralCode: string;
|
|
412
|
-
genderId: number | null;
|
|
413
|
-
roleId: number | null;
|
|
414
|
-
userTypeId: number | null;
|
|
415
|
-
isActive: boolean;
|
|
416
|
-
createdAt: string;
|
|
417
|
-
updatedAt: string | null;
|
|
418
|
-
deleted: boolean;
|
|
419
|
-
}
|
|
420
|
-
interface AdminAuthentication {
|
|
421
|
-
userAuthenticationId: number;
|
|
422
|
-
userId: number;
|
|
423
|
-
securityLevel: number;
|
|
424
|
-
clientId: string;
|
|
425
|
-
isTwoFactorEnabled: boolean;
|
|
426
|
-
failedLoginAttempts: number;
|
|
427
|
-
lastLogin: string | null;
|
|
428
|
-
isActive: boolean;
|
|
429
|
-
isLocked: boolean;
|
|
430
|
-
emailVerified: boolean;
|
|
431
|
-
phoneVerified: boolean;
|
|
432
|
-
mustChangePassword: boolean;
|
|
433
|
-
passwordLastChanged: string | null;
|
|
434
|
-
passwordExpiresAt: string | null;
|
|
435
|
-
lastLoginIP: string | null;
|
|
436
|
-
lastLoginDevice: string | null;
|
|
437
|
-
lastActivityAt: string | null;
|
|
438
|
-
createdAt: string;
|
|
439
|
-
updatedAt: string | null;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
interface UserAdminRequest {
|
|
443
|
-
username: string;
|
|
444
|
-
firstName: string;
|
|
445
|
-
lastName: string;
|
|
446
|
-
email: string;
|
|
447
|
-
phone: string;
|
|
448
|
-
areaCodeId: number;
|
|
449
|
-
birthday: string;
|
|
450
|
-
genderId: number;
|
|
451
|
-
roleId: number;
|
|
452
|
-
userTypeId: number;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
interface UserAuthAdminRequest {
|
|
456
|
-
userId: number;
|
|
457
|
-
securityLevel: number;
|
|
458
|
-
clientId: string;
|
|
459
|
-
requireEmailConfirmation?: boolean;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
interface ChangePasswordAdminRequest {
|
|
463
|
-
newPassword: string;
|
|
360
|
+
/**
|
|
361
|
+
* Request para crear o actualizar un género.
|
|
362
|
+
*/
|
|
363
|
+
interface GenderRequest {
|
|
364
|
+
gender: string;
|
|
365
|
+
key?: string;
|
|
464
366
|
}
|
|
465
|
-
|
|
466
|
-
|
|
367
|
+
/**
|
|
368
|
+
* Filtros disponibles para buscar géneros.
|
|
369
|
+
*/
|
|
370
|
+
interface GendersFilter {
|
|
371
|
+
/** Búsqueda general */
|
|
467
372
|
Search?: string;
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
LastName?: string;
|
|
471
|
-
Email?: string;
|
|
472
|
-
Phone?: string;
|
|
473
|
-
RoleId?: number;
|
|
474
|
-
UserTypeId?: number;
|
|
475
|
-
IsActive?: boolean;
|
|
373
|
+
/** Filtro por nombre del género (búsqueda parcial) */
|
|
374
|
+
Gender?: string;
|
|
476
375
|
}
|
|
477
|
-
|
|
478
|
-
interface UserAdminUpdateRequest {
|
|
479
|
-
username: string;
|
|
480
|
-
firstName: string;
|
|
481
|
-
lastName: string;
|
|
482
|
-
email: string;
|
|
483
|
-
phone: string;
|
|
484
|
-
areaCodeId: number;
|
|
485
|
-
birthday?: string;
|
|
376
|
+
interface GenderUserProfile {
|
|
486
377
|
genderId: number;
|
|
487
|
-
|
|
488
|
-
userTypeId: number;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
interface UserAuthUpdateRequest {
|
|
492
|
-
securityLevel: number;
|
|
493
|
-
clientId: string;
|
|
494
|
-
isTwoFactorEnabled?: boolean;
|
|
495
|
-
emailVerified?: boolean;
|
|
496
|
-
phoneVerified?: boolean;
|
|
378
|
+
gender: string;
|
|
497
379
|
}
|
|
498
380
|
|
|
499
381
|
/**
|
|
500
|
-
* Interfaz que representa un
|
|
382
|
+
* Interfaz que representa un código de área del catálogo.
|
|
501
383
|
*/
|
|
502
|
-
interface
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
deleted: boolean;
|
|
384
|
+
interface AreaCode {
|
|
385
|
+
areaCodeId: number;
|
|
386
|
+
countryCode: string;
|
|
387
|
+
iso: string;
|
|
388
|
+
countryName: string;
|
|
389
|
+
isActive: boolean;
|
|
509
390
|
}
|
|
510
391
|
/**
|
|
511
|
-
* Request para crear o actualizar un
|
|
392
|
+
* Request para crear o actualizar un código de área.
|
|
512
393
|
*/
|
|
513
|
-
interface
|
|
514
|
-
|
|
515
|
-
|
|
394
|
+
interface AreaCodeRequest {
|
|
395
|
+
countryCode: string;
|
|
396
|
+
iso: string;
|
|
397
|
+
countryName: string;
|
|
398
|
+
isActive: boolean;
|
|
516
399
|
}
|
|
517
400
|
/**
|
|
518
|
-
* Filtros disponibles para buscar
|
|
401
|
+
* Filtros disponibles para buscar códigos de área.
|
|
519
402
|
*/
|
|
520
|
-
interface
|
|
403
|
+
interface AreaCodesFilter {
|
|
521
404
|
/** Búsqueda general */
|
|
522
405
|
Search?: string;
|
|
523
|
-
/** Filtro por
|
|
524
|
-
|
|
525
|
-
/** Filtro por
|
|
526
|
-
|
|
406
|
+
/** Filtro por código de país (búsqueda parcial) */
|
|
407
|
+
CountryCode?: string;
|
|
408
|
+
/** Filtro por ISO (búsqueda parcial) */
|
|
409
|
+
ISO?: string;
|
|
410
|
+
/** Filtro por nombre de país (búsqueda parcial) */
|
|
411
|
+
CountryName?: string;
|
|
412
|
+
/** Filtro por estado activo/inactivo */
|
|
413
|
+
IsActive?: boolean;
|
|
527
414
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
interface Role {
|
|
533
|
-
roleId: number;
|
|
534
|
-
userTypeId: number | null;
|
|
535
|
-
role: string;
|
|
536
|
-
description: string;
|
|
537
|
-
isActive: boolean;
|
|
538
|
-
createdAt: string;
|
|
539
|
-
updatedAt: string | null;
|
|
540
|
-
deleted: boolean;
|
|
541
|
-
}
|
|
542
|
-
/**
|
|
543
|
-
* Request para crear o actualizar un rol.
|
|
544
|
-
*/
|
|
545
|
-
interface RoleRequest {
|
|
546
|
-
userTypeId?: number;
|
|
547
|
-
role: string;
|
|
548
|
-
description: string;
|
|
549
|
-
isActive?: boolean;
|
|
550
|
-
}
|
|
551
|
-
/**
|
|
552
|
-
* Filtros disponibles para buscar roles.
|
|
553
|
-
*/
|
|
554
|
-
interface RolesFilter {
|
|
555
|
-
/** Búsqueda general */
|
|
556
|
-
Search?: string;
|
|
557
|
-
/** Filtro por nombre del rol (búsqueda parcial) */
|
|
558
|
-
Role?: string;
|
|
559
|
-
/** Filtro por descripción (búsqueda parcial) */
|
|
560
|
-
Description?: string;
|
|
561
|
-
/** Filtro por estado activo/inactivo */
|
|
562
|
-
IsActive?: boolean;
|
|
415
|
+
interface AreaCodeUserProfile {
|
|
416
|
+
areaCodeId: number;
|
|
417
|
+
countryCode: string;
|
|
418
|
+
country: string;
|
|
563
419
|
}
|
|
564
420
|
|
|
565
421
|
/**
|
|
@@ -676,1736 +532,1053 @@ interface FilterGroup {
|
|
|
676
532
|
*/
|
|
677
533
|
type FilterGroupsModel = FilterGroup[];
|
|
678
534
|
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
interface UserDataUpdateRequest {
|
|
685
|
-
username: string;
|
|
686
|
-
firstName: string;
|
|
687
|
-
lastName: string;
|
|
688
|
-
phone: string;
|
|
689
|
-
birthday: string;
|
|
690
|
-
profilePhoto: string;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
declare class UserService {
|
|
535
|
+
/**
|
|
536
|
+
* Servicio para gestionar catálogos públicos.
|
|
537
|
+
* No requiere autenticación.
|
|
538
|
+
*/
|
|
539
|
+
declare class CatalogService {
|
|
694
540
|
private api;
|
|
695
541
|
private readonly BASE_PATH;
|
|
696
542
|
constructor(api: API);
|
|
697
|
-
me(): Promise<ResponseModel<UserBasicResponse>>;
|
|
698
|
-
profile(): Promise<ResponseModel<UserProfileResponse>>;
|
|
699
|
-
changePasswordUser(request: ChangePasswordUserRequest): Promise<ResponseModel>;
|
|
700
|
-
updateUserData(request: UserDataUpdateRequest): Promise<ResponseModel>;
|
|
701
|
-
/**
|
|
702
|
-
* Crea un nuevo usuario administrador.
|
|
703
|
-
* @param request - Datos del nuevo administrador
|
|
704
|
-
*/
|
|
705
|
-
newAdminUser(request: UserAdminRequest): Promise<ResponseModel<AdminUser>>;
|
|
706
|
-
/**
|
|
707
|
-
* Crea la autenticación para un usuario.
|
|
708
|
-
* @param request - Datos de autenticación del usuario
|
|
709
|
-
*/
|
|
710
|
-
createUserAuthentication(request: UserAuthAdminRequest): Promise<ResponseModel<AdminAuthentication>>;
|
|
711
|
-
/**
|
|
712
|
-
* Cambia la contraseña de un administrador.
|
|
713
|
-
* @param id - ID del usuario
|
|
714
|
-
* @param request - Nueva contraseña
|
|
715
|
-
*/
|
|
716
|
-
changePasswordAdmin(id: number, request: ChangePasswordAdminRequest): Promise<ResponseModel>;
|
|
717
|
-
/**
|
|
718
|
-
* Obtiene todos los administradores con filtros opcionales.
|
|
719
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
720
|
-
*/
|
|
721
|
-
getAllAdmins(filter?: UserAdminFilter): Promise<ResponseModel<AdminUser[]>>;
|
|
722
|
-
/**
|
|
723
|
-
* Obtiene el modelo de filtros disponibles para administradores.
|
|
724
|
-
*/
|
|
725
|
-
getAdminFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
726
|
-
/**
|
|
727
|
-
* Obtiene un administrador por su ID.
|
|
728
|
-
* @param id - ID del administrador
|
|
729
|
-
*/
|
|
730
|
-
getAdminById(id: number): Promise<ResponseModel<AdminUser>>;
|
|
731
|
-
/**
|
|
732
|
-
* Obtiene la autenticación de un administrador.
|
|
733
|
-
* @param id - ID del usuario
|
|
734
|
-
*/
|
|
735
|
-
getAdminAuthentication(id: number): Promise<ResponseModel<AdminAuthentication>>;
|
|
736
|
-
/**
|
|
737
|
-
* Actualiza un administrador existente.
|
|
738
|
-
* @param id - ID del administrador
|
|
739
|
-
* @param request - Nuevos datos del administrador
|
|
740
|
-
*/
|
|
741
|
-
updateAdmin(id: number, request: UserAdminUpdateRequest): Promise<ResponseModel<AdminUser>>;
|
|
742
|
-
/**
|
|
743
|
-
* Activa o desactiva un administrador.
|
|
744
|
-
* @param id - ID del administrador
|
|
745
|
-
*/
|
|
746
|
-
toggleAdminStatus(id: number): Promise<ResponseModel<AdminUser>>;
|
|
747
|
-
/**
|
|
748
|
-
* Actualiza la autenticación de un administrador.
|
|
749
|
-
* @param id - ID del usuario
|
|
750
|
-
* @param request - Nuevos datos de autenticación
|
|
751
|
-
*/
|
|
752
|
-
updateAdminAuthentication(id: number, request: UserAuthUpdateRequest): Promise<ResponseModel<AdminAuthentication>>;
|
|
753
543
|
/**
|
|
754
|
-
* Obtiene todos los
|
|
544
|
+
* Obtiene todos los géneros con filtros opcionales.
|
|
755
545
|
* @param filter - Filtros opcionales para la búsqueda
|
|
756
546
|
*/
|
|
757
|
-
|
|
547
|
+
getGenders(filter?: GendersFilter): Promise<ResponseModel<Gender[]>>;
|
|
758
548
|
/**
|
|
759
|
-
* Obtiene el modelo de filtros disponibles para
|
|
549
|
+
* Obtiene el modelo de filtros disponibles para géneros.
|
|
760
550
|
*/
|
|
761
|
-
|
|
551
|
+
getGendersFilters(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
762
552
|
/**
|
|
763
|
-
* Obtiene un
|
|
764
|
-
* @param id - ID del
|
|
553
|
+
* Obtiene un género por su ID.
|
|
554
|
+
* @param id - ID del género
|
|
765
555
|
*/
|
|
766
|
-
|
|
556
|
+
getGenderById(id: number): Promise<ResponseModel<Gender>>;
|
|
767
557
|
/**
|
|
768
|
-
* Crea un nuevo
|
|
769
|
-
* @param request - Datos del
|
|
558
|
+
* Crea un nuevo género.
|
|
559
|
+
* @param request - Datos del género a crear
|
|
770
560
|
*/
|
|
771
|
-
|
|
561
|
+
createGender(request: GenderRequest): Promise<ResponseModel<Gender>>;
|
|
772
562
|
/**
|
|
773
|
-
* Actualiza un
|
|
774
|
-
* @param id - ID del
|
|
775
|
-
* @param request - Nuevos datos del
|
|
563
|
+
* Actualiza un género existente.
|
|
564
|
+
* @param id - ID del género a actualizar
|
|
565
|
+
* @param request - Nuevos datos del género
|
|
776
566
|
*/
|
|
777
|
-
|
|
567
|
+
updateGender(id: number, request: GenderRequest): Promise<ResponseModel<Gender>>;
|
|
778
568
|
/**
|
|
779
|
-
* Elimina un
|
|
780
|
-
* @param id - ID del
|
|
569
|
+
* Elimina un género.
|
|
570
|
+
* @param id - ID del género a eliminar
|
|
781
571
|
*/
|
|
782
|
-
|
|
572
|
+
deleteGender(id: number): Promise<ResponseModel<void>>;
|
|
783
573
|
/**
|
|
784
|
-
* Obtiene todos los
|
|
574
|
+
* Obtiene todos los códigos de área con filtros opcionales.
|
|
785
575
|
* @param filter - Filtros opcionales para la búsqueda
|
|
786
576
|
*/
|
|
787
|
-
|
|
788
|
-
/**
|
|
789
|
-
* Obtiene el modelo de filtros disponibles para roles.
|
|
790
|
-
*/
|
|
791
|
-
getRolesFilters(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
577
|
+
getAreaCodes(filter?: AreaCodesFilter): Promise<ResponseModel<AreaCode[]>>;
|
|
792
578
|
/**
|
|
793
|
-
* Obtiene
|
|
794
|
-
* @param id - ID del rol
|
|
579
|
+
* Obtiene el modelo de filtros disponibles para códigos de área.
|
|
795
580
|
*/
|
|
796
|
-
|
|
581
|
+
getAreaCodesFilters(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
797
582
|
/**
|
|
798
|
-
* Obtiene
|
|
799
|
-
* @param
|
|
583
|
+
* Obtiene un código de área por su ID.
|
|
584
|
+
* @param id - ID del código de área
|
|
800
585
|
*/
|
|
801
|
-
|
|
586
|
+
getAreaCodeById(id: number): Promise<ResponseModel<AreaCode>>;
|
|
802
587
|
/**
|
|
803
|
-
* Crea un nuevo
|
|
804
|
-
* @param request - Datos del
|
|
588
|
+
* Crea un nuevo código de área.
|
|
589
|
+
* @param request - Datos del código de área a crear
|
|
805
590
|
*/
|
|
806
|
-
|
|
591
|
+
createAreaCode(request: AreaCodeRequest): Promise<ResponseModel<AreaCode>>;
|
|
807
592
|
/**
|
|
808
|
-
* Actualiza un
|
|
809
|
-
* @param id - ID del
|
|
810
|
-
* @param request - Nuevos datos del
|
|
593
|
+
* Actualiza un código de área existente.
|
|
594
|
+
* @param id - ID del código de área a actualizar
|
|
595
|
+
* @param request - Nuevos datos del código de área
|
|
811
596
|
*/
|
|
812
|
-
|
|
597
|
+
updateAreaCode(id: number, request: AreaCodeRequest): Promise<ResponseModel<AreaCode>>;
|
|
813
598
|
/**
|
|
814
|
-
* Activa o desactiva un
|
|
815
|
-
* @param id - ID del
|
|
599
|
+
* Activa o desactiva un código de área.
|
|
600
|
+
* @param id - ID del código de área
|
|
816
601
|
*/
|
|
817
|
-
|
|
602
|
+
toggleAreaCodeStatus(id: number): Promise<ResponseModel<AreaCode>>;
|
|
818
603
|
/**
|
|
819
|
-
* Elimina un
|
|
820
|
-
* @param id - ID del
|
|
604
|
+
* Elimina un código de área.
|
|
605
|
+
* @param id - ID del código de área a eliminar
|
|
821
606
|
*/
|
|
822
|
-
|
|
607
|
+
deleteAreaCode(id: number): Promise<ResponseModel<void>>;
|
|
823
608
|
}
|
|
824
609
|
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
610
|
+
interface Location {
|
|
611
|
+
locationId: number;
|
|
612
|
+
locationName: string;
|
|
613
|
+
address1: string;
|
|
614
|
+
address2: string;
|
|
615
|
+
city: string;
|
|
616
|
+
state: string;
|
|
617
|
+
country: string;
|
|
618
|
+
postalCode: string;
|
|
619
|
+
contactName: string;
|
|
620
|
+
areaCodeId: number;
|
|
621
|
+
contactPhone: string;
|
|
622
|
+
contactEmail: string;
|
|
832
623
|
isActive: boolean;
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
624
|
+
isPhysical: boolean;
|
|
625
|
+
parentLocationId: number | null;
|
|
626
|
+
url: string;
|
|
627
|
+
apiKey: string;
|
|
836
628
|
}
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
629
|
+
interface LocationsRequest {
|
|
630
|
+
locationName: string;
|
|
631
|
+
address1: string;
|
|
632
|
+
address2?: string;
|
|
633
|
+
city: string;
|
|
634
|
+
state: string;
|
|
635
|
+
country: string;
|
|
636
|
+
postalCode: string;
|
|
637
|
+
contactName: string;
|
|
638
|
+
areaCodeId: number;
|
|
639
|
+
contactPhone: string;
|
|
640
|
+
contactEmail: string;
|
|
843
641
|
isActive?: boolean;
|
|
642
|
+
isPhysical: boolean;
|
|
643
|
+
parentLocationId?: number;
|
|
644
|
+
/** URL requerida cuando isPhysical = true */
|
|
645
|
+
url?: string;
|
|
646
|
+
/** ApiKey requerida cuando isPhysical = true. Se almacena cifrada (AES-256) en el servidor. */
|
|
647
|
+
apiKey?: string;
|
|
844
648
|
}
|
|
845
|
-
|
|
846
|
-
* Filtros disponibles para buscar módulos.
|
|
847
|
-
* Todos los campos son opcionales.
|
|
848
|
-
*/
|
|
849
|
-
interface ModulesFilter {
|
|
850
|
-
/** Búsqueda general (busca en Module y Description) */
|
|
649
|
+
interface LocationsFilter {
|
|
851
650
|
Search?: string;
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
/** Filtro por estado activo/inactivo */
|
|
651
|
+
LocationName?: string;
|
|
652
|
+
City?: string;
|
|
653
|
+
State?: string;
|
|
654
|
+
Country?: string;
|
|
857
655
|
IsActive?: boolean;
|
|
858
656
|
}
|
|
859
657
|
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
658
|
+
interface InventoryStatus {
|
|
659
|
+
inventoryStatusId: number;
|
|
660
|
+
inventoryStatus: string;
|
|
661
|
+
key: string;
|
|
662
|
+
description: string;
|
|
663
|
+
}
|
|
664
|
+
interface InventoryStatusRequest {
|
|
665
|
+
inventoryStatus: string;
|
|
666
|
+
key?: string;
|
|
868
667
|
description: string;
|
|
869
|
-
requiresAuth: boolean;
|
|
870
|
-
requiresPermission: boolean | null;
|
|
871
|
-
requiresSignature: boolean;
|
|
872
|
-
requiresHeader: boolean;
|
|
873
|
-
allowedOrigins: string;
|
|
874
|
-
isActive: boolean;
|
|
875
|
-
createdAt: string;
|
|
876
|
-
updatedAt: string | null;
|
|
877
|
-
deleted: boolean;
|
|
878
668
|
}
|
|
669
|
+
interface InventoryStatusesFilter {
|
|
670
|
+
Search?: string;
|
|
671
|
+
InventoryStatus?: string;
|
|
672
|
+
Description?: string;
|
|
673
|
+
}
|
|
674
|
+
|
|
879
675
|
/**
|
|
880
|
-
*
|
|
676
|
+
* Interfaz que representa un empaque del inventario.
|
|
881
677
|
*/
|
|
882
|
-
interface
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
678
|
+
interface Packing {
|
|
679
|
+
packingId: number;
|
|
680
|
+
packing: string;
|
|
681
|
+
key: string;
|
|
682
|
+
materialId: number;
|
|
683
|
+
length: number;
|
|
684
|
+
width: number;
|
|
685
|
+
height: number;
|
|
686
|
+
weightLimit: number | null;
|
|
687
|
+
cost: number;
|
|
688
|
+
providerId: number;
|
|
689
|
+
isActive: boolean;
|
|
893
690
|
}
|
|
894
691
|
/**
|
|
895
|
-
*
|
|
692
|
+
* Request para crear o actualizar un empaque.
|
|
896
693
|
*/
|
|
897
|
-
|
|
694
|
+
interface PackingRequest {
|
|
695
|
+
packing: string;
|
|
696
|
+
key?: string;
|
|
697
|
+
materialId: number;
|
|
698
|
+
length: number;
|
|
699
|
+
width: number;
|
|
700
|
+
height: number;
|
|
701
|
+
weightLimit?: number;
|
|
702
|
+
cost: number;
|
|
703
|
+
providerId: number;
|
|
704
|
+
isActive: boolean;
|
|
705
|
+
}
|
|
898
706
|
/**
|
|
899
|
-
* Filtros disponibles para buscar
|
|
900
|
-
* Todos los campos son opcionales.
|
|
707
|
+
* Filtros disponibles para buscar empaques.
|
|
901
708
|
*/
|
|
902
|
-
interface
|
|
903
|
-
/** Búsqueda general (busca en Endpoint, Path y Description) */
|
|
709
|
+
interface PackingsFilter {
|
|
904
710
|
Search?: string;
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
HttpMethod?: HttpMethodType;
|
|
909
|
-
/** Filtro por módulo (primer segmento del path, búsqueda parcial) */
|
|
910
|
-
Module?: string;
|
|
911
|
-
/** Filtro por path (búsqueda parcial) */
|
|
912
|
-
Path?: string;
|
|
913
|
-
/** Filtro por descripción (búsqueda parcial) */
|
|
914
|
-
Description?: string;
|
|
915
|
-
/** Filtro por endpoints que requieren autenticación */
|
|
916
|
-
RequiresAuth?: boolean;
|
|
917
|
-
/** Filtro por endpoints que requieren validación de permisos */
|
|
918
|
-
RequiresPermission?: boolean;
|
|
919
|
-
/** Filtro por endpoints que requieren firma */
|
|
920
|
-
RequiresSignature?: boolean;
|
|
921
|
-
/** Filtro por endpoints que requieren header específico */
|
|
922
|
-
RequiresHeader?: boolean;
|
|
923
|
-
/** Filtro por estado activo/inactivo */
|
|
711
|
+
Packing?: string;
|
|
712
|
+
MaterialId?: number;
|
|
713
|
+
ProviderId?: number;
|
|
924
714
|
IsActive?: boolean;
|
|
925
715
|
}
|
|
926
716
|
|
|
927
717
|
/**
|
|
928
|
-
* Interfaz que representa
|
|
718
|
+
* Interfaz que representa un material del inventario.
|
|
929
719
|
*/
|
|
930
|
-
interface
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
720
|
+
interface Material {
|
|
721
|
+
materialId: number;
|
|
722
|
+
material: string;
|
|
723
|
+
key: string;
|
|
934
724
|
description: string;
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
updatedAt: string | null;
|
|
938
|
-
deleted: boolean;
|
|
725
|
+
isRecyclable: boolean;
|
|
726
|
+
isFragile: boolean;
|
|
939
727
|
}
|
|
940
728
|
/**
|
|
941
|
-
* Request para crear o actualizar
|
|
729
|
+
* Request para crear o actualizar un material.
|
|
942
730
|
*/
|
|
943
|
-
interface
|
|
944
|
-
|
|
945
|
-
path: string;
|
|
731
|
+
interface MaterialRequest {
|
|
732
|
+
material: string;
|
|
946
733
|
description: string;
|
|
947
|
-
|
|
734
|
+
key?: string;
|
|
735
|
+
isRecyclable: boolean;
|
|
736
|
+
isFragile: boolean;
|
|
948
737
|
}
|
|
949
738
|
/**
|
|
950
|
-
* Filtros disponibles para buscar
|
|
951
|
-
* Todos los campos son opcionales.
|
|
739
|
+
* Filtros disponibles para buscar materiales.
|
|
952
740
|
*/
|
|
953
|
-
interface
|
|
954
|
-
/** Búsqueda general (busca en UIRoute, Path y Description) */
|
|
741
|
+
interface MaterialsFilter {
|
|
955
742
|
Search?: string;
|
|
956
|
-
|
|
957
|
-
UIRoute?: string;
|
|
958
|
-
/** Filtro por path (búsqueda parcial) */
|
|
959
|
-
Path?: string;
|
|
960
|
-
/** Filtro por descripción (búsqueda parcial) */
|
|
743
|
+
Material?: string;
|
|
961
744
|
Description?: string;
|
|
962
|
-
|
|
745
|
+
IsRecyclable?: boolean;
|
|
746
|
+
IsFragile?: boolean;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Interfaz que representa un proveedor del inventario.
|
|
751
|
+
*/
|
|
752
|
+
interface Provider {
|
|
753
|
+
providerId: number;
|
|
754
|
+
provider: string;
|
|
755
|
+
contactName: string;
|
|
756
|
+
areaCodeId: number;
|
|
757
|
+
contactNumber: string;
|
|
758
|
+
contactEmail: string;
|
|
759
|
+
isActive: boolean;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Request para crear o actualizar un proveedor.
|
|
763
|
+
*/
|
|
764
|
+
interface ProviderRequest {
|
|
765
|
+
provider: string;
|
|
766
|
+
contactName: string;
|
|
767
|
+
areaCodeId: number;
|
|
768
|
+
contactNumber: string;
|
|
769
|
+
contactEmail: string;
|
|
770
|
+
isActive: boolean;
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Filtros disponibles para buscar proveedores.
|
|
774
|
+
*/
|
|
775
|
+
interface ProvidersFilter {
|
|
776
|
+
Search?: string;
|
|
777
|
+
Provider?: string;
|
|
963
778
|
IsActive?: boolean;
|
|
964
779
|
}
|
|
965
780
|
|
|
966
781
|
/**
|
|
967
|
-
* Servicio para gestionar
|
|
782
|
+
* Servicio para gestionar inventario: ubicaciones, estatus, empaques y materiales.
|
|
968
783
|
*/
|
|
969
|
-
declare class
|
|
784
|
+
declare class InventoryService {
|
|
970
785
|
private api;
|
|
971
786
|
private readonly BASE_PATH;
|
|
972
787
|
constructor(api: API);
|
|
973
788
|
/**
|
|
974
|
-
* Obtiene
|
|
789
|
+
* Obtiene todas las ubicaciones con filtros opcionales.
|
|
975
790
|
* @param filter - Filtros opcionales para la búsqueda
|
|
976
791
|
*/
|
|
977
|
-
|
|
792
|
+
getLocations(filter?: LocationsFilter): Promise<ResponseModel<Location[]>>;
|
|
978
793
|
/**
|
|
979
|
-
* Obtiene el modelo de filtros disponibles para
|
|
794
|
+
* Obtiene el modelo de filtros disponibles para ubicaciones.
|
|
980
795
|
*/
|
|
981
|
-
|
|
796
|
+
getLocationFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
982
797
|
/**
|
|
983
|
-
* Obtiene
|
|
984
|
-
* @param id - ID
|
|
798
|
+
* Obtiene una ubicación por su ID.
|
|
799
|
+
* @param id - ID de la ubicación
|
|
985
800
|
*/
|
|
986
|
-
|
|
801
|
+
getLocationById(id: number): Promise<ResponseModel<Location>>;
|
|
987
802
|
/**
|
|
988
|
-
* Crea
|
|
989
|
-
* @param request - Datos
|
|
803
|
+
* Crea una nueva ubicación.
|
|
804
|
+
* @param request - Datos de la ubicación a crear
|
|
990
805
|
*/
|
|
991
|
-
|
|
806
|
+
createLocation(request: LocationsRequest): Promise<ResponseModel<Location>>;
|
|
992
807
|
/**
|
|
993
|
-
* Actualiza
|
|
994
|
-
* @param id - ID
|
|
995
|
-
* @param request - Nuevos datos
|
|
808
|
+
* Actualiza una ubicación existente.
|
|
809
|
+
* @param id - ID de la ubicación a actualizar
|
|
810
|
+
* @param request - Nuevos datos de la ubicación
|
|
996
811
|
*/
|
|
997
|
-
|
|
812
|
+
updateLocation(id: number, request: LocationsRequest): Promise<ResponseModel<Location>>;
|
|
998
813
|
/**
|
|
999
|
-
* Activa o desactiva
|
|
1000
|
-
* @param id - ID
|
|
814
|
+
* Activa o desactiva una ubicación.
|
|
815
|
+
* @param id - ID de la ubicación
|
|
1001
816
|
*/
|
|
1002
|
-
|
|
817
|
+
toggleLocationStatus(id: number): Promise<ResponseModel<Location>>;
|
|
1003
818
|
/**
|
|
1004
|
-
* Elimina
|
|
1005
|
-
* @param id - ID
|
|
819
|
+
* Elimina una ubicación.
|
|
820
|
+
* @param id - ID de la ubicación a eliminar
|
|
1006
821
|
*/
|
|
1007
|
-
|
|
822
|
+
deleteLocation(id: number): Promise<ResponseModel<void>>;
|
|
1008
823
|
/**
|
|
1009
|
-
* Obtiene todos los
|
|
824
|
+
* Obtiene todos los estatus de inventario con filtros opcionales.
|
|
1010
825
|
* @param filter - Filtros opcionales para la búsqueda
|
|
1011
826
|
*/
|
|
1012
|
-
|
|
827
|
+
getStatuses(filter?: InventoryStatusesFilter): Promise<ResponseModel<InventoryStatus[]>>;
|
|
1013
828
|
/**
|
|
1014
|
-
* Obtiene el modelo de filtros disponibles para
|
|
829
|
+
* Obtiene el modelo de filtros disponibles para estatus de inventario.
|
|
1015
830
|
*/
|
|
1016
|
-
|
|
831
|
+
getStatusFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1017
832
|
/**
|
|
1018
|
-
* Obtiene
|
|
833
|
+
* Obtiene un estatus de inventario por su ID.
|
|
834
|
+
* @param id - ID del estatus
|
|
1019
835
|
*/
|
|
1020
|
-
|
|
836
|
+
getStatusById(id: number): Promise<ResponseModel<InventoryStatus>>;
|
|
1021
837
|
/**
|
|
1022
|
-
*
|
|
1023
|
-
* @param
|
|
838
|
+
* Crea un nuevo estatus de inventario.
|
|
839
|
+
* @param request - Datos del estatus a crear
|
|
1024
840
|
*/
|
|
1025
|
-
|
|
841
|
+
createStatus(request: InventoryStatusRequest): Promise<ResponseModel<InventoryStatus>>;
|
|
1026
842
|
/**
|
|
1027
|
-
*
|
|
1028
|
-
* @param
|
|
843
|
+
* Actualiza un estatus de inventario existente.
|
|
844
|
+
* @param id - ID del estatus a actualizar
|
|
845
|
+
* @param request - Nuevos datos del estatus
|
|
1029
846
|
*/
|
|
1030
|
-
|
|
847
|
+
updateStatus(id: number, request: InventoryStatusRequest): Promise<ResponseModel<InventoryStatus>>;
|
|
1031
848
|
/**
|
|
1032
|
-
*
|
|
1033
|
-
* @param id - ID del
|
|
1034
|
-
* @param request - Nuevos datos del endpoint
|
|
849
|
+
* Elimina un estatus de inventario.
|
|
850
|
+
* @param id - ID del estatus a eliminar
|
|
1035
851
|
*/
|
|
1036
|
-
|
|
852
|
+
deleteStatus(id: number): Promise<ResponseModel<void>>;
|
|
1037
853
|
/**
|
|
1038
|
-
*
|
|
1039
|
-
* @param
|
|
854
|
+
* Obtiene todos los empaques con filtros opcionales.
|
|
855
|
+
* @param filter - Filtros opcionales para la búsqueda
|
|
1040
856
|
*/
|
|
1041
|
-
|
|
857
|
+
getPackings(filter?: PackingsFilter): Promise<ResponseModel<Packing[]>>;
|
|
1042
858
|
/**
|
|
1043
|
-
*
|
|
1044
|
-
* @param id - ID del endpoint a eliminar
|
|
859
|
+
* Obtiene el modelo de filtros disponibles para empaques.
|
|
1045
860
|
*/
|
|
1046
|
-
|
|
861
|
+
getPackingFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1047
862
|
/**
|
|
1048
|
-
* Obtiene
|
|
1049
|
-
* @param
|
|
863
|
+
* Obtiene un empaque por su ID.
|
|
864
|
+
* @param id - ID del empaque
|
|
1050
865
|
*/
|
|
1051
|
-
|
|
866
|
+
getPackingById(id: number): Promise<ResponseModel<Packing>>;
|
|
1052
867
|
/**
|
|
1053
|
-
*
|
|
868
|
+
* Crea un nuevo empaque.
|
|
869
|
+
* @param request - Datos del empaque a crear
|
|
1054
870
|
*/
|
|
1055
|
-
|
|
871
|
+
createPacking(request: PackingRequest): Promise<ResponseModel<Packing>>;
|
|
1056
872
|
/**
|
|
1057
|
-
*
|
|
1058
|
-
* @param id - ID
|
|
873
|
+
* Actualiza un empaque existente.
|
|
874
|
+
* @param id - ID del empaque a actualizar
|
|
875
|
+
* @param request - Nuevos datos del empaque
|
|
1059
876
|
*/
|
|
1060
|
-
|
|
877
|
+
updatePacking(id: number, request: PackingRequest): Promise<ResponseModel<Packing>>;
|
|
1061
878
|
/**
|
|
1062
|
-
*
|
|
1063
|
-
* @param
|
|
879
|
+
* Activa o desactiva un empaque.
|
|
880
|
+
* @param id - ID del empaque
|
|
1064
881
|
*/
|
|
1065
|
-
|
|
882
|
+
togglePackingStatus(id: number): Promise<ResponseModel<Packing>>;
|
|
1066
883
|
/**
|
|
1067
|
-
*
|
|
1068
|
-
* @param id - ID
|
|
1069
|
-
* @param request - Nuevos datos de la ruta
|
|
884
|
+
* Elimina un empaque.
|
|
885
|
+
* @param id - ID del empaque a eliminar
|
|
1070
886
|
*/
|
|
1071
|
-
|
|
887
|
+
deletePacking(id: number): Promise<ResponseModel<void>>;
|
|
1072
888
|
/**
|
|
1073
|
-
*
|
|
1074
|
-
* @param
|
|
889
|
+
* Obtiene todos los materiales con filtros opcionales.
|
|
890
|
+
* @param filter - Filtros opcionales para la búsqueda
|
|
1075
891
|
*/
|
|
1076
|
-
|
|
892
|
+
getMaterials(filter?: MaterialsFilter): Promise<ResponseModel<Material[]>>;
|
|
1077
893
|
/**
|
|
1078
|
-
*
|
|
1079
|
-
* @param id - ID de la ruta a eliminar
|
|
894
|
+
* Obtiene el modelo de filtros disponibles para materiales.
|
|
1080
895
|
*/
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
896
|
+
getMaterialFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
897
|
+
/**
|
|
898
|
+
* Obtiene un material por su ID.
|
|
899
|
+
* @param id - ID del material
|
|
900
|
+
*/
|
|
901
|
+
getMaterialById(id: number): Promise<ResponseModel<Material>>;
|
|
902
|
+
/**
|
|
903
|
+
* Crea un nuevo material.
|
|
904
|
+
* @param request - Datos del material a crear
|
|
905
|
+
*/
|
|
906
|
+
createMaterial(request: MaterialRequest): Promise<ResponseModel<Material>>;
|
|
907
|
+
/**
|
|
908
|
+
* Actualiza un material existente.
|
|
909
|
+
* @param id - ID del material a actualizar
|
|
910
|
+
* @param request - Nuevos datos del material
|
|
911
|
+
*/
|
|
912
|
+
updateMaterial(id: number, request: MaterialRequest): Promise<ResponseModel<Material>>;
|
|
913
|
+
/**
|
|
914
|
+
* Elimina un material.
|
|
915
|
+
* @param id - ID del material a eliminar
|
|
916
|
+
*/
|
|
917
|
+
deleteMaterial(id: number): Promise<ResponseModel<void>>;
|
|
918
|
+
/**
|
|
919
|
+
* Obtiene todos los proveedores con filtros opcionales.
|
|
920
|
+
* @param filter - Filtros opcionales para la búsqueda
|
|
921
|
+
*/
|
|
922
|
+
getProviders(filter?: ProvidersFilter): Promise<ResponseModel<Provider[]>>;
|
|
923
|
+
/**
|
|
924
|
+
* Obtiene el modelo de filtros disponibles para proveedores.
|
|
925
|
+
*/
|
|
926
|
+
getProviderFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
927
|
+
/**
|
|
928
|
+
* Obtiene un proveedor por su ID.
|
|
929
|
+
* @param id - ID del proveedor
|
|
930
|
+
*/
|
|
931
|
+
getProviderById(id: number): Promise<ResponseModel<Provider>>;
|
|
932
|
+
/**
|
|
933
|
+
* Crea un nuevo proveedor.
|
|
934
|
+
* @param request - Datos del proveedor a crear
|
|
935
|
+
*/
|
|
936
|
+
createProvider(request: ProviderRequest): Promise<ResponseModel<Provider>>;
|
|
937
|
+
/**
|
|
938
|
+
* Actualiza un proveedor existente.
|
|
939
|
+
* @param id - ID del proveedor a actualizar
|
|
940
|
+
* @param request - Nuevos datos del proveedor
|
|
941
|
+
*/
|
|
942
|
+
updateProvider(id: number, request: ProviderRequest): Promise<ResponseModel<Provider>>;
|
|
943
|
+
/**
|
|
944
|
+
* Activa o desactiva un proveedor.
|
|
945
|
+
* @param id - ID del proveedor
|
|
946
|
+
*/
|
|
947
|
+
toggleProviderStatus(id: number): Promise<ResponseModel<Provider>>;
|
|
948
|
+
/**
|
|
949
|
+
* Elimina un proveedor.
|
|
950
|
+
* @param id - ID del proveedor a eliminar
|
|
951
|
+
*/
|
|
952
|
+
deleteProvider(id: number): Promise<ResponseModel<void>>;
|
|
1123
953
|
}
|
|
1124
954
|
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
955
|
+
/**
|
|
956
|
+
* Interfaz que representa un módulo del sistema.
|
|
957
|
+
*/
|
|
958
|
+
interface Module {
|
|
959
|
+
moduleId: number;
|
|
960
|
+
module: string;
|
|
1128
961
|
description: string;
|
|
1129
|
-
|
|
1130
|
-
updatedAt: string | null;
|
|
1131
|
-
deleted: boolean | null;
|
|
962
|
+
isActive: boolean;
|
|
1132
963
|
}
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
964
|
+
/**
|
|
965
|
+
* Request para crear o actualizar un módulo.
|
|
966
|
+
*/
|
|
967
|
+
interface ModuleRequest {
|
|
968
|
+
module: string;
|
|
1136
969
|
description: string;
|
|
1137
|
-
|
|
1138
|
-
updatedAt?: string;
|
|
1139
|
-
deleted?: boolean;
|
|
970
|
+
isActive?: boolean;
|
|
1140
971
|
}
|
|
1141
|
-
|
|
972
|
+
/**
|
|
973
|
+
* Filtros disponibles para buscar módulos.
|
|
974
|
+
* Todos los campos son opcionales.
|
|
975
|
+
*/
|
|
976
|
+
interface ModulesFilter {
|
|
977
|
+
/** Búsqueda general (busca en Module y Description) */
|
|
1142
978
|
Search?: string;
|
|
1143
|
-
|
|
979
|
+
/** Filtro por nombre del módulo (búsqueda parcial) */
|
|
980
|
+
Module?: string;
|
|
981
|
+
/** Filtro por descripción (búsqueda parcial) */
|
|
1144
982
|
Description?: string;
|
|
983
|
+
/** Filtro por estado activo/inactivo */
|
|
984
|
+
IsActive?: boolean;
|
|
1145
985
|
}
|
|
1146
986
|
|
|
1147
987
|
/**
|
|
1148
|
-
* Interfaz que representa un
|
|
988
|
+
* Interfaz que representa un endpoint del sistema.
|
|
1149
989
|
*/
|
|
1150
|
-
interface
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
updatedAt: string | null;
|
|
1163
|
-
deleted: boolean | null;
|
|
990
|
+
interface Endpoint {
|
|
991
|
+
endpointId: number;
|
|
992
|
+
endpoint: string;
|
|
993
|
+
httpMethod: string;
|
|
994
|
+
path: string;
|
|
995
|
+
description: string;
|
|
996
|
+
requiresAuth: boolean;
|
|
997
|
+
requiresPermission: boolean | null;
|
|
998
|
+
requiresSignature: boolean;
|
|
999
|
+
requiresHeader: boolean;
|
|
1000
|
+
allowedOrigins: string;
|
|
1001
|
+
isActive: boolean;
|
|
1164
1002
|
}
|
|
1165
1003
|
/**
|
|
1166
|
-
* Request para crear o actualizar un
|
|
1004
|
+
* Request para crear o actualizar un endpoint.
|
|
1167
1005
|
*/
|
|
1168
|
-
interface
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1006
|
+
interface EndpointRequest {
|
|
1007
|
+
endpoint: string;
|
|
1008
|
+
httpMethod: string;
|
|
1009
|
+
path: string;
|
|
1010
|
+
description: string;
|
|
1011
|
+
requiresAuth?: boolean;
|
|
1012
|
+
requiresPermission?: boolean;
|
|
1013
|
+
requiresSignature?: boolean;
|
|
1014
|
+
requiresHeader?: boolean;
|
|
1015
|
+
allowedOrigins?: string[];
|
|
1016
|
+
isActive?: boolean;
|
|
1177
1017
|
}
|
|
1178
1018
|
/**
|
|
1179
|
-
*
|
|
1019
|
+
* Métodos HTTP disponibles para endpoints.
|
|
1180
1020
|
*/
|
|
1181
|
-
|
|
1021
|
+
type HttpMethodType = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
1022
|
+
/**
|
|
1023
|
+
* Filtros disponibles para buscar endpoints.
|
|
1024
|
+
* Todos los campos son opcionales.
|
|
1025
|
+
*/
|
|
1026
|
+
interface EndpointsFilter {
|
|
1027
|
+
/** Búsqueda general (busca en Endpoint, Path y Description) */
|
|
1182
1028
|
Search?: string;
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1029
|
+
/** Filtro por nombre del endpoint (búsqueda parcial) */
|
|
1030
|
+
Endpoint?: string;
|
|
1031
|
+
/** Filtro por método HTTP (GET, POST, PUT, DELETE, PATCH) */
|
|
1032
|
+
HttpMethod?: HttpMethodType;
|
|
1033
|
+
/** Filtro por módulo (primer segmento del path, búsqueda parcial) */
|
|
1034
|
+
Module?: string;
|
|
1035
|
+
/** Filtro por path (búsqueda parcial) */
|
|
1036
|
+
Path?: string;
|
|
1037
|
+
/** Filtro por descripción (búsqueda parcial) */
|
|
1038
|
+
Description?: string;
|
|
1039
|
+
/** Filtro por endpoints que requieren autenticación */
|
|
1040
|
+
RequiresAuth?: boolean;
|
|
1041
|
+
/** Filtro por endpoints que requieren validación de permisos */
|
|
1042
|
+
RequiresPermission?: boolean;
|
|
1043
|
+
/** Filtro por endpoints que requieren firma */
|
|
1044
|
+
RequiresSignature?: boolean;
|
|
1045
|
+
/** Filtro por endpoints que requieren header específico */
|
|
1046
|
+
RequiresHeader?: boolean;
|
|
1047
|
+
/** Filtro por estado activo/inactivo */
|
|
1186
1048
|
IsActive?: boolean;
|
|
1187
1049
|
}
|
|
1188
1050
|
|
|
1189
1051
|
/**
|
|
1190
|
-
* Interfaz que representa
|
|
1052
|
+
* Interfaz que representa una ruta de UI del sistema.
|
|
1191
1053
|
*/
|
|
1192
|
-
interface
|
|
1193
|
-
|
|
1194
|
-
|
|
1054
|
+
interface UIRoute {
|
|
1055
|
+
uiRouteId: number;
|
|
1056
|
+
uiRoute: string;
|
|
1057
|
+
path: string;
|
|
1195
1058
|
description: string;
|
|
1196
|
-
|
|
1197
|
-
isFragile: boolean | null;
|
|
1198
|
-
createdAt: string | null;
|
|
1199
|
-
updatedAt: string | null;
|
|
1200
|
-
deleted: boolean | null;
|
|
1059
|
+
isActive: boolean;
|
|
1201
1060
|
}
|
|
1202
1061
|
/**
|
|
1203
|
-
* Request para crear o actualizar
|
|
1062
|
+
* Request para crear o actualizar una ruta de UI.
|
|
1204
1063
|
*/
|
|
1205
|
-
interface
|
|
1206
|
-
|
|
1064
|
+
interface UIRouteRequest {
|
|
1065
|
+
uiRoute: string;
|
|
1066
|
+
path: string;
|
|
1207
1067
|
description: string;
|
|
1208
|
-
|
|
1209
|
-
isFragile?: boolean;
|
|
1068
|
+
isActive?: boolean;
|
|
1210
1069
|
}
|
|
1211
1070
|
/**
|
|
1212
|
-
* Filtros disponibles para buscar
|
|
1071
|
+
* Filtros disponibles para buscar rutas de UI.
|
|
1072
|
+
* Todos los campos son opcionales.
|
|
1213
1073
|
*/
|
|
1214
|
-
interface
|
|
1074
|
+
interface UIRoutesFilter {
|
|
1075
|
+
/** Búsqueda general (busca en UIRoute, Path y Description) */
|
|
1215
1076
|
Search?: string;
|
|
1216
|
-
|
|
1077
|
+
/** Filtro por nombre de la ruta (búsqueda parcial) */
|
|
1078
|
+
UIRoute?: string;
|
|
1079
|
+
/** Filtro por path (búsqueda parcial) */
|
|
1080
|
+
Path?: string;
|
|
1081
|
+
/** Filtro por descripción (búsqueda parcial) */
|
|
1217
1082
|
Description?: string;
|
|
1218
|
-
|
|
1219
|
-
|
|
1083
|
+
/** Filtro por estado activo/inactivo */
|
|
1084
|
+
IsActive?: boolean;
|
|
1220
1085
|
}
|
|
1221
1086
|
|
|
1222
1087
|
/**
|
|
1223
|
-
* Servicio para gestionar
|
|
1088
|
+
* Servicio para gestionar las configuraciones del sistema.
|
|
1224
1089
|
*/
|
|
1225
|
-
declare class
|
|
1090
|
+
declare class SystemService {
|
|
1226
1091
|
private api;
|
|
1227
1092
|
private readonly BASE_PATH;
|
|
1228
1093
|
constructor(api: API);
|
|
1229
1094
|
/**
|
|
1230
|
-
* Obtiene
|
|
1095
|
+
* Obtiene todos los módulos con filtros opcionales.
|
|
1231
1096
|
* @param filter - Filtros opcionales para la búsqueda
|
|
1232
1097
|
*/
|
|
1233
|
-
|
|
1098
|
+
getModules(filter?: ModulesFilter): Promise<ResponseModel<Module[]>>;
|
|
1234
1099
|
/**
|
|
1235
|
-
* Obtiene el modelo de filtros disponibles para
|
|
1100
|
+
* Obtiene el modelo de filtros disponibles para módulos.
|
|
1236
1101
|
*/
|
|
1237
|
-
|
|
1102
|
+
getModulesFilters(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1238
1103
|
/**
|
|
1239
|
-
* Obtiene
|
|
1240
|
-
* @param id - ID
|
|
1104
|
+
* Obtiene un módulo por su ID.
|
|
1105
|
+
* @param id - ID del módulo
|
|
1241
1106
|
*/
|
|
1242
|
-
|
|
1107
|
+
getModuleById(id: number): Promise<ResponseModel<Module>>;
|
|
1243
1108
|
/**
|
|
1244
|
-
* Crea
|
|
1245
|
-
* @param request - Datos
|
|
1109
|
+
* Crea un nuevo módulo.
|
|
1110
|
+
* @param request - Datos del módulo a crear
|
|
1246
1111
|
*/
|
|
1247
|
-
|
|
1112
|
+
createModule(request: ModuleRequest): Promise<ResponseModel<Module>>;
|
|
1248
1113
|
/**
|
|
1249
|
-
* Actualiza
|
|
1250
|
-
* @param id - ID
|
|
1251
|
-
* @param request - Nuevos datos
|
|
1114
|
+
* Actualiza un módulo existente.
|
|
1115
|
+
* @param id - ID del módulo a actualizar
|
|
1116
|
+
* @param request - Nuevos datos del módulo
|
|
1252
1117
|
*/
|
|
1253
|
-
|
|
1118
|
+
updateModule(id: number, request: ModuleRequest): Promise<ResponseModel<Module>>;
|
|
1254
1119
|
/**
|
|
1255
|
-
* Activa o desactiva
|
|
1256
|
-
* @param id - ID
|
|
1120
|
+
* Activa o desactiva un módulo.
|
|
1121
|
+
* @param id - ID del módulo
|
|
1257
1122
|
*/
|
|
1258
|
-
|
|
1123
|
+
toggleModuleStatus(id: number): Promise<ResponseModel<Module>>;
|
|
1259
1124
|
/**
|
|
1260
|
-
* Elimina
|
|
1261
|
-
* @param id - ID
|
|
1125
|
+
* Elimina un módulo.
|
|
1126
|
+
* @param id - ID del módulo a eliminar
|
|
1262
1127
|
*/
|
|
1263
|
-
|
|
1128
|
+
deleteModule(id: number): Promise<ResponseModel<void>>;
|
|
1264
1129
|
/**
|
|
1265
|
-
* Obtiene todos los
|
|
1130
|
+
* Obtiene todos los endpoints con filtros opcionales.
|
|
1266
1131
|
* @param filter - Filtros opcionales para la búsqueda
|
|
1267
1132
|
*/
|
|
1268
|
-
|
|
1269
|
-
/**
|
|
1270
|
-
* Obtiene el modelo de filtros disponibles para estatus de inventario.
|
|
1271
|
-
*/
|
|
1272
|
-
getStatusFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1273
|
-
/**
|
|
1274
|
-
* Obtiene un estatus de inventario por su ID.
|
|
1275
|
-
* @param id - ID del estatus
|
|
1276
|
-
*/
|
|
1277
|
-
getStatusById(id: number): Promise<ResponseModel<InventoryStatus>>;
|
|
1278
|
-
/**
|
|
1279
|
-
* Crea un nuevo estatus de inventario.
|
|
1280
|
-
* @param request - Datos del estatus a crear
|
|
1281
|
-
*/
|
|
1282
|
-
createStatus(request: InventoryStatusRequest): Promise<ResponseModel<InventoryStatus>>;
|
|
1283
|
-
/**
|
|
1284
|
-
* Actualiza un estatus de inventario existente.
|
|
1285
|
-
* @param id - ID del estatus a actualizar
|
|
1286
|
-
* @param request - Nuevos datos del estatus
|
|
1287
|
-
*/
|
|
1288
|
-
updateStatus(id: number, request: InventoryStatusRequest): Promise<ResponseModel<InventoryStatus>>;
|
|
1133
|
+
getEndpoints(filter?: EndpointsFilter): Promise<ResponseModel<Endpoint[]>>;
|
|
1289
1134
|
/**
|
|
1290
|
-
*
|
|
1291
|
-
* @param id - ID del estatus
|
|
1135
|
+
* Obtiene el modelo de filtros disponibles para endpoints.
|
|
1292
1136
|
*/
|
|
1293
|
-
|
|
1137
|
+
getEndpointsFilters(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1294
1138
|
/**
|
|
1295
|
-
*
|
|
1296
|
-
* @param id - ID del estatus a eliminar
|
|
1139
|
+
* Obtiene los módulos disponibles (valores únicos del primer segmento del path).
|
|
1297
1140
|
*/
|
|
1298
|
-
|
|
1141
|
+
getEndpointModules(): Promise<ResponseModel<string[]>>;
|
|
1299
1142
|
/**
|
|
1300
|
-
* Obtiene
|
|
1301
|
-
* @param
|
|
1143
|
+
* Obtiene un endpoint por su ID.
|
|
1144
|
+
* @param id - ID del endpoint
|
|
1302
1145
|
*/
|
|
1303
|
-
|
|
1146
|
+
getEndpointById(id: number): Promise<ResponseModel<Endpoint>>;
|
|
1304
1147
|
/**
|
|
1305
|
-
*
|
|
1148
|
+
* Crea un nuevo endpoint.
|
|
1149
|
+
* @param request - Datos del endpoint a crear
|
|
1306
1150
|
*/
|
|
1307
|
-
|
|
1151
|
+
createEndpoint(request: EndpointRequest): Promise<ResponseModel<Endpoint>>;
|
|
1308
1152
|
/**
|
|
1309
|
-
*
|
|
1310
|
-
* @param id - ID del
|
|
1153
|
+
* Actualiza un endpoint existente.
|
|
1154
|
+
* @param id - ID del endpoint a actualizar
|
|
1155
|
+
* @param request - Nuevos datos del endpoint
|
|
1311
1156
|
*/
|
|
1312
|
-
|
|
1157
|
+
updateEndpoint(id: number, request: EndpointRequest): Promise<ResponseModel<Endpoint>>;
|
|
1313
1158
|
/**
|
|
1314
|
-
*
|
|
1315
|
-
* @param
|
|
1159
|
+
* Activa o desactiva un endpoint.
|
|
1160
|
+
* @param id - ID del endpoint
|
|
1316
1161
|
*/
|
|
1317
|
-
|
|
1162
|
+
toggleEndpointStatus(id: number): Promise<ResponseModel<Endpoint>>;
|
|
1318
1163
|
/**
|
|
1319
|
-
*
|
|
1320
|
-
* @param id - ID del
|
|
1321
|
-
* @param request - Nuevos datos del empaque
|
|
1164
|
+
* Elimina un endpoint.
|
|
1165
|
+
* @param id - ID del endpoint a eliminar
|
|
1322
1166
|
*/
|
|
1323
|
-
|
|
1167
|
+
deleteEndpoint(id: number): Promise<ResponseModel<void>>;
|
|
1324
1168
|
/**
|
|
1325
|
-
*
|
|
1326
|
-
* @param
|
|
1169
|
+
* Obtiene todas las rutas de UI con filtros opcionales.
|
|
1170
|
+
* @param filter - Filtros opcionales para la búsqueda
|
|
1327
1171
|
*/
|
|
1328
|
-
|
|
1172
|
+
getUIRoutes(filter?: UIRoutesFilter): Promise<ResponseModel<UIRoute[]>>;
|
|
1329
1173
|
/**
|
|
1330
|
-
* Obtiene
|
|
1331
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
1174
|
+
* Obtiene el modelo de filtros disponibles para rutas de UI.
|
|
1332
1175
|
*/
|
|
1333
|
-
|
|
1176
|
+
getUIRoutesFilters(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1334
1177
|
/**
|
|
1335
|
-
* Obtiene
|
|
1178
|
+
* Obtiene una ruta de UI por su ID.
|
|
1179
|
+
* @param id - ID de la ruta
|
|
1336
1180
|
*/
|
|
1337
|
-
|
|
1181
|
+
getUIRouteById(id: number): Promise<ResponseModel<UIRoute>>;
|
|
1338
1182
|
/**
|
|
1339
|
-
*
|
|
1340
|
-
* @param
|
|
1183
|
+
* Crea una nueva ruta de UI.
|
|
1184
|
+
* @param request - Datos de la ruta a crear
|
|
1341
1185
|
*/
|
|
1342
|
-
|
|
1186
|
+
createUIRoute(request: UIRouteRequest): Promise<ResponseModel<UIRoute>>;
|
|
1343
1187
|
/**
|
|
1344
|
-
*
|
|
1345
|
-
* @param
|
|
1188
|
+
* Actualiza una ruta de UI existente.
|
|
1189
|
+
* @param id - ID de la ruta a actualizar
|
|
1190
|
+
* @param request - Nuevos datos de la ruta
|
|
1346
1191
|
*/
|
|
1347
|
-
|
|
1192
|
+
updateUIRoute(id: number, request: UIRouteRequest): Promise<ResponseModel<UIRoute>>;
|
|
1348
1193
|
/**
|
|
1349
|
-
*
|
|
1350
|
-
* @param id - ID
|
|
1351
|
-
* @param request - Nuevos datos del material
|
|
1194
|
+
* Activa o desactiva una ruta de UI.
|
|
1195
|
+
* @param id - ID de la ruta
|
|
1352
1196
|
*/
|
|
1353
|
-
|
|
1197
|
+
toggleUIRouteStatus(id: number): Promise<ResponseModel<UIRoute>>;
|
|
1354
1198
|
/**
|
|
1355
|
-
* Elimina
|
|
1356
|
-
* @param id - ID
|
|
1199
|
+
* Elimina una ruta de UI.
|
|
1200
|
+
* @param id - ID de la ruta a eliminar
|
|
1357
1201
|
*/
|
|
1358
|
-
|
|
1202
|
+
deleteUIRoute(id: number): Promise<ResponseModel<void>>;
|
|
1359
1203
|
}
|
|
1360
1204
|
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1205
|
+
interface AdminUser {
|
|
1206
|
+
userId: number;
|
|
1207
|
+
username: string;
|
|
1208
|
+
firstName: string;
|
|
1209
|
+
lastName: string;
|
|
1210
|
+
email: string;
|
|
1211
|
+
phone: string;
|
|
1212
|
+
areaCodeId: number | null;
|
|
1213
|
+
birthday: string | null;
|
|
1214
|
+
referrerUserId: number | null;
|
|
1215
|
+
userReferralCode: string;
|
|
1216
|
+
genderId: number | null;
|
|
1217
|
+
roleId: number | null;
|
|
1218
|
+
userTypeId: number | null;
|
|
1219
|
+
isActive: boolean;
|
|
1220
|
+
createdAt: string;
|
|
1372
1221
|
updatedAt: string | null;
|
|
1373
|
-
deleted: boolean | null;
|
|
1374
1222
|
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1223
|
+
interface AdminAuthentication {
|
|
1224
|
+
userAuthenticationId: number;
|
|
1225
|
+
userId: number;
|
|
1226
|
+
securityLevel: number;
|
|
1227
|
+
clientId: string;
|
|
1228
|
+
isTwoFactorEnabled: boolean;
|
|
1229
|
+
failedLoginAttempts: number;
|
|
1230
|
+
lastLogin: string | null;
|
|
1231
|
+
isActive: boolean;
|
|
1232
|
+
isLocked: boolean;
|
|
1233
|
+
emailVerified: boolean;
|
|
1234
|
+
phoneVerified: boolean;
|
|
1235
|
+
mustChangePassword: boolean;
|
|
1236
|
+
passwordLastChanged: string | null;
|
|
1237
|
+
passwordExpiresAt: string | null;
|
|
1238
|
+
lastLoginIP: string | null;
|
|
1239
|
+
lastLoginDevice: string | null;
|
|
1240
|
+
lastActivityAt: string | null;
|
|
1241
|
+
createdAt: string;
|
|
1242
|
+
updatedAt: string | null;
|
|
1384
1243
|
}
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1244
|
+
|
|
1245
|
+
interface UserAdminRequest {
|
|
1246
|
+
username: string;
|
|
1247
|
+
firstName: string;
|
|
1248
|
+
lastName: string;
|
|
1249
|
+
email: string;
|
|
1250
|
+
phone: string;
|
|
1251
|
+
areaCodeId: number;
|
|
1252
|
+
birthday: string;
|
|
1253
|
+
genderId: number;
|
|
1254
|
+
roleId: number;
|
|
1255
|
+
userTypeId: number;
|
|
1394
1256
|
}
|
|
1395
1257
|
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
productId: number;
|
|
1402
|
-
bulletOrder: number;
|
|
1403
|
-
title: string;
|
|
1404
|
-
text: string;
|
|
1405
|
-
createdAt: string | null;
|
|
1406
|
-
updatedAt: string | null;
|
|
1407
|
-
deleted: boolean | null;
|
|
1258
|
+
interface UserAuthAdminRequest {
|
|
1259
|
+
userId: number;
|
|
1260
|
+
securityLevel: number;
|
|
1261
|
+
clientId: string;
|
|
1262
|
+
requireEmailConfirmation?: boolean;
|
|
1408
1263
|
}
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
interface ProductBulletRequest {
|
|
1413
|
-
productId: number;
|
|
1414
|
-
bulletOrder: number;
|
|
1415
|
-
title: string;
|
|
1416
|
-
text: string;
|
|
1264
|
+
|
|
1265
|
+
interface ChangePasswordAdminRequest {
|
|
1266
|
+
newPassword: string;
|
|
1417
1267
|
}
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
*/
|
|
1421
|
-
interface ProductBulletsFilter {
|
|
1268
|
+
|
|
1269
|
+
interface UserAdminFilter {
|
|
1422
1270
|
Search?: string;
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1271
|
+
Username?: string;
|
|
1272
|
+
FirstName?: string;
|
|
1273
|
+
LastName?: string;
|
|
1274
|
+
Email?: string;
|
|
1275
|
+
Phone?: string;
|
|
1276
|
+
RoleId?: number;
|
|
1277
|
+
UserTypeId?: number;
|
|
1278
|
+
IsActive?: boolean;
|
|
1426
1279
|
}
|
|
1427
1280
|
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
/**
|
|
1440
|
-
* Request para crear o actualizar un keyword de producto.
|
|
1441
|
-
*/
|
|
1442
|
-
interface ProductKeywordRequest {
|
|
1443
|
-
productId: number;
|
|
1444
|
-
keyword: string;
|
|
1281
|
+
interface UserAdminUpdateRequest {
|
|
1282
|
+
username: string;
|
|
1283
|
+
firstName: string;
|
|
1284
|
+
lastName: string;
|
|
1285
|
+
email: string;
|
|
1286
|
+
phone: string;
|
|
1287
|
+
areaCodeId: number;
|
|
1288
|
+
birthday?: string;
|
|
1289
|
+
genderId: number;
|
|
1290
|
+
roleId: number;
|
|
1291
|
+
userTypeId: number;
|
|
1445
1292
|
}
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1293
|
+
|
|
1294
|
+
interface UserAuthUpdateRequest {
|
|
1295
|
+
securityLevel: number;
|
|
1296
|
+
clientId: string;
|
|
1297
|
+
isTwoFactorEnabled?: boolean;
|
|
1298
|
+
emailVerified?: boolean;
|
|
1299
|
+
phoneVerified?: boolean;
|
|
1453
1300
|
}
|
|
1454
1301
|
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
interface ProductPrice {
|
|
1459
|
-
productPriceId: number;
|
|
1460
|
-
productId: number;
|
|
1461
|
-
priceTypeId: number;
|
|
1462
|
-
value: number;
|
|
1463
|
-
currency: string;
|
|
1464
|
-
eventId: number | null;
|
|
1465
|
-
validFrom: string | null;
|
|
1466
|
-
validTo: string | null;
|
|
1467
|
-
createdAt: string | null;
|
|
1468
|
-
updatedAt: string | null;
|
|
1469
|
-
deleted: boolean | null;
|
|
1302
|
+
interface ChangePasswordUserRequest {
|
|
1303
|
+
currentPassword: string;
|
|
1304
|
+
newPassword: string;
|
|
1470
1305
|
}
|
|
1306
|
+
|
|
1471
1307
|
/**
|
|
1472
|
-
*
|
|
1308
|
+
* Interfaz que representa un rol del sistema.
|
|
1473
1309
|
*/
|
|
1474
|
-
interface
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
validTo?: string;
|
|
1482
|
-
}
|
|
1483
|
-
/**
|
|
1484
|
-
* Filtros disponibles para buscar precios de producto.
|
|
1485
|
-
*/
|
|
1486
|
-
interface ProductPricesFilter {
|
|
1487
|
-
Search?: string;
|
|
1488
|
-
ProductId?: number;
|
|
1489
|
-
PriceTypeId?: number;
|
|
1490
|
-
Currency?: string;
|
|
1491
|
-
EventId?: number;
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
/**
|
|
1495
|
-
* Interfaz que representa un producto en blanco.
|
|
1496
|
-
*/
|
|
1497
|
-
interface BlankProduct {
|
|
1498
|
-
blankProductId: number;
|
|
1499
|
-
sku: string;
|
|
1500
|
-
providerId: number | null;
|
|
1501
|
-
materialId: number | null;
|
|
1502
|
-
color: string;
|
|
1503
|
-
sizeId: number | null;
|
|
1504
|
-
price: number | null;
|
|
1505
|
-
createdAt: string | null;
|
|
1506
|
-
updatedAt: string | null;
|
|
1507
|
-
deleted: boolean | null;
|
|
1508
|
-
}
|
|
1509
|
-
/**
|
|
1510
|
-
* Request para crear o actualizar un producto en blanco.
|
|
1511
|
-
*/
|
|
1512
|
-
interface BlankProductRequest {
|
|
1513
|
-
sku: string;
|
|
1514
|
-
providerId?: number;
|
|
1515
|
-
materialId?: number;
|
|
1516
|
-
color: string;
|
|
1517
|
-
sizeId?: number;
|
|
1518
|
-
price?: number;
|
|
1519
|
-
}
|
|
1520
|
-
/**
|
|
1521
|
-
* Filtros disponibles para buscar productos en blanco.
|
|
1522
|
-
*/
|
|
1523
|
-
interface BlankProductsFilter {
|
|
1524
|
-
Search?: string;
|
|
1525
|
-
SKU?: string;
|
|
1526
|
-
ProviderId?: number;
|
|
1527
|
-
MaterialId?: number;
|
|
1528
|
-
Color?: string;
|
|
1529
|
-
SizeId?: number;
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
/**
|
|
1533
|
-
* Interfaz que representa un detalle de producto POD (Print on Demand).
|
|
1534
|
-
*/
|
|
1535
|
-
interface DetailProductPOD {
|
|
1536
|
-
detailProductPODId: number;
|
|
1537
|
-
productId: number | null;
|
|
1538
|
-
blankProductId: number | null;
|
|
1539
|
-
mokup: string;
|
|
1540
|
-
frontPrint: string;
|
|
1541
|
-
backPrint: string;
|
|
1542
|
-
sidePrint: string;
|
|
1543
|
-
detailPrint: string;
|
|
1544
|
-
neckLabel: string;
|
|
1545
|
-
handTag: string;
|
|
1546
|
-
royalty: number | null;
|
|
1547
|
-
colorVariant: string;
|
|
1548
|
-
createdAt: string | null;
|
|
1549
|
-
updatedAt: string | null;
|
|
1550
|
-
deleted: boolean | null;
|
|
1551
|
-
}
|
|
1552
|
-
/**
|
|
1553
|
-
* Request para crear o actualizar un detalle de producto POD.
|
|
1554
|
-
*/
|
|
1555
|
-
interface DetailProductPODRequest {
|
|
1556
|
-
productId?: number;
|
|
1557
|
-
blankProductId?: number;
|
|
1558
|
-
mokup: string;
|
|
1559
|
-
frontPrint: string;
|
|
1560
|
-
backPrint: string;
|
|
1561
|
-
sidePrint: string;
|
|
1562
|
-
detailPrint: string;
|
|
1563
|
-
neckLabel: string;
|
|
1564
|
-
handTag: string;
|
|
1565
|
-
royalty?: number;
|
|
1566
|
-
colorVariant: string;
|
|
1567
|
-
}
|
|
1568
|
-
/**
|
|
1569
|
-
* Filtros disponibles para buscar detalles de producto POD.
|
|
1570
|
-
*/
|
|
1571
|
-
interface DetailProductPODFilter {
|
|
1572
|
-
Search?: string;
|
|
1573
|
-
ProductId?: number;
|
|
1574
|
-
BlankProductId?: number;
|
|
1575
|
-
ColorVariant?: string;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
/**
|
|
1579
|
-
* Interfaz que representa una talla.
|
|
1580
|
-
*/
|
|
1581
|
-
interface Size {
|
|
1582
|
-
sizeId: number;
|
|
1583
|
-
size: string;
|
|
1584
|
-
description: string;
|
|
1585
|
-
sizeGroupId: number | null;
|
|
1586
|
-
width: string;
|
|
1587
|
-
length: string;
|
|
1588
|
-
createdAt: string | null;
|
|
1589
|
-
updatedAt: string | null;
|
|
1590
|
-
deleted: boolean | null;
|
|
1591
|
-
}
|
|
1592
|
-
/**
|
|
1593
|
-
* Request para crear o actualizar una talla.
|
|
1594
|
-
*/
|
|
1595
|
-
interface SizeRequest {
|
|
1596
|
-
size: string;
|
|
1597
|
-
description: string;
|
|
1598
|
-
sizeGroupId?: number;
|
|
1599
|
-
width: string;
|
|
1600
|
-
length: string;
|
|
1601
|
-
}
|
|
1602
|
-
/**
|
|
1603
|
-
* Filtros disponibles para buscar tallas.
|
|
1604
|
-
*/
|
|
1605
|
-
interface SizesFilter {
|
|
1606
|
-
Search?: string;
|
|
1607
|
-
Size?: string;
|
|
1608
|
-
Description?: string;
|
|
1609
|
-
SizeGroupId?: number;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
/**
|
|
1613
|
-
* Interfaz que representa un grupo de tallas.
|
|
1614
|
-
*/
|
|
1615
|
-
interface SizeGroup {
|
|
1616
|
-
sizeGroupId: number;
|
|
1617
|
-
sizeGroup: string;
|
|
1618
|
-
description: string;
|
|
1619
|
-
createdAt: string | null;
|
|
1620
|
-
updatedAt: string | null;
|
|
1621
|
-
deleted: boolean | null;
|
|
1622
|
-
}
|
|
1623
|
-
/**
|
|
1624
|
-
* Request para crear o actualizar un grupo de tallas.
|
|
1625
|
-
*/
|
|
1626
|
-
interface SizeGroupRequest {
|
|
1627
|
-
sizeGroup: string;
|
|
1628
|
-
description: string;
|
|
1629
|
-
}
|
|
1630
|
-
/**
|
|
1631
|
-
* Filtros disponibles para buscar grupos de tallas.
|
|
1632
|
-
*/
|
|
1633
|
-
interface SizeGroupsFilter {
|
|
1634
|
-
Search?: string;
|
|
1635
|
-
SizeGroup?: string;
|
|
1636
|
-
Description?: string;
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
/**
|
|
1640
|
-
* Interfaz que representa un tipo de producto.
|
|
1641
|
-
*/
|
|
1642
|
-
interface ProductType {
|
|
1643
|
-
productTypeId: number;
|
|
1644
|
-
productType: string;
|
|
1645
|
-
description: string;
|
|
1646
|
-
createdAt: string | null;
|
|
1647
|
-
updatedAt: string | null;
|
|
1648
|
-
deleted: boolean | null;
|
|
1649
|
-
}
|
|
1650
|
-
/**
|
|
1651
|
-
* Request para crear o actualizar un tipo de producto.
|
|
1652
|
-
*/
|
|
1653
|
-
interface ProductTypeRequest {
|
|
1654
|
-
productType: string;
|
|
1655
|
-
description: string;
|
|
1656
|
-
}
|
|
1657
|
-
/**
|
|
1658
|
-
* Filtros disponibles para buscar tipos de producto.
|
|
1659
|
-
*/
|
|
1660
|
-
interface ProductTypesFilter {
|
|
1661
|
-
Search?: string;
|
|
1662
|
-
ProductType?: string;
|
|
1663
|
-
Description?: string;
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
|
-
/**
|
|
1667
|
-
* Interfaz que representa una categoría de producto.
|
|
1668
|
-
*/
|
|
1669
|
-
interface ProductCategory {
|
|
1670
|
-
productCategoryId: number;
|
|
1671
|
-
productCategory: string;
|
|
1672
|
-
description: string;
|
|
1673
|
-
isActive: boolean | null;
|
|
1674
|
-
createdAt: string | null;
|
|
1675
|
-
updatedAt: string | null;
|
|
1676
|
-
deleted: boolean | null;
|
|
1310
|
+
interface Role {
|
|
1311
|
+
roleId: number;
|
|
1312
|
+
role: string;
|
|
1313
|
+
key?: string;
|
|
1314
|
+
description?: string;
|
|
1315
|
+
userTypeId: number;
|
|
1316
|
+
isActive: boolean;
|
|
1677
1317
|
}
|
|
1678
1318
|
/**
|
|
1679
|
-
* Request para crear o actualizar
|
|
1319
|
+
* Request para crear o actualizar un rol.
|
|
1680
1320
|
*/
|
|
1681
|
-
interface
|
|
1682
|
-
|
|
1683
|
-
|
|
1321
|
+
interface RoleRequest {
|
|
1322
|
+
role: string;
|
|
1323
|
+
userTypeId: number;
|
|
1324
|
+
key?: string;
|
|
1325
|
+
description?: string;
|
|
1684
1326
|
isActive?: boolean;
|
|
1685
1327
|
}
|
|
1686
1328
|
/**
|
|
1687
|
-
* Filtros disponibles para buscar
|
|
1329
|
+
* Filtros disponibles para buscar roles.
|
|
1688
1330
|
*/
|
|
1689
|
-
interface
|
|
1331
|
+
interface RolesFilter {
|
|
1332
|
+
/** Búsqueda general */
|
|
1690
1333
|
Search?: string;
|
|
1691
|
-
|
|
1334
|
+
/** Filtro por nombre del rol (búsqueda parcial) */
|
|
1335
|
+
Role?: string;
|
|
1336
|
+
/** Filtro por descripción (búsqueda parcial) */
|
|
1692
1337
|
Description?: string;
|
|
1338
|
+
/** Filtro por estado activo/inactivo */
|
|
1693
1339
|
IsActive?: boolean;
|
|
1694
1340
|
}
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
*/
|
|
1699
|
-
interface ProductStatus {
|
|
1700
|
-
productStatusId: number;
|
|
1701
|
-
productStatus: string;
|
|
1702
|
-
description: string;
|
|
1703
|
-
isSellable: boolean | null;
|
|
1704
|
-
createdAt: string | null;
|
|
1705
|
-
updatedAt: string | null;
|
|
1706
|
-
deleted: boolean | null;
|
|
1707
|
-
}
|
|
1708
|
-
/**
|
|
1709
|
-
* Request para crear o actualizar un estatus de producto.
|
|
1710
|
-
*/
|
|
1711
|
-
interface ProductStatusRequest {
|
|
1712
|
-
productStatus: string;
|
|
1713
|
-
description: string;
|
|
1714
|
-
isSellable?: boolean;
|
|
1715
|
-
}
|
|
1716
|
-
/**
|
|
1717
|
-
* Filtros disponibles para buscar estatus de producto.
|
|
1718
|
-
*/
|
|
1719
|
-
interface ProductStatusesFilter {
|
|
1720
|
-
Search?: string;
|
|
1721
|
-
ProductStatus?: string;
|
|
1722
|
-
Description?: string;
|
|
1723
|
-
IsSellable?: boolean;
|
|
1341
|
+
interface RoleUserProfile {
|
|
1342
|
+
roleId: number;
|
|
1343
|
+
role: string;
|
|
1724
1344
|
}
|
|
1725
1345
|
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1346
|
+
interface UserBasicResponse {
|
|
1347
|
+
username: string;
|
|
1348
|
+
firstName: string;
|
|
1349
|
+
lastName: string;
|
|
1350
|
+
fullName: string;
|
|
1351
|
+
email: string;
|
|
1352
|
+
phone: string;
|
|
1353
|
+
role: UserRole;
|
|
1354
|
+
userType: UserType$1;
|
|
1355
|
+
isActive: boolean;
|
|
1356
|
+
securityLevel: number;
|
|
1737
1357
|
}
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
studio: string;
|
|
1743
|
-
logo: string;
|
|
1744
|
-
isActive?: boolean;
|
|
1358
|
+
interface UserRole {
|
|
1359
|
+
roleId: number;
|
|
1360
|
+
key: string;
|
|
1361
|
+
role: string;
|
|
1745
1362
|
}
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
Search?: string;
|
|
1751
|
-
Studio?: string;
|
|
1752
|
-
IsActive?: boolean;
|
|
1363
|
+
interface UserType$1 {
|
|
1364
|
+
userTypeId: number;
|
|
1365
|
+
key: string;
|
|
1366
|
+
userType: string;
|
|
1753
1367
|
}
|
|
1754
1368
|
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
isActive: boolean | null;
|
|
1764
|
-
createdAt: string | null;
|
|
1765
|
-
updatedAt: string | null;
|
|
1766
|
-
deleted: boolean | null;
|
|
1767
|
-
}
|
|
1768
|
-
/**
|
|
1769
|
-
* Request para crear o actualizar una licencia.
|
|
1770
|
-
*/
|
|
1771
|
-
interface LicenseRequest {
|
|
1772
|
-
license: string;
|
|
1773
|
-
studioId?: number;
|
|
1774
|
-
region: string;
|
|
1775
|
-
isActive?: boolean;
|
|
1776
|
-
}
|
|
1777
|
-
/**
|
|
1778
|
-
* Filtros disponibles para buscar licencias.
|
|
1779
|
-
*/
|
|
1780
|
-
interface LicensesFilter {
|
|
1781
|
-
Search?: string;
|
|
1782
|
-
License?: string;
|
|
1783
|
-
StudioId?: number;
|
|
1784
|
-
Region?: string;
|
|
1785
|
-
IsActive?: boolean;
|
|
1369
|
+
interface UserDataUpdateRequest {
|
|
1370
|
+
username: string;
|
|
1371
|
+
firstName: string;
|
|
1372
|
+
lastName: string;
|
|
1373
|
+
areaCodeId: number;
|
|
1374
|
+
phone: string;
|
|
1375
|
+
birthday: Date;
|
|
1376
|
+
profilePhoto: string;
|
|
1786
1377
|
}
|
|
1787
1378
|
|
|
1788
1379
|
/**
|
|
1789
|
-
* Interfaz que representa un
|
|
1380
|
+
* Interfaz que representa un tipo de usuario.
|
|
1790
1381
|
*/
|
|
1791
|
-
interface
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
contactNumber: string;
|
|
1797
|
-
contactEmail: string;
|
|
1798
|
-
isActive: boolean;
|
|
1799
|
-
createdAt: string;
|
|
1800
|
-
updatedAt: string;
|
|
1801
|
-
deleted: boolean;
|
|
1382
|
+
interface UserType {
|
|
1383
|
+
userTypeId: number;
|
|
1384
|
+
userType: string;
|
|
1385
|
+
key?: string;
|
|
1386
|
+
description?: string;
|
|
1802
1387
|
}
|
|
1803
1388
|
/**
|
|
1804
|
-
* Request para crear o actualizar un
|
|
1389
|
+
* Request para crear o actualizar un tipo de usuario.
|
|
1805
1390
|
*/
|
|
1806
|
-
interface
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
contactNumber: string;
|
|
1811
|
-
contactEmail: string;
|
|
1812
|
-
isActive?: boolean;
|
|
1391
|
+
interface UserTypeRequest {
|
|
1392
|
+
userType: string;
|
|
1393
|
+
key?: string;
|
|
1394
|
+
description?: string;
|
|
1813
1395
|
}
|
|
1814
1396
|
/**
|
|
1815
|
-
* Filtros disponibles para buscar
|
|
1397
|
+
* Filtros disponibles para buscar tipos de usuario.
|
|
1816
1398
|
*/
|
|
1817
|
-
interface
|
|
1399
|
+
interface UserTypesFilter {
|
|
1400
|
+
/** Búsqueda general */
|
|
1818
1401
|
Search?: string;
|
|
1819
|
-
|
|
1820
|
-
|
|
1402
|
+
/** Filtro por tipo de usuario (búsqueda parcial) */
|
|
1403
|
+
UserType?: string;
|
|
1404
|
+
/** Filtro por key (búsqueda parcial) */
|
|
1405
|
+
Key?: string;
|
|
1406
|
+
/** Filtro por descripción (búsqueda parcial) */
|
|
1407
|
+
Description?: string;
|
|
1408
|
+
}
|
|
1409
|
+
interface UserTypeUserProfile {
|
|
1410
|
+
userTypeId: number;
|
|
1411
|
+
userType: string;
|
|
1821
1412
|
}
|
|
1822
1413
|
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
* @param request - Nuevos datos de la imagen
|
|
1853
|
-
*/
|
|
1854
|
-
updateImage(id: number, request: ProductImageRequest): Promise<ResponseModel<ProductImage>>;
|
|
1855
|
-
/**
|
|
1856
|
-
* Elimina una imagen de producto.
|
|
1857
|
-
* @param id - ID de la imagen a eliminar
|
|
1858
|
-
*/
|
|
1859
|
-
deleteImage(id: number): Promise<ResponseModel<void>>;
|
|
1860
|
-
/**
|
|
1861
|
-
* Obtiene todos los bullets de producto con filtros opcionales.
|
|
1862
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
1863
|
-
*/
|
|
1864
|
-
getBullets(filter?: ProductBulletsFilter): Promise<ResponseModel<ProductBullet[]>>;
|
|
1865
|
-
/**
|
|
1866
|
-
* Obtiene el modelo de filtros disponibles para bullets de producto.
|
|
1867
|
-
*/
|
|
1868
|
-
getBulletFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1869
|
-
/**
|
|
1870
|
-
* Obtiene un bullet de producto por su ID.
|
|
1871
|
-
* @param id - ID del bullet
|
|
1872
|
-
*/
|
|
1873
|
-
getBulletById(id: number): Promise<ResponseModel<ProductBullet>>;
|
|
1874
|
-
/**
|
|
1875
|
-
* Crea un nuevo bullet de producto.
|
|
1876
|
-
* @param request - Datos del bullet a crear
|
|
1877
|
-
*/
|
|
1878
|
-
createBullet(request: ProductBulletRequest): Promise<ResponseModel<ProductBullet>>;
|
|
1879
|
-
/**
|
|
1880
|
-
* Actualiza un bullet de producto existente.
|
|
1881
|
-
* @param id - ID del bullet a actualizar
|
|
1882
|
-
* @param request - Nuevos datos del bullet
|
|
1883
|
-
*/
|
|
1884
|
-
updateBullet(id: number, request: ProductBulletRequest): Promise<ResponseModel<ProductBullet>>;
|
|
1885
|
-
/**
|
|
1886
|
-
* Elimina un bullet de producto.
|
|
1887
|
-
* @param id - ID del bullet a eliminar
|
|
1888
|
-
*/
|
|
1889
|
-
deleteBullet(id: number): Promise<ResponseModel<void>>;
|
|
1890
|
-
/**
|
|
1891
|
-
* Obtiene todos los keywords de producto con filtros opcionales.
|
|
1892
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
1893
|
-
*/
|
|
1894
|
-
getKeywords(filter?: ProductKeywordsFilter): Promise<ResponseModel<ProductKeyword[]>>;
|
|
1895
|
-
/**
|
|
1896
|
-
* Obtiene el modelo de filtros disponibles para keywords de producto.
|
|
1897
|
-
*/
|
|
1898
|
-
getKeywordFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1899
|
-
/**
|
|
1900
|
-
* Obtiene un keyword de producto por su ID.
|
|
1901
|
-
* @param id - ID del keyword
|
|
1902
|
-
*/
|
|
1903
|
-
getKeywordById(id: number): Promise<ResponseModel<ProductKeyword>>;
|
|
1904
|
-
/**
|
|
1905
|
-
* Crea un nuevo keyword de producto.
|
|
1906
|
-
* @param request - Datos del keyword a crear
|
|
1907
|
-
*/
|
|
1908
|
-
createKeyword(request: ProductKeywordRequest): Promise<ResponseModel<ProductKeyword>>;
|
|
1909
|
-
/**
|
|
1910
|
-
* Actualiza un keyword de producto existente.
|
|
1911
|
-
* @param id - ID del keyword a actualizar
|
|
1912
|
-
* @param request - Nuevos datos del keyword
|
|
1913
|
-
*/
|
|
1914
|
-
updateKeyword(id: number, request: ProductKeywordRequest): Promise<ResponseModel<ProductKeyword>>;
|
|
1915
|
-
/**
|
|
1916
|
-
* Elimina un keyword de producto.
|
|
1917
|
-
* @param id - ID del keyword a eliminar
|
|
1918
|
-
*/
|
|
1919
|
-
deleteKeyword(id: number): Promise<ResponseModel<void>>;
|
|
1920
|
-
/**
|
|
1921
|
-
* Obtiene todos los precios de producto con filtros opcionales.
|
|
1922
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
1923
|
-
*/
|
|
1924
|
-
getPrices(filter?: ProductPricesFilter): Promise<ResponseModel<ProductPrice[]>>;
|
|
1925
|
-
/**
|
|
1926
|
-
* Obtiene el modelo de filtros disponibles para precios de producto.
|
|
1927
|
-
*/
|
|
1928
|
-
getPriceFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1929
|
-
/**
|
|
1930
|
-
* Obtiene un precio de producto por su ID.
|
|
1931
|
-
* @param id - ID del precio
|
|
1932
|
-
*/
|
|
1933
|
-
getPriceById(id: number): Promise<ResponseModel<ProductPrice>>;
|
|
1934
|
-
/**
|
|
1935
|
-
* Crea un nuevo precio de producto.
|
|
1936
|
-
* @param request - Datos del precio a crear
|
|
1937
|
-
*/
|
|
1938
|
-
createPrice(request: ProductPriceRequest): Promise<ResponseModel<ProductPrice>>;
|
|
1939
|
-
/**
|
|
1940
|
-
* Actualiza un precio de producto existente.
|
|
1941
|
-
* @param id - ID del precio a actualizar
|
|
1942
|
-
* @param request - Nuevos datos del precio
|
|
1943
|
-
*/
|
|
1944
|
-
updatePrice(id: number, request: ProductPriceRequest): Promise<ResponseModel<ProductPrice>>;
|
|
1945
|
-
/**
|
|
1946
|
-
* Elimina un precio de producto.
|
|
1947
|
-
* @param id - ID del precio a eliminar
|
|
1948
|
-
*/
|
|
1949
|
-
deletePrice(id: number): Promise<ResponseModel<void>>;
|
|
1950
|
-
/**
|
|
1951
|
-
* Obtiene todos los productos en blanco con filtros opcionales.
|
|
1952
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
1953
|
-
*/
|
|
1954
|
-
getBlankProducts(filter?: BlankProductsFilter): Promise<ResponseModel<BlankProduct[]>>;
|
|
1955
|
-
/**
|
|
1956
|
-
* Obtiene el modelo de filtros disponibles para productos en blanco.
|
|
1957
|
-
*/
|
|
1958
|
-
getBlankProductFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1959
|
-
/**
|
|
1960
|
-
* Obtiene un producto en blanco por su ID.
|
|
1961
|
-
* @param id - ID del producto en blanco
|
|
1962
|
-
*/
|
|
1963
|
-
getBlankProductById(id: number): Promise<ResponseModel<BlankProduct>>;
|
|
1964
|
-
/**
|
|
1965
|
-
* Crea un nuevo producto en blanco.
|
|
1966
|
-
* @param request - Datos del producto en blanco a crear
|
|
1967
|
-
*/
|
|
1968
|
-
createBlankProduct(request: BlankProductRequest): Promise<ResponseModel<BlankProduct>>;
|
|
1969
|
-
/**
|
|
1970
|
-
* Actualiza un producto en blanco existente.
|
|
1971
|
-
* @param id - ID del producto en blanco a actualizar
|
|
1972
|
-
* @param request - Nuevos datos del producto en blanco
|
|
1973
|
-
*/
|
|
1974
|
-
updateBlankProduct(id: number, request: BlankProductRequest): Promise<ResponseModel<BlankProduct>>;
|
|
1975
|
-
/**
|
|
1976
|
-
* Elimina un producto en blanco.
|
|
1977
|
-
* @param id - ID del producto en blanco a eliminar
|
|
1978
|
-
*/
|
|
1979
|
-
deleteBlankProduct(id: number): Promise<ResponseModel<void>>;
|
|
1980
|
-
/**
|
|
1981
|
-
* Obtiene todos los detalles de producto POD con filtros opcionales.
|
|
1982
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
1983
|
-
*/
|
|
1984
|
-
getPODDetails(filter?: DetailProductPODFilter): Promise<ResponseModel<DetailProductPOD[]>>;
|
|
1985
|
-
/**
|
|
1986
|
-
* Obtiene el modelo de filtros disponibles para detalles de producto POD.
|
|
1987
|
-
*/
|
|
1988
|
-
getPODDetailFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1989
|
-
/**
|
|
1990
|
-
* Obtiene un detalle de producto POD por su ID.
|
|
1991
|
-
* @param id - ID del detalle POD
|
|
1992
|
-
*/
|
|
1993
|
-
getPODDetailById(id: number): Promise<ResponseModel<DetailProductPOD>>;
|
|
1994
|
-
/**
|
|
1995
|
-
* Crea un nuevo detalle de producto POD.
|
|
1996
|
-
* @param request - Datos del detalle POD a crear
|
|
1997
|
-
*/
|
|
1998
|
-
createPODDetail(request: DetailProductPODRequest): Promise<ResponseModel<DetailProductPOD>>;
|
|
1999
|
-
/**
|
|
2000
|
-
* Actualiza un detalle de producto POD existente.
|
|
2001
|
-
* @param id - ID del detalle POD a actualizar
|
|
2002
|
-
* @param request - Nuevos datos del detalle POD
|
|
2003
|
-
*/
|
|
2004
|
-
updatePODDetail(id: number, request: DetailProductPODRequest): Promise<ResponseModel<DetailProductPOD>>;
|
|
2005
|
-
/**
|
|
2006
|
-
* Elimina un detalle de producto POD.
|
|
2007
|
-
* @param id - ID del detalle POD a eliminar
|
|
2008
|
-
*/
|
|
2009
|
-
deletePODDetail(id: number): Promise<ResponseModel<void>>;
|
|
2010
|
-
/**
|
|
2011
|
-
* Obtiene todas las tallas con filtros opcionales.
|
|
2012
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
2013
|
-
*/
|
|
2014
|
-
getSizes(filter?: SizesFilter): Promise<ResponseModel<Size[]>>;
|
|
2015
|
-
/**
|
|
2016
|
-
* Obtiene el modelo de filtros disponibles para tallas.
|
|
2017
|
-
*/
|
|
2018
|
-
getSizeFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
2019
|
-
/**
|
|
2020
|
-
* Obtiene una talla por su ID.
|
|
2021
|
-
* @param id - ID de la talla
|
|
2022
|
-
*/
|
|
2023
|
-
getSizeById(id: number): Promise<ResponseModel<Size>>;
|
|
2024
|
-
/**
|
|
2025
|
-
* Crea una nueva talla.
|
|
2026
|
-
* @param request - Datos de la talla a crear
|
|
2027
|
-
*/
|
|
2028
|
-
createSize(request: SizeRequest): Promise<ResponseModel<Size>>;
|
|
2029
|
-
/**
|
|
2030
|
-
* Actualiza una talla existente.
|
|
2031
|
-
* @param id - ID de la talla a actualizar
|
|
2032
|
-
* @param request - Nuevos datos de la talla
|
|
2033
|
-
*/
|
|
2034
|
-
updateSize(id: number, request: SizeRequest): Promise<ResponseModel<Size>>;
|
|
2035
|
-
/**
|
|
2036
|
-
* Elimina una talla.
|
|
2037
|
-
* @param id - ID de la talla a eliminar
|
|
2038
|
-
*/
|
|
2039
|
-
deleteSize(id: number): Promise<ResponseModel<void>>;
|
|
2040
|
-
/**
|
|
2041
|
-
* Obtiene todos los grupos de tallas con filtros opcionales.
|
|
2042
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
2043
|
-
*/
|
|
2044
|
-
getSizeGroups(filter?: SizeGroupsFilter): Promise<ResponseModel<SizeGroup[]>>;
|
|
2045
|
-
/**
|
|
2046
|
-
* Obtiene el modelo de filtros disponibles para grupos de tallas.
|
|
2047
|
-
*/
|
|
2048
|
-
getSizeGroupFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
2049
|
-
/**
|
|
2050
|
-
* Obtiene un grupo de tallas por su ID.
|
|
2051
|
-
* @param id - ID del grupo de tallas
|
|
2052
|
-
*/
|
|
2053
|
-
getSizeGroupById(id: number): Promise<ResponseModel<SizeGroup>>;
|
|
2054
|
-
/**
|
|
2055
|
-
* Crea un nuevo grupo de tallas.
|
|
2056
|
-
* @param request - Datos del grupo de tallas a crear
|
|
2057
|
-
*/
|
|
2058
|
-
createSizeGroup(request: SizeGroupRequest): Promise<ResponseModel<SizeGroup>>;
|
|
2059
|
-
/**
|
|
2060
|
-
* Actualiza un grupo de tallas existente.
|
|
2061
|
-
* @param id - ID del grupo de tallas a actualizar
|
|
2062
|
-
* @param request - Nuevos datos del grupo de tallas
|
|
2063
|
-
*/
|
|
2064
|
-
updateSizeGroup(id: number, request: SizeGroupRequest): Promise<ResponseModel<SizeGroup>>;
|
|
2065
|
-
/**
|
|
2066
|
-
* Elimina un grupo de tallas.
|
|
2067
|
-
* @param id - ID del grupo de tallas a eliminar
|
|
2068
|
-
*/
|
|
2069
|
-
deleteSizeGroup(id: number): Promise<ResponseModel<void>>;
|
|
2070
|
-
/**
|
|
2071
|
-
* Obtiene todos los tipos de producto con filtros opcionales.
|
|
2072
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
2073
|
-
*/
|
|
2074
|
-
getProductTypes(filter?: ProductTypesFilter): Promise<ResponseModel<ProductType[]>>;
|
|
2075
|
-
/**
|
|
2076
|
-
* Obtiene el modelo de filtros disponibles para tipos de producto.
|
|
2077
|
-
*/
|
|
2078
|
-
getProductTypeFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
2079
|
-
/**
|
|
2080
|
-
* Obtiene un tipo de producto por su ID.
|
|
2081
|
-
* @param id - ID del tipo de producto
|
|
2082
|
-
*/
|
|
2083
|
-
getProductTypeById(id: number): Promise<ResponseModel<ProductType>>;
|
|
2084
|
-
/**
|
|
2085
|
-
* Crea un nuevo tipo de producto.
|
|
2086
|
-
* @param request - Datos del tipo de producto a crear
|
|
2087
|
-
*/
|
|
2088
|
-
createProductType(request: ProductTypeRequest): Promise<ResponseModel<ProductType>>;
|
|
2089
|
-
/**
|
|
2090
|
-
* Actualiza un tipo de producto existente.
|
|
2091
|
-
* @param id - ID del tipo de producto a actualizar
|
|
2092
|
-
* @param request - Nuevos datos del tipo de producto
|
|
2093
|
-
*/
|
|
2094
|
-
updateProductType(id: number, request: ProductTypeRequest): Promise<ResponseModel<ProductType>>;
|
|
2095
|
-
/**
|
|
2096
|
-
* Elimina un tipo de producto.
|
|
2097
|
-
* @param id - ID del tipo de producto a eliminar
|
|
2098
|
-
*/
|
|
2099
|
-
deleteProductType(id: number): Promise<ResponseModel<void>>;
|
|
2100
|
-
/**
|
|
2101
|
-
* Obtiene todas las categorías de producto con filtros opcionales.
|
|
2102
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
2103
|
-
*/
|
|
2104
|
-
getProductCategories(filter?: ProductCategoriesFilter): Promise<ResponseModel<ProductCategory[]>>;
|
|
2105
|
-
/**
|
|
2106
|
-
* Obtiene el modelo de filtros disponibles para categorías de producto.
|
|
2107
|
-
*/
|
|
2108
|
-
getProductCategoryFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
2109
|
-
/**
|
|
2110
|
-
* Obtiene una categoría de producto por su ID.
|
|
2111
|
-
* @param id - ID de la categoría
|
|
2112
|
-
*/
|
|
2113
|
-
getProductCategoryById(id: number): Promise<ResponseModel<ProductCategory>>;
|
|
2114
|
-
/**
|
|
2115
|
-
* Crea una nueva categoría de producto.
|
|
2116
|
-
* @param request - Datos de la categoría a crear
|
|
2117
|
-
*/
|
|
2118
|
-
createProductCategory(request: ProductCategoryRequest): Promise<ResponseModel<ProductCategory>>;
|
|
2119
|
-
/**
|
|
2120
|
-
* Actualiza una categoría de producto existente.
|
|
2121
|
-
* @param id - ID de la categoría a actualizar
|
|
2122
|
-
* @param request - Nuevos datos de la categoría
|
|
2123
|
-
*/
|
|
2124
|
-
updateProductCategory(id: number, request: ProductCategoryRequest): Promise<ResponseModel<ProductCategory>>;
|
|
2125
|
-
/**
|
|
2126
|
-
* Activa o desactiva una categoría de producto.
|
|
2127
|
-
* @param id - ID de la categoría
|
|
2128
|
-
*/
|
|
2129
|
-
toggleProductCategoryStatus(id: number): Promise<ResponseModel<ProductCategory>>;
|
|
2130
|
-
/**
|
|
2131
|
-
* Elimina una categoría de producto.
|
|
2132
|
-
* @param id - ID de la categoría a eliminar
|
|
2133
|
-
*/
|
|
2134
|
-
deleteProductCategory(id: number): Promise<ResponseModel<void>>;
|
|
2135
|
-
/**
|
|
2136
|
-
* Obtiene todos los estatus de producto con filtros opcionales.
|
|
2137
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
2138
|
-
*/
|
|
2139
|
-
getProductStatuses(filter?: ProductStatusesFilter): Promise<ResponseModel<ProductStatus[]>>;
|
|
1414
|
+
interface UserProfileResponse {
|
|
1415
|
+
username: string;
|
|
1416
|
+
firstName: string;
|
|
1417
|
+
lastName: string;
|
|
1418
|
+
fullName: string;
|
|
1419
|
+
email: string;
|
|
1420
|
+
phone: string;
|
|
1421
|
+
profilePhoto: string;
|
|
1422
|
+
areaCode: AreaCodeUserProfile;
|
|
1423
|
+
birthday: Date;
|
|
1424
|
+
gender: GenderUserProfile;
|
|
1425
|
+
role: RoleUserProfile;
|
|
1426
|
+
userType: UserTypeUserProfile;
|
|
1427
|
+
userReferralCode: string;
|
|
1428
|
+
securityLevel: number;
|
|
1429
|
+
emailVerified: boolean;
|
|
1430
|
+
phoneVerified: boolean;
|
|
1431
|
+
lastLogin: Date;
|
|
1432
|
+
mustChangePassword: boolean;
|
|
1433
|
+
passwordExpiresAt: Date;
|
|
1434
|
+
isActive: boolean;
|
|
1435
|
+
createdAt: Date;
|
|
1436
|
+
updatedAt: Date;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
declare class UserService {
|
|
1440
|
+
private api;
|
|
1441
|
+
private readonly BASE_PATH;
|
|
1442
|
+
constructor(api: API);
|
|
2140
1443
|
/**
|
|
2141
|
-
* Obtiene
|
|
2142
|
-
|
|
2143
|
-
|
|
1444
|
+
* Obtiene la información básica del usuario.
|
|
1445
|
+
* @returns retorna un objeto con la información básica del usuario
|
|
1446
|
+
*/
|
|
1447
|
+
me(): Promise<ResponseModel<UserBasicResponse>>;
|
|
2144
1448
|
/**
|
|
2145
|
-
* Obtiene
|
|
2146
|
-
* @
|
|
1449
|
+
* Obtiene la información general del usuario para la vista de perfil.
|
|
1450
|
+
* @returns
|
|
2147
1451
|
*/
|
|
2148
|
-
|
|
1452
|
+
profile(): Promise<ResponseModel<UserProfileResponse>>;
|
|
1453
|
+
changePasswordUser(request: ChangePasswordUserRequest): Promise<ResponseModel>;
|
|
1454
|
+
updateUserData(request: UserDataUpdateRequest): Promise<ResponseModel>;
|
|
2149
1455
|
/**
|
|
2150
|
-
* Crea un nuevo
|
|
2151
|
-
* @param request - Datos del
|
|
1456
|
+
* Crea un nuevo usuario administrador.
|
|
1457
|
+
* @param request - Datos del nuevo administrador
|
|
2152
1458
|
*/
|
|
2153
|
-
|
|
1459
|
+
newAdminUser(request: UserAdminRequest): Promise<ResponseModel<AdminUser>>;
|
|
2154
1460
|
/**
|
|
2155
|
-
*
|
|
2156
|
-
* @param
|
|
2157
|
-
* @param request - Nuevos datos del estatus
|
|
1461
|
+
* Crea la autenticación para un usuario.
|
|
1462
|
+
* @param request - Datos de autenticación del usuario
|
|
2158
1463
|
*/
|
|
2159
|
-
|
|
1464
|
+
createUserAuthentication(request: UserAuthAdminRequest): Promise<ResponseModel<AdminAuthentication>>;
|
|
2160
1465
|
/**
|
|
2161
|
-
*
|
|
2162
|
-
* @param id - ID del
|
|
1466
|
+
* Cambia la contraseña de un administrador.
|
|
1467
|
+
* @param id - ID del usuario
|
|
1468
|
+
* @param request - Nueva contraseña
|
|
2163
1469
|
*/
|
|
2164
|
-
|
|
1470
|
+
changePasswordAdmin(id: number, request: ChangePasswordAdminRequest): Promise<ResponseModel>;
|
|
2165
1471
|
/**
|
|
2166
|
-
* Obtiene todos los
|
|
1472
|
+
* Obtiene todos los administradores con filtros opcionales.
|
|
2167
1473
|
* @param filter - Filtros opcionales para la búsqueda
|
|
2168
1474
|
*/
|
|
2169
|
-
|
|
2170
|
-
/**
|
|
2171
|
-
* Obtiene el modelo de filtros disponibles para estudios.
|
|
2172
|
-
*/
|
|
2173
|
-
getStudioFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
2174
|
-
/**
|
|
2175
|
-
* Obtiene un estudio por su ID.
|
|
2176
|
-
* @param id - ID del estudio
|
|
2177
|
-
*/
|
|
2178
|
-
getStudioById(id: number): Promise<ResponseModel<Studio>>;
|
|
2179
|
-
/**
|
|
2180
|
-
* Crea un nuevo estudio.
|
|
2181
|
-
* @param request - Datos del estudio a crear
|
|
2182
|
-
*/
|
|
2183
|
-
createStudio(request: StudioRequest): Promise<ResponseModel<Studio>>;
|
|
2184
|
-
/**
|
|
2185
|
-
* Actualiza un estudio existente.
|
|
2186
|
-
* @param id - ID del estudio a actualizar
|
|
2187
|
-
* @param request - Nuevos datos del estudio
|
|
2188
|
-
*/
|
|
2189
|
-
updateStudio(id: number, request: StudioRequest): Promise<ResponseModel<Studio>>;
|
|
2190
|
-
/**
|
|
2191
|
-
* Activa o desactiva un estudio.
|
|
2192
|
-
* @param id - ID del estudio
|
|
2193
|
-
*/
|
|
2194
|
-
toggleStudioStatus(id: number): Promise<ResponseModel<Studio>>;
|
|
2195
|
-
/**
|
|
2196
|
-
* Elimina un estudio.
|
|
2197
|
-
* @param id - ID del estudio a eliminar
|
|
2198
|
-
*/
|
|
2199
|
-
deleteStudio(id: number): Promise<ResponseModel<void>>;
|
|
1475
|
+
getAllAdmins(filter?: UserAdminFilter): Promise<ResponseModel<AdminUser[]>>;
|
|
2200
1476
|
/**
|
|
2201
|
-
* Obtiene
|
|
2202
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
1477
|
+
* Obtiene el modelo de filtros disponibles para administradores.
|
|
2203
1478
|
*/
|
|
2204
|
-
|
|
1479
|
+
getAdminFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
2205
1480
|
/**
|
|
2206
|
-
* Obtiene
|
|
1481
|
+
* Obtiene un administrador por su ID.
|
|
1482
|
+
* @param id - ID del administrador
|
|
2207
1483
|
*/
|
|
2208
|
-
|
|
1484
|
+
getAdminById(id: number): Promise<ResponseModel<AdminUser>>;
|
|
2209
1485
|
/**
|
|
2210
|
-
* Obtiene
|
|
2211
|
-
* @param id - ID
|
|
1486
|
+
* Obtiene la autenticación de un administrador.
|
|
1487
|
+
* @param id - ID del usuario
|
|
2212
1488
|
*/
|
|
2213
|
-
|
|
1489
|
+
getAdminAuthentication(id: number): Promise<ResponseModel<AdminAuthentication>>;
|
|
2214
1490
|
/**
|
|
2215
|
-
*
|
|
2216
|
-
* @param
|
|
1491
|
+
* Actualiza un administrador existente.
|
|
1492
|
+
* @param id - ID del administrador
|
|
1493
|
+
* @param request - Nuevos datos del administrador
|
|
2217
1494
|
*/
|
|
2218
|
-
|
|
1495
|
+
updateAdmin(id: number, request: UserAdminUpdateRequest): Promise<ResponseModel<AdminUser>>;
|
|
2219
1496
|
/**
|
|
2220
|
-
*
|
|
2221
|
-
* @param id - ID
|
|
2222
|
-
* @param request - Nuevos datos de la licencia
|
|
1497
|
+
* Activa o desactiva un administrador.
|
|
1498
|
+
* @param id - ID del administrador
|
|
2223
1499
|
*/
|
|
2224
|
-
|
|
1500
|
+
toggleAdminStatus(id: number): Promise<ResponseModel<AdminUser>>;
|
|
2225
1501
|
/**
|
|
2226
|
-
*
|
|
2227
|
-
* @param id - ID
|
|
1502
|
+
* Actualiza la autenticación de un administrador.
|
|
1503
|
+
* @param id - ID del usuario
|
|
1504
|
+
* @param request - Nuevos datos de autenticación
|
|
2228
1505
|
*/
|
|
2229
|
-
|
|
1506
|
+
updateAdminAuthentication(id: number, request: UserAuthUpdateRequest): Promise<ResponseModel<AdminAuthentication>>;
|
|
2230
1507
|
/**
|
|
2231
|
-
* Elimina
|
|
2232
|
-
* @param id - ID
|
|
1508
|
+
* Elimina un administrador.
|
|
1509
|
+
* @param id - ID del administrador
|
|
2233
1510
|
*/
|
|
2234
|
-
|
|
1511
|
+
deleteAdmin(id: number): Promise<ResponseModel>;
|
|
2235
1512
|
/**
|
|
2236
|
-
* Obtiene todos los
|
|
1513
|
+
* Obtiene todos los tipos de usuario con filtros opcionales.
|
|
2237
1514
|
* @param filter - Filtros opcionales para la búsqueda
|
|
2238
1515
|
*/
|
|
2239
|
-
|
|
2240
|
-
/**
|
|
2241
|
-
* Obtiene el modelo de filtros disponibles para proveedores.
|
|
2242
|
-
*/
|
|
2243
|
-
getProviderFiltersModel(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
1516
|
+
getUserTypes(filter?: UserTypesFilter): Promise<ResponseModel<UserType[]>>;
|
|
2244
1517
|
/**
|
|
2245
|
-
* Obtiene
|
|
2246
|
-
* @param id - ID del proveedor
|
|
1518
|
+
* Obtiene el modelo de filtros disponibles para tipos de usuario.
|
|
2247
1519
|
*/
|
|
2248
|
-
|
|
1520
|
+
getUserTypesFilters(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
2249
1521
|
/**
|
|
2250
|
-
*
|
|
2251
|
-
* @param
|
|
1522
|
+
* Obtiene un tipo de usuario por su ID.
|
|
1523
|
+
* @param id - ID del tipo de usuario
|
|
2252
1524
|
*/
|
|
2253
|
-
|
|
1525
|
+
getUserTypeById(id: number): Promise<ResponseModel<UserType>>;
|
|
2254
1526
|
/**
|
|
2255
|
-
*
|
|
2256
|
-
* @param
|
|
2257
|
-
* @param request - Nuevos datos del proveedor
|
|
1527
|
+
* Crea un nuevo tipo de usuario.
|
|
1528
|
+
* @param request - Datos del tipo de usuario a crear
|
|
2258
1529
|
*/
|
|
2259
|
-
|
|
1530
|
+
createUserType(request: UserTypeRequest): Promise<ResponseModel<UserType>>;
|
|
2260
1531
|
/**
|
|
2261
|
-
*
|
|
2262
|
-
* @param id - ID del
|
|
1532
|
+
* Actualiza un tipo de usuario existente.
|
|
1533
|
+
* @param id - ID del tipo de usuario a actualizar
|
|
1534
|
+
* @param request - Nuevos datos del tipo de usuario
|
|
2263
1535
|
*/
|
|
2264
|
-
|
|
1536
|
+
updateUserType(id: number, request: UserTypeRequest): Promise<ResponseModel<UserType>>;
|
|
2265
1537
|
/**
|
|
2266
|
-
* Elimina un
|
|
2267
|
-
* @param id - ID del
|
|
1538
|
+
* Elimina un tipo de usuario.
|
|
1539
|
+
* @param id - ID del tipo de usuario a eliminar
|
|
2268
1540
|
*/
|
|
2269
|
-
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
-
/**
|
|
2273
|
-
* Interfaz que representa un género del catálogo.
|
|
2274
|
-
*/
|
|
2275
|
-
interface Gender {
|
|
2276
|
-
genderId: number;
|
|
2277
|
-
gender: string;
|
|
2278
|
-
createdAt: string;
|
|
2279
|
-
updatedAt: string | null;
|
|
2280
|
-
deleted: boolean;
|
|
2281
|
-
}
|
|
2282
|
-
/**
|
|
2283
|
-
* Request para crear o actualizar un género.
|
|
2284
|
-
*/
|
|
2285
|
-
interface GenderRequest {
|
|
2286
|
-
gender: string;
|
|
2287
|
-
}
|
|
2288
|
-
/**
|
|
2289
|
-
* Filtros disponibles para buscar géneros.
|
|
2290
|
-
*/
|
|
2291
|
-
interface GendersFilter {
|
|
2292
|
-
/** Búsqueda general */
|
|
2293
|
-
Search?: string;
|
|
2294
|
-
/** Filtro por nombre del género (búsqueda parcial) */
|
|
2295
|
-
Gender?: string;
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
/**
|
|
2299
|
-
* Interfaz que representa un código de área del catálogo.
|
|
2300
|
-
*/
|
|
2301
|
-
interface AreaCode {
|
|
2302
|
-
areaCodeId: number;
|
|
2303
|
-
countryCode: string;
|
|
2304
|
-
iso: string;
|
|
2305
|
-
countryName: string;
|
|
2306
|
-
isActive: boolean;
|
|
2307
|
-
createdAt: string;
|
|
2308
|
-
updatedAt: string | null;
|
|
2309
|
-
deleted: boolean;
|
|
2310
|
-
}
|
|
2311
|
-
/**
|
|
2312
|
-
* Request para crear o actualizar un código de área.
|
|
2313
|
-
*/
|
|
2314
|
-
interface AreaCodeRequest {
|
|
2315
|
-
countryCode: string;
|
|
2316
|
-
iso: string;
|
|
2317
|
-
countryName: string;
|
|
2318
|
-
isActive?: boolean;
|
|
2319
|
-
}
|
|
2320
|
-
/**
|
|
2321
|
-
* Filtros disponibles para buscar códigos de área.
|
|
2322
|
-
*/
|
|
2323
|
-
interface AreaCodesFilter {
|
|
2324
|
-
/** Búsqueda general */
|
|
2325
|
-
Search?: string;
|
|
2326
|
-
/** Filtro por código de país (búsqueda parcial) */
|
|
2327
|
-
CountryCode?: string;
|
|
2328
|
-
/** Filtro por ISO (búsqueda parcial) */
|
|
2329
|
-
ISO?: string;
|
|
2330
|
-
/** Filtro por nombre de país (búsqueda parcial) */
|
|
2331
|
-
CountryName?: string;
|
|
2332
|
-
/** Filtro por estado activo/inactivo */
|
|
2333
|
-
IsActive?: boolean;
|
|
2334
|
-
}
|
|
2335
|
-
|
|
2336
|
-
/**
|
|
2337
|
-
* Servicio para gestionar catálogos públicos.
|
|
2338
|
-
* No requiere autenticación.
|
|
2339
|
-
*/
|
|
2340
|
-
declare class CatalogService {
|
|
2341
|
-
private api;
|
|
2342
|
-
private readonly BASE_PATH;
|
|
2343
|
-
constructor(api: API);
|
|
1541
|
+
deleteUserType(id: number): Promise<ResponseModel<void>>;
|
|
2344
1542
|
/**
|
|
2345
|
-
* Obtiene todos los
|
|
1543
|
+
* Obtiene todos los roles con filtros opcionales.
|
|
2346
1544
|
* @param filter - Filtros opcionales para la búsqueda
|
|
2347
1545
|
*/
|
|
2348
|
-
|
|
2349
|
-
/**
|
|
2350
|
-
* Obtiene el modelo de filtros disponibles para géneros.
|
|
2351
|
-
*/
|
|
2352
|
-
getGendersFilters(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
2353
|
-
/**
|
|
2354
|
-
* Obtiene un género por su ID.
|
|
2355
|
-
* @param id - ID del género
|
|
2356
|
-
*/
|
|
2357
|
-
getGenderById(id: number): Promise<ResponseModel<Gender>>;
|
|
2358
|
-
/**
|
|
2359
|
-
* Crea un nuevo género.
|
|
2360
|
-
* @param request - Datos del género a crear
|
|
2361
|
-
*/
|
|
2362
|
-
createGender(request: GenderRequest): Promise<ResponseModel<Gender>>;
|
|
2363
|
-
/**
|
|
2364
|
-
* Actualiza un género existente.
|
|
2365
|
-
* @param id - ID del género a actualizar
|
|
2366
|
-
* @param request - Nuevos datos del género
|
|
2367
|
-
*/
|
|
2368
|
-
updateGender(id: number, request: GenderRequest): Promise<ResponseModel<Gender>>;
|
|
2369
|
-
/**
|
|
2370
|
-
* Elimina un género.
|
|
2371
|
-
* @param id - ID del género a eliminar
|
|
2372
|
-
*/
|
|
2373
|
-
deleteGender(id: number): Promise<ResponseModel<void>>;
|
|
1546
|
+
getRoles(filter?: RolesFilter): Promise<ResponseModel<Role[]>>;
|
|
2374
1547
|
/**
|
|
2375
|
-
* Obtiene
|
|
2376
|
-
* @param filter - Filtros opcionales para la búsqueda
|
|
1548
|
+
* Obtiene el modelo de filtros disponibles para roles.
|
|
2377
1549
|
*/
|
|
2378
|
-
|
|
1550
|
+
getRolesFilters(): Promise<ResponseModel<FilterGroupsModel>>;
|
|
2379
1551
|
/**
|
|
2380
|
-
* Obtiene
|
|
1552
|
+
* Obtiene un rol por su ID.
|
|
1553
|
+
* @param id - ID del rol
|
|
2381
1554
|
*/
|
|
2382
|
-
|
|
1555
|
+
getRoleById(id: number): Promise<ResponseModel<Role>>;
|
|
2383
1556
|
/**
|
|
2384
|
-
* Obtiene
|
|
2385
|
-
* @param
|
|
1557
|
+
* Obtiene los roles asociados a un tipo de usuario.
|
|
1558
|
+
* @param userTypeId - ID del tipo de usuario
|
|
2386
1559
|
*/
|
|
2387
|
-
|
|
1560
|
+
getRolesByUserType(userTypeId: number): Promise<ResponseModel<Role[]>>;
|
|
2388
1561
|
/**
|
|
2389
|
-
* Crea un nuevo
|
|
2390
|
-
* @param request - Datos del
|
|
1562
|
+
* Crea un nuevo rol.
|
|
1563
|
+
* @param request - Datos del rol a crear
|
|
2391
1564
|
*/
|
|
2392
|
-
|
|
1565
|
+
createRole(request: RoleRequest): Promise<ResponseModel<Role>>;
|
|
2393
1566
|
/**
|
|
2394
|
-
* Actualiza un
|
|
2395
|
-
* @param id - ID del
|
|
2396
|
-
* @param request - Nuevos datos del
|
|
1567
|
+
* Actualiza un rol existente.
|
|
1568
|
+
* @param id - ID del rol a actualizar
|
|
1569
|
+
* @param request - Nuevos datos del rol
|
|
2397
1570
|
*/
|
|
2398
|
-
|
|
1571
|
+
updateRole(id: number, request: RoleRequest): Promise<ResponseModel<Role>>;
|
|
2399
1572
|
/**
|
|
2400
|
-
* Activa o desactiva un
|
|
2401
|
-
* @param id - ID del
|
|
1573
|
+
* Activa o desactiva un rol.
|
|
1574
|
+
* @param id - ID del rol
|
|
2402
1575
|
*/
|
|
2403
|
-
|
|
1576
|
+
toggleRoleStatus(id: number): Promise<ResponseModel<Role>>;
|
|
2404
1577
|
/**
|
|
2405
|
-
* Elimina un
|
|
2406
|
-
* @param id - ID del
|
|
1578
|
+
* Elimina un rol.
|
|
1579
|
+
* @param id - ID del rol a eliminar
|
|
2407
1580
|
*/
|
|
2408
|
-
|
|
1581
|
+
deleteRole(id: number): Promise<ResponseModel<void>>;
|
|
2409
1582
|
}
|
|
2410
1583
|
|
|
2411
1584
|
/**
|
|
@@ -2416,7 +1589,6 @@ declare class FalconHUBSDK {
|
|
|
2416
1589
|
user: UserService;
|
|
2417
1590
|
system: SystemService;
|
|
2418
1591
|
inventory: InventoryService;
|
|
2419
|
-
product: ProductService;
|
|
2420
1592
|
catalog: CatalogService;
|
|
2421
1593
|
private serviceProperties;
|
|
2422
1594
|
private cryptoService;
|
|
@@ -2450,4 +1622,4 @@ declare class FalconHUBSDK {
|
|
|
2450
1622
|
|
|
2451
1623
|
declare function decrypt(encryptedBase64: string, secret: string, timestamp: string): string;
|
|
2452
1624
|
|
|
2453
|
-
export { API, type AdminAuthentication, type AdminUser, type AreaCode, type AreaCodeRequest, type AreaCodesFilter, AuthInterceptor, type AuthInterceptorConfig, AuthService,
|
|
1625
|
+
export { API, type AdminAuthentication, type AdminUser, type AreaCode, type AreaCodeRequest, type AreaCodeUserProfile, type AreaCodesFilter, AuthInterceptor, type AuthInterceptorConfig, AuthService, CatalogService, type ChangePasswordAdminRequest, type ChangePasswordRequest, type ChangePasswordUserRequest, type ConfirmEmailRequest, CryptoService, type Endpoint, type EndpointRequest, type EndpointsFilter, ErrorResponse, FalconHUBSDK, FilterBuilder, type FilterFieldMetadata, type FilterGroup, type FilterGroupOption, type FilterGroupsModel, type FilterMetadataModel, type FilterModel, type Gender, type GenderRequest, type GenderUserProfile, type GendersFilter, type GetSecretKeyRequest, type GetSecretKeyResponse, type HttpMethodType, type InterceptorContext, InventoryService, type InventoryStatus, type InventoryStatusRequest, type InventoryStatusesFilter, type Location, type LocationsFilter, type LocationsRequest, type LoginRequest, type LoginResponse, type Material, type MaterialRequest, type MaterialsFilter, type MethodTypes, type Module, type ModuleRequest, type ModulesFilter, type Packing, type PackingRequest, type PackingsFilter, type Provider, type ProviderRequest, type ProvidersFilter, type RefreshTokenRequest, type RefreshTokenResponse, type RequestConfig, type RequestInterceptor, type RequestOptions, type ResponseModel, type Role, type RoleRequest, type RoleUserProfile, type RolesFilter, type SendOtpRequest, type ServiceProperties, SystemService, type TokenData, TokenManager, type UIRoute, type UIRouteRequest, type UIRoutesFilter, type UserAdminFilter, type UserAdminRequest, type UserAdminUpdateRequest, type UserAuthAdminRequest, type UserAuthUpdateRequest, type UserBasicResponse, type UserDataUpdateRequest, type UserProfileResponse, UserService, type UserType, type UserTypeRequest, type UserTypeUserProfile, type UserTypesFilter, type ValidateOtpRequest, type ValidateSessionRenewedResponse, type ValidateSessionResponse, decrypt };
|