@marteye/studiojs 1.1.15 → 1.1.17

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/types.d.ts CHANGED
@@ -564,21 +564,23 @@ export interface Address {
564
564
  zip: string;
565
565
  country: string;
566
566
  }
567
- interface ImageThumbnail {
568
- url: string;
569
- width: number;
570
- height: number;
571
- }
567
+ export declare const IMAGE_SIZES_VALUES: readonly ["small", "medium", "large"];
568
+ export declare const VIDEO_TASKS_VALUES: readonly ["compressed", "thumbnail"];
569
+ export type ImageSizes = (typeof IMAGE_SIZES_VALUES)[number];
570
+ export type VideoTasks = (typeof VIDEO_TASKS_VALUES)[number];
571
+ export type SupportedFileTypesNames = "image" | "video" | "file";
572
572
  export interface Media {
573
573
  id: string;
574
+ fileName: string;
575
+ path: string;
574
576
  url: string;
575
- type: "image/jpeg" | "image/png" | "video/mp4" | "application/pdf";
576
- filename: string;
577
- thumbnails?: {
578
- small?: ImageThumbnail;
579
- medium?: ImageThumbnail;
580
- large?: ImageThumbnail;
581
- };
577
+ fileType: string;
578
+ variants: Partial<Record<ImageSizes | VideoTasks, {
579
+ url: string;
580
+ isLocal?: boolean;
581
+ isProcessing: boolean;
582
+ type: SupportedFileTypesNames;
583
+ }>>;
582
584
  }
583
585
  export type MarketReportHeaders = "grossServices" | "vatOnServices" | "grossGoods" | "vatOnGoods" | "netTotal" | "contra";
584
586
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marteye/studiojs",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "MartEye Studio JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "type": "module",