@ecodrix/erix-api 1.1.7 → 1.1.8
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/cli.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/ts/browser/index.global.js.map +1 -1
- package/dist/ts/cjs/index.cjs.map +1 -1
- package/dist/ts/cjs/index.d.cts +3 -2
- package/dist/ts/esm/index.d.ts +3 -2
- package/dist/ts/esm/index.js.map +1 -1
- package/package.json +2 -1
- package/src/resources/media.ts +10 -4
package/dist/ts/cjs/index.d.cts
CHANGED
|
@@ -1380,17 +1380,18 @@ declare class MediaResource extends APIResource {
|
|
|
1380
1380
|
* List files within a specific folder, with optional date filtering.
|
|
1381
1381
|
*
|
|
1382
1382
|
* @param folder - The folder key to list.
|
|
1383
|
-
* @param params - Optional `year` and `
|
|
1383
|
+
* @param params - Optional `year`, `month`, and search `q` filters.
|
|
1384
1384
|
* @returns Array of file metadata objects.
|
|
1385
1385
|
*
|
|
1386
1386
|
* @example
|
|
1387
1387
|
* ```typescript
|
|
1388
|
-
* const { data: files } = await ecod.media.list("invoices", {
|
|
1388
|
+
* const { data: files } = await ecod.media.list("invoices", { q: "contract" });
|
|
1389
1389
|
* ```
|
|
1390
1390
|
*/
|
|
1391
1391
|
list(folder: string, params?: {
|
|
1392
1392
|
year?: string;
|
|
1393
1393
|
month?: string;
|
|
1394
|
+
q?: string;
|
|
1394
1395
|
}): Promise<unknown>;
|
|
1395
1396
|
/**
|
|
1396
1397
|
* Delete a file from R2 by its storage key.
|
package/dist/ts/esm/index.d.ts
CHANGED
|
@@ -1380,17 +1380,18 @@ declare class MediaResource extends APIResource {
|
|
|
1380
1380
|
* List files within a specific folder, with optional date filtering.
|
|
1381
1381
|
*
|
|
1382
1382
|
* @param folder - The folder key to list.
|
|
1383
|
-
* @param params - Optional `year` and `
|
|
1383
|
+
* @param params - Optional `year`, `month`, and search `q` filters.
|
|
1384
1384
|
* @returns Array of file metadata objects.
|
|
1385
1385
|
*
|
|
1386
1386
|
* @example
|
|
1387
1387
|
* ```typescript
|
|
1388
|
-
* const { data: files } = await ecod.media.list("invoices", {
|
|
1388
|
+
* const { data: files } = await ecod.media.list("invoices", { q: "contract" });
|
|
1389
1389
|
* ```
|
|
1390
1390
|
*/
|
|
1391
1391
|
list(folder: string, params?: {
|
|
1392
1392
|
year?: string;
|
|
1393
1393
|
month?: string;
|
|
1394
|
+
q?: string;
|
|
1394
1395
|
}): Promise<unknown>;
|
|
1395
1396
|
/**
|
|
1396
1397
|
* Delete a file from R2 by its storage key.
|