falconhub-apilibrary 1.6.2-dev.139 → 1.6.3-dev.140

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
@@ -591,6 +591,34 @@ interface StudiosFilter {
591
591
  studio?: string;
592
592
  isActive?: boolean;
593
593
  }
594
+ /**
595
+ * Fila del Excel de carga masiva / layout editable de Estudios.
596
+ * Todos los campos son string porque provienen de celdas Excel.
597
+ */
598
+ interface StudiosBulkItem {
599
+ studioId: string;
600
+ studio: string;
601
+ key: string;
602
+ isActive: string;
603
+ }
604
+ /**
605
+ * Mapeo de encabezados Excel (plantilla vacía) a propiedades de StudiosBulkItem.
606
+ * Usar al leer archivos descargados desde GET bulk/template.
607
+ */
608
+ declare const STUDIOS_BULK_COLUMN_MAP: Record<string, keyof StudiosBulkItem>;
609
+ /**
610
+ * Encabezados en español de la plantilla vacía, en el orden exacto de las columnas.
611
+ */
612
+ declare const STUDIOS_BULK_HEADERS: string[];
613
+ /**
614
+ * Mapeo de encabezados Excel (layout editable) a propiedades de StudiosBulkItem.
615
+ * Usar al leer archivos descargados desde GET bulk/layout.
616
+ */
617
+ declare const STUDIOS_LAYOUT_COLUMN_MAP: Record<string, keyof StudiosBulkItem>;
618
+ /**
619
+ * Encabezados en español del layout editable, en el orden exacto de las columnas.
620
+ */
621
+ declare const STUDIOS_LAYOUT_HEADERS: string[];
594
622
 
