@internxt/sdk 1.9.14 → 1.9.15

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.
@@ -3,7 +3,7 @@ import { ApiSecurity, ApiUrl, AppDetails } from '../../shared';
3
3
  import { RequestCanceler } from '../../shared/http/client';
4
4
  import { UUID } from '../../shared/types/userSettings';
5
5
  import { ItemType } from './../../workspaces/types';
6
- import { AddItemsToTrashPayload, CheckDuplicatedFilesPayload, CheckDuplicatedFilesResponse, CheckDuplicatedFolderPayload, CheckDuplicatedFoldersResponse, CreateFolderByUuidPayload, CreateFolderPayload, CreateFolderResponse, DeleteFilePayload, DriveFileData, FetchFolderContentResponse, FetchLimitResponse, FetchPaginatedFilesContent, FetchPaginatedFolderContentResponse, FetchPaginatedFoldersContent, FileEntry, FileEntryByUuid, FileMeta, FolderAncestor, FolderAncestorWorkspace, FolderMeta, FolderTreeResponse, MoveFilePayload, MoveFileResponse, MoveFileUuidPayload, MoveFolderPayload, MoveFolderResponse, MoveFolderUuidPayload, ReplaceFile, SearchResultData, Thumbnail, ThumbnailEntry, UpdateFilePayload, UpdateFolderMetadataPayload, UsageResponse } from './types';
6
+ import { AddItemsToTrashPayload, CheckDuplicatedFilesPayload, CheckDuplicatedFilesResponse, CheckDuplicatedFolderPayload, CheckDuplicatedFoldersResponse, CreateFolderByUuidPayload, CreateFolderPayload, CreateFolderResponse, CreateThumbnailEntryPayload, DeleteFilePayload, DriveFileData, FetchFolderContentResponse, FetchLimitResponse, FetchPaginatedFilesContent, FetchPaginatedFolderContentResponse, FetchPaginatedFoldersContent, FileEntry, FileEntryByUuid, FileMeta, FolderAncestor, FolderAncestorWorkspace, FolderMeta, FolderTreeResponse, MoveFilePayload, MoveFileResponse, MoveFileUuidPayload, MoveFolderPayload, MoveFolderResponse, MoveFolderUuidPayload, ReplaceFile, SearchResultData, Thumbnail, ThumbnailEntry, UpdateFilePayload, UpdateFolderMetadataPayload, UsageResponse } from './types';
7
7
  export * as StorageTypes from './types';
8
8
  export declare class Storage {
9
9
  private readonly client;
@@ -148,6 +148,11 @@ export declare class Storage {
148
148
  * @param thumbnailEntry
149
149
  */
150
150
  createThumbnailEntry(thumbnailEntry: ThumbnailEntry, resourcesToken?: Token): Promise<Thumbnail>;
151
+ /**
152
+ * Creates a new thumbnail entry using drive-server-wip
153
+ * @param CreateThumbnailEntryPayload
154
+ */
155
+ createThumbnailEntryWithUUID(thumbnailEntry: CreateThumbnailEntryPayload, resourcesToken?: string): Promise<Thumbnail>;
151
156
  /**
152
157
  * Updates the details of a file entry
153
158
  * @param payload
@@ -371,6 +371,13 @@ var Storage = /** @class */ (function () {
371
371
  thumbnail: thumbnailEntry,
372
372
  }, (0, headers_1.addResourcesTokenToHeaders)(this.headers(), resourcesToken));
373
373
  };
374
+ /**
375
+ * Creates a new thumbnail entry using drive-server-wip
376
+ * @param CreateThumbnailEntryPayload
377
+ */
378
+ Storage.prototype.createThumbnailEntryWithUUID = function (thumbnailEntry, resourcesToken) {
379
+ return this.client.post('/files/thumbnail', __assign({}, thumbnailEntry), (0, headers_1.addResourcesTokenToHeaders)(this.headers(), resourcesToken));
380
+ };
374
381
  /**
375
382
  * Updates the details of a file entry
376
383
  * @param payload
@@ -275,6 +275,17 @@ export interface ThumbnailEntry {
275
275
  bucket_file: string;
276
276
  encrypt_version: EncryptionVersion;
277
277
  }
278
+ export interface CreateThumbnailEntryPayload {
279
+ fileId: number;
280
+ fileUuid: string;
281
+ type: string;
282
+ size: number;
283
+ maxWidth: number;
284
+ maxHeight: number;
285
+ bucketId: string;
286
+ bucketFile: string;
287
+ encryptVersion: EncryptionVersion;
288
+ }
278
289
  export interface CreateFolderPayload {
279
290
  parentFolderId: number;
280
291
  folderName: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@internxt/sdk",
3
3
  "author": "Internxt <hello@internxt.com>",
4
- "version": "1.9.14",
4
+ "version": "1.9.15",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",