@fiado/type-kit 3.67.0 → 3.69.0
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/bin/platformRbac/dtos/CreateTenantRequest.d.ts +0 -1
- package/bin/platformRbac/dtos/CreateTenantRequest.js +0 -5
- package/bin/remittance/dtos/RemittanceBackofficeDashboardSummary.d.ts +8 -0
- package/bin/remittance/dtos/RemittanceBackofficeDashboardSummary.js +7 -0
- package/bin/remittance/dtos/RemittanceBackofficeStats.d.ts +21 -0
- package/bin/remittance/dtos/RemittanceBackofficeStats.js +16 -0
- package/bin/remittance/dtos/RemittanceBackofficeTransaction.d.ts +37 -0
- package/bin/remittance/dtos/RemittanceBackofficeTransaction.js +11 -0
- package/bin/remittance/dtos/RemittanceBackofficeTxListResponse.d.ts +6 -0
- package/bin/remittance/dtos/RemittanceBackofficeTxListResponse.js +7 -0
- package/bin/remittance/dtos/RemittanceBackofficeUserDetail.d.ts +15 -0
- package/bin/remittance/dtos/RemittanceBackofficeUserDetail.js +10 -0
- package/bin/remittance/dtos/RemittanceBackofficeUserListResponse.d.ts +6 -0
- package/bin/remittance/dtos/RemittanceBackofficeUserListResponse.js +7 -0
- package/bin/remittance/dtos/RemittanceBackofficeUserView.d.ts +18 -0
- package/bin/remittance/dtos/RemittanceBackofficeUserView.js +11 -0
- package/bin/remittance/dtos/index.d.ts +7 -7
- package/bin/remittance/dtos/index.js +7 -7
- package/package.json +1 -1
- package/src/platformRbac/dtos/CreateTenantRequest.ts +0 -1
- package/src/remittance/dtos/RemittanceBackofficeDashboardSummary.ts +8 -0
- package/src/remittance/dtos/RemittanceBackofficeStats.ts +25 -0
- package/src/remittance/dtos/RemittanceBackofficeTransaction.ts +38 -0
- package/src/remittance/dtos/RemittanceBackofficeTxListResponse.ts +7 -0
- package/src/remittance/dtos/RemittanceBackofficeUserDetail.ts +17 -0
- package/src/remittance/dtos/RemittanceBackofficeUserListResponse.ts +7 -0
- package/src/remittance/dtos/RemittanceBackofficeUserView.ts +18 -0
- package/src/remittance/dtos/index.ts +7 -7
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +0 -7
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.js +0 -36
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.d.ts +0 -20
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.js +0 -11
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.d.ts +0 -4
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.js +0 -6
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +0 -17
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +0 -39
- package/bin/rbac/enums/PoolKind.d.ts +0 -16
- package/bin/rbac/enums/PoolKind.js +0 -20
- package/bin/rbac/index.d.ts +0 -1
- package/bin/rbac/index.js +0 -17
|
@@ -33,11 +33,6 @@ __decorate([
|
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], CreateTenantRequest.prototype, "displayName", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_transformer_1.Expose)(),
|
|
38
|
-
(0, class_validator_1.IsString)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], CreateTenantRequest.prototype, "emailDomain", void 0);
|
|
41
36
|
__decorate([
|
|
42
37
|
(0, class_transformer_1.Expose)(),
|
|
43
38
|
(0, class_validator_1.IsString)(),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemittanceBackofficeDashboardSummary = void 0;
|
|
4
|
+
/** KPIs del dashboard de remesas (F9, read-only). */
|
|
5
|
+
class RemittanceBackofficeDashboardSummary {
|
|
6
|
+
}
|
|
7
|
+
exports.RemittanceBackofficeDashboardSummary = RemittanceBackofficeDashboardSummary;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type RemittanceBackofficeStatsPeriod = "TODAY" | "WEEK" | "MONTH";
|
|
2
|
+
export declare class RemittanceBackofficeStatsBucket {
|
|
3
|
+
txCount: number;
|
|
4
|
+
volumeUSD: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class RemittanceBackofficeCountryBucket extends RemittanceBackofficeStatsBucket {
|
|
7
|
+
countryISO: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class RemittanceBackofficeDayBucket extends RemittanceBackofficeStatsBucket {
|
|
10
|
+
date: string;
|
|
11
|
+
}
|
|
12
|
+
/** Volumen/fees agregados por país y por día (F9). */
|
|
13
|
+
export declare class RemittanceBackofficeStats {
|
|
14
|
+
period: RemittanceBackofficeStatsPeriod;
|
|
15
|
+
from: string;
|
|
16
|
+
totalTxs: number;
|
|
17
|
+
volumeUSD: number;
|
|
18
|
+
totalFeesUSD: number;
|
|
19
|
+
byCountry: RemittanceBackofficeCountryBucket[];
|
|
20
|
+
byDay: RemittanceBackofficeDayBucket[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemittanceBackofficeStats = exports.RemittanceBackofficeDayBucket = exports.RemittanceBackofficeCountryBucket = exports.RemittanceBackofficeStatsBucket = void 0;
|
|
4
|
+
class RemittanceBackofficeStatsBucket {
|
|
5
|
+
}
|
|
6
|
+
exports.RemittanceBackofficeStatsBucket = RemittanceBackofficeStatsBucket;
|
|
7
|
+
class RemittanceBackofficeCountryBucket extends RemittanceBackofficeStatsBucket {
|
|
8
|
+
}
|
|
9
|
+
exports.RemittanceBackofficeCountryBucket = RemittanceBackofficeCountryBucket;
|
|
10
|
+
class RemittanceBackofficeDayBucket extends RemittanceBackofficeStatsBucket {
|
|
11
|
+
}
|
|
12
|
+
exports.RemittanceBackofficeDayBucket = RemittanceBackofficeDayBucket;
|
|
13
|
+
/** Volumen/fees agregados por país y por día (F9). */
|
|
14
|
+
class RemittanceBackofficeStats {
|
|
15
|
+
}
|
|
16
|
+
exports.RemittanceBackofficeStats = RemittanceBackofficeStats;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { RemittanceTxStatus } from "../enums/RemittanceTxStatus";
|
|
2
|
+
/**
|
|
3
|
+
* Vista operativa COMPLETA de una tx para el backoffice (F9): incluye campos
|
|
4
|
+
* de trazabilidad (previewRef, idempotencyKey, marketplaceTransactionNumber
|
|
5
|
+
* para correlación con el procesador) que el DTO de usuario no expone.
|
|
6
|
+
*/
|
|
7
|
+
export declare class RemittanceBackofficeTransaction {
|
|
8
|
+
directoryId: string;
|
|
9
|
+
txNumber: string;
|
|
10
|
+
marketplaceTransactionNumber?: string;
|
|
11
|
+
beneficiaryId: string;
|
|
12
|
+
beneficiaryName: string;
|
|
13
|
+
countryISO: string;
|
|
14
|
+
currencyISO: string;
|
|
15
|
+
payerCode: string;
|
|
16
|
+
payerName?: string;
|
|
17
|
+
receptionMethod: string;
|
|
18
|
+
amountUSD: number;
|
|
19
|
+
receivedAmount: number;
|
|
20
|
+
receivedCurrency: string;
|
|
21
|
+
exchangeRate: number;
|
|
22
|
+
serviceFee: number;
|
|
23
|
+
stateFee?: number;
|
|
24
|
+
totalAmount?: number;
|
|
25
|
+
status: RemittanceTxStatus;
|
|
26
|
+
previewRef?: string;
|
|
27
|
+
idempotencyKey?: string;
|
|
28
|
+
unirSubStatus?: string;
|
|
29
|
+
cancelReason?: string;
|
|
30
|
+
cancelledAt?: string;
|
|
31
|
+
availableDate?: string;
|
|
32
|
+
smsAlertCount?: number;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
createdBy?: string;
|
|
36
|
+
updatedBy?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemittanceBackofficeTransaction = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Vista operativa COMPLETA de una tx para el backoffice (F9): incluye campos
|
|
6
|
+
* de trazabilidad (previewRef, idempotencyKey, marketplaceTransactionNumber
|
|
7
|
+
* para correlación con el procesador) que el DTO de usuario no expone.
|
|
8
|
+
*/
|
|
9
|
+
class RemittanceBackofficeTransaction {
|
|
10
|
+
}
|
|
11
|
+
exports.RemittanceBackofficeTransaction = RemittanceBackofficeTransaction;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RemittanceBackofficeTransaction } from "./RemittanceBackofficeTransaction";
|
|
2
|
+
/** Página de transacciones para backoffice (F9). Cursor estándar `index`. */
|
|
3
|
+
export declare class RemittanceBackofficeTxListResponse {
|
|
4
|
+
items: RemittanceBackofficeTransaction[];
|
|
5
|
+
index?: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemittanceBackofficeTxListResponse = void 0;
|
|
4
|
+
/** Página de transacciones para backoffice (F9). Cursor estándar `index`. */
|
|
5
|
+
class RemittanceBackofficeTxListResponse {
|
|
6
|
+
}
|
|
7
|
+
exports.RemittanceBackofficeTxListResponse = RemittanceBackofficeTxListResponse;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RemittanceBackofficeUserView } from "./RemittanceBackofficeUserView";
|
|
2
|
+
import { RemittanceBackofficeTransaction } from "./RemittanceBackofficeTransaction";
|
|
3
|
+
import { RemittanceBeneficiary } from "./RemittanceBeneficiary";
|
|
4
|
+
export declare class RemittanceBackofficeUserLifetimeStats {
|
|
5
|
+
txCount: number;
|
|
6
|
+
totalSentUSD: number;
|
|
7
|
+
lastTxAt?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Detalle 360 de un usuario para el backoffice (F9). */
|
|
10
|
+
export declare class RemittanceBackofficeUserDetail {
|
|
11
|
+
user: RemittanceBackofficeUserView;
|
|
12
|
+
beneficiaries: RemittanceBeneficiary[];
|
|
13
|
+
recentTransactions: RemittanceBackofficeTransaction[];
|
|
14
|
+
lifetimeStats: RemittanceBackofficeUserLifetimeStats;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemittanceBackofficeUserDetail = exports.RemittanceBackofficeUserLifetimeStats = void 0;
|
|
4
|
+
class RemittanceBackofficeUserLifetimeStats {
|
|
5
|
+
}
|
|
6
|
+
exports.RemittanceBackofficeUserLifetimeStats = RemittanceBackofficeUserLifetimeStats;
|
|
7
|
+
/** Detalle 360 de un usuario para el backoffice (F9). */
|
|
8
|
+
class RemittanceBackofficeUserDetail {
|
|
9
|
+
}
|
|
10
|
+
exports.RemittanceBackofficeUserDetail = RemittanceBackofficeUserDetail;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RemittanceBackofficeUserView } from "./RemittanceBackofficeUserView";
|
|
2
|
+
/** Página de usuarios (F9). Cursor estándar: `index` opaco, ausente => fin. */
|
|
3
|
+
export declare class RemittanceBackofficeUserListResponse {
|
|
4
|
+
items: RemittanceBackofficeUserView[];
|
|
5
|
+
index?: string;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemittanceBackofficeUserListResponse = void 0;
|
|
4
|
+
/** Página de usuarios (F9). Cursor estándar: `index` opaco, ausente => fin. */
|
|
5
|
+
class RemittanceBackofficeUserListResponse {
|
|
6
|
+
}
|
|
7
|
+
exports.RemittanceBackofficeUserListResponse = RemittanceBackofficeUserListResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vista de un usuario de remesas para el backoffice (F9). Proyección SEGURA:
|
|
3
|
+
* los campos sensibles del connector (tokens OAuth encriptados, security
|
|
4
|
+
* answers) NUNCA viajan en este DTO.
|
|
5
|
+
*/
|
|
6
|
+
export declare class RemittanceBackofficeUserView {
|
|
7
|
+
directoryId: string;
|
|
8
|
+
unirEmail: string;
|
|
9
|
+
status: string;
|
|
10
|
+
remitterStatus?: string;
|
|
11
|
+
remitterLevel?: string;
|
|
12
|
+
unirWlpWalletId?: number;
|
|
13
|
+
unirSignupDate?: string;
|
|
14
|
+
activatedAt: string;
|
|
15
|
+
lastDataSyncAt?: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemittanceBackofficeUserView = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Vista de un usuario de remesas para el backoffice (F9). Proyección SEGURA:
|
|
6
|
+
* los campos sensibles del connector (tokens OAuth encriptados, security
|
|
7
|
+
* answers) NUNCA viajan en este DTO.
|
|
8
|
+
*/
|
|
9
|
+
class RemittanceBackofficeUserView {
|
|
10
|
+
}
|
|
11
|
+
exports.RemittanceBackofficeUserView = RemittanceBackofficeUserView;
|
|
@@ -27,10 +27,10 @@ export * from "./RemittanceTransactionReceipt";
|
|
|
27
27
|
export * from "./RemittanceCancelRequest";
|
|
28
28
|
export * from "./RemittanceCancelResponse";
|
|
29
29
|
export * from "./RemittanceSmsRequest";
|
|
30
|
-
export * from "./
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./
|
|
34
|
-
export * from "./
|
|
35
|
-
export * from "./
|
|
36
|
-
export * from "./
|
|
30
|
+
export * from "./RemittanceBackofficeUserView";
|
|
31
|
+
export * from "./RemittanceBackofficeDashboardSummary";
|
|
32
|
+
export * from "./RemittanceBackofficeTransaction";
|
|
33
|
+
export * from "./RemittanceBackofficeUserDetail";
|
|
34
|
+
export * from "./RemittanceBackofficeUserListResponse";
|
|
35
|
+
export * from "./RemittanceBackofficeTxListResponse";
|
|
36
|
+
export * from "./RemittanceBackofficeStats";
|
|
@@ -43,10 +43,10 @@ __exportStar(require("./RemittanceTransactionReceipt"), exports);
|
|
|
43
43
|
__exportStar(require("./RemittanceCancelRequest"), exports);
|
|
44
44
|
__exportStar(require("./RemittanceCancelResponse"), exports);
|
|
45
45
|
__exportStar(require("./RemittanceSmsRequest"), exports);
|
|
46
|
-
__exportStar(require("./
|
|
47
|
-
__exportStar(require("./
|
|
48
|
-
__exportStar(require("./
|
|
49
|
-
__exportStar(require("./
|
|
50
|
-
__exportStar(require("./
|
|
51
|
-
__exportStar(require("./
|
|
52
|
-
__exportStar(require("./
|
|
46
|
+
__exportStar(require("./RemittanceBackofficeUserView"), exports);
|
|
47
|
+
__exportStar(require("./RemittanceBackofficeDashboardSummary"), exports);
|
|
48
|
+
__exportStar(require("./RemittanceBackofficeTransaction"), exports);
|
|
49
|
+
__exportStar(require("./RemittanceBackofficeUserDetail"), exports);
|
|
50
|
+
__exportStar(require("./RemittanceBackofficeUserListResponse"), exports);
|
|
51
|
+
__exportStar(require("./RemittanceBackofficeTxListResponse"), exports);
|
|
52
|
+
__exportStar(require("./RemittanceBackofficeStats"), exports);
|
package/package.json
CHANGED
|
@@ -11,7 +11,6 @@ import { IsBoolean, IsEmail, IsInt, IsOptional, IsString, Matches, Min } from 'c
|
|
|
11
11
|
export class CreateTenantRequest {
|
|
12
12
|
@Expose() @IsString() @Matches(/^[a-z0-9-]+$/) tenantId!: string;
|
|
13
13
|
@Expose() @IsString() displayName!: string;
|
|
14
|
-
@Expose() @IsString() emailDomain!: string;
|
|
15
14
|
@Expose() @IsString() tablePrefix!: string;
|
|
16
15
|
@Expose() @IsEmail() adminEmail!: string;
|
|
17
16
|
@Expose() @IsString() adminName!: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type RemittanceBackofficeStatsPeriod = "TODAY" | "WEEK" | "MONTH";
|
|
2
|
+
|
|
3
|
+
export class RemittanceBackofficeStatsBucket {
|
|
4
|
+
txCount!: number;
|
|
5
|
+
volumeUSD!: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class RemittanceBackofficeCountryBucket extends RemittanceBackofficeStatsBucket {
|
|
9
|
+
countryISO!: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class RemittanceBackofficeDayBucket extends RemittanceBackofficeStatsBucket {
|
|
13
|
+
date!: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Volumen/fees agregados por país y por día (F9). */
|
|
17
|
+
export class RemittanceBackofficeStats {
|
|
18
|
+
period!: RemittanceBackofficeStatsPeriod;
|
|
19
|
+
from!: string;
|
|
20
|
+
totalTxs!: number;
|
|
21
|
+
volumeUSD!: number;
|
|
22
|
+
totalFeesUSD!: number;
|
|
23
|
+
byCountry!: RemittanceBackofficeCountryBucket[];
|
|
24
|
+
byDay!: RemittanceBackofficeDayBucket[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { RemittanceTxStatus } from "../enums/RemittanceTxStatus";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Vista operativa COMPLETA de una tx para el backoffice (F9): incluye campos
|
|
5
|
+
* de trazabilidad (previewRef, idempotencyKey, marketplaceTransactionNumber
|
|
6
|
+
* para correlación con el procesador) que el DTO de usuario no expone.
|
|
7
|
+
*/
|
|
8
|
+
export class RemittanceBackofficeTransaction {
|
|
9
|
+
directoryId!: string;
|
|
10
|
+
txNumber!: string;
|
|
11
|
+
marketplaceTransactionNumber?: string;
|
|
12
|
+
beneficiaryId!: string;
|
|
13
|
+
beneficiaryName!: string;
|
|
14
|
+
countryISO!: string;
|
|
15
|
+
currencyISO!: string;
|
|
16
|
+
payerCode!: string;
|
|
17
|
+
payerName?: string;
|
|
18
|
+
receptionMethod!: string;
|
|
19
|
+
amountUSD!: number;
|
|
20
|
+
receivedAmount!: number;
|
|
21
|
+
receivedCurrency!: string;
|
|
22
|
+
exchangeRate!: number;
|
|
23
|
+
serviceFee!: number;
|
|
24
|
+
stateFee?: number;
|
|
25
|
+
totalAmount?: number;
|
|
26
|
+
status!: RemittanceTxStatus;
|
|
27
|
+
previewRef?: string;
|
|
28
|
+
idempotencyKey?: string;
|
|
29
|
+
unirSubStatus?: string;
|
|
30
|
+
cancelReason?: string;
|
|
31
|
+
cancelledAt?: string;
|
|
32
|
+
availableDate?: string;
|
|
33
|
+
smsAlertCount?: number;
|
|
34
|
+
createdAt!: string;
|
|
35
|
+
updatedAt!: string;
|
|
36
|
+
createdBy?: string;
|
|
37
|
+
updatedBy?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RemittanceBackofficeTransaction } from "./RemittanceBackofficeTransaction";
|
|
2
|
+
|
|
3
|
+
/** Página de transacciones para backoffice (F9). Cursor estándar `index`. */
|
|
4
|
+
export class RemittanceBackofficeTxListResponse {
|
|
5
|
+
items!: RemittanceBackofficeTransaction[];
|
|
6
|
+
index?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RemittanceBackofficeUserView } from "./RemittanceBackofficeUserView";
|
|
2
|
+
import { RemittanceBackofficeTransaction } from "./RemittanceBackofficeTransaction";
|
|
3
|
+
import { RemittanceBeneficiary } from "./RemittanceBeneficiary";
|
|
4
|
+
|
|
5
|
+
export class RemittanceBackofficeUserLifetimeStats {
|
|
6
|
+
txCount!: number;
|
|
7
|
+
totalSentUSD!: number;
|
|
8
|
+
lastTxAt?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Detalle 360 de un usuario para el backoffice (F9). */
|
|
12
|
+
export class RemittanceBackofficeUserDetail {
|
|
13
|
+
user!: RemittanceBackofficeUserView;
|
|
14
|
+
beneficiaries!: RemittanceBeneficiary[];
|
|
15
|
+
recentTransactions!: RemittanceBackofficeTransaction[];
|
|
16
|
+
lifetimeStats!: RemittanceBackofficeUserLifetimeStats;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RemittanceBackofficeUserView } from "./RemittanceBackofficeUserView";
|
|
2
|
+
|
|
3
|
+
/** Página de usuarios (F9). Cursor estándar: `index` opaco, ausente => fin. */
|
|
4
|
+
export class RemittanceBackofficeUserListResponse {
|
|
5
|
+
items!: RemittanceBackofficeUserView[];
|
|
6
|
+
index?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vista de un usuario de remesas para el backoffice (F9). Proyección SEGURA:
|
|
3
|
+
* los campos sensibles del connector (tokens OAuth encriptados, security
|
|
4
|
+
* answers) NUNCA viajan en este DTO.
|
|
5
|
+
*/
|
|
6
|
+
export class RemittanceBackofficeUserView {
|
|
7
|
+
directoryId!: string;
|
|
8
|
+
unirEmail!: string;
|
|
9
|
+
status!: string;
|
|
10
|
+
remitterStatus?: string;
|
|
11
|
+
remitterLevel?: string;
|
|
12
|
+
unirWlpWalletId?: number;
|
|
13
|
+
unirSignupDate?: string;
|
|
14
|
+
activatedAt!: string;
|
|
15
|
+
lastDataSyncAt?: string;
|
|
16
|
+
createdAt!: string;
|
|
17
|
+
updatedAt!: string;
|
|
18
|
+
}
|
|
@@ -27,10 +27,10 @@ export * from "./RemittanceTransactionReceipt";
|
|
|
27
27
|
export * from "./RemittanceCancelRequest";
|
|
28
28
|
export * from "./RemittanceCancelResponse";
|
|
29
29
|
export * from "./RemittanceSmsRequest";
|
|
30
|
-
export * from "./
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./
|
|
34
|
-
export * from "./
|
|
35
|
-
export * from "./
|
|
36
|
-
export * from "./
|
|
30
|
+
export * from "./RemittanceBackofficeUserView";
|
|
31
|
+
export * from "./RemittanceBackofficeDashboardSummary";
|
|
32
|
+
export * from "./RemittanceBackofficeTransaction";
|
|
33
|
+
export * from "./RemittanceBackofficeUserDetail";
|
|
34
|
+
export * from "./RemittanceBackofficeUserListResponse";
|
|
35
|
+
export * from "./RemittanceBackofficeTxListResponse";
|
|
36
|
+
export * from "./RemittanceBackofficeStats";
|
|
@@ -1,36 +0,0 @@
|
|
|
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.MfaPoolConfig = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const MfaTypesRequiresOne_1 = require("../validators/MfaTypesRequiresOne");
|
|
16
|
-
// EMAIL_OTP removido (3.41.0): el cognito-backoffice-connector no provisiona
|
|
17
|
-
// EmailMfaConfiguration a nivel pool (requiere infra SES que no está montada
|
|
18
|
-
// y la integración con messages-lambda aún no tiene diseño). Ver TD-020 +
|
|
19
|
-
// DEC-001 en cognito-backoffice-connector/docs/. Si se reintroduce, agregar
|
|
20
|
-
// 'EMAIL_OTP' a este array.
|
|
21
|
-
const ALLOWED_MFA_TYPES = ['SOFTWARE_TOKEN_MFA'];
|
|
22
|
-
class MfaPoolConfig {
|
|
23
|
-
}
|
|
24
|
-
exports.MfaPoolConfig = MfaPoolConfig;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
(0, class_validator_1.IsBoolean)(),
|
|
28
|
-
__metadata("design:type", Boolean)
|
|
29
|
-
], MfaPoolConfig.prototype, "requireMfa", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
(0, class_validator_1.IsArray)(),
|
|
33
|
-
(0, class_validator_1.IsIn)(ALLOWED_MFA_TYPES, { each: true }),
|
|
34
|
-
(0, class_validator_1.Validate)(MfaTypesRequiresOne_1.MfaTypesRequiresOne),
|
|
35
|
-
__metadata("design:type", Array)
|
|
36
|
-
], MfaPoolConfig.prototype, "mfaTypes", void 0);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PoolKind } from '../../rbac/enums/PoolKind';
|
|
2
|
-
/**
|
|
3
|
-
* Shape del `PoolConfigRow` expuesto al caller (BFF M18 / otros lambdas Fiado).
|
|
4
|
-
* Refleja la configuración de un Cognito User Pool registrado en la tabla
|
|
5
|
-
* `PoolConfigs_GT` del lambda `cognito-backoffice-connector`.
|
|
6
|
-
*/
|
|
7
|
-
export declare class PoolConfigResponse {
|
|
8
|
-
userPoolId: string;
|
|
9
|
-
userPoolArn: string;
|
|
10
|
-
region: string;
|
|
11
|
-
poolKind: PoolKind;
|
|
12
|
-
displayName: string;
|
|
13
|
-
appClients: Record<string, {
|
|
14
|
-
clientId: string;
|
|
15
|
-
clientName: string;
|
|
16
|
-
}>;
|
|
17
|
-
status: 'active' | 'deprecated';
|
|
18
|
-
createdAt: number;
|
|
19
|
-
updatedAt: number;
|
|
20
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PoolConfigResponse = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Shape del `PoolConfigRow` expuesto al caller (BFF M18 / otros lambdas Fiado).
|
|
6
|
-
* Refleja la configuración de un Cognito User Pool registrado en la tabla
|
|
7
|
-
* `PoolConfigs_GT` del lambda `cognito-backoffice-connector`.
|
|
8
|
-
*/
|
|
9
|
-
class PoolConfigResponse {
|
|
10
|
-
}
|
|
11
|
-
exports.PoolConfigResponse = PoolConfigResponse;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ValidatorConstraintInterface, ValidationArguments } from 'class-validator';
|
|
2
|
-
/**
|
|
3
|
-
* Cross-field validator: si `requireMfa: true`, entonces `mfaTypes` debe tener
|
|
4
|
-
* al menos 1 elemento. Si `requireMfa: false`, `mfaTypes` puede ser vacío.
|
|
5
|
-
*
|
|
6
|
-
* Razón: cuando el pool nace con MFA habilitado, el connector llama
|
|
7
|
-
* `SetUserPoolMfaConfigCommand` con la lista de tipos del DTO. Si el array
|
|
8
|
-
* llega vacío con `requireMfa: true`, el SDK rechaza con InvalidParameterException
|
|
9
|
-
* y el pool queda en estado inconsistente (MfaConfiguration:'ON' sin tipos).
|
|
10
|
-
* Mejor rechazar en validación del DTO antes de tocar AWS.
|
|
11
|
-
*
|
|
12
|
-
* Ver pivote v1.4.1 TD-017 cerrado + spec doc §1 R3.
|
|
13
|
-
*/
|
|
14
|
-
export declare class MfaTypesRequiresOne implements ValidatorConstraintInterface {
|
|
15
|
-
validate(mfaTypes: unknown, args: ValidationArguments): boolean;
|
|
16
|
-
defaultMessage(): string;
|
|
17
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.MfaTypesRequiresOne = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
/**
|
|
12
|
-
* Cross-field validator: si `requireMfa: true`, entonces `mfaTypes` debe tener
|
|
13
|
-
* al menos 1 elemento. Si `requireMfa: false`, `mfaTypes` puede ser vacío.
|
|
14
|
-
*
|
|
15
|
-
* Razón: cuando el pool nace con MFA habilitado, el connector llama
|
|
16
|
-
* `SetUserPoolMfaConfigCommand` con la lista de tipos del DTO. Si el array
|
|
17
|
-
* llega vacío con `requireMfa: true`, el SDK rechaza con InvalidParameterException
|
|
18
|
-
* y el pool queda en estado inconsistente (MfaConfiguration:'ON' sin tipos).
|
|
19
|
-
* Mejor rechazar en validación del DTO antes de tocar AWS.
|
|
20
|
-
*
|
|
21
|
-
* Ver pivote v1.4.1 TD-017 cerrado + spec doc §1 R3.
|
|
22
|
-
*/
|
|
23
|
-
let MfaTypesRequiresOne = class MfaTypesRequiresOne {
|
|
24
|
-
validate(mfaTypes, args) {
|
|
25
|
-
const obj = args.object;
|
|
26
|
-
if (obj.requireMfa === true) {
|
|
27
|
-
return Array.isArray(mfaTypes) && mfaTypes.length >= 1;
|
|
28
|
-
}
|
|
29
|
-
// requireMfa: false → cualquier mfaTypes pasa.
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
defaultMessage() {
|
|
33
|
-
return 'mfaTypes requiere al menos un tipo cuando requireMfa=true';
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.MfaTypesRequiresOne = MfaTypesRequiresOne;
|
|
37
|
-
exports.MfaTypesRequiresOne = MfaTypesRequiresOne = __decorate([
|
|
38
|
-
(0, class_validator_1.ValidatorConstraint)({ name: 'MfaTypesRequiresOneWhenMfaRequired', async: false })
|
|
39
|
-
], MfaTypesRequiresOne);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tipo de User Pool de Cognito desde la perspectiva del modelo RBAC Fiado.
|
|
3
|
-
*
|
|
4
|
-
* Origen: spec del proyecto `cognito-backoffice-connector` (Fase 0, componente 01
|
|
5
|
-
* documento `docs/superpowers/specs/2026-05-26-cognito-connector-decisiones-pendientes-design.md`).
|
|
6
|
-
*
|
|
7
|
-
* Decisión (TD-003): el proyecto converge en estos 2 valores. El documento componente 03
|
|
8
|
-
* lista 3 valores (incluyendo una variante adicional) pero queda como outlier — la
|
|
9
|
-
* decisión vigente en los 6 docs restantes y en el plan de implementación es 2 valores:
|
|
10
|
-
* - BACKOFFICE_PLATFORM — pool del backoffice de plataforma (cross-tenant)
|
|
11
|
-
* - BACKOFFICE_TENANT — pool por tenant (multi-tenant isolation)
|
|
12
|
-
*/
|
|
13
|
-
export declare enum PoolKind {
|
|
14
|
-
BACKOFFICE_PLATFORM = "BACKOFFICE_PLATFORM",
|
|
15
|
-
BACKOFFICE_TENANT = "BACKOFFICE_TENANT"
|
|
16
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PoolKind = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Tipo de User Pool de Cognito desde la perspectiva del modelo RBAC Fiado.
|
|
6
|
-
*
|
|
7
|
-
* Origen: spec del proyecto `cognito-backoffice-connector` (Fase 0, componente 01
|
|
8
|
-
* documento `docs/superpowers/specs/2026-05-26-cognito-connector-decisiones-pendientes-design.md`).
|
|
9
|
-
*
|
|
10
|
-
* Decisión (TD-003): el proyecto converge en estos 2 valores. El documento componente 03
|
|
11
|
-
* lista 3 valores (incluyendo una variante adicional) pero queda como outlier — la
|
|
12
|
-
* decisión vigente en los 6 docs restantes y en el plan de implementación es 2 valores:
|
|
13
|
-
* - BACKOFFICE_PLATFORM — pool del backoffice de plataforma (cross-tenant)
|
|
14
|
-
* - BACKOFFICE_TENANT — pool por tenant (multi-tenant isolation)
|
|
15
|
-
*/
|
|
16
|
-
var PoolKind;
|
|
17
|
-
(function (PoolKind) {
|
|
18
|
-
PoolKind["BACKOFFICE_PLATFORM"] = "BACKOFFICE_PLATFORM";
|
|
19
|
-
PoolKind["BACKOFFICE_TENANT"] = "BACKOFFICE_TENANT";
|
|
20
|
-
})(PoolKind || (exports.PoolKind = PoolKind = {}));
|
package/bin/rbac/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './enums/PoolKind';
|
package/bin/rbac/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./enums/PoolKind"), exports);
|