@vqnguyen1/piece-fis-ibs-cards 0.0.1 → 0.0.3
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.d.ts +16 -0
- package/src/index.js +166 -0
- package/src/index.js.map +1 -0
- package/src/lib/actions/bank-control.d.ts +110 -0
- package/src/lib/actions/bank-control.js +371 -0
- package/src/lib/actions/bank-control.js.map +1 -0
- package/src/lib/actions/cards.d.ts +565 -0
- package/src/lib/actions/cards.js +1733 -0
- package/src/lib/actions/cards.js.map +1 -0
- package/src/lib/actions/security.d.ts +38 -0
- package/src/lib/actions/security.js +173 -0
- package/src/lib/actions/security.js.map +1 -0
- package/project.json +0 -22
- package/src/index.ts +0 -244
- package/src/lib/actions/bank-control.ts +0 -378
- package/src/lib/actions/cards.ts +0 -1732
- package/src/lib/actions/security.ts +0 -170
- package/tsconfig.json +0 -19
- package/tsconfig.lib.json +0 -10
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { createAction, Property } from '@activepieces/pieces-framework';
|
|
2
|
-
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
|
|
3
|
-
import { fisIbsCardsAuth } from '../..';
|
|
4
|
-
|
|
5
|
-
// Helper function to build headers
|
|
6
|
-
function buildHeaders(auth: any, ibsAuthorization?: string): Record<string, string> {
|
|
7
|
-
const headers: Record<string, string> = {
|
|
8
|
-
'Content-Type': 'application/json',
|
|
9
|
-
'organization-id': auth.organizationId,
|
|
10
|
-
'source-id': auth.sourceId,
|
|
11
|
-
'application-id': auth.applicationId,
|
|
12
|
-
'uuid': crypto.randomUUID(),
|
|
13
|
-
'ibs-authorization': ibsAuthorization || auth.ibsAuthorization,
|
|
14
|
-
};
|
|
15
|
-
if (auth.securityTokenType) {
|
|
16
|
-
headers['security-token-type'] = auth.securityTokenType;
|
|
17
|
-
}
|
|
18
|
-
return headers;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// ============================================
|
|
22
|
-
// IBS-Information-Security.json - Security & Authentication
|
|
23
|
-
// ============================================
|
|
24
|
-
|
|
25
|
-
export const security_ping = createAction({
|
|
26
|
-
auth: fisIbsCardsAuth,
|
|
27
|
-
name: 'security_ping',
|
|
28
|
-
displayName: 'Security - Ping Host System',
|
|
29
|
-
description: 'Perform ping of host system to determine if connection is valid',
|
|
30
|
-
props: {
|
|
31
|
-
ibsAuthorization: Property.ShortText({
|
|
32
|
-
displayName: 'IBS Authorization',
|
|
33
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
34
|
-
required: false,
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
|
-
async run(context) {
|
|
38
|
-
const auth = context.auth as any;
|
|
39
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
40
|
-
|
|
41
|
-
const response = await httpClient.sendRequest({
|
|
42
|
-
method: HttpMethod.GET,
|
|
43
|
-
url: `${auth.baseUrl}/IBSSZ/v4/ping`,
|
|
44
|
-
headers,
|
|
45
|
-
});
|
|
46
|
-
return response.body;
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export const security_change_racf_password = createAction({
|
|
51
|
-
auth: fisIbsCardsAuth,
|
|
52
|
-
name: 'security_change_racf_password',
|
|
53
|
-
displayName: 'Security - Change RACF Password',
|
|
54
|
-
description: 'Change password for current user ID within FIS RACF security environment',
|
|
55
|
-
props: {
|
|
56
|
-
ibsAuthorization: Property.ShortText({
|
|
57
|
-
displayName: 'IBS Authorization',
|
|
58
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
59
|
-
required: false,
|
|
60
|
-
}),
|
|
61
|
-
newPassword: Property.ShortText({
|
|
62
|
-
displayName: 'New Password',
|
|
63
|
-
description: 'The new RACF password (14-98 characters)',
|
|
64
|
-
required: true,
|
|
65
|
-
}),
|
|
66
|
-
applID: Property.ShortText({
|
|
67
|
-
displayName: 'Application ID',
|
|
68
|
-
description: 'RACF-defined application ID (optional)',
|
|
69
|
-
required: false,
|
|
70
|
-
}),
|
|
71
|
-
termID: Property.ShortText({
|
|
72
|
-
displayName: 'Terminal ID',
|
|
73
|
-
description: 'RACF-defined terminal ID (optional)',
|
|
74
|
-
required: false,
|
|
75
|
-
}),
|
|
76
|
-
altRoutID: Property.ShortText({
|
|
77
|
-
displayName: 'Alternate Routing ID',
|
|
78
|
-
description: 'Alternate routing ID (optional)',
|
|
79
|
-
required: false,
|
|
80
|
-
}),
|
|
81
|
-
},
|
|
82
|
-
async run(context) {
|
|
83
|
-
const auth = context.auth as any;
|
|
84
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
85
|
-
|
|
86
|
-
const body: Record<string, any> = {
|
|
87
|
-
racfPassword: {
|
|
88
|
-
newPwd: context.propsValue.newPassword,
|
|
89
|
-
},
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
if (context.propsValue.applID) {
|
|
93
|
-
body['racfPassword']['applID'] = context.propsValue.applID;
|
|
94
|
-
}
|
|
95
|
-
if (context.propsValue.termID) {
|
|
96
|
-
body['racfPassword']['termID'] = context.propsValue.termID;
|
|
97
|
-
}
|
|
98
|
-
if (context.propsValue.altRoutID) {
|
|
99
|
-
body['racfPassword']['altRoutID'] = context.propsValue.altRoutID;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
const response = await httpClient.sendRequest({
|
|
103
|
-
method: HttpMethod.PUT,
|
|
104
|
-
url: `${auth.baseUrl}/IBSSZ/v4/racf-password`,
|
|
105
|
-
headers,
|
|
106
|
-
body,
|
|
107
|
-
});
|
|
108
|
-
return response.body;
|
|
109
|
-
},
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
export const security_validate_racf_user = createAction({
|
|
113
|
-
auth: fisIbsCardsAuth,
|
|
114
|
-
name: 'security_validate_racf_user',
|
|
115
|
-
displayName: 'Security - Validate RACF User',
|
|
116
|
-
description: 'Validate user within FIS RACF security environment',
|
|
117
|
-
props: {
|
|
118
|
-
ibsAuthorization: Property.ShortText({
|
|
119
|
-
displayName: 'IBS Authorization',
|
|
120
|
-
description: 'IBS Authorization token (if different from connection)',
|
|
121
|
-
required: false,
|
|
122
|
-
}),
|
|
123
|
-
altRoutId: Property.ShortText({
|
|
124
|
-
displayName: 'Alternate Routing ID',
|
|
125
|
-
description: 'Alternate routing ID for system routing (optional)',
|
|
126
|
-
required: false,
|
|
127
|
-
}),
|
|
128
|
-
aceSysId: Property.StaticDropdown({
|
|
129
|
-
displayName: 'ACE System ID',
|
|
130
|
-
description: 'Which ACE system to perform the transaction',
|
|
131
|
-
required: false,
|
|
132
|
-
options: {
|
|
133
|
-
options: [
|
|
134
|
-
{ label: 'TEST - Test System', value: 'TEST' },
|
|
135
|
-
{ label: 'PROD - Production System', value: 'PROD' },
|
|
136
|
-
],
|
|
137
|
-
},
|
|
138
|
-
}),
|
|
139
|
-
currentPassword: Property.ShortText({
|
|
140
|
-
displayName: 'Current Password',
|
|
141
|
-
description: 'The user\'s current password',
|
|
142
|
-
required: false,
|
|
143
|
-
}),
|
|
144
|
-
termID: Property.ShortText({
|
|
145
|
-
displayName: 'Terminal ID',
|
|
146
|
-
description: 'RACF-defined terminal ID (optional)',
|
|
147
|
-
required: false,
|
|
148
|
-
}),
|
|
149
|
-
},
|
|
150
|
-
async run(context) {
|
|
151
|
-
const auth = context.auth as any;
|
|
152
|
-
const headers = buildHeaders(auth, context.propsValue.ibsAuthorization);
|
|
153
|
-
|
|
154
|
-
const params = new URLSearchParams();
|
|
155
|
-
if (context.propsValue.altRoutId) params.append('altRoutId', context.propsValue.altRoutId);
|
|
156
|
-
if (context.propsValue.aceSysId) params.append('aceSysId', context.propsValue.aceSysId);
|
|
157
|
-
if (context.propsValue.currentPassword) params.append('curPswrd', context.propsValue.currentPassword);
|
|
158
|
-
if (context.propsValue.termID) params.append('termID', context.propsValue.termID);
|
|
159
|
-
|
|
160
|
-
const queryString = params.toString();
|
|
161
|
-
const url = `${auth.baseUrl}/IBSSZ/v4/racf-user${queryString ? '?' + queryString : ''}`;
|
|
162
|
-
|
|
163
|
-
const response = await httpClient.sendRequest({
|
|
164
|
-
method: HttpMethod.GET,
|
|
165
|
-
url,
|
|
166
|
-
headers,
|
|
167
|
-
});
|
|
168
|
-
return response.body;
|
|
169
|
-
},
|
|
170
|
-
});
|
package/tsconfig.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|