595
623
  interface License {
596
624
  licenseId: number;
@@ -620,6 +648,37 @@ interface LicensesFilter {
620
648
  region?: string;
621
649
  isActive?: boolean;
622
650
  }
651
+ /**
652
+ * Fila del Excel de carga masiva / layout editable de Licencias.
653
+ * Todos los campos son string porque provienen de celdas Excel.
654
+ */
655
+ interface LicensesBulkItem {
656
+ licenseId: string;
657
+ license: string;
658
+ studio: string;
659
+ region: string;
660
+ key: string;
661
+ royalty: string;
662
+ isActive: string;
663
+ }
664
+ /**
665
+ * Mapeo de encabezados Excel (plantilla vacía) a propiedades de LicensesBulkItem.
666
+ * Usar al leer archivos descargados desde GET bulk/template.
667
+ */
668
+ declare const LICENSES_BULK_COLUMN_MAP: Record<string, keyof LicensesBulkItem>;
669
+ /**
670
+ * Encabezados en español de la plantilla vacía, en el orden exacto de las columnas.
671
+ */
672
+ declare const LICENSES_BULK_HEADERS: string[];
673
+ /**
674
+ * Mapeo de encabezados Excel (layout editable) a propiedades de LicensesBulkItem.
675
+ * Usar al leer archivos descargados desde GET bulk/layout.
676
+ */
677
+ declare const LICENSES_LAYOUT_COLUMN_MAP: Record<string, keyof LicensesBulkItem>;
678
+ /**
679
+ * Encabezados en español del layout editable, en el orden exacto de las columnas.
680
+ */
681
+ declare const LICENSES_LAYOUT_HEADERS: string[];
623
682
 
624
683
  interface ProductType {
625
684
  productTypeId: number;
@@ -2279,6 +2338,18 @@ declare class ProductService {
2279
2338
  * Elimina un estudio.
2280
2339
  */
2281
2340
  deleteStudio(id: number): Promise<ResponseModel<void>>;
2341
+ /**
2342
+ * Obtiene la plantilla para la carga masiva de estudios.
2343
+ */
2344
+ getStudiosBulkTemplate(): Promise<ResponseModel<Blob>>;
2345
+ /**
2346
+ * Obtiene el layout para la actualización masiva de estudios.
2347
+ */
2348
+ getStudiosBulkLayout(ids: number[]): Promise<ResponseModel<Blob>>;
2349
+ /**
2350
+ * Realiza una carga masiva (upsert) de estudios.
2351
+ */
2352
+ bulkUpsertStudios(request: BulkUploadRequest): Promise<ResponseModel<BulkResult>>;
2282
2353
  /**
2283
2354
  * Obtiene todas las licencias con filtros opcionales.
2284
2355
  */
@@ -2307,6 +2378,18 @@ declare class ProductService {
2307
2378
  * Elimina una licencia.
2308
2379
  */
2309
2380
  deleteLicense(id: number): Promise<ResponseModel<void>>;
2381
+ /**
2382
+ * Obtiene la plantilla para la carga masiva de licencias.
2383
+ */
2384
+ getLicensesBulkTemplate(): Promise<ResponseModel<Blob>>;
2385
+ /**
2386
+ * Obtiene el layout para la actualización masiva de licencias.
2387
+ */
2388
+ getLicensesBulkLayout(ids: number[]): Promise<ResponseModel<Blob>>;
2389
+ /**
2390
+ * Realiza una carga masiva (upsert) de licencias.
2391
+ */
2392
+ bulkUpsertLicenses(request: BulkUploadRequest): Promise<ResponseModel<BulkResult>>;
2310
2393
  /**
2311
2394
  * Obtiene todos los tipos de producto con filtros opcionales.
2312
2395
  */
@@ -2983,4 +3066,4 @@ declare class FalconHUBSDK {
2983
3066
 
2984
3067
  declare function decrypt(encryptedBase64: string, secret: string, timestamp: string): string;
2985
3068
 
2986
- 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, type License, type LicenseRequest, 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, 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 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 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 };
package/dist/index.mjs CHANGED
@@ -72,6 +72,61 @@ var BLANKS_BULK_SPANISH_HEADERS = [
72
72
  "Activo"
73
73
  ];
74
74
 
75
+ // src/interfaces/Product/Studio/StudioInterface.ts
76
+ var STUDIOS_BULK_COLUMN_MAP = {
77
+ "Nombre del estudio": "studio",
78
+ "Clave": "key",
79
+ "Activo": "isActive"
80
+ };
81
+ var STUDIOS_BULK_HEADERS = [
82
+ "Nombre del estudio",
83
+ "Clave",
84
+ "Activo"
85
+ ];
86
+ var STUDIOS_LAYOUT_COLUMN_MAP = {
87
+ "ID": "studioId",
88
+ "Nombre del estudio": "studio",
89
+ "Clave": "key",
90
+ "Activo": "isActive"
91
+ };
92
+ var STUDIOS_LAYOUT_HEADERS = ["ID", "Nombre del estudio", "Clave", "Activo"];
93
+
94
+ // src/interfaces/Product/License/LicenseInterface.ts
95
+ var LICENSES_BULK_COLUMN_MAP = {
96
+ Licencia: "license",
97
+ Estudio: "studio",
98
+ Regi\u00F3n: "region",
99
+ Key: "key",
100
+ Royalty: "royalty",
101
+ IsActive: "isActive"
102
+ };
103
+ var LICENSES_BULK_HEADERS = [
104
+ "Licencia",
105
+ "Estudio",
106
+ "Regi\xF3n",
107
+ "Key",
108
+ "Royalty",
109
+ "IsActive"
110
+ ];
111
+ var LICENSES_LAYOUT_COLUMN_MAP = {
112
+ ID: "licenseId",
113
+ Licencia: "license",
114
+ Estudio: "studio",
115
+ Regi\u00F3n: "region",
116
+ Key: "key",
117
+ Royalty: "royalty",
118
+ IsActive: "isActive"
119
+ };
120
+ var LICENSES_LAYOUT_HEADERS = [
121
+ "ID",
122
+ "Licencia",
123
+ "Estudio",
124
+ "Regi\xF3n",
125
+ "Key",
126
+ "Royalty",
127
+ "IsActive"
128
+ ];
129
+
75
130
  // src/interfaces/Product/ProductType/ProductTypeInterface.ts
76
131
  var PRODUCT_TYPES_BULK_COLUMN_MAP = {
77
132
  "Tipo de Producto": "productType",
@@ -1436,6 +1491,33 @@ var ProductService = class {
1436
1491
  `${this.BASE_PATH}/catalogs/studios/${id}`
1437
1492
  );
1438
1493
  }
1494
+ /**
1495
+ * Obtiene la plantilla para la carga masiva de estudios.
1496
+ */
1497
+ async getStudiosBulkTemplate() {
1498
+ return this.api.executeBlobGET(
1499
+ `${this.BASE_PATH}/catalogs/studios/bulk/template`,
1500
+ false
1501
+ );
1502
+ }
1503
+ /**
1504
+ * Obtiene el layout para la actualización masiva de estudios.
1505
+ */
1506
+ async getStudiosBulkLayout(ids) {
1507
+ return this.api.executeBlobGET(
1508
+ `${this.BASE_PATH}/catalogs/studios/bulk/layout?ids=${ids.join(",")}`,
1509
+ false
1510
+ );
1511
+ }
1512
+ /**
1513
+ * Realiza una carga masiva (upsert) de estudios.
1514
+ */
1515
+ async bulkUpsertStudios(request) {
1516
+ return this.api.executePOST(
1517
+ `${this.BASE_PATH}/catalogs/studios/bulk`,
1518
+ request
1519
+ );
1520
+ }
1439
1521
  // #endregion
1440
1522
  // #region LICENSES
1441
1523
  /**
@@ -1500,6 +1582,33 @@ var ProductService = class {
1500
1582
  `${this.BASE_PATH}/catalogs/licenses/${id}`
1501
1583
  );
1502
1584
  }
1585
+ /**
1586
+ * Obtiene la plantilla para la carga masiva de licencias.
1587
+ */
1588
+ async getLicensesBulkTemplate() {
1589
+ return this.api.executeBlobGET(
1590
+ `${this.BASE_PATH}/catalogs/licenses/bulk/template`,
1591
+ false
1592
+ );
1593
+ }
1594
+ /**
1595
+ * Obtiene el layout para la actualización masiva de licencias.
1596
+ */
1597
+ async getLicensesBulkLayout(ids) {
1598
+ return this.api.executeBlobGET(
1599
+ `${this.BASE_PATH}/catalogs/licenses/bulk/layout?ids=${ids.join(",")}`,
1600
+ false
1601
+ );
1602
+ }
1603
+ /**
1604
+ * Realiza una carga masiva (upsert) de licencias.
1605
+ */
1606
+ async bulkUpsertLicenses(request) {
1607
+ return this.api.executePOST(
1608
+ `${this.BASE_PATH}/catalogs/licenses/bulk`,
1609
+ request
1610
+ );
1611
+ }
1503
1612
  // #endregion
1504
1613
  // #region PRODUCT TYPES
1505
1614
  /**
@@ -3187,6 +3296,10 @@ export {
3187
3296
  FilterBuilder,
3188
3297
  InventoryService,
3189
3298
  LAYOUT_MARKER,
3299
+ LICENSES_BULK_COLUMN_MAP,
3300
+ LICENSES_BULK_HEADERS,
3301
+ LICENSES_LAYOUT_COLUMN_MAP,
3302
+ LICENSES_LAYOUT_HEADERS,
3190
3303
  MATERIALS_BULK_COLUMN_MAP,
3191
3304
  MATERIALS_BULK_HEADERS,
3192
3305
  MATERIALS_LAYOUT_COLUMN_MAP,
@@ -3204,6 +3317,10 @@ export {
3204
3317
  PRODUCT_TYPES_LAYOUT_COLUMN_MAP,
3205
3318
  PRODUCT_TYPES_LAYOUT_HEADERS,
3206
3319
  ProductService,
3320
+ STUDIOS_BULK_COLUMN_MAP,
3321
+ STUDIOS_BULK_HEADERS,
3322
+ STUDIOS_LAYOUT_COLUMN_MAP,
3323
+ STUDIOS_LAYOUT_HEADERS,
3207
3324
  SystemService,
3208
3325
  TokenManager,
3209
3326
  UserService,