@pitcher/js-api 1.21.0-beta.11 → 1.21.0-beta.13
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 +41 -10
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +9 -9
- package/js-api.umd.min.js.map +1 -1
- package/lib/main.lib.d.ts +1 -0
- package/lib/sdk/api/HighLevelApi.d.ts +2 -1
- package/lib/sdk/api/modules/admin/index.d.ts +8 -0
- package/lib/sdk/api/modules/admin/types.admin.d.ts +1 -1
- package/lib/sdk/api/modules/files.d.ts +2 -1
- package/lib/sdk/main.d.ts +22 -3
- package/package.json +1 -1
package/lib/main.lib.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export { default as CMovableWidget } from './components/CMovableWidget/CMovableW
|
|
|
88
88
|
export { default as CUserMenu } from './components/CUserMenu/CUserMenu.vue';
|
|
89
89
|
export { default as CList } from './components/CList/CList.vue';
|
|
90
90
|
export { default as CKnockNotificationsAppWrapper } from './components/CKnockNotificationsAppWrapper/CKnockNotificationsAppWrapper.vue';
|
|
91
|
+
export { default as CChip } from './components/CChip/CChip.vue';
|
|
91
92
|
export { default as CanvasBuilderApp } from '@canvas-builder/App.vue';
|
|
92
93
|
export { type CanvasBuilderProps, CanvasBuilderMode } from '@canvas-builder/types/canvas';
|
|
93
94
|
export { default as Browser } from '@browser/App.vue';
|
|
@@ -56,7 +56,8 @@ export declare function createHighLevelApi(options?: ApiOptions): {
|
|
|
56
56
|
app_name: string;
|
|
57
57
|
}): Promise<Record<string, any>>;
|
|
58
58
|
getFile(payload: {
|
|
59
|
-
|
|
59
|
+
id?: import('../../main.lib').FileRetrieve["id"];
|
|
60
|
+
file_id?: import('../../main.lib').FileRetrieve["id"];
|
|
60
61
|
}): Promise<import('../../main.lib').FileRetrieve>;
|
|
61
62
|
updateFile(payload: import('../../main.lib').FileUpdateRequest & {
|
|
62
63
|
id: import('../../main.lib').File["id"];
|
|
@@ -3,6 +3,14 @@ import { AdminToastRequest, ADMIN_MESSAGE_TYPES, AdminMessagePayloads } from './
|
|
|
3
3
|
declare function on(type: (typeof ADMIN_MESSAGE_TYPES)[keyof typeof ADMIN_MESSAGE_TYPES], handler: (data: AdminMessagePayloads[typeof type]) => Promise<void>): Promise<() => void>;
|
|
4
4
|
declare function toast(payload: AdminToastRequest): Promise<void>;
|
|
5
5
|
declare const _default: {
|
|
6
|
+
getAppConfig(payload: {
|
|
7
|
+
app_name: string;
|
|
8
|
+
}): Promise<Record<string, any>>;
|
|
9
|
+
getFile(payload: {
|
|
10
|
+
id: import('../../../../main.lib').File["id"];
|
|
11
|
+
}): Promise<import('../../../../main.lib').File>;
|
|
12
|
+
getFiles(payload: Record<string, any>): Promise<import('../../../../main.lib').PaginatedFileList>;
|
|
13
|
+
selectContent(payload: import('./types.admin').AdminSelectContentRequest): Promise<import('./types.admin').AdminSelectContentResponse>;
|
|
6
14
|
getInstanceMetadataTemplates(payload?: import('../../../payload.types').GetInstanceMetadataTemplatesPayload): Promise<import('../../../../main.lib').PaginatedMetadataTemplateList>;
|
|
7
15
|
createCanvas(payload: import('../../../../main.lib').CanvasCreateRequest): Promise<import('../../../../main.lib').CanvasRetrieve>;
|
|
8
16
|
getCanvases(payload: import('../../../../main.lib').GetCanvasesParams & {
|
|
@@ -17,10 +17,10 @@ export declare const ADMIN_API_METHOD_TYPES: {
|
|
|
17
17
|
readonly GET_ENV: "admin_get_env";
|
|
18
18
|
readonly GET_FILE: "admin_get_file";
|
|
19
19
|
readonly GET_FILES: "admin_get_files";
|
|
20
|
-
readonly SELECT_CONTENT: "admin_select_content";
|
|
21
20
|
readonly GET_INSTANCE_METADATA_TEMPLATES: "admin_get_instance_metadata_templates";
|
|
22
21
|
readonly TOAST: "admin_toast";
|
|
23
22
|
readonly UPDATE_CANVAS: "admin_update_canvas";
|
|
23
|
+
readonly SELECT_CONTENT: "admin_select_content";
|
|
24
24
|
};
|
|
25
25
|
export type AdminMessagePayloads = {
|
|
26
26
|
[ADMIN_MESSAGE_TYPES.ENV_CHANGED]: AdminEnv;
|
|
@@ -14,7 +14,8 @@ export declare function getAppConfig(payload: {
|
|
|
14
14
|
app_name: string;
|
|
15
15
|
}): Promise<Record<string, any>>;
|
|
16
16
|
export declare function getFile(payload: {
|
|
17
|
-
|
|
17
|
+
id?: FileRetrieve['id'];
|
|
18
|
+
file_id?: FileRetrieve['id'];
|
|
18
19
|
}): Promise<FileRetrieve>;
|
|
19
20
|
export declare function updateFile(payload: FileUpdateRequest & {
|
|
20
21
|
id: File['id'];
|
package/lib/sdk/main.d.ts
CHANGED
|
@@ -36,6 +36,14 @@ export declare function useUi(): {
|
|
|
36
36
|
ui_broadcast: (payload: import('./api/modules/ui/types.ui').UiBroadcastRequest) => Promise<void>;
|
|
37
37
|
};
|
|
38
38
|
export declare function useAdmin(): {
|
|
39
|
+
getAppConfig(payload: {
|
|
40
|
+
app_name: string;
|
|
41
|
+
}): Promise<Record<string, any>>;
|
|
42
|
+
getFile(payload: {
|
|
43
|
+
id: import('../main.lib').File["id"];
|
|
44
|
+
}): Promise<import('../main.lib').File>;
|
|
45
|
+
getFiles(payload: Record<string, any>): Promise<import('../main.lib').PaginatedFileList>;
|
|
46
|
+
selectContent(payload: import('./api/modules/admin/types.admin').AdminSelectContentRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectContentResponse>;
|
|
39
47
|
getInstanceMetadataTemplates(payload?: import('./payload.types').GetInstanceMetadataTemplatesPayload): Promise<import('../main.lib').PaginatedMetadataTemplateList>;
|
|
40
48
|
createCanvas(payload: import('../main.lib').CanvasCreateRequest): Promise<import('../main.lib').CanvasRetrieve>;
|
|
41
49
|
getCanvases(payload: import('../main.lib').GetCanvasesParams & {
|
|
@@ -117,7 +125,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
117
125
|
app_name: string;
|
|
118
126
|
}): Promise<Record<string, any>>;
|
|
119
127
|
getFile(payload: {
|
|
120
|
-
|
|
128
|
+
id?: import('../main.lib').FileRetrieve["id"];
|
|
129
|
+
file_id?: import('../main.lib').FileRetrieve["id"];
|
|
121
130
|
}): Promise<import('../main.lib').FileRetrieve>;
|
|
122
131
|
updateFile(payload: import('../main.lib').FileUpdateRequest & {
|
|
123
132
|
id: import('../main.lib').File["id"];
|
|
@@ -188,6 +197,14 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
188
197
|
openWebViewAlwaysOnTop(payload: import('./payload.types').OpenWebViewAlwaysOnTop): Promise<void>;
|
|
189
198
|
API: import('./api/LowLevelApi').LowLevelApi;
|
|
190
199
|
} | {
|
|
200
|
+
getAppConfig(payload: {
|
|
201
|
+
app_name: string;
|
|
202
|
+
}): Promise<Record<string, any>>;
|
|
203
|
+
getFile(payload: {
|
|
204
|
+
id: import('../main.lib').File["id"];
|
|
205
|
+
}): Promise<import('../main.lib').File>;
|
|
206
|
+
getFiles(payload: Record<string, any>): Promise<import('../main.lib').PaginatedFileList>;
|
|
207
|
+
selectContent(payload: import('./api/modules/admin/types.admin').AdminSelectContentRequest): Promise<import('./api/modules/admin/types.admin').AdminSelectContentResponse>;
|
|
191
208
|
getInstanceMetadataTemplates(payload?: import('./payload.types').GetInstanceMetadataTemplatesPayload): Promise<import('../main.lib').PaginatedMetadataTemplateList>;
|
|
192
209
|
createCanvas(payload: import('../main.lib').CanvasCreateRequest): Promise<import('../main.lib').CanvasRetrieve>;
|
|
193
210
|
getCanvases(payload: import('../main.lib').GetCanvasesParams & {
|
|
@@ -293,7 +310,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
293
310
|
app_name: string;
|
|
294
311
|
}): Promise<Record<string, any>>;
|
|
295
312
|
getFile(payload: {
|
|
296
|
-
|
|
313
|
+
id?: import('../main.lib').FileRetrieve["id"];
|
|
314
|
+
file_id?: import('../main.lib').FileRetrieve["id"];
|
|
297
315
|
}): Promise<import('../main.lib').FileRetrieve>;
|
|
298
316
|
updateFile(payload: import('../main.lib').FileUpdateRequest & {
|
|
299
317
|
id: import('../main.lib').File["id"];
|
|
@@ -441,7 +459,8 @@ export declare function useApi(options?: ApiOptions): {
|
|
|
441
459
|
app_name: string;
|
|
442
460
|
}): Promise<Record<string, any>>;
|
|
443
461
|
getFile(payload: {
|
|
444
|
-
|
|
462
|
+
id?: import('../main.lib').FileRetrieve["id"];
|
|
463
|
+
file_id?: import('../main.lib').FileRetrieve["id"];
|
|
445
464
|
}): Promise<import('../main.lib').FileRetrieve>;
|
|
446
465
|
updateFile(payload: import('../main.lib').FileUpdateRequest & {
|
|
447
466
|
id: import('../main.lib').File["id"];
|