falconhub-apilibrary 1.6.5-dev.142 → 1.6.7-dev.147

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;
@@ -974,14 +974,14 @@ interface ProductsFilter {
974
974
  model?: string;
975
975
  target?: string;
976
976
  description?: string;
977
- productTypeId?: number;
978
- productCategoryId?: number;
979
- licenseId?: number;
980
- providerId?: number;
981
- packingId?: number;
982
- productStatusId?: number;
983
- colorId?: number;
984
- materialId?: number;
977
+ productType?: number;
978
+ productCategory?: number;
979
+ license?: number;
980
+ provider?: number;
981
+ packing?: number;
982
+ productStatus?: number;
983
+ color?: number;
984
+ material?: number;
985
985
  includeBundles?: boolean;
986
986
  includePODDetails?: boolean;
987
987
  }
@@ -993,7 +993,6 @@ interface ProductsBulkItem {
993
993
  upc: string;
994
994
  cost: string;
995
995
  tax: string;
996
- image: string;
997
996
  model: string;
998
997
  target: string;
999
998
  description: string;
@@ -1003,14 +1002,14 @@ interface ProductsBulkItem {
1003
1002
  weight: string;
1004
1003
  includeBundles: string;
1005
1004
  includePODDetails: string;
1006
- productTypeId: string;
1007
- productCategoryId: string;
1008
- licenseId: string;
1009
- providerId: string;
1010
- packingId: string;
1011
- productStatusId: string;
1012
- colorId: string;
1013
- materialId: string;
1005
+ productType: string;
1006
+ productCategory: string;
1007
+ license: string;
1008
+ provider: string;
1009
+ packing: string;
1010
+ productStatus: string;
1011
+ color: string;
1012
+ material: string;
1014
1013
  }
1015
1014
  declare const PRODUCTS_BULK_COLUMN_MAP: Record<string, keyof ProductsBulkItem>;
1016
1015
  declare const PRODUCTS_BULK_HEADERS: string[];
@@ -1082,8 +1081,8 @@ interface PODRequest {
1082
1081
  artworkId: number;
1083
1082
  }
1084
1083
  interface PODFilter {
1085
- productId?: number;
1086
- artworkId?: number;
1084
+ product?: number;
1085
+ artwork?: number;
1087
1086
  }
1088
1087
  interface PODBulkItem {
1089
1088
  podId: string;
@@ -1390,6 +1389,16 @@ interface RoleUserProfile {
1390
1389
  role: string;
1391
1390
  }
1392
1391
 
1392
+ interface UpdateProfileRequest {
1393
+ username: string;
1394
+ firstName: string;
1395
+ lastName: string;
1396
+ areaCodeId: number;
1397
+ phone: string;
1398
+ birthday: Date;
1399
+ profilePhoto: string;
1400
+ }
1401
+
1393
1402
  /**
1394
1403
  * Interfaz que representa un tipo de usuario.
1395
1404
  */
@@ -1425,7 +1434,7 @@ interface UserTypeUserProfile {
1425
1434
  userType: string;
1426
1435
  }
1427
1436
 
1428
- interface UserBasicResponse {
1437
+ interface UserIdentityResponse {
1429
1438
  username: string;
1430
1439
  firstName: string;
1431
1440
  lastName: string;
@@ -1438,16 +1447,6 @@ interface UserBasicResponse {
1438
1447
  securityLevel: number;
1439
1448
  }
1440
1449
 
1441
- interface UserDataUpdateRequest {
1442
- username: string;
1443
- firstName: string;
1444
- lastName: string;
1445
- areaCodeId: number;
1446
- phone: string;
1447
- birthday: Date;
1448
- profilePhoto: string;
1449
- }
1450
-
1451
1450
  interface UserProfileResponse {
1452
1451
  username: string;
1453
1452
  firstName: string;
@@ -1790,7 +1789,7 @@ declare class AuthService {
1790
1789
  * Cambia la contraseña del usuario (flujo público, sin sesión).
1791
1790
  * @param request - Email, contraseña actual y nueva contraseña
1792
1791
  */
1793
- changePassword(request: ChangePasswordRequest): Promise<ResponseModel>;
1792
+ changePassword(request: UpdatePasswordRequest): Promise<ResponseModel>;
1794
1793
  recoveryPassword(request: RecoveryPasswordRequest): Promise<ResponseModel>;
1795
1794
  /**
1796
1795
  * Verifica si el usuario está autenticado
@@ -2882,15 +2881,15 @@ declare class UserService {
2882
2881
  /**
2883
2882
  * Obtiene la información básica del usuario.
2884
2883
  * @returns retorna un objeto con la información básica del usuario
2885
- */
2886
- me(): Promise<ResponseModel<UserBasicResponse>>;
2884
+ */
2885
+ me(): Promise<ResponseModel<UserIdentityResponse>>;
2887
2886
  /**
2888
2887
  * Obtiene la información general del usuario para la vista de perfil.
2889
2888
  * @returns
2890
2889
  */
2891
2890
  profile(): Promise<ResponseModel<UserProfileResponse>>;
2891
+ updateProfile(request: UpdateProfileRequest): Promise<ResponseModel>;
2892
2892
  changePasswordUser(request: ChangePasswordUserRequest): Promise<ResponseModel>;
2893
- updateUserData(request: UserDataUpdateRequest): Promise<ResponseModel>;
2894
2893
  /**
2895
2894
  * Crea un nuevo usuario administrador.
2896
2895
  * @param request - Datos del nuevo administrador
@@ -3067,4 +3066,4 @@ declare class FalconHUBSDK {
3067
3066
 
3068
3067
  declare function decrypt(encryptedBase64: string, secret: string, timestamp: string): string;
3069
3068
 
3070
- 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 };
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 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 UpdatePasswordRequest, type UpdateProfileRequest, type UserAdminFilter, type UserAdminRequest, type UserAdminUpdateRequest, type UserAuthAdminRequest, 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
@@ -225,30 +225,29 @@ var COLLECTIONS_LAYOUT_HEADERS = [
225
225
 
226
226
  // src/interfaces/Product/Product/ProductInterface.ts
227
227
  var PRODUCTS_BULK_COLUMN_MAP = {
228
- "Producto": "product",
229
- "SKU": "sku",
230
- "SKUs": "skUs",
231
- "UPC": "upc",
232
- "Costo": "cost",
228
+ Producto: "product",
229
+ SKU: "sku",
230
+ SKUs: "skUs",
231
+ UPC: "upc",
232
+ Costo: "cost",
233
233
  "Impuesto %": "tax",
234
- "Imagen": "image",
235
- "Modelo": "model",
236
- "Target": "target",
237
- "Descripci\xF3n": "description",
234
+ Modelo: "model",
235
+ Target: "target",
236
+ Descripci\u00F3n: "description",
238
237
  "Largo (cm)": "length",
239
238
  "Ancho (cm)": "width",
240
239
  "Alto (cm)": "height",
241
240
  "Peso (kg)": "weight",
242
241
  "\xBFIncluir Bundles?": "includeBundles",
243
242
  "\xBFIncluir POD Details?": "includePODDetails",
244
- "Tipo de Producto": "productTypeId",
245
- "Categor\xEDa": "productCategoryId",
246
- "Licencia": "licenseId",
247
- "Proveedor": "providerId",
248
- "Empaque": "packingId",
249
- "Estado": "productStatusId",
250
- "Color": "colorId",
251
- "Material": "materialId"
243
+ "Tipo de Producto": "productType",
244
+ Categor\u00EDa: "productCategory",
245
+ Licencia: "license",
246
+ Proveedor: "provider",
247
+ Empaque: "packing",
248
+ Estado: "productStatus",
249
+ Color: "color",
250
+ Material: "material"
252
251
  };
253
252
  var PRODUCTS_BULK_HEADERS = [
254
253
  "Producto",
@@ -257,7 +256,6 @@ var PRODUCTS_BULK_HEADERS = [
257
256
  "UPC",
258
257
  "Costo",
259
258
  "Impuesto %",
260
- "Imagen",
261
259
  "Modelo",
262
260
  "Target",
263
261
  "Descripci\xF3n",
@@ -277,31 +275,30 @@ var PRODUCTS_BULK_HEADERS = [
277
275
  "Material"
278
276
  ];
279
277
  var PRODUCTS_LAYOUT_COLUMN_MAP = {
280
- "ID": "productId",
281
- "Producto": "product",
282
- "SKU": "sku",
283
- "SKUs": "skUs",
284
- "UPC": "upc",
285
- "Costo": "cost",
278
+ ID: "productId",
279
+ Producto: "product",
280
+ SKU: "sku",
281
+ SKUs: "skUs",
282
+ UPC: "upc",
283
+ Costo: "cost",
286
284
  "Impuesto %": "tax",
287
- "Imagen": "image",
288
- "Modelo": "model",
289
- "Target": "target",
290
- "Descripci\xF3n": "description",
285
+ Modelo: "model",
286
+ Target: "target",
287
+ Descripci\u00F3n: "description",
291
288
  "Largo (cm)": "length",
292
289
  "Ancho (cm)": "width",
293
290
  "Alto (cm)": "height",
294
291
  "Peso (kg)": "weight",
295
292
  "\xBFIncluir Bundles?": "includeBundles",
296
293
  "\xBFIncluir POD Details?": "includePODDetails",
297
- "Tipo de Producto": "productTypeId",
298
- "Categor\xEDa": "productCategoryId",
299
- "Licencia": "licenseId",
300
- "Proveedor": "providerId",
301
- "Empaque": "packingId",
302
- "Estado": "productStatusId",
303
- "Color": "colorId",
304
- "Material": "materialId"
294
+ "Tipo de Producto": "productType",
295
+ Categor\u00EDa: "productCategory",
296
+ Licencia: "license",
297
+ Proveedor: "provider",
298
+ Empaque: "packing",
299
+ Estado: "productStatus",
300
+ Color: "color",
301
+ Material: "material"
305
302
  };
306
303
  var PRODUCTS_LAYOUT_HEADERS = [
307
304
  "ID",
@@ -341,7 +338,7 @@ var POD_BULK_HEADERS = [
341
338
  "Arte relacionado"
342
339
  ];
343
340
  var POD_LAYOUT_COLUMN_MAP = {
344
- "ID": "podId",
341
+ ID: "podId",
345
342
  "Producto relacionado": "product",
346
343
  "Arte relacionado": "artwork"
347
344
  };
@@ -2443,12 +2440,9 @@ var UserService = class {
2443
2440
  /**
2444
2441
  * Obtiene la información básica del usuario.
2445
2442
  * @returns retorna un objeto con la información básica del usuario
2446
- */
2443
+ */
2447
2444
  async me() {
2448
- const response = await this.api.executeGET(
2449
- `${this.BASE_PATH}/me`,
2450
- true
2451
- );
2445
+ const response = await this.api.executeGET(`${this.BASE_PATH}/me`, true);
2452
2446
  return response;
2453
2447
  }
2454
2448
  /**
@@ -2456,18 +2450,15 @@ var UserService = class {
2456
2450
  * @returns
2457
2451
  */
2458
2452
  async profile() {
2459
- const response = await this.api.executeGET(
2460
- `${this.BASE_PATH}/profile`,
2461
- true
2462
- );
2453
+ const response = await this.api.executeGET(`${this.BASE_PATH}/profile`, true);
2463
2454
  return response;
2464
2455
  }
2456
+ async updateProfile(request) {
2457
+ return this.api.executePUT(`${this.BASE_PATH}/profile`, request);
2458
+ }
2465
2459
  async changePasswordUser(request) {
2466
2460
  return this.api.executePUT(`${this.BASE_PATH}/me/password`, request);
2467
2461
  }
2468
- async updateUserData(request) {
2469
- return this.api.executePUT(`${this.BASE_PATH}/me`, request);
2470
- }
2471
2462
  // #region Admin CRUD
2472
2463
  /**
2473
2464
  * Crea un nuevo usuario administrador.
@@ -2481,7 +2472,10 @@ var UserService = class {
2481
2472
  * @param request - Datos de autenticación del usuario
2482
2473
  */
2483
2474
  async createUserAuthentication(request) {
2484
- return this.api.executePOST(`${this.BASE_PATH}/admin/authentication`, request);
2475
+ return this.api.executePOST(
2476
+ `${this.BASE_PATH}/admin/authentication`,
2477
+ request
2478
+ );
2485
2479
  }
2486
2480
  /**
2487
2481
  * Cambia la contraseña de un administrador.
@@ -2489,35 +2483,50 @@ var UserService = class {
2489
2483
  * @param request - Nueva contraseña
2490
2484
  */
2491
2485
  async changePasswordAdmin(id, request) {
2492
- 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
+ );
2493
2490
  }
2494
2491
  /**
2495
2492
  * Obtiene todos los administradores con filtros opcionales.
2496
2493
  * @param filter - Filtros opcionales para la búsqueda
2497
2494
  */
2498
2495
  async getAllAdmins(filter) {
2499
- const endpoint = FilterBuilder.buildEndpoint(`${this.BASE_PATH}/admin`, filter);
2496
+ const endpoint = FilterBuilder.buildEndpoint(
2497
+ `${this.BASE_PATH}/admin`,
2498
+ filter
2499
+ );
2500
2500
  return this.api.executeGET(endpoint, true);
2501
2501
  }
2502
2502
  /**
2503
2503
  * Obtiene el modelo de filtros disponibles para administradores.
2504
2504
  */
2505
2505
  async getAdminFiltersModel() {
2506
- return this.api.executeGET(`${this.BASE_PATH}/admin/filters`, true);
2506
+ return this.api.executeGET(
2507
+ `${this.BASE_PATH}/admin/filters`,
2508
+ true
2509
+ );
2507
2510
  }
2508
2511
  /**
2509
2512
  * Obtiene un administrador por su ID.
2510
2513
  * @param id - ID del administrador
2511
2514
  */
2512
2515
  async getAdminById(id) {
2513
- return this.api.executeGET(`${this.BASE_PATH}/admin/${id}`, true);
2516
+ return this.api.executeGET(
2517
+ `${this.BASE_PATH}/admin/${id}`,
2518
+ true
2519
+ );
2514
2520
  }
2515
2521
  /**
2516
2522
  * Obtiene la autenticación de un administrador.
2517
2523
  * @param id - ID del usuario
2518
2524
  */
2519
2525
  async getAdminAuthentication(id) {
2520
- 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
+ );
2521
2530
  }
2522
2531
  /**
2523
2532
  * Actualiza un administrador existente.
@@ -2525,14 +2534,19 @@ var UserService = class {
2525
2534
  * @param request - Nuevos datos del administrador
2526
2535
  */
2527
2536
  async updateAdmin(id, request) {
2528
- return this.api.executePUT(`${this.BASE_PATH}/admin/${id}`, request);
2537
+ return this.api.executePUT(
2538
+ `${this.BASE_PATH}/admin/${id}`,
2539
+ request
2540
+ );
2529
2541
  }
2530
2542
  /**
2531
2543
  * Activa o desactiva un administrador.
2532
2544
  * @param id - ID del administrador
2533
2545
  */
2534
2546
  async toggleAdminStatus(id) {
2535
- 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
+ );
2536
2550
  }
2537
2551
  /**
2538
2552
  * Actualiza la autenticación de un administrador.
@@ -2540,7 +2554,10 @@ var UserService = class {
2540
2554
  * @param request - Nuevos datos de autenticación
2541
2555
  */
2542
2556
  async updateAdminAuthentication(id, request) {
2543
- 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
+ );
2544
2561
  }
2545
2562
  /**
2546
2563
  * Elimina un administrador.
@@ -2554,7 +2571,9 @@ var UserService = class {
2554
2571
  * @param id - ID del usuario
2555
2572
  */
2556
2573
  async resendEmailConfirmation(id) {
2557
- 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
+ );
2558
2577
  }
2559
2578
  // #endregion
2560
2579
  // #region User Types
@@ -2563,28 +2582,40 @@ var UserService = class {
2563
2582
  * @param filter - Filtros opcionales para la búsqueda
2564
2583
  */
2565
2584
  async getUserTypes(filter) {
2566
- 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
+ );
2567
2589
  return this.api.executeGET(endpoint, true);
2568
2590
  }
2569
2591
  /**
2570
2592
  * Obtiene el modelo de filtros disponibles para tipos de usuario.
2571
2593
  */
2572
2594
  async getUserTypesFilters() {
2573
- 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
+ );
2574
2599
  }
