@sankhyalabs/sankhyablocks 1.0.8 → 1.0.9
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/README.md +33 -1
- package/dist/index.js +286 -277
- package/dist/index.js.map +1 -1
- package/dist/types/application/AppParameterProvider.d.ts +2 -2
- package/dist/types/application/SankhyaAppProvider.d.ts +1 -1
- package/dist/types/http/fetchers/parameters-fecher.d.ts +2 -2
- package/dist/types/workspace/workspace.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ export default class AppParameterProvider {
|
|
|
3
3
|
private paramFetcher;
|
|
4
4
|
constructor(resourceID: string);
|
|
5
5
|
asString(name: string): Promise<string>;
|
|
6
|
-
asInteger(name: string): Promise<
|
|
7
|
-
asFloat(name: string): Promise<
|
|
6
|
+
asInteger(name: string): Promise<number>;
|
|
7
|
+
asFloat(name: string): Promise<number>;
|
|
8
8
|
asBoolean(name: string): Promise<boolean>;
|
|
9
9
|
asDate(name: string): Promise<Date>;
|
|
10
10
|
}
|
|
@@ -10,6 +10,6 @@ export default class SankhyaAppProvider extends ApplicationUtils {
|
|
|
10
10
|
static getResourceID(defaultValue?: string): string;
|
|
11
11
|
static temOpcional(opcional: string): boolean;
|
|
12
12
|
static getAttributeFromHTMLWrapper(attribName: string): string;
|
|
13
|
-
static openApp(resourceId: string, pkObject:
|
|
13
|
+
static openApp(resourceId: string, pkObject: Object): void;
|
|
14
14
|
static getDataunit(entityName: string, useCache?: boolean): DataUnit;
|
|
15
15
|
}
|
|
@@ -4,8 +4,8 @@ export default class ParametersFetcher {
|
|
|
4
4
|
private buldTemplates;
|
|
5
5
|
getParam(name: string, resourceID: string): Promise<any>;
|
|
6
6
|
asString(name: string, resourceID: string): Promise<string>;
|
|
7
|
-
asInteger(name: string, resourceID: string): Promise<
|
|
8
|
-
asFloat(name: string, resourceID: string): Promise<
|
|
7
|
+
asInteger(name: string, resourceID: string): Promise<number>;
|
|
8
|
+
asFloat(name: string, resourceID: string): Promise<number>;
|
|
9
9
|
asBoolean(name: string, resourceID: string): Promise<boolean>;
|
|
10
10
|
asDate(name: string, resourceID: string): Promise<Date>;
|
|
11
11
|
getBatchParams(names: Array<string>, resourceID: string): Promise<{}>;
|
package/package.json
CHANGED