@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.
Files changed (177) hide show
  1. package/js-api.esm.js +274 -92
  2. package/js-api.esm.js.map +1 -1
  3. package/js-api.umd.min.js +9 -9
  4. package/js-api.umd.min.js.map +1 -1
  5. package/lib/api/canvases/canvases.queries.d.ts +5 -5
  6. package/lib/apps/browser/stores/api.d.ts +215 -84
  7. package/lib/apps/browser/stores/app.d.ts +7 -26
  8. package/lib/apps/browser/stores/upload.d.ts +34 -24
  9. package/lib/apps/browser/util/file.d.ts +2 -2
  10. package/lib/apps/canvas-builder/composables/useCanvas.d.ts +550 -460
  11. package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +86 -74
  12. package/lib/apps/canvas-builder/composables/useCanvasHooks.d.ts +4 -4
  13. package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +3 -3
  14. package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +3 -3
  15. package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +24 -17
  16. package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -2
  17. package/lib/apps/canvas-builder/composables/useCollapsibles.d.ts +3 -3
  18. package/lib/apps/canvas-builder/composables/useComponentPermissions.d.ts +2 -2
  19. package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +6 -4
  20. package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +4 -1
  21. package/lib/apps/canvas-builder/composables/useRecommendations.d.ts +4 -4
  22. package/lib/apps/canvas-builder/composables/useSectionPopularity.d.ts +2 -2
  23. package/lib/apps/canvas-builder/types/canvas.d.ts +19 -18
  24. package/lib/apps/canvas-builder/types/recommendations.types.d.ts +3 -3
  25. package/lib/apps/canvas-builder/util/canvas.util.d.ts +5 -4
  26. package/lib/apps/content-selector/appTypes.d.ts +1 -0
  27. package/lib/apps/content-selector/stores/app.d.ts +8 -1
  28. package/lib/components/CFileViewer/CFileViewer.use.d.ts +2 -4
  29. package/lib/components/CFileViewer/CFileViewerFullScreen.use.d.ts +1 -1
  30. package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +5 -5
  31. package/lib/components/filters/filter.util.d.ts +1 -1
  32. package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +2 -2
  33. package/lib/composables/instanceTagsActions.use.d.ts +14 -0
  34. package/lib/composables/recentFiles.use.d.ts +1 -1
  35. package/lib/composables/suggestedTags.use.d.ts +3 -0
  36. package/lib/composables/tableColumnsSettings.use.d.ts +25 -0
  37. package/lib/composables/useCanvasOverlay.d.ts +20 -0
  38. package/lib/composables/useConfirmation.d.ts +1 -0
  39. package/lib/composables/useElementHeightResize.d.ts +5 -0
  40. package/lib/composables/useFiles.d.ts +11 -0
  41. package/lib/constants/pitcherSettings.const.d.ts +4 -0
  42. package/lib/main.lib.d.ts +27 -20
  43. package/lib/sdk/api/HighLevelApi.d.ts +106 -12
  44. package/lib/sdk/api/modules/admin/canvas.admin.d.ts +31 -15
  45. package/lib/sdk/api/modules/admin/env.admin.d.ts +3 -2
  46. package/lib/sdk/api/modules/admin/files.admin.d.ts +43 -4
  47. package/lib/sdk/api/modules/admin/index.d.ts +52 -5
  48. package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +1 -2
  49. package/lib/sdk/api/modules/admin/types.admin.d.ts +117 -3
  50. package/lib/sdk/api/modules/canvas.d.ts +12 -14
  51. package/lib/sdk/api/modules/dsr/env.dsr.d.ts +4 -3
  52. package/lib/sdk/api/modules/dsr/index.d.ts +14 -3
  53. package/lib/sdk/api/modules/dsr/loading.dsr.d.ts +6 -0
  54. package/lib/sdk/api/modules/env.d.ts +16 -0
  55. package/lib/sdk/api/modules/favorites.d.ts +9 -0
  56. package/lib/sdk/api/modules/feedback.d.ts +3 -0
  57. package/lib/sdk/api/modules/files.d.ts +3 -3
  58. package/lib/sdk/api/modules/folders.d.ts +29 -0
  59. package/lib/sdk/api/modules/open.d.ts +6 -0
  60. package/lib/sdk/api/modules/sync.d.ts +1 -2
  61. package/lib/sdk/api/modules/ui/app-errors.ui.d.ts +12 -0
  62. package/lib/sdk/api/modules/ui/canvas.ui.d.ts +75 -2
  63. package/lib/sdk/api/modules/ui/content.ui.d.ts +50 -0
  64. package/lib/sdk/api/modules/ui/index.d.ts +149 -13
  65. package/lib/sdk/api/modules/ui/loading.ui.d.ts +15 -0
  66. package/lib/sdk/api/modules/ui/location.ui.d.ts +17 -0
  67. package/lib/sdk/api/modules/ui/post-call.ui.d.ts +25 -0
  68. package/lib/sdk/api/modules/ui/types.ui.d.ts +69 -6
  69. package/lib/sdk/api/modules/users.d.ts +4 -0
  70. package/lib/sdk/interfaces.d.ts +119 -2
  71. package/lib/sdk/main.d.ts +275 -141
  72. package/lib/sdk/payload.types.d.ts +134 -2
  73. package/lib/theme/light.d.ts +12 -0
  74. package/lib/types/app.d.ts +11 -0
  75. package/lib/types/call.d.ts +2 -2
  76. package/lib/types/files.d.ts +27 -1
  77. package/lib/types/filter.d.ts +5 -0
  78. package/lib/types/instanceSettings.types.d.ts +8 -2
  79. package/lib/types/launchDarkly.types.d.ts +4 -4
  80. package/lib/types/organizationSettings.types.d.ts +4 -0
  81. package/lib/types/recentFiles.types.d.ts +4 -1
  82. package/lib/types/users.d.ts +13 -0
  83. package/lib/util/fullscreen.util.d.ts +1 -1
  84. package/lib/util/string.d.ts +1 -0
  85. package/package.json +1 -1
  86. package/types/openapi/index.d.ts +23 -17
  87. package/types/openapi/models/AccessTypeEnum.d.ts +3 -1
  88. package/types/openapi/models/App.d.ts +1 -0
  89. package/types/openapi/models/AppRelease.d.ts +1 -0
  90. package/types/openapi/models/AppsDBEntry.d.ts +4 -0
  91. package/types/openapi/models/AppsDBEntryRequest.d.ts +3 -0
  92. package/types/openapi/models/Canvas.d.ts +10 -15
  93. package/types/openapi/models/CanvasCreate.d.ts +14 -12
  94. package/types/openapi/models/CanvasCreateRequest.d.ts +6 -5
  95. package/types/openapi/models/CanvasRecommendedFile.d.ts +6 -0
  96. package/types/openapi/models/CanvasRetrieve.d.ts +15 -13
  97. package/types/openapi/models/CanvasSection.d.ts +5 -2
  98. package/types/openapi/models/CanvasUpdate.d.ts +14 -12
  99. package/types/openapi/models/CanvasUpdateRequest.d.ts +5 -4
  100. package/types/openapi/models/CollaborationRoleEnum.d.ts +0 -4
  101. package/types/openapi/models/ContentDistributionGroupCreate.d.ts +1 -0
  102. package/types/openapi/models/DeletedApp.d.ts +1 -0
  103. package/types/openapi/models/{CanvasList.d.ts → DeletedCanvas.d.ts} +13 -9
  104. package/types/openapi/models/DeletedContentDistributionGroup.d.ts +1 -0
  105. package/types/openapi/models/DeletedEnvironment.d.ts +1 -0
  106. package/types/openapi/models/DeletedFavorite.d.ts +1 -0
  107. package/types/openapi/models/DeletedFile.d.ts +6 -0
  108. package/types/openapi/models/DeletedFolder.d.ts +4 -3
  109. package/types/openapi/models/DeletedInstance.d.ts +1 -0
  110. package/types/openapi/models/DeletedInstanceAssignmentGroup.d.ts +1 -0
  111. package/types/openapi/models/DeletedMetadataTemplate.d.ts +1 -0
  112. package/types/openapi/models/DeletedRegion.d.ts +1 -0
  113. package/types/openapi/models/Environment.d.ts +1 -0
  114. package/types/openapi/models/Favorite.d.ts +1 -0
  115. package/types/openapi/models/File.d.ts +6 -0
  116. package/types/openapi/models/FileCreate.d.ts +8 -0
  117. package/types/openapi/models/FileCreateRequest.d.ts +3 -0
  118. package/types/openapi/models/FilePermission.d.ts +4 -0
  119. package/types/openapi/models/FilePermissionRequest.d.ts +4 -0
  120. package/types/openapi/models/FileRetrieve.d.ts +8 -0
  121. package/types/openapi/models/FileRevision.d.ts +8 -0
  122. package/types/openapi/models/FileRevisionRequest.d.ts +3 -0
  123. package/types/openapi/models/FileUpdate.d.ts +8 -0
  124. package/types/openapi/models/FileUpdateRequest.d.ts +3 -0
  125. package/types/openapi/models/FileVersion.d.ts +5 -0
  126. package/types/openapi/models/Folder.d.ts +4 -3
  127. package/types/openapi/models/FolderCanvas.d.ts +11 -0
  128. package/types/openapi/models/FolderCreate.d.ts +8 -7
  129. package/types/openapi/models/FolderCreateRequest.d.ts +4 -2
  130. package/types/openapi/models/FolderFile.d.ts +3 -0
  131. package/types/openapi/models/FolderFolder.d.ts +5 -1
  132. package/types/openapi/models/FolderRetrieve.d.ts +8 -8
  133. package/types/openapi/models/FolderRule.d.ts +7 -0
  134. package/types/openapi/models/FolderRuleRequest.d.ts +7 -0
  135. package/types/openapi/models/FolderUpdate.d.ts +8 -8
  136. package/types/openapi/models/FolderUpdateRequest.d.ts +3 -0
  137. package/types/openapi/models/Instance.d.ts +1 -0
  138. package/types/openapi/models/InstanceUpdate.d.ts +1 -0
  139. package/types/openapi/models/MetadataTemplate.d.ts +1 -0
  140. package/types/openapi/models/OfflineSyncFolder.d.ts +17 -0
  141. package/types/openapi/models/OperatorEnum.d.ts +64 -0
  142. package/types/openapi/models/PaginatedCanvasList.d.ts +8 -0
  143. package/types/openapi/models/PaginatedFileRevisionList.d.ts +8 -0
  144. package/types/openapi/models/PaginatedOfflineSyncFolderList.d.ts +8 -0
  145. package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +5 -4
  146. package/types/openapi/models/PatchedFileRequest.d.ts +3 -0
  147. package/types/openapi/models/PatchedFileRevisionRequest.d.ts +3 -0
  148. package/types/openapi/models/PatchedFileUpdateRequest.d.ts +3 -0
  149. package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +3 -0
  150. package/types/openapi/models/Region.d.ts +1 -0
  151. package/types/openapi/models/SearchFile.d.ts +3 -0
  152. package/types/openapi/models/SharedLink.d.ts +6 -5
  153. package/types/openapi/models/SharedLinkCanvas.d.ts +11 -0
  154. package/types/openapi/models/SharedLinkCanvasRequest.d.ts +8 -0
  155. package/types/openapi/models/SharedLinkCreate.d.ts +6 -5
  156. package/types/openapi/models/{SharedLinkInstanceSerialzier.d.ts → SharedLinkInstance.d.ts} +1 -1
  157. package/types/openapi/models/SharedLinkInstanceRequest.d.ts +5 -0
  158. package/types/openapi/models/{SharedLinkOrganizationSerialzier.d.ts → SharedLinkOrganization.d.ts} +1 -1
  159. package/types/openapi/models/SharedLinkOrganizationRequest.d.ts +6 -0
  160. package/lib/apps/canvas-builder/util/tsUtils.d.ts +0 -3
  161. package/lib/composables/useDetailsView.d.ts +0 -19
  162. package/lib/types/templateActions.d.ts +0 -10
  163. package/lib/util/gesture.util.d.ts +0 -6
  164. package/types/openapi/models/AppsDBGlobalEntry.d.ts +0 -8
  165. package/types/openapi/models/AppsDBGlobalEntryRequest.d.ts +0 -3
  166. package/types/openapi/models/AppsDBUserEntry.d.ts +0 -9
  167. package/types/openapi/models/AppsDBUserEntryRequest.d.ts +0 -3
  168. package/types/openapi/models/CanvasSectionRetrieve.d.ts +0 -7
  169. package/types/openapi/models/CanvasSectionRetrieveRequest.d.ts +0 -5
  170. package/types/openapi/models/FileRequest.d.ts +0 -13
  171. package/types/openapi/models/InstanceStorageCredentials.d.ts +0 -6
  172. package/types/openapi/models/MiniAccount.d.ts +0 -4
  173. package/types/openapi/models/PSPDFKitAuthPayload.d.ts +0 -3
  174. package/types/openapi/models/PSPDFKitAuthPayloadRequest.d.ts +0 -3
  175. package/types/openapi/models/PSPDFKitToken.d.ts +0 -7
  176. package/types/openapi/models/PSPDFKitTokenRequest.d.ts +0 -3
  177. 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
  };
