newt-client-js 3.2.0 → 3.2.2

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, AppMeta, AppCover, AppIcon, GetAppParams, } from './types';
2
+ export { CreateClientParams, Client, GetContentsParams, GetContentParams, GetFirstContentParams, GetContentsQuery, GetContentQuery, GetFirstContentQuery, Contents, Content, Media, AppMeta, AppCover, AppIcon, GetAppParams, } from './types';
@@ -81,6 +81,7 @@ export interface Content {
81
81
  _sys: {
82
82
  createdAt: string;
83
83
  updatedAt: string;
84
+ customOrder: number;
84
85
  raw: {
85
86
  createdAt: string;
86
87
  updatedAt: string;
@@ -89,6 +90,15 @@ export interface Content {
89
90
  };
90
91
  };
91
92
  }
93
+ export interface Media {
94
+ _id: string;
95
+ src: string;
96
+ fileType: string;
97
+ fileName: string;
98
+ fileSize: number;
99
+ width: number | null;
100
+ height: number | null;
101
+ }
92
102
  export declare type AppIcon = {
93
103
  type: string;
94
104
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newt-client-js",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "JavaScript SDK for Newt's API",
5
5
  "main": "./dist/cjs/newtClient.js",
6
6
  "module": "./dist/esm/newtClient.js",