@alviere/core 0.8.1
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/LICENSE +201 -0
- package/dist/entities/constants/environment.d.ts +29 -0
- package/dist/entities/constants/environment.d.ts.map +1 -0
- package/dist/entities/constants/error-codes.d.ts +51 -0
- package/dist/entities/constants/error-codes.d.ts.map +1 -0
- package/dist/entities/errors/alcore-api.error.d.ts +19 -0
- package/dist/entities/errors/alcore-api.error.d.ts.map +1 -0
- package/dist/entities/interfaces/cryptor.interface.d.ts +10 -0
- package/dist/entities/interfaces/cryptor.interface.d.ts.map +1 -0
- package/dist/entities/interfaces/gateways/accounts.interface.d.ts +48 -0
- package/dist/entities/interfaces/gateways/accounts.interface.d.ts.map +1 -0
- package/dist/entities/interfaces/gateways/auth.interface.d.ts +10 -0
- package/dist/entities/interfaces/gateways/auth.interface.d.ts.map +1 -0
- package/dist/entities/interfaces/gateways/card-issuance.interface.d.ts +6 -0
- package/dist/entities/interfaces/gateways/card-issuance.interface.d.ts.map +1 -0
- package/dist/entities/interfaces/gateways/payment-instruments.interface.d.ts +14 -0
- package/dist/entities/interfaces/gateways/payment-instruments.interface.d.ts.map +1 -0
- package/dist/entities/interfaces/gateways/payments.interface.d.ts +11 -0
- package/dist/entities/interfaces/gateways/payments.interface.d.ts.map +1 -0
- package/dist/entities/interfaces/gateways/transactions.interface.d.ts +32 -0
- package/dist/entities/interfaces/gateways/transactions.interface.d.ts.map +1 -0
- package/dist/entities/interfaces/gateways/wallets.interface.d.ts +11 -0
- package/dist/entities/interfaces/gateways/wallets.interface.d.ts.map +1 -0
- package/dist/entities/interfaces/logger.interface.d.ts +13 -0
- package/dist/entities/interfaces/logger.interface.d.ts.map +1 -0
- package/dist/entities/interfaces/validator.interface.d.ts +25 -0
- package/dist/entities/interfaces/validator.interface.d.ts.map +1 -0
- package/dist/entities/requests/_alcore.d.ts +9 -0
- package/dist/entities/requests/_alcore.d.ts.map +1 -0
- package/dist/entities/requests/accounts/accounts.d.ts +110 -0
- package/dist/entities/requests/accounts/accounts.d.ts.map +1 -0
- package/dist/entities/requests/accounts/addresses.d.ts +3 -0
- package/dist/entities/requests/accounts/addresses.d.ts.map +1 -0
- package/dist/entities/requests/accounts/dossiers.d.ts +36 -0
- package/dist/entities/requests/accounts/dossiers.d.ts.map +1 -0
- package/dist/entities/requests/auth/auth.d.ts +41 -0
- package/dist/entities/requests/auth/auth.d.ts.map +1 -0
- package/dist/entities/requests/card-issuance/card-issuance.d.ts +14 -0
- package/dist/entities/requests/card-issuance/card-issuance.d.ts.map +1 -0
- package/dist/entities/requests/payments/bank-accounts.d.ts +47 -0
- package/dist/entities/requests/payments/bank-accounts.d.ts.map +1 -0
- package/dist/entities/requests/payments/index.d.ts +4 -0
- package/dist/entities/requests/payments/index.d.ts.map +1 -0
- package/dist/entities/requests/payments/payment-instruments.d.ts +68 -0
- package/dist/entities/requests/payments/payment-instruments.d.ts.map +1 -0
- package/dist/entities/requests/payments/payments.d.ts +23 -0
- package/dist/entities/requests/payments/payments.d.ts.map +1 -0
- package/dist/entities/requests/transactions/transactions.d.ts +43 -0
- package/dist/entities/requests/transactions/transactions.d.ts.map +1 -0
- package/dist/entities/requests/utility.d.ts +61 -0
- package/dist/entities/requests/utility.d.ts.map +1 -0
- package/dist/entities/requests/wallets/wallets.d.ts +105 -0
- package/dist/entities/requests/wallets/wallets.d.ts.map +1 -0
- package/dist/entities/responses/accounts/accounts.d.ts +40 -0
- package/dist/entities/responses/accounts/accounts.d.ts.map +1 -0
- package/dist/entities/responses/accounts/addresses.d.ts +9 -0
- package/dist/entities/responses/accounts/addresses.d.ts.map +1 -0
- package/dist/entities/responses/accounts/dossiers.d.ts +26 -0
- package/dist/entities/responses/accounts/dossiers.d.ts.map +1 -0
- package/dist/entities/responses/alcore.d.ts +8 -0
- package/dist/entities/responses/alcore.d.ts.map +1 -0
- package/dist/entities/responses/auth/auth.d.ts +26 -0
- package/dist/entities/responses/auth/auth.d.ts.map +1 -0
- package/dist/entities/responses/card-issuance/set-pin.d.ts +6 -0
- package/dist/entities/responses/card-issuance/set-pin.d.ts.map +1 -0
- package/dist/entities/responses/payments/add_card.d.ts +27 -0
- package/dist/entities/responses/payments/add_card.d.ts.map +1 -0
- package/dist/entities/responses/payments/bank_accounts.d.ts +61 -0
- package/dist/entities/responses/payments/bank_accounts.d.ts.map +1 -0
- package/dist/entities/responses/payments/index.d.ts +4 -0
- package/dist/entities/responses/payments/index.d.ts.map +1 -0
- package/dist/entities/responses/payments/payment-instruments.d.ts +73 -0
- package/dist/entities/responses/payments/payment-instruments.d.ts.map +1 -0
- package/dist/entities/responses/transactions/transactions.d.ts +93 -0
- package/dist/entities/responses/transactions/transactions.d.ts.map +1 -0
- package/dist/entities/responses/wallets/wallets.d.ts +78 -0
- package/dist/entities/responses/wallets/wallets.d.ts.map +1 -0
- package/dist/entities/results/card-issuance/set-pin.d.ts +4 -0
- package/dist/entities/results/card-issuance/set-pin.d.ts.map +1 -0
- package/dist/entities/results/payments/add_bank_account.d.ts +47 -0
- package/dist/entities/results/payments/add_bank_account.d.ts.map +1 -0
- package/dist/entities/results/payments/add_card.d.ts +29 -0
- package/dist/entities/results/payments/add_card.d.ts.map +1 -0
- package/dist/index.d.ts +135 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2419 -0
- package/dist/index.mjs.map +1 -0
- package/dist/infrastructure/gateways/accounts.gateway.d.ts +30 -0
- package/dist/infrastructure/gateways/accounts.gateway.d.ts.map +1 -0
- package/dist/infrastructure/gateways/alcore-base.gateway.d.ts +45 -0
- package/dist/infrastructure/gateways/alcore-base.gateway.d.ts.map +1 -0
- package/dist/infrastructure/gateways/auth.gateway.d.ts +25 -0
- package/dist/infrastructure/gateways/auth.gateway.d.ts.map +1 -0
- package/dist/infrastructure/gateways/card-issuance.gateway.d.ts +23 -0
- package/dist/infrastructure/gateways/card-issuance.gateway.d.ts.map +1 -0
- package/dist/infrastructure/gateways/payment-instruments.gateway.d.ts +15 -0
- package/dist/infrastructure/gateways/payment-instruments.gateway.d.ts.map +1 -0
- package/dist/infrastructure/gateways/payments.gateway.d.ts +24 -0
- package/dist/infrastructure/gateways/payments.gateway.d.ts.map +1 -0
- package/dist/infrastructure/gateways/wallets.gateway.d.ts +12 -0
- package/dist/infrastructure/gateways/wallets.gateway.d.ts.map +1 -0
- package/dist/infrastructure/logging/logger.service.d.ts +52 -0
- package/dist/infrastructure/logging/logger.service.d.ts.map +1 -0
- package/dist/infrastructure/security/cryptor.service.d.ts +68 -0
- package/dist/infrastructure/security/cryptor.service.d.ts.map +1 -0
- package/dist/infrastructure/security/validator.service.d.ts +128 -0
- package/dist/infrastructure/security/validator.service.d.ts.map +1 -0
- package/dist/plugins/field-plugin-registry.d.ts +102 -0
- package/dist/plugins/field-plugin-registry.d.ts.map +1 -0
- package/dist/plugins/field-plugin.interface.d.ts +123 -0
- package/dist/plugins/field-plugin.interface.d.ts.map +1 -0
- package/dist/plugins/fields/card-number.plugin.d.ts +80 -0
- package/dist/plugins/fields/card-number.plugin.d.ts.map +1 -0
- package/dist/plugins/fields/cvv.plugin.d.ts +70 -0
- package/dist/plugins/fields/cvv.plugin.d.ts.map +1 -0
- package/dist/plugins/fields/expiry-date.plugin.d.ts +54 -0
- package/dist/plugins/fields/expiry-date.plugin.d.ts.map +1 -0
- package/dist/plugins/fields/text.plugin.d.ts +79 -0
- package/dist/plugins/fields/text.plugin.d.ts.map +1 -0
- package/dist/services/accounts-api.service.d.ts +28 -0
- package/dist/services/accounts-api.service.d.ts.map +1 -0
- package/dist/services/payment-instruments-api.service.d.ts +13 -0
- package/dist/services/payment-instruments-api.service.d.ts.map +1 -0
- package/dist/services/payment-processor.service.d.ts +43 -0
- package/dist/services/payment-processor.service.d.ts.map +1 -0
- package/dist/services/wallets-api.service.d.ts +10 -0
- package/dist/services/wallets-api.service.d.ts.map +1 -0
- package/package.json +54 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 Alviere
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface AlviereConfig {
|
|
2
|
+
domain: string;
|
|
3
|
+
access_token: string;
|
|
4
|
+
certificate: {
|
|
5
|
+
id: string;
|
|
6
|
+
public_key: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const DEFAULT_CONFIG: AlviereConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Set runtime configuration for the Alviere core package
|
|
12
|
+
* This should be called before using any core services
|
|
13
|
+
*/
|
|
14
|
+
export declare function setRuntimeConfig(config: Partial<AlviereConfig>): void;
|
|
15
|
+
/**
|
|
16
|
+
* Get current runtime configuration
|
|
17
|
+
*/
|
|
18
|
+
export declare function getRuntimeConfig(): AlviereConfig;
|
|
19
|
+
/**
|
|
20
|
+
* Initialize configuration from environment variables (development only)
|
|
21
|
+
*/
|
|
22
|
+
export declare function initializeFromEnvironment(): void;
|
|
23
|
+
export declare const getALVIERE_DOMAIN: () => string;
|
|
24
|
+
export declare const getRSA_PUB_KEY: () => string;
|
|
25
|
+
export declare const getCERTIFICATE_ID: () => string;
|
|
26
|
+
export declare const ALVIERE_DOMAIN: string;
|
|
27
|
+
export declare const RSA_PUB_KEY: string;
|
|
28
|
+
export declare const CERTIFICATE_ID: string;
|
|
29
|
+
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/entities/constants/environment.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE;QACX,EAAE,EAAE,MAAM,CAAA;QACV,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;CACF;AAGD,eAAO,MAAM,cAAc,EAAE,aAO5B,CAAC;AAKF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,IAAI,CAErE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAEhD;AAcD;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,IAAI,CA4BhD;AAGD,eAAO,MAAM,iBAAiB,cAM7B,CAAC;AAEF,eAAO,MAAM,cAAc,cAM1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,cAM7B,CAAC;AAWF,eAAO,MAAM,cAAc,QAAsB,CAAC;AAClD,eAAO,MAAM,WAAW,QAAmB,CAAC;AAC5C,eAAO,MAAM,cAAc,QAAsB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alcore API Error Codes
|
|
3
|
+
* Centralized mapping of all known error codes from the backend API
|
|
4
|
+
*/
|
|
5
|
+
export declare const AlcoreErrorCodes: {
|
|
6
|
+
readonly ALVIERE_CORE_NOT_INITIALIZED: "000000";
|
|
7
|
+
readonly UNPROCESSABLE_ENCRYPTED_DATA: "100011";
|
|
8
|
+
readonly WRONG_ENCRYPTED_ENDPOINT: "100012";
|
|
9
|
+
readonly UNDECRYPTABLE_DATA_AT_ENDPOINT: "100013";
|
|
10
|
+
readonly DECRYPTED_DATA_UNUSABLE_AT_ENDPOINT: "100014";
|
|
11
|
+
readonly WRONG_DECRYPTED_ENDPOINT: "100015";
|
|
12
|
+
readonly WRONG_VERSION_OR_ENDPOINT: "100016";
|
|
13
|
+
readonly OPERATION_HALTED: "100017";
|
|
14
|
+
readonly INVALID_REQUEST_PAYLOAD: "100300";
|
|
15
|
+
readonly INVALID_REQUEST_PAYLOAD_FIELD: "100301";
|
|
16
|
+
readonly INVALID_PATH_PARAMETER: "100302";
|
|
17
|
+
readonly INVALID_HEADER: "100303";
|
|
18
|
+
readonly INVALID_QUERY_PARAMETER: "100304";
|
|
19
|
+
readonly INVALID_JWT: "100305";
|
|
20
|
+
readonly AUTH_FAILED: "100306";
|
|
21
|
+
readonly SESSION_NOT_FOUND: "110000";
|
|
22
|
+
readonly PARENT_ACCOUNT_NOT_FOUND: "110001";
|
|
23
|
+
readonly NOT_FOUND: "110002";
|
|
24
|
+
readonly ACCOUNT_TYPE_NOT_SUPPORTED: "110004";
|
|
25
|
+
readonly UNDERLYING_API_ERROR: "115000";
|
|
26
|
+
readonly ACCOUNT_STATUS_NOT_ACTIVE: "115001";
|
|
27
|
+
readonly ACCOUNT_CHILD_FORBIDDEN: "320129";
|
|
28
|
+
readonly PARENT_ACCOUNT_NOT_ALLOWED: "320104";
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Error code type for type safety
|
|
32
|
+
*/
|
|
33
|
+
export type AlcoreErrorCode = (typeof AlcoreErrorCodes)[keyof typeof AlcoreErrorCodes];
|
|
34
|
+
/**
|
|
35
|
+
* Error code descriptions for user-friendly messages
|
|
36
|
+
*/
|
|
37
|
+
export declare const AlcoreErrorMessages: Record<string, string>;
|
|
38
|
+
/**
|
|
39
|
+
* Get user-friendly error message for an error code
|
|
40
|
+
*/
|
|
41
|
+
export declare function getErrorMessage(errorCode: string): string;
|
|
42
|
+
/**
|
|
43
|
+
* Critical error codes that should halt the entire flow/process
|
|
44
|
+
* These errors cannot be recovered from and require user intervention
|
|
45
|
+
*/
|
|
46
|
+
export declare const CriticalErrorCodes: readonly ["100305", "100306", "110000", "100011", "100012", "100013", "100017", "000000", "115000", "115001", "320129", "320104"];
|
|
47
|
+
/**
|
|
48
|
+
* Check if an error code is critical (requires flow halt)
|
|
49
|
+
*/
|
|
50
|
+
export declare function isCriticalError(errorCode: string): boolean;
|
|
51
|
+
//# sourceMappingURL=error-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../../src/entities/constants/error-codes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;CA2BnB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAEvF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAqCtD,CAAC;AAEF;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mIAarB,CAAC;AAEX;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAE1D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AlcoreApiError - Custom error class for Alcore API errors
|
|
3
|
+
* Preserves error_code and error_description as separate properties
|
|
4
|
+
*/
|
|
5
|
+
export declare class AlcoreApiError extends Error {
|
|
6
|
+
readonly errorCode: string;
|
|
7
|
+
readonly errorDescription: string;
|
|
8
|
+
readonly statusCode?: number;
|
|
9
|
+
constructor(errorCode: string, errorDescription: string, statusCode?: number);
|
|
10
|
+
/**
|
|
11
|
+
* Check if error matches a specific error code
|
|
12
|
+
*/
|
|
13
|
+
isErrorCode(code: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Check if error matches any of the provided error codes
|
|
16
|
+
*/
|
|
17
|
+
isAnyErrorCode(codes: string[]): boolean;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=alcore-api.error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alcore-api.error.d.ts","sourceRoot":"","sources":["../../../src/entities/errors/alcore-api.error.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,gBAAgB,EAAE,MAAM,CAAC;IACzC,SAAgB,UAAU,CAAC,EAAE,MAAM,CAAC;gBAExB,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;IAa5E;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIlC;;OAEG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO;CAGzC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EncryptedRequest } from '../requests/_alcore';
|
|
2
|
+
import { EncryptedResponse } from '../responses/alcore';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface CryptorInterface {
|
|
7
|
+
encrypt(data: object): Promise<EncryptedRequest>;
|
|
8
|
+
decrypt(data: EncryptedResponse): Promise<object>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=cryptor.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cryptor.interface.d.ts","sourceRoot":"","sources":["../../../src/entities/interfaces/cryptor.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACjD,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACnD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AccountRequest, AccountUpdateRequest } from "../../requests/accounts/accounts";
|
|
2
|
+
import { AccountResponse, AccountListResponse } from "../../responses/accounts/accounts";
|
|
3
|
+
import { AddressRequest, AddressUpdateRequest } from "../../requests/accounts/addresses";
|
|
4
|
+
import { AddressResponse, AddressListResponse } from "../../responses/accounts/addresses";
|
|
5
|
+
import { DossierRequest, DossierUpdateRequest, DossierReplaceRequest } from "../../requests/accounts/dossiers";
|
|
6
|
+
import { DossierResponse, DossierListResponse } from "../../responses/accounts/dossiers";
|
|
7
|
+
export interface AccountsGatewayInterface {
|
|
8
|
+
createAccount(data: AccountRequest): Promise<AccountResponse>;
|
|
9
|
+
getAccount(accountUuid: string): Promise<AccountResponse>;
|
|
10
|
+
updateAccount(accountUuid: string, data: AccountUpdateRequest): Promise<AccountResponse>;
|
|
11
|
+
deleteAccount(accountUuid: string): Promise<void>;
|
|
12
|
+
listAccounts(params?: AccountListParams): Promise<AccountListResponse>;
|
|
13
|
+
activateAccount(accountUuid: string): Promise<void>;
|
|
14
|
+
deactivateAccount(accountUuid: string): Promise<void>;
|
|
15
|
+
manageOnboarding(accountUuid: string, action: 'START_ONBOARDING'): Promise<void>;
|
|
16
|
+
createAddress(accountUuid: string, data: AddressRequest): Promise<AddressResponse>;
|
|
17
|
+
getAddresses(accountUuid: string, params?: AddressListParams): Promise<AddressListResponse>;
|
|
18
|
+
updateAddress(accountUuid: string, addressUuid: string, data: AddressUpdateRequest): Promise<AddressResponse>;
|
|
19
|
+
deleteAddress(accountUuid: string, addressUuid: string): Promise<void>;
|
|
20
|
+
createDossier(accountUuid: string, data: DossierRequest): Promise<DossierResponse>;
|
|
21
|
+
getDossiers(accountUuid: string, params?: DossierListParams): Promise<DossierListResponse>;
|
|
22
|
+
getDossier(accountUuid: string, dossierUuid: string): Promise<DossierResponse>;
|
|
23
|
+
updateDossier(accountUuid: string, dossierUuid: string, data: DossierUpdateRequest): Promise<DossierResponse>;
|
|
24
|
+
replaceDossier(accountUuid: string, dossierUuid: string, data: DossierReplaceRequest): Promise<DossierResponse>;
|
|
25
|
+
deleteDossier(accountUuid: string, dossierUuid: string): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
export interface AccountListParams {
|
|
28
|
+
external_id?: string;
|
|
29
|
+
phone_number?: string;
|
|
30
|
+
email_address?: string;
|
|
31
|
+
status?: 'CREATED' | 'ACTIVE' | 'INACTIVE' | 'PROCESSING' | 'PENDING_USER' | 'MANUAL_REVIEW' | 'REJECTED' | 'DELETED';
|
|
32
|
+
type?: 'CONSUMER' | 'BUSINESS' | 'STAKEHOLDER';
|
|
33
|
+
stage?: 'IDENTITY' | 'ADDRESS' | 'SANCTIONS' | 'FRAUD' | 'DOCUMENTS_OPTIONAL_FULL_SSN' | 'DOCUMENTS' | 'IDENTITY_OPTIONAL_SSN';
|
|
34
|
+
parent_account_uuid?: string;
|
|
35
|
+
offset?: number;
|
|
36
|
+
limit?: number;
|
|
37
|
+
start_date?: string;
|
|
38
|
+
end_date?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface AddressListParams {
|
|
41
|
+
limit?: number;
|
|
42
|
+
offset?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface DossierListParams {
|
|
45
|
+
limit?: number;
|
|
46
|
+
offset?: number;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=accounts.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.interface.d.ts","sourceRoot":"","sources":["../../../../src/entities/interfaces/gateways/accounts.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC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EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GenerateMobileTokenRequest, GeneratePlaidTokenRequest, GenerateWebSessionRequest, GeneratePdsTokenRequest, GenerateScopedTokenRequest } from "../../requests/auth/auth";
|
|
2
|
+
import { MobileTokenResponse, PlaidTokenResponse, WebSessionResponse, PdsTokenResponse, ScopedTokenResponse } from "../../responses/auth/auth";
|
|
3
|
+
export interface AuthGatewayInterface {
|
|
4
|
+
generateMobileToken(data: GenerateMobileTokenRequest): Promise<MobileTokenResponse>;
|
|
5
|
+
generatePlaidToken(data: GeneratePlaidTokenRequest): Promise<PlaidTokenResponse>;
|
|
6
|
+
generateWebSession(data: GenerateWebSessionRequest): Promise<WebSessionResponse>;
|
|
7
|
+
generatePdsToken(data: GeneratePdsTokenRequest): Promise<PdsTokenResponse>;
|
|
8
|
+
generateScopedToken(data: GenerateScopedTokenRequest): Promise<ScopedTokenResponse>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=auth.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.interface.d.ts","sourceRoot":"","sources":["../../../../src/entities/interfaces/gateways/auth.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACjL,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAE/I,MAAM,WAAW,oBAAoB;IAEjC,mBAAmB,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACpF,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjF,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjF,gBAAgB,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC3E,mBAAmB,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACvF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SetPinRequest } from '../../requests/card-issuance/card-issuance';
|
|
2
|
+
import { SetPinResult } from '../../results/card-issuance/set-pin';
|
|
3
|
+
export interface CardIssuanceGatewayInterface {
|
|
4
|
+
set_pin(data: SetPinRequest): Promise<SetPinResult>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=card-issuance.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-issuance.interface.d.ts","sourceRoot":"","sources":["../../../../src/entities/interfaces/gateways/card-issuance.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,MAAM,WAAW,4BAA4B;IACzC,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACvD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaymentInstrumentRequest, DebitFundsRequest } from "../../requests/payments/payment-instruments";
|
|
2
|
+
import { PaymentInstrumentResponse, DebitFundsResponse, CardListResponse } from "../../responses/payments/payment-instruments";
|
|
3
|
+
export interface CardListParams {
|
|
4
|
+
limit?: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface PaymentInstrumentsGatewayInterface {
|
|
8
|
+
createPaymentInstrument(data: PaymentInstrumentRequest): Promise<PaymentInstrumentResponse>;
|
|
9
|
+
getPaymentInstrument(paymentInstrumentUuid: string): Promise<PaymentInstrumentResponse>;
|
|
10
|
+
deletePaymentInstrument(paymentInstrumentUuid: string): Promise<void>;
|
|
11
|
+
debitFunds(data: DebitFundsRequest): Promise<DebitFundsResponse>;
|
|
12
|
+
listCards(accountUuid: string, params?: CardListParams): Promise<CardListResponse>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=payment-instruments.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-instruments.interface.d.ts","sourceRoot":"","sources":["../../../../src/entities/interfaces/gateways/payment-instruments.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAC1G,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAE/H,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kCAAkC;IAC/C,uBAAuB,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAC5F,oBAAoB,CAAC,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACxF,uBAAuB,CAAC,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjE,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACtF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AddCardRequest } from '../../requests/payments/payments';
|
|
2
|
+
import { AddCardResponse } from '../../responses/payments/add_card';
|
|
3
|
+
import { AddBankAccountRequest } from '../../requests/payments/bank-accounts';
|
|
4
|
+
import { AddBankAccountResponse, GetBankAccountsResponse } from '../../responses/payments/bank_accounts';
|
|
5
|
+
export interface PaymentsGatewayInterface {
|
|
6
|
+
add_card(accountUuid: string, data: AddCardRequest): Promise<AddCardResponse>;
|
|
7
|
+
add_bank_account(accountUuid: string, data: AddBankAccountRequest): Promise<AddBankAccountResponse>;
|
|
8
|
+
get_bank_accounts(accountUuid: string): Promise<GetBankAccountsResponse>;
|
|
9
|
+
delete_bank_account(accountUuid: string, uuid: string): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=payments.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.interface.d.ts","sourceRoot":"","sources":["../../../../src/entities/interfaces/gateways/payments.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAEhD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9E,gBAAgB,CACd,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACzE,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReleaseFundsRequest, ReverseTransactionRequest, CancelTransactionRequest, RefundTransactionRequest } from "../../requests/transactions/transactions";
|
|
2
|
+
import { TransactionResponse, TransactionListResponse, TransactionReceiptResponse, ChildTransactionListResponse } from "../../responses/transactions/transactions";
|
|
3
|
+
export interface TransactionsGatewayInterface {
|
|
4
|
+
getTransaction(transactionUuid: string): Promise<TransactionResponse>;
|
|
5
|
+
listTransactions(params?: TransactionListParams): Promise<TransactionListResponse>;
|
|
6
|
+
releaseFunds(data: ReleaseFundsRequest): Promise<TransactionResponse>;
|
|
7
|
+
reverseTransaction(transactionUuid: string, data: ReverseTransactionRequest): Promise<TransactionResponse>;
|
|
8
|
+
cancelTransaction(transactionUuid: string, data: CancelTransactionRequest): Promise<void>;
|
|
9
|
+
refundTransaction(transactionUuid: string, data: RefundTransactionRequest): Promise<void>;
|
|
10
|
+
getChildTransactions(transactionUuid: string, params?: ChildTransactionListParams): Promise<ChildTransactionListResponse>;
|
|
11
|
+
getTransactionReceipt(transactionUuid: string): Promise<TransactionReceiptResponse>;
|
|
12
|
+
}
|
|
13
|
+
export interface TransactionListParams {
|
|
14
|
+
account_uuid?: string;
|
|
15
|
+
wallet_uuid?: string;
|
|
16
|
+
beneficiary_uuid?: string;
|
|
17
|
+
issued_card_uuid?: string;
|
|
18
|
+
payment_method_uuid?: string;
|
|
19
|
+
type?: string;
|
|
20
|
+
status?: string;
|
|
21
|
+
start_date?: string;
|
|
22
|
+
end_date?: string;
|
|
23
|
+
limit?: number;
|
|
24
|
+
offset?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ChildTransactionListParams {
|
|
27
|
+
type?: string;
|
|
28
|
+
status?: string;
|
|
29
|
+
limit?: number;
|
|
30
|
+
offset?: number;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=transactions.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.interface.d.ts","sourceRoot":"","sources":["../../../../src/entities/interfaces/gateways/transactions.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAC9J,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAEnK,MAAM,WAAW,4BAA4B;IAEzC,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtE,gBAAgB,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACnF,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtE,kBAAkB,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC3G,iBAAiB,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1F,iBAAiB,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAG1F,oBAAoB,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAG1H,qBAAqB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACvF;AAED,MAAM,WAAW,qBAAqB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LoadFundsRequest } from '../../requests/wallets/wallets';
|
|
2
|
+
import { WalletListResponse, WalletTransactionResponse } from '../../responses/wallets/wallets';
|
|
3
|
+
export interface WalletsGatewayInterface {
|
|
4
|
+
listWallets(accountUuid: string, params?: WalletListParams): Promise<WalletListResponse>;
|
|
5
|
+
loadFunds(walletUuid: string, data: LoadFundsRequest): Promise<WalletTransactionResponse>;
|
|
6
|
+
}
|
|
7
|
+
export interface WalletListParams {
|
|
8
|
+
limit?: number;
|
|
9
|
+
offset?: number;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=wallets.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallets.interface.d.ts","sourceRoot":"","sources":["../../../../src/entities/interfaces/gateways/wallets.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAMjB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,kBAAkB,EAClB,yBAAyB,EAE1B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,WAAW,uBAAuB;IAGtC,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAGzF,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAS3F;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logger interface for consistent logging across the application
|
|
3
|
+
*/
|
|
4
|
+
export interface LoggerInterface {
|
|
5
|
+
logger: string;
|
|
6
|
+
debug(msg: string): void;
|
|
7
|
+
warning(msg: string): void;
|
|
8
|
+
warn(msg: string): void;
|
|
9
|
+
info(msg: string): void;
|
|
10
|
+
error(msg: string): void;
|
|
11
|
+
isDebugEnabled(): boolean;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=logger.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.interface.d.ts","sourceRoot":"","sources":["../../../src/entities/interfaces/logger.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,IAAI,OAAO,CAAC;CAC7B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validator interface for form field validation
|
|
3
|
+
*/
|
|
4
|
+
export interface ValidatorInterface {
|
|
5
|
+
credit_card_name(name: string): string | null;
|
|
6
|
+
credit_card_number(number: string): string | null;
|
|
7
|
+
credit_card_expiry_date(expiry: string): string | null;
|
|
8
|
+
credit_card_sec_code(code: string): string | null;
|
|
9
|
+
credit_card_zip_code(zip: string): string | null;
|
|
10
|
+
credit_card_pin(pin: string): string | null;
|
|
11
|
+
is_valid_uuid(uuid: string): string | null;
|
|
12
|
+
required(value: string | null | undefined, fieldName?: string): string | null;
|
|
13
|
+
email(email: string): string | null;
|
|
14
|
+
phone(phone: string): string | null;
|
|
15
|
+
date(date: string, format?: 'YYYY-MM-DD'): string | null;
|
|
16
|
+
min_length(value: string, minLength: number, fieldName?: string): string | null;
|
|
17
|
+
max_length(value: string, maxLength: number, fieldName?: string): string | null;
|
|
18
|
+
pattern(value: string, pattern: RegExp, errorMessage?: string): string | null;
|
|
19
|
+
numeric(value: string, fieldName?: string): string | null;
|
|
20
|
+
alphabetic(value: string, fieldName?: string): string | null;
|
|
21
|
+
alphanumeric(value: string, fieldName?: string): string | null;
|
|
22
|
+
url(url: string): string | null;
|
|
23
|
+
postal_code(code: string, country?: string): string | null;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=validator.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validator.interface.d.ts","sourceRoot":"","sources":["../../../src/entities/interfaces/validator.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAE/B,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9C,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClD,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACvD,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClD,oBAAoB,CAAC,GAA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