@@ -0,0 +1,5 @@
1
+ export type FileVersion = {
2
+ readonly id: string;
3
+ readonly comment: string;
4
+ readonly created_at: string;
5
+ };
@@ -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 instance_id: string;
8
+ readonly content_type: string;
8
9
  access_type?: AccessTypeEnum;
9
- readonly materialized_path: string;
10
- readonly depth: number;
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
- readonly materialized_path: string;
19
- readonly depth: number;
20
- readonly files: Array<FolderFile>;
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 folders_count: number;
26
- readonly path: Array<FolderFolder>;
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
- parent_folder_id?: string;
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 files_count: number;
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 instance_id: string;
11
+ readonly content_type: string;
10
12
  access_type?: AccessTypeEnum;
11
- readonly materialized_path: string;
12
- readonly depth: number;
13
- readonly files: Array<FolderFile>;
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 folders_count: number;
19
- readonly path: Array<FolderFolder>;
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;
@@ -0,0 +1,7 @@
1
+ import { OperatorEnum } from './OperatorEnum';
2
+
3
+ export type FolderRule = {
4
+ field: string;
5
+ operator: OperatorEnum;
6
+ value: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { OperatorEnum } from './OperatorEnum';
2
+
3
+ export type FolderRuleRequest = {
4
+ field: string;
5
+ operator: OperatorEnum;
6
+ value: string;
7
+ };
@@ -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 instance_id: string;
18
+ readonly content_type: string;
17
19
  access_type?: AccessTypeEnum;
18
- readonly materialized_path: string;
19
- readonly depth: number;
20
- readonly files: Array<FolderFile>;
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 folders_count: number;
26
- readonly path: Array<FolderFolder>;
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
  };
