falconhub-apilibrary 1.6.6-dev.143 → 1.6.7-dev.148

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 CHANGED
@@ -1,4 +1,4 @@
1
- interface ChangePasswordRequest {
1
+ interface UpdatePasswordRequest {
2
2
  email: string;
3
3
  oldPassword: string;
4
4
  newPassword: string;
@@ -1288,7 +1288,18 @@ interface AdminAuthentication {
1288
1288
  updatedAt: string | null;
1289
1289
  }
1290
1290
 
1291
- interface UserAdminRequest {
1291
+ interface ChangePasswordAdminRequest {
1292
+ newPassword: string;
1293
+ }
1294
+
1295
+ interface CreateAdminAuthenticationRequest {
1296
+ userId: number;
1297
+ securityLevel: number;
1298
+ clientId: string;
1299
+ requireEmailConfirmation?: boolean;
1300
+ }
1301
+
1302
+ interface NewAdminUserRequest {
1292
1303
  username: string;
1293
1304
  firstName: string;
1294
1305
  lastName: string;
@@ -1301,27 +1312,13 @@ interface UserAdminRequest {
1301
1312
  userTypeId: number;
1302
1313
  }
1303
1314
 
1304
- interface UserAuthAdminRequest {
1305
- userId: number;
1306
- securityLevel: number;
1307
- clientId: string;
1308
- requireEmailConfirmation?: boolean;
1309
- }
1310
-
1311
- interface ChangePasswordAdminRequest {
1312
- newPassword: string;
1313
- }
1314
-
1315
1315
  interface UserAdminFilter {
1316
- Search?: string;
1317
- Username?: string;
1318
- FirstName?: string;
1319
- LastName?: string;
1320
- Email?: string;
1321
- Phone?: string;
1322
- RoleId?: number;
1323
- UserTypeId?: number;
1324
- IsActive?: boolean;
1316
+ search?: string;
1317
+ username?: string;
1318
+ firstName?: string;
1319
+ lastName?: string;
1320
+ email?: string;
1321
+ isActive?: boolean;
1325
1322
  }
1326
1323
 
1327
1324
  interface UserAdminUpdateRequest {
@@ -1389,6 +1386,16 @@ interface RoleUserProfile {
1389
1386
  role: string;
1390
1387
  }
1391
1388
 
1389
+ interface UpdateProfileRequest {
1390
+ username: string;
1391
+ firstName: string;
1392
+ lastName: string;
1393
+ areaCodeId: number;
1394
+ phone: string;
1395
+ birthday: Date;
1396
+ profilePhoto: string;
1397
+ }
1398
+
1392
1399
  /**
1393
1400
  * Interfaz que representa un tipo de usuario.
1394
1401
  */
@@ -1424,7 +1431,7 @@ interface UserTypeUserProfile {
1424
1431
  userType: string;
1425
1432
  }
1426
1433
 
1427
- interface UserBasicResponse {
1434
+ interface UserIdentityResponse {
1428
1435
  username: string;
1429
1436
  firstName: string;
1430
1437
  lastName: string;
@@ -1437,16 +1444,6 @@ interface UserBasicResponse {
1437
1444
  securityLevel: number;
1438
1445
  }
1439
1446
 
1440
- interface UserDataUpdateRequest {
1441
- username: string;
1442
- firstName: string;
1443
- lastName: string;
1444
- areaCodeId: number;
1445
- phone: string;
1446
- birthday: Date;
1447
- profilePhoto: string;
1448
- }
1449
-
1450
1447
  interface UserProfileResponse {
1451
1448
  username: string;
1452
1449
  firstName: string;
@@ -1789,7 +1786,7 @@ declare class AuthService {
1789
1786
  * Cambia la contraseña del usuario (flujo público, sin sesión).
1790
1787
  * @param request - Email, contraseña actual y nueva contraseña
1791
1788
  */
1792
- changePassword(request: ChangePasswordRequest): Promise<ResponseModel>;
1789
+ changePassword(request: UpdatePasswordRequest): Promise<ResponseModel>;
1793
1790
  recoveryPassword(request: RecoveryPasswordRequest): Promise<ResponseModel>;
1794
1791
  /**
1795
1792
  * Verifica si el usuario está autenticado
@@ -2881,25 +2878,25 @@ declare class UserService {
2881
2878
  /**
2882
2879
  * Obtiene la información básica del usuario.
2883
2880
  * @returns retorna un objeto con la información básica del usuario
2884
- */
2885
- me(): Promise<ResponseModel<UserBasicResponse>>;
2881
+ */
2882
+ me(): Promise<ResponseModel<UserIdentityResponse>>;
2886
2883
  /**
2887
2884
  * Obtiene la información general del usuario para la vista de perfil.
2888
2885
  * @returns
2889
2886
  */
2890
2887
  profile(): Promise<ResponseModel<UserProfileResponse>>;
2888
+ updateProfile(request: UpdateProfileRequest): Promise<ResponseModel>;
2891
2889
  changePasswordUser(request: ChangePasswordUserRequest): Promise<ResponseModel>;
2892
- updateUserData(request: UserDataUpdateRequest): Promise<ResponseModel>;
2893
2890
  /**
2894
2891
  * Crea un nuevo usuario administrador.
2895
2892
  * @param request - Datos del nuevo administrador
2896
2893
  */
2897
- newAdminUser(request: UserAdminRequest): Promise<ResponseModel<AdminUser>>;
2894
+ newAdminUser(request: NewAdminUserRequest): Promise<ResponseModel<AdminUser>>;
2898
2895
  /**
2899
2896
  * Crea la autenticación para un usuario.
2900
2897
  * @param request - Datos de autenticación del usuario
2901
2898
  */
2902
- createUserAuthentication(request: UserAuthAdminRequest): Promise<ResponseModel<AdminAuthentication>>;
2899
+ createUserAuthentication(request: CreateAdminAuthenticationRequest): Promise<ResponseModel<AdminAuthentication>>;
2903
2900
  /**
2904
2901
  * Cambia la contraseña de un administrador.
2905
2902
  * @param id - ID del usuario
@@ -3066,4 +3063,4 @@ declare class FalconHUBSDK {
3066
3063
 
3067
3064
  declare function decrypt(encryptedBase64: string, secret: string, timestamp: string): string;
3068
3065
 
3069
- export { API, ARTWORKS_BULK_COLUMN_MAP, ARTWORKS_BULK_HEADERS, ARTWORKS_LAYOUT_COLUMN_MAP, ARTWORKS_LAYOUT_HEADERS, type AdminAuthentication, type AdminUser, type AreaCode, type AreaCodeRequest, type AreaCodeUserProfile, type AreaCodesFilter, type Artwork, type ArtworkConsumable, type ArtworkConsumableRequest, type ArtworkConsumablesFilter, type ArtworkRequest, type ArtworksBulkItem, type ArtworksFilter, AuthInterceptor, type AuthInterceptorConfig, AuthService, BLANKS_BULK_COLUMN_MAP, BLANKS_BULK_SPANISH_HEADERS, type Blank, type BlankRequest, type BlanksBulkItem, type BlanksFilter, type BulkResult, type BulkRowError, type BulkUploadRequest, COLLECTIONS_BULK_COLUMN_MAP, COLLECTIONS_BULK_HEADERS, COLLECTIONS_LAYOUT_COLUMN_MAP, COLLECTIONS_LAYOUT_HEADERS, COLORS_BULK_COLUMN_MAP, COLORS_BULK_HEADERS, COLORS_LAYOUT_COLUMN_MAP, COLORS_LAYOUT_HEADERS, CONSUMABLES_BULK_COLUMN_MAP, CONSUMABLES_BULK_HEADERS, CONSUMABLES_LAYOUT_COLUMN_MAP, CONSUMABLES_LAYOUT_HEADERS, CatalogService, type ChangePasswordAdminRequest, type ChangePasswordRequest, type ChangePasswordUserRequest, type Collection, type CollectionRequest, type CollectionsBulkItem, type CollectionsFilter, type Color, type ColorRequest, type ColorsBulkItem, type ColorsFilter, type ConfirmEmailRequest, type Consumable, type ConsumableRequest, type ConsumableType, type ConsumableTypeRequest, type ConsumableTypesFilter, type ConsumablesBulkItem, type ConsumablesFilter, 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, LAYOUT_MARKER, LICENSES_BULK_COLUMN_MAP, LICENSES_BULK_HEADERS, LICENSES_LAYOUT_COLUMN_MAP, LICENSES_LAYOUT_HEADERS, type License, type LicenseRequest, type LicensesBulkItem, type LicensesFilter, type Location, type LocationsFilter, type LocationsRequest, type LoginRequest, type LoginResponse, MATERIALS_BULK_COLUMN_MAP, MATERIALS_BULK_HEADERS, MATERIALS_LAYOUT_COLUMN_MAP, MATERIALS_LAYOUT_HEADERS, type Material, type MaterialRequest, type MaterialsBulkItem, type MaterialsFilter, type MethodTypes, type Module, type ModuleRequest, type ModulesFilter, type POD, type PODBulkItem, type PODFilter, type PODRequest, POD_BULK_COLUMN_MAP, POD_BULK_HEADERS, POD_LAYOUT_COLUMN_MAP, POD_LAYOUT_HEADERS, PRODUCTS_BULK_COLUMN_MAP, PRODUCTS_BULK_HEADERS, PRODUCTS_LAYOUT_COLUMN_MAP, PRODUCTS_LAYOUT_HEADERS, PRODUCT_TYPES_BULK_COLUMN_MAP, PRODUCT_TYPES_BULK_HEADERS, PRODUCT_TYPES_LAYOUT_COLUMN_MAP, PRODUCT_TYPES_LAYOUT_HEADERS, type Packing, type PackingRequest, type PackingsFilter, type PrintLocation, type PrintLocationFilter, type PrintLocationRequest, type Product, type ProductBundleItemsRequest, type ProductCategoriesBulkItem, type ProductCategoriesFilter, type ProductCategory, type ProductCategoryRequest, type ProductDimensionsRequest, type ProductRequest, ProductService, type ProductStatus, type ProductStatusRequest, type ProductStatusesFilter, type ProductType, type ProductTypeRequest, type ProductTypesBulkItem, type ProductTypesFilter, type ProductsBulkItem, type ProductsFilter, 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, STUDIOS_BULK_COLUMN_MAP, STUDIOS_BULK_HEADERS, STUDIOS_LAYOUT_COLUMN_MAP, STUDIOS_LAYOUT_HEADERS, type SendOtpRequest, type ServiceProperties, type SiteConfigCatalogsResponse, type SiteConfigResponse, type Size, type SizeGroup, type SizeGroupRequest, type SizeGroupsFilter, type SizeRequest, type SizesFilter, type Studio, type StudioRequest, type StudiosBulkItem, type StudiosFilter, 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, type Role as UserRole, UserService, type UserType, type UserTypeRequest, type UserTypeUserProfile, type UserTypesFilter, type ValidateOtpRequest, type ValidateSessionRenewedResponse, type ValidateSessionResponse, decrypt };
3066
+ export { API, ARTWORKS_BULK_COLUMN_MAP, ARTWORKS_BULK_HEADERS, ARTWORKS_LAYOUT_COLUMN_MAP, ARTWORKS_LAYOUT_HEADERS, type AdminAuthentication, type AdminUser, type AreaCode, type AreaCodeRequest, type AreaCodeUserProfile, type AreaCodesFilter, type Artwork, type ArtworkConsumable, type ArtworkConsumableRequest, type ArtworkConsumablesFilter, type ArtworkRequest, type ArtworksBulkItem, type ArtworksFilter, AuthInterceptor, type AuthInterceptorConfig, AuthService, BLANKS_BULK_COLUMN_MAP, BLANKS_BULK_SPANISH_HEADERS, type Blank, type BlankRequest, type BlanksBulkItem, type BlanksFilter, type BulkResult, type BulkRowError, type BulkUploadRequest, COLLECTIONS_BULK_COLUMN_MAP, COLLECTIONS_BULK_HEADERS, COLLECTIONS_LAYOUT_COLUMN_MAP, COLLECTIONS_LAYOUT_HEADERS, COLORS_BULK_COLUMN_MAP, COLORS_BULK_HEADERS, COLORS_LAYOUT_COLUMN_MAP, COLORS_LAYOUT_HEADERS, CONSUMABLES_BULK_COLUMN_MAP, CONSUMABLES_BULK_HEADERS, CONSUMABLES_LAYOUT_COLUMN_MAP, CONSUMABLES_LAYOUT_HEADERS, CatalogService, type ChangePasswordAdminRequest, type ChangePasswordUserRequest, type Collection, type CollectionRequest, type CollectionsBulkItem, type CollectionsFilter, type Color, type ColorRequest, type ColorsBulkItem, type ColorsFilter, type ConfirmEmailRequest, type Consumable, type ConsumableRequest, type ConsumableType, type ConsumableTypeRequest, type ConsumableTypesFilter, type ConsumablesBulkItem, type ConsumablesFilter, type CreateAdminAuthenticationRequest, 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, LAYOUT_MARKER, LICENSES_BULK_COLUMN_MAP, LICENSES_BULK_HEADERS, LICENSES_LAYOUT_COLUMN_MAP, LICENSES_LAYOUT_HEADERS, type License, type LicenseRequest, type LicensesBulkItem, type LicensesFilter, type Location, type LocationsFilter, type LocationsRequest, type LoginRequest, type LoginResponse, MATERIALS_BULK_COLUMN_MAP, MATERIALS_BULK_HEADERS, MATERIALS_LAYOUT_COLUMN_MAP, MATERIALS_LAYOUT_HEADERS, type Material, type MaterialRequest, type MaterialsBulkItem, type MaterialsFilter, type MethodTypes, type Module, type ModuleRequest, type ModulesFilter, type NewAdminUserRequest, type POD, type PODBulkItem, type PODFilter, type PODRequest, POD_BULK_COLUMN_MAP, POD_BULK_HEADERS, POD_LAYOUT_COLUMN_MAP, POD_LAYOUT_HEADERS, PRODUCTS_BULK_COLUMN_MAP, PRODUCTS_BULK_HEADERS, PRODUCTS_LAYOUT_COLUMN_MAP, PRODUCTS_LAYOUT_HEADERS, PRODUCT_TYPES_BULK_COLUMN_MAP, PRODUCT_TYPES_BULK_HEADERS, PRODUCT_TYPES_LAYOUT_COLUMN_MAP, PRODUCT_TYPES_LAYOUT_HEADERS, type Packing, type PackingRequest, type PackingsFilter, type PrintLocation, type PrintLocationFilter, type PrintLocationRequest, type Product, type ProductBundleItemsRequest, type ProductCategoriesBulkItem, type ProductCategoriesFilter, type ProductCategory, type ProductCategoryRequest, type ProductDimensionsRequest, type ProductRequest, ProductService, type ProductStatus, type ProductStatusRequest, type ProductStatusesFilter, type ProductType, type ProductTypeRequest, type ProductTypesBulkItem, type ProductTypesFilter, type ProductsBulkItem, type ProductsFilter, 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, STUDIOS_BULK_COLUMN_MAP, STUDIOS_BULK_HEADERS, STUDIOS_LAYOUT_COLUMN_MAP, STUDIOS_LAYOUT_HEADERS, type SendOtpRequest, type ServiceProperties, type SiteConfigCatalogsResponse, type SiteConfigResponse, type Size, type SizeGroup, type SizeGroupRequest, type SizeGroupsFilter, type SizeRequest, type SizesFilter, type Studio, type StudioRequest, type StudiosBulkItem, type StudiosFilter, SystemService, type TokenData, TokenManager, type UIRoute, type UIRouteRequest, type UIRoutesFilter, type UpdatePasswordRequest, type UpdateProfileRequest, type UserAdminFilter, type UserAdminUpdateRequest, type UserAuthUpdateRequest, type UserIdentityResponse, type UserProfileResponse, type Role as UserRole, UserService, type UserType, type UserTypeRequest, type UserTypeUserProfile, type UserTypesFilter, type ValidateOtpRequest, type ValidateSessionRenewedResponse, type ValidateSessionResponse, decrypt };
package/dist/index.mjs CHANGED
@@ -2440,12 +2440,9 @@ var UserService = class {
2440
2440
  /**
2441
2441
  * Obtiene la información básica del usuario.
2442
2442
  * @returns retorna un objeto con la información básica del usuario
2443
- */
2443
+ */
2444
2444
  async me() {
2445
- const response = await this.api.executeGET(
2446
- `${this.BASE_PATH}/me`,
2447
- true
2448
- );
2445
+ const response = await this.api.executeGET(`${this.BASE_PATH}/me`, true);
2449
2446
  return response;
2450
2447
  }
2451
2448
  /**
@@ -2453,18 +2450,15 @@ var UserService = class {
2453
2450
  * @returns
2454
2451
  */
2455
2452
  async profile() {
2456
- const response = await this.api.executeGET(
2457
- `${this.BASE_PATH}/profile`,
2458
- true
2459
- );
2453
+ const response = await this.api.executeGET(`${this.BASE_PATH}/profile`, true);
2460
2454
  return response;
2461
2455
  }
2456
+ async updateProfile(request) {
2457
+ return this.api.executePUT(`${this.BASE_PATH}/profile`, request);
2458
+ }
2462
2459
  async changePasswordUser(request) {
2463
2460
  return this.api.executePUT(`${this.BASE_PATH}/me/password`, request);
2464
2461
  }
2465
- async updateUserData(request) {
2466
- return this.api.executePUT(`${this.BASE_PATH}/me`, request);
2467
- }
2468
2462
  // #region Admin CRUD
2469
2463
  /**
2470
2464
  * Crea un nuevo usuario administrador.
@@ -2478,7 +2472,10 @@ var UserService = class {
2478
2472
  * @param request - Datos de autenticación del usuario
2479
2473
  */
2480
2474
  async createUserAuthentication(request) {
2481
- return this.api.executePOST(`${this.BASE_PATH}/admin/authentication`, request);
2475
+ return this.api.executePOST(
2476
+ `${this.BASE_PATH}/admin/authentication`,
2477
+ request
2478
+ );
2482
2479
  }
2483
2480
  /**
2484
2481
  * Cambia la contraseña de un administrador.
@@ -2486,35 +2483,50 @@ var UserService = class {
2486
2483
  * @param request - Nueva contraseña
2487
2484
  */
2488
2485
  async changePasswordAdmin(id, request) {
2489
- return this.api.executePOST(`${this.BASE_PATH}/admin/${id}/password`, request);
2486
+ return this.api.executePOST(
2487
+ `${this.BASE_PATH}/admin/${id}/password`,
2488
+ request
2489
+ );
2490
2490
  }
2491
2491
  /**
2492
2492
  * Obtiene todos los administradores con filtros opcionales.
2493
2493
  * @param filter - Filtros opcionales para la búsqueda
2494
2494
  */
2495
2495
  async getAllAdmins(filter) {
2496
- const endpoint = FilterBuilder.buildEndpoint(`${this.BASE_PATH}/admin`, filter);
2496
+ const endpoint = FilterBuilder.buildEndpoint(
2497
+ `${this.BASE_PATH}/admin`,
2498
+ filter
2499
+ );
2497
2500
  return this.api.executeGET(endpoint, true);
2498
2501
  }
2499
2502
  /**
2500
2503
  * Obtiene el modelo de filtros disponibles para administradores.
2501
2504
  */
2502
2505
  async getAdminFiltersModel() {
2503
- return this.api.executeGET(`${this.BASE_PATH}/admin/filters`, true);
2506
+ return this.api.executeGET(
2507
+ `${this.BASE_PATH}/admin/filters`,
2508
+ true
2509
+ );
2504
2510
  }
2505
2511
  /**
2506
2512
  * Obtiene un administrador por su ID.
2507
2513
  * @param id - ID del administrador
2508
2514
  */
2509
2515
  async getAdminById(id) {
2510
- return this.api.executeGET(`${this.BASE_PATH}/admin/${id}`, true);
2516
+ return this.api.executeGET(
2517
+ `${this.BASE_PATH}/admin/${id}`,
2518
+ true
2519
+ );
2511
2520
  }
2512
2521
  /**
2513
2522
  * Obtiene la autenticación de un administrador.
2514
2523
  * @param id - ID del usuario
2515
2524
  */
2516
2525
  async getAdminAuthentication(id) {
2517
- return this.api.executeGET(`${this.BASE_PATH}/admin/authentication/${id}`, true);
2526
+ return this.api.executeGET(
2527
+ `${this.BASE_PATH}/admin/authentication/${id}`,
2528
+ true
2529
+ );
2518
2530
  }
2519
2531
  /**
2520
2532
  * Actualiza un administrador existente.
@@ -2522,14 +2534,19 @@ var UserService = class {
2522
2534
  * @param request - Nuevos datos del administrador
2523
2535
  */
2524
2536
  async updateAdmin(id, request) {
2525
- return this.api.executePUT(`${this.BASE_PATH}/admin/${id}`, request);
2537
+ return this.api.executePUT(
2538
+ `${this.BASE_PATH}/admin/${id}`,
2539
+ request
2540
+ );
2526
2541
  }
2527
2542
  /**
2528
2543
  * Activa o desactiva un administrador.
2529
2544
  * @param id - ID del administrador
2530
2545
  */
2531
2546
  async toggleAdminStatus(id) {
2532
- return this.api.executePUT(`${this.BASE_PATH}/admin/${id}/toggle-status`);
2547
+ return this.api.executePUT(
2548
+ `${this.BASE_PATH}/admin/${id}/toggle-status`
2549
+ );
2533
2550
  }
2534
2551
  /**
2535
2552
  * Actualiza la autenticación de un administrador.
@@ -2537,7 +2554,10 @@ var UserService = class {
2537
2554
  * @param request - Nuevos datos de autenticación
2538
2555
  */
2539
2556
  async updateAdminAuthentication(id, request) {
2540
- return this.api.executePUT(`${this.BASE_PATH}/admin/authentication/${id}`, request);
2557
+ return this.api.executePUT(
2558
+ `${this.BASE_PATH}/admin/authentication/${id}`,
2559
+ request
2560
+ );
2541
2561
  }
2542
2562
  /**
2543
2563
  * Elimina un administrador.
@@ -2551,7 +2571,9 @@ var UserService = class {
2551
2571
  * @param id - ID del usuario
2552
2572
  */
2553
2573
  async resendEmailConfirmation(id) {
2554
- return this.api.executePOST(`${this.BASE_PATH}/admin/authentication/${id}/resend-confirmation`);
2574
+ return this.api.executePOST(
2575
+ `${this.BASE_PATH}/admin/authentication/${id}/resend-confirmation`
2576
+ );
2555
2577
  }
2556
2578
  // #endregion
2557
2579
  // #region User Types
@@ -2560,28 +2582,40 @@ var UserService = class {
2560
2582
  * @param filter - Filtros opcionales para la búsqueda
2561
2583
  */
2562
2584
  async getUserTypes(filter) {
2563
- const endpoint = FilterBuilder.buildEndpoint(`${this.BASE_PATH}/catalogs/user-types`, filter);
2585
+ const endpoint = FilterBuilder.buildEndpoint(
2586
+ `${this.BASE_PATH}/catalogs/user-types`,
2587
+ filter
2588
+ );
2564
2589
  return this.api.executeGET(endpoint, true);
2565
2590
  }
2566
2591
  /**
2567
2592
  * Obtiene el modelo de filtros disponibles para tipos de usuario.
2568
2593
  */
2569
2594
  async getUserTypesFilters() {
2570
- return this.api.executeGET(`${this.BASE_PATH}/catalogs/user-types/filters`, true);
2595
+ return this.api.executeGET(
2596
+ `${this.BASE_PATH}/catalogs/user-types/filters`,
2597
+ true
2598
+ );
2571
2599
  }
2572
2600
  /**
2573
2601
  * Obtiene un tipo de usuario por su ID.
2574
2602
  * @param id - ID del tipo de usuario
2575
2603
  */
2576
2604
  async getUserTypeById(id) {
2577
- return this.api.executeGET(`${this.BASE_PATH}/catalogs/user-types/${id}`, true);
2605
+ return this.api.executeGET(
2606
+ `${this.BASE_PATH}/catalogs/user-types/${id}`,
2607
+ true
2608
+ );
2578
2609
  }
2579
2610
  /**
2580
2611
  * Crea un nuevo tipo de usuario.
2581
2612
  * @param request - Datos del tipo de usuario a crear
2582
2613
  */
2583
2614
  async createUserType(request) {
2584
- return this.api.executePOST(`${this.BASE_PATH}/catalogs/user-types`, request);
2615
+ return this.api.executePOST(
2616
+ `${this.BASE_PATH}/catalogs/user-types`,
2617
+ request
2618
+ );
2585
2619
  }
2586
2620
  /**
2587
2621
  * Actualiza un tipo de usuario existente.
@@ -2589,14 +2623,19 @@ var UserService = class {
2589
2623
  * @param request - Nuevos datos del tipo de usuario
2590
2624
  */
2591
2625
  async updateUserType(id, request) {
2592
- return this.api.executePUT(`${this.BASE_PATH}/catalogs/user-types/${id}`, request);
2626
+ return this.api.executePUT(
2627
+ `${this.BASE_PATH}/catalogs/user-types/${id}`,
2628
+ request
2629
+ );
2593
2630
  }
2594
2631
  /**
2595
2632
  * Elimina un tipo de usuario.
2596
2633
  * @param id - ID del tipo de usuario a eliminar
2597
2634
  */
2598
2635
  async deleteUserType(id) {
2599
- return this.api.executeDELETE(`${this.BASE_PATH}/catalogs/user-types/${id}`);
2636
+ return this.api.executeDELETE(
2637
+ `${this.BASE_PATH}/catalogs/user-types/${id}`
2638
+ );
2600
2639
  }
2601
2640
  // #endregion
2602
2641
  // #region Roles
@@ -2605,35 +2644,50 @@ var UserService = class {
2605
2644
  * @param filter - Filtros opcionales para la búsqueda
2606
2645
  */
2607
2646
  async getRoles(filter) {
2608
- const endpoint = FilterBuilder.buildEndpoint(`${this.BASE_PATH}/catalogs/roles`, filter);
2647
+ const endpoint = FilterBuilder.buildEndpoint(
2648
+ `${this.BASE_PATH}/catalogs/roles`,
2649
+ filter
2650
+ );
2609
2651
  return this.api.executeGET(endpoint, true);
2610
2652
  }
2611
2653
  /**
2612
2654
  * Obtiene el modelo de filtros disponibles para roles.
2613
2655
  */
2614
2656
  async getRolesFilters() {
2615
- return this.api.executeGET(`${this.BASE_PATH}/catalogs/roles/filters`, true);
2657
+ return this.api.executeGET(
2658
+ `${this.BASE_PATH}/catalogs/roles/filters`,
2659
+ true
2660
+ );
2616
2661
  }
2617
2662
  /**
2618
2663
  * Obtiene un rol por su ID.
2619
2664
  * @param id - ID del rol
2620
2665
  */
2621
2666
  async getRoleById(id) {
2622
- return this.api.executeGET(`${this.BASE_PATH}/catalogs/roles/${id}`, true);
2667
+ return this.api.executeGET(
2668
+ `${this.BASE_PATH}/catalogs/roles/${id}`,
2669
+ true
2670
+ );
2623
2671
  }
2624
2672
  /**
2625
2673
  * Obtiene los roles asociados a un tipo de usuario.
2626
2674
  * @param userTypeId - ID del tipo de usuario
2627
2675
  */
2628
2676
  async getRolesByUserType(userTypeId) {
2629
- return this.api.executeGET(`${this.BASE_PATH}/catalogs/roles/user-type/${userTypeId}`, true);
2677
+ return this.api.executeGET(
2678
+ `${this.BASE_PATH}/catalogs/roles/user-type/${userTypeId}`,
2679
+ true
2680
+ );
2630
2681
  }
2631
2682
  /**
2632
2683
  * Crea un nuevo rol.
2633
2684
  * @param request - Datos del rol a crear
2634
2685
  */
2635
2686
  async createRole(request) {
2636
- return this.api.executePOST(`${this.BASE_PATH}/catalogs/roles`, request);
2687
+ return this.api.executePOST(
2688
+ `${this.BASE_PATH}/catalogs/roles`,
2689
+ request
2690
+ );
2637
2691
  }
2638
2692
  /**
2639
2693
  * Actualiza un rol existente.
@@ -2641,21 +2695,28 @@ var UserService = class {
2641
2695
  * @param request - Nuevos datos del rol
2642
2696
  */
2643
2697
  async updateRole(id, request) {
2644
- return this.api.executePUT(`${this.BASE_PATH}/catalogs/roles/${id}`, request);
2698
+ return this.api.executePUT(
2699
+ `${this.BASE_PATH}/catalogs/roles/${id}`,
2700
+ request
2701
+ );
2645
2702
  }
2646
2703
  /**
2647
2704
  * Activa o desactiva un rol.
2648
2705
  * @param id - ID del rol
2649
2706
  */
2650
2707
  async toggleRoleStatus(id) {
2651
- return this.api.executePUT(`${this.BASE_PATH}/catalogs/roles/${id}/toggle-status`);
2708
+ return this.api.executePUT(
2709
+ `${this.BASE_PATH}/catalogs/roles/${id}/toggle-status`
2710
+ );
2652
2711
  }
2653
2712
  /**
2654
2713
  * Elimina un rol.
2655
2714
  * @param id - ID del rol a eliminar
2656
2715
  */
2657
2716
  async deleteRole(id) {
2658
- return this.api.executeDELETE(`${this.BASE_PATH}/catalogs/roles/${id}`);
2717
+ return this.api.executeDELETE(
2718
+ `${this.BASE_PATH}/catalogs/roles/${id}`
2719
+ );
2659
2720
  }
2660
2721
  // #endregion
2661
2722
  };