@venturialstd/capa 0.0.2 → 0.0.4

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 (95) hide show
  1. package/README.md +253 -253
  2. package/dist/capa.module.d.ts.map +1 -1
  3. package/dist/capa.module.js +11 -0
  4. package/dist/capa.module.js.map +1 -1
  5. package/dist/clients/capa.client.d.ts.map +1 -1
  6. package/dist/clients/capa.client.js +1 -2
  7. package/dist/clients/capa.client.js.map +1 -1
  8. package/dist/entities/capa-kyb-verification.entity.d.ts +19 -0
  9. package/dist/entities/capa-kyb-verification.entity.d.ts.map +1 -0
  10. package/dist/entities/capa-kyb-verification.entity.js +86 -0
  11. package/dist/entities/capa-kyb-verification.entity.js.map +1 -0
  12. package/dist/entities/capa-kyc-verification.entity.d.ts +145 -0
  13. package/dist/entities/capa-kyc-verification.entity.d.ts.map +1 -0
  14. package/dist/entities/capa-kyc-verification.entity.js +118 -0
  15. package/dist/entities/capa-kyc-verification.entity.js.map +1 -0
  16. package/dist/entities/capa-quote.entity.d.ts +37 -0
  17. package/dist/entities/capa-quote.entity.d.ts.map +1 -0
  18. package/dist/entities/capa-quote.entity.js +192 -0
  19. package/dist/entities/capa-quote.entity.js.map +1 -0
  20. package/dist/entities/capa-receiver.entity.d.ts +28 -0
  21. package/dist/entities/capa-receiver.entity.d.ts.map +1 -0
  22. package/dist/entities/capa-receiver.entity.js +181 -0
  23. package/dist/entities/capa-receiver.entity.js.map +1 -0
  24. package/dist/entities/capa-transaction.entity.d.ts +67 -0
  25. package/dist/entities/capa-transaction.entity.d.ts.map +1 -0
  26. package/dist/entities/capa-transaction.entity.js +221 -0
  27. package/dist/entities/capa-transaction.entity.js.map +1 -0
  28. package/dist/entities/capa-user.entity.d.ts +16 -0
  29. package/dist/entities/capa-user.entity.d.ts.map +1 -0
  30. package/dist/entities/capa-user.entity.js +109 -0
  31. package/dist/entities/capa-user.entity.js.map +1 -0
  32. package/dist/entities/capa-webhook-settings.entity.d.ts +9 -0
  33. package/dist/entities/capa-webhook-settings.entity.d.ts.map +1 -0
  34. package/dist/entities/capa-webhook-settings.entity.js +64 -0
  35. package/dist/entities/capa-webhook-settings.entity.js.map +1 -0
  36. package/dist/entities/index.d.ts +8 -0
  37. package/dist/entities/index.d.ts.map +1 -0
  38. package/dist/entities/index.js +24 -0
  39. package/dist/entities/index.js.map +1 -0
  40. package/dist/index.d.ts +2 -1
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +2 -1
  43. package/dist/index.js.map +1 -1
  44. package/dist/services/capa-base.service.d.ts +1 -1
  45. package/dist/services/capa-base.service.d.ts.map +1 -1
  46. package/dist/services/capa-base.service.js.map +1 -1
  47. package/dist/services/capa-cross-ramp.service.d.ts +10 -4
  48. package/dist/services/capa-cross-ramp.service.d.ts.map +1 -1
  49. package/dist/services/capa-cross-ramp.service.js +69 -7
  50. package/dist/services/capa-cross-ramp.service.js.map +1 -1
  51. package/dist/services/capa-kyb.service.d.ts +6 -3
  52. package/dist/services/capa-kyb.service.d.ts.map +1 -1
  53. package/dist/services/capa-kyb.service.js +24 -4
  54. package/dist/services/capa-kyb.service.js.map +1 -1
  55. package/dist/services/capa-kyc.service.d.ts +6 -3
  56. package/dist/services/capa-kyc.service.d.ts.map +1 -1
  57. package/dist/services/capa-kyc.service.js +30 -4
  58. package/dist/services/capa-kyc.service.js.map +1 -1
  59. package/dist/services/capa-off-ramp.service.d.ts +6 -3
  60. package/dist/services/capa-off-ramp.service.d.ts.map +1 -1
  61. package/dist/services/capa-off-ramp.service.js +53 -4
  62. package/dist/services/capa-off-ramp.service.js.map +1 -1
  63. package/dist/services/capa-on-ramp.service.d.ts +6 -3
  64. package/dist/services/capa-on-ramp.service.d.ts.map +1 -1
  65. package/dist/services/capa-on-ramp.service.js +47 -4
  66. package/dist/services/capa-on-ramp.service.js.map +1 -1
  67. package/dist/services/capa-quotes.service.d.ts +8 -4
  68. package/dist/services/capa-quotes.service.d.ts.map +1 -1
  69. package/dist/services/capa-quotes.service.js +38 -6
  70. package/dist/services/capa-quotes.service.js.map +1 -1
  71. package/dist/services/capa-receivers.service.d.ts +6 -3
  72. package/dist/services/capa-receivers.service.d.ts.map +1 -1
  73. package/dist/services/capa-receivers.service.js +64 -6
  74. package/dist/services/capa-receivers.service.js.map +1 -1
  75. package/dist/services/capa-transactions.service.d.ts +7 -3
  76. package/dist/services/capa-transactions.service.d.ts.map +1 -1
  77. package/dist/services/capa-transactions.service.js +62 -5
  78. package/dist/services/capa-transactions.service.js.map +1 -1
  79. package/dist/services/capa-users.service.d.ts +9 -4
  80. package/dist/services/capa-users.service.d.ts.map +1 -1
  81. package/dist/services/capa-users.service.js +73 -4
  82. package/dist/services/capa-users.service.js.map +1 -1
  83. package/dist/services/capa-webhook-settings.service.d.ts +6 -3
  84. package/dist/services/capa-webhook-settings.service.d.ts.map +1 -1
  85. package/dist/services/capa-webhook-settings.service.js +31 -4
  86. package/dist/services/capa-webhook-settings.service.js.map +1 -1
  87. package/dist/services/index.d.ts +6 -6
  88. package/dist/services/index.d.ts.map +1 -1
  89. package/dist/services/index.js +6 -6
  90. package/dist/services/index.js.map +1 -1
  91. package/dist/settings/capa.settings.d.ts.map +1 -1
  92. package/dist/settings/capa.settings.js.map +1 -1
  93. package/dist/types/capa-api.types.d.ts +70 -9
  94. package/dist/types/capa-api.types.d.ts.map +1 -1
  95. package/package.json +58 -46
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CapaKybVerification = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const typeorm_1 = require("typeorm");
15
+ let CapaKybVerification = class CapaKybVerification {
16
+ id;
17
+ userId;
18
+ verificationSessionId;
19
+ verificationStatus;
20
+ businessInfo;
21
+ beneficialOwners;
22
+ metadata;
23
+ createdAt;
24
+ updatedAt;
25
+ };
26
+ exports.CapaKybVerification = CapaKybVerification;
27
+ __decorate([
28
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
29
+ __metadata("design:type", String)
30
+ ], CapaKybVerification.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.IsNotEmpty)(),
34
+ (0, typeorm_1.Column)({ nullable: false, name: 'userId' }),
35
+ (0, typeorm_1.Index)(),
36
+ __metadata("design:type", String)
37
+ ], CapaKybVerification.prototype, "userId", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ (0, class_validator_1.IsNotEmpty)(),
41
+ (0, typeorm_1.Column)({ nullable: false, name: 'verificationSessionId' }),
42
+ (0, typeorm_1.Index)(),
43
+ __metadata("design:type", String)
44
+ ], CapaKybVerification.prototype, "verificationSessionId", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_validator_1.IsNotEmpty)(),
48
+ (0, typeorm_1.Column)({ nullable: false }),
49
+ __metadata("design:type", String)
50
+ ], CapaKybVerification.prototype, "verificationStatus", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'businessInfo' }),
53
+ __metadata("design:type", Object)
54
+ ], CapaKybVerification.prototype, "businessInfo", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'beneficialOwners' }),
57
+ __metadata("design:type", Array)
58
+ ], CapaKybVerification.prototype, "beneficialOwners", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], CapaKybVerification.prototype, "metadata", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.CreateDateColumn)({
65
+ name: 'createdAt',
66
+ nullable: false,
67
+ type: 'timestamptz',
68
+ default: () => 'CURRENT_TIMESTAMP',
69
+ }),
70
+ __metadata("design:type", Date)
71
+ ], CapaKybVerification.prototype, "createdAt", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.UpdateDateColumn)({
74
+ name: 'updatedAt',
75
+ nullable: false,
76
+ type: 'timestamptz',
77
+ default: () => 'CURRENT_TIMESTAMP',
78
+ }),
79
+ __metadata("design:type", Date)
80
+ ], CapaKybVerification.prototype, "updatedAt", void 0);
81
+ exports.CapaKybVerification = CapaKybVerification = __decorate([
82
+ (0, typeorm_1.Entity)('capa_kyb_verifications'),
83
+ (0, typeorm_1.Index)(['verificationSessionId'], { unique: true }),
84
+ (0, typeorm_1.Index)(['userId', 'verificationSessionId'])
85
+ ], CapaKybVerification);
86
+ //# sourceMappingURL=capa-kyb-verification.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capa-kyb-verification.entity.js","sourceRoot":"","sources":["../../src/entities/capa-kyb-verification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,qCAOiB;AAKV,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAE9B,EAAE,CAAS;IAMX,MAAM,CAAS;IAMf,qBAAqB,CAAS;IAK9B,kBAAkB,CAAS;IAI3B,YAAY,CAIV;IAIF,gBAAgB,CAGb;IAGH,QAAQ,CAA0B;IAQlC,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AAtDY,kDAAmB;AAE9B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;+CACpB;AAMX;IAJ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AM,EAAC,wBAAwB,CAAC;IAChC,IAAA,eAAK,EAAC,CAAC,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAClD,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;GAC9B,mBAAmB,CAsD/B"}
@@ -0,0 +1,145 @@
1
+ export declare class CapaKycVerification {
2
+ id: string;
3
+ userId: string;
4
+ verificationSessionId: string;
5
+ clientReferenceId: string;
6
+ amlInfo?: {
7
+ entityHits: Array<{
8
+ entityType: string;
9
+ name: string;
10
+ nameMatchScore: number;
11
+ alsoKnownAs: string[];
12
+ amlHits: unknown[];
13
+ dateOfBirth: string;
14
+ dateOfBirthMatchScore: number;
15
+ id: string;
16
+ resolutionStatus: string;
17
+ }>;
18
+ numHits: number;
19
+ amlHitSummary: Record<string, unknown>;
20
+ searchCriteria: {
21
+ searchTerm: string;
22
+ fuzzinessScore: number;
23
+ exactMatch: boolean;
24
+ };
25
+ };
26
+ clientReferenceData?: {
27
+ personalInfo: {
28
+ profession: string;
29
+ phoneNumber: string;
30
+ birthCountry: string;
31
+ taxId: string;
32
+ };
33
+ };
34
+ faceLivenessInfo?: {
35
+ checkSummary: Record<string, unknown>;
36
+ result: string;
37
+ section_id: string;
38
+ status: string;
39
+ statusReasons: Array<{
40
+ code: string;
41
+ message: string;
42
+ }>;
43
+ warnings: Array<{
44
+ code: string;
45
+ message: string;
46
+ warningId: string;
47
+ resolutionStatus: string;
48
+ }>;
49
+ };
50
+ faceMatchInfo?: {
51
+ faceMatchScore: number;
52
+ checkSummary: Record<string, unknown>;
53
+ result: string;
54
+ section_id: string;
55
+ status: string;
56
+ statusReasons: Array<{
57
+ code: string;
58
+ message: string;
59
+ }>;
60
+ warnings: Array<{
61
+ code: string;
62
+ message: string;
63
+ warningId: string;
64
+ resolutionStatus: string;
65
+ }>;
66
+ };
67
+ fraudInsights?: {
68
+ relatedSessionInsights: {
69
+ result: string;
70
+ section_id: string;
71
+ status: string;
72
+ statusReasons: Array<{
73
+ code: string;
74
+ message: string;
75
+ }>;
76
+ warnings: Array<{
77
+ code: string;
78
+ message: string;
79
+ warningId: string;
80
+ resolutionStatus: string;
81
+ }>;
82
+ };
83
+ result: string;
84
+ section_id: string;
85
+ status: string;
86
+ statusReasons: Array<{
87
+ code: string;
88
+ message: string;
89
+ }>;
90
+ warnings: Array<{
91
+ code: string;
92
+ message: string;
93
+ warningId: string;
94
+ resolutionStatus: string;
95
+ }>;
96
+ };
97
+ idInfo?: {
98
+ address: {
99
+ fullAddress: string;
100
+ };
101
+ birthDate: string;
102
+ checkSummary: Record<string, unknown>;
103
+ documentDetails: Record<string, unknown>;
104
+ firstName: string;
105
+ idExpiryDate: string;
106
+ idIssueDate: string;
107
+ idType: string;
108
+ idNumber: string;
109
+ middleName?: string;
110
+ lastName: string;
111
+ secondLastName?: string;
112
+ fullName: string;
113
+ gender: string;
114
+ nationality: string;
115
+ nationalityCode: string;
116
+ issueCountry: string;
117
+ issueCountryCode: string;
118
+ result: string;
119
+ section_id: string;
120
+ status: string;
121
+ statusReasons: Array<{
122
+ code: string;
123
+ message: string;
124
+ }>;
125
+ warnings: Array<{
126
+ code: string;
127
+ message: string;
128
+ warningId: string;
129
+ resolutionStatus: string;
130
+ }>;
131
+ };
132
+ aipriseSummary?: {
133
+ verificationResult: string;
134
+ };
135
+ media?: {
136
+ frontIdImageUrl: string;
137
+ backIdImageUrl: string;
138
+ selfieImageUrl: string;
139
+ selfieVideoUrl?: string;
140
+ };
141
+ metadata: Record<string, unknown>;
142
+ createdAt: Date;
143
+ updatedAt: Date;
144
+ }
145
+ //# sourceMappingURL=capa-kyc-verification.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capa-kyc-verification.entity.d.ts","sourceRoot":"","sources":["../../src/entities/capa-kyc-verification.entity.ts"],"names":[],"mappings":"AAUA,qBAIa,mBAAmB;IAE9B,EAAE,EAAE,MAAM,CAAC;IAMX,MAAM,EAAE,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C;KAC5B,CAAC;IAIF,KAAK,CAAC,EAAE;QACN,eAAe,EAAE,MAAM,CAAC;QACxB,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IAGF,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CapaKycVerification = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const typeorm_1 = require("typeorm");
15
+ let CapaKycVerification = class CapaKycVerification {
16
+ id;
17
+ userId;
18
+ verificationSessionId;
19
+ clientReferenceId;
20
+ amlInfo;
21
+ clientReferenceData;
22
+ faceLivenessInfo;
23
+ faceMatchInfo;
24
+ fraudInsights;
25
+ idInfo;
26
+ aipriseSummary;
27
+ media;
28
+ metadata;
29
+ createdAt;
30
+ updatedAt;
31
+ };
32
+ exports.CapaKycVerification = CapaKycVerification;
33
+ __decorate([
34
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
35
+ __metadata("design:type", String)
36
+ ], CapaKycVerification.prototype, "id", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ (0, class_validator_1.IsNotEmpty)(),
40
+ (0, typeorm_1.Column)({ nullable: false, name: 'userId' }),
41
+ (0, typeorm_1.Index)(),
42
+ __metadata("design:type", String)
43
+ ], CapaKycVerification.prototype, "userId", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsString)(),
46
+ (0, class_validator_1.IsNotEmpty)(),
47
+ (0, typeorm_1.Column)({ nullable: false, name: 'verificationSessionId' }),
48
+ (0, typeorm_1.Index)(),
49
+ __metadata("design:type", String)
50
+ ], CapaKycVerification.prototype, "verificationSessionId", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsString)(),
53
+ (0, class_validator_1.IsNotEmpty)(),
54
+ (0, typeorm_1.Column)({ nullable: false, name: 'clientReferenceId' }),
55
+ (0, typeorm_1.Index)(),
56
+ __metadata("design:type", String)
57
+ ], CapaKycVerification.prototype, "clientReferenceId", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'amlInfo' }),
60
+ __metadata("design:type", Object)
61
+ ], CapaKycVerification.prototype, "amlInfo", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'clientReferenceData' }),
64
+ __metadata("design:type", Object)
65
+ ], CapaKycVerification.prototype, "clientReferenceData", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'faceLivenessInfo' }),
68
+ __metadata("design:type", Object)
69
+ ], CapaKycVerification.prototype, "faceLivenessInfo", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'faceMatchInfo' }),
72
+ __metadata("design:type", Object)
73
+ ], CapaKycVerification.prototype, "faceMatchInfo", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'fraudInsights' }),
76
+ __metadata("design:type", Object)
77
+ ], CapaKycVerification.prototype, "fraudInsights", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'idInfo' }),
80
+ __metadata("design:type", Object)
81
+ ], CapaKycVerification.prototype, "idInfo", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'aipriseSummary' }),
84
+ __metadata("design:type", Object)
85
+ ], CapaKycVerification.prototype, "aipriseSummary", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
88
+ __metadata("design:type", Object)
89
+ ], CapaKycVerification.prototype, "media", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
92
+ __metadata("design:type", Object)
93
+ ], CapaKycVerification.prototype, "metadata", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.CreateDateColumn)({
96
+ name: 'createdAt',
97
+ nullable: false,
98
+ type: 'timestamptz',
99
+ default: () => 'CURRENT_TIMESTAMP',
100
+ }),
101
+ __metadata("design:type", Date)
102
+ ], CapaKycVerification.prototype, "createdAt", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.UpdateDateColumn)({
105
+ name: 'updatedAt',
106
+ nullable: false,
107
+ type: 'timestamptz',
108
+ default: () => 'CURRENT_TIMESTAMP',
109
+ }),
110
+ __metadata("design:type", Date)
111
+ ], CapaKycVerification.prototype, "updatedAt", void 0);
112
+ exports.CapaKycVerification = CapaKycVerification = __decorate([
113
+ (0, typeorm_1.Entity)('capa_kyc_verifications'),
114
+ (0, typeorm_1.Index)(['verificationSessionId'], { unique: true }),
115
+ (0, typeorm_1.Index)(['userId', 'verificationSessionId']),
116
+ (0, typeorm_1.Index)(['clientReferenceId'])
117
+ ], CapaKycVerification);
118
+ //# sourceMappingURL=capa-kyc-verification.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capa-kyc-verification.entity.js","sourceRoot":"","sources":["../../src/entities/capa-kyc-verification.entity.ts"],"names":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,mBAAmB;IAJ/B,IAAA,gBAAM,EAAC,wBAAwB,CAAC;IAChC,IAAA,eAAK,EAAC,CAAC,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAClD,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;IAC1C,IAAA,eAAK,EAAC,CAAC,mBAAmB,CAAC,CAAC;GAChB,mBAAmB,CAuM/B"}
@@ -0,0 +1,37 @@
1
+ export declare enum CapaQuoteTransactionType {
2
+ ON_RAMP = "ON_RAMP",
3
+ OFF_RAMP = "OFF_RAMP",
4
+ CROSS_RAMP = "CROSS_RAMP"
5
+ }
6
+ export declare enum CapaQuoteFlow {
7
+ REGULAR = "REGULAR",
8
+ OTC = "OTC",
9
+ PAYMENT = "PAYMENT"
10
+ }
11
+ export declare class CapaQuote {
12
+ id: string;
13
+ quoteId: string;
14
+ transactionType: CapaQuoteTransactionType;
15
+ fiatAmount: number;
16
+ fiatCurrency: string;
17
+ blockchainSymbol: string;
18
+ tokenSymbol: string;
19
+ cryptoAmount: number;
20
+ rate: number;
21
+ premiumSpread?: number;
22
+ flow: CapaQuoteFlow;
23
+ sourceCurrency?: string;
24
+ targetCurrency?: string;
25
+ sourceAmount?: number;
26
+ targetAmount?: number;
27
+ spread?: number;
28
+ fees?: {
29
+ fixedFee: number;
30
+ feeCurrency: string;
31
+ };
32
+ expiresAt?: Date;
33
+ metadata: Record<string, unknown>;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ }
37
+ //# sourceMappingURL=capa-quote.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capa-quote.entity.d.ts","sourceRoot":"","sources":["../../src/entities/capa-quote.entity.ts"],"names":[],"mappings":"AAUA,oBAAY,wBAAwB;IAClC,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AAED,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;AAED,qBAGa,SAAS;IAEpB,EAAE,EAAE,MAAM,CAAC;IAMX,OAAO,EAAE,MAAM,CAAC;IAUhB,eAAe,EAAE,wBAAwB,CAAC;IAK1C,UAAU,EAAE,MAAM,CAAC;IAMnB,YAAY,EAAE,MAAM,CAAC;IAKrB,gBAAgB,EAAE,MAAM,CAAC;IAMzB,WAAW,EAAE,MAAM,CAAC;IAKpB,YAAY,EAAE,MAAM,CAAC;IAKrB,IAAI,EAAE,MAAM,CAAC;IAKb,aAAa,CAAC,EAAE,MAAM,CAAC;IASvB,IAAI,EAAE,aAAa,CAAC;IAMpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAKxB,cAAc,CAAC,EAAE,MAAM,CAAC;IAKxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,IAAI,CAAC,EAAE;QACL,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IAGF,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CapaQuote = exports.CapaQuoteFlow = exports.CapaQuoteTransactionType = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const typeorm_1 = require("typeorm");
15
+ var CapaQuoteTransactionType;
16
+ (function (CapaQuoteTransactionType) {
17
+ CapaQuoteTransactionType["ON_RAMP"] = "ON_RAMP";
18
+ CapaQuoteTransactionType["OFF_RAMP"] = "OFF_RAMP";
19
+ CapaQuoteTransactionType["CROSS_RAMP"] = "CROSS_RAMP";
20
+ })(CapaQuoteTransactionType || (exports.CapaQuoteTransactionType = CapaQuoteTransactionType = {}));
21
+ var CapaQuoteFlow;
22
+ (function (CapaQuoteFlow) {
23
+ CapaQuoteFlow["REGULAR"] = "REGULAR";
24
+ CapaQuoteFlow["OTC"] = "OTC";
25
+ CapaQuoteFlow["PAYMENT"] = "PAYMENT";
26
+ })(CapaQuoteFlow || (exports.CapaQuoteFlow = CapaQuoteFlow = {}));
27
+ let CapaQuote = class CapaQuote {
28
+ id;
29
+ quoteId;
30
+ transactionType;
31
+ fiatAmount;
32
+ fiatCurrency;
33
+ blockchainSymbol;
34
+ tokenSymbol;
35
+ cryptoAmount;
36
+ rate;
37
+ premiumSpread;
38
+ flow;
39
+ sourceCurrency;
40
+ targetCurrency;
41
+ sourceAmount;
42
+ targetAmount;
43
+ spread;
44
+ fees;
45
+ expiresAt;
46
+ metadata;
47
+ createdAt;
48
+ updatedAt;
49
+ };
50
+ exports.CapaQuote = CapaQuote;
51
+ __decorate([
52
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
53
+ __metadata("design:type", String)
54
+ ], CapaQuote.prototype, "id", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsString)(),
57
+ (0, class_validator_1.IsNotEmpty)(),
58
+ (0, typeorm_1.Column)({ nullable: false, name: 'quoteId' }),
59
+ (0, typeorm_1.Index)(),
60
+ __metadata("design:type", String)
61
+ ], CapaQuote.prototype, "quoteId", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsEnum)(CapaQuoteTransactionType),
64
+ (0, typeorm_1.Column)({
65
+ type: 'enum',
66
+ enum: CapaQuoteTransactionType,
67
+ nullable: false,
68
+ name: 'transactionType',
69
+ }),
70
+ (0, typeorm_1.Index)(),
71
+ __metadata("design:type", String)
72
+ ], CapaQuote.prototype, "transactionType", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsNumber)(),
75
+ (0, class_validator_1.IsNotEmpty)(),
76
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 20, scale: 8, nullable: false, name: 'fiatAmount' }),
77
+ __metadata("design:type", Number)
78
+ ], CapaQuote.prototype, "fiatAmount", void 0);
79
+ __decorate([
80
+ (0, class_validator_1.IsString)(),
81
+ (0, class_validator_1.IsNotEmpty)(),
82
+ (0, typeorm_1.Column)({ nullable: false, name: 'fiatCurrency' }),
83
+ (0, typeorm_1.Index)(),
84
+ __metadata("design:type", String)
85
+ ], CapaQuote.prototype, "fiatCurrency", void 0);
86
+ __decorate([
87
+ (0, class_validator_1.IsString)(),
88
+ (0, class_validator_1.IsNotEmpty)(),
89
+ (0, typeorm_1.Column)({ nullable: false, name: 'blockchainSymbol' }),
90
+ __metadata("design:type", String)
91
+ ], CapaQuote.prototype, "blockchainSymbol", void 0);
92
+ __decorate([
93
+ (0, class_validator_1.IsString)(),
94
+ (0, class_validator_1.IsNotEmpty)(),
95
+ (0, typeorm_1.Column)({ nullable: false, name: 'tokenSymbol' }),
96
+ (0, typeorm_1.Index)(),
97
+ __metadata("design:type", String)
98
+ ], CapaQuote.prototype, "tokenSymbol", void 0);
99
+ __decorate([
100
+ (0, class_validator_1.IsNumber)(),
101
+ (0, class_validator_1.IsNotEmpty)(),
102
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 20, scale: 8, nullable: false, name: 'cryptoAmount' }),
103
+ __metadata("design:type", Number)
104
+ ], CapaQuote.prototype, "cryptoAmount", void 0);
105
+ __decorate([
106
+ (0, class_validator_1.IsNumber)(),
107
+ (0, class_validator_1.IsNotEmpty)(),
108
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 20, scale: 8, nullable: false }),
109
+ __metadata("design:type", Number)
110
+ ], CapaQuote.prototype, "rate", void 0);
111
+ __decorate([
112
+ (0, class_validator_1.IsNumber)(),
113
+ (0, class_validator_1.IsOptional)(),
114
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 4, nullable: true, name: 'premiumSpread' }),
115
+ __metadata("design:type", Number)
116
+ ], CapaQuote.prototype, "premiumSpread", void 0);
117
+ __decorate([
118
+ (0, class_validator_1.IsEnum)(CapaQuoteFlow),
119
+ (0, typeorm_1.Column)({
120
+ type: 'enum',
121
+ enum: CapaQuoteFlow,
122
+ nullable: false,
123
+ default: CapaQuoteFlow.REGULAR,
124
+ }),
125
+ __metadata("design:type", String)
126
+ ], CapaQuote.prototype, "flow", void 0);
127
+ __decorate([
128
+ (0, class_validator_1.IsString)(),
129
+ (0, class_validator_1.IsOptional)(),
130
+ (0, typeorm_1.Column)({ nullable: true, name: 'sourceCurrency' }),
131
+ __metadata("design:type", String)
132
+ ], CapaQuote.prototype, "sourceCurrency", void 0);
133
+ __decorate([
134
+ (0, class_validator_1.IsString)(),
135
+ (0, class_validator_1.IsOptional)(),
136
+ (0, typeorm_1.Column)({ nullable: true, name: 'targetCurrency' }),
137
+ __metadata("design:type", String)
138
+ ], CapaQuote.prototype, "targetCurrency", void 0);
139
+ __decorate([
140
+ (0, class_validator_1.IsNumber)(),
141
+ (0, class_validator_1.IsOptional)(),
142
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 20, scale: 8, nullable: true, name: 'sourceAmount' }),
143
+ __metadata("design:type", Number)
144
+ ], CapaQuote.prototype, "sourceAmount", void 0);
145
+ __decorate([
146
+ (0, class_validator_1.IsNumber)(),
147
+ (0, class_validator_1.IsOptional)(),
148
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 20, scale: 8, nullable: true, name: 'targetAmount' }),
149
+ __metadata("design:type", Number)
150
+ ], CapaQuote.prototype, "targetAmount", void 0);
151
+ __decorate([
152
+ (0, class_validator_1.IsNumber)(),
153
+ (0, class_validator_1.IsOptional)(),
154
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 4, nullable: true }),
155
+ __metadata("design:type", Number)
156
+ ], CapaQuote.prototype, "spread", void 0);
157
+ __decorate([
158
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
159
+ __metadata("design:type", Object)
160
+ ], CapaQuote.prototype, "fees", void 0);
161
+ __decorate([
162
+ (0, typeorm_1.Column)({ type: 'timestamptz', nullable: true, name: 'expiresAt' }),
163
+ __metadata("design:type", Date)
164
+ ], CapaQuote.prototype, "expiresAt", void 0);
165
+ __decorate([
166
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
167
+ __metadata("design:type", Object)
168
+ ], CapaQuote.prototype, "metadata", void 0);
169
+ __decorate([
170
+ (0, typeorm_1.CreateDateColumn)({
171
+ name: 'createdAt',
172
+ nullable: false,
173
+ type: 'timestamptz',
174
+ default: () => 'CURRENT_TIMESTAMP',
175
+ }),
176
+ __metadata("design:type", Date)
177
+ ], CapaQuote.prototype, "createdAt", void 0);
178
+ __decorate([
179
+ (0, typeorm_1.UpdateDateColumn)({
180
+ name: 'updatedAt',
181
+ nullable: false,
182
+ type: 'timestamptz',
183
+ default: () => 'CURRENT_TIMESTAMP',
184
+ }),
185
+ __metadata("design:type", Date)
186
+ ], CapaQuote.prototype, "updatedAt", void 0);
187
+ exports.CapaQuote = CapaQuote = __decorate([
188
+ (0, typeorm_1.Entity)('capa_quotes'),
189
+ (0, typeorm_1.Index)(['quoteId'], { unique: true }),
190
+ (0, typeorm_1.Index)(['transactionType', 'fiatCurrency', 'tokenSymbol'])
191
+ ], CapaQuote);
192
+ //# sourceMappingURL=capa-quote.entity.js.map
@@ -0,0 +1 @@
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Receiver {
6
+ id: string;
7
+ capaReceiverId: string;
8
+ userId: string;
9
+ receiverType: CapaReceiverType;
10
+ email: string;
11
+ taxId?: string;
12
+ firstName?: string;
13
+ lastName?: string;
14
+ countryOfBirth?: string;
15
+ dateOfBirth?: string;
16
+ businessName?: string;
17
+ countryOfConstitution?: string;
18
+ dateOfConstitution?: string;
19
+ phoneNumber?: string;
20
+ isPep?: boolean;
21
+ hasBeneficialOwner?: boolean;
22
+ hasResourceProvider?: boolean;
23
+ disabled: boolean;
24
+ metadata: Record<string, unknown>;
25
+ createdAt: Date;
26
+ updatedAt: Date;
27
+ }
28
+ //# sourceMappingURL=capa-receiver.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capa-receiver.entity.d.ts","sourceRoot":"","sources":["../../src/entities/capa-receiver.entity.ts"],"names":[],"mappings":"AAWA,oBAAY,gBAAgB;IAC1B,UAAU,eAAe;IACzB,QAAQ,aAAa;CACtB;AAED,qBAGa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAMX,cAAc,EAAE,MAAM,CAAC;IAMvB,MAAM,EAAE,MAAM,CAAC;IAQf,YAAY,EAAE,gBAAgB,CAAC;IAK/B,KAAK,EAAE,MAAM,CAAC;IAKd,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,cAAc,CAAC,EAAE,MAAM,CAAC;IAKxB,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAK/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAKhB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAK7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAI9B,QAAQ,EAAE,OAAO,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}