@vqnguyen1/piece-fiserv-premier 0.0.10 → 0.0.11
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 +1 -1
- package/src/index.js +2 -3
- package/src/index.js.map +1 -1
- package/src/lib/actions/get-party.d.ts +4 -1
- package/src/lib/actions/get-party.js +78 -22
- package/src/lib/actions/get-party.js.map +1 -1
- package/src/lib/actions/get-party-by-tax-id.d.ts +0 -7
- package/src/lib/actions/get-party-by-tax-id.js +0 -58
- package/src/lib/actions/get-party-by-tax-id.js.map +0 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.fiservPremier = exports.fiservPremierAuth = void 0;
|
|
|
4
4
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
5
|
const shared_1 = require("@activepieces/shared");
|
|
6
6
|
const get_party_1 = require("./lib/actions/get-party");
|
|
7
|
-
const get_party_by_tax_id_1 = require("./lib/actions/get-party-by-tax-id");
|
|
8
7
|
const get_party_list_1 = require("./lib/actions/get-party-list");
|
|
9
8
|
const add_party_1 = require("./lib/actions/add-party");
|
|
10
9
|
const update_party_1 = require("./lib/actions/update-party");
|
|
@@ -28,10 +27,10 @@ exports.fiservPremier = (0, pieces_framework_1.createPiece)({
|
|
|
28
27
|
displayName: 'Fiserv Premier',
|
|
29
28
|
auth: exports.fiservPremierAuth,
|
|
30
29
|
minimumSupportedRelease: '0.20.0',
|
|
31
|
-
logoUrl: 'https://
|
|
30
|
+
logoUrl: 'https://raw.githubusercontent.com/activepieces/activepieces/main/packages/pieces/custom/fiserv-premier/fiserv-logo.png',
|
|
32
31
|
authors: ['vqnguyen1'],
|
|
33
32
|
categories: [shared_1.PieceCategory.BUSINESS_INTELLIGENCE],
|
|
34
|
-
actions: [get_party_1.getParty,
|
|
33
|
+
actions: [get_party_1.getParty, get_party_list_1.getPartyList, add_party_1.addParty, update_party_1.updateParty],
|
|
35
34
|
triggers: [],
|
|
36
35
|
});
|
|
37
36
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/custom/fiserv-premier/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAkF;AAClF,iDAAqD;AACrD,uDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/custom/fiserv-premier/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAkF;AAClF,iDAAqD;AACrD,uDAAmD;AACnD,iEAA4D;AAC5D,uDAAmD;AACnD,6DAAyD;AAE5C,QAAA,iBAAiB,GAAG,4BAAS,CAAC,UAAU,CAAC;IACpD,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,4EAA4E;YACzF,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACjC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;CACF,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,IAAA,8BAAW,EAAC;IACvC,WAAW,EAAE,gBAAgB;IAC7B,IAAI,EAAE,yBAAiB;IACvB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,wHAAwH;IACjI,OAAO,EAAE,CAAC,WAAW,CAAC;IACtB,UAAU,EAAE,CAAC,sBAAa,CAAC,qBAAqB,CAAC;IACjD,OAAO,EAAE,CAAC,oBAAQ,EAAE,6BAAY,EAAE,oBAAQ,EAAE,0BAAW,CAAC;IACxD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -2,5 +2,8 @@ export declare const getParty: import("@activepieces/pieces-framework").IAction<
|
|
|
2
2
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
3
|
organizationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
}>, {
|
|
5
|
-
|
|
5
|
+
searchType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
6
|
+
partyId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
+
taxId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
+
maxRecords: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
6
9
|
}>;
|
|
@@ -9,12 +9,35 @@ exports.getParty = (0, pieces_framework_1.createAction)({
|
|
|
9
9
|
name: 'get_party',
|
|
10
10
|
auth: __1.fiservPremierAuth,
|
|
11
11
|
displayName: 'Get Party',
|
|
12
|
-
description: 'Get party information by Party ID',
|
|
12
|
+
description: 'Get party information by Party ID or Tax ID',
|
|
13
13
|
props: {
|
|
14
|
+
searchType: pieces_framework_1.Property.StaticDropdown({
|
|
15
|
+
displayName: 'Search Type',
|
|
16
|
+
description: 'Choose how to search for the party',
|
|
17
|
+
required: true,
|
|
18
|
+
options: {
|
|
19
|
+
options: [
|
|
20
|
+
{ label: 'Party ID', value: 'partyId' },
|
|
21
|
+
{ label: 'Tax ID', value: 'taxId' },
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
defaultValue: 'partyId',
|
|
25
|
+
}),
|
|
14
26
|
partyId: pieces_framework_1.Property.ShortText({
|
|
15
27
|
displayName: 'Party ID',
|
|
16
28
|
description: 'The ID of the party to retrieve',
|
|
17
|
-
required:
|
|
29
|
+
required: false,
|
|
30
|
+
}),
|
|
31
|
+
taxId: pieces_framework_1.Property.ShortText({
|
|
32
|
+
displayName: 'Tax ID',
|
|
33
|
+
description: 'The Tax ID to search for',
|
|
34
|
+
required: false,
|
|
35
|
+
}),
|
|
36
|
+
maxRecords: pieces_framework_1.Property.Number({
|
|
37
|
+
displayName: 'Max Records',
|
|
38
|
+
description: 'Maximum number of records to return (only for Tax ID search)',
|
|
39
|
+
required: false,
|
|
40
|
+
defaultValue: 25,
|
|
18
41
|
}),
|
|
19
42
|
},
|
|
20
43
|
run(context) {
|
|
@@ -22,29 +45,62 @@ exports.getParty = (0, pieces_framework_1.createAction)({
|
|
|
22
45
|
const auth = context.auth;
|
|
23
46
|
const baseUrl = auth.baseUrl;
|
|
24
47
|
const organizationId = auth.organizationId;
|
|
25
|
-
const { partyId } = context.propsValue;
|
|
26
|
-
// Generate a unique transaction ID
|
|
48
|
+
const { searchType, partyId, taxId, maxRecords } = context.propsValue;
|
|
27
49
|
const trnId = crypto.randomUUID();
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
if (searchType === 'partyId') {
|
|
51
|
+
// Search by Party ID - single record
|
|
52
|
+
if (!partyId) {
|
|
53
|
+
throw new Error('Party ID is required when search type is Party ID');
|
|
54
|
+
}
|
|
55
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
56
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
57
|
+
url: `${baseUrl}/banking/efx/v1/partyservice/parties/parties/secured`,
|
|
58
|
+
headers: {
|
|
59
|
+
'accept': 'application/json',
|
|
60
|
+
'EFXHeader': JSON.stringify({
|
|
61
|
+
OrganizationId: organizationId,
|
|
62
|
+
TrnId: trnId,
|
|
63
|
+
}),
|
|
64
|
+
'Content-Type': 'application/json',
|
|
65
|
+
},
|
|
66
|
+
body: {
|
|
67
|
+
PartySel: {
|
|
68
|
+
PartyKeys: {
|
|
69
|
+
PartyId: partyId,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
return response.body;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
// Search by Tax ID - list of records
|
|
78
|
+
if (!taxId) {
|
|
79
|
+
throw new Error('Tax ID is required when search type is Tax ID');
|
|
80
|
+
}
|
|
81
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
82
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
83
|
+
url: `${baseUrl}/banking/efx/v1/partyservice/parties/parties/secured/list`,
|
|
84
|
+
headers: {
|
|
85
|
+
'accept': 'application/json',
|
|
86
|
+
'EFXHeader': JSON.stringify({
|
|
87
|
+
OrganizationId: organizationId,
|
|
88
|
+
TrnId: trnId,
|
|
89
|
+
}),
|
|
90
|
+
'Content-Type': 'application/json',
|
|
91
|
+
},
|
|
92
|
+
body: {
|
|
93
|
+
RecCtrlIn: {
|
|
94
|
+
MaxRecLimit: maxRecords || 25,
|
|
95
|
+
Cursor: '',
|
|
96
|
+
},
|
|
97
|
+
PartyListSel: {
|
|
98
|
+
TaxIdent: taxId,
|
|
43
99
|
},
|
|
44
100
|
},
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
101
|
+
});
|
|
102
|
+
return response.body;
|
|
103
|
+
}
|
|
48
104
|
});
|
|
49
105
|
},
|
|
50
106
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-party.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/custom/fiserv-premier/src/lib/actions/get-party.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,+DAAqE;AACrE,6BAA0C;AAE7B,QAAA,QAAQ,GAAG,IAAA,+BAAY,EAAC;IACnC,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,qBAAiB;IACvB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"get-party.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/custom/fiserv-premier/src/lib/actions/get-party.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,+DAAqE;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;yBACX;wBACD,YAAY,EAAE;4BACZ,QAAQ,EAAE,KAAK;yBAChB;qBACF;iBACF,CAAC,CAAC;gBAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;YACvB,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getPartyByTaxId: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
organizationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
taxId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
maxRecords: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
7
|
-
}>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPartyByTaxId = 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 __1 = require("../..");
|
|
8
|
-
exports.getPartyByTaxId = (0, pieces_framework_1.createAction)({
|
|
9
|
-
name: 'get_party_by_tax_id',
|
|
10
|
-
auth: __1.fiservPremierAuth,
|
|
11
|
-
displayName: 'Get Party by Tax ID',
|
|
12
|
-
description: 'Get party information by Tax ID',
|
|
13
|
-
props: {
|
|
14
|
-
taxId: pieces_framework_1.Property.ShortText({
|
|
15
|
-
displayName: 'Tax ID',
|
|
16
|
-
description: 'The Tax ID to search for',
|
|
17
|
-
required: true,
|
|
18
|
-
}),
|
|
19
|
-
maxRecords: pieces_framework_1.Property.Number({
|
|
20
|
-
displayName: 'Max Records',
|
|
21
|
-
description: 'Maximum number of records to return',
|
|
22
|
-
required: false,
|
|
23
|
-
defaultValue: 25,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const auth = context.auth;
|
|
29
|
-
const baseUrl = auth.baseUrl;
|
|
30
|
-
const organizationId = auth.organizationId;
|
|
31
|
-
const { taxId, maxRecords } = context.propsValue;
|
|
32
|
-
const trnId = crypto.randomUUID();
|
|
33
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
34
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
35
|
-
url: `${baseUrl}/banking/efx/v1/partyservice/parties/parties/secured/list`,
|
|
36
|
-
headers: {
|
|
37
|
-
'accept': 'application/json',
|
|
38
|
-
'EFXHeader': JSON.stringify({
|
|
39
|
-
OrganizationId: organizationId,
|
|
40
|
-
TrnId: trnId,
|
|
41
|
-
}),
|
|
42
|
-
'Content-Type': 'application/json',
|
|
43
|
-
},
|
|
44
|
-
body: {
|
|
45
|
-
RecCtrlIn: {
|
|
46
|
-
MaxRecLimit: maxRecords || 25,
|
|
47
|
-
Cursor: '',
|
|
48
|
-
},
|
|
49
|
-
PartyListSel: {
|
|
50
|
-
TaxIdent: taxId,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
return response.body;
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=get-party-by-tax-id.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-party-by-tax-id.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/custom/fiserv-premier/src/lib/actions/get-party-by-tax-id.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,+DAAqE;AACrE,6BAA0C;AAE7B,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,qBAAiB;IACvB,WAAW,EAAE,qBAAqB;IAClC,WA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