@ws-ui/shared 0.2.31 → 0.2.32
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/dist/index.cjs.js +48 -48
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2429 -2411
- package/dist/index.es.js.map +1 -1
- package/dist/services/api.d.ts +4 -3
- package/dist/services/common.d.ts +0 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/shared.d.ts +7 -0
- package/package.json +1 -1
package/dist/services/api.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FileFolderTypeWithContent, FolderRootType, IAddFolderRequest, IAddFolderResponse, IAppSettingsResponse, ICheckUpdatesRequest, ICheckUpdatesResponse, IDropFileRequest, IDropFolderRequest, IFileInfoResponse, IGetFileInfo, IGetFileRequest, IGetFolderRequest, IGetFolderResponse, IInstallUpdatesRequest, IRenameFileRequest, IRenameFileResponse, IRenameFolderRequest, IRenameFolderResponse, ISetFileContentRequest, ISharedCSSResponse, ISavedConditionsResponse, ISharedDatasourcesResponse, RemoteDebuggerMode, IUserPrivilegesResponse } from '../types/api';
|
|
2
2
|
import { IMonacoThemeResponse } from '../types/code-editor';
|
|
3
3
|
import { IComponentTemplate } from '../types/webform-editor';
|
|
4
|
+
import { IGetSharedResourceRequest } from './shared';
|
|
4
5
|
/**
|
|
5
6
|
* Check updates
|
|
6
7
|
* @param request The request
|
|
@@ -105,9 +106,9 @@ export interface ISetFileContentResponse {
|
|
|
105
106
|
type: FileFolderTypeWithContent;
|
|
106
107
|
size: number;
|
|
107
108
|
}
|
|
108
|
-
export declare function getSharedDatasources(): Promise<ISharedDatasourcesResponse>;
|
|
109
|
-
export declare function getSharedCSS(): Promise<ISharedCSSResponse>;
|
|
110
|
-
export declare function getSavedConditions(): Promise<ISavedConditionsResponse>;
|
|
109
|
+
export declare function getSharedDatasources(params?: Pick<IGetSharedResourceRequest, 'createIfNotExists'>): Promise<ISharedDatasourcesResponse>;
|
|
110
|
+
export declare function getSharedCSS(params?: Pick<IGetSharedResourceRequest, 'createIfNotExists'>): Promise<ISharedCSSResponse>;
|
|
111
|
+
export declare function getSavedConditions(params?: Pick<IGetSharedResourceRequest, 'createIfNotExists'>): Promise<ISavedConditionsResponse>;
|
|
111
112
|
export declare function getUserPrivileges(): Promise<IUserPrivilegesResponse>;
|
|
112
113
|
export declare function getMonacoTheme(): Promise<IMonacoThemeResponse>;
|
|
113
114
|
export declare const setSharedSources: (datasources: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const API_PREFIX = "/rest/$designer";
|
|
2
2
|
export declare const EXT_API_PREFIX = "/rest/$designer-ext";
|
|
3
|
-
export declare const SHARED_API_PREFIX = "/Shared";
|
|
4
3
|
export declare function transformDates<T extends {
|
|
5
4
|
[key: string]: any;
|
|
6
5
|
}>(...dateAttrs: string[]): (obj: T) => T;
|
package/dist/services/index.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const SHARED_API_PREFIX = "/$shared";
|
|
2
|
+
export declare function tryCreateSharedResource(path: string): void;
|
|
3
|
+
export interface IGetSharedResourceRequest {
|
|
4
|
+
path: string;
|
|
5
|
+
createIfNotExists?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function getSharedResource<T>({ path, createIfNotExists, }: IGetSharedResourceRequest): Promise<T>;
|