@pitcher/js-api 1.21.0-beta.6 → 1.21.0-beta.8
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 +69 -12
- 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/canvas-builder/composables/useCanvasExit.d.ts +3 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +3 -1
- package/lib/composables/useCanvasTablesPagination.d.ts +13 -0
- package/lib/main.lib.d.ts +1 -0
- package/lib/sdk/api/HighLevelApi.d.ts +6 -2
- package/lib/sdk/api/modules/files.d.ts +4 -1
- package/lib/sdk/api/modules/users.d.ts +2 -1
- package/lib/sdk/interfaces.d.ts +1 -0
- package/lib/sdk/main.d.ts +18 -6
- package/lib/sdk/utils/object.d.ts +1 -0
- package/lib/sdk/utils/object.spec.d.ts +1 -0
- package/lib/types/call.d.ts +2 -1
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Canvas, CanvasList, SharedLink } from '../../../types/openapi';
|
|
2
2
|
|
|
3
3
|
export type SharingHandler = (canvasId: string) => Promise<SharedLink>;
|
|
4
|
-
declare const _default: (sharingHandler: SharingHandler
|
|
4
|
+
declare const _default: (sharingHandler: SharingHandler, options?: {
|
|
5
|
+
useShortUrl?: boolean;
|
|
6
|
+
}) => {
|
|
5
7
|
copySharingUrlToClipboard: (canvas: Canvas | CanvasList) => Promise<void>;
|
|
6
8
|
};
|
|
7
9
|
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface PaginationPayload<T> {
|
|
2
|
+
storageKey?: string;
|
|
3
|
+
initialFilters: T;
|
|
4
|
+
initialOrdering: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: <T>({ storageKey, initialFilters, initialOrdering }: PaginationPayload<T>) => {
|
|
7
|
+
search: import('vue').Ref<string> | import('@vueuse/shared').RemovableRef<string>;
|
|
8
|
+
pageSize: import('vue').Ref<number> | import('@vueuse/shared').RemovableRef<number>;
|
|
9
|
+
selectedFilters: import('@vueuse/shared').RemovableRef<T> | import('vue').Ref<import('vue').UnwrapRef<T>>;
|
|
10
|
+
page: import('vue').Ref<number>;
|
|
11
|
+
ordering: import('vue').Ref<string>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
package/lib/main.lib.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export { default as CTags } from './components/CTags/CTags.vue';
|
|
|
87
87
|
export { default as CMovableWidget } from './components/CMovableWidget/CMovableWidget.vue';
|
|
88
88
|
export { default as CUserMenu } from './components/CUserMenu/CUserMenu.vue';
|
|
89
89
|
export { default as CList } from './components/CList/CList.vue';
|
|
90
|
+
export { default as CKnockNotificationsAppWrapper } from './components/CKnockNotificationsAppWrapper/CKnockNotificationsAppWrapper.vue';
|
|
90
91
|
export { default as CanvasBuilderApp } from '@canvas-builder/App.vue';
|
|
91
92
|
export { type CanvasBuilderProps, CanvasBuilderMode } from '@canvas-builder/types/canvas';
|
|
92
93
|
export { default as Browser } from '@browser/App.vue';
|
|
@@ -44,7 +44,10 @@ export declare function createHighLevelApi(options?: ApiOptions): {
|
|
|
44
44
|
shareCanvas(payload: {
|
|
45
45
|
id: import('../../main.lib').Canvas["id"];
|
|
46
46
|
}): Promise<import('../../main.lib').SharedLink>;
|
|
47
|
-
getFiles(payload: import('../payload.types').ListFilesPayload
|
|
47
|
+
getFiles(payload: import('../payload.types').ListFilesPayload & {
|
|
48
|
+
filters?: Record<string, any>;
|
|
49
|
+
fields?: string;
|
|
50
|
+
}): Promise<import('../../main.lib').PaginatedFileList>;
|
|
48
51
|
getRecentFiles(payload?: import('../payload.types').GetRecentFilesPayload): Promise<import('../../main.lib').File[]>;
|
|
49
52
|
downloadFile(payload: {
|
|
50
53
|
file_id: import('../../main.lib').File["id"];
|
|
@@ -68,7 +71,8 @@ export declare function createHighLevelApi(options?: ApiOptions): {
|
|
|
68
71
|
includeExpired?: boolean;
|
|
69
72
|
}): Promise<any>;
|
|
70
73
|
getUsers(payload?: import('../../main.lib').GetUsersParams): Promise<import('../../main.lib').PaginatedData<import('../../main.lib').User>>;
|
|
71
|
-
refreshServiceToken(payload
|
|
74
|
+
refreshServiceToken(payload?: import('../../main.lib').RefreshServiceTokenRequest): Promise<import('../../main.lib').RefreshServiceTokenResponse>;
|
|
75
|
+
refreshAccessToken(): any;
|
|
72
76
|
fetchDocumentInfo(payload: {
|
|
73
77
|
fileId: import('../../main.lib').File["id"];
|
|
74
78
|
}): Promise<{
|
|
@@ -2,7 +2,10 @@ import { File, FileRetrieve, PaginatedFileList, FileUpdateRequest } from '../../
|
|
|
2
2
|
import { GetRecentFilesPayload, ListFilesPayload } from '../../payload.types';
|
|
3
3
|
import { AllFileCreateRequest, DeviceFile } from '../../../types/files';
|
|
4
4
|
|
|
5
|
-
export declare function getFiles(payload: ListFilesPayload
|
|
5
|
+
export declare function getFiles(payload: ListFilesPayload & {
|
|
6
|
+
filters?: Record<string, any>;
|
|
7
|
+
fields?: string;
|
|
8
|
+
}): Promise<PaginatedFileList>;
|
|
6
9
|
export declare function getRecentFiles(payload?: GetRecentFilesPayload): Promise<File[]>;
|
|
7
10
|
export declare function downloadFile(payload: {
|
|
8
11
|
file_id: File['id'];
|
|
@@ -3,4 +3,5 @@ import { PaginatedData } from '../../../types/paginatedData';
|
|
|
3
3
|
import { User } from '../../../../types/openapi';
|
|
4
4
|
|
|
5
5
|
export declare function getUsers(payload?: GetUsersParams): Promise<PaginatedData<User>>;
|
|
6
|
-
export declare function refreshServiceToken(payload
|
|
6
|
+
export declare function refreshServiceToken(payload?: RefreshServiceTokenRequest): Promise<RefreshServiceTokenResponse>;
|
|
7
|
+
export declare function refreshAccessToken(): any;
|
package/lib/sdk/interfaces.d.ts
CHANGED
package/lib/sdk/main.d.ts
CHANGED
|
@@ -97,7 +97,10 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
97
97
|
shareCanvas(payload: {
|
|
98
98
|
id: import('../main.lib').Canvas["id"];
|
|
99
99
|
}): Promise<import('../main.lib').SharedLink>;
|
|
100
|
-
getFiles(payload: import('./payload.types').ListFilesPayload
|
|
100
|
+
getFiles(payload: import('./payload.types').ListFilesPayload & {
|
|
101
|
+
filters?: Record<string, any>;
|
|
102
|
+
fields?: string;
|
|
103
|
+
}): Promise<import('../main.lib').PaginatedFileList>;
|
|
101
104
|
getRecentFiles(payload?: import('./payload.types').GetRecentFilesPayload): Promise<import('../main.lib').File[]>;
|
|
102
105
|
downloadFile(payload: {
|
|
103
106
|
file_id: import('../main.lib').File["id"];
|
|
@@ -121,7 +124,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
121
124
|
includeExpired?: boolean;
|
|
122
125
|
}): Promise<any>;
|
|
123
126
|
getUsers(payload?: import('../main.lib').GetUsersParams): Promise<import('../main.lib').PaginatedData<import('../main.lib').User>>;
|
|
124
|
-
refreshServiceToken(payload
|
|
127
|
+
refreshServiceToken(payload?: import('../main.lib').RefreshServiceTokenRequest): Promise<import('../main.lib').RefreshServiceTokenResponse>;
|
|
128
|
+
refreshAccessToken(): any;
|
|
125
129
|
fetchDocumentInfo(payload: {
|
|
126
130
|
fileId: import('../main.lib').File["id"];
|
|
127
131
|
}): Promise<{
|
|
@@ -258,7 +262,10 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
258
262
|
shareCanvas(payload: {
|
|
259
263
|
id: import('../main.lib').Canvas["id"];
|
|
260
264
|
}): Promise<import('../main.lib').SharedLink>;
|
|
261
|
-
getFiles(payload: import('./payload.types').ListFilesPayload
|
|
265
|
+
getFiles(payload: import('./payload.types').ListFilesPayload & {
|
|
266
|
+
filters?: Record<string, any>;
|
|
267
|
+
fields?: string;
|
|
268
|
+
}): Promise<import('../main.lib').PaginatedFileList>;
|
|
262
269
|
getRecentFiles(payload?: import('./payload.types').GetRecentFilesPayload): Promise<import('../main.lib').File[]>;
|
|
263
270
|
downloadFile(payload: {
|
|
264
271
|
file_id: import('../main.lib').File["id"];
|
|
@@ -282,7 +289,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
282
289
|
includeExpired?: boolean;
|
|
283
290
|
}): Promise<any>;
|
|
284
291
|
getUsers(payload?: import('../main.lib').GetUsersParams): Promise<import('../main.lib').PaginatedData<import('../main.lib').User>>;
|
|
285
|
-
refreshServiceToken(payload
|
|
292
|
+
refreshServiceToken(payload?: import('../main.lib').RefreshServiceTokenRequest): Promise<import('../main.lib').RefreshServiceTokenResponse>;
|
|
293
|
+
refreshAccessToken(): any;
|
|
286
294
|
fetchDocumentInfo(payload: {
|
|
287
295
|
fileId: import('../main.lib').File["id"];
|
|
288
296
|
}): Promise<{
|
|
@@ -402,7 +410,10 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
402
410
|
shareCanvas(payload: {
|
|
403
411
|
id: import('../main.lib').Canvas["id"];
|
|
404
412
|
}): Promise<import('../main.lib').SharedLink>;
|
|
405
|
-
getFiles(payload: import('./payload.types').ListFilesPayload
|
|
413
|
+
getFiles(payload: import('./payload.types').ListFilesPayload & {
|
|
414
|
+
filters?: Record<string, any>;
|
|
415
|
+
fields?: string;
|
|
416
|
+
}): Promise<import('../main.lib').PaginatedFileList>;
|
|
406
417
|
getRecentFiles(payload?: import('./payload.types').GetRecentFilesPayload): Promise<import('../main.lib').File[]>;
|
|
407
418
|
downloadFile(payload: {
|
|
408
419
|
file_id: import('../main.lib').File["id"];
|
|
@@ -426,7 +437,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
426
437
|
includeExpired?: boolean;
|
|
427
438
|
}): Promise<any>;
|
|
428
439
|
getUsers(payload?: import('../main.lib').GetUsersParams): Promise<import('../main.lib').PaginatedData<import('../main.lib').User>>;
|
|
429
|
-
refreshServiceToken(payload
|
|
440
|
+
refreshServiceToken(payload?: import('../main.lib').RefreshServiceTokenRequest): Promise<import('../main.lib').RefreshServiceTokenResponse>;
|
|
441
|
+
refreshAccessToken(): any;
|
|
430
442
|
fetchDocumentInfo(payload: {
|
|
431
443
|
fileId: import('../main.lib').File["id"];
|
|
432
444
|
}): Promise<{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function truncateObject(obj: any, currentDepth?: number, lengthTrigger?: number): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/types/call.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouteLocation } from 'vue-router';
|
|
2
|
-
import { SfEventExtended, SfAccountMini, SfUser, SfContactBasic } from './sfdc';
|
|
2
|
+
import { SfEventExtended, SfAccountMini, SfAccount, SfUser, SfContactBasic } from './sfdc';
|
|
3
3
|
import { Canvas } from '../../types/openapi';
|
|
4
4
|
|
|
5
5
|
export declare const CALL_STORAGE_KEY = "call";
|
|
@@ -38,5 +38,6 @@ export interface Call {
|
|
|
38
38
|
postAction?: string | null;
|
|
39
39
|
postActionPath?: string | null;
|
|
40
40
|
presentationHistory?: CallPresentationHistory;
|
|
41
|
+
recentAccounts?: SfAccount[];
|
|
41
42
|
}
|
|
42
43
|
export declare const INITIAL_CALL_STATE: Call;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TranslationOverrides } from './translations';
|
|
2
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' | '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';
|
|
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';
|
|
4
4
|
type LaunchDarklyObjectFlags = {
|
|
5
5
|
canvas_table_pagination: CanvasTablePagination;
|
|
6
6
|
canvas_manager_table_columns: CanvasManagerTableColumns;
|