@parra/parra-js-sdk 0.3.565 → 0.3.566

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.
Files changed (2) hide show
  1. package/dist/ParraAPI.d.ts +14 -7
  2. package/package.json +1 -1
@@ -613,6 +613,19 @@ export interface ImageAsset {
613
613
  blur_hash?: string | null;
614
614
  thumbnails?: ImageAssetThumbnails | null;
615
615
  }
616
+ export interface CollectionResponse {
617
+ page: number;
618
+ page_count: number;
619
+ page_size: number;
620
+ total_count: number;
621
+ }
622
+ export interface ImageAssetCollectionResponse {
623
+ page: number;
624
+ page_count: number;
625
+ page_size: number;
626
+ total_count: number;
627
+ data: Array<ImageAsset>;
628
+ }
616
629
  export interface UploadImageRequestBody {
617
630
  image: File;
618
631
  }
@@ -707,12 +720,6 @@ export interface ContentCard {
707
720
  badge?: string | null;
708
721
  action?: ContentCardAction | null;
709
722
  }
710
- export interface CollectionResponse {
711
- page: number;
712
- page_count: number;
713
- page_size: number;
714
- total_count: number;
715
- }
716
723
  export interface ContentCardCollectionResponse {
717
724
  page: number;
718
725
  page_count: number;
@@ -6415,7 +6422,7 @@ declare class ParraAPI {
6415
6422
  ids?: string;
6416
6423
  group?: string;
6417
6424
  file_type?: string;
6418
- }, options?: Options) => Promise<Array<ImageAsset>>;
6425
+ }, options?: Options) => Promise<ImageAssetCollectionResponse>;
6419
6426
  uploadImageAssetForTenantById: (tenant_id: string, body?: UploadImageAssetRequestBody, options?: Options) => Promise<ImageAsset>;
6420
6427
  uploadAvatarForUser: (body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
6421
6428
  uploadAvatarForTenantUser: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.565",
3
+ "version": "0.3.566",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",