@pitcher/js-api 1.21.0-beta.5 → 1.21.0-beta.7
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 +81 -20
- 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/apps/canvas-builder/composables/useInstalledEmbeddables.d.ts +12 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagementShareCanvas.use.d.ts +3 -1
- package/lib/composables/useCanvasTablesPagination.d.ts +13 -0
- package/lib/sdk/api/HighLevelApi.d.ts +4 -1
- package/lib/sdk/api/modules/files.d.ts +4 -1
- package/lib/sdk/interfaces.d.ts +1 -0
- package/lib/sdk/main.d.ts +12 -3
- package/lib/types/call.d.ts +2 -1
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { AppFile } from '../../../types/app';
|
|
3
|
+
|
|
4
|
+
export declare function useInstalledEmbeddables(): {
|
|
5
|
+
isFetching: import('vue').Ref<boolean>;
|
|
6
|
+
installedEmbeddablesById: import('vue').Ref<Record<string, AppFile> | null>;
|
|
7
|
+
refetchedFor: Record<string, boolean>;
|
|
8
|
+
shouldUseDeviceUrl: ComputedRef<boolean | undefined>;
|
|
9
|
+
refetch: (fileId?: AppFile["id"]) => void;
|
|
10
|
+
cleanup: () => void;
|
|
11
|
+
getDeviceUrl: (fileId?: AppFile["id"]) => string | undefined;
|
|
12
|
+
};
|
|
@@ -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;
|
|
@@ -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"];
|
|
@@ -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'];
|
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"];
|
|
@@ -258,7 +261,10 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
258
261
|
shareCanvas(payload: {
|
|
259
262
|
id: import('../main.lib').Canvas["id"];
|
|
260
263
|
}): Promise<import('../main.lib').SharedLink>;
|
|
261
|
-
getFiles(payload: import('./payload.types').ListFilesPayload
|
|
264
|
+
getFiles(payload: import('./payload.types').ListFilesPayload & {
|
|
265
|
+
filters?: Record<string, any>;
|
|
266
|
+
fields?: string;
|
|
267
|
+
}): Promise<import('../main.lib').PaginatedFileList>;
|
|
262
268
|
getRecentFiles(payload?: import('./payload.types').GetRecentFilesPayload): Promise<import('../main.lib').File[]>;
|
|
263
269
|
downloadFile(payload: {
|
|
264
270
|
file_id: import('../main.lib').File["id"];
|
|
@@ -402,7 +408,10 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
402
408
|
shareCanvas(payload: {
|
|
403
409
|
id: import('../main.lib').Canvas["id"];
|
|
404
410
|
}): Promise<import('../main.lib').SharedLink>;
|
|
405
|
-
getFiles(payload: import('./payload.types').ListFilesPayload
|
|
411
|
+
getFiles(payload: import('./payload.types').ListFilesPayload & {
|
|
412
|
+
filters?: Record<string, any>;
|
|
413
|
+
fields?: string;
|
|
414
|
+
}): Promise<import('../main.lib').PaginatedFileList>;
|
|
406
415
|
getRecentFiles(payload?: import('./payload.types').GetRecentFilesPayload): Promise<import('../main.lib').File[]>;
|
|
407
416
|
downloadFile(payload: {
|
|
408
417
|
file_id: import('../main.lib').File["id"];
|
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' | '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;
|