limbo-component 2.7.3 → 2.8.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.
@@ -1,14 +1,19 @@
1
1
  /**
2
2
  * Lista assets del portal
3
- * @param {Object} params - Parámetros de filtrado (page, limit, etc.)
3
+ * @param {Object} params - Parámetros de filtrado (page, limit, url_expires, etc.)
4
4
  * @returns {Promise<Object>} Lista de assets en formato legacy
5
5
  */
6
6
  export function listAssets(params?: any): Promise<any>;
7
7
  /**
8
8
  * Upload new asset
9
9
  * Maps to: POST /api/assets
10
+ *
11
+ * @param {File} file - File to upload
12
+ * @param {string|null} uploaded_by - User identifier
13
+ * @param {boolean} store_original - Store original file
14
+ * @param {string|null} folder - Folder slug or ID to organize the asset
10
15
  */
11
- export function uploadAsset(file: any, uploaded_by?: any, store_original?: boolean): Promise<any>;
16
+ export function uploadAsset(file: File, uploaded_by?: string | null, store_original?: boolean, folder?: string | null): Promise<any>;
12
17
  /**
13
18
  * Get specific asset
14
19
  * Maps to: GET /api/assets/{id}
@@ -16,9 +21,9 @@ export function uploadAsset(file: any, uploaded_by?: any, store_original?: boole
16
21
  * @param {string} assetId - Asset ID
17
22
  * @param {boolean} includeVariants - Include variants in response
18
23
  * @param {boolean} includeMetadata - Include metadata in response
19
- * @param {boolean} permanentUrl - Request permanent URLs that never expire
24
+ * @param {number} urlExpires - URL expiration in seconds (0 = permanent, default)
20
25
  */
21
- export function getAsset(assetId: string, includeVariants?: boolean, includeMetadata?: boolean, permanentUrl?: boolean): Promise<any>;
26
+ export function getAsset(assetId: string, includeVariants?: boolean, includeMetadata?: boolean, urlExpires?: number): Promise<any>;
22
27
  /**
23
28
  * Delete asset (soft delete)
24
29
  * Maps to: DELETE /api/assets/{id}
@@ -40,8 +45,11 @@ export function generateVariant(assetId: any, { variant_name, width, height, cro
40
45
  /**
41
46
  * List variants for asset
42
47
  * Maps to: GET /api/assets/{id}/variants
48
+ *
49
+ * @param {string} assetId - Asset ID
50
+ * @param {number} urlExpires - URL expiration in seconds (0 = permanent, default)
43
51
  */
44
- export function listVariants(assetId: any): Promise<any>;
52
+ export function listVariants(assetId: string, urlExpires?: number): Promise<any>;
45
53
  /**
46
54
  * Delete variant
47
55
  * Maps to: DELETE /api/assets/{assetId}/variants/{variantId}
@@ -1 +1 @@
1
- {"version":3,"file":"assetsApi.d.ts","sourceRoot":"","sources":["../../../src/services/assetsApi.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,0CAFa,OAAO,KAAQ,CAkB3B;AAED;;;GAGG;AACH,kGAoBC;AAED;;;;;;;;GAQG;AACH,kCALW,MAAM,oBACN,OAAO,oBACP,OAAO,iBACP,OAAO,gBAqBjB;AAED;;;GAGG;AACH,wDAaC;AAED;;;GAGG;AACH;;;;;;;;iBAuCC;AAED;;;GAGG;AACH,yDAeC;AAED;;;GAGG;AACH,0EAaC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,2CAVW,MAAM,QACN,IAAI,YAEZ;IAAwB,IAAI,EAApB,MAAM;IACU,KAAK,EAArB,MAAM;IACU,MAAM,EAAtB,MAAM;IACU,MAAM,EAAtB,MAAM;IACW,YAAY,EAA7B,OAAO;CACf,GAAU,OAAO,KAAQ,CAiC3B;AAKD;;;GAGG;AACH,6DAGC;AAED;;;GAGG;AACH,+EAGC"}
1
+ {"version":3,"file":"assetsApi.d.ts","sourceRoot":"","sources":["../../../src/services/assetsApi.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,0CAFa,OAAO,KAAQ,CAuB3B;AAED;;;;;;;;GAQG;AACH,kCALW,IAAI,gBACJ,MAAM,GAAC,IAAI,mBACX,OAAO,WACP,MAAM,GAAC,IAAI,gBAuBrB;AAED;;;;;;;;GAQG;AACH,kCALW,MAAM,oBACN,OAAO,oBACP,OAAO,eACP,MAAM,gBAqBhB;AAED;;;GAGG;AACH,wDAaC;AAED;;;GAGG;AACH;;;;;;;;iBAuCC;AAED;;;;;;GAMG;AACH,sCAHW,MAAM,eACN,MAAM,gBAqBhB;AAED;;;GAGG;AACH,0EAaC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,2CAVW,MAAM,QACN,IAAI,YAEZ;IAAwB,IAAI,EAApB,MAAM;IACU,KAAK,EAArB,MAAM;IACU,MAAM,EAAtB,MAAM;IACU,MAAM,EAAtB,MAAM;IACW,YAAY,EAA7B,OAAO;CACf,GAAU,OAAO,KAAQ,CAiC3B;AAKD;;;GAGG;AACH,6DAGC;AAED;;;GAGG;AACH,+EAGC"}
@@ -1 +1 @@
1
- {"version":3,"file":"responseAdapters.d.ts","sourceRoot":"","sources":["../../../src/services/responseAdapters.js"],"names":[],"mappings":"AA8DA;;;;GAIG;AACH,uDAsCC;AAED;;;;GAIG;AACH,4DA+CC;AAED;;;;GAIG;AACH,8DAqCC;AAED;;;;GAIG;AACH,8DAiBC;AAED;;;;GAIG;AACH,wDAkCC;AAED;;;;GAIG;AACH,mEAuEC;AAED;;;;GAIG;AACH,wCAHW,KAAK,GACH,KAAK,CAkBjB"}
1
+ {"version":3,"file":"responseAdapters.d.ts","sourceRoot":"","sources":["../../../src/services/responseAdapters.js"],"names":[],"mappings":"AA8DA;;;;GAIG;AACH,uDAsCC;AAED;;;;GAIG;AACH,4DAgDC;AAED;;;;GAIG;AACH,8DAiCC;AAED;;;;GAIG;AACH,8DAkBC;AAED;;;;GAIG;AACH,wDAyCC;AAED;;;;GAIG;AACH,mEAuEC;AAED;;;;GAIG;AACH,wCAHW,KAAK,GACH,KAAK,CAkBjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limbo-component",
3
- "version": "2.7.3",
3
+ "version": "2.8.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Limbo - Highly configurable React image manager component for web portals",