@vqnguyen1/piece-icemortgage-encompass 0.0.3 → 0.0.4
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/package.json +2 -2
- package/src/index.js +15 -1
- package/src/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vqnguyen1/piece-icemortgage-encompass",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "src/index.ts",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@activepieces/pieces-framework": "*",
|
|
8
8
|
"@activepieces/pieces-common": "*",
|
package/src/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.icemortgageEncompassAuth = exports.icemortgageEncompass = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
6
|
const shared_1 = require("@activepieces/shared");
|
|
7
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
8
|
const auth_1 = require("./lib/common/auth");
|
|
7
9
|
Object.defineProperty(exports, "icemortgageEncompassAuth", { enumerable: true, get: function () { return auth_1.icemortgageEncompassAuth; } });
|
|
8
10
|
const create_loan_1 = require("./lib/actions/create-loan");
|
|
@@ -20,7 +22,7 @@ exports.icemortgageEncompass = (0, pieces_framework_1.createPiece)({
|
|
|
20
22
|
displayName: 'IceMortgage Encompass',
|
|
21
23
|
auth: auth_1.icemortgageEncompassAuth,
|
|
22
24
|
minimumSupportedRelease: '0.20.0',
|
|
23
|
-
logoUrl: 'https://
|
|
25
|
+
logoUrl: 'https://i.imgur.com/UqqkpPQ.png',
|
|
24
26
|
authors: ['vqnguyen1'],
|
|
25
27
|
categories: [shared_1.PieceCategory.BUSINESS_INTELLIGENCE],
|
|
26
28
|
actions: [
|
|
@@ -35,6 +37,18 @@ exports.icemortgageEncompass = (0, pieces_framework_1.createPiece)({
|
|
|
35
37
|
document_update_1.updateDocument,
|
|
36
38
|
document_add_comments_1.addDocumentComments,
|
|
37
39
|
document_assign_attachments_1.assignDocumentAttachments,
|
|
40
|
+
(0, pieces_common_1.createCustomApiCallAction)({
|
|
41
|
+
baseUrl: (auth) => auth.baseUrl || 'https://api.elliemae.com',
|
|
42
|
+
auth: auth_1.icemortgageEncompassAuth,
|
|
43
|
+
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
// Note: Encompass uses OAuth2, this is a simplified version
|
|
45
|
+
// In production, you'd need to handle token refresh
|
|
46
|
+
return {
|
|
47
|
+
'Authorization': `Bearer ${auth.clientSecret}`,
|
|
48
|
+
'Content-Type': 'application/json',
|
|
49
|
+
};
|
|
50
|
+
}),
|
|
51
|
+
}),
|
|
38
52
|
],
|
|
39
53
|
triggers: [],
|
|
40
54
|
});
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/custom/icemortgage-encompass/src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/custom/icemortgage-encompass/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,iDAAqD;AACrD,+DAAwE;AACxE,4CAA6D;AAgDpD,yGAhDA,+BAAwB,OAgDA;AA/CjC,2DAAuD;AACvD,+DAA2D;AAC3D,2DAAuD;AACvD,2DAAuD;AACvD,yEAAoE;AACpE,mEAA+D;AAC/D,uEAAmE;AACnE,+DAA4D;AAC5D,mEAA+D;AAC/D,+EAA0E;AAC1E,2FAAsF;AAEzE,QAAA,oBAAoB,GAAG,IAAA,8BAAW,EAAC;IAC9C,WAAW,EAAE,uBAAuB;IACpC,IAAI,EAAE,+BAAwB;IAC9B,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,CAAC,WAAW,CAAC;IACtB,UAAU,EAAE,CAAC,sBAAa,CAAC,qBAAqB,CAAC;IACjD,OAAO,EAAE;QACP,wBAAU;QACV,4BAAY;QACZ,wBAAU;QACV,wBAAU;QACV,qCAAgB;QAChB,gCAAc;QACd,oCAAgB;QAChB,6BAAa;QACb,gCAAc;QACd,2CAAmB;QACnB,uDAAyB;QACzB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAE,IAAY,CAAC,OAAO,IAAI,0BAA0B;YACtE,IAAI,EAAE,+BAAwB;YAC9B,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,4DAA4D;gBAC5D,oDAAoD;gBACpD,OAAO;oBACL,eAAe,EAAE,UAAW,IAAY,CAAC,YAAY,EAAE;oBACvD,cAAc,EAAE,kBAAkB;iBACnC,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|