@vqnguyen1/piece-fiserv-premier 0.0.9 → 0.0.10

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 CHANGED
@@ -1,14 +1,19 @@
1
1
  {
2
2
  "name": "@vqnguyen1/piece-fiserv-premier",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "license": "MIT",
5
- "type": "module",
6
- "main": "./src/index.ts",
5
+ "type": "commonjs",
6
+ "main": "./src/index.js",
7
+ "types": "./src/index.d.ts",
7
8
  "exports": {
8
- ".": "./src/index.ts"
9
+ ".": "./src/index.js"
9
10
  },
10
11
  "dependencies": {
11
12
  "tslib": "^2.3.0"
12
13
  },
13
- "peerDependencies": {}
14
- }
14
+ "peerDependencies": {
15
+ "@activepieces/pieces-framework": "*",
16
+ "@activepieces/pieces-common": "*",
17
+ "@activepieces/shared": "*"
18
+ }
19
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export declare const fiservPremierAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ organizationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>;
5
+ export declare const fiservPremier: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
6
+ baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
+ organizationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
+ }>>;
package/src/index.js ADDED
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fiservPremier = exports.fiservPremierAuth = void 0;
4
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
5
+ const shared_1 = require("@activepieces/shared");
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
+ const get_party_list_1 = require("./lib/actions/get-party-list");
9
+ const add_party_1 = require("./lib/actions/add-party");
10
+ const update_party_1 = require("./lib/actions/update-party");
11
+ exports.fiservPremierAuth = pieces_framework_1.PieceAuth.CustomAuth({
12
+ description: 'Fiserv Premier API credentials',
13
+ required: true,
14
+ props: {
15
+ baseUrl: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Base URL',
17
+ description: 'The base URL for the Fiserv Premier API (e.g., https://api.fiservapps.com)',
18
+ required: true,
19
+ }),
20
+ organizationId: pieces_framework_1.Property.ShortText({
21
+ displayName: 'Organization ID',
22
+ description: 'Your Fiserv Premier Organization ID',
23
+ required: true,
24
+ }),
25
+ },
26
+ });
27
+ exports.fiservPremier = (0, pieces_framework_1.createPiece)({
28
+ displayName: 'Fiserv Premier',
29
+ auth: exports.fiservPremierAuth,
30
+ minimumSupportedRelease: '0.20.0',
31
+ logoUrl: 'https://cdn.activepieces.com/pieces/fiserv-premier/fiserv-logo.png',
32
+ authors: ['vqnguyen1'],
33
+ categories: [shared_1.PieceCategory.BUSINESS_INTELLIGENCE],
34
+ actions: [get_party_1.getParty, get_party_by_tax_id_1.getPartyByTaxId, get_party_list_1.getPartyList, add_party_1.addParty, update_party_1.updateParty],
35
+ triggers: [],
36
+ });
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,2EAAoE;AACpE,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,oEAAoE;IAC7E,OAAO,EAAE,CAAC,WAAW,CAAC;IACtB,UAAU,EAAE,CAAC,sBAAa,CAAC,qBAAqB,CAAC;IACjD,OAAO,EAAE,CAAC,oBAAQ,EAAE,qCAAe,EAAE,6BAAY,EAAE,oBAAQ,EAAE,0BAAW,CAAC;IACzE,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const addParty: 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
+ partyData: import("@activepieces/pieces-framework").JsonProperty<true>;
6
+ }>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addParty = 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.addParty = (0, pieces_framework_1.createAction)({
9
+ name: 'add_party',
10
+ auth: __1.fiservPremierAuth,
11
+ displayName: 'Add Party',
12
+ description: 'Create a new party (person or organization)',
13
+ props: {
14
+ partyData: pieces_framework_1.Property.Json({
15
+ displayName: 'Party Data',
16
+ description: 'The complete party information as JSON object (PersonPartyInfo or OrgPartyInfo)',
17
+ required: true,
18
+ }),
19
+ },
20
+ run(context) {
21
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
+ const auth = context.auth;
23
+ const baseUrl = auth.baseUrl;
24
+ const organizationId = auth.organizationId;
25
+ const { partyData } = context.propsValue;
26
+ const trnId = crypto.randomUUID();
27
+ const response = yield pieces_common_1.httpClient.sendRequest({
28
+ method: pieces_common_1.HttpMethod.POST,
29
+ url: `${baseUrl}/banking/efx/v1/partyservice/parties/parties`,
30
+ headers: {
31
+ 'accept': 'application/json',
32
+ 'EFXHeader': JSON.stringify({
33
+ OrganizationId: organizationId,
34
+ TrnId: trnId,
35
+ }),
36
+ 'Content-Type': 'application/json',
37
+ },
38
+ body: partyData,
39
+ });
40
+ return response.body;
41
+ });
42
+ },
43
+ });
44
+ //# sourceMappingURL=add-party.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-party.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/custom/fiserv-premier/src/lib/actions/add-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,6CAA6C;IAC1D,KAAK,EAAE;QACL,SAAS,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACvB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,iFAAiF;YAC9F,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,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;YAC3C,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEzC,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;YAElC,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,OAAO,8CAA8C;gBAC7D,OAAO,EAAE;oBACP,QAAQ,EAAE,kBAAkB;oBAC5B,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC;wBAC1B,cAAc,EAAE,cAAc;wBAC9B,KAAK,EAAE,KAAK;qBACb,CAAC;oBACF,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,SAAS;aAChB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,7 @@
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
+ }>;
@@ -0,0 +1,58 @@
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
@@ -0,0 +1 @@
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,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC1B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAI,GAAG,OAAO,CAAC,IAAW,CAAC;YACjC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAC7B,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;YAC3C,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEjD,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;YAElC,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,OAAO,2DAA2D;gBAC1E,OAAO,EAAE;oBACP,QAAQ,EAAE,kBAAkB;oBAC5B,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC;wBAC1B,cAAc,EAAE,cAAc;wBAC9B,KAAK,EAAE,KAAK;qBACb,CAAC;oBACF,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE;wBACT,WAAW,EAAE,UAAU,IAAI,EAAE;wBAC7B,MAAM,EAAE,EAAE;qBACX;oBACD,YAAY,EAAE;wBACZ,QAAQ,EAAE,KAAK;qBAChB;iBACF;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const getPartyList: 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<false>;
6
+ maxRecords: import("@activepieces/pieces-framework").NumberProperty<false>;
7
+ cursor: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
+ }>;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPartyList = 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.getPartyList = (0, pieces_framework_1.createAction)({
9
+ name: 'get_party_list',
10
+ auth: __1.fiservPremierAuth,
11
+ displayName: 'Get Party List',
12
+ description: 'Get a list of parties with optional filtering',
13
+ props: {
14
+ taxId: pieces_framework_1.Property.ShortText({
15
+ displayName: 'Tax ID',
16
+ description: 'Filter by Tax ID (optional)',
17
+ required: false,
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
+ cursor: pieces_framework_1.Property.ShortText({
26
+ displayName: 'Cursor',
27
+ description: 'Cursor for pagination (optional)',
28
+ required: false,
29
+ }),
30
+ },
31
+ run(context) {
32
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
33
+ const auth = context.auth;
34
+ const baseUrl = auth.baseUrl;
35
+ const organizationId = auth.organizationId;
36
+ const { taxId, maxRecords, cursor } = context.propsValue;
37
+ const trnId = crypto.randomUUID();
38
+ const body = {
39
+ RecCtrlIn: {
40
+ MaxRecLimit: maxRecords || 25,
41
+ Cursor: cursor || '',
42
+ },
43
+ };
44
+ if (taxId) {
45
+ body.PartyListSel = {
46
+ TaxIdent: taxId,
47
+ };
48
+ }
49
+ const response = yield pieces_common_1.httpClient.sendRequest({
50
+ method: pieces_common_1.HttpMethod.POST,
51
+ url: `${baseUrl}/banking/efx/v1/partyservice/parties/parties/secured/list`,
52
+ headers: {
53
+ 'accept': 'application/json',
54
+ 'EFXHeader': JSON.stringify({
55
+ OrganizationId: organizationId,
56
+ TrnId: trnId,
57
+ }),
58
+ 'Content-Type': 'application/json',
59
+ },
60
+ body,
61
+ });
62
+ return response.body;
63
+ });
64
+ },
65
+ });
66
+ //# sourceMappingURL=get-party-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-party-list.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/custom/fiserv-premier/src/lib/actions/get-party-list.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,+DAAqE;AACrE,6BAA0C;AAE7B,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,qBAAiB;IACvB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,+CAA+C;IAC5D,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC1B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAI,GAAG,OAAO,CAAC,IAAW,CAAC;YACjC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAC7B,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;YAC3C,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEzD,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;YAElC,MAAM,IAAI,GAAQ;gBAChB,SAAS,EAAE;oBACT,WAAW,EAAE,UAAU,IAAI,EAAE;oBAC7B,MAAM,EAAE,MAAM,IAAI,EAAE;iBACrB;aACF,CAAC;YAEF,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,CAAC,YAAY,GAAG;oBAClB,QAAQ,EAAE,KAAK;iBAChB,CAAC;YACJ,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,OAAO,2DAA2D;gBAC1E,OAAO,EAAE;oBACP,QAAQ,EAAE,kBAAkB;oBAC5B,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC;wBAC1B,cAAc,EAAE,cAAc;wBAC9B,KAAK,EAAE,KAAK;qBACb,CAAC;oBACF,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI;aACL,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const getParty: 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
+ partyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
+ }>;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getParty = 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.getParty = (0, pieces_framework_1.createAction)({
9
+ name: 'get_party',
10
+ auth: __1.fiservPremierAuth,
11
+ displayName: 'Get Party',
12
+ description: 'Get party information by Party ID',
13
+ props: {
14
+ partyId: pieces_framework_1.Property.ShortText({
15
+ displayName: 'Party ID',
16
+ description: 'The ID of the party to retrieve',
17
+ required: true,
18
+ }),
19
+ },
20
+ run(context) {
21
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
22
+ const auth = context.auth;
23
+ const baseUrl = auth.baseUrl;
24
+ const organizationId = auth.organizationId;
25
+ const { partyId } = context.propsValue;
26
+ // Generate a unique transaction ID
27
+ const trnId = crypto.randomUUID();
28
+ const response = yield pieces_common_1.httpClient.sendRequest({
29
+ method: pieces_common_1.HttpMethod.POST,
30
+ url: `${baseUrl}/banking/efx/v1/partyservice/parties/parties/secured`,
31
+ headers: {
32
+ 'accept': 'application/json',
33
+ 'EFXHeader': JSON.stringify({
34
+ OrganizationId: organizationId,
35
+ TrnId: trnId,
36
+ }),
37
+ 'Content-Type': 'application/json',
38
+ },
39
+ body: {
40
+ PartySel: {
41
+ PartyKeys: {
42
+ PartyId: partyId,
43
+ },
44
+ },
45
+ },
46
+ });
47
+ return response.body;
48
+ });
49
+ },
50
+ });
51
+ //# sourceMappingURL=get-party.js.map
@@ -0,0 +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,mCAAmC;IAChD,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,iCAAiC;YAC9C,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,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;YAC3C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEvC,mCAAmC;YACnC,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;YAElC,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,OAAO,sDAAsD;gBACrE,OAAO,EAAE;oBACP,QAAQ,EAAE,kBAAkB;oBAC5B,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC;wBAC1B,cAAc,EAAE,cAAc;wBAC9B,KAAK,EAAE,KAAK;qBACb,CAAC;oBACF,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE;oBACJ,QAAQ,EAAE;wBACR,SAAS,EAAE;4BACT,OAAO,EAAE,OAAO;yBACjB;qBACF;iBACF;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const updateParty: 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
+ partyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
+ partyData: import("@activepieces/pieces-framework").JsonProperty<true>;
7
+ overrideAutoAck: import("@activepieces/pieces-framework").CheckboxProperty<false>;
8
+ }>;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateParty = 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.updateParty = (0, pieces_framework_1.createAction)({
9
+ name: 'update_party',
10
+ auth: __1.fiservPremierAuth,
11
+ displayName: 'Update Party',
12
+ description: 'Update an existing party',
13
+ props: {
14
+ partyId: pieces_framework_1.Property.ShortText({
15
+ displayName: 'Party ID',
16
+ description: 'The ID of the party to update',
17
+ required: true,
18
+ }),
19
+ partyData: pieces_framework_1.Property.Json({
20
+ displayName: 'Party Data',
21
+ description: 'The updated party information as JSON object (PersonPartyInfo or OrgPartyInfo)',
22
+ required: true,
23
+ }),
24
+ overrideAutoAck: pieces_framework_1.Property.Checkbox({
25
+ displayName: 'Override Auto Acknowledgment',
26
+ description: 'Override automatic acknowledgment',
27
+ required: false,
28
+ defaultValue: true,
29
+ }),
30
+ },
31
+ run(context) {
32
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
33
+ const auth = context.auth;
34
+ const baseUrl = auth.baseUrl;
35
+ const organizationId = auth.organizationId;
36
+ const { partyId, partyData, overrideAutoAck } = context.propsValue;
37
+ const trnId = crypto.randomUUID();
38
+ const body = Object.assign({ OvrdAutoAckInd: overrideAutoAck !== undefined ? String(overrideAutoAck) : 'true', PartyKeys: {
39
+ PartyId: partyId,
40
+ } }, partyData);
41
+ const response = yield pieces_common_1.httpClient.sendRequest({
42
+ method: pieces_common_1.HttpMethod.PUT,
43
+ url: `${baseUrl}/banking/efx/v1/partyservice/parties/parties`,
44
+ headers: {
45
+ 'accept': 'application/json',
46
+ 'EFXHeader': JSON.stringify({
47
+ OrganizationId: organizationId,
48
+ TrnId: trnId,
49
+ }),
50
+ 'Content-Type': 'application/json',
51
+ },
52
+ body,
53
+ });
54
+ return response.body;
55
+ });
56
+ },
57
+ });
58
+ //# sourceMappingURL=update-party.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-party.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/custom/fiserv-premier/src/lib/actions/update-party.ts"],"names":[],"mappings":";;;;AAAA,qEAGwC;AACxC,+DAAqE;AACrE,6BAA0C;AAE7B,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,qBAAiB;IACvB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,IAAI,CAAC;YACvB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,gFAAgF;YAC7F,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,eAAe,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACjC,WAAW,EAAE,8BAA8B;YAC3C,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,IAAI,GAAG,OAAO,CAAC,IAAW,CAAC;YACjC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAC7B,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;YAC3C,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEnE,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;YAElC,MAAM,IAAI,mBACR,cAAc,EAAE,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,MAAM,EAChF,SAAS,EAAE;oBACT,OAAO,EAAE,OAAO;iBACjB,IACE,SAAS,CACb,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,OAAO,8CAA8C;gBAC7D,OAAO,EAAE;oBACP,QAAQ,EAAE,kBAAkB;oBAC5B,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC;wBAC1B,cAAc,EAAE,cAAc;wBAC9B,KAAK,EAAE,KAAK;qBACb,CAAC;oBACF,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI;aACL,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}