@vqnguyen1/piece-fis-ibs 0.0.4 → 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.
Files changed (36) hide show
  1. package/package.json +2 -2
  2. package/project.json +22 -0
  3. package/src/index.ts +320 -0
  4. package/src/lib/actions/bank-control.ts +378 -0
  5. package/src/lib/actions/customer.ts +1574 -0
  6. package/src/lib/actions/deposit.ts +749 -0
  7. package/src/lib/actions/get-customer.ts +73 -0
  8. package/src/lib/actions/loan.ts +925 -0
  9. package/src/lib/actions/search-customers.ts +143 -0
  10. package/src/lib/actions/security.ts +170 -0
  11. package/tsconfig.json +19 -0
  12. package/tsconfig.lib.json +10 -0
  13. package/src/index.d.ts +0 -16
  14. package/src/index.js +0 -204
  15. package/src/index.js.map +0 -1
  16. package/src/lib/actions/bank-control.d.ts +0 -110
  17. package/src/lib/actions/bank-control.js +0 -371
  18. package/src/lib/actions/bank-control.js.map +0 -1
  19. package/src/lib/actions/customer.d.ts +0 -888
  20. package/src/lib/actions/customer.js +0 -1563
  21. package/src/lib/actions/customer.js.map +0 -1
  22. package/src/lib/actions/deposit.d.ts +0 -406
  23. package/src/lib/actions/deposit.js +0 -739
  24. package/src/lib/actions/deposit.js.map +0 -1
  25. package/src/lib/actions/get-customer.d.ts +0 -12
  26. package/src/lib/actions/get-customer.js +0 -69
  27. package/src/lib/actions/get-customer.js.map +0 -1
  28. package/src/lib/actions/loan.d.ts +0 -506
  29. package/src/lib/actions/loan.js +0 -910
  30. package/src/lib/actions/loan.js.map +0 -1
  31. package/src/lib/actions/search-customers.d.ts +0 -17
  32. package/src/lib/actions/search-customers.js +0 -127
  33. package/src/lib/actions/search-customers.js.map +0 -1
  34. package/src/lib/actions/security.d.ts +0 -38
  35. package/src/lib/actions/security.js +0 -173
  36. package/src/lib/actions/security.js.map +0 -1