2575
2600
  /**
2576
2601
  * Obtiene un tipo de usuario por su ID.
2577
2602
  * @param id - ID del tipo de usuario
2578
2603
  */
2579
2604
  async getUserTypeById(id) {
2580
- 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
+ );
2581
2609
  }
2582
2610
  /**
2583
2611
  * Crea un nuevo tipo de usuario.
2584
2612
  * @param request - Datos del tipo de usuario a crear
2585
2613
  */
2586
2614
  async createUserType(request) {
2587
- 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
+ );
2588
2619
  }
2589
2620
  /**
2590
2621
  * Actualiza un tipo de usuario existente.
@@ -2592,14 +2623,19 @@ var UserService = class {
2592
2623
  * @param request - Nuevos datos del tipo de usuario
2593
2624
  */
2594
2625
  async updateUserType(id, request) {
2595
- 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
+ );
2596
2630
  }
2597
2631
  /**
2598
2632
  * Elimina un tipo de usuario.
2599
2633
  * @param id - ID del tipo de usuario a eliminar
2600
2634
  */
2601
2635
  async deleteUserType(id) {
2602
- 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
+ );
2603
2639
  }
2604
2640
  // #endregion
2605
2641
  // #region Roles
@@ -2608,35 +2644,50 @@ var UserService = class {
2608
2644
  * @param filter - Filtros opcionales para la búsqueda
2609
2645
  */
2610
2646
  async getRoles(filter) {
2611
- const endpoint = FilterBuilder.buildEndpoint(`${this.BASE_PATH}/catalogs/roles`, filter);
2647
+ const endpoint = FilterBuilder.buildEndpoint(
2648
+ `${this.BASE_PATH}/catalogs/roles`,
2649
+ filter
2650
+ );
2612
2651
  return this.api.executeGET(endpoint, true);
2613
2652
  }
2614
2653
  /**
2615
2654
  * Obtiene el modelo de filtros disponibles para roles.
2616
2655
  */
2617
2656
  async getRolesFilters() {
2618
- 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
+ );
2619
2661
  }
