@vqnguyen1/piece-icemortgage-encompass 0.0.3 → 0.0.5
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 +4 -6
- package/project.json +22 -0
- package/publish.sh +33 -0
- package/src/index.ts +52 -0
- package/src/lib/actions/create-loan.ts +99 -0
- package/src/lib/actions/delete-loan.ts +43 -0
- package/src/lib/actions/document-add-comments.ts +66 -0
- package/src/lib/actions/document-assign-attachments.ts +53 -0
- package/src/lib/actions/document-create.ts +61 -0
- package/src/lib/actions/document-list.ts +71 -0
- package/src/lib/actions/document-retrieve.ts +44 -0
- package/src/lib/actions/document-update.ts +61 -0
- package/src/lib/actions/manage-field-locks.ts +62 -0
- package/src/lib/actions/retrieve-loan.ts +39 -0
- package/src/lib/actions/update-loan.ts +105 -0
- package/src/lib/common/auth.ts +28 -0
- package/src/lib/common/helpers.ts +21 -0
- package/tsconfig.json +19 -0
- package/tsconfig.lib.json +10 -0
- package/src/index.d.ts +0 -8
- package/src/index.js +0 -41
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-loan.d.ts +0 -12
- package/src/lib/actions/create-loan.js +0 -101
- package/src/lib/actions/create-loan.js.map +0 -1
- package/src/lib/actions/delete-loan.d.ts +0 -8
- package/src/lib/actions/delete-loan.js +0 -43
- package/src/lib/actions/delete-loan.js.map +0 -1
- package/src/lib/actions/document-add-comments.d.ts +0 -11
- package/src/lib/actions/document-add-comments.js +0 -66
- package/src/lib/actions/document-add-comments.js.map +0 -1
- package/src/lib/actions/document-assign-attachments.d.ts +0 -10
- package/src/lib/actions/document-assign-attachments.js +0 -52
- package/src/lib/actions/document-assign-attachments.js.map +0 -1
- package/src/lib/actions/document-create.d.ts +0 -10
- package/src/lib/actions/document-create.js +0 -61
- package/src/lib/actions/document-create.js.map +0 -1
- package/src/lib/actions/document-list.d.ts +0 -11
- package/src/lib/actions/document-list.js +0 -72
- package/src/lib/actions/document-list.js.map +0 -1
- package/src/lib/actions/document-retrieve.d.ts +0 -9
- package/src/lib/actions/document-retrieve.js +0 -44
- package/src/lib/actions/document-retrieve.js.map +0 -1
- package/src/lib/actions/document-update.d.ts +0 -10
- package/src/lib/actions/document-update.js +0 -61
- package/src/lib/actions/document-update.js.map +0 -1
- package/src/lib/actions/manage-field-locks.d.ts +0 -10
- package/src/lib/actions/manage-field-locks.js +0 -62
- package/src/lib/actions/manage-field-locks.js.map +0 -1
- package/src/lib/actions/retrieve-loan.d.ts +0 -8
- package/src/lib/actions/retrieve-loan.js +0 -39
- package/src/lib/actions/retrieve-loan.js.map +0 -1
- package/src/lib/actions/update-loan.d.ts +0 -14
- package/src/lib/actions/update-loan.js +0 -100
- package/src/lib/actions/update-loan.js.map +0 -1
- package/src/lib/common/auth.d.ts +0 -6
- package/src/lib/common/auth.js +0 -31
- package/src/lib/common/auth.js.map +0 -1
- package/src/lib/common/helpers.d.ts +0 -1
- package/src/lib/common/helpers.js +0 -26
- package/src/lib/common/helpers.js.map +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createAction,
|
|
3
|
+
Property,
|
|
4
|
+
} from '@activepieces/pieces-framework';
|
|
5
|
+
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
|
|
6
|
+
import { icemortgageEncompassAuth } from '../common/auth';
|
|
7
|
+
import { getAccessToken } from '../common/helpers';
|
|
8
|
+
|
|
9
|
+
export const manageFieldLocks = createAction({
|
|
10
|
+
name: 'loan_manage_field_locks',
|
|
11
|
+
auth: icemortgageEncompassAuth,
|
|
12
|
+
displayName: 'Loan - Manage Field Locks',
|
|
13
|
+
description: 'Add, remove, or replace field locks on a loan',
|
|
14
|
+
props: {
|
|
15
|
+
loanId: Property.ShortText({
|
|
16
|
+
displayName: 'Loan ID',
|
|
17
|
+
description: 'The ID of the loan to manage field locks for',
|
|
18
|
+
required: true,
|
|
19
|
+
}),
|
|
20
|
+
action: Property.StaticDropdown({
|
|
21
|
+
displayName: 'Action',
|
|
22
|
+
description: 'The action to perform on field locks',
|
|
23
|
+
required: true,
|
|
24
|
+
options: {
|
|
25
|
+
options: [
|
|
26
|
+
{ label: 'Add', value: 'add' },
|
|
27
|
+
{ label: 'Remove', value: 'remove' },
|
|
28
|
+
{ label: 'Replace', value: 'replace' },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
}),
|
|
32
|
+
fields: Property.Array({
|
|
33
|
+
displayName: 'Fields',
|
|
34
|
+
description: 'Array of field names to lock/unlock (e.g., ["loan.secondSubordinateAmount", "loan.BorrowerPaidFHAVAClosingCostsAmount"])',
|
|
35
|
+
required: true,
|
|
36
|
+
}),
|
|
37
|
+
},
|
|
38
|
+
async run(context) {
|
|
39
|
+
const auth = context.auth as any;
|
|
40
|
+
const baseUrl = auth.baseUrl;
|
|
41
|
+
const { loanId, action, fields } = context.propsValue;
|
|
42
|
+
|
|
43
|
+
const accessToken = await getAccessToken(auth);
|
|
44
|
+
|
|
45
|
+
const response = await httpClient.sendRequest({
|
|
46
|
+
method: HttpMethod.PATCH,
|
|
47
|
+
url: `${baseUrl}/encompass/v3/loans/${loanId}/fieldLockData?action=${action}`,
|
|
48
|
+
headers: {
|
|
49
|
+
'Content-Type': 'application/json',
|
|
50
|
+
'Authorization': `Bearer ${accessToken}`,
|
|
51
|
+
},
|
|
52
|
+
body: fields,
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
return {
|
|
56
|
+
success: true,
|
|
57
|
+
action,
|
|
58
|
+
fields,
|
|
59
|
+
statusCode: response.status,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createAction,
|
|
3
|
+
Property,
|
|
4
|
+
} from '@activepieces/pieces-framework';
|
|
5
|
+
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
|
|
6
|
+
import { icemortgageEncompassAuth } from '../common/auth';
|
|
7
|
+
import { getAccessToken } from '../common/helpers';
|
|
8
|
+
|
|
9
|
+
export const retrieveLoan = createAction({
|
|
10
|
+
name: 'loan_retrieve',
|
|
11
|
+
auth: icemortgageEncompassAuth,
|
|
12
|
+
displayName: 'Loan - Retrieve',
|
|
13
|
+
description: 'Get loan details from Encompass by loan ID',
|
|
14
|
+
props: {
|
|
15
|
+
loanId: Property.ShortText({
|
|
16
|
+
displayName: 'Loan ID',
|
|
17
|
+
description: 'The ID of the loan to retrieve',
|
|
18
|
+
required: true,
|
|
19
|
+
}),
|
|
20
|
+
},
|
|
21
|
+
async run(context) {
|
|
22
|
+
const auth = context.auth as any;
|
|
23
|
+
const baseUrl = auth.baseUrl;
|
|
24
|
+
const { loanId } = context.propsValue;
|
|
25
|
+
|
|
26
|
+
const accessToken = await getAccessToken(auth);
|
|
27
|
+
|
|
28
|
+
const response = await httpClient.sendRequest({
|
|
29
|
+
method: HttpMethod.GET,
|
|
30
|
+
url: `${baseUrl}/encompass/v3/loans/${loanId}`,
|
|
31
|
+
headers: {
|
|
32
|
+
'Content-Type': 'application/json',
|
|
33
|
+
'Authorization': `Bearer ${accessToken}`,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
return response.body;
|
|
38
|
+
},
|
|
39
|
+
});
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createAction,
|
|
3
|
+
Property,
|
|
4
|
+
} from '@activepieces/pieces-framework';
|
|
5
|
+
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
|
|
6
|
+
import { icemortgageEncompassAuth } from '../common/auth';
|
|
7
|
+
import { getAccessToken } from '../common/helpers';
|
|
8
|
+
|
|
9
|
+
export const updateLoan = createAction({
|
|
10
|
+
name: 'loan_update',
|
|
11
|
+
auth: icemortgageEncompassAuth,
|
|
12
|
+
displayName: 'Loan - Update',
|
|
13
|
+
description: 'Update an existing loan in Encompass',
|
|
14
|
+
props: {
|
|
15
|
+
loanId: Property.ShortText({
|
|
16
|
+
displayName: 'Loan ID',
|
|
17
|
+
description: 'The ID of the loan to update',
|
|
18
|
+
required: true,
|
|
19
|
+
}),
|
|
20
|
+
loanData: Property.Json({
|
|
21
|
+
displayName: 'Loan Data',
|
|
22
|
+
description: 'The loan fields to update as JSON object',
|
|
23
|
+
required: true,
|
|
24
|
+
}),
|
|
25
|
+
view: Property.StaticDropdown({
|
|
26
|
+
displayName: 'View',
|
|
27
|
+
description: 'The view to return in the response',
|
|
28
|
+
required: false,
|
|
29
|
+
options: {
|
|
30
|
+
options: [
|
|
31
|
+
{ label: 'Entity', value: 'entity' },
|
|
32
|
+
{ label: 'ID', value: 'id' },
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
defaultValue: 'entity',
|
|
36
|
+
}),
|
|
37
|
+
templateType: Property.StaticDropdown({
|
|
38
|
+
displayName: 'Template Type',
|
|
39
|
+
description: 'Type of template to apply when updating the loan',
|
|
40
|
+
required: false,
|
|
41
|
+
options: {
|
|
42
|
+
options: [
|
|
43
|
+
{ label: 'None', value: '' },
|
|
44
|
+
{ label: 'Template Set', value: 'templateSet' },
|
|
45
|
+
{ label: 'Loan Program', value: 'loanProgram' },
|
|
46
|
+
{ label: 'Closing Cost', value: 'closingCost' },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
}),
|
|
50
|
+
templatePath: Property.ShortText({
|
|
51
|
+
displayName: 'Template Path',
|
|
52
|
+
description: 'Path to the template (e.g., "Public:\\Companywide\\Template Name")',
|
|
53
|
+
required: false,
|
|
54
|
+
}),
|
|
55
|
+
ignoreEmptyClosingCostValues: Property.Checkbox({
|
|
56
|
+
displayName: 'Ignore Empty Closing Cost Values',
|
|
57
|
+
description: 'Whether to ignore empty closing cost values when applying templates',
|
|
58
|
+
required: false,
|
|
59
|
+
defaultValue: false,
|
|
60
|
+
}),
|
|
61
|
+
ignoreEmptyLoanProgramValues: Property.Checkbox({
|
|
62
|
+
displayName: 'Ignore Empty Loan Program Values',
|
|
63
|
+
description: 'Whether to ignore empty loan program values when applying templates',
|
|
64
|
+
required: false,
|
|
65
|
+
defaultValue: false,
|
|
66
|
+
}),
|
|
67
|
+
},
|
|
68
|
+
async run(context) {
|
|
69
|
+
const auth = context.auth as any;
|
|
70
|
+
const baseUrl = auth.baseUrl;
|
|
71
|
+
const {
|
|
72
|
+
loanId,
|
|
73
|
+
loanData,
|
|
74
|
+
view,
|
|
75
|
+
templateType,
|
|
76
|
+
templatePath,
|
|
77
|
+
ignoreEmptyClosingCostValues,
|
|
78
|
+
ignoreEmptyLoanProgramValues,
|
|
79
|
+
} = context.propsValue;
|
|
80
|
+
|
|
81
|
+
const accessToken = await getAccessToken(auth);
|
|
82
|
+
|
|
83
|
+
// Build query parameters
|
|
84
|
+
const queryParams = new URLSearchParams();
|
|
85
|
+
if (view) queryParams.append('view', view);
|
|
86
|
+
if (templateType) queryParams.append('templateType', templateType);
|
|
87
|
+
if (templatePath) queryParams.append('templatePath', templatePath);
|
|
88
|
+
if (ignoreEmptyClosingCostValues) queryParams.append('ignoreEmptyClosingCostValues', 'true');
|
|
89
|
+
if (ignoreEmptyLoanProgramValues) queryParams.append('ignoreEmptyLoanProgramValues', 'true');
|
|
90
|
+
|
|
91
|
+
const url = `${baseUrl}/encompass/v3/loans/${loanId}${queryParams.toString() ? '?' + queryParams.toString() : ''}`;
|
|
92
|
+
|
|
93
|
+
const response = await httpClient.sendRequest({
|
|
94
|
+
method: HttpMethod.PATCH,
|
|
95
|
+
url,
|
|
96
|
+
headers: {
|
|
97
|
+
'Content-Type': 'application/json',
|
|
98
|
+
'Authorization': `Bearer ${accessToken}`,
|
|
99
|
+
},
|
|
100
|
+
body: loanData,
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
return response.body;
|
|
104
|
+
},
|
|
105
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PieceAuth, Property } from '@activepieces/pieces-framework';
|
|
2
|
+
|
|
3
|
+
export const icemortgageEncompassAuth = PieceAuth.CustomAuth({
|
|
4
|
+
description: 'ICE Mortgage Technology Encompass API credentials',
|
|
5
|
+
required: true,
|
|
6
|
+
props: {
|
|
7
|
+
baseUrl: Property.ShortText({
|
|
8
|
+
displayName: 'API Base URL',
|
|
9
|
+
description: 'The base URL for the Encompass API (e.g., https://api.elliemae.com)',
|
|
10
|
+
required: true,
|
|
11
|
+
}),
|
|
12
|
+
clientId: Property.ShortText({
|
|
13
|
+
displayName: 'Client ID',
|
|
14
|
+
description: 'Your Encompass API Client ID',
|
|
15
|
+
required: true,
|
|
16
|
+
}),
|
|
17
|
+
clientSecret: Property.ShortText({
|
|
18
|
+
displayName: 'Client Secret',
|
|
19
|
+
description: 'Your Encompass API Client Secret',
|
|
20
|
+
required: true,
|
|
21
|
+
}),
|
|
22
|
+
instanceId: Property.ShortText({
|
|
23
|
+
displayName: 'Instance ID',
|
|
24
|
+
description: 'Your Encompass Instance ID',
|
|
25
|
+
required: true,
|
|
26
|
+
}),
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
|
|
2
|
+
|
|
3
|
+
// Helper function to get access token
|
|
4
|
+
export async function getAccessToken(auth: any): Promise<string> {
|
|
5
|
+
// This is a simplified version. In production, implement proper token caching
|
|
6
|
+
const tokenResponse = await httpClient.sendRequest({
|
|
7
|
+
method: HttpMethod.POST,
|
|
8
|
+
url: `${auth.baseUrl}/oauth2/v1/token`,
|
|
9
|
+
headers: {
|
|
10
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
11
|
+
},
|
|
12
|
+
body: new URLSearchParams({
|
|
13
|
+
grant_type: 'client_credentials',
|
|
14
|
+
client_id: auth.clientId,
|
|
15
|
+
client_secret: auth.clientSecret,
|
|
16
|
+
instance_id: auth.instanceId,
|
|
17
|
+
}).toString(),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
return (tokenResponse.body as any).access_token;
|
|
21
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"forceConsistentCasingInFileNames": true,
|
|
6
|
+
"strict": true,
|
|
7
|
+
"noImplicitOverride": true,
|
|
8
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
9
|
+
"noImplicitReturns": true,
|
|
10
|
+
"noFallthroughCasesInSwitch": true
|
|
11
|
+
},
|
|
12
|
+
"files": [],
|
|
13
|
+
"include": [],
|
|
14
|
+
"references": [
|
|
15
|
+
{
|
|
16
|
+
"path": "./tsconfig.lib.json"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
package/src/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { icemortgageEncompassAuth } from './lib/common/auth';
|
|
2
|
-
export declare const icemortgageEncompass: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
clientSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
instanceId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
}>>;
|
|
8
|
-
export { icemortgageEncompassAuth };
|
package/src/index.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.icemortgageEncompassAuth = exports.icemortgageEncompass = void 0;
|
|
4
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
-
const shared_1 = require("@activepieces/shared");
|
|
6
|
-
const auth_1 = require("./lib/common/auth");
|
|
7
|
-
Object.defineProperty(exports, "icemortgageEncompassAuth", { enumerable: true, get: function () { return auth_1.icemortgageEncompassAuth; } });
|
|
8
|
-
const create_loan_1 = require("./lib/actions/create-loan");
|
|
9
|
-
const retrieve_loan_1 = require("./lib/actions/retrieve-loan");
|
|
10
|
-
const update_loan_1 = require("./lib/actions/update-loan");
|
|
11
|
-
const delete_loan_1 = require("./lib/actions/delete-loan");
|
|
12
|
-
const manage_field_locks_1 = require("./lib/actions/manage-field-locks");
|
|
13
|
-
const document_create_1 = require("./lib/actions/document-create");
|
|
14
|
-
const document_retrieve_1 = require("./lib/actions/document-retrieve");
|
|
15
|
-
const document_list_1 = require("./lib/actions/document-list");
|
|
16
|
-
const document_update_1 = require("./lib/actions/document-update");
|
|
17
|
-
const document_add_comments_1 = require("./lib/actions/document-add-comments");
|
|
18
|
-
const document_assign_attachments_1 = require("./lib/actions/document-assign-attachments");
|
|
19
|
-
exports.icemortgageEncompass = (0, pieces_framework_1.createPiece)({
|
|
20
|
-
displayName: 'IceMortgage Encompass',
|
|
21
|
-
auth: auth_1.icemortgageEncompassAuth,
|
|
22
|
-
minimumSupportedRelease: '0.20.0',
|
|
23
|
-
logoUrl: 'https://cdn.activepieces.com/pieces/icemortgage-encompass.png',
|
|
24
|
-
authors: ['vqnguyen1'],
|
|
25
|
-
categories: [shared_1.PieceCategory.BUSINESS_INTELLIGENCE],
|
|
26
|
-
actions: [
|
|
27
|
-
create_loan_1.createLoan,
|
|
28
|
-
retrieve_loan_1.retrieveLoan,
|
|
29
|
-
update_loan_1.updateLoan,
|
|
30
|
-
delete_loan_1.deleteLoan,
|
|
31
|
-
manage_field_locks_1.manageFieldLocks,
|
|
32
|
-
document_create_1.createDocument,
|
|
33
|
-
document_retrieve_1.retrieveDocument,
|
|
34
|
-
document_list_1.listDocuments,
|
|
35
|
-
document_update_1.updateDocument,
|
|
36
|
-
document_add_comments_1.addDocumentComments,
|
|
37
|
-
document_assign_attachments_1.assignDocumentAttachments,
|
|
38
|
-
],
|
|
39
|
-
triggers: [],
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/custom/icemortgage-encompass/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAA6D;AAC7D,iDAAqD;AACrD,4CAA6D;AAoCpD,yGApCA,+BAAwB,OAoCA;AAnCjC,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,+DAA+D;IACxE,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;KAC1B;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const createLoan: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
clientSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
instanceId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}>, {
|
|
7
|
-
loanData: import("@activepieces/pieces-framework").JsonProperty<true>;
|
|
8
|
-
loanFolder: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
view: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
10
|
-
templateType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
11
|
-
templatePath: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
|
-
}>;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createLoan = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../common/auth");
|
|
8
|
-
const helpers_1 = require("../common/helpers");
|
|
9
|
-
exports.createLoan = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'loan_create',
|
|
11
|
-
auth: auth_1.icemortgageEncompassAuth,
|
|
12
|
-
displayName: 'Loan - Create',
|
|
13
|
-
description: 'Create a new loan in Encompass',
|
|
14
|
-
props: {
|
|
15
|
-
loanData: pieces_framework_1.Property.Json({
|
|
16
|
-
displayName: 'Loan Data',
|
|
17
|
-
description: 'The complete loan information as JSON object',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
loanFolder: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Loan Folder',
|
|
22
|
-
description: 'The folder where the loan will be created (e.g., "My Pipeline")',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
view: pieces_framework_1.Property.StaticDropdown({
|
|
26
|
-
displayName: 'View',
|
|
27
|
-
description: 'The view to return in the response',
|
|
28
|
-
required: false,
|
|
29
|
-
options: {
|
|
30
|
-
options: [
|
|
31
|
-
{ label: 'Entity', value: 'entity' },
|
|
32
|
-
{ label: 'ID', value: 'id' },
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
defaultValue: 'entity',
|
|
36
|
-
}),
|
|
37
|
-
templateType: pieces_framework_1.Property.StaticDropdown({
|
|
38
|
-
displayName: 'Template Type',
|
|
39
|
-
description: 'Type of template to apply when creating the loan',
|
|
40
|
-
required: false,
|
|
41
|
-
options: {
|
|
42
|
-
options: [
|
|
43
|
-
{ label: 'None', value: '' },
|
|
44
|
-
{ label: 'Template Set', value: 'templateSet' },
|
|
45
|
-
{ label: 'Loan Program', value: 'loanProgram' },
|
|
46
|
-
{ label: 'Closing Cost', value: 'closingCost' },
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
}),
|
|
50
|
-
templatePath: pieces_framework_1.Property.ShortText({
|
|
51
|
-
displayName: 'Template Path',
|
|
52
|
-
description: 'Path to the template (e.g., "Public:\\Companywide\\Template Name")',
|
|
53
|
-
required: false,
|
|
54
|
-
}),
|
|
55
|
-
},
|
|
56
|
-
run(context) {
|
|
57
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
var _a;
|
|
59
|
-
const auth = context.auth;
|
|
60
|
-
const baseUrl = auth.baseUrl;
|
|
61
|
-
const { loanData, loanFolder, view, templateType, templatePath } = context.propsValue;
|
|
62
|
-
// Get access token
|
|
63
|
-
const accessToken = yield (0, helpers_1.getAccessToken)(auth);
|
|
64
|
-
// Build query parameters
|
|
65
|
-
const queryParams = new URLSearchParams();
|
|
66
|
-
if (loanFolder)
|
|
67
|
-
queryParams.append('loanFolder', loanFolder);
|
|
68
|
-
if (view)
|
|
69
|
-
queryParams.append('view', view);
|
|
70
|
-
if (templateType)
|
|
71
|
-
queryParams.append('templateType', templateType);
|
|
72
|
-
if (templatePath)
|
|
73
|
-
queryParams.append('templatePath', templatePath);
|
|
74
|
-
const url = `${baseUrl}/encompass/v3/loans${queryParams.toString() ? '?' + queryParams.toString() : ''}`;
|
|
75
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
76
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
77
|
-
url,
|
|
78
|
-
headers: {
|
|
79
|
-
'Content-Type': 'application/json',
|
|
80
|
-
'Authorization': `Bearer ${accessToken}`,
|
|
81
|
-
},
|
|
82
|
-
body: loanData,
|
|
83
|
-
});
|
|
84
|
-
// Extract loan ID from Location header if present
|
|
85
|
-
const locationHeader = (_a = response.headers) === null || _a === void 0 ? void 0 : _a['location'];
|
|
86
|
-
let loanId = null;
|
|
87
|
-
if (locationHeader) {
|
|
88
|
-
const match = locationHeader.match(/\/loans\/([^\/]+)$/);
|
|
89
|
-
if (match) {
|
|
90
|
-
loanId = match[1];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
loanId,
|
|
95
|
-
loanData: response.body,
|
|
96
|
-
statusCode: response.status,
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
//# sourceMappingURL=create-loan.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-loan.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/custom/icemortgage-encompass/src/lib/actions/create-loan.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const deleteLoan: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
clientSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
instanceId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}>, {
|
|
7
|
-
loanId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
}>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteLoan = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../common/auth");
|
|
8
|
-
const helpers_1 = require("../common/helpers");
|
|
9
|
-
exports.deleteLoan = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'loan_delete',
|
|
11
|
-
auth: auth_1.icemortgageEncompassAuth,
|
|
12
|
-
displayName: 'Loan - Delete',
|
|
13
|
-
description: 'Delete a loan from Encompass',
|
|
14
|
-
props: {
|
|
15
|
-
loanId: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Loan ID',
|
|
17
|
-
description: 'The ID of the loan to delete',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const auth = context.auth;
|
|
24
|
-
const baseUrl = auth.baseUrl;
|
|
25
|
-
const { loanId } = context.propsValue;
|
|
26
|
-
const accessToken = yield (0, helpers_1.getAccessToken)(auth);
|
|
27
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
28
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
29
|
-
url: `${baseUrl}/encompass/v3/loans/${loanId}`,
|
|
30
|
-
headers: {
|
|
31
|
-
'Content-Type': 'application/json',
|
|
32
|
-
'Authorization': `Bearer ${accessToken}`,
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
return {
|
|
36
|
-
success: true,
|
|
37
|
-
statusCode: response.status,
|
|
38
|
-
message: `Loan ${loanId} deleted successfully`,
|
|
39
|
-
};
|
|
40
|
-
});
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=delete-loan.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-loan.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/custom/icemortgage-encompass/src/lib/actions/delete-loan.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,+DAAqE;AACrE,yCAA0D;AAC1D,+CAAmD;AAEtC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,+BAAwB;IAC9B,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,8BAA8B;IAC3C,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAI,GAAG,OAAO,CAAC,IAAW,CAAC;YACjC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAC7B,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEtC,MAAM,WAAW,GAAG,MAAM,IAAA,wBAAc,EAAC,IAAI,CAAC,CAAC;YAE/C,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,GAAG,EAAE,GAAG,OAAO,uBAAuB,MAAM,EAAE;gBAC9C,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;oBAClC,eAAe,EAAE,UAAU,WAAW,EAAE;iBACzC;aACF,CAAC,CAAC;YAEH,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,UAAU,EAAE,QAAQ,CAAC,MAAM;gBAC3B,OAAO,EAAE,QAAQ,MAAM,uBAAuB;aAC/C,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const addDocumentComments: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
clientSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
instanceId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}>, {
|
|
7
|
-
loanId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
documentId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
-
comments: import("@activepieces/pieces-framework").ArrayProperty<true>;
|
|
10
|
-
view: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
11
|
-
}>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addDocumentComments = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../common/auth");
|
|
8
|
-
const helpers_1 = require("../common/helpers");
|
|
9
|
-
exports.addDocumentComments = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'document_add_comments',
|
|
11
|
-
auth: auth_1.icemortgageEncompassAuth,
|
|
12
|
-
displayName: 'Document - Add Comments',
|
|
13
|
-
description: 'Add comments to a document',
|
|
14
|
-
props: {
|
|
15
|
-
loanId: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Loan ID',
|
|
17
|
-
description: 'The ID of the loan',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
documentId: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Document ID',
|
|
22
|
-
description: 'The ID of the document to add comments to',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
comments: pieces_framework_1.Property.Array({
|
|
26
|
-
displayName: 'Comments',
|
|
27
|
-
description: 'Array of comment objects to add',
|
|
28
|
-
required: true,
|
|
29
|
-
}),
|
|
30
|
-
view: pieces_framework_1.Property.StaticDropdown({
|
|
31
|
-
displayName: 'View',
|
|
32
|
-
description: 'The view to return in the response',
|
|
33
|
-
required: false,
|
|
34
|
-
options: {
|
|
35
|
-
options: [
|
|
36
|
-
{ label: 'Entity', value: 'entity' },
|
|
37
|
-
{ label: 'ID', value: 'id' },
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
defaultValue: 'entity',
|
|
41
|
-
}),
|
|
42
|
-
},
|
|
43
|
-
run(context) {
|
|
44
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
const auth = context.auth;
|
|
46
|
-
const baseUrl = auth.baseUrl;
|
|
47
|
-
const { loanId, documentId, comments, view } = context.propsValue;
|
|
48
|
-
const accessToken = yield (0, helpers_1.getAccessToken)(auth);
|
|
49
|
-
const queryParams = new URLSearchParams();
|
|
50
|
-
queryParams.append('action', 'add');
|
|
51
|
-
if (view)
|
|
52
|
-
queryParams.append('view', view);
|
|
53
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
54
|
-
method: pieces_common_1.HttpMethod.PATCH,
|
|
55
|
-
url: `${baseUrl}/encompass/v3/loans/${loanId}/documents/${documentId}/comments?${queryParams.toString()}`,
|
|
56
|
-
headers: {
|
|
57
|
-
'Content-Type': 'application/json',
|
|
58
|
-
'Authorization': `Bearer ${accessToken}`,
|
|
59
|
-
},
|
|
60
|
-
body: comments,
|
|
61
|
-
});
|
|
62
|
-
return response.body;
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
//# sourceMappingURL=document-add-comments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-add-comments.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/custom/icemortgage-encompass/src/lib/actions/document-add-comments.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,+DAAqE;AACrE,yCAA0D;AAC1D,+CAAmD;AAEtC,QAAA,mBAAmB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,+BAAwB;IAC9B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,4BAA4B;IACzC,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACvB,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,oCAAoC;YACjD,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACpC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;iBAC7B;aACF;YACD,YAAY,EAAE,QAAQ;SACvB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAI,GAAG,OAAO,CAAC,IAAW,CAAC;YACjC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAC7B,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAElE,MAAM,WAAW,GAAG,MAAM,IAAA,wBAAc,EAAC,IAAI,CAAC,CAAC;YAE/C,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;YAC1C,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YACpC,IAAI,IAAI;gBAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YAE3C,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,KAAK;gBACxB,GAAG,EAAE,GAAG,OAAO,uBAAuB,MAAM,cAAc,UAAU,aAAa,WAAW,CAAC,QAAQ,EAAE,EAAE;gBACzG,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;oBAClC,eAAe,EAAE,UAAU,WAAW,EAAE;iBACzC;gBACD,IAAI,EAAE,QAAQ;aACf,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const assignDocumentAttachments: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
clientSecret: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
instanceId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}>, {
|
|
7
|
-
loanId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
documentId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
-
attachments: import("@activepieces/pieces-framework").ArrayProperty<true>;
|
|
10
|
-
}>;
|