newt-client-js 3.2.5 → 3.2.7

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,2 +1,2 @@
1
1
  export { createClient } from './createClient';
2
- export { CreateClientParams, Client, GetContentsParams, GetContentParams, GetFirstContentParams, GetContentsQuery, GetContentQuery, GetFirstContentQuery, Contents, Content, Media, AppMeta, AppCover, AppIcon, GetAppParams, } from './types';
2
+ export { CreateClientParams, Client, GetContentsParams, GetContentParams, GetFirstContentParams, GetContentsQuery, GetContentQuery, GetFirstContentQuery, Contents, Content, Image, File, Media, AppMeta, AppCover, AppIcon, GetAppParams, } from './types';
@@ -90,14 +90,44 @@ export interface Content {
90
90
  };
91
91
  };
92
92
  }
93
- export interface Media {
93
+ export interface Image {
94
+ _id: string;
95
+ src: string;
96
+ fileName: string;
97
+ fileType: string;
98
+ fileSize: number;
99
+ width: number;
100
+ height: number;
101
+ title: string;
102
+ description: string;
103
+ altText: string;
104
+ metadata: Record<string, string | number | boolean>;
105
+ }
106
+ export interface File {
94
107
  _id: string;
95
108
  src: string;
109
+ fileName: string;
96
110
  fileType: string;
111
+ fileSize: number;
112
+ width: number | null;
113
+ height: number | null;
114
+ title: string;
115
+ description: string;
116
+ altText: string;
117
+ metadata: Record<string, string | number | boolean>;
118
+ }
119
+ export interface Media {
120
+ _id: string;
121
+ src: string;
97
122
  fileName: string;
123
+ fileType: string;
98
124
  fileSize: number;
99
125
  width: number | null;
100
126
  height: number | null;
127
+ title: string;
128
+ description: string;
129
+ altText: string;
130
+ metadata: Record<string, string | number | boolean>;
101
131
  }
102
132
  export declare type AppIcon = {
103
133
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newt-client-js",
3
- "version": "3.2.5",
3
+ "version": "3.2.7",
4
4
  "description": "JavaScript SDK for Newt's API",
5
5
  "main": "./dist/cjs/newtClient.js",
6
6
  "module": "./dist/esm/newtClient.js",