@@ -0,0 +1,143 @@
1
+ import {
2
+ createAction,
3
+ Property,
4
+ } from '@activepieces/pieces-framework';
5
+ import { httpClient, HttpMethod } from '@activepieces/pieces-common';
6
+ import { fisIbsAuth } from '../..';
7
+
8
+ export const searchCustomers = createAction({
9
+ name: 'customer_search',
10
+ auth: fisIbsAuth,
11
+ displayName: 'Customer - Search',
12
+ description: 'Search for customers using various criteria.',
13
+ props: {
14
+ searchType: Property.StaticDropdown({
15
+ displayName: 'Search Type',
16
+ description: 'Type of search to perform',
17
+ required: true,
18
+ options: {
19
+ options: [
20
+ { label: 'By Name', value: 'name' },
21
+ { label: 'By TIN (Tax ID)', value: 'tin' },
22
+ { label: 'By Phone', value: 'phone' },
23
+ { label: 'By Account Number', value: 'account' },
24
+ ],
25
+ },
26
+ defaultValue: 'name',
27
+ }),
28
+ lastName: Property.ShortText({
29
+ displayName: 'Last Name',
30
+ description: 'Customer last name (for name search)',
31
+ required: false,
32
+ }),
33
+ firstName: Property.ShortText({
34
+ displayName: 'First Name',
35
+ description: 'Customer first name (for name search)',
36
+ required: false,
37
+ }),
38
+ tin: Property.ShortText({
39
+ displayName: 'TIN (Tax ID)',
40
+ description: 'Tax Identification Number (for TIN search)',
41
+ required: false,
42
+ }),
43
+ phoneNumber: Property.ShortText({
44
+ displayName: 'Phone Number',
45
+ description: 'Phone number (for phone search)',
46
+ required: false,
47
+ }),
48
+ accountNumber: Property.ShortText({
49
+ displayName: 'Account Number',
50
+ description: 'Account number (for account search)',
51
+ required: false,
52
+ }),
53
+ maxRecords: Property.Number({
54
+ displayName: 'Max Records',
55
+ description: 'Maximum number of records to return',
56
+ required: false,
57
+ defaultValue: 25,
58
+ }),
59
+ effectiveUserId: Property.ShortText({
60
+ displayName: 'Effective User ID',
61
+ description: 'Optional: User ID for audit purposes',
62
+ required: false,
63
+ }),
64
+ },
65
+ async run(context) {
66
+ const auth = context.auth as any;
67
+ const baseUrl = auth.baseUrl;
68
+ const {
69
+ searchType,
70
+ lastName,
71
+ firstName,
72
+ tin,
73
+ phoneNumber,
74
+ accountNumber,
75
+ maxRecords,
76
+ effectiveUserId,
77
+ } = context.propsValue;
78
+
79
+ const uuid = crypto.randomUUID();
80
+
81
+ const headers: Record<string, string> = {
82
+ 'accept': 'application/json',
83
+ 'Content-Type': 'application/json',
84
+ 'organization-id': auth.organizationId,
85
+ 'source-id': auth.sourceId,
86
+ 'application-id': auth.applicationId,
87
+ 'uuid': uuid,
88
+ 'ibs-authorization': auth.ibsAuthorization,
89
+ };
90
+
91
+ if (auth.securityTokenType) {
92
+ headers['security-token-type'] = auth.securityTokenType;
93
+ }
94
+
95
+ if (effectiveUserId) {
96
+ headers['effective-user-id'] = effectiveUserId;
97
+ }
98
+
99
+ // Build query parameters based on search type
100
+ const queryParams: Record<string, string> = {};
101
+
102
+ if (maxRecords) {
103
+ queryParams['maxRecs'] = String(maxRecords);
104
+ }
105
+
106
+ switch (searchType) {
107
+ case 'name':
108
+ if (lastName) {
109
+ queryParams['lastName'] = lastName;
110
+ }
111
+ if (firstName) {
112
+ queryParams['firstName'] = firstName;
113
+ }
114
+ break;
115
+ case 'tin':
116
+ if (tin) {
117
+ queryParams['tin'] = tin;
118
+ }
119
+ break;
120
+ case 'phone':
121
+ if (phoneNumber) {
122
+ queryParams['phone'] = phoneNumber;
123
+ }
124
+ break;
125
+ case 'account':
126
+ if (accountNumber) {
127
+ queryParams['acctNbr'] = accountNumber;
128
+ }
129
+ break;
130
+ }
131
+
132
+ const queryString = new URLSearchParams(queryParams).toString();
133
+ const url = `${baseUrl}/IBSCISRCH/v4/customers${queryString ? '?' + queryString : ''}`;
134
+
135
+ const response = await httpClient.sendRequest({
136
+ method: HttpMethod.GET,
137
+ url,
138
+ headers,
139
+ });
140
+
141
+ return response.body;
142
+ },
143
+ });
@@ -0,0 +1,170 @@
1
+ import { createAction, Property } from '@activepieces/pieces-framework';
2
+ import { httpClient, HttpMethod } from '@activepieces/pieces-common';
3
+ import { fisIbsAuth } 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: fisIbsAuth,
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: fisIbsAuth,
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: fisIbsAuth,
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 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
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../../../dist/out-tsc",
5
+ "declaration": true,
6
+ "types": ["node"]
7
+ },
8
+ "include": ["src/**/*.ts"],
9
+ "exclude": ["**/*.spec.ts", "**/*.test.ts"]
10
+ }
package/src/index.d.ts DELETED
@@ -1,16 +0,0 @@
1
- export declare const fisIbsAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- organizationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- sourceId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
- applicationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
- ibsAuthorization: import("@activepieces/pieces-framework").SecretTextProperty<true>;
7
- securityTokenType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
8
- }>;
9
- export declare const fisIbs: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
10
- baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
- organizationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
- sourceId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- applicationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
14
- ibsAuthorization: import("@activepieces/pieces-framework").SecretTextProperty<true>;
15
- securityTokenType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
16
- }>>;
package/src/index.js DELETED
@@ -1,204 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fisIbs = exports.fisIbsAuth = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const shared_1 = require("@activepieces/shared");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- // Security actions
9
- const security_1 = require("./lib/actions/security");
10
- // Bank Control actions
11
- const bank_control_1 = require("./lib/actions/bank-control");
12
- // Customer actions
13
- const customer_1 = require("./lib/actions/customer");
14
- // Deposit actions
15
- const deposit_1 = require("./lib/actions/deposit");
16
- // Loan actions
17
- const loan_1 = require("./lib/actions/loan");
18
- exports.fisIbsAuth = pieces_framework_1.PieceAuth.CustomAuth({
19
- description: 'FIS IBS API credentials',
20
- required: true,
21
- props: {
22
- baseUrl: pieces_framework_1.Property.ShortText({
23
- displayName: 'Base URL',
24
- description: 'The base URL for the FIS IBS API (e.g., https://api-gw-uat.fisglobal.com/rest)',
25
- required: true,
26
- defaultValue: 'https://api-gw-uat.fisglobal.com/rest',
27
- }),
28
- organizationId: pieces_framework_1.Property.ShortText({
29
- displayName: 'Organization ID',
30
- description: 'Your FIS Organization ID',
31
- required: true,
32
- }),
33
- sourceId: pieces_framework_1.Property.ShortText({
34
- displayName: 'Source ID',
35
- description: 'Source ID provided by FIS (e.g., APIGWY)',
36
- required: true,
37
- defaultValue: 'APIGWY',
38
- }),
39
- applicationId: pieces_framework_1.Property.ShortText({
40
- displayName: 'Application ID',
41
- description: 'Application ID for your integration',
42
- required: true,
43
- }),
44
- ibsAuthorization: pieces_framework_1.PieceAuth.SecretText({
45
- displayName: 'IBS Authorization',
46
- description: 'Authorization token for IBS APIs',
47
- required: true,
48
- }),
49
- securityTokenType: pieces_framework_1.Property.StaticDropdown({
50
- displayName: 'Security Token Type',
51
- description: 'Type of security token being used',
52
- required: false,
53
- options: {
54
- options: [
55
- { label: 'JWT', value: 'JWT' },
56
- { label: 'SAML', value: 'SAML' },
57
- { label: 'OAuth', value: 'OAuth' },
58
- ],
59
- },
60
- defaultValue: 'JWT',
61
- }),
62
- },
63
- });
64
- exports.fisIbs = (0, pieces_framework_1.createPiece)({
65
- displayName: 'FIS IBS',
66
- auth: exports.fisIbsAuth,
67
- minimumSupportedRelease: '0.20.0',
68
- logoUrl: 'https://yt3.googleusercontent.com/ytc/AIdro_m-dmhaXsmxBqi4nOVPXVX8ydLn1f781GsWvJ2oKG73TcA=s900-c-k-c0x00ffffff-no-rj',
69
- authors: ['vqnguyen1'],
70
- categories: [shared_1.PieceCategory.BUSINESS_INTELLIGENCE],
71
- actions: [
72
- // Security & Authentication (3)
73
- security_1.security_ping,
74
- security_1.security_change_racf_password,
75
- security_1.security_validate_racf_user,
76
- // Bank Control (10)
77
- bank_control_1.bank_control_get_branch_detail,
78
- bank_control_1.bank_control_get_branch_info,
79
- bank_control_1.bank_control_get_processing_date,
80
- bank_control_1.bank_control_get_holiday_calendar,
81
- bank_control_1.bank_control_get_gl_account,
82
- bank_control_1.bank_control_get_institution_info,
83
- bank_control_1.bank_control_get_officer,
84
- bank_control_1.bank_control_get_product_codes,
85
- bank_control_1.bank_control_get_transaction_codes,
86
- bank_control_1.bank_control_get_routing_number,
87
- // Customer actions (46)
88
- customer_1.customer_get,
89
- customer_1.customer_delete,
90
- customer_1.customer_create_individual,
91
- customer_1.customer_create_organization,
92
- customer_1.customer_get_combined,
93
- customer_1.customer_update_combined,
94
- customer_1.customer_accounts_address_edit,
95
- customer_1.customer_accounts_delete,
96
- customer_1.customer_accounts_get_name_address,
97
- customer_1.customer_accounts_update_name_address,
98
- customer_1.customer_accounts_create,
99
- customer_1.customer_accounts_update_related_address,
100
- customer_1.customer_address_edit,
101
- customer_1.customer_update_addresses,
102
- customer_1.customer_get_aliases,
103
- customer_1.customer_create_alias,
104
- customer_1.customer_update_alias,
105
- customer_1.customer_delete_alias,
106
- customer_1.customer_get_due_diligence,
107
- customer_1.customer_update_due_diligence,
108
- customer_1.customer_get_email_addresses,
109
- customer_1.customer_create_email_address,
110
- customer_1.customer_delete_email_address,
111
- customer_1.customer_get_phone_numbers,
112
- customer_1.customer_create_phone_number,
113
- customer_1.customer_update_phone_number,
114
- customer_1.customer_delete_phone_number,
115
- customer_1.customer_search_by_name,
116
- customer_1.customer_search_by_customer_number,
117
- customer_1.customer_search_by_tax_number,
118
- customer_1.customer_search_by_phone,
119
- customer_1.customer_search_by_cip_id,
120
- customer_1.customer_get_statements,
121
- customer_1.customer_create_combined_statement,
122
- customer_1.customer_update_combined_statement,
123
- customer_1.customer_delete_combined_statement,
124
- customer_1.customer_get_remarks,
125
- customer_1.customer_create_remark,
126
- customer_1.customer_update_remark,
127
- customer_1.customer_delete_remark,
128
- customer_1.customer_get_relationships,
129
- customer_1.customer_create_relationship,
130
- customer_1.customer_update_relationship,
131
- customer_1.customer_delete_relationship,
132
- customer_1.customer_get_profile,
133
- customer_1.customer_update_profile,
134
- // Deposit actions (21)
135
- deposit_1.deposit_get_account,
136
- deposit_1.deposit_create_account,
137
- deposit_1.deposit_update_account,
138
- deposit_1.deposit_close_account,
139
- deposit_1.deposit_get_balance,
140
- deposit_1.deposit_get_interest_rates,
141
- deposit_1.deposit_update_interest_rates,
142
- deposit_1.deposit_get_transactions,
143
- deposit_1.deposit_post_transaction,
144
- deposit_1.deposit_reverse_transaction,
145
- deposit_1.deposit_transfer,
146
- deposit_1.deposit_get_holds,
147
- deposit_1.deposit_create_hold,
148
- deposit_1.deposit_update_hold,
149
- deposit_1.deposit_release_hold,
150
- deposit_1.deposit_get_escrow_accounts,
151
- deposit_1.deposit_create_escrow_account,
152
- deposit_1.deposit_update_escrow_account,
153
- deposit_1.deposit_calculate,
154
- deposit_1.deposit_originate,
155
- deposit_1.deposit_update_maintenance,
156
- // Loan actions (24)
157
- loan_1.loan_get_account,
158
- loan_1.loan_create_account,
159
- loan_1.loan_update_account,
160
- loan_1.loan_get_notes,
161
- loan_1.loan_create_note,
162
- loan_1.loan_get_note_balances,
163
- loan_1.loan_renew_note,
164
- loan_1.loan_increase_note,
165
- loan_1.loan_get_payment_info,
166
- loan_1.loan_post_payment,
167
- loan_1.loan_reverse_payment,
168
- loan_1.loan_get_collateral,
169
- loan_1.loan_create_collateral,
170
- loan_1.loan_update_collateral,
171
- loan_1.loan_delete_collateral,
172
- loan_1.loan_get_fees,
173
- loan_1.loan_create_fee,
174
- loan_1.loan_get_payoff_quote,
175
- loan_1.loan_payoff,
176
- loan_1.loan_change_rate_immediate,
177
- loan_1.loan_get_pending_rate_changes,
178
- loan_1.loan_get_transactions,
179
- loan_1.loan_disburse,
180
- loan_1.loan_board,
181
- // Custom API call for any other endpoints
182
- (0, pieces_common_1.createCustomApiCallAction)({
183
- baseUrl: (auth) => auth.baseUrl || 'https://api-gw-uat.fisglobal.com/rest',
184
- auth: exports.fisIbsAuth,
185
- authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
186
- const authObj = auth;
187
- const uuid = crypto.randomUUID();
188
- const headers = {
189
- 'organization-id': authObj.organizationId,
190
- 'source-id': authObj.sourceId,
191
- 'application-id': authObj.applicationId,
192
- 'uuid': uuid,
193
- 'ibs-authorization': authObj.ibsAuthorization,
194
- };
195
- if (authObj.securityTokenType) {
196
- headers['security-token-type'] = authObj.securityTokenType;
197
- }
198
- return headers;
199
- }),
200
- }),
201
- ],
202
- triggers: [],
203
- });
204
- //# sourceMappingURL=index.js.map
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/custom/fis-ibs/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAkF;AAClF,iDAAqD;AACrD,+DAAwE;AAExE,mBAAmB;AACnB,qDAIgC;AAEhC,uBAAuB;AACvB,6DAWoC;AAEpC,mBAAmB;AACnB,qDA+CgC;AAEhC,kBAAkB;AAClB,mDAsB+B;AAE/B,eAAe;AACf,6CAyB4B;AAEf,QAAA,UAAU,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC7C,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,gFAAgF;YAC7F,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,uCAAuC;SACtD,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACjC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,QAAQ;SACvB,CAAC;QACF,aAAa,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAChC,WAAW,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