@fiado/api-invoker 1.1.8 → 1.1.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/README.md +64 -64
- package/bin/activity-business/ActivityApi.d.ts +10 -0
- package/bin/activity-business/ActivityApi.js +32 -0
- package/bin/activity-business/index.d.ts +2 -0
- package/bin/activity-business/index.js +18 -0
- package/bin/activity-business/interfaces/IActivityApi.d.ts +5 -0
- package/bin/activity-business/interfaces/IActivityApi.js +2 -0
- package/bin/activity-business/queue/ActivityPublisher.d.ts +6 -0
- package/bin/activity-business/queue/ActivityPublisher.js +35 -0
- package/bin/activity-business/queue/IActivityPublisher.d.ts +4 -0
- package/bin/activity-business/queue/IActivityPublisher.js +2 -0
- package/package.json +28 -28
- package/src/account-beneficiary/AccountBeneficiaryApi.ts +18 -18
- package/src/account-beneficiary/index.ts +2 -2
- package/src/account-beneficiary/interfaces/IAccountBeneficiaryApi.ts +7 -7
- package/src/account-fiadoinc/AccountFiadoIncApi.ts +60 -60
- package/src/account-fiadoinc/index.ts +1 -1
- package/src/account-fiadoinc/interfaces/IAccountFiadoIncApi.ts +29 -29
- package/src/account-fiadosa/AccountFiadoSAApi.ts +22 -22
- package/src/account-fiadosa/index.ts +1 -1
- package/src/account-fiadosa/interfaces/IAccountFiadoSAApi.ts +9 -9
- package/src/account-pagoconfiado/AccountPagoConfiadoApi.ts +27 -27
- package/src/account-pagoconfiado/index.ts +2 -2
- package/src/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.ts +8 -8
- package/src/activity-business/ActivityApi.ts +21 -0
- package/src/activity-business/index.ts +4 -0
- package/src/activity-business/interfaces/IActivityApi.ts +9 -0
- package/src/activity-business/queue/ActivityPublisher.ts +27 -0
- package/src/activity-business/queue/IActivityPublisher.ts +7 -0
- package/src/address/AddressApi.ts +46 -46
- package/src/address/index.ts +3 -3
- package/src/address/interfaces/IAddressApi.ts +30 -30
- package/src/authentication/AuthenticationApi.ts +16 -16
- package/src/authentication/index.ts +4 -4
- package/src/authentication/interfaces/IAuthenticationApi.ts +5 -5
- package/src/bankAccount/BankAccountApi.ts +37 -37
- package/src/bankAccount/index.ts +1 -1
- package/src/bankAccount/interfaces/IBankAccountApi.ts +4 -4
- package/src/bbvaRst/api/BBVARstApi.ts +16 -16
- package/src/bbvaRst/api/interfaces/IBBVARstApi.ts +4 -4
- package/src/bbvaRst/index.ts +1 -1
- package/src/card/CardApi.ts +33 -33
- package/src/card/index.ts +3 -3
- package/src/card/interfaces/ICardApi.ts +10 -10
- package/src/collector/CollectorApi.ts +21 -21
- package/src/collector/index.ts +2 -2
- package/src/collector/interfaces/ICollectorApi.ts +19 -19
- package/src/container.config.ts +70 -70
- package/src/contract-generator/ContractGeneratorApi.ts +18 -18
- package/src/contract-generator/index.ts +2 -2
- package/src/contract-generator/interfaces/IContractGeneratorApi.ts +16 -16
- package/src/directory/DirectoryApi.ts +115 -115
- package/src/directory/index.ts +3 -3
- package/src/directory/interfaces/IDirectoryApi.ts +66 -66
- package/src/exchangeRates/ExchangeRatesApi.ts +27 -27
- package/src/exchangeRates/index.ts +1 -1
- package/src/exchangeRates/interfaces/IExchangeRatesApi.ts +8 -8
- package/src/fraudPreventionEngine/api/FraudPreventionEngineApi.ts +22 -22
- package/src/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.ts +7 -7
- package/src/fraudPreventionEngine/index.ts +1 -1
- package/src/group/GroupApi.ts +24 -24
- package/src/group/index.ts +1 -1
- package/src/group/interfaces/IGroupApi.ts +23 -23
- package/src/identity/IdentityApi.ts +47 -47
- package/src/identity/index.ts +3 -3
- package/src/identity/interfaces/IIdentityApi.ts +33 -33
- package/src/index.ts +25 -25
- package/src/notificationMessages/index.ts +1 -1
- package/src/notificationMessages/queue/NotificationMessagePublisher.ts +22 -22
- package/src/notificationMessages/queue/interfaces/INotificationMessagesPublisher.ts +4 -4
- package/src/p2pContact/api/P2pContactApi.ts +19 -19
- package/src/p2pContact/api/interfaces/IP2pContactApi.ts +4 -4
- package/src/p2pContact/index.ts +1 -1
- package/src/pomelo/api/PomeloApi.ts +99 -99
- package/src/pomelo/api/interfaces/IPomeloApi.ts +27 -27
- package/src/pomelo/index.ts +1 -1
- package/src/product-catalog/ProductCatalogApi.ts +17 -17
- package/src/product-catalog/index.ts +1 -1
- package/src/product-catalog/interfaces/IProductCatalogApi.ts +6 -6
- package/src/sessionActivity/index.ts +2 -2
- package/src/sessionActivity/queue/SessionActivityPublisher.ts +22 -22
- package/src/sessionActivity/queue/interfaces/ISessionActivityPublisher.ts +4 -4
- package/src/stpAccount/api/STPAccountApi.ts +102 -102
- package/src/stpAccount/api/interfaces/ISTPAccountApi.ts +6 -6
- package/src/stpAccount/index.ts +1 -1
- package/src/stpServicePayment/api/StpServicePaymentApi.ts +35 -35
- package/src/stpServicePayment/api/interfaces/IStpServicePaymentApi.ts +11 -11
- package/src/stpServicePayment/index.ts +1 -1
- package/src/stpSpei/api/StpSpeiApi.ts +20 -20
- package/src/stpSpei/api/interfaces/IStpSpeiApi.ts +4 -4
- package/src/stpSpei/index.ts +1 -1
- package/src/tern/api/TernApi.ts +96 -96
- package/src/tern/api/interfaces/ITernApi.ts +29 -29
- package/src/tern/index.ts +1 -1
- package/src/transaction/index.ts +2 -2
- package/src/transaction/queue/TransactionPublisher.ts +24 -24
- package/src/transaction/queue/interfaces/ITransactionPublisher.ts +4 -4
- package/tsconfig.json +21 -21
package/src/transaction/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './queue/TransactionPublisher';
|
|
2
|
-
export * from './queue/interfaces/ITransactionPublisher';
|
|
1
|
+
export * from './queue/TransactionPublisher';
|
|
2
|
+
export * from './queue/interfaces/ITransactionPublisher';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {SendMessageCommand, SendMessageRequest, SQSClient} from "@aws-sdk/client-sqs";
|
|
2
|
-
import {ITransactionPublisher} from "./interfaces/ITransactionPublisher";
|
|
3
|
-
import {injectable} from "inversify";
|
|
4
|
-
import {TransactionCreateRequest} from "@fiado/type-kit/bin/transaction";
|
|
5
|
-
|
|
6
|
-
@injectable()
|
|
7
|
-
export class TransactionPublisher implements ITransactionPublisher {
|
|
8
|
-
private readonly TRANSACTION_QUEUE = process.env.TRANSACTION_QUEUE
|
|
9
|
-
|
|
10
|
-
async publish(message: TransactionCreateRequest): Promise<void> {
|
|
11
|
-
try {
|
|
12
|
-
const client: SQSClient = new SQSClient();
|
|
13
|
-
const sendMessageRequest: SendMessageRequest = {
|
|
14
|
-
QueueUrl: this.TRANSACTION_QUEUE,
|
|
15
|
-
MessageBody: JSON.stringify(message),
|
|
16
|
-
MessageGroupId: message.transactionNumber,
|
|
17
|
-
MessageDeduplicationId: message.transactionNumber
|
|
18
|
-
};
|
|
19
|
-
const command: SendMessageCommand = new SendMessageCommand(sendMessageRequest);
|
|
20
|
-
await client.send(command);
|
|
21
|
-
} catch (error) {
|
|
22
|
-
throw new Error(`Error publishing message to queue ${': ' + error.message ?? ''}`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
import {SendMessageCommand, SendMessageRequest, SQSClient} from "@aws-sdk/client-sqs";
|
|
2
|
+
import {ITransactionPublisher} from "./interfaces/ITransactionPublisher";
|
|
3
|
+
import {injectable} from "inversify";
|
|
4
|
+
import {TransactionCreateRequest} from "@fiado/type-kit/bin/transaction";
|
|
5
|
+
|
|
6
|
+
@injectable()
|
|
7
|
+
export class TransactionPublisher implements ITransactionPublisher {
|
|
8
|
+
private readonly TRANSACTION_QUEUE = process.env.TRANSACTION_QUEUE
|
|
9
|
+
|
|
10
|
+
async publish(message: TransactionCreateRequest): Promise<void> {
|
|
11
|
+
try {
|
|
12
|
+
const client: SQSClient = new SQSClient();
|
|
13
|
+
const sendMessageRequest: SendMessageRequest = {
|
|
14
|
+
QueueUrl: this.TRANSACTION_QUEUE,
|
|
15
|
+
MessageBody: JSON.stringify(message),
|
|
16
|
+
MessageGroupId: message.transactionNumber,
|
|
17
|
+
MessageDeduplicationId: message.transactionNumber
|
|
18
|
+
};
|
|
19
|
+
const command: SendMessageCommand = new SendMessageCommand(sendMessageRequest);
|
|
20
|
+
await client.send(command);
|
|
21
|
+
} catch (error) {
|
|
22
|
+
throw new Error(`Error publishing message to queue ${': ' + error.message ?? ''}`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TransactionCreateRequest } from "@fiado/type-kit/bin/transaction";
|
|
2
|
-
|
|
3
|
-
export interface ITransactionPublisher {
|
|
4
|
-
publish(message: TransactionCreateRequest): Promise<void>;
|
|
1
|
+
import { TransactionCreateRequest } from "@fiado/type-kit/bin/transaction";
|
|
2
|
+
|
|
3
|
+
export interface ITransactionPublisher {
|
|
4
|
+
publish(message: TransactionCreateRequest): Promise<void>;
|
|
5
5
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"esModuleInterop": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"forceConsistentCasingInFileNames": true,
|
|
8
|
-
"experimentalDecorators": true,
|
|
9
|
-
"emitDecoratorMetadata": true,
|
|
10
|
-
"outDir": "./bin",
|
|
11
|
-
"rootDir": "./src",
|
|
12
|
-
"moduleResolution": "node",
|
|
13
|
-
"declaration": true,
|
|
14
|
-
},
|
|
15
|
-
"include": [
|
|
16
|
-
"./src/**/*"
|
|
17
|
-
],
|
|
18
|
-
"exclude": [
|
|
19
|
-
"node_modules"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"esModuleInterop": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"forceConsistentCasingInFileNames": true,
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"emitDecoratorMetadata": true,
|
|
10
|
+
"outDir": "./bin",
|
|
11
|
+
"rootDir": "./src",
|
|
12
|
+
"moduleResolution": "node",
|
|
13
|
+
"declaration": true,
|
|
14
|
+
},
|
|
15
|
+
"include": [
|
|
16
|
+
"./src/**/*"
|
|
17
|
+
],
|
|
18
|
+
"exclude": [
|
|
19
|
+
"node_modules"
|
|
20
|
+
]
|
|
21
|
+
}
|