@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.
Files changed (98) hide show
  1. package/README.md +64 -64
  2. package/bin/activity-business/ActivityApi.d.ts +10 -0
  3. package/bin/activity-business/ActivityApi.js +32 -0
  4. package/bin/activity-business/index.d.ts +2 -0
  5. package/bin/activity-business/index.js +18 -0
  6. package/bin/activity-business/interfaces/IActivityApi.d.ts +5 -0
  7. package/bin/activity-business/interfaces/IActivityApi.js +2 -0
  8. package/bin/activity-business/queue/ActivityPublisher.d.ts +6 -0
  9. package/bin/activity-business/queue/ActivityPublisher.js +35 -0
  10. package/bin/activity-business/queue/IActivityPublisher.d.ts +4 -0
  11. package/bin/activity-business/queue/IActivityPublisher.js +2 -0
  12. package/package.json +28 -28
  13. package/src/account-beneficiary/AccountBeneficiaryApi.ts +18 -18
  14. package/src/account-beneficiary/index.ts +2 -2
  15. package/src/account-beneficiary/interfaces/IAccountBeneficiaryApi.ts +7 -7
  16. package/src/account-fiadoinc/AccountFiadoIncApi.ts +60 -60
  17. package/src/account-fiadoinc/index.ts +1 -1
  18. package/src/account-fiadoinc/interfaces/IAccountFiadoIncApi.ts +29 -29
  19. package/src/account-fiadosa/AccountFiadoSAApi.ts +22 -22
  20. package/src/account-fiadosa/index.ts +1 -1
  21. package/src/account-fiadosa/interfaces/IAccountFiadoSAApi.ts +9 -9
  22. package/src/account-pagoconfiado/AccountPagoConfiadoApi.ts +27 -27
  23. package/src/account-pagoconfiado/index.ts +2 -2
  24. package/src/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.ts +8 -8
  25. package/src/activity-business/ActivityApi.ts +21 -0
  26. package/src/activity-business/index.ts +4 -0
  27. package/src/activity-business/interfaces/IActivityApi.ts +9 -0
  28. package/src/activity-business/queue/ActivityPublisher.ts +27 -0
  29. package/src/activity-business/queue/IActivityPublisher.ts +7 -0
  30. package/src/address/AddressApi.ts +46 -46
  31. package/src/address/index.ts +3 -3
  32. package/src/address/interfaces/IAddressApi.ts +30 -30
  33. package/src/authentication/AuthenticationApi.ts +16 -16
  34. package/src/authentication/index.ts +4 -4
  35. package/src/authentication/interfaces/IAuthenticationApi.ts +5 -5
  36. package/src/bankAccount/BankAccountApi.ts +37 -37
  37. package/src/bankAccount/index.ts +1 -1
  38. package/src/bankAccount/interfaces/IBankAccountApi.ts +4 -4
  39. package/src/bbvaRst/api/BBVARstApi.ts +16 -16
  40. package/src/bbvaRst/api/interfaces/IBBVARstApi.ts +4 -4
  41. package/src/bbvaRst/index.ts +1 -1
  42. package/src/card/CardApi.ts +33 -33
  43. package/src/card/index.ts +3 -3
  44. package/src/card/interfaces/ICardApi.ts +10 -10
  45. package/src/collector/CollectorApi.ts +21 -21
  46. package/src/collector/index.ts +2 -2
  47. package/src/collector/interfaces/ICollectorApi.ts +19 -19
  48. package/src/container.config.ts +70 -70
  49. package/src/contract-generator/ContractGeneratorApi.ts +18 -18
  50. package/src/contract-generator/index.ts +2 -2
  51. package/src/contract-generator/interfaces/IContractGeneratorApi.ts +16 -16
  52. package/src/directory/DirectoryApi.ts +115 -115
  53. package/src/directory/index.ts +3 -3
  54. package/src/directory/interfaces/IDirectoryApi.ts +66 -66
  55. package/src/exchangeRates/ExchangeRatesApi.ts +27 -27
  56. package/src/exchangeRates/index.ts +1 -1
  57. package/src/exchangeRates/interfaces/IExchangeRatesApi.ts +8 -8
  58. package/src/fraudPreventionEngine/api/FraudPreventionEngineApi.ts +22 -22
  59. package/src/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.ts +7 -7
  60. package/src/fraudPreventionEngine/index.ts +1 -1
  61. package/src/group/GroupApi.ts +24 -24
  62. package/src/group/index.ts +1 -1
  63. package/src/group/interfaces/IGroupApi.ts +23 -23
  64. package/src/identity/IdentityApi.ts +47 -47
  65. package/src/identity/index.ts +3 -3
  66. package/src/identity/interfaces/IIdentityApi.ts +33 -33
  67. package/src/index.ts +25 -25
  68. package/src/notificationMessages/index.ts +1 -1
  69. package/src/notificationMessages/queue/NotificationMessagePublisher.ts +22 -22
  70. package/src/notificationMessages/queue/interfaces/INotificationMessagesPublisher.ts +4 -4
  71. package/src/p2pContact/api/P2pContactApi.ts +19 -19
  72. package/src/p2pContact/api/interfaces/IP2pContactApi.ts +4 -4
  73. package/src/p2pContact/index.ts +1 -1
  74. package/src/pomelo/api/PomeloApi.ts +99 -99
  75. package/src/pomelo/api/interfaces/IPomeloApi.ts +27 -27
  76. package/src/pomelo/index.ts +1 -1
  77. package/src/product-catalog/ProductCatalogApi.ts +17 -17
  78. package/src/product-catalog/index.ts +1 -1
  79. package/src/product-catalog/interfaces/IProductCatalogApi.ts +6 -6
  80. package/src/sessionActivity/index.ts +2 -2
  81. package/src/sessionActivity/queue/SessionActivityPublisher.ts +22 -22
  82. package/src/sessionActivity/queue/interfaces/ISessionActivityPublisher.ts +4 -4
  83. package/src/stpAccount/api/STPAccountApi.ts +102 -102
  84. package/src/stpAccount/api/interfaces/ISTPAccountApi.ts +6 -6
  85. package/src/stpAccount/index.ts +1 -1
  86. package/src/stpServicePayment/api/StpServicePaymentApi.ts +35 -35
  87. package/src/stpServicePayment/api/interfaces/IStpServicePaymentApi.ts +11 -11
  88. package/src/stpServicePayment/index.ts +1 -1
  89. package/src/stpSpei/api/StpSpeiApi.ts +20 -20
  90. package/src/stpSpei/api/interfaces/IStpSpeiApi.ts +4 -4
  91. package/src/stpSpei/index.ts +1 -1
  92. package/src/tern/api/TernApi.ts +96 -96
  93. package/src/tern/api/interfaces/ITernApi.ts +29 -29
  94. package/src/tern/index.ts +1 -1
  95. package/src/transaction/index.ts +2 -2
  96. package/src/transaction/queue/TransactionPublisher.ts +24 -24
  97. package/src/transaction/queue/interfaces/ITransactionPublisher.ts +4 -4
  98. package/tsconfig.json +21 -21
@@ -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
+ }