@elliemae/pui-scripting-object 1.16.6 → 1.16.8
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/cjs/index.js +5 -12
- package/dist/cjs/scriptingObjectList.js +27 -0
- package/dist/esm/index.js +5 -8
- package/dist/esm/scriptingObjectList.js +23 -0
- package/dist/types/event.d.ts +0 -4
- package/dist/types/index.d.ts +5 -5
- package/dist/types/objects/module.d.ts +2 -2
- package/dist/types/scriptingObjectList.d.ts +20 -1
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -3,10 +3,6 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
6
|
var __copyProps = (to, from, except, desc) => {
|
|
11
7
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
8
|
for (let key of __getOwnPropNames(from))
|
|
@@ -18,12 +14,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
14
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
16
|
var lib_exports = {};
|
|
21
|
-
__export(lib_exports, {
|
|
22
|
-
IEvent: () => import_event.IEvent,
|
|
23
|
-
IScriptingObject: () => import_scriptingObject.IScriptingObject,
|
|
24
|
-
IScriptingObjectProxy: () => import_scriptingObject.IScriptingObjectProxy,
|
|
25
|
-
Listener: () => import_event.Listener
|
|
26
|
-
});
|
|
27
17
|
module.exports = __toCommonJS(lib_exports);
|
|
28
18
|
__reExport(lib_exports, require("./objects/analytics.js"), module.exports);
|
|
29
19
|
__reExport(lib_exports, require("./objects/application.js"), module.exports);
|
|
@@ -44,5 +34,8 @@ __reExport(lib_exports, require("./objects/transactionTemplate.js"), module.expo
|
|
|
44
34
|
__reExport(lib_exports, require("./objects/userAccessRights.js"), module.exports);
|
|
45
35
|
__reExport(lib_exports, require("./objects/view.js"), module.exports);
|
|
46
36
|
__reExport(lib_exports, require("./objects/shared.js"), module.exports);
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
__reExport(lib_exports, require("./event.js"), module.exports);
|
|
38
|
+
__reExport(lib_exports, require("./scriptingObject.js"), module.exports);
|
|
39
|
+
__reExport(lib_exports, require("./remotingScriptingObject.js"), module.exports);
|
|
40
|
+
__reExport(lib_exports, require("./scriptingObjectList.js"), module.exports);
|
|
41
|
+
__reExport(lib_exports, require("./scriptingObjectEventList.js"), module.exports);
|
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -13,4 +17,27 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
17
|
};
|
|
14
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
19
|
var scriptingObjectList_exports = {};
|
|
20
|
+
__export(scriptingObjectList_exports, {
|
|
21
|
+
ScriptingObjectNames: () => ScriptingObjectNames
|
|
22
|
+
});
|
|
16
23
|
module.exports = __toCommonJS(scriptingObjectList_exports);
|
|
24
|
+
var ScriptingObjectNames = /* @__PURE__ */ ((ScriptingObjectNames2) => {
|
|
25
|
+
ScriptingObjectNames2["Analytics"] = "analytics";
|
|
26
|
+
ScriptingObjectNames2["Application"] = "application";
|
|
27
|
+
ScriptingObjectNames2["Auth"] = "auth";
|
|
28
|
+
ScriptingObjectNames2["Form"] = "form";
|
|
29
|
+
ScriptingObjectNames2["Global"] = "global";
|
|
30
|
+
ScriptingObjectNames2["Http"] = "http";
|
|
31
|
+
ScriptingObjectNames2["Loan"] = "loan";
|
|
32
|
+
ScriptingObjectNames2["LoanV2"] = "loanV2";
|
|
33
|
+
ScriptingObjectNames2["MemStorage"] = "memstorage";
|
|
34
|
+
ScriptingObjectNames2["Module"] = "module";
|
|
35
|
+
ScriptingObjectNames2["Route"] = "route";
|
|
36
|
+
ScriptingObjectNames2["Service"] = "service";
|
|
37
|
+
ScriptingObjectNames2["Session"] = "session";
|
|
38
|
+
ScriptingObjectNames2["Transaction"] = "transaction";
|
|
39
|
+
ScriptingObjectNames2["TransactionV2"] = "transactionV2";
|
|
40
|
+
ScriptingObjectNames2["TransactionTemplate"] = "transactionTemplate";
|
|
41
|
+
ScriptingObjectNames2["View"] = "view";
|
|
42
|
+
return ScriptingObjectNames2;
|
|
43
|
+
})(ScriptingObjectNames || {});
|
package/dist/esm/index.js
CHANGED
|
@@ -17,11 +17,8 @@ export * from "./objects/transactionTemplate.js";
|
|
|
17
17
|
export * from "./objects/userAccessRights.js";
|
|
18
18
|
export * from "./objects/view.js";
|
|
19
19
|
export * from "./objects/shared.js";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
IScriptingObjectProxy,
|
|
26
|
-
Listener
|
|
27
|
-
};
|
|
20
|
+
export * from "./event.js";
|
|
21
|
+
export * from "./scriptingObject.js";
|
|
22
|
+
export * from "./remotingScriptingObject.js";
|
|
23
|
+
export * from "./scriptingObjectList.js";
|
|
24
|
+
export * from "./scriptingObjectEventList.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var ScriptingObjectNames = /* @__PURE__ */ ((ScriptingObjectNames2) => {
|
|
2
|
+
ScriptingObjectNames2["Analytics"] = "analytics";
|
|
3
|
+
ScriptingObjectNames2["Application"] = "application";
|
|
4
|
+
ScriptingObjectNames2["Auth"] = "auth";
|
|
5
|
+
ScriptingObjectNames2["Form"] = "form";
|
|
6
|
+
ScriptingObjectNames2["Global"] = "global";
|
|
7
|
+
ScriptingObjectNames2["Http"] = "http";
|
|
8
|
+
ScriptingObjectNames2["Loan"] = "loan";
|
|
9
|
+
ScriptingObjectNames2["LoanV2"] = "loanV2";
|
|
10
|
+
ScriptingObjectNames2["MemStorage"] = "memstorage";
|
|
11
|
+
ScriptingObjectNames2["Module"] = "module";
|
|
12
|
+
ScriptingObjectNames2["Route"] = "route";
|
|
13
|
+
ScriptingObjectNames2["Service"] = "service";
|
|
14
|
+
ScriptingObjectNames2["Session"] = "session";
|
|
15
|
+
ScriptingObjectNames2["Transaction"] = "transaction";
|
|
16
|
+
ScriptingObjectNames2["TransactionV2"] = "transactionV2";
|
|
17
|
+
ScriptingObjectNames2["TransactionTemplate"] = "transactionTemplate";
|
|
18
|
+
ScriptingObjectNames2["View"] = "view";
|
|
19
|
+
return ScriptingObjectNames2;
|
|
20
|
+
})(ScriptingObjectNames || {});
|
|
21
|
+
export {
|
|
22
|
+
ScriptingObjectNames
|
|
23
|
+
};
|
package/dist/types/event.d.ts
CHANGED
|
@@ -28,10 +28,6 @@ export interface IEvent {
|
|
|
28
28
|
* event requiers a response from its listeners
|
|
29
29
|
*/
|
|
30
30
|
readonly requiresFeedback: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* parameters associated with the event
|
|
33
|
-
*/
|
|
34
|
-
readonly params: Record<string, unknown>;
|
|
35
31
|
/**
|
|
36
32
|
* scripting object from where the event was triggered
|
|
37
33
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export * from './objects/transactionTemplate.js';
|
|
|
17
17
|
export * from './objects/userAccessRights.js';
|
|
18
18
|
export * from './objects/view.js';
|
|
19
19
|
export * from './objects/shared.js';
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
20
|
+
export * from './event.js';
|
|
21
|
+
export * from './scriptingObject.js';
|
|
22
|
+
export * from './remotingScriptingObject.js';
|
|
23
|
+
export * from './scriptingObjectList.js';
|
|
24
|
+
export * from './scriptingObjectEventList.js';
|
|
@@ -44,7 +44,7 @@ export interface IModule extends IScriptingObject {
|
|
|
44
44
|
*
|
|
45
45
|
* @returns capabilities or settings as key-value pairs
|
|
46
46
|
*/
|
|
47
|
-
getCapabilities(): Promise<Record<string,
|
|
47
|
+
getCapabilities(): Promise<Record<string, unknown>>;
|
|
48
48
|
/**
|
|
49
49
|
* get microapp module-specific parameters.
|
|
50
50
|
* For example, a lender may select a set of loans within the host application which must be passed to a module
|
|
@@ -52,7 +52,7 @@ export interface IModule extends IScriptingObject {
|
|
|
52
52
|
*
|
|
53
53
|
* @returns parameters as key-value pairs
|
|
54
54
|
*/
|
|
55
|
-
getParameters(): Promise<Record<string,
|
|
55
|
+
getParameters(): Promise<Record<string, unknown>>;
|
|
56
56
|
/**
|
|
57
57
|
* unload the microapp module from the host application
|
|
58
58
|
*/
|
|
@@ -18,7 +18,7 @@ import { IService } from './objects/service.js';
|
|
|
18
18
|
/**
|
|
19
19
|
* list of scripting object names and their types
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type ScriptingObjectTypes = {
|
|
22
22
|
Analytics: IAnalytics;
|
|
23
23
|
Application: IApplication;
|
|
24
24
|
Auth: IAuth;
|
|
@@ -37,3 +37,22 @@ export type ScriptingObjects = {
|
|
|
37
37
|
TransactionTemplate: ITransactionTemplate;
|
|
38
38
|
View: IView;
|
|
39
39
|
};
|
|
40
|
+
export declare const enum ScriptingObjectNames {
|
|
41
|
+
Analytics = "analytics",
|
|
42
|
+
Application = "application",
|
|
43
|
+
Auth = "auth",
|
|
44
|
+
Form = "form",
|
|
45
|
+
Global = "global",
|
|
46
|
+
Http = "http",
|
|
47
|
+
Loan = "loan",
|
|
48
|
+
LoanV2 = "loanV2",
|
|
49
|
+
MemStorage = "memstorage",
|
|
50
|
+
Module = "module",
|
|
51
|
+
Route = "route",
|
|
52
|
+
Service = "service",
|
|
53
|
+
Session = "session",
|
|
54
|
+
Transaction = "transaction",
|
|
55
|
+
TransactionV2 = "transactionV2",
|
|
56
|
+
TransactionTemplate = "transactionTemplate",
|
|
57
|
+
View = "view"
|
|
58
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-scripting-object",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.8",
|
|
4
4
|
"description": "Typescript defintions for Scripting Objects",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"sonar56x": true
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.
|
|
70
|
-
"@elliemae/pui-cli": "~7.
|
|
69
|
+
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
|
|
70
|
+
"@elliemae/pui-cli": "~7.18.0",
|
|
71
71
|
"@elliemae/pui-doc-gen": "~1.3.0",
|
|
72
72
|
"@elliemae/pui-theme": "~2.6.0",
|
|
73
73
|
"@types/styled-components": "~5.1.26",
|