@elliemae/pui-scripting-object 1.9.0 → 1.10.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/index.js +1 -0
- package/dist/cjs/objects/service.js +20 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/objects/service.js +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/objects/service.d.ts +58 -0
- package/dist/types/scriptingObjectTypes.d.ts +4 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __reExport(lib_exports, require("./objects/loanv2.js"), module.exports);
|
|
|
27
27
|
__reExport(lib_exports, require("./objects/memStorage.js"), module.exports);
|
|
28
28
|
__reExport(lib_exports, require("./objects/module.js"), module.exports);
|
|
29
29
|
__reExport(lib_exports, require("./objects/route.js"), module.exports);
|
|
30
|
+
__reExport(lib_exports, require("./objects/service.js"), module.exports);
|
|
30
31
|
__reExport(lib_exports, require("./objects/session.js"), module.exports);
|
|
31
32
|
__reExport(lib_exports, require("./objects/transaction.js"), module.exports);
|
|
32
33
|
__reExport(lib_exports, require("./objects/transactionTemplate.js"), module.exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var service_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(service_exports);
|
|
17
|
+
var ServiceSetupCategory = /* @__PURE__ */ ((ServiceSetupCategory2) => {
|
|
18
|
+
ServiceSetupCategory2["APPRAISAL"] = "Appraisal";
|
|
19
|
+
return ServiceSetupCategory2;
|
|
20
|
+
})(ServiceSetupCategory || {});
|
package/dist/esm/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./objects/loanv2.js";
|
|
|
10
10
|
export * from "./objects/memStorage.js";
|
|
11
11
|
export * from "./objects/module.js";
|
|
12
12
|
export * from "./objects/route.js";
|
|
13
|
+
export * from "./objects/service.js";
|
|
13
14
|
export * from "./objects/session.js";
|
|
14
15
|
export * from "./objects/transaction.js";
|
|
15
16
|
export * from "./objects/transactionTemplate.js";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './objects/loanv2.js';
|
|
|
10
10
|
export * from './objects/memStorage.js';
|
|
11
11
|
export * from './objects/module.js';
|
|
12
12
|
export * from './objects/route.js';
|
|
13
|
+
export * from './objects/service.js';
|
|
13
14
|
export * from './objects/session.js';
|
|
14
15
|
export * from './objects/transaction.js';
|
|
15
16
|
export * from './objects/transactionTemplate.js';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* type of service setup categories
|
|
3
|
+
*/
|
|
4
|
+
declare enum ServiceSetupCategory {
|
|
5
|
+
APPRAISAL = "Appraisal"
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* details of a service setup
|
|
9
|
+
*/
|
|
10
|
+
declare type ServiceSetup = {
|
|
11
|
+
/**
|
|
12
|
+
* service setup id
|
|
13
|
+
*/
|
|
14
|
+
serviceSetupId: string;
|
|
15
|
+
/**
|
|
16
|
+
* unique provider id
|
|
17
|
+
*/
|
|
18
|
+
providerId: string;
|
|
19
|
+
/**
|
|
20
|
+
* product listing name
|
|
21
|
+
*/
|
|
22
|
+
productListingName: string;
|
|
23
|
+
/**
|
|
24
|
+
* service setup category
|
|
25
|
+
*/
|
|
26
|
+
category: ServiceSetupCategory;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* options to open the service order integration
|
|
30
|
+
*/
|
|
31
|
+
declare type OpenOptions = {
|
|
32
|
+
/**
|
|
33
|
+
* context of the application that is opening the service order integration
|
|
34
|
+
*/
|
|
35
|
+
target: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Methods for interacting with the Service orders
|
|
39
|
+
*/
|
|
40
|
+
export interface IService {
|
|
41
|
+
/**
|
|
42
|
+
* Get the service setup for the current user and loan
|
|
43
|
+
*
|
|
44
|
+
* @param category - The category of the service setup
|
|
45
|
+
* @param providerId - The provider id of the service setup
|
|
46
|
+
* @returns list of service setups matching the input criteria. Empty list if no service setups are found
|
|
47
|
+
*/
|
|
48
|
+
getEligibleServices: (category: ServiceSetupCategory, providerId?: string) => Promise<Array<ServiceSetup>>;
|
|
49
|
+
/**
|
|
50
|
+
* open service intergration to place an order
|
|
51
|
+
*
|
|
52
|
+
* @param serviceSetupId - id of the service setup
|
|
53
|
+
* @param options - options for opening the service integration
|
|
54
|
+
* @throws Error if the service setup is not found or user is not authorized to open the integration
|
|
55
|
+
*/
|
|
56
|
+
open: (serviceSetupId: string, options: OpenOptions) => Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
export {};
|
|
@@ -12,6 +12,8 @@ import { IAnalytics } from './objects/analytics.js';
|
|
|
12
12
|
import { IMemStorage } from './objects/memStorage.js';
|
|
13
13
|
import { IView } from './objects/view.js';
|
|
14
14
|
import { IRoute } from './objects/route.js';
|
|
15
|
+
import { IModule } from './objects/module.js';
|
|
16
|
+
import { IService } from './objects/service.js';
|
|
15
17
|
export declare type ScriptingObjectTypes = {
|
|
16
18
|
Analytics: IAnalytics;
|
|
17
19
|
Application: IApplication;
|
|
@@ -22,7 +24,9 @@ export declare type ScriptingObjectTypes = {
|
|
|
22
24
|
Loan: ILoan;
|
|
23
25
|
LoanV2: ILoanV2;
|
|
24
26
|
MemStorage: IMemStorage;
|
|
27
|
+
Module: IModule;
|
|
25
28
|
Route: IRoute;
|
|
29
|
+
Service: IService;
|
|
26
30
|
Session: ISession;
|
|
27
31
|
Transaction: ITransaction;
|
|
28
32
|
TransactionTemplate: ITransactionTemplate;
|