@pitcher/js-api 1.21.0-beta.14 → 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 +101 -8
- 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 +4 -4
- 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 +23 -20
- package/lib/sdk/api/HighLevelApi.d.ts +95 -2
- package/lib/sdk/api/modules/admin/canvas.admin.d.ts +4 -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 +13 -0
- package/lib/sdk/api/modules/admin/metadataTemplates.admin.d.ts +1 -2
- package/lib/sdk/api/modules/admin/types.admin.d.ts +93 -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 +53 -0
- package/lib/sdk/api/modules/ui/content.ui.d.ts +36 -3
- package/lib/sdk/api/modules/ui/index.d.ts +107 -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 +59 -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 +67 -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/composables/useDetailsView.d.ts +0 -19
- 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
package/lib/sdk/main.d.ts
CHANGED
|
@@ -7,9 +7,26 @@ export * from './api/modules/ui/types.ui';
|
|
|
7
7
|
export * from './api/modules/admin/types.admin';
|
|
8
8
|
export * from './api/modules/dsr/types.dsr';
|
|
9
9
|
export declare let highLevelApi: ReturnType<typeof createHighLevelApi>;
|
|
10
|
+
/**
|
|
11
|
+
* Check out the returned object documentation for the list of available methods.
|
|
12
|
+
*/
|
|
10
13
|
export declare function usePitcherApi(options?: ApiOptions): ReturnType<typeof createHighLevelApi>;
|
|
14
|
+
/**
|
|
15
|
+
* API methods available in the CatalogIQ default UI.
|
|
16
|
+
*
|
|
17
|
+
* You can store the API object in a variable and call the methods directly.
|
|
18
|
+
*
|
|
19
|
+
* Most methods have a `snake_case` and `camelCase` version of their name available.
|
|
20
|
+
*
|
|
21
|
+
* ```ts
|
|
22
|
+
* const uiApi = useUi()
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @returns UI API object with methods described below.
|
|
26
|
+
*/
|
|
11
27
|
export declare function useUi(): {
|
|
12
28
|
complete_postcall(payload: import('./api/modules/ui/types.ui').UiCompletePostcallRequest): Promise<void>;
|
|
29
|
+
stop_meeting(): Promise<void>;
|
|
13
30
|
enable_postcall_submit(): Promise<void>;
|
|
14
31
|
disable_postcall_submit(): Promise<void>;
|
|
15
32
|
set_postcall_style(payload: import('./api/modules/ui/types.ui').UiSetPostcallStyleRequest): Promise<void>;
|
|
@@ -42,6 +59,19 @@ export declare function useUi(): {
|
|
|
42
59
|
on_app_update_data: (handler: (data: import('./api/modules/ui/types.ui').UiAppUpdateDataPayload) => Promise<void>) => Promise<() => void>;
|
|
43
60
|
ui_broadcast: (payload: import('./api/modules/ui/types.ui').UiBroadcastRequest) => Promise<void>;
|
|
44
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* API methods available in the CatalogIQ Admin.
|
|
64
|
+
*
|
|
65
|
+
* You can store the API object in a variable and call the methods directly.
|
|
66
|
+
*
|
|
67
|
+
* Most methods have a `snake_case` and `camelCase` version of their name available.
|
|
68
|
+
*
|
|
69
|
+
* ```ts
|
|
70
|
+
* import { useAdmin } from '@pitcher/js-api'
|
|
71
|
+
*
|
|
72
|
+
* const adminApi = useAdmin()
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
45
75
|
export declare function useAdmin(): {
|
|
46
76
|
getAppConfig(payload: {
|
|
47
77
|
app_name: string;
|
|
@@ -77,6 +107,19 @@ export declare function useAdmin(): {
|
|
|
77
107
|
on: (type: typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES[keyof typeof import('./api/modules/admin/types.admin').ADMIN_MESSAGE_TYPES], handler: (data: import('./api/modules/admin/types.admin').AdminMessagePayloads[typeof type]) => Promise<void>) => Promise<() => void>;
|
|
78
108
|
toast: (payload: import('./api/modules/admin/types.admin').AdminToastRequest) => Promise<void>;
|
|
79
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* API methods available in the CatalogIQ default UI.
|
|
112
|
+
*
|
|
113
|
+
* You can store the API object in a variable and call the methods directly.
|
|
114
|
+
*
|
|
115
|
+
* Most methods have a `snake_case` and `camelCase` version of their name available.
|
|
116
|
+
*
|
|
117
|
+
* ```ts
|
|
118
|
+
* import { useDsr } from '@pitcher/js-api'
|
|
119
|
+
*
|
|
120
|
+
* const dsrApi = useDsr()
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
80
123
|
export declare function useDsr(): {
|
|
81
124
|
embeddable_ready(): Promise<void>;
|
|
82
125
|
getEnv(): Promise<import('./api/modules/dsr/types.dsr').DsrEnv>;
|
|
@@ -84,11 +127,25 @@ export declare function useDsr(): {
|
|
|
84
127
|
};
|
|
85
128
|
export type JsApiLocation = 'ui' | 'admin' | 'dsr' | 'impact';
|
|
86
129
|
export declare function getAvailableApis(): JsApiLocation[];
|
|
130
|
+
/**
|
|
131
|
+
* This method returns an object containing the API methods that are available to you in a given environment, whether that be the Canvas, UI, Admin or DSR.
|
|
132
|
+
*
|
|
133
|
+
* - CatalogIQ UI - the method will return an object containing methods available in both `usePitcherApi` and `useUi`
|
|
134
|
+
* - CatalogIQ DSR - the method will return the same result as `useDsr`
|
|
135
|
+
* - CatalogIQ Admin - the method will return the same result as `useAdmin`
|
|
136
|
+
*
|
|
137
|
+
* ```ts
|
|
138
|
+
* import { useApi } from '@pitcher/js-api'
|
|
139
|
+
*
|
|
140
|
+
* const api = useApi()
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
87
143
|
export declare function useApi(options?: ApiOptions): {
|
|
88
144
|
on: (type: string, callback: (payload: import('./interfaces').PitcherEvent) => void) => void;
|
|
89
145
|
off: (type: string, callback: (payload: import('./interfaces').PitcherEvent) => void) => void;
|
|
90
146
|
enterFullscreen: () => Promise<any>;
|
|
91
147
|
exitFullscreen: () => Promise<any>;
|
|
148
|
+
isFullscreen: () => Promise<any>;
|
|
92
149
|
logout: () => Promise<any>;
|
|
93
150
|
quitInstance: () => Promise<any>;
|
|
94
151
|
getRequestTypes: () => Promise<any>;
|
|
@@ -99,8 +156,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
99
156
|
openExternalUrl(payload: import('./payload.types').OpenExternalUrlRequestPayload): Promise<void>;
|
|
100
157
|
getEnv(): Promise<import('./interfaces').PitcherEnv>;
|
|
101
158
|
updateMyUser(payload: {
|
|
102
|
-
language?: import('../main.lib').LanguageEnum;
|
|
103
|
-
dark_mode?: boolean;
|
|
159
|
+
language?: import('../main.lib').LanguageEnum | undefined;
|
|
160
|
+
dark_mode?: boolean | undefined;
|
|
104
161
|
}): Promise<import('../main.lib').User>;
|
|
105
162
|
getLanguages(): Promise<import('./api/modules').Language[]>;
|
|
106
163
|
getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
|
|
@@ -251,6 +308,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
251
308
|
} | {
|
|
252
309
|
ui: {
|
|
253
310
|
complete_postcall(payload: import('./api/modules/ui/types.ui').UiCompletePostcallRequest): Promise<void>;
|
|
311
|
+
stop_meeting(): Promise<void>;
|
|
254
312
|
enable_postcall_submit(): Promise<void>;
|
|
255
313
|
disable_postcall_submit(): Promise<void>;
|
|
256
314
|
set_postcall_style(payload: import('./api/modules/ui/types.ui').UiSetPostcallStyleRequest): Promise<void>;
|
|
@@ -288,6 +346,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
288
346
|
off: (type: string, callback: (payload: import('./interfaces').PitcherEvent) => void) => void;
|
|
289
347
|
enterFullscreen: () => Promise<any>;
|
|
290
348
|
exitFullscreen: () => Promise<any>;
|
|
349
|
+
isFullscreen: () => Promise<any>;
|
|
291
350
|
logout: () => Promise<any>;
|
|
292
351
|
quitInstance: () => Promise<any>;
|
|
293
352
|
getRequestTypes: () => Promise<any>;
|
|
@@ -298,8 +357,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
298
357
|
openExternalUrl(payload: import('./payload.types').OpenExternalUrlRequestPayload): Promise<void>;
|
|
299
358
|
getEnv(): Promise<import('./interfaces').PitcherEnv>;
|
|
300
359
|
updateMyUser(payload: {
|
|
301
|
-
language?: import('../main.lib').LanguageEnum;
|
|
302
|
-
dark_mode?: boolean;
|
|
360
|
+
language?: import('../main.lib').LanguageEnum | undefined;
|
|
361
|
+
dark_mode?: boolean | undefined;
|
|
303
362
|
}): Promise<import('../main.lib').User>;
|
|
304
363
|
getLanguages(): Promise<import('./api/modules').Language[]>;
|
|
305
364
|
getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
|
|
@@ -411,6 +470,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
411
470
|
API: import('./api/LowLevelApi').LowLevelApi;
|
|
412
471
|
};
|
|
413
472
|
complete_postcall(payload: import('./api/modules/ui/types.ui').UiCompletePostcallRequest): Promise<void>;
|
|
473
|
+
stop_meeting(): Promise<void>;
|
|
414
474
|
enable_postcall_submit(): Promise<void>;
|
|
415
475
|
disable_postcall_submit(): Promise<void>;
|
|
416
476
|
set_postcall_style(payload: import('./api/modules/ui/types.ui').UiSetPostcallStyleRequest): Promise<void>;
|
|
@@ -445,6 +505,7 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
445
505
|
off: (type: string, callback: (payload: import('./interfaces').PitcherEvent) => void) => void;
|
|
446
506
|
enterFullscreen: () => Promise<any>;
|
|
447
507
|
exitFullscreen: () => Promise<any>;
|
|
508
|
+
isFullscreen: () => Promise<any>;
|
|
448
509
|
logout: () => Promise<any>;
|
|
449
510
|
quitInstance: () => Promise<any>;
|
|
450
511
|
getRequestTypes: () => Promise<any>;
|
|
@@ -454,8 +515,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
454
515
|
openExternalUrl(payload: import('./payload.types').OpenExternalUrlRequestPayload): Promise<void>;
|
|
455
516
|
getEnv(): Promise<import('./interfaces').PitcherEnv>;
|
|
456
517
|
updateMyUser(payload: {
|
|
457
|
-
language?: import('../main.lib').LanguageEnum;
|
|
458
|
-
dark_mode?: boolean;
|
|
518
|
+
language?: import('../main.lib').LanguageEnum | undefined;
|
|
519
|
+
dark_mode?: boolean | undefined;
|
|
459
520
|
}): Promise<import('../main.lib').User>;
|
|
460
521
|
getLanguages(): Promise<import('./api/modules').Language[]>;
|
|
461
522
|
getEvents(payload: Partial<import('../main.lib').EventRequest>): Promise<import('../main.lib').PaginatedData<import('../main.lib').Event>>;
|
|
@@ -1,56 +1,188 @@
|
|
|
1
1
|
import { MiniPage, File, CanvasRetrieve } from '../../types/openapi';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Payload for getting instance metadata templates.
|
|
5
|
+
*/
|
|
3
6
|
export interface GetInstanceMetadataTemplatesPayload {
|
|
7
|
+
/**
|
|
8
|
+
* Ordering of the metadata templates. String containing field name to order by.
|
|
9
|
+
*/
|
|
4
10
|
ordering?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Page number for pagination.
|
|
13
|
+
*/
|
|
5
14
|
page?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of items per page.
|
|
17
|
+
*/
|
|
6
18
|
page_size?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Search query for filtering metadata templates.
|
|
21
|
+
*/
|
|
7
22
|
search?: string;
|
|
8
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Payload for listing files with optional filters.
|
|
26
|
+
*/
|
|
9
27
|
export type ListFilesPayload = Partial<Omit<File, 'type'>> & {
|
|
28
|
+
/**
|
|
29
|
+
* Range filter for creation date.
|
|
30
|
+
*/
|
|
10
31
|
created_at__range?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Range filter for expiration date.
|
|
34
|
+
*/
|
|
11
35
|
expires_at__range?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Range filter for update date.
|
|
38
|
+
*/
|
|
12
39
|
updated_at__range?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Filter for file IDs.
|
|
42
|
+
*/
|
|
13
43
|
id__in?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Filter for file types.
|
|
46
|
+
*/
|
|
14
47
|
type?: File['type'] | File['type'][];
|
|
48
|
+
/**
|
|
49
|
+
* Filter for content types.
|
|
50
|
+
*/
|
|
15
51
|
content_type?: File['content_type'] | File['content_type'][];
|
|
16
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* Payload for getting recent files.
|
|
55
|
+
*/
|
|
17
56
|
export type GetRecentFilesPayload = {
|
|
57
|
+
/**
|
|
58
|
+
* Number of recent files to retrieve.
|
|
59
|
+
*/
|
|
18
60
|
size?: number;
|
|
19
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Payload for sending a notification.
|
|
64
|
+
*/
|
|
20
65
|
export interface NotificationPayload {
|
|
66
|
+
/**
|
|
67
|
+
* Content of the notification.
|
|
68
|
+
*/
|
|
21
69
|
content: string;
|
|
70
|
+
/**
|
|
71
|
+
* Type of the notification.
|
|
72
|
+
*/
|
|
22
73
|
type?: 'native' | 'alert';
|
|
23
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Payload for executing a query.
|
|
77
|
+
*/
|
|
24
78
|
export interface QueryPayload {
|
|
79
|
+
/**
|
|
80
|
+
* The query string to execute.
|
|
81
|
+
*/
|
|
25
82
|
query: string;
|
|
83
|
+
/**
|
|
84
|
+
* Optional arguments for the query.
|
|
85
|
+
*/
|
|
26
86
|
args?: string[][];
|
|
27
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Payload for submitting user feedback.
|
|
90
|
+
*/
|
|
28
91
|
export interface SubmitUserFeedbackPayload {
|
|
92
|
+
/**
|
|
93
|
+
* Type of feedback being submitted.
|
|
94
|
+
*/
|
|
29
95
|
type: 'bug' | 'feedback';
|
|
96
|
+
/**
|
|
97
|
+
* Data associated with the feedback.
|
|
98
|
+
*/
|
|
30
99
|
data: Record<string, any>;
|
|
31
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Payload object for opening a file.
|
|
103
|
+
*/
|
|
32
104
|
export interface OpenRequestPayload {
|
|
105
|
+
/**
|
|
106
|
+
* Id of the file to open.
|
|
107
|
+
*/
|
|
33
108
|
fileId?: File['id'];
|
|
109
|
+
/**
|
|
110
|
+
* Id of the canvas from which the file is opened.
|
|
111
|
+
*/
|
|
34
112
|
fromCanvasId?: CanvasRetrieve['id'];
|
|
113
|
+
/**
|
|
114
|
+
* Optional, page index to open. Default is `null`.
|
|
115
|
+
*/
|
|
35
116
|
pageIndex?: MiniPage['page_index'];
|
|
117
|
+
/**
|
|
118
|
+
* URL of the file content.
|
|
119
|
+
*/
|
|
36
120
|
url?: File['content_url'];
|
|
121
|
+
/**
|
|
122
|
+
* Indicates if the canvas is in view.
|
|
123
|
+
*/
|
|
37
124
|
canvasInView?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Indicates if the user is in a call.
|
|
127
|
+
*/
|
|
38
128
|
isInCall?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Optional, overrides over the context of the current canvas, useful for injecting file annotation data. Default is {}.
|
|
131
|
+
*/
|
|
39
132
|
context?: Record<string, any>;
|
|
133
|
+
/**
|
|
134
|
+
* Search query string within the file.
|
|
135
|
+
*/
|
|
40
136
|
search?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Indicates if the file should be opened in a new tab.
|
|
139
|
+
*/
|
|
41
140
|
newTab?: boolean;
|
|
42
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Payload object for opening an external URL.
|
|
144
|
+
*/
|
|
43
145
|
export interface OpenExternalUrlRequestPayload {
|
|
146
|
+
/**
|
|
147
|
+
* The URL to open.
|
|
148
|
+
*/
|
|
44
149
|
url: string;
|
|
150
|
+
/**
|
|
151
|
+
* The target where the URL should be opened. Defaults to '_blank'.
|
|
152
|
+
*/
|
|
45
153
|
target?: '_self' | '_blank';
|
|
154
|
+
/**
|
|
155
|
+
* Additional options for opening the URL.
|
|
156
|
+
*/
|
|
46
157
|
options?: string;
|
|
47
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Payload object for opening a web view that is always on top.
|
|
161
|
+
*/
|
|
48
162
|
export interface OpenWebViewAlwaysOnTop {
|
|
163
|
+
/**
|
|
164
|
+
* The URL to open in the web view.
|
|
165
|
+
*/
|
|
49
166
|
url: string;
|
|
167
|
+
/**
|
|
168
|
+
* Settings for the modal window.
|
|
169
|
+
*/
|
|
50
170
|
modal_settings: {
|
|
171
|
+
/**
|
|
172
|
+
* The width of the modal window.
|
|
173
|
+
*/
|
|
51
174
|
width: number;
|
|
175
|
+
/**
|
|
176
|
+
* The height of the modal window.
|
|
177
|
+
*/
|
|
52
178
|
height: number;
|
|
179
|
+
/**
|
|
180
|
+
* The y-coordinate of the modal window.
|
|
181
|
+
*/
|
|
53
182
|
y: number;
|
|
183
|
+
/**
|
|
184
|
+
* The x-coordinate of the modal window.
|
|
185
|
+
*/
|
|
54
186
|
x: number;
|
|
55
187
|
};
|
|
56
188
|
}
|
package/lib/types/app.d.ts
CHANGED
|
@@ -23,6 +23,16 @@ export type ModuleSettings = {
|
|
|
23
23
|
export type EmbeddedLocationProperties = {
|
|
24
24
|
start_in_loading_mode?: boolean;
|
|
25
25
|
};
|
|
26
|
+
export type EmbeddedAppShortcut = {
|
|
27
|
+
id: string;
|
|
28
|
+
order_override?: number;
|
|
29
|
+
icon?: string;
|
|
30
|
+
};
|
|
31
|
+
export type EmbeddedAppShortcutsDict = {
|
|
32
|
+
fullscreen: EmbeddedAppShortcut[];
|
|
33
|
+
presentation: EmbeddedAppShortcut[];
|
|
34
|
+
edit: EmbeddedAppShortcut[];
|
|
35
|
+
};
|
|
26
36
|
export type Module = {
|
|
27
37
|
enabled: boolean;
|
|
28
38
|
headless?: boolean;
|
|
@@ -36,6 +46,7 @@ export type Module = {
|
|
|
36
46
|
};
|
|
37
47
|
settings?: Record<string, unknown>;
|
|
38
48
|
};
|
|
49
|
+
shortcuts: EmbeddedAppShortcutsDict;
|
|
39
50
|
} & EmbeddedLocationProperties;
|
|
40
51
|
export type AppJson = {
|
|
41
52
|
name: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentTypes } from '../apps/canvas-builder/types/canvas';
|
|
2
|
+
import { OrganizationSettings } from './organizationSettings.types';
|
|
2
3
|
|
|
3
4
|
export declare enum CanvasExcludedComponentTypesEnum {
|
|
4
5
|
Root = "Root",
|
|
@@ -11,13 +12,18 @@ export type CanvasComponentTypes = Exclude<keyof typeof ComponentTypes, CanvasEx
|
|
|
11
12
|
export type CanvasComponentAvailability = {
|
|
12
13
|
[component in CanvasComponentTypes]: boolean;
|
|
13
14
|
};
|
|
14
|
-
export type
|
|
15
|
-
|
|
15
|
+
export type AutohideSectionOnCreated = {
|
|
16
|
+
autohide_in_shared_link?: string;
|
|
17
|
+
start_date?: Date;
|
|
18
|
+
};
|
|
19
|
+
export type InstanceSettings = OrganizationSettings & {
|
|
16
20
|
canvas?: {
|
|
21
|
+
autohide_section_on_created?: AutohideSectionOnCreated;
|
|
17
22
|
component_availability?: CanvasComponentAvailability & {
|
|
18
23
|
apps?: Record<string, boolean>;
|
|
19
24
|
};
|
|
20
25
|
content_grid_autofill_files_filter_iteratee?: string;
|
|
21
26
|
section_content_grid_autofill_files_filter_iteratee?: string;
|
|
27
|
+
show_extra_exit_button_in_fullscreen_mode?: boolean;
|
|
22
28
|
};
|
|
23
29
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type LaunchDarklyBooleanFlagKey = 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_canvas_duplication' | 'allow_canvas_history' | 'allow_canvas_ownership_change' | 'allow_content_grid_autofill' | 'allow_creating_canvas_with_no_template' | 'allow_embeddable_hiding' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_upload' | 'are_sections_system_controlled' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'enable_analytics' | 'enable_canvas_node_debugging' | 'enable_experimental_canvas_builder_dnd' | 'enable_knock_notifications' | 'hide_asset_uploader' | 'interpolate_rep_canvases_on_edit_mode' | 'is_fe_sentry_enabled' | 'is_meeting_bar_account_selection_disabled' | 'is_meeting_bar_hidden' | 'is_rep_canvas_creation_disabled' | 'is_shared_link_creation_disabled' | 'is_timeline_component_allowed' | 'launch_in_full_screen_on_present_mode' | 'launch_in_present_mode_on_creation' | 'reorder_component_in_drawer' | 'show_asset_manager_for_multimedia' | 'show_popularity_icons' | 'show_system_filters' | 'prefer_online_handlers' | 'use_short_url_for_shared_link';
|
|
1
|
+
export type LaunchDarklyBooleanFlagKey = 'allow_ai_prompts_in_canvas_text' | 'allow_bulk_actions_canvases_files' | 'allow_canvas_duplication' | 'allow_canvas_history' | 'allow_canvas_ownership_change' | 'allow_content_grid_autofill' | 'allow_creating_canvas_with_no_template' | 'allow_embeddable_hiding' | 'allow_note_taking' | 'allow_rep_canvas_metadata_edit' | 'allow_rep_file_upload' | 'are_sections_system_controlled' | 'copy_context_to_canvas' | 'copy_template_metadata_to_canvas' | 'disable_canvas_edit_for_reps' | 'disable_file_edit_content' | 'disable_fullscreen_canvas_builder' | 'disable_impact_web_browser_fullscreen' | 'display_section_list_name' | 'enable_analytics' | 'enable_canvas_node_debugging' | 'enable_experimental_canvas_builder_dnd' | 'enable_knock_notifications' | 'hide_asset_uploader' | 'interpolate_rep_canvases_on_edit_mode' | 'is_fe_sentry_enabled' | 'is_meeting_bar_account_selection_disabled' | 'is_meeting_bar_hidden' | 'is_rep_canvas_creation_disabled' | 'is_shared_link_creation_disabled' | 'is_timeline_component_allowed' | 'launch_in_full_screen_on_present_mode' | 'launch_in_present_mode_on_creation' | 'reorder_component_in_drawer' | 'show_asset_manager_for_multimedia' | 'show_content_selector_list_view' | 'show_popularity_icons' | 'show_system_filters' | 'allow_canvases_tables_columns_settings' | 'prefer_online_handlers' | 'use_short_url_for_shared_link' | 'enable_suggested_tags' | 'enable_folder_details_edit';
|
|
2
|
+
export type LaunchDarklyNumberFlagKey = 'canvas_section_selector_page_size' | 'canvas_section_selector_selected_items_with_thumbnail_size';
|
|
4
3
|
type LaunchDarklyObjectFlags = {
|
|
5
4
|
canvas_table_pagination: CanvasTablePagination;
|
|
6
5
|
canvas_manager_table_columns: CanvasManagerTableColumns;
|
|
7
6
|
context_crm_shape: Record<string, any>;
|
|
8
|
-
translation_overrides: TranslationOverrides;
|
|
9
7
|
};
|
|
10
8
|
export type LaunchDarklyObjectFlagKey = keyof LaunchDarklyObjectFlags;
|
|
11
9
|
export type LaunchDarklyStringFlagKey = keyof typeof LaunchDarklyStringFlags;
|
|
@@ -32,6 +30,8 @@ export type LaunchDarklyEnv = {
|
|
|
32
30
|
[K in LaunchDarklyBooleanFlagKey]?: boolean;
|
|
33
31
|
} & {
|
|
34
32
|
[K in LaunchDarklyStringFlagKey]?: LaunchDarklyStringFlagValue<K>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in LaunchDarklyNumberFlagKey]?: number;
|
|
35
35
|
} & {
|
|
36
36
|
[K in keyof LaunchDarklyObjectFlags]?: LaunchDarklyObjectFlags[K];
|
|
37
37
|
} & {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Instance, File } from '../../types/openapi';
|
|
2
2
|
|
|
3
|
-
export type RecentFile = Pick<File, 'id' | 'name' | 'content_type' | '
|
|
3
|
+
export type RecentFile = Pick<File, 'id' | 'name' | 'content_type' | 'instance_id'> & {
|
|
4
|
+
tags?: Readonly<File['tags']>;
|
|
5
|
+
thumbnail_url?: string | null;
|
|
6
|
+
};
|
|
4
7
|
export type InstanceRecentFilesMap = Record<Instance['id'], RecentFile[]>;
|
package/lib/types/users.d.ts
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Parameters for getting users
|
|
5
|
+
*/
|
|
3
6
|
export interface GetUsersParams {
|
|
7
|
+
/** Search term, can be a string or a Vue ref to a string */
|
|
4
8
|
search?: Ref<string> | string;
|
|
9
|
+
/** Filters for the user query, can be any type of Vue ref */
|
|
5
10
|
filters?: Ref<any>;
|
|
6
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Request parameters for refreshing a service token
|
|
14
|
+
*/
|
|
7
15
|
export interface RefreshServiceTokenRequest {
|
|
16
|
+
/** Optional provider for the service token */
|
|
8
17
|
provider?: string;
|
|
9
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Response from refreshing a service token
|
|
21
|
+
*/
|
|
10
22
|
export interface RefreshServiceTokenResponse {
|
|
23
|
+
/** The new access token */
|
|
11
24
|
access_token: string;
|
|
12
25
|
}
|
|
@@ -11,6 +11,6 @@ export type DocumentWithFullscreen = Document & {
|
|
|
11
11
|
msExitFullscreen?: () => Promise<void>;
|
|
12
12
|
};
|
|
13
13
|
export declare function requestFullscreen(el?: FullscreenElement | null): Promise<void>;
|
|
14
|
-
export declare function exitFullscreen(): void
|
|
14
|
+
export declare function exitFullscreen(): Promise<void>;
|
|
15
15
|
export declare function toggleFullscreen(element: FullscreenElement): void;
|
|
16
16
|
export declare function isFullscreen(): boolean;
|
package/lib/util/string.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function highlight(input: string, search: string): string;
|
|
2
2
|
export declare function prefixHttps(url: string): string;
|
|
3
3
|
export declare function stripHtmlTags(htmlString: string | undefined): string;
|
|
4
|
+
export declare function stripHtmlPreservingLineBreaks(htmlString: string | undefined): string;
|
|
4
5
|
export declare function stripHtmlTagsAndTrim(htmlString: string | undefined): string;
|
package/package.json
CHANGED
package/types/openapi/index.d.ts
CHANGED
|
@@ -84,7 +84,6 @@ export type { FileCreate } from './models/FileCreate';
|
|
|
84
84
|
export type { FileCreateRequest } from './models/FileCreateRequest';
|
|
85
85
|
export type { FilePermission } from './models/FilePermission';
|
|
86
86
|
export type { FilePermissionRequest } from './models/FilePermissionRequest';
|
|
87
|
-
export type { FileRequest } from './models/FileRequest';
|
|
88
87
|
export type { FileRetrieve } from './models/FileRetrieve';
|
|
89
88
|
export type { FileRevision } from './models/FileRevision';
|
|
90
89
|
export type { FileRevisionRequest } from './models/FileRevisionRequest';
|
|
@@ -94,11 +93,14 @@ export type { FileUpdate } from './models/FileUpdate';
|
|
|
94
93
|
export type { FileUpdateRequest } from './models/FileUpdateRequest';
|
|
95
94
|
export type { FileVersion } from './models/FileVersion';
|
|
96
95
|
export type { Folder } from './models/Folder';
|
|
96
|
+
export type { FolderCanvas } from './models/FolderCanvas';
|
|
97
97
|
export type { FolderCreate } from './models/FolderCreate';
|
|
98
98
|
export type { FolderCreateRequest } from './models/FolderCreateRequest';
|
|
99
99
|
export type { FolderFile } from './models/FolderFile';
|
|
100
100
|
export type { FolderFolder } from './models/FolderFolder';
|
|
101
101
|
export type { FolderRetrieve } from './models/FolderRetrieve';
|
|
102
|
+
export type { FolderRule } from './models/FolderRule';
|
|
103
|
+
export type { FolderRuleRequest } from './models/FolderRuleRequest';
|
|
102
104
|
export type { FolderUpdate } from './models/FolderUpdate';
|
|
103
105
|
export type { FolderUpdateRequest } from './models/FolderUpdateRequest';
|
|
104
106
|
export type { Instance } from './models/Instance';
|
|
@@ -166,6 +168,7 @@ export type { MiniUser } from './models/MiniUser';
|
|
|
166
168
|
export type { MiniUserRequest } from './models/MiniUserRequest';
|
|
167
169
|
export type { MostActiveUser } from './models/MostActiveUser';
|
|
168
170
|
export type { OfflineSyncFolder } from './models/OfflineSyncFolder';
|
|
171
|
+
export { OperatorEnum } from './models/OperatorEnum';
|
|
169
172
|
export type { Organization } from './models/Organization';
|
|
170
173
|
export type { OrganizationAnalytics } from './models/OrganizationAnalytics';
|
|
171
174
|
export type { OrganizationAnalyticsCurrentPeriod } from './models/OrganizationAnalyticsCurrentPeriod';
|
|
@@ -222,10 +225,6 @@ export type { PatchedMetadataTemplateRequest } from './models/PatchedMetadataTem
|
|
|
222
225
|
export type { PatchedOrganizationUpdateRequest } from './models/PatchedOrganizationUpdateRequest';
|
|
223
226
|
export type { PatchedRegionRequest } from './models/PatchedRegionRequest';
|
|
224
227
|
export type { PatchedUserRequest } from './models/PatchedUserRequest';
|
|
225
|
-
export type { PSPDFKitAuthPayload } from './models/PSPDFKitAuthPayload';
|
|
226
|
-
export type { PSPDFKitAuthPayloadRequest } from './models/PSPDFKitAuthPayloadRequest';
|
|
227
|
-
export type { PSPDFKitToken } from './models/PSPDFKitToken';
|
|
228
|
-
export type { PSPDFKitTokenRequest } from './models/PSPDFKitTokenRequest';
|
|
229
228
|
export type { Region } from './models/Region';
|
|
230
229
|
export type { RegionRequest } from './models/RegionRequest';
|
|
231
230
|
export type { Revision } from './models/Revision';
|
|
@@ -28,6 +28,7 @@ export type CanvasCreate = {
|
|
|
28
28
|
readonly shared_link: MiniSharedLink;
|
|
29
29
|
account?: Account | null;
|
|
30
30
|
readonly events: Array<MiniEvent>;
|
|
31
|
+
folder_id?: string | null;
|
|
31
32
|
readonly owned_by: MiniUser;
|
|
32
33
|
readonly created_at: string;
|
|
33
34
|
readonly created_by: MiniUser;
|
|
@@ -28,6 +28,7 @@ export type CanvasRetrieve = {
|
|
|
28
28
|
readonly shared_link: MiniSharedLink;
|
|
29
29
|
account?: Account | null;
|
|
30
30
|
readonly events: Array<MiniEvent>;
|
|
31
|
+
folder_id?: string | null;
|
|
31
32
|
readonly owned_by: MiniUser;
|
|
32
33
|
readonly created_at: string;
|
|
33
34
|
readonly created_by: MiniUser;
|
|
@@ -28,6 +28,7 @@ export type CanvasUpdate = {
|
|
|
28
28
|
readonly shared_link: MiniSharedLink;
|
|
29
29
|
account?: Account | null;
|
|
30
30
|
readonly events: Array<MiniEvent>;
|
|
31
|
+
folder_id?: string | null;
|
|
31
32
|
readonly owned_by: MiniUser;
|
|
32
33
|
readonly created_at: string;
|
|
33
34
|
readonly created_by: MiniUser;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AccessTypeEnum } from './AccessTypeEnum';
|
|
2
|
+
import { FolderRule } from './FolderRule';
|
|
2
3
|
import { MiniUser } from './MiniUser';
|
|
3
4
|
|
|
4
5
|
export type DeletedFolder = {
|
|
5
6
|
readonly id: string;
|
|
6
7
|
name: string;
|
|
7
|
-
readonly
|
|
8
|
+
readonly content_type: string;
|
|
8
9
|
access_type?: AccessTypeEnum;
|
|
9
|
-
|
|
10
|
-
readonly depth: number;
|
|
10
|
+
rules?: Array<FolderRule>;
|
|
11
11
|
readonly owned_by: MiniUser;
|
|
12
12
|
readonly created_at: string;
|
|
13
13
|
readonly created_by: MiniUser;
|
|
@@ -1,13 +1,13 @@
|
|
|
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 depth: number;
|
|
10
|
+
rules?: Array<FolderRule>;
|
|
11
11
|
readonly owned_by: MiniUser;
|
|
12
12
|
readonly created_at: string;
|
|
13
13
|
readonly created_by: MiniUser;
|