@pitcher/js-api 1.21.0-beta.8 → 1.21.0
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/js-api.esm.js +274 -92
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +9 -9
- package/js-api.umd.min.js.map +1 -1
- package/lib/api/canvases/canvases.queries.d.ts +5 -5
- package/lib/apps/browser/stores/api.d.ts +215 -84
- package/lib/apps/browser/stores/app.d.ts +7 -26
- package/lib/apps/browser/stores/upload.d.ts +34 -24
- package/lib/apps/browser/util/file.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +550 -460
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +86 -74
- package/lib/apps/canvas-builder/composables/useCanvasHooks.d.ts +4 -4
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +3 -3
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +3 -3
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +24 -17
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +3 -3
- package/lib/apps/canvas-builder/composables/useComponentPermissions.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +6 -4
- package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +4 -1
- package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +4 -4
- package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +2 -2
- package/lib/apps/canvas-builder/types/canvas.d.ts +19 -18
- package/lib/apps/canvas-builder/types/recommendations.types.d.ts +3 -3
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +5 -4
- package/lib/apps/content-selector/appTypes.d.ts +1 -0
- package/lib/apps/content-selector/stores/app.d.ts +8 -1
- package/lib/components/CFileViewer/CFileViewer.use.d.ts +2 -4
- package/lib/components/CFileViewer/CFileViewerFullScreen.use.d.ts +1 -1
- package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +5 -5
- package/lib/components/filters/filter.util.d.ts +1 -1
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +2 -2
- package/lib/composables/instanceTagsActions.use.d.ts +14 -0
- package/lib/composables/recentFiles.use.d.ts +1 -1
- package/lib/composables/suggestedTags.use.d.ts +3 -0
- package/lib/composables/tableColumnsSettings.use.d.ts +25 -0
- package/lib/composables/useCanvasOverlay.d.ts +20 -0
- package/lib/composables/useConfirmation.d.ts +1 -0
- package/lib/composables/useElementHeightResize.d.ts +5 -0
- package/lib/composables/useFiles.d.ts +11 -0
- package/lib/constants/pitcherSettings.const.d.ts +4 -0
- package/lib/main.lib.d.ts +27 -20
- package/lib/sdk/api/HighLevelApi.d.ts +106 -12
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +31 -15
- package/lib/sdk/api/modules/admin/env.admin.d.ts +3 -2
- package/lib/sdk/api/modules/admin/files.admin.d.ts +43 -4
- package/lib/sdk/api/modules/admin/index.d.ts +52 -5
- package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +1 -2
- package/lib/sdk/api/modules/admin/types.admin.d.ts +117 -3
- package/lib/sdk/api/modules/canvas.d.ts +12 -14
- package/lib/sdk/api/modules/dsr/env.dsr.d.ts +4 -3
- package/lib/sdk/api/modules/dsr/index.d.ts +14 -3
- package/lib/sdk/api/modules/dsr/loading.dsr.d.ts +6 -0
- package/lib/sdk/api/modules/env.d.ts +16 -0
- package/lib/sdk/api/modules/favorites.d.ts +9 -0
- package/lib/sdk/api/modules/feedback.d.ts +3 -0
- package/lib/sdk/api/modules/files.d.ts +3 -3
- package/lib/sdk/api/modules/folders.d.ts +29 -0
- package/lib/sdk/api/modules/open.d.ts +6 -0
- package/lib/sdk/api/modules/sync.d.ts +1 -2
- package/lib/sdk/api/modules/ui/app-errors.ui.d.ts +12 -0
- package/lib/sdk/api/modules/ui/canvas.ui.d.ts +75 -2
- package/lib/sdk/api/modules/ui/content.ui.d.ts +50 -0
- package/lib/sdk/api/modules/ui/index.d.ts +149 -13
- package/lib/sdk/api/modules/ui/loading.ui.d.ts +15 -0
- package/lib/sdk/api/modules/ui/location.ui.d.ts +17 -0
- package/lib/sdk/api/modules/ui/post-call.ui.d.ts +25 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +69 -6
- package/lib/sdk/api/modules/users.d.ts +4 -0
- package/lib/sdk/interfaces.d.ts +119 -2
- package/lib/sdk/main.d.ts +275 -141
- package/lib/sdk/payload.types.d.ts +134 -2
- package/lib/theme/light.d.ts +12 -0
- package/lib/types/app.d.ts +11 -0
- package/lib/types/call.d.ts +2 -2
- package/lib/types/files.d.ts +27 -1
- package/lib/types/filter.d.ts +5 -0
- package/lib/types/instanceSettings.types.d.ts +8 -2
- package/lib/types/launchDarkly.types.d.ts +4 -4
- package/lib/types/organizationSettings.types.d.ts +4 -0
- package/lib/types/recentFiles.types.d.ts +4 -1
- package/lib/types/users.d.ts +13 -0
- package/lib/util/fullscreen.util.d.ts +1 -1
- package/lib/util/string.d.ts +1 -0
- package/package.json +1 -1
- package/types/openapi/index.d.ts +23 -17
- package/types/openapi/models/AccessTypeEnum.d.ts +3 -1
- package/types/openapi/models/App.d.ts +1 -0
- package/types/openapi/models/AppRelease.d.ts +1 -0
- package/types/openapi/models/AppsDBEntry.d.ts +4 -0
- package/types/openapi/models/AppsDBEntryRequest.d.ts +3 -0
- package/types/openapi/models/Canvas.d.ts +10 -15
- package/types/openapi/models/CanvasCreate.d.ts +14 -12
- package/types/openapi/models/CanvasCreateRequest.d.ts +6 -5
- package/types/openapi/models/CanvasRecommendedFile.d.ts +6 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +15 -13
- package/types/openapi/models/CanvasSection.d.ts +5 -2
- package/types/openapi/models/CanvasUpdate.d.ts +14 -12
- package/types/openapi/models/CanvasUpdateRequest.d.ts +5 -4
- package/types/openapi/models/CollaborationRoleEnum.d.ts +0 -4
- package/types/openapi/models/ContentDistributionGroupCreate.d.ts +1 -0
- package/types/openapi/models/DeletedApp.d.ts +1 -0
- package/types/openapi/models/{CanvasList.d.ts → DeletedCanvas.d.ts} +13 -9
- package/types/openapi/models/DeletedContentDistributionGroup.d.ts +1 -0
- package/types/openapi/models/DeletedEnvironment.d.ts +1 -0
- package/types/openapi/models/DeletedFavorite.d.ts +1 -0
- package/types/openapi/models/DeletedFile.d.ts +6 -0
- package/types/openapi/models/DeletedFolder.d.ts +4 -3
- package/types/openapi/models/DeletedInstance.d.ts +1 -0
- package/types/openapi/models/DeletedInstanceAssignmentGroup.d.ts +1 -0
- package/types/openapi/models/DeletedMetadataTemplate.d.ts +1 -0
- package/types/openapi/models/DeletedRegion.d.ts +1 -0
- package/types/openapi/models/Environment.d.ts +1 -0
- package/types/openapi/models/Favorite.d.ts +1 -0
- package/types/openapi/models/File.d.ts +6 -0
- package/types/openapi/models/FileCreate.d.ts +8 -0
- package/types/openapi/models/FileCreateRequest.d.ts +3 -0
- package/types/openapi/models/FilePermission.d.ts +4 -0
- package/types/openapi/models/FilePermissionRequest.d.ts +4 -0
- package/types/openapi/models/FileRetrieve.d.ts +8 -0
- package/types/openapi/models/FileRevision.d.ts +8 -0
- package/types/openapi/models/FileRevisionRequest.d.ts +3 -0
- package/types/openapi/models/FileUpdate.d.ts +8 -0
- package/types/openapi/models/FileUpdateRequest.d.ts +3 -0
- package/types/openapi/models/FileVersion.d.ts +5 -0
- package/types/openapi/models/Folder.d.ts +4 -3
- package/types/openapi/models/FolderCanvas.d.ts +11 -0
- package/types/openapi/models/FolderCreate.d.ts +8 -7
- package/types/openapi/models/FolderCreateRequest.d.ts +4 -2
- package/types/openapi/models/FolderFile.d.ts +3 -0
- package/types/openapi/models/FolderFolder.d.ts +5 -1
- package/types/openapi/models/FolderRetrieve.d.ts +8 -8
- package/types/openapi/models/FolderRule.d.ts +7 -0
- package/types/openapi/models/FolderRuleRequest.d.ts +7 -0
- package/types/openapi/models/FolderUpdate.d.ts +8 -8
- package/types/openapi/models/FolderUpdateRequest.d.ts +3 -0
- package/types/openapi/models/Instance.d.ts +1 -0
- package/types/openapi/models/InstanceUpdate.d.ts +1 -0
- package/types/openapi/models/MetadataTemplate.d.ts +1 -0
- package/types/openapi/models/OfflineSyncFolder.d.ts +17 -0
- package/types/openapi/models/OperatorEnum.d.ts +64 -0
- package/types/openapi/models/PaginatedCanvasList.d.ts +8 -0
- package/types/openapi/models/PaginatedFileRevisionList.d.ts +8 -0
- package/types/openapi/models/PaginatedOfflineSyncFolderList.d.ts +8 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +5 -4
- package/types/openapi/models/PatchedFileRequest.d.ts +3 -0
- package/types/openapi/models/PatchedFileRevisionRequest.d.ts +3 -0
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +3 -0
- package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +3 -0
- package/types/openapi/models/Region.d.ts +1 -0
- package/types/openapi/models/SearchFile.d.ts +3 -0
- package/types/openapi/models/SharedLink.d.ts +6 -5
- package/types/openapi/models/SharedLinkCanvas.d.ts +11 -0
- package/types/openapi/models/SharedLinkCanvasRequest.d.ts +8 -0
- package/types/openapi/models/SharedLinkCreate.d.ts +6 -5
- package/types/openapi/models/{SharedLinkInstanceSerialzier.d.ts → SharedLinkInstance.d.ts} +1 -1
- package/types/openapi/models/SharedLinkInstanceRequest.d.ts +5 -0
- package/types/openapi/models/{SharedLinkOrganizationSerialzier.d.ts → SharedLinkOrganization.d.ts} +1 -1
- package/types/openapi/models/SharedLinkOrganizationRequest.d.ts +6 -0
- package/lib/apps/canvas-builder/util/tsUtils.d.ts +0 -3
- package/lib/composables/useDetailsView.d.ts +0 -19
- package/lib/types/templateActions.d.ts +0 -10
- package/lib/util/gesture.util.d.ts +0 -6
- package/types/openapi/models/AppsDBGlobalEntry.d.ts +0 -8
- package/types/openapi/models/AppsDBGlobalEntryRequest.d.ts +0 -3
- package/types/openapi/models/AppsDBUserEntry.d.ts +0 -9
- package/types/openapi/models/AppsDBUserEntryRequest.d.ts +0 -3
- package/types/openapi/models/CanvasSectionRetrieve.d.ts +0 -7
- package/types/openapi/models/CanvasSectionRetrieveRequest.d.ts +0 -5
- package/types/openapi/models/FileRequest.d.ts +0 -13
- package/types/openapi/models/InstanceStorageCredentials.d.ts +0 -6
- package/types/openapi/models/MiniAccount.d.ts +0 -4
- package/types/openapi/models/PSPDFKitAuthPayload.d.ts +0 -3
- package/types/openapi/models/PSPDFKitAuthPayloadRequest.d.ts +0 -3
- package/types/openapi/models/PSPDFKitToken.d.ts +0 -7
- package/types/openapi/models/PSPDFKitTokenRequest.d.ts +0 -3
- package/types/openapi/models/PaginatedCanvasListList.d.ts +0 -8
|
@@ -2,8 +2,10 @@ import { AccessTypeEnum } from './AccessTypeEnum';
|
|
|
2
2
|
import { CollaborationRoleEnum } from './CollaborationRoleEnum';
|
|
3
3
|
import { DownloadTypeEnum } from './DownloadTypeEnum';
|
|
4
4
|
import { FileContentTypeEnum } from './FileContentTypeEnum';
|
|
5
|
+
import { FilePermission } from './FilePermission';
|
|
5
6
|
import { FileStatusEnum } from './FileStatusEnum';
|
|
6
7
|
import { FileTypeEnum } from './FileTypeEnum';
|
|
8
|
+
import { FileVersion } from './FileVersion';
|
|
7
9
|
import { MiniSharedLink } from './MiniSharedLink';
|
|
8
10
|
import { MiniUser } from './MiniUser';
|
|
9
11
|
|
|
@@ -14,6 +16,7 @@ export type FileUpdate = {
|
|
|
14
16
|
readonly type: FileTypeEnum;
|
|
15
17
|
readonly size: number | null;
|
|
16
18
|
readonly status: FileStatusEnum;
|
|
19
|
+
readonly version: FileVersion;
|
|
17
20
|
readonly content_type: FileContentTypeEnum;
|
|
18
21
|
readonly content_extension: string | null;
|
|
19
22
|
readonly content_length: number | null;
|
|
@@ -25,7 +28,11 @@ export type FileUpdate = {
|
|
|
25
28
|
readonly zip_size: number | null;
|
|
26
29
|
readonly zip_url: string | null;
|
|
27
30
|
access_type?: AccessTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Deprecated: Please use the 'permissions' field instead. This field is maintained for backward compatibility and may be removed in future releases.
|
|
33
|
+
*/
|
|
28
34
|
readonly role: CollaborationRoleEnum;
|
|
35
|
+
permissions?: FilePermission;
|
|
29
36
|
readonly pspdfkit_server_url: string | null;
|
|
30
37
|
readonly pspdfkit_auth_payload: Record<string, any> | null;
|
|
31
38
|
metadata?: Record<string, any>;
|
|
@@ -36,6 +43,7 @@ export type FileUpdate = {
|
|
|
36
43
|
readonly instance_id: string;
|
|
37
44
|
folder_id?: string;
|
|
38
45
|
readonly shared_link: MiniSharedLink;
|
|
46
|
+
readonly owned_by: MiniUser;
|
|
39
47
|
readonly created_at: string;
|
|
40
48
|
readonly created_by: MiniUser;
|
|
41
49
|
readonly modified_at: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
2
|
import { DownloadTypeEnum } from './DownloadTypeEnum';
|
|
3
|
+
import { FilePermissionRequest } from './FilePermissionRequest';
|
|
3
4
|
|
|
4
5
|
export type FileUpdateRequest = {
|
|
5
6
|
name?: string;
|
|
@@ -9,9 +10,11 @@ export type FileUpdateRequest = {
|
|
|
9
10
|
thumbnail_upload_id?: string;
|
|
10
11
|
download_type?: DownloadTypeEnum;
|
|
11
12
|
access_type?: AccessTypeEnum;
|
|
13
|
+
permissions?: FilePermissionRequest;
|
|
12
14
|
metadata?: Record<string, any>;
|
|
13
15
|
app_metadata?: Record<string, any>;
|
|
14
16
|
tags?: Array<string>;
|
|
15
17
|
expires_at?: string | null;
|
|
16
18
|
folder_id?: string;
|
|
19
|
+
owned_by_id?: number | null;
|
|
17
20
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
|
+
import { FolderRule } from './FolderRule';
|
|
2
3
|
import { MiniUser } from './MiniUser';
|
|
3
4
|
|
|
4
5
|
export type Folder = {
|
|
5
6
|
readonly id: string;
|
|
6
7
|
name: string;
|
|
7
|
-
readonly
|
|
8
|
+
readonly content_type: string;
|
|
8
9
|
access_type?: AccessTypeEnum;
|
|
9
|
-
|
|
10
|
-
readonly
|
|
10
|
+
rules?: Array<FolderRule>;
|
|
11
|
+
readonly owned_by: MiniUser;
|
|
11
12
|
readonly created_at: string;
|
|
12
13
|
readonly created_by: MiniUser;
|
|
13
14
|
readonly modified_at: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MiniUser } from './MiniUser';
|
|
2
|
+
|
|
3
|
+
export type FolderCanvas = {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
thumbnail_url?: string | null;
|
|
7
|
+
readonly tags: Array<string>;
|
|
8
|
+
readonly created_by: MiniUser;
|
|
9
|
+
readonly owned_by: MiniUser;
|
|
10
|
+
readonly modified_at: string;
|
|
11
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
|
+
import { FolderCanvas } from './FolderCanvas';
|
|
2
3
|
import { FolderFile } from './FolderFile';
|
|
3
4
|
import { FolderFolder } from './FolderFolder';
|
|
5
|
+
import { FolderRule } from './FolderRule';
|
|
4
6
|
import { MiniUser } from './MiniUser';
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -14,16 +16,15 @@ import { MiniUser } from './MiniUser';
|
|
|
14
16
|
export type FolderCreate = {
|
|
15
17
|
id?: string;
|
|
16
18
|
name: string;
|
|
19
|
+
readonly content_type: string;
|
|
17
20
|
access_type?: AccessTypeEnum;
|
|
18
|
-
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly files_count: number;
|
|
22
|
-
readonly file_thumbnail_urls: Array<string>;
|
|
21
|
+
rules?: Array<FolderRule>;
|
|
22
|
+
readonly owned_by: MiniUser;
|
|
23
|
+
readonly path: Array<FolderFolder>;
|
|
23
24
|
readonly thumbnail_url: string | null;
|
|
24
25
|
readonly folders: Array<FolderFolder>;
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
26
|
+
readonly files: Array<FolderFile>;
|
|
27
|
+
readonly canvases: Array<FolderCanvas>;
|
|
27
28
|
readonly created_at: string;
|
|
28
29
|
readonly created_by: MiniUser;
|
|
29
30
|
readonly modified_at: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
|
+
import { FolderRuleRequest } from './FolderRuleRequest';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Serializer class for creating folder records.
|
|
@@ -11,8 +12,9 @@ import { AccessTypeEnum } from './AccessTypeEnum';
|
|
|
11
12
|
export type FolderCreateRequest = {
|
|
12
13
|
id?: string;
|
|
13
14
|
name: string;
|
|
14
|
-
instance_id: string;
|
|
15
15
|
access_type?: AccessTypeEnum;
|
|
16
|
-
|
|
16
|
+
rules?: Array<FolderRuleRequest>;
|
|
17
|
+
parent_folder_id: string;
|
|
17
18
|
thumbnail_id?: string;
|
|
19
|
+
owned_by_id?: number | null;
|
|
18
20
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FileContentTypeEnum } from './FileContentTypeEnum';
|
|
2
|
+
import { FilePermission } from './FilePermission';
|
|
2
3
|
import { FileStatusEnum } from './FileStatusEnum';
|
|
3
4
|
import { MiniUser } from './MiniUser';
|
|
4
5
|
|
|
@@ -9,6 +10,8 @@ export type FolderFile = {
|
|
|
9
10
|
readonly content_type: FileContentTypeEnum;
|
|
10
11
|
readonly thumbnail_url: string;
|
|
11
12
|
readonly tags: Array<string>;
|
|
13
|
+
permissions?: FilePermission;
|
|
12
14
|
readonly created_by: MiniUser;
|
|
15
|
+
readonly owned_by: MiniUser;
|
|
13
16
|
readonly modified_at: string;
|
|
14
17
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export type FolderFolder = {
|
|
2
2
|
readonly id: string;
|
|
3
3
|
name: string;
|
|
4
|
-
readonly
|
|
4
|
+
readonly thumbnail_url: string | null;
|
|
5
5
|
readonly folders_count: number;
|
|
6
|
+
readonly files_count: number;
|
|
7
|
+
readonly file_thumbnail_urls: Array<string>;
|
|
8
|
+
readonly canvases_count: number;
|
|
9
|
+
readonly canvas_thumbnail_urls: Array<string>;
|
|
6
10
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
|
+
import { FolderCanvas } from './FolderCanvas';
|
|
2
3
|
import { FolderFile } from './FolderFile';
|
|
3
4
|
import { FolderFolder } from './FolderFolder';
|
|
5
|
+
import { FolderRule } from './FolderRule';
|
|
4
6
|
import { MiniUser } from './MiniUser';
|
|
5
7
|
|
|
6
8
|
export type FolderRetrieve = {
|
|
7
9
|
readonly id: string;
|
|
8
10
|
name: string;
|
|
9
|
-
readonly
|
|
11
|
+
readonly content_type: string;
|
|
10
12
|
access_type?: AccessTypeEnum;
|
|
11
|
-
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly files_count: number;
|
|
15
|
-
readonly file_thumbnail_urls: Array<string>;
|
|
13
|
+
rules?: Array<FolderRule>;
|
|
14
|
+
readonly owned_by: MiniUser;
|
|
15
|
+
readonly path: Array<FolderFolder>;
|
|
16
16
|
readonly thumbnail_url: string | null;
|
|
17
17
|
readonly folders: Array<FolderFolder>;
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
18
|
+
readonly files: Array<FolderFile>;
|
|
19
|
+
readonly canvases: Array<FolderCanvas>;
|
|
20
20
|
readonly created_at: string;
|
|
21
21
|
readonly created_by: MiniUser;
|
|
22
22
|
readonly modified_at: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
|
+
import { FolderCanvas } from './FolderCanvas';
|
|
2
3
|
import { FolderFile } from './FolderFile';
|
|
3
4
|
import { FolderFolder } from './FolderFolder';
|
|
5
|
+
import { FolderRule } from './FolderRule';
|
|
4
6
|
import { MiniUser } from './MiniUser';
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -13,17 +15,15 @@ import { MiniUser } from './MiniUser';
|
|
|
13
15
|
export type FolderUpdate = {
|
|
14
16
|
readonly id: string;
|
|
15
17
|
name: string;
|
|
16
|
-
readonly
|
|
18
|
+
readonly content_type: string;
|
|
17
19
|
access_type?: AccessTypeEnum;
|
|
18
|
-
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly files_count: number;
|
|
22
|
-
readonly file_thumbnail_urls: Array<string>;
|
|
20
|
+
rules?: Array<FolderRule>;
|
|
21
|
+
readonly owned_by: MiniUser;
|
|
22
|
+
readonly path: Array<FolderFolder>;
|
|
23
23
|
readonly thumbnail_url: string | null;
|
|
24
24
|
readonly folders: Array<FolderFolder>;
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
25
|
+
readonly files: Array<FolderFile>;
|
|
26
|
+
readonly canvases: Array<FolderCanvas>;
|
|
27
27
|
readonly created_at: string;
|
|
28
28
|
readonly created_by: MiniUser;
|
|
29
29
|
readonly modified_at: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
|
+
import { FolderRuleRequest } from './FolderRuleRequest';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Serializer class for updating folder records.
|
|
@@ -10,6 +11,8 @@ import { AccessTypeEnum } from './AccessTypeEnum';
|
|
|
10
11
|
export type FolderUpdateRequest = {
|
|
11
12
|
name: string;
|
|
12
13
|
access_type?: AccessTypeEnum;
|
|
14
|
+
rules?: Array<FolderRuleRequest>;
|
|
13
15
|
parent_folder_id?: string;
|
|
14
16
|
thumbnail_id?: string;
|
|
17
|
+
owned_by_id?: number | null;
|
|
15
18
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
|
+
import { MiniUser } from './MiniUser';
|
|
3
|
+
|
|
4
|
+
export type OfflineSyncFolder = {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
readonly instance_id: string;
|
|
8
|
+
access_type?: AccessTypeEnum;
|
|
9
|
+
readonly materialized_path: string;
|
|
10
|
+
readonly depth: number;
|
|
11
|
+
readonly owned_by: MiniUser;
|
|
12
|
+
readonly thumbnail_id: string | null;
|
|
13
|
+
readonly created_at: string;
|
|
14
|
+
readonly created_by: MiniUser;
|
|
15
|
+
readonly modified_at: string;
|
|
16
|
+
readonly modified_by: MiniUser;
|
|
17
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* * `exact` - exact
|
|
3
|
+
* * `iexact` - iexact
|
|
4
|
+
* * `contains` - contains
|
|
5
|
+
* * `icontains` - icontains
|
|
6
|
+
* * `in` - in
|
|
7
|
+
* * `gt` - gt
|
|
8
|
+
* * `gte` - gte
|
|
9
|
+
* * `lt` - lt
|
|
10
|
+
* * `lte` - lte
|
|
11
|
+
* * `startswith` - startswith
|
|
12
|
+
* * `istartswith` - istartswith
|
|
13
|
+
* * `endswith` - endswith
|
|
14
|
+
* * `iendswith` - iendswith
|
|
15
|
+
* * `range` - range
|
|
16
|
+
* * `date` - date
|
|
17
|
+
* * `year` - year
|
|
18
|
+
* * `iso_year` - iso_year
|
|
19
|
+
* * `month` - month
|
|
20
|
+
* * `day` - day
|
|
21
|
+
* * `week` - week
|
|
22
|
+
* * `week_day` - week_day
|
|
23
|
+
* * `iso_week_day` - iso_week_day
|
|
24
|
+
* * `quarter` - quarter
|
|
25
|
+
* * `time` - time
|
|
26
|
+
* * `hour` - hour
|
|
27
|
+
* * `minute` - minute
|
|
28
|
+
* * `second` - second
|
|
29
|
+
* * `isnull` - isnull
|
|
30
|
+
* * `regex` - regex
|
|
31
|
+
* * `iregex` - iregex
|
|
32
|
+
*/
|
|
33
|
+
export declare enum OperatorEnum {
|
|
34
|
+
EXACT = "exact",
|
|
35
|
+
IEXACT = "iexact",
|
|
36
|
+
CONTAINS = "contains",
|
|
37
|
+
ICONTAINS = "icontains",
|
|
38
|
+
IN = "in",
|
|
39
|
+
GT = "gt",
|
|
40
|
+
GTE = "gte",
|
|
41
|
+
LT = "lt",
|
|
42
|
+
LTE = "lte",
|
|
43
|
+
STARTSWITH = "startswith",
|
|
44
|
+
ISTARTSWITH = "istartswith",
|
|
45
|
+
ENDSWITH = "endswith",
|
|
46
|
+
IENDSWITH = "iendswith",
|
|
47
|
+
RANGE = "range",
|
|
48
|
+
DATE = "date",
|
|
49
|
+
YEAR = "year",
|
|
50
|
+
ISO_YEAR = "iso_year",
|
|
51
|
+
MONTH = "month",
|
|
52
|
+
DAY = "day",
|
|
53
|
+
WEEK = "week",
|
|
54
|
+
WEEK_DAY = "week_day",
|
|
55
|
+
ISO_WEEK_DAY = "iso_week_day",
|
|
56
|
+
QUARTER = "quarter",
|
|
57
|
+
TIME = "time",
|
|
58
|
+
HOUR = "hour",
|
|
59
|
+
MINUTE = "minute",
|
|
60
|
+
SECOND = "second",
|
|
61
|
+
ISNULL = "isnull",
|
|
62
|
+
REGEX = "regex",
|
|
63
|
+
IREGEX = "iregex"
|
|
64
|
+
}
|
|
@@ -3,20 +3,21 @@ import { AccountRequest } from './AccountRequest';
|
|
|
3
3
|
|
|
4
4
|
export type PatchedCanvasUpdateRequest = {
|
|
5
5
|
name?: string;
|
|
6
|
+
content?: Record<string, any>;
|
|
7
|
+
context?: Record<string, any>;
|
|
8
|
+
theme?: Record<string, any> | null;
|
|
6
9
|
is_draft?: boolean;
|
|
7
10
|
is_template?: boolean;
|
|
8
11
|
is_section?: boolean;
|
|
9
12
|
is_editable?: boolean;
|
|
10
13
|
is_default?: boolean;
|
|
11
|
-
account?: AccountRequest | null;
|
|
12
14
|
metadata?: Record<string, any>;
|
|
13
15
|
tags?: Array<string>;
|
|
14
16
|
start_at?: string | null;
|
|
15
17
|
expires_at?: string | null;
|
|
16
18
|
access_type?: AccessTypeEnum;
|
|
17
19
|
thumbnail_url?: string | null;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
theme?: any;
|
|
20
|
+
account?: AccountRequest | null;
|
|
21
|
+
folder_id?: string | null;
|
|
21
22
|
owned_by_id?: number | null;
|
|
22
23
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
2
|
import { DownloadTypeEnum } from './DownloadTypeEnum';
|
|
3
|
+
import { FilePermissionRequest } from './FilePermissionRequest';
|
|
3
4
|
|
|
4
5
|
export type PatchedFileRequest = {
|
|
5
6
|
name?: string;
|
|
6
7
|
download_type?: DownloadTypeEnum;
|
|
7
8
|
access_type?: AccessTypeEnum;
|
|
9
|
+
permissions?: FilePermissionRequest;
|
|
8
10
|
metadata?: Record<string, any>;
|
|
9
11
|
app_metadata?: Record<string, any>;
|
|
10
12
|
tags?: Array<string>;
|
|
11
13
|
expires_at?: string | null;
|
|
12
14
|
folder_id?: string;
|
|
15
|
+
owned_by_id?: number | null;
|
|
13
16
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
2
|
import { DownloadTypeEnum } from './DownloadTypeEnum';
|
|
3
|
+
import { FilePermissionRequest } from './FilePermissionRequest';
|
|
3
4
|
|
|
4
5
|
export type PatchedFileUpdateRequest = {
|
|
5
6
|
name?: string;
|
|
@@ -9,9 +10,11 @@ export type PatchedFileUpdateRequest = {
|
|
|
9
10
|
thumbnail_upload_id?: string;
|
|
10
11
|
download_type?: DownloadTypeEnum;
|
|
11
12
|
access_type?: AccessTypeEnum;
|
|
13
|
+
permissions?: FilePermissionRequest;
|
|
12
14
|
metadata?: Record<string, any>;
|
|
13
15
|
app_metadata?: Record<string, any>;
|
|
14
16
|
tags?: Array<string>;
|
|
15
17
|
expires_at?: string | null;
|
|
16
18
|
folder_id?: string;
|
|
19
|
+
owned_by_id?: number | null;
|
|
17
20
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
|
+
import { FolderRuleRequest } from './FolderRuleRequest';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Serializer class for updating folder records.
|
|
@@ -10,6 +11,8 @@ import { AccessTypeEnum } from './AccessTypeEnum';
|
|
|
10
11
|
export type PatchedFolderUpdateRequest = {
|
|
11
12
|
name?: string;
|
|
12
13
|
access_type?: AccessTypeEnum;
|
|
14
|
+
rules?: Array<FolderRuleRequest>;
|
|
13
15
|
parent_folder_id?: string;
|
|
14
16
|
thumbnail_id?: string;
|
|
17
|
+
owned_by_id?: number | null;
|
|
15
18
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SharedLinkCanvas } from './SharedLinkCanvas';
|
|
2
|
+
import { SharedLinkInstance } from './SharedLinkInstance';
|
|
3
|
+
import { SharedLinkOrganization } from './SharedLinkOrganization';
|
|
3
4
|
|
|
4
5
|
export type SharedLink = {
|
|
5
6
|
readonly id: string;
|
|
6
7
|
readonly type: string;
|
|
7
8
|
is_snapshot?: boolean;
|
|
8
9
|
readonly file: Record<string, any> | null;
|
|
9
|
-
readonly canvas:
|
|
10
|
-
readonly instance:
|
|
11
|
-
readonly organization:
|
|
10
|
+
readonly canvas: SharedLinkCanvas;
|
|
11
|
+
readonly instance: SharedLinkInstance;
|
|
12
|
+
readonly organization: SharedLinkOrganization;
|
|
12
13
|
readonly status: string;
|
|
13
14
|
readonly url: string;
|
|
14
15
|
short_url?: string | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CanvasSection } from './CanvasSection';
|
|
2
|
+
|
|
3
|
+
export type SharedLinkCanvas = {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
content?: Record<string, any>;
|
|
7
|
+
context?: Record<string, any>;
|
|
8
|
+
theme?: Record<string, any> | null;
|
|
9
|
+
thumbnail_url?: string | null;
|
|
10
|
+
readonly sections: Array<CanvasSection>;
|
|
11
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SharedLinkCanvas } from './SharedLinkCanvas';
|
|
2
|
+
import { SharedLinkInstance } from './SharedLinkInstance';
|
|
3
|
+
import { SharedLinkOrganization } from './SharedLinkOrganization';
|
|
3
4
|
|
|
4
5
|
export type SharedLinkCreate = {
|
|
5
6
|
readonly id: string;
|
|
6
7
|
readonly type: string;
|
|
7
8
|
is_snapshot?: boolean;
|
|
8
9
|
readonly file: Record<string, any> | null;
|
|
9
|
-
readonly canvas:
|
|
10
|
-
readonly instance:
|
|
11
|
-
readonly organization:
|
|
10
|
+
readonly canvas: SharedLinkCanvas;
|
|
11
|
+
readonly instance: SharedLinkInstance;
|
|
12
|
+
readonly organization: SharedLinkOrganization;
|
|
12
13
|
readonly status: string;
|
|
13
14
|
readonly url: string;
|
|
14
15
|
short_url?: string | null;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import { NavigationFailure } from 'vue-router';
|
|
3
|
-
import * as Waypoint from 'vue-waypoint';
|
|
4
|
-
export default function <T extends string>(sectionIdList: T[]): {
|
|
5
|
-
onScrollToWaypoint: ({ el, going, direction, }: {
|
|
6
|
-
el: Element;
|
|
7
|
-
going: Waypoint.Going;
|
|
8
|
-
direction: Waypoint.Direction;
|
|
9
|
-
}) => void;
|
|
10
|
-
onClose: (sectionId: T) => void;
|
|
11
|
-
onClickMenu: (sectionId: T) => void;
|
|
12
|
-
selectedSectionId: Ref<string>;
|
|
13
|
-
sectionsEditStates: import('vue').Reactive<Record<T, boolean>>;
|
|
14
|
-
routerGuard: (guard: ComputedRef<boolean>, goBack: () => Promise<void | NavigationFailure | undefined>) => void;
|
|
15
|
-
waypointOptions: {
|
|
16
|
-
threshold: number;
|
|
17
|
-
};
|
|
18
|
-
MENU_WIDTH: string;
|
|
19
|
-
};
|