@pitcher/js-api 1.22.0-rc.0 → 1.22.0-rc.2
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 +29 -10
- 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/App.vue.d.ts +9 -1
- package/lib/apps/browser/components/Content/Common/BrowserListItem.vue.d.ts +6 -0
- package/lib/apps/browser/stores/api.d.ts +77 -2
- package/lib/apps/browser/stores/app.d.ts +2 -32
- package/lib/apps/canvas-builder/App.vue.d.ts +80 -40
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponent.vue.d.ts +2 -1
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentActionToolbar.vue.d.ts +103 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentLegacy.vue.d.ts +104 -0
- package/lib/apps/canvas-builder/components/container/EditableComponent/EditableComponentRevamp.vue.d.ts +107 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/components/PreviewImage.vue.d.ts +13 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/cache.use.d.ts +12 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/composables/zoom.use.d.ts +15 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/utils/type.util.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorItem.vue.d.ts +15 -1
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorSelected.vue.d.ts +2 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorToolbar.vue.d.ts +13 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorWithDragAndDrop.vue.d.ts +15 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +141 -17
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +20 -0
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +2 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +22 -11
- package/lib/apps/canvas-builder/util/url.d.ts +1 -0
- package/lib/apps/content-selector/appTypes.d.ts +1 -0
- package/lib/apps/content-selector/components/AiImages.vue.d.ts +10 -0
- package/lib/apps/content-selector/components/ui/MediaPreview.vue.d.ts +7 -1
- package/lib/apps/content-selector/stores/app.d.ts +2 -2
- package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +8 -4
- package/lib/components/CConfigEditor/CConfigEditor.vue.d.ts +6 -3
- package/lib/components/CConfirmationModal/CConfirmationModal.vue.d.ts +2 -2
- package/lib/components/CEntitySelector/CEntitySelector.vue.d.ts +1 -11
- package/lib/components/CFileAttributes/CFileAttributes.vue.d.ts +41 -0
- package/lib/components/CFileThumbnail/CFileThumbnail.vue.d.ts +3 -0
- package/lib/components/CFileViewer/CFileViewer.vue.d.ts +1 -1
- package/lib/components/CFileViewer/pdf/CFileViewer.pdf.link.types.d.ts +2 -0
- package/lib/components/CInputPlaceholder/CInputPlaceholder.vue.d.ts +24 -0
- package/lib/components/CList/CListItem.vue.d.ts +2 -0
- package/lib/components/CPaginationButtons/CPaginationButtons.vue.d.ts +24 -0
- package/lib/components/CSlider/CSlider.vue.d.ts +1 -1
- package/lib/components/CTableInput/CTableInput.vue.d.ts +1 -277
- package/lib/components/CTagsPlaceholder/CTagsPlaceholder.vue.d.ts +6 -0
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +2 -57
- package/lib/components/canvases/CanvasesManagementBulk.use.d.ts +8 -0
- package/lib/components/filters/CSelectFilter.vue.d.ts +1 -3
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +28 -57
- package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +3 -1
- package/lib/components/savedCanvases/smartFolders/SmartFolderNameCell.vue.d.ts +10 -0
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +386 -0
- package/lib/components/savedCanvases/smartFolders/SmartFolders.vue.d.ts +14 -0
- package/lib/components/savedCanvases/smartFolders/SmartFoldersConfigurationModal.vue.d.ts +6 -0
- package/lib/components/savedCanvases/smartFolders/SmartFoldersMissingConfig.vue.d.ts +6 -0
- package/lib/components/sections/CSectionManagement.vue.d.ts +2 -47
- package/lib/composables/appsDb.use.d.ts +32 -0
- package/lib/composables/useAdminAndDsrState.d.ts +6 -0
- package/lib/composables/useAssetUpload.d.ts +2 -1
- package/lib/composables/useConnectUpload.d.ts +3 -1
- package/lib/composables/useFetchUsers.d.ts +1 -3
- package/lib/constants/appsDb.const.d.ts +10 -0
- package/lib/constants/cdp.const.d.ts +1 -0
- package/lib/main.lib.d.ts +2 -0
- package/lib/sdk/api/HighLevelApi.d.ts +2 -1
- package/lib/sdk/api/modules/admin/files.admin.d.ts +12 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +5 -0
- package/lib/sdk/api/modules/dsr/files.dsr.d.ts +17 -0
- package/lib/sdk/api/modules/dsr/index.d.ts +4 -0
- package/lib/sdk/api/modules/dsr/types.dsr.d.ts +2 -0
- package/lib/sdk/api/modules/pspdfkit.d.ts +25 -2
- package/lib/sdk/interfaces.d.ts +1 -0
- package/lib/sdk/main.d.ts +14 -3
- package/lib/sdk/payload.types.d.ts +4 -0
- package/lib/theme/light.d.ts +46 -10
- package/lib/types/app.d.ts +1 -1
- package/lib/types/launchDarkly.types.d.ts +1 -1
- package/lib/types/organizationSettings.types.d.ts +13 -0
- package/lib/util/eval.d.ts +2 -0
- package/lib/util/network.d.ts +0 -3
- package/package.json +1 -1
|
@@ -39,7 +39,8 @@ declare function __VLS_template(): {
|
|
|
39
39
|
}) => any) | undefined;
|
|
40
40
|
onRestoreColumns?: (() => any) | undefined;
|
|
41
41
|
"onCreate:canvas"?: (() => any) | undefined;
|
|
42
|
-
|
|
42
|
+
onConfigureSmartFolders?: (() => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
44
|
search: (s: string) => any;
|
|
44
45
|
select: (payload: {
|
|
45
46
|
id: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting["id"];
|
|
@@ -57,37 +58,8 @@ declare function __VLS_template(): {
|
|
|
57
58
|
}) => any;
|
|
58
59
|
restoreColumns: () => any;
|
|
59
60
|
"create:canvas": () => any;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
isLoadingItems?: boolean;
|
|
63
|
-
isCreateHidden?: boolean;
|
|
64
|
-
isViewHidden?: boolean;
|
|
65
|
-
filters: {
|
|
66
|
-
tag: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
67
|
-
status: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
68
|
-
template: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
69
|
-
ownedBy: import('../canvases/CanvasesManagementToolbarFilters.use').FilterCategory;
|
|
70
|
-
};
|
|
71
|
-
tableColumnsSettings: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting[];
|
|
72
|
-
}> & Readonly<{
|
|
73
|
-
onSearch?: ((s: string) => any) | undefined;
|
|
74
|
-
onSelect?: ((payload: {
|
|
75
|
-
id: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting["id"];
|
|
76
|
-
checked: boolean;
|
|
77
|
-
}) => any) | undefined;
|
|
78
|
-
onMove?: ((payload: {
|
|
79
|
-
targetItemId: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting["id"];
|
|
80
|
-
itemId: string;
|
|
81
|
-
}) => any) | undefined;
|
|
82
|
-
"onUpdate:filters"?: ((value: {
|
|
83
|
-
tag: string[];
|
|
84
|
-
status: string[];
|
|
85
|
-
template: string[];
|
|
86
|
-
ownedBy: string[];
|
|
87
|
-
}) => any) | undefined;
|
|
88
|
-
onRestoreColumns?: (() => any) | undefined;
|
|
89
|
-
"onCreate:canvas"?: (() => any) | undefined;
|
|
90
|
-
}>, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
61
|
+
configureSmartFolders: () => any;
|
|
62
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
91
63
|
P: {};
|
|
92
64
|
B: {};
|
|
93
65
|
D: {};
|
|
@@ -124,7 +96,30 @@ declare function __VLS_template(): {
|
|
|
124
96
|
}) => any) | undefined;
|
|
125
97
|
onRestoreColumns?: (() => any) | undefined;
|
|
126
98
|
"onCreate:canvas"?: (() => any) | undefined;
|
|
99
|
+
onConfigureSmartFolders?: (() => any) | undefined;
|
|
127
100
|
}>, {}, {}, {}, {}, {}> | null;
|
|
101
|
+
smartFoldersRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
102
|
+
toolbarHeight: number;
|
|
103
|
+
}> & Readonly<{
|
|
104
|
+
onOpen?: ((e: MouseEvent, canvas: CanvasRetrieve) => any) | undefined;
|
|
105
|
+
}>, {
|
|
106
|
+
showConfigurationModal: () => void;
|
|
107
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
108
|
+
open: (e: MouseEvent, canvas: CanvasRetrieve) => any;
|
|
109
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
110
|
+
P: {};
|
|
111
|
+
B: {};
|
|
112
|
+
D: {};
|
|
113
|
+
C: {};
|
|
114
|
+
M: {};
|
|
115
|
+
Defaults: {};
|
|
116
|
+
}, Readonly<{
|
|
117
|
+
toolbarHeight: number;
|
|
118
|
+
}> & Readonly<{
|
|
119
|
+
onOpen?: ((e: MouseEvent, canvas: CanvasRetrieve) => any) | undefined;
|
|
120
|
+
}>, {
|
|
121
|
+
showConfigurationModal: () => void;
|
|
122
|
+
}, {}, {}, {}, {}> | null;
|
|
128
123
|
tableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
129
124
|
selectedRows?: Record<string, boolean>;
|
|
130
125
|
scrollerClass?: string;
|
|
@@ -160,31 +155,7 @@ declare function __VLS_template(): {
|
|
|
160
155
|
pageChanged: (p: PaginationState) => any;
|
|
161
156
|
pageSizeChanged: (p: number) => any;
|
|
162
157
|
"update:selectedRows": (s: Record<string, boolean>) => any;
|
|
163
|
-
}, import('vue').
|
|
164
|
-
selectedRows?: Record<string, boolean>;
|
|
165
|
-
scrollerClass?: string;
|
|
166
|
-
columns: ColumnDef<{
|
|
167
|
-
[x: string]: any;
|
|
168
|
-
}, any>[];
|
|
169
|
-
data: {
|
|
170
|
-
[x: string]: any;
|
|
171
|
-
}[];
|
|
172
|
-
initialSorting?: SortingState;
|
|
173
|
-
loading?: boolean;
|
|
174
|
-
pageSize?: number;
|
|
175
|
-
pageSizes?: number[];
|
|
176
|
-
pageIndex?: number;
|
|
177
|
-
totalCount?: number;
|
|
178
|
-
displayedCount?: number;
|
|
179
|
-
serverSide?: boolean;
|
|
180
|
-
scrollerStyle?: import('vue').StyleValue;
|
|
181
|
-
selectable?: boolean;
|
|
182
|
-
}> & Readonly<{
|
|
183
|
-
onSortChanged?: ((s: SortingState) => any) | undefined;
|
|
184
|
-
onPageChanged?: ((p: PaginationState) => any) | undefined;
|
|
185
|
-
onPageSizeChanged?: ((p: number) => any) | undefined;
|
|
186
|
-
"onUpdate:selectedRows"?: ((s: Record<string, boolean>) => any) | undefined;
|
|
187
|
-
}>, {
|
|
158
|
+
}, import('vue').PublicProps, {
|
|
188
159
|
data: {
|
|
189
160
|
[x: string]: any;
|
|
190
161
|
}[];
|
|
@@ -12,7 +12,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
12
12
|
ownedBy: FilterCategory;
|
|
13
13
|
};
|
|
14
14
|
tableColumnsSettings: TableColumnSetting[];
|
|
15
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
16
|
search: (s: string) => any;
|
|
17
17
|
select: (payload: {
|
|
18
18
|
id: TableColumnSetting["id"];
|
|
@@ -30,6 +30,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
30
30
|
}) => any;
|
|
31
31
|
restoreColumns: () => any;
|
|
32
32
|
"create:canvas": () => any;
|
|
33
|
+
configureSmartFolders: () => any;
|
|
33
34
|
}, string, import('vue').PublicProps, Readonly<{
|
|
34
35
|
modelValue: string;
|
|
35
36
|
isLoadingItems?: boolean;
|
|
@@ -60,5 +61,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
60
61
|
}) => any) | undefined;
|
|
61
62
|
onRestoreColumns?: (() => any) | undefined;
|
|
62
63
|
"onCreate:canvas"?: (() => any) | undefined;
|
|
64
|
+
onConfigureSmartFolders?: (() => any) | undefined;
|
|
63
65
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
64
66
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
name: string;
|
|
3
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
click: (e: Event) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
+
name: string;
|
|
7
|
+
}> & Readonly<{
|
|
8
|
+
onClick?: ((e: Event) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
3
|
+
type SmartFoldersDisplayMode = 'folders' | 'canvases';
|
|
4
|
+
interface PathSegment {
|
|
5
|
+
value: string;
|
|
6
|
+
property: SmartFolderProperty;
|
|
7
|
+
}
|
|
8
|
+
export declare const baseProperties: readonly ["id", "name", "metadata", "context", "is_draft"];
|
|
9
|
+
export declare const defaultSmartFoldersAttributes: readonly [{
|
|
10
|
+
readonly name: "status";
|
|
11
|
+
readonly accessor: "item => item?.is_draft ? 'Draft' :'✅ Ready'";
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "shared_link";
|
|
15
|
+
readonly accessor: "item => !!item?.shared_link?.url";
|
|
16
|
+
readonly type: "boolean";
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "owned_by";
|
|
19
|
+
readonly accessor: "item => item.owned_by?.name || item.owned_by?.email";
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "created_at";
|
|
23
|
+
readonly accessor: "created_at";
|
|
24
|
+
readonly type: "date";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "created_by";
|
|
27
|
+
readonly accessor: "item => item.created_by?.name || item.created_by?.email";
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "modified_at";
|
|
31
|
+
readonly accessor: "modified_at";
|
|
32
|
+
readonly type: "date";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "modified_by";
|
|
35
|
+
readonly accessor: "item => item.modified_by?.name || item.modified_by?.email";
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "tags";
|
|
39
|
+
readonly accessor: "tags";
|
|
40
|
+
readonly type: "array";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "template";
|
|
43
|
+
readonly accessor: "template.name";
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
}];
|
|
46
|
+
export type SmartFolderProperty = {
|
|
47
|
+
name: string;
|
|
48
|
+
display_name?: string;
|
|
49
|
+
accessor: string;
|
|
50
|
+
type: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
};
|
|
53
|
+
export interface SmartFolderConfig {
|
|
54
|
+
enabledSmartFolderProperties: SmartFolderProperty[];
|
|
55
|
+
}
|
|
56
|
+
declare function toggleViewMode(): void;
|
|
57
|
+
declare function setSmartFoldersView(): void;
|
|
58
|
+
declare function setNormalView(): void;
|
|
59
|
+
export default function useSmartFolders(emit?: (event: 'open', ...args: any[]) => void): {
|
|
60
|
+
currentGroupingData: ComputedRef<{
|
|
61
|
+
readonly id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
content?: Record<string, any> | undefined;
|
|
64
|
+
context?: Record<string, any> | undefined;
|
|
65
|
+
theme?: (Record<string, any> | null) | undefined;
|
|
66
|
+
is_draft?: boolean | undefined;
|
|
67
|
+
is_template?: boolean | undefined;
|
|
68
|
+
is_section?: boolean | undefined;
|
|
69
|
+
is_editable?: boolean | undefined;
|
|
70
|
+
is_default?: boolean | undefined;
|
|
71
|
+
metadata?: Record<string, any> | undefined;
|
|
72
|
+
tags?: Array<string> | undefined;
|
|
73
|
+
start_at?: (string | null) | undefined;
|
|
74
|
+
expires_at?: (string | null) | undefined;
|
|
75
|
+
access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
76
|
+
thumbnail_url?: (string | null) | undefined;
|
|
77
|
+
readonly template: {
|
|
78
|
+
readonly id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
readonly sections: {
|
|
82
|
+
readonly id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
content: Record<string, any>;
|
|
85
|
+
theme?: (Record<string, any> | null) | undefined;
|
|
86
|
+
metadata?: Record<string, any> | undefined;
|
|
87
|
+
}[];
|
|
88
|
+
readonly shared_link: {
|
|
89
|
+
readonly url: string;
|
|
90
|
+
short_url?: (string | null) | undefined;
|
|
91
|
+
};
|
|
92
|
+
account?: {
|
|
93
|
+
id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
} | null | undefined;
|
|
96
|
+
readonly events: {
|
|
97
|
+
readonly id: string;
|
|
98
|
+
start_at: string;
|
|
99
|
+
subject: string;
|
|
100
|
+
}[];
|
|
101
|
+
folder_id?: (string | null) | undefined;
|
|
102
|
+
readonly owned_by: {
|
|
103
|
+
readonly id: number;
|
|
104
|
+
readonly name: string;
|
|
105
|
+
email?: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
readonly created_at: string;
|
|
108
|
+
readonly created_by: {
|
|
109
|
+
readonly id: number;
|
|
110
|
+
readonly name: string;
|
|
111
|
+
email?: string | undefined;
|
|
112
|
+
};
|
|
113
|
+
readonly modified_at: string;
|
|
114
|
+
readonly modified_by: {
|
|
115
|
+
readonly id: number;
|
|
116
|
+
readonly name: string;
|
|
117
|
+
email?: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
}[] | {
|
|
120
|
+
name: string;
|
|
121
|
+
itemCount: number;
|
|
122
|
+
}[]>;
|
|
123
|
+
groupings: ComputedRef<Record<string, Record<string, {
|
|
124
|
+
items: CanvasRetrieve[];
|
|
125
|
+
count: number;
|
|
126
|
+
}>>>;
|
|
127
|
+
viewMode: import('@vueuse/shared').RemovableRef<"normal" | "smartFolders">;
|
|
128
|
+
smartFoldersDisplayMode: Ref<SmartFoldersDisplayMode, SmartFoldersDisplayMode>;
|
|
129
|
+
activeConfiguration: Ref<{
|
|
130
|
+
enabledSmartFolderProperties: {
|
|
131
|
+
name: string;
|
|
132
|
+
display_name?: string | undefined;
|
|
133
|
+
accessor: string;
|
|
134
|
+
type: string;
|
|
135
|
+
description?: string | undefined;
|
|
136
|
+
}[];
|
|
137
|
+
} | null, SmartFolderConfig | {
|
|
138
|
+
enabledSmartFolderProperties: {
|
|
139
|
+
name: string;
|
|
140
|
+
display_name?: string | undefined;
|
|
141
|
+
accessor: string;
|
|
142
|
+
type: string;
|
|
143
|
+
description?: string | undefined;
|
|
144
|
+
}[];
|
|
145
|
+
} | null>;
|
|
146
|
+
isLoadingConfig: Ref<boolean, boolean>;
|
|
147
|
+
isSavingConfig: Ref<boolean, boolean>;
|
|
148
|
+
isSmartFoldersView: ComputedRef<boolean>;
|
|
149
|
+
isNormalView: ComputedRef<boolean>;
|
|
150
|
+
isFetchingCanvases: Ref<boolean, boolean>;
|
|
151
|
+
currentItems: Ref<{
|
|
152
|
+
readonly id: string;
|
|
153
|
+
name: string;
|
|
154
|
+
content?: Record<string, any> | undefined;
|
|
155
|
+
context?: Record<string, any> | undefined;
|
|
156
|
+
theme?: (Record<string, any> | null) | undefined;
|
|
157
|
+
is_draft?: boolean | undefined;
|
|
158
|
+
is_template?: boolean | undefined;
|
|
159
|
+
is_section?: boolean | undefined;
|
|
160
|
+
is_editable?: boolean | undefined;
|
|
161
|
+
is_default?: boolean | undefined;
|
|
162
|
+
metadata?: Record<string, any> | undefined;
|
|
163
|
+
tags?: Array<string> | undefined;
|
|
164
|
+
start_at?: (string | null) | undefined;
|
|
165
|
+
expires_at?: (string | null) | undefined;
|
|
166
|
+
access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
167
|
+
thumbnail_url?: (string | null) | undefined;
|
|
168
|
+
readonly template: {
|
|
169
|
+
readonly id: string;
|
|
170
|
+
name: string;
|
|
171
|
+
};
|
|
172
|
+
readonly sections: {
|
|
173
|
+
readonly id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
content: Record<string, any>;
|
|
176
|
+
theme?: (Record<string, any> | null) | undefined;
|
|
177
|
+
metadata?: Record<string, any> | undefined;
|
|
178
|
+
}[];
|
|
179
|
+
readonly shared_link: {
|
|
180
|
+
readonly url: string;
|
|
181
|
+
short_url?: (string | null) | undefined;
|
|
182
|
+
};
|
|
183
|
+
account?: {
|
|
184
|
+
id: string;
|
|
185
|
+
name: string;
|
|
186
|
+
} | null | undefined;
|
|
187
|
+
readonly events: {
|
|
188
|
+
readonly id: string;
|
|
189
|
+
start_at: string;
|
|
190
|
+
subject: string;
|
|
191
|
+
}[];
|
|
192
|
+
folder_id?: (string | null) | undefined;
|
|
193
|
+
readonly owned_by: {
|
|
194
|
+
readonly id: number;
|
|
195
|
+
readonly name: string;
|
|
196
|
+
email?: string | undefined;
|
|
197
|
+
};
|
|
198
|
+
readonly created_at: string;
|
|
199
|
+
readonly created_by: {
|
|
200
|
+
readonly id: number;
|
|
201
|
+
readonly name: string;
|
|
202
|
+
email?: string | undefined;
|
|
203
|
+
};
|
|
204
|
+
readonly modified_at: string;
|
|
205
|
+
readonly modified_by: {
|
|
206
|
+
readonly id: number;
|
|
207
|
+
readonly name: string;
|
|
208
|
+
email?: string | undefined;
|
|
209
|
+
};
|
|
210
|
+
}[], CanvasRetrieve[] | {
|
|
211
|
+
readonly id: string;
|
|
212
|
+
name: string;
|
|
213
|
+
content?: Record<string, any> | undefined;
|
|
214
|
+
context?: Record<string, any> | undefined;
|
|
215
|
+
theme?: (Record<string, any> | null) | undefined;
|
|
216
|
+
is_draft?: boolean | undefined;
|
|
217
|
+
is_template?: boolean | undefined;
|
|
218
|
+
is_section?: boolean | undefined;
|
|
219
|
+
is_editable?: boolean | undefined;
|
|
220
|
+
is_default?: boolean | undefined;
|
|
221
|
+
metadata?: Record<string, any> | undefined;
|
|
222
|
+
tags?: Array<string> | undefined;
|
|
223
|
+
start_at?: (string | null) | undefined;
|
|
224
|
+
expires_at?: (string | null) | undefined;
|
|
225
|
+
access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
226
|
+
thumbnail_url?: (string | null) | undefined;
|
|
227
|
+
readonly template: {
|
|
228
|
+
readonly id: string;
|
|
229
|
+
name: string;
|
|
230
|
+
};
|
|
231
|
+
readonly sections: {
|
|
232
|
+
readonly id: string;
|
|
233
|
+
name: string;
|
|
234
|
+
content: Record<string, any>;
|
|
235
|
+
theme?: (Record<string, any> | null) | undefined;
|
|
236
|
+
metadata?: Record<string, any> | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
readonly shared_link: {
|
|
239
|
+
readonly url: string;
|
|
240
|
+
short_url?: (string | null) | undefined;
|
|
241
|
+
};
|
|
242
|
+
account?: {
|
|
243
|
+
id: string;
|
|
244
|
+
name: string;
|
|
245
|
+
} | null | undefined;
|
|
246
|
+
readonly events: {
|
|
247
|
+
readonly id: string;
|
|
248
|
+
start_at: string;
|
|
249
|
+
subject: string;
|
|
250
|
+
}[];
|
|
251
|
+
folder_id?: (string | null) | undefined;
|
|
252
|
+
readonly owned_by: {
|
|
253
|
+
readonly id: number;
|
|
254
|
+
readonly name: string;
|
|
255
|
+
email?: string | undefined;
|
|
256
|
+
};
|
|
257
|
+
readonly created_at: string;
|
|
258
|
+
readonly created_by: {
|
|
259
|
+
readonly id: number;
|
|
260
|
+
readonly name: string;
|
|
261
|
+
email?: string | undefined;
|
|
262
|
+
};
|
|
263
|
+
readonly modified_at: string;
|
|
264
|
+
readonly modified_by: {
|
|
265
|
+
readonly id: number;
|
|
266
|
+
readonly name: string;
|
|
267
|
+
email?: string | undefined;
|
|
268
|
+
};
|
|
269
|
+
}[]>;
|
|
270
|
+
displayItems: ComputedRef<{
|
|
271
|
+
readonly id: string;
|
|
272
|
+
name: string;
|
|
273
|
+
content?: Record<string, any> | undefined;
|
|
274
|
+
context?: Record<string, any> | undefined;
|
|
275
|
+
theme?: (Record<string, any> | null) | undefined;
|
|
276
|
+
is_draft?: boolean | undefined;
|
|
277
|
+
is_template?: boolean | undefined;
|
|
278
|
+
is_section?: boolean | undefined;
|
|
279
|
+
is_editable?: boolean | undefined;
|
|
280
|
+
is_default?: boolean | undefined;
|
|
281
|
+
metadata?: Record<string, any> | undefined;
|
|
282
|
+
tags?: Array<string> | undefined;
|
|
283
|
+
start_at?: (string | null) | undefined;
|
|
284
|
+
expires_at?: (string | null) | undefined;
|
|
285
|
+
access_type?: import('../../../../types/openapi').AccessTypeEnum | undefined;
|
|
286
|
+
thumbnail_url?: (string | null) | undefined;
|
|
287
|
+
readonly template: {
|
|
288
|
+
readonly id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
};
|
|
291
|
+
readonly sections: {
|
|
292
|
+
readonly id: string;
|
|
293
|
+
name: string;
|
|
294
|
+
content: Record<string, any>;
|
|
295
|
+
theme?: (Record<string, any> | null) | undefined;
|
|
296
|
+
metadata?: Record<string, any> | undefined;
|
|
297
|
+
}[];
|
|
298
|
+
readonly shared_link: {
|
|
299
|
+
readonly url: string;
|
|
300
|
+
short_url?: (string | null) | undefined;
|
|
301
|
+
};
|
|
302
|
+
account?: {
|
|
303
|
+
id: string;
|
|
304
|
+
name: string;
|
|
305
|
+
} | null | undefined;
|
|
306
|
+
readonly events: {
|
|
307
|
+
readonly id: string;
|
|
308
|
+
start_at: string;
|
|
309
|
+
subject: string;
|
|
310
|
+
}[];
|
|
311
|
+
folder_id?: (string | null) | undefined;
|
|
312
|
+
readonly owned_by: {
|
|
313
|
+
readonly id: number;
|
|
314
|
+
readonly name: string;
|
|
315
|
+
email?: string | undefined;
|
|
316
|
+
};
|
|
317
|
+
readonly created_at: string;
|
|
318
|
+
readonly created_by: {
|
|
319
|
+
readonly id: number;
|
|
320
|
+
readonly name: string;
|
|
321
|
+
email?: string | undefined;
|
|
322
|
+
};
|
|
323
|
+
readonly modified_at: string;
|
|
324
|
+
readonly modified_by: {
|
|
325
|
+
readonly id: number;
|
|
326
|
+
readonly name: string;
|
|
327
|
+
email?: string | undefined;
|
|
328
|
+
};
|
|
329
|
+
}[] | {
|
|
330
|
+
name: string;
|
|
331
|
+
itemCount: number;
|
|
332
|
+
}[]>;
|
|
333
|
+
breadcrumbItems: ComputedRef<{
|
|
334
|
+
label: string;
|
|
335
|
+
path: {
|
|
336
|
+
value: string;
|
|
337
|
+
property: {
|
|
338
|
+
name: string;
|
|
339
|
+
display_name?: string | undefined;
|
|
340
|
+
accessor: string;
|
|
341
|
+
type: string;
|
|
342
|
+
description?: string | undefined;
|
|
343
|
+
};
|
|
344
|
+
}[];
|
|
345
|
+
}[]>;
|
|
346
|
+
columns: ComputedRef<((import('@tanstack/vue-table').AccessorFnColumnDefBase<CanvasRetrieve, any> & import('@tanstack/vue-table').StringHeaderIdentifier) | (import('@tanstack/vue-table').AccessorFnColumnDefBase<CanvasRetrieve, any> & import('@tanstack/vue-table').IdIdentifier<CanvasRetrieve, any>) | (import('@tanstack/vue-table').AccessorKeyColumnDefBase<CanvasRetrieve, string> & Partial<import('@tanstack/vue-table').IdIdentifier<CanvasRetrieve, string>>))[]>;
|
|
347
|
+
page: Ref<number, number>;
|
|
348
|
+
pageSize: Ref<number, number>;
|
|
349
|
+
pageSizes: number[];
|
|
350
|
+
totalCount: Ref<number, number>;
|
|
351
|
+
allSmartFolderProperties: ComputedRef<{
|
|
352
|
+
name: string;
|
|
353
|
+
type: "string" | "boolean" | "number" | "date" | "array";
|
|
354
|
+
accessor: string;
|
|
355
|
+
display_name: string;
|
|
356
|
+
}[]>;
|
|
357
|
+
enabledSmartFolderProperties: ComputedRef<{
|
|
358
|
+
accessor: string;
|
|
359
|
+
name: string;
|
|
360
|
+
display_name?: string | undefined;
|
|
361
|
+
type: string;
|
|
362
|
+
description?: string | undefined;
|
|
363
|
+
}[]>;
|
|
364
|
+
resetPath: () => void;
|
|
365
|
+
toggleSmartFoldersDisplayMode: () => void;
|
|
366
|
+
onBreadcrumbClick: (item: {
|
|
367
|
+
label: string;
|
|
368
|
+
path: PathSegment[];
|
|
369
|
+
}) => void;
|
|
370
|
+
onRowClick: (row: any, e?: MouseEvent) => void;
|
|
371
|
+
fetchData: () => Promise<void>;
|
|
372
|
+
onTableChange: (event: "pageChanged" | "pageSizeChanged" | "sortChanged", value: number | {
|
|
373
|
+
pageIndex: number;
|
|
374
|
+
pageSize: number;
|
|
375
|
+
} | {
|
|
376
|
+
id: string;
|
|
377
|
+
desc: boolean;
|
|
378
|
+
}) => void;
|
|
379
|
+
saveConfiguration: (config: SmartFolderConfig) => Promise<void>;
|
|
380
|
+
loadConfiguration: () => Promise<void>;
|
|
381
|
+
createGroupings: (canvases: CanvasRetrieve[], properties: SmartFolderProperty[]) => Record<string, any>;
|
|
382
|
+
toggleViewMode: typeof toggleViewMode;
|
|
383
|
+
setSmartFoldersView: typeof setSmartFoldersView;
|
|
384
|
+
setNormalView: typeof setNormalView;
|
|
385
|
+
};
|
|
386
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CanvasRetrieve } from '../../../../types/openapi';
|
|
2
|
+
declare function onSmartFoldersConfigure(): void;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
toolbarHeight: number;
|
|
5
|
+
}, {
|
|
6
|
+
showConfigurationModal: typeof onSmartFoldersConfigure;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
open: (e: MouseEvent, canvas: CanvasRetrieve) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
10
|
+
toolbarHeight: number;
|
|
11
|
+
}> & Readonly<{
|
|
12
|
+
onOpen?: ((e: MouseEvent, canvas: CanvasRetrieve) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
close: () => any;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onClose?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
configure: () => any;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onConfigure?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -43,28 +43,7 @@ declare function __VLS_template(): {
|
|
|
43
43
|
"update:metadata-filter-values": (mf: Record<string, any>) => any;
|
|
44
44
|
"create:section": () => any;
|
|
45
45
|
restoreColumns: () => any;
|
|
46
|
-
}, import('vue').
|
|
47
|
-
hideCreate?: boolean;
|
|
48
|
-
search: string;
|
|
49
|
-
metadataFilterValues: Record<string, any>;
|
|
50
|
-
recommendedSectionIds: string[];
|
|
51
|
-
isLoadingItems?: boolean;
|
|
52
|
-
tableColumnsSettings: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting[];
|
|
53
|
-
isViewHidden?: boolean;
|
|
54
|
-
}> & Readonly<{
|
|
55
|
-
onSearch?: ((s: string) => any) | undefined;
|
|
56
|
-
onSelect?: ((payload: {
|
|
57
|
-
id: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting["id"];
|
|
58
|
-
checked: boolean;
|
|
59
|
-
}) => any) | undefined;
|
|
60
|
-
onMove?: ((payload: {
|
|
61
|
-
targetItemId: import('../CTableColumnsSettings/CTableColumnsSettings.vue').TableColumnSetting["id"];
|
|
62
|
-
itemId: string;
|
|
63
|
-
}) => any) | undefined;
|
|
64
|
-
"onUpdate:metadata-filter-values"?: ((mf: Record<string, any>) => any) | undefined;
|
|
65
|
-
"onCreate:section"?: (() => any) | undefined;
|
|
66
|
-
onRestoreColumns?: (() => any) | undefined;
|
|
67
|
-
}>, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
46
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
68
47
|
P: {};
|
|
69
48
|
B: {};
|
|
70
49
|
D: {};
|
|
@@ -128,31 +107,7 @@ declare function __VLS_template(): {
|
|
|
128
107
|
pageChanged: (p: PaginationState) => any;
|
|
129
108
|
pageSizeChanged: (p: number) => any;
|
|
130
109
|
"update:selectedRows": (s: Record<string, boolean>) => any;
|
|
131
|
-
}, import('vue').
|
|
132
|
-
selectedRows?: Record<string, boolean>;
|
|
133
|
-
scrollerClass?: string;
|
|
134
|
-
columns: ColumnDef<{
|
|
135
|
-
[x: string]: any;
|
|
136
|
-
}, any>[];
|
|
137
|
-
data: {
|
|
138
|
-
[x: string]: any;
|
|
139
|
-
}[];
|
|
140
|
-
initialSorting?: SortingState;
|
|
141
|
-
loading?: boolean;
|
|
142
|
-
pageSize?: number;
|
|
143
|
-
pageSizes?: number[];
|
|
144
|
-
pageIndex?: number;
|
|
145
|
-
totalCount?: number;
|
|
146
|
-
displayedCount?: number;
|
|
147
|
-
serverSide?: boolean;
|
|
148
|
-
scrollerStyle?: import('vue').StyleValue;
|
|
149
|
-
selectable?: boolean;
|
|
150
|
-
}> & Readonly<{
|
|
151
|
-
onSortChanged?: ((s: SortingState) => any) | undefined;
|
|
152
|
-
onPageChanged?: ((p: PaginationState) => any) | undefined;
|
|
153
|
-
onPageSizeChanged?: ((p: number) => any) | undefined;
|
|
154
|
-
"onUpdate:selectedRows"?: ((s: Record<string, boolean>) => any) | undefined;
|
|
155
|
-
}>, {
|
|
110
|
+
}, import('vue').PublicProps, {
|
|
156
111
|
data: {
|
|
157
112
|
[x: string]: any;
|
|
158
113
|
}[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { User, AppsDBEntry as GeneratedAppsDbEntry } from '../../types/openapi';
|
|
2
|
+
type AppsDBEntry = GeneratedAppsDbEntry & {
|
|
3
|
+
value: Record<string, any> | null;
|
|
4
|
+
};
|
|
5
|
+
interface EntryParams {
|
|
6
|
+
store_name: string;
|
|
7
|
+
user_id: User['id'];
|
|
8
|
+
entry_key: string;
|
|
9
|
+
}
|
|
10
|
+
interface GlobalEntryParams {
|
|
11
|
+
store_name: string;
|
|
12
|
+
entry_key: string;
|
|
13
|
+
}
|
|
14
|
+
interface UpsertEntryParams extends EntryParams {
|
|
15
|
+
data: Record<string, any>;
|
|
16
|
+
}
|
|
17
|
+
interface UpsertGlobalEntryParams extends GlobalEntryParams {
|
|
18
|
+
data: Record<string, any>;
|
|
19
|
+
}
|
|
20
|
+
export declare function useAppsDb(): {
|
|
21
|
+
upsertEntry: (payload: UpsertEntryParams) => Promise<AppsDBEntry>;
|
|
22
|
+
getEntry: (params: EntryParams) => Promise<GeneratedAppsDbEntry & {
|
|
23
|
+
value: Record<string, any> | null;
|
|
24
|
+
} & {
|
|
25
|
+
value: Record<string, any>;
|
|
26
|
+
}>;
|
|
27
|
+
deleteEntry: (params: EntryParams) => Promise<import('axios').AxiosResponse<void, any>>;
|
|
28
|
+
upsertGlobalEntry: (payload: UpsertGlobalEntryParams) => Promise<AppsDBEntry>;
|
|
29
|
+
getGlobalEntry: (params: GlobalEntryParams) => Promise<AppsDBEntry>;
|
|
30
|
+
deleteGlobalEntry: (params: GlobalEntryParams) => Promise<import('axios').AxiosResponse<void, any>>;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
1
2
|
import { AxiosProgressEvent } from 'axios';
|
|
2
3
|
export declare function useAssetUpload(): {
|
|
3
|
-
isUploading:
|
|
4
|
+
isUploading: Ref<boolean, boolean>;
|
|
4
5
|
uploadAsset: (file: File, onUploadProgress?: (progress: AxiosProgressEvent, file: File) => void) => Promise<import('../../types/openapi').FileRetrieve>;
|
|
5
6
|
};
|