@internxt/sdk 1.11.2 → 1.11.3

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,10 +1,9 @@
1
- import { paths } from '../../schema';
2
1
  import { Token } from '../../auth';
3
2
  import { ApiSecurity, ApiUrl, AppDetails } from '../../shared';
4
3
  import { RequestCanceler } from '../../shared/http/client';
5
4
  import { UUID } from '../../shared/types/userSettings';
6
5
  import { ItemType } from './../../workspaces/types';
7
- import { 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, UsageResponseV2 } 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, UsageResponseV2 } from './types';
8
7
  export * as StorageTypes from './types';
9
8
  export declare class Storage {
10
9
  private readonly client;
@@ -238,7 +237,7 @@ export declare class Storage {
238
237
  * Add Items to Trash
239
238
  * @param payload
240
239
  */
241
- addItemsToTrash(payload: paths['/storage/trash/add']['post']['requestBody']['content']['application/json']): Promise<void>;
240
+ addItemsToTrash(payload: AddItemsToTrashPayload): Promise<void>;
242
241
  /**
243
242
  * @returns whether the user has uploaded any files
244
243
  */
@@ -1,3 +1,4 @@
1
+ import { paths } from '../../schema';
1
2
  import { SharingMeta } from '../share/types';
2
3
  import { UserResumeData } from '../users/types';
3
4
  export interface DriveFolderData {
@@ -383,6 +384,7 @@ export type UsageResponseV2 = {
383
384
  export interface FetchLimitResponse {
384
385
  maxSpaceBytes: number;
385
386
  }
387
+ export type AddItemsToTrashPayload = paths['/storage/trash/add']['post']['requestBody']['content']['application/json'];
386
388
  export interface SearchResult {
387
389
  id: string;
388
390
  itemId: string;
@@ -1,7 +1,6 @@
1
- import { paths } from '../../schema';
2
1
  import { ApiSecurity, ApiUrl, AppDetails } from '../../shared';
3
2
  import { FetchFolderContentResponse, FetchTrashContentResponse } from '../storage/types';
4
- import { DeleteFilePayload, DeleteItemsPermanentlyByUUIDPayload, DeleteItemsPermanentlyPayload } from './types';
3
+ import { AddItemsToTrashPayload, DeleteFilePayload, DeleteItemsPermanentlyByUUIDPayload, DeleteItemsPermanentlyPayload } from './types';
5
4
  export * as TrashTypes from './types';
6
5
  export declare class Trash {
7
6
  private readonly client;
@@ -51,7 +50,7 @@ export declare class Trash {
51
50
  * Add Items to Trash
52
51
  * @param payload
53
52
  */
54
- addItemsToTrash(payload: paths['/storage/trash/add']['post']['requestBody']['content']['application/json']): Promise<void>;
53
+ addItemsToTrash(payload: AddItemsToTrashPayload): Promise<void>;
55
54
  /**
56
55
  * Removes all items from the trash
57
56
  */
@@ -1,3 +1,5 @@
1
+ import { paths } from '../../schema';
2
+ export type AddItemsToTrashPayload = paths['/storage/trash/add']['post']['requestBody']['content']['application/json'];
1
3
  export interface DeleteFilePayload {
2
4
  fileId: number;
3
5
  folderId: number;