@pitcher/js-api 1.21.0-beta.13 → 1.21.0-beta.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.
- package/js-api.esm.js +111 -6
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +10 -10
- package/js-api.umd.min.js.map +1 -1
- package/lib/apps/browser/stores/api.d.ts +164 -104
- package/lib/apps/browser/stores/app.d.ts +6 -1
- package/lib/apps/browser/stores/upload.d.ts +30 -30
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +508 -421
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +86 -74
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +18 -20
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +5 -5
- package/lib/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +4 -1
- package/lib/apps/canvas-builder/types/canvas.d.ts +1 -0
- package/lib/apps/canvas-builder/util/canvas.util.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/filters/filter.util.d.ts +1 -1
- 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 +26 -20
- package/lib/sdk/api/HighLevelApi.d.ts +95 -2
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +24 -8
- package/lib/sdk/api/modules/admin/env.admin.d.ts +3 -2
- package/lib/sdk/api/modules/admin/files.admin.d.ts +10 -10
- package/lib/sdk/api/modules/admin/index.d.ts +20 -0
- package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +1 -2
- package/lib/sdk/api/modules/admin/types.admin.d.ts +94 -0
- package/lib/sdk/api/modules/canvas.d.ts +2 -4
- package/lib/sdk/api/modules/dsr/env.dsr.d.ts +4 -3
- package/lib/sdk/api/modules/dsr/index.d.ts +7 -0
- 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 +1 -2
- 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 +73 -0
- package/lib/sdk/api/modules/ui/content.ui.d.ts +36 -3
- package/lib/sdk/api/modules/ui/index.d.ts +114 -0
- 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 +60 -0
- package/lib/sdk/api/modules/users.d.ts +4 -0
- package/lib/sdk/interfaces.d.ts +117 -0
- package/lib/sdk/main.d.ts +102 -6
- package/lib/sdk/payload.types.d.ts +132 -0
- package/lib/types/app.d.ts +11 -0
- 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 +4 -5
- package/types/openapi/models/AccessTypeEnum.d.ts +3 -1
- package/types/openapi/models/Canvas.d.ts +1 -0
- package/types/openapi/models/CanvasCreate.d.ts +1 -0
- package/types/openapi/models/CanvasCreateRequest.d.ts +1 -0
- package/types/openapi/models/CanvasRetrieve.d.ts +1 -0
- package/types/openapi/models/CanvasUpdate.d.ts +1 -0
- package/types/openapi/models/CanvasUpdateRequest.d.ts +1 -0
- package/types/openapi/models/DeletedCanvas.d.ts +1 -0
- package/types/openapi/models/DeletedFolder.d.ts +3 -3
- package/types/openapi/models/Folder.d.ts +3 -3
- package/types/openapi/models/FolderCanvas.d.ts +11 -0
- package/types/openapi/models/FolderCreate.d.ts +7 -7
- package/types/openapi/models/FolderCreateRequest.d.ts +3 -2
- package/types/openapi/models/FolderFile.d.ts +2 -0
- package/types/openapi/models/FolderFolder.d.ts +4 -2
- package/types/openapi/models/FolderRetrieve.d.ts +7 -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 +7 -8
- package/types/openapi/models/FolderUpdateRequest.d.ts +2 -0
- package/types/openapi/models/OperatorEnum.d.ts +64 -0
- package/types/openapi/models/PatchedCanvasUpdateRequest.d.ts +1 -0
- package/types/openapi/models/PatchedFolderUpdateRequest.d.ts +2 -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/FileRequest.d.ts +0 -16
- 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
|
@@ -89,8 +89,8 @@ declare const _default: () => {
|
|
|
89
89
|
readonly favoritesDeleter: FavoritesDeleter | null;
|
|
90
90
|
readonly favoritesSetter: FavoritesSetter | null;
|
|
91
91
|
readonly recentFilesFetcher: RecentFilesFetcher | null;
|
|
92
|
-
readonly selectDeviceFile?: SelectDeviceFile | null;
|
|
93
|
-
readonly metadataTemplateFetcher?: MetadataTemplateFetcher | null;
|
|
92
|
+
readonly selectDeviceFile?: (SelectDeviceFile | null) | undefined;
|
|
93
|
+
readonly metadataTemplateFetcher?: (MetadataTemplateFetcher | null) | undefined;
|
|
94
94
|
readonly itemsMover: ItemsMover | null;
|
|
95
95
|
readonly convertingFileIdsTimeout: {
|
|
96
96
|
readonly ref: () => NodeJS.Timeout;
|
|
@@ -113,14 +113,16 @@ declare const _default: () => {
|
|
|
113
113
|
readonly folders: readonly {
|
|
114
114
|
readonly id: string;
|
|
115
115
|
readonly name: string;
|
|
116
|
-
readonly files_count: number;
|
|
117
|
-
readonly folders_count: number;
|
|
118
116
|
readonly thumbnail_url: string | null;
|
|
117
|
+
readonly folders_count: number;
|
|
118
|
+
readonly files_count: number;
|
|
119
119
|
readonly file_thumbnail_urls: readonly string[];
|
|
120
|
+
readonly canvases_count: number;
|
|
121
|
+
readonly canvas_thumbnail_urls: readonly string[];
|
|
120
122
|
}[];
|
|
121
123
|
readonly files: readonly {
|
|
122
124
|
readonly status: FileStatusEnum;
|
|
123
|
-
readonly name?: string;
|
|
125
|
+
readonly name?: string | undefined;
|
|
124
126
|
readonly id: string;
|
|
125
127
|
readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
|
|
126
128
|
readonly thumbnail_url: string | null;
|
|
@@ -128,21 +130,22 @@ declare const _default: () => {
|
|
|
128
130
|
readonly created_by: {
|
|
129
131
|
readonly id: number;
|
|
130
132
|
readonly name: string;
|
|
131
|
-
readonly email?: string;
|
|
133
|
+
readonly email?: string | undefined;
|
|
132
134
|
};
|
|
133
135
|
readonly modified_at: string;
|
|
134
136
|
}[];
|
|
135
137
|
readonly recent: readonly {
|
|
136
|
-
readonly name?: string;
|
|
138
|
+
readonly name?: string | undefined;
|
|
137
139
|
readonly id: string;
|
|
138
140
|
readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
|
|
139
|
-
readonly thumbnail_url: string | null;
|
|
140
141
|
readonly instance_id: string;
|
|
142
|
+
readonly tags?: Readonly<File["tags"]>;
|
|
143
|
+
readonly thumbnail_url?: (string | null) | undefined;
|
|
141
144
|
}[];
|
|
142
145
|
readonly selectedFile: {
|
|
143
146
|
readonly id: string;
|
|
144
147
|
readonly global_id: string;
|
|
145
|
-
readonly name?: string;
|
|
148
|
+
readonly name?: string | undefined;
|
|
146
149
|
readonly type: import('../../../../types/openapi').FileTypeEnum;
|
|
147
150
|
readonly size: number | null;
|
|
148
151
|
readonly status: FileStatusEnum;
|
|
@@ -158,14 +161,14 @@ declare const _default: () => {
|
|
|
158
161
|
readonly content_thumbnails: readonly string[];
|
|
159
162
|
readonly original_extension: string | null;
|
|
160
163
|
readonly thumbnail_url: string | null;
|
|
161
|
-
readonly download_type?: import('../../../../types/openapi').DownloadTypeEnum;
|
|
164
|
+
readonly download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
|
|
162
165
|
readonly zip_size: number | null;
|
|
163
166
|
readonly zip_url: string | null;
|
|
164
|
-
readonly access_type?: import('../../../../types/openapi').AccessTypeEnum;
|
|
167
|
+
readonly access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
165
168
|
readonly role: import('../../../../types/openapi').CollaborationRoleEnum;
|
|
166
169
|
readonly permissions?: {
|
|
167
|
-
readonly can_download?: boolean;
|
|
168
|
-
readonly can_share?: boolean;
|
|
170
|
+
readonly can_download?: boolean | undefined;
|
|
171
|
+
readonly can_share?: boolean | undefined;
|
|
169
172
|
} | undefined;
|
|
170
173
|
readonly pspdfkit_server_url: string | null;
|
|
171
174
|
readonly pspdfkit_auth_payload: {
|
|
@@ -179,43 +182,67 @@ declare const _default: () => {
|
|
|
179
182
|
} | undefined;
|
|
180
183
|
readonly tags?: readonly string[] | undefined;
|
|
181
184
|
readonly published_at: string | null;
|
|
182
|
-
readonly expires_at?: string | null;
|
|
185
|
+
readonly expires_at?: (string | null) | undefined;
|
|
183
186
|
readonly instance_id: string;
|
|
184
|
-
readonly folder_id?: string;
|
|
187
|
+
readonly folder_id?: string | undefined;
|
|
185
188
|
readonly shared_link: {
|
|
186
189
|
readonly url: string;
|
|
187
|
-
readonly short_url?: string | null;
|
|
190
|
+
readonly short_url?: (string | null) | undefined;
|
|
188
191
|
};
|
|
189
192
|
readonly owned_by: {
|
|
190
193
|
readonly id: number;
|
|
191
194
|
readonly name: string;
|
|
192
|
-
readonly email?: string;
|
|
195
|
+
readonly email?: string | undefined;
|
|
193
196
|
};
|
|
194
197
|
readonly created_at: string;
|
|
195
198
|
readonly created_by: {
|
|
196
199
|
readonly id: number;
|
|
197
200
|
readonly name: string;
|
|
198
|
-
readonly email?: string;
|
|
201
|
+
readonly email?: string | undefined;
|
|
199
202
|
};
|
|
200
203
|
readonly modified_at: string;
|
|
201
204
|
readonly modified_by: {
|
|
202
205
|
readonly id: number;
|
|
203
206
|
readonly name: string;
|
|
204
|
-
readonly email?: string;
|
|
207
|
+
readonly email?: string | undefined;
|
|
205
208
|
};
|
|
206
209
|
} | null;
|
|
207
210
|
readonly selectedFolder: {
|
|
208
211
|
readonly id: string;
|
|
209
212
|
readonly name: string;
|
|
210
|
-
readonly
|
|
211
|
-
readonly access_type?: import('../../../../types/openapi').AccessTypeEnum;
|
|
212
|
-
readonly
|
|
213
|
-
|
|
213
|
+
readonly content_type: string;
|
|
214
|
+
readonly access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
215
|
+
readonly rules?: readonly {
|
|
216
|
+
readonly field: string;
|
|
217
|
+
readonly operator: import('../../../../types/openapi').OperatorEnum;
|
|
218
|
+
readonly value: string;
|
|
219
|
+
}[] | undefined;
|
|
214
220
|
readonly owned_by: {
|
|
215
221
|
readonly id: number;
|
|
216
222
|
readonly name: string;
|
|
217
|
-
readonly email?: string;
|
|
223
|
+
readonly email?: string | undefined;
|
|
218
224
|
};
|
|
225
|
+
readonly path: readonly {
|
|
226
|
+
readonly id: string;
|
|
227
|
+
readonly name: string;
|
|
228
|
+
readonly thumbnail_url: string | null;
|
|
229
|
+
readonly folders_count: number;
|
|
230
|
+
readonly files_count: number;
|
|
231
|
+
readonly file_thumbnail_urls: readonly string[];
|
|
232
|
+
readonly canvases_count: number;
|
|
233
|
+
readonly canvas_thumbnail_urls: readonly string[];
|
|
234
|
+
}[];
|
|
235
|
+
readonly thumbnail_url: string | null;
|
|
236
|
+
readonly folders: readonly {
|
|
237
|
+
readonly id: string;
|
|
238
|
+
readonly name: string;
|
|
239
|
+
readonly thumbnail_url: string | null;
|
|
240
|
+
readonly folders_count: number;
|
|
241
|
+
readonly files_count: number;
|
|
242
|
+
readonly file_thumbnail_urls: readonly string[];
|
|
243
|
+
readonly canvases_count: number;
|
|
244
|
+
readonly canvas_thumbnail_urls: readonly string[];
|
|
245
|
+
}[];
|
|
219
246
|
readonly files: readonly {
|
|
220
247
|
readonly id: string;
|
|
221
248
|
readonly name: string;
|
|
@@ -223,49 +250,50 @@ declare const _default: () => {
|
|
|
223
250
|
readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
|
|
224
251
|
readonly thumbnail_url: string;
|
|
225
252
|
readonly tags: readonly string[];
|
|
253
|
+
readonly permissions?: {
|
|
254
|
+
readonly can_download?: boolean | undefined;
|
|
255
|
+
readonly can_share?: boolean | undefined;
|
|
256
|
+
} | undefined;
|
|
226
257
|
readonly created_by: {
|
|
227
258
|
readonly id: number;
|
|
228
259
|
readonly name: string;
|
|
229
|
-
readonly email?: string;
|
|
260
|
+
readonly email?: string | undefined;
|
|
230
261
|
};
|
|
231
262
|
readonly owned_by: {
|
|
232
263
|
readonly id: number;
|
|
233
264
|
readonly name: string;
|
|
234
|
-
readonly email?: string;
|
|
265
|
+
readonly email?: string | undefined;
|
|
235
266
|
};
|
|
236
267
|
readonly modified_at: string;
|
|
237
268
|
}[];
|
|
238
|
-
readonly
|
|
239
|
-
readonly file_thumbnail_urls: readonly string[];
|
|
240
|
-
readonly thumbnail_url: string | null;
|
|
241
|
-
readonly folders: readonly {
|
|
269
|
+
readonly canvases: readonly {
|
|
242
270
|
readonly id: string;
|
|
243
271
|
readonly name: string;
|
|
244
|
-
readonly
|
|
245
|
-
readonly
|
|
246
|
-
readonly
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
readonly
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
readonly
|
|
272
|
+
readonly thumbnail_url?: (string | null) | undefined;
|
|
273
|
+
readonly tags: readonly string[];
|
|
274
|
+
readonly created_by: {
|
|
275
|
+
readonly id: number;
|
|
276
|
+
readonly name: string;
|
|
277
|
+
readonly email?: string | undefined;
|
|
278
|
+
};
|
|
279
|
+
readonly owned_by: {
|
|
280
|
+
readonly id: number;
|
|
281
|
+
readonly name: string;
|
|
282
|
+
readonly email?: string | undefined;
|
|
283
|
+
};
|
|
284
|
+
readonly modified_at: string;
|
|
257
285
|
}[];
|
|
258
286
|
readonly created_at: string;
|
|
259
287
|
readonly created_by: {
|
|
260
288
|
readonly id: number;
|
|
261
289
|
readonly name: string;
|
|
262
|
-
readonly email?: string;
|
|
290
|
+
readonly email?: string | undefined;
|
|
263
291
|
};
|
|
264
292
|
readonly modified_at: string;
|
|
265
293
|
readonly modified_by: {
|
|
266
294
|
readonly id: number;
|
|
267
295
|
readonly name: string;
|
|
268
|
-
readonly email?: string;
|
|
296
|
+
readonly email?: string | undefined;
|
|
269
297
|
};
|
|
270
298
|
} | null;
|
|
271
299
|
readonly favorites: {
|
|
@@ -281,7 +309,7 @@ declare const _default: () => {
|
|
|
281
309
|
} | null;
|
|
282
310
|
readonly page: {
|
|
283
311
|
readonly id: string;
|
|
284
|
-
readonly page_index?: number;
|
|
312
|
+
readonly page_index?: number | undefined;
|
|
285
313
|
} | null;
|
|
286
314
|
readonly folder: {
|
|
287
315
|
readonly id: string;
|
|
@@ -291,28 +319,30 @@ declare const _default: () => {
|
|
|
291
319
|
readonly created_by: {
|
|
292
320
|
readonly id: number;
|
|
293
321
|
readonly name: string;
|
|
294
|
-
readonly email?: string;
|
|
322
|
+
readonly email?: string | undefined;
|
|
295
323
|
};
|
|
296
324
|
readonly modified_at: string;
|
|
297
325
|
readonly modified_by: {
|
|
298
326
|
readonly id: number;
|
|
299
327
|
readonly name: string;
|
|
300
|
-
readonly email?: string;
|
|
328
|
+
readonly email?: string | undefined;
|
|
301
329
|
};
|
|
302
330
|
readonly owned_by: {
|
|
303
331
|
readonly id: number;
|
|
304
332
|
readonly name: string;
|
|
305
|
-
readonly email?: string;
|
|
333
|
+
readonly email?: string | undefined;
|
|
306
334
|
};
|
|
307
335
|
};
|
|
308
336
|
};
|
|
309
337
|
readonly currentFolderPath: readonly {
|
|
310
338
|
readonly id: string;
|
|
311
339
|
readonly name: string;
|
|
312
|
-
readonly files_count: number;
|
|
313
|
-
readonly folders_count: number;
|
|
314
340
|
readonly thumbnail_url: string | null;
|
|
341
|
+
readonly folders_count: number;
|
|
342
|
+
readonly files_count: number;
|
|
315
343
|
readonly file_thumbnail_urls: readonly string[];
|
|
344
|
+
readonly canvases_count: number;
|
|
345
|
+
readonly canvas_thumbnail_urls: readonly string[];
|
|
316
346
|
}[];
|
|
317
347
|
readonly currentFolderName: Awaited<ReturnType<FolderItemsFetcher>>["name"];
|
|
318
348
|
readonly currentFolderId: Awaited<ReturnType<FolderItemsFetcher>>["id"];
|
|
@@ -324,7 +354,7 @@ declare const _default: () => {
|
|
|
324
354
|
getters: {
|
|
325
355
|
readonly sortedFiles: readonly {
|
|
326
356
|
readonly status: FileStatusEnum;
|
|
327
|
-
readonly name?: string;
|
|
357
|
+
readonly name?: string | undefined;
|
|
328
358
|
readonly id: string;
|
|
329
359
|
readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
|
|
330
360
|
readonly thumbnail_url: string | null;
|
|
@@ -332,7 +362,7 @@ declare const _default: () => {
|
|
|
332
362
|
readonly created_by: {
|
|
333
363
|
readonly id: number;
|
|
334
364
|
readonly name: string;
|
|
335
|
-
readonly email?: string;
|
|
365
|
+
readonly email?: string | undefined;
|
|
336
366
|
};
|
|
337
367
|
readonly modified_at: string;
|
|
338
368
|
}[];
|
|
@@ -411,8 +441,8 @@ declare const _default: () => {
|
|
|
411
441
|
favoritesDeleter: FavoritesDeleter | null;
|
|
412
442
|
favoritesSetter: FavoritesSetter | null;
|
|
413
443
|
recentFilesFetcher: RecentFilesFetcher | null;
|
|
414
|
-
selectDeviceFile?: SelectDeviceFile | null;
|
|
415
|
-
metadataTemplateFetcher?: MetadataTemplateFetcher | null;
|
|
444
|
+
selectDeviceFile?: (SelectDeviceFile | null) | undefined;
|
|
445
|
+
metadataTemplateFetcher?: (MetadataTemplateFetcher | null) | undefined;
|
|
416
446
|
itemsMover: ItemsMover | null;
|
|
417
447
|
convertingFileIdsTimeout: {
|
|
418
448
|
ref: () => NodeJS.Timeout;
|
|
@@ -435,36 +465,39 @@ declare const _default: () => {
|
|
|
435
465
|
folders: {
|
|
436
466
|
id: string;
|
|
437
467
|
name: string;
|
|
438
|
-
files_count: number;
|
|
439
|
-
folders_count: number;
|
|
440
468
|
thumbnail_url: string | null;
|
|
469
|
+
folders_count: number;
|
|
470
|
+
files_count: number;
|
|
441
471
|
file_thumbnail_urls: Array<string>;
|
|
472
|
+
canvases_count: number;
|
|
473
|
+
canvas_thumbnail_urls: Array<string>;
|
|
442
474
|
}[];
|
|
443
475
|
files: {
|
|
444
476
|
readonly status: FileStatusEnum;
|
|
445
|
-
name?: string;
|
|
477
|
+
name?: string | undefined;
|
|
446
478
|
readonly id: string;
|
|
447
479
|
readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
|
|
448
480
|
readonly thumbnail_url: string | null;
|
|
449
|
-
tags?: Array<string
|
|
481
|
+
tags?: Array<string> | undefined;
|
|
450
482
|
readonly created_by: {
|
|
451
483
|
readonly id: number;
|
|
452
484
|
readonly name: string;
|
|
453
|
-
email?: string;
|
|
485
|
+
email?: string | undefined;
|
|
454
486
|
};
|
|
455
487
|
readonly modified_at: string;
|
|
456
488
|
}[];
|
|
457
489
|
recent: {
|
|
458
|
-
name?: string;
|
|
490
|
+
name?: string | undefined;
|
|
459
491
|
readonly id: string;
|
|
460
492
|
readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
|
|
461
|
-
readonly thumbnail_url: string | null;
|
|
462
493
|
readonly instance_id: string;
|
|
494
|
+
tags?: Readonly<File["tags"]>;
|
|
495
|
+
thumbnail_url?: (string | null) | undefined;
|
|
463
496
|
}[];
|
|
464
497
|
selectedFile: {
|
|
465
498
|
readonly id: string;
|
|
466
499
|
readonly global_id: string;
|
|
467
|
-
name?: string;
|
|
500
|
+
name?: string | undefined;
|
|
468
501
|
readonly type: import('../../../../types/openapi').FileTypeEnum;
|
|
469
502
|
readonly size: number | null;
|
|
470
503
|
readonly status: FileStatusEnum;
|
|
@@ -480,58 +513,82 @@ declare const _default: () => {
|
|
|
480
513
|
readonly content_thumbnails: Array<string>;
|
|
481
514
|
readonly original_extension: string | null;
|
|
482
515
|
readonly thumbnail_url: string | null;
|
|
483
|
-
download_type?: import('../../../../types/openapi').DownloadTypeEnum;
|
|
516
|
+
download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
|
|
484
517
|
readonly zip_size: number | null;
|
|
485
518
|
readonly zip_url: string | null;
|
|
486
|
-
access_type?: import('../../../../types/openapi').AccessTypeEnum;
|
|
519
|
+
access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
487
520
|
readonly role: import('../../../../types/openapi').CollaborationRoleEnum;
|
|
488
521
|
permissions?: {
|
|
489
|
-
can_download?: boolean;
|
|
490
|
-
can_share?: boolean;
|
|
522
|
+
can_download?: boolean | undefined;
|
|
523
|
+
can_share?: boolean | undefined;
|
|
491
524
|
} | undefined;
|
|
492
525
|
readonly pspdfkit_server_url: string | null;
|
|
493
526
|
readonly pspdfkit_auth_payload: Record<string, any> | null;
|
|
494
|
-
metadata?: Record<string, any
|
|
495
|
-
app_metadata?: Record<string, any
|
|
496
|
-
tags?: Array<string
|
|
527
|
+
metadata?: Record<string, any> | undefined;
|
|
528
|
+
app_metadata?: Record<string, any> | undefined;
|
|
529
|
+
tags?: Array<string> | undefined;
|
|
497
530
|
readonly published_at: string | null;
|
|
498
|
-
expires_at?: string | null;
|
|
531
|
+
expires_at?: (string | null) | undefined;
|
|
499
532
|
readonly instance_id: string;
|
|
500
|
-
folder_id?: string;
|
|
533
|
+
folder_id?: string | undefined;
|
|
501
534
|
readonly shared_link: {
|
|
502
535
|
readonly url: string;
|
|
503
|
-
short_url?: string | null;
|
|
536
|
+
short_url?: (string | null) | undefined;
|
|
504
537
|
};
|
|
505
538
|
readonly owned_by: {
|
|
506
539
|
readonly id: number;
|
|
507
540
|
readonly name: string;
|
|
508
|
-
email?: string;
|
|
541
|
+
email?: string | undefined;
|
|
509
542
|
};
|
|
510
543
|
readonly created_at: string;
|
|
511
544
|
readonly created_by: {
|
|
512
545
|
readonly id: number;
|
|
513
546
|
readonly name: string;
|
|
514
|
-
email?: string;
|
|
547
|
+
email?: string | undefined;
|
|
515
548
|
};
|
|
516
549
|
readonly modified_at: string;
|
|
517
550
|
readonly modified_by: {
|
|
518
551
|
readonly id: number;
|
|
519
552
|
readonly name: string;
|
|
520
|
-
email?: string;
|
|
553
|
+
email?: string | undefined;
|
|
521
554
|
};
|
|
522
555
|
} | null;
|
|
523
556
|
selectedFolder: {
|
|
524
557
|
readonly id: string;
|
|
525
558
|
name: string;
|
|
526
|
-
readonly
|
|
527
|
-
access_type?: import('../../../../types/openapi').AccessTypeEnum;
|
|
528
|
-
|
|
529
|
-
|
|
559
|
+
readonly content_type: string;
|
|
560
|
+
access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
561
|
+
rules?: {
|
|
562
|
+
field: string;
|
|
563
|
+
operator: import('../../../../types/openapi').OperatorEnum;
|
|
564
|
+
value: string;
|
|
565
|
+
}[] | undefined;
|
|
530
566
|
readonly owned_by: {
|
|
531
567
|
readonly id: number;
|
|
532
568
|
readonly name: string;
|
|
533
|
-
email?: string;
|
|
569
|
+
email?: string | undefined;
|
|
534
570
|
};
|
|
571
|
+
readonly path: {
|
|
572
|
+
readonly id: string;
|
|
573
|
+
name: string;
|
|
574
|
+
readonly thumbnail_url: string | null;
|
|
575
|
+
readonly folders_count: number;
|
|
576
|
+
readonly files_count: number;
|
|
577
|
+
readonly file_thumbnail_urls: Array<string>;
|
|
578
|
+
readonly canvases_count: number;
|
|
579
|
+
readonly canvas_thumbnail_urls: Array<string>;
|
|
580
|
+
}[];
|
|
581
|
+
readonly thumbnail_url: string | null;
|
|
582
|
+
readonly folders: {
|
|
583
|
+
readonly id: string;
|
|
584
|
+
name: string;
|
|
585
|
+
readonly thumbnail_url: string | null;
|
|
586
|
+
readonly folders_count: number;
|
|
587
|
+
readonly files_count: number;
|
|
588
|
+
readonly file_thumbnail_urls: Array<string>;
|
|
589
|
+
readonly canvases_count: number;
|
|
590
|
+
readonly canvas_thumbnail_urls: Array<string>;
|
|
591
|
+
}[];
|
|
535
592
|
readonly files: {
|
|
536
593
|
readonly id: string;
|
|
537
594
|
readonly name: string;
|
|
@@ -539,59 +596,62 @@ declare const _default: () => {
|
|
|
539
596
|
readonly content_type: import('../../../../types/openapi').FileContentTypeEnum;
|
|
540
597
|
readonly thumbnail_url: string;
|
|
541
598
|
readonly tags: Array<string>;
|
|
599
|
+
permissions?: {
|
|
600
|
+
can_download?: boolean | undefined;
|
|
601
|
+
can_share?: boolean | undefined;
|
|
602
|
+
} | undefined;
|
|
542
603
|
readonly created_by: {
|
|
543
604
|
readonly id: number;
|
|
544
605
|
readonly name: string;
|
|
545
|
-
email?: string;
|
|
606
|
+
email?: string | undefined;
|
|
546
607
|
};
|
|
547
608
|
readonly owned_by: {
|
|
548
609
|
readonly id: number;
|
|
549
610
|
readonly name: string;
|
|
550
|
-
email?: string;
|
|
611
|
+
email?: string | undefined;
|
|
551
612
|
};
|
|
552
613
|
readonly modified_at: string;
|
|
553
614
|
}[];
|
|
554
|
-
readonly
|
|
555
|
-
readonly file_thumbnail_urls: Array<string>;
|
|
556
|
-
readonly thumbnail_url: string | null;
|
|
557
|
-
readonly folders: {
|
|
558
|
-
readonly id: string;
|
|
559
|
-
name: string;
|
|
560
|
-
readonly files_count: number;
|
|
561
|
-
readonly folders_count: number;
|
|
562
|
-
readonly thumbnail_url: string | null;
|
|
563
|
-
readonly file_thumbnail_urls: Array<string>;
|
|
564
|
-
}[];
|
|
565
|
-
readonly folders_count: number;
|
|
566
|
-
readonly path: {
|
|
615
|
+
readonly canvases: {
|
|
567
616
|
readonly id: string;
|
|
568
617
|
name: string;
|
|
569
|
-
|
|
570
|
-
readonly
|
|
571
|
-
readonly
|
|
572
|
-
|
|
618
|
+
thumbnail_url?: (string | null) | undefined;
|
|
619
|
+
readonly tags: Array<string>;
|
|
620
|
+
readonly created_by: {
|
|
621
|
+
readonly id: number;
|
|
622
|
+
readonly name: string;
|
|
623
|
+
email?: string | undefined;
|
|
624
|
+
};
|
|
625
|
+
readonly owned_by: {
|
|
626
|
+
readonly id: number;
|
|
627
|
+
readonly name: string;
|
|
628
|
+
email?: string | undefined;
|
|
629
|
+
};
|
|
630
|
+
readonly modified_at: string;
|
|
573
631
|
}[];
|
|
574
632
|
readonly created_at: string;
|
|
575
633
|
readonly created_by: {
|
|
576
634
|
readonly id: number;
|
|
577
635
|
readonly name: string;
|
|
578
|
-
email?: string;
|
|
636
|
+
email?: string | undefined;
|
|
579
637
|
};
|
|
580
638
|
readonly modified_at: string;
|
|
581
639
|
readonly modified_by: {
|
|
582
640
|
readonly id: number;
|
|
583
641
|
readonly name: string;
|
|
584
|
-
email?: string;
|
|
642
|
+
email?: string | undefined;
|
|
585
643
|
};
|
|
586
644
|
} | null;
|
|
587
645
|
favorites: Record<MiniPage["id"] | File["id"] | Folder["id"], Favorite>;
|
|
588
646
|
currentFolderPath: {
|
|
589
647
|
readonly id: string;
|
|
590
648
|
name: string;
|
|
591
|
-
readonly files_count: number;
|
|
592
|
-
readonly folders_count: number;
|
|
593
649
|
readonly thumbnail_url: string | null;
|
|
650
|
+
readonly folders_count: number;
|
|
651
|
+
readonly files_count: number;
|
|
594
652
|
readonly file_thumbnail_urls: Array<string>;
|
|
653
|
+
readonly canvases_count: number;
|
|
654
|
+
readonly canvas_thumbnail_urls: Array<string>;
|
|
595
655
|
}[];
|
|
596
656
|
currentFolderName: Awaited<ReturnType<FolderItemsFetcher>>["name"];
|
|
597
657
|
currentFolderId: Awaited<ReturnType<FolderItemsFetcher>>["id"];
|
|
@@ -6,6 +6,11 @@ import { ViewCompactFile, ViewCompactFileFolder, ViewCompactFolder } from '../..
|
|
|
6
6
|
export type AppName = 'admin' | 'impact';
|
|
7
7
|
export type AppCurrentState = 'browse' | 'create-folder' | 'upload-files' | 'update-folder' | 'update-file' | 'batch-move';
|
|
8
8
|
export type BrowserSectionType = 'all' | 'favorites' | 'recent' | 'trash';
|
|
9
|
+
export type StateSelectedItem = Partial<File | Folder | Favorite> & {
|
|
10
|
+
type: string | null | undefined;
|
|
11
|
+
thumbnail_url: string | null | undefined;
|
|
12
|
+
content_type: string | null | undefined;
|
|
13
|
+
};
|
|
9
14
|
type SelectedItemId = Folder['id'] | File['id'] | RecentFile['id'] | (Favorite['page'] extends {
|
|
10
15
|
id: any;
|
|
11
16
|
} ? Favorite['page']['id'] : never);
|
|
@@ -19,7 +24,7 @@ export default function (): {
|
|
|
19
24
|
removeSelectedItems(removeIds: SelectedItemId[]): void;
|
|
20
25
|
selectAll(): void;
|
|
21
26
|
toggleSelectAll(value: boolean): void;
|
|
22
|
-
toggleItemSelection(item:
|
|
27
|
+
toggleItemSelection(item: StateSelectedItem, { isSelected, disableMultiple }?: {
|
|
23
28
|
isSelected?: boolean;
|
|
24
29
|
disableMultiple?: boolean;
|
|
25
30
|
}): void;
|
|
@@ -18,20 +18,22 @@ export default function (): {
|
|
|
18
18
|
path: string;
|
|
19
19
|
size: number;
|
|
20
20
|
};
|
|
21
|
-
type?: import('../../../../types/openapi').FileTypeEnum;
|
|
22
|
-
metadata?: Record<string, any
|
|
23
|
-
name?: string;
|
|
24
|
-
download_type?: import('../../../../types/openapi').DownloadTypeEnum;
|
|
25
|
-
access_type?: AccessTypeEnum;
|
|
21
|
+
type?: import('../../../../types/openapi').FileTypeEnum | undefined;
|
|
22
|
+
metadata?: Record<string, any> | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
|
|
25
|
+
access_type?: AccessTypeEnum | undefined;
|
|
26
26
|
permissions?: {
|
|
27
|
-
can_download?: boolean;
|
|
28
|
-
can_share?: boolean;
|
|
27
|
+
can_download?: boolean | undefined;
|
|
28
|
+
can_share?: boolean | undefined;
|
|
29
29
|
} | undefined;
|
|
30
|
-
app_metadata?: Record<string, any
|
|
31
|
-
tags?: Array<string
|
|
32
|
-
expires_at?: string | null;
|
|
33
|
-
folder_id?: string;
|
|
34
|
-
owned_by_id?: number | null;
|
|
30
|
+
app_metadata?: Record<string, any> | undefined;
|
|
31
|
+
tags?: Array<string> | undefined;
|
|
32
|
+
expires_at?: (string | null) | undefined;
|
|
33
|
+
folder_id?: string | undefined;
|
|
34
|
+
owned_by_id?: (number | null) | undefined;
|
|
35
|
+
is_asset?: boolean | undefined;
|
|
36
|
+
content_upload_id?: string | undefined;
|
|
35
37
|
thumbnail?: {
|
|
36
38
|
readonly size: number;
|
|
37
39
|
readonly type: string;
|
|
@@ -40,9 +42,7 @@ export default function (): {
|
|
|
40
42
|
stream: () => ReadableStream<Uint8Array>;
|
|
41
43
|
text: () => Promise<string>;
|
|
42
44
|
} | undefined;
|
|
43
|
-
|
|
44
|
-
content_upload_id?: string;
|
|
45
|
-
thumbnail_upload_id?: string;
|
|
45
|
+
thumbnail_upload_id?: string | undefined;
|
|
46
46
|
} | {
|
|
47
47
|
id: string;
|
|
48
48
|
isSupported: boolean;
|
|
@@ -51,8 +51,8 @@ export default function (): {
|
|
|
51
51
|
error: string | null;
|
|
52
52
|
cancelErrorMessage: string;
|
|
53
53
|
genericErrorMessage: string;
|
|
54
|
-
type?: import('../../../../types/openapi').FileTypeEnum;
|
|
55
|
-
metadata?: Record<string, any
|
|
54
|
+
type?: import('../../../../types/openapi').FileTypeEnum | undefined;
|
|
55
|
+
metadata?: Record<string, any> | undefined;
|
|
56
56
|
content?: {
|
|
57
57
|
readonly size: number;
|
|
58
58
|
readonly type: string;
|
|
@@ -61,18 +61,20 @@ export default function (): {
|
|
|
61
61
|
stream: () => ReadableStream<Uint8Array>;
|
|
62
62
|
text: () => Promise<string>;
|
|
63
63
|
} | undefined;
|
|
64
|
-
name?: string;
|
|
65
|
-
download_type?: import('../../../../types/openapi').DownloadTypeEnum;
|
|
66
|
-
access_type?: AccessTypeEnum;
|
|
64
|
+
name?: string | undefined;
|
|
65
|
+
download_type?: import('../../../../types/openapi').DownloadTypeEnum | undefined;
|
|
66
|
+
access_type?: AccessTypeEnum | undefined;
|
|
67
67
|
permissions?: {
|
|
68
|
-
can_download?: boolean;
|
|
69
|
-
can_share?: boolean;
|
|
68
|
+
can_download?: boolean | undefined;
|
|
69
|
+
can_share?: boolean | undefined;
|
|
70
70
|
} | undefined;
|
|
71
|
-
app_metadata?: Record<string, any
|
|
72
|
-
tags?: Array<string
|
|
73
|
-
expires_at?: string | null;
|
|
74
|
-
folder_id?: string;
|
|
75
|
-
owned_by_id?: number | null;
|
|
71
|
+
app_metadata?: Record<string, any> | undefined;
|
|
72
|
+
tags?: Array<string> | undefined;
|
|
73
|
+
expires_at?: (string | null) | undefined;
|
|
74
|
+
folder_id?: string | undefined;
|
|
75
|
+
owned_by_id?: (number | null) | undefined;
|
|
76
|
+
is_asset?: boolean | undefined;
|
|
77
|
+
content_upload_id?: string | undefined;
|
|
76
78
|
thumbnail?: {
|
|
77
79
|
readonly size: number;
|
|
78
80
|
readonly type: string;
|
|
@@ -81,9 +83,7 @@ export default function (): {
|
|
|
81
83
|
stream: () => ReadableStream<Uint8Array>;
|
|
82
84
|
text: () => Promise<string>;
|
|
83
85
|
} | undefined;
|
|
84
|
-
|
|
85
|
-
content_upload_id?: string;
|
|
86
|
-
thumbnail_upload_id?: string;
|
|
86
|
+
thumbnail_upload_id?: string | undefined;
|
|
87
87
|
})[]>;
|
|
88
88
|
isQueueBusy: import('vue').ComputedRef<boolean>;
|
|
89
89
|
uploadSelectedFiles: import('vue').Ref<{
|