@elliemae/pui-scripting-object 1.7.0 → 1.9.0
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/events.js +16 -0
- package/dist/cjs/index.js +16 -12
- package/dist/cjs/objects/analytics.js +16 -0
- package/dist/cjs/{application.js → objects/application.js} +0 -0
- package/dist/cjs/{auth.js → objects/auth.js} +0 -0
- package/dist/cjs/{form.js → objects/form.js} +0 -0
- package/dist/cjs/{global.js → objects/global.js} +0 -0
- package/dist/cjs/{http.js → objects/http.js} +0 -0
- package/dist/cjs/{loan.js → objects/loan.js} +0 -0
- package/dist/cjs/objects/loanv2.js +38 -0
- package/dist/cjs/objects/memStorage.js +16 -0
- package/dist/cjs/{module.js → objects/module.js} +0 -0
- package/dist/cjs/objects/route.js +16 -0
- package/dist/cjs/{session.js → objects/session.js} +0 -0
- package/dist/cjs/{loanv2.js → objects/transaction.js} +9 -9
- package/dist/cjs/objects/transactionTemplate.js +16 -0
- package/dist/cjs/{userAccessRights.js → objects/userAccessRights.js} +0 -0
- package/dist/cjs/objects/view.js +16 -0
- package/dist/cjs/scriptingObjectTypes.js +16 -0
- package/dist/esm/{form.js → events.js} +0 -0
- package/dist/esm/index.js +16 -12
- package/dist/esm/{global.js → objects/analytics.js} +0 -0
- package/dist/esm/{application.js → objects/application.js} +0 -0
- package/dist/esm/{auth.js → objects/auth.js} +0 -0
- package/dist/esm/{http.js → objects/form.js} +0 -0
- package/dist/esm/{session.js → objects/global.js} +0 -0
- package/dist/esm/{transaction.js → objects/http.js} +0 -0
- package/dist/esm/{loan.js → objects/loan.js} +0 -0
- package/dist/esm/objects/loanv2.js +18 -0
- package/dist/esm/{transactiontemplate.js → objects/memStorage.js} +0 -0
- package/dist/esm/{module.js → objects/module.js} +0 -0
- package/dist/esm/{userAccessRights.js → objects/route.js} +0 -0
- package/dist/esm/objects/session.js +0 -0
- package/dist/esm/objects/transaction.js +8 -0
- package/dist/esm/objects/transactionTemplate.js +0 -0
- package/dist/esm/objects/userAccessRights.js +0 -0
- package/dist/esm/objects/view.js +0 -0
- package/dist/esm/scriptingObjectTypes.js +0 -0
- package/dist/types/events.d.ts +7 -0
- package/dist/types/index.d.ts +18 -12
- package/dist/types/objects/analytics.d.ts +24 -0
- package/dist/types/{application.d.ts → objects/application.d.ts} +98 -2
- package/dist/types/objects/auth.d.ts +105 -0
- package/dist/types/objects/form.d.ts +47 -0
- package/dist/types/objects/global.d.ts +47 -0
- package/dist/types/objects/http.d.ts +52 -0
- package/dist/types/{loan.d.ts → objects/loan.d.ts} +75 -11
- package/dist/types/objects/loanv2.d.ts +140 -0
- package/dist/types/objects/memStorage.d.ts +26 -0
- package/dist/types/objects/module.d.ts +55 -0
- package/dist/types/objects/route.d.ts +7 -0
- package/dist/types/objects/session.d.ts +18 -0
- package/dist/types/objects/transaction.d.ts +295 -0
- package/dist/types/objects/transactionTemplate.d.ts +76 -0
- package/dist/types/{userAccessRights.d.ts → objects/userAccessRights.d.ts} +3 -0
- package/dist/types/objects/view.d.ts +43 -0
- package/dist/types/script.d.ts +25 -1
- package/dist/types/scriptingObjectTypes.d.ts +30 -0
- package/package.json +5 -3
- package/dist/cjs/index.pug +0 -19
- package/dist/cjs/transaction.js +0 -16
- package/dist/cjs/transactiontemplate.js +0 -16
- package/dist/esm/index.pug +0 -19
- package/dist/esm/loanv2.js +0 -8
- package/dist/types/auth.d.ts +0 -43
- package/dist/types/form.d.ts +0 -10
- package/dist/types/global.d.ts +0 -5
- package/dist/types/http.d.ts +0 -7
- package/dist/types/loanv2.d.ts +0 -61
- package/dist/types/module.d.ts +0 -16
- package/dist/types/session.d.ts +0 -4
- package/dist/types/transaction.d.ts +0 -53
- package/dist/types/transactiontemplate.d.ts +0 -12
package/dist/types/loanv2.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ILoan, LoanObject } from './loan.js';
|
|
2
|
-
export declare enum FieldErrorType {
|
|
3
|
-
/**
|
|
4
|
-
* access related error
|
|
5
|
-
*/
|
|
6
|
-
ACCESS = "access",
|
|
7
|
-
/**
|
|
8
|
-
* errors related to Field Data Entry Rules violation of the Active Ruleset
|
|
9
|
-
*/
|
|
10
|
-
VALUE = "value"
|
|
11
|
-
}
|
|
12
|
-
export declare type FieldErrors = {
|
|
13
|
-
id: string;
|
|
14
|
-
contractPath: string;
|
|
15
|
-
type: FieldErrorType;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
export declare type SetFieldResponse = {
|
|
19
|
-
/**
|
|
20
|
-
* List of fields not meeting data, access or required rule criteria
|
|
21
|
-
*/
|
|
22
|
-
errors: FieldErrors[];
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* All operations on a loan are stateful. This means loan changes are not committed until the loan.commit is called
|
|
26
|
-
*/
|
|
27
|
-
export interface ILoanV2 extends Omit<ILoan, 'commit' | 'setFields' | 'merge'> {
|
|
28
|
-
/**
|
|
29
|
-
* Commit all pending changes on the current loan
|
|
30
|
-
*
|
|
31
|
-
* @returns v3 Loan Object
|
|
32
|
-
* @throws {Error} if the loan is not in a valid state or if there are business rule violations
|
|
33
|
-
*
|
|
34
|
-
* #### Product Compatibility:
|
|
35
|
-
* | | Encompass | Encompass Web | TPO | Consumer Connect |
|
|
36
|
-
* :-----:|:-----: |:-----: |:-----: |:-----: |
|
|
37
|
-
* | commit | ✖️ | ✖️ | ✖️ | ✖️ |
|
|
38
|
-
*/
|
|
39
|
-
commit(): Promise<LoanObject>;
|
|
40
|
-
/**
|
|
41
|
-
* Syncs the loan workspace with any changes made by other users
|
|
42
|
-
* #### Product Compatibility:
|
|
43
|
-
* | | Encompass | Encompass Web | TPO | Consumer Connect |
|
|
44
|
-
* :-----:|:-----: |:-----: |:-----: |:-----: |
|
|
45
|
-
* | merge | ✖️ | ✖️ | ✖️ | ✖️ |
|
|
46
|
-
*/
|
|
47
|
-
merge(): Promise<LoanObject>;
|
|
48
|
-
/**
|
|
49
|
-
* Set the values of one or more fields on the Loan.
|
|
50
|
-
*
|
|
51
|
-
* @param fields list of field ids and their values
|
|
52
|
-
* @returns list of field ids that failed to set
|
|
53
|
-
* @throws {Error} if operation fails due to network error
|
|
54
|
-
*
|
|
55
|
-
* #### Product Compatibility:
|
|
56
|
-
* | | Encompass | Encompass Web | TPO | Consumer Connect |
|
|
57
|
-
* :-----:|:-----: |:-----: |:-----: |:-----: |
|
|
58
|
-
* | setFields | ✖️ | ✖️ | ✖️ | ✖️ |
|
|
59
|
-
*/
|
|
60
|
-
setFields(fields: Record<string, string>): Promise<SetFieldResponse>;
|
|
61
|
-
}
|
package/dist/types/module.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum LogLevel {
|
|
2
|
-
TRACE = "TRACE",
|
|
3
|
-
DEBUG = "DEBUG",
|
|
4
|
-
INFO = "INFO",
|
|
5
|
-
AUDIT = "AUDIT",
|
|
6
|
-
WARN = "WARN",
|
|
7
|
-
ERROR = "ERROR",
|
|
8
|
-
FATAL = "FATAL"
|
|
9
|
-
}
|
|
10
|
-
export interface IModule {
|
|
11
|
-
getCapabilities(): Promise<Record<string, string>>;
|
|
12
|
-
getParameters(): Promise<Record<string, string>>;
|
|
13
|
-
unload(): Promise<void>;
|
|
14
|
-
log(message: string, logLevel: LogLevel): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
export declare type ModuleUnLoadingListener = (id: string) => boolean;
|
package/dist/types/session.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare type OriginInfo = {
|
|
2
|
-
partnerAccessToken: string;
|
|
3
|
-
id: string;
|
|
4
|
-
transactionId?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare type TransactionInfo = {
|
|
7
|
-
id: string | null;
|
|
8
|
-
};
|
|
9
|
-
export declare type TransactionResource = {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
repository: string;
|
|
13
|
-
mimeType: string;
|
|
14
|
-
};
|
|
15
|
-
export declare type TransactionOptions = {
|
|
16
|
-
scope?: Array<string>;
|
|
17
|
-
request: {
|
|
18
|
-
type: string;
|
|
19
|
-
options?: Record<string, string>;
|
|
20
|
-
resources: Array<TransactionResource>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare type TransactionResourceFile = {
|
|
24
|
-
name: string;
|
|
25
|
-
source: string;
|
|
26
|
-
};
|
|
27
|
-
export declare type TransactionResourceResponse = {
|
|
28
|
-
id: string;
|
|
29
|
-
respository: string;
|
|
30
|
-
name: string;
|
|
31
|
-
location: string;
|
|
32
|
-
authorizationHeader: string;
|
|
33
|
-
mimeType: string;
|
|
34
|
-
};
|
|
35
|
-
export declare type TransactionEvent = {
|
|
36
|
-
text: string;
|
|
37
|
-
type: string;
|
|
38
|
-
comments: string;
|
|
39
|
-
resources: Array<TransactionResource>;
|
|
40
|
-
};
|
|
41
|
-
export interface ITransaction {
|
|
42
|
-
getOrigin(): Promise<OriginInfo>;
|
|
43
|
-
refreshOrigin(): Promise<OriginInfo>;
|
|
44
|
-
get(): Promise<TransactionInfo>;
|
|
45
|
-
set(options: TransactionInfo): Promise<void>;
|
|
46
|
-
create(options: TransactionOptions): Promise<TransactionInfo>;
|
|
47
|
-
update(options: TransactionOptions): Promise<TransactionInfo>;
|
|
48
|
-
createResource(options: TransactionResourceFile): Promise<TransactionResourceResponse>;
|
|
49
|
-
createEvent(options: TransactionEvent): Promise<TransactionInfo>;
|
|
50
|
-
close(): Promise<void>;
|
|
51
|
-
cancel(): Promise<void>;
|
|
52
|
-
error(): Promise<void>;
|
|
53
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare type TransactionRequest = {
|
|
2
|
-
type: string;
|
|
3
|
-
options?: Record<string, string>;
|
|
4
|
-
};
|
|
5
|
-
export declare type TransactionTemplateOptions = {
|
|
6
|
-
request: Array<TransactionRequest>;
|
|
7
|
-
};
|
|
8
|
-
export interface ITransactionTemplate {
|
|
9
|
-
get(): Promise<TransactionTemplateOptions | null>;
|
|
10
|
-
save(options: TransactionTemplateOptions): Promise<string>;
|
|
11
|
-
close(): Promise<string>;
|
|
12
|
-
}
|