2620
2662
  /**
2621
2663
  * Obtiene un rol por su ID.
2622
2664
  * @param id - ID del rol
2623
2665
  */
2624
2666
  async getRoleById(id) {
2625
- 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
+ );
2626
2671
  }
2627
2672
  /**
2628
2673
  * Obtiene los roles asociados a un tipo de usuario.
2629
2674
  * @param userTypeId - ID del tipo de usuario
2630
2675
  */
2631
2676
  async getRolesByUserType(userTypeId) {
2632
- 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
+ );
2633
2681
  }
2634
2682
  /**
2635
2683
  * Crea un nuevo rol.
2636
2684
  * @param request - Datos del rol a crear
2637
2685
  */
2638
2686
  async createRole(request) {
2639
- return this.api.executePOST(`${this.BASE_PATH}/catalogs/roles`, request);
2687
+ return this.api.executePOST(
2688
+ `${this.BASE_PATH}/catalogs/roles`,
2689
+ request
2690
+ );
2640
2691
  }
2641
2692
  /**
2642
2693
  * Actualiza un rol existente.
@@ -2644,21 +2695,28 @@ var UserService = class {
2644
2695
  * @param request - Nuevos datos del rol
2645
2696
  */
2646
2697
  async updateRole(id, request) {
2647
- 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
+ );
2648
2702
  }
2649
2703
  /**
2650
2704
  * Activa o desactiva un rol.
2651
2705
  * @param id - ID del rol
2652
2706
  */
2653
2707
  async toggleRoleStatus(id) {
2654
- 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
+ );
2655
2711
  }
2656
2712
  /**
2657
2713
  * Elimina un rol.
2658
2714
  * @param id - ID del rol a eliminar
2659
2715
  */
2660
2716
  async deleteRole(id) {
2661
- return this.api.executeDELETE(`${this.BASE_PATH}/catalogs/roles/${id}`);
2717
+ return this.api.executeDELETE(
2718
+ `${this.BASE_PATH}/catalogs/roles/${id}`
2719
+ );
2662
2720
  }
2663
2721
  // #endregion
2664
2722
  };