@@ -19,4 +19,5 @@ export type Instance = {
19
19
  readonly created_by: MiniUser;
20
20
  readonly modified_at: string;
21
21
  readonly modified_by: MiniUser;
22
+ readonly owned_by: MiniUser;
22
23
  };
@@ -15,4 +15,5 @@ export type InstanceUpdate = {
15
15
  readonly created_by: MiniUser;
16
16
  readonly modified_at: string;
17
17
  readonly modified_by: MiniUser;
18
+ readonly owned_by: MiniUser;
18
19
  };
@@ -12,4 +12,5 @@ export type MetadataTemplate = {
12
12
  readonly created_by: MiniUser;
13
13
  readonly modified_at: string;
14
14
  readonly modified_by: MiniUser;
15
+ readonly owned_by: MiniUser;
15
16
  };
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ import { Canvas } from './Canvas';
2
+
3
+ export type PaginatedCanvasList = {
4
+ count?: number;
5
+ next?: string | null;
6
+ previous?: string | null;
7
+ results?: Array<Canvas>;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { FileRevision } from './FileRevision';
2
+
3
+ export type PaginatedFileRevisionList = {
4
+ count?: number;
5
+ next?: string | null;
6
+ previous?: string | null;
7
+ results?: Array<FileRevision>;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { OfflineSyncFolder } from './OfflineSyncFolder';
2
+
3
+ export type PaginatedOfflineSyncFolderList = {
4
+ count?: number;
5
+ next?: string | null;
6
+ previous?: string | null;
7
+ results?: Array<OfflineSyncFolder>;
8
+ };
@@ -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
- content?: any;
19
- context?: any;
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
  };
@@ -0,0 +1,3 @@
1
+ export type PatchedFileRevisionRequest = {
2
+ name?: string;
3
+ };
@@ -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
  };
@@ -7,4 +7,5 @@ export type Region = {
7
7
  readonly created_by: MiniUser;
8
8
  readonly modified_at: string;
9
9
  readonly modified_by: MiniUser;
10
+ readonly owned_by: MiniUser;
10
11
  };
@@ -1,6 +1,9 @@
1
+ import { MiniFolder } from './MiniFolder';
2
+
1
3
  export type SearchFile = {
2
4
  readonly id: string;
3
5
  name: string;
4
6
  readonly headline: string;
5
7
  readonly picture_url: string;
8
+ readonly folder: MiniFolder;
6
9
  };
@@ -1,14 +1,15 @@
1
- import { SharedLinkInstanceSerialzier } from './SharedLinkInstanceSerialzier';
2
- import { SharedLinkOrganizationSerialzier } from './SharedLinkOrganizationSerialzier';
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: Record<string, any> | null;
10
- readonly instance: SharedLinkInstanceSerialzier;
11
- readonly organization: SharedLinkOrganizationSerialzier;
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
+ };
@@ -0,0 +1,8 @@
1
+ export type SharedLinkCanvasRequest = {
2
+ name: string;
3
+ content?: Record<string, any>;
4
+ context?: Record<string, any>;
5
+ theme?: Record<string, any> | null;
6
+ thumbnail_url?: string | null;
7
+ owned_by_id?: number | null;
8
+ };
@@ -1,14 +1,15 @@
1
- import { SharedLinkInstanceSerialzier } from './SharedLinkInstanceSerialzier';
2
- import { SharedLinkOrganizationSerialzier } from './SharedLinkOrganizationSerialzier';
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: Record<string, any> | null;
10
- readonly instance: SharedLinkInstanceSerialzier;
11
- readonly organization: SharedLinkOrganizationSerialzier;
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,4 +1,4 @@
1
- export type SharedLinkInstanceSerialzier = {
1
+ export type SharedLinkInstance = {
2
2
  readonly id: string;
3
3
  name: string;
4
4
  logo?: string | null;
@@ -0,0 +1,5 @@
1
+ export type SharedLinkInstanceRequest = {
2
+ name: string;
3
+ logo?: Blob | null;
4
+ color?: string | null;
5
+ };
@@ -1,4 +1,4 @@
1
- export type SharedLinkOrganizationSerialzier = {
1
+ export type SharedLinkOrganization = {
2
2
  id: string;
3
3
  name: string;
4
4
  display_name?: string | null;
@@ -0,0 +1,6 @@
1
+ export type SharedLinkOrganizationRequest = {
2
+ id: string;
3
+ name: string;
4
+ display_name?: string | null;
5
+ metadata?: any;
6
+ };
@@ -1,3 +0,0 @@
1
- export type WithRequiredProperty<Type, Key extends keyof Type> = Type & {
2
- [Property in Key]-?: Type[Property];
3
- };
@@ -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
- };
@@ -1,10 +0,0 @@
1
- export declare enum TemplateActions {
2
- Copy = "duplicate",
3
- Share = "share",
4
- CreateTemplate = "createTemplate",
5
- Delete = "delete",
6
- Revisions = "revisions",
7
- Insights = "insights",
8
- Edit = "edit",
9
- Preview = "preview"
10
- }
@@ -1,6 +0,0 @@
1
- export declare function setupPinchGesture({ target, onPinchIn, onPinchOut, touches, }: {
2
- target: HTMLElement | Window;
3
- onPinchIn: () => void;
4
- onPinchOut: () => void;
5
- touches?: number;
6
- }): () => void;