@fiado/type-kit 3.38.0 → 3.40.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/_test_/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.test.ts +77 -0
- package/bin/benefitCenter/dtos/BackofficeInputLabelsUpdateRequest.d.ts +12 -0
- package/bin/benefitCenter/dtos/BackofficeInputLabelsUpdateRequest.js +29 -0
- package/bin/benefitCenter/dtos/BackofficeLeafHelpImageUpdateRequest.d.ts +9 -0
- package/bin/benefitCenter/dtos/BackofficeLeafHelpImageUpdateRequest.js +26 -0
- package/bin/benefitCenter/dtos/BackofficeProductEnabledUpdateRequest.d.ts +9 -0
- package/bin/benefitCenter/dtos/BackofficeProductEnabledUpdateRequest.js +26 -0
- package/bin/benefitCenter/dtos/BackofficeProductHelpImageUpdateRequest.d.ts +9 -0
- package/bin/benefitCenter/dtos/BackofficeProductHelpImageUpdateRequest.js +26 -0
- package/bin/benefitCenter/dtos/BackofficeSubcategoryLogoUpdateRequest.d.ts +10 -0
- package/bin/benefitCenter/dtos/BackofficeSubcategoryLogoUpdateRequest.js +27 -0
- package/bin/benefitCenter/dtos/LeafAssetUploadUrlRequest.d.ts +14 -0
- package/bin/benefitCenter/dtos/LeafAssetUploadUrlRequest.js +36 -0
- package/bin/benefitCenter/dtos/LeafAssetUploadUrlResponse.d.ts +13 -0
- package/bin/benefitCenter/dtos/LeafAssetUploadUrlResponse.js +12 -0
- package/bin/benefitCenter/dtos/ProductItem.d.ts +12 -0
- package/bin/benefitCenter/enums/LeafAssetKindEnum.d.ts +12 -0
- package/bin/benefitCenter/enums/LeafAssetKindEnum.js +16 -0
- package/bin/benefitCenter/index.d.ts +8 -0
- package/bin/benefitCenter/index.js +9 -0
- package/bin/cognitoBackofficeConnector/dtos/AppClientConfig.d.ts +19 -0
- package/bin/cognitoBackofficeConnector/dtos/AppClientConfig.js +74 -0
- package/bin/cognitoBackofficeConnector/dtos/AuthEventsRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/AuthEventsRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ChangePasswordRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ChangePasswordRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ConfirmForgotPasswordRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ConfirmForgotPasswordRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/CreatePoolRequest.d.ts +19 -0
- package/bin/cognitoBackofficeConnector/dtos/CreatePoolRequest.js +63 -0
- package/bin/cognitoBackofficeConnector/dtos/CreatePoolResponse.d.ts +13 -0
- package/bin/cognitoBackofficeConnector/dtos/CreatePoolResponse.js +13 -0
- package/bin/cognitoBackofficeConnector/dtos/CreateUserRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/CreateUserRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/CustomAttributeSpec.d.ts +9 -0
- package/bin/cognitoBackofficeConnector/dtos/CustomAttributeSpec.js +38 -0
- package/bin/cognitoBackofficeConnector/dtos/DeletePoolRequest.d.ts +13 -0
- package/bin/{messagesConnector/dtos/VerifyOtpRequest.js → cognitoBackofficeConnector/dtos/DeletePoolRequest.js} +14 -12
- package/bin/cognitoBackofficeConnector/dtos/DeleteUserRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/DeleteUserRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ForgotPasswordRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ForgotPasswordRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/InitiateAuthRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/InitiateAuthRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +7 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.js +31 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaResetRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaResetRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/PasswordPolicyConfig.d.ts +8 -0
- package/bin/cognitoBackofficeConnector/dtos/PasswordPolicyConfig.js +51 -0
- package/bin/cognitoBackofficeConnector/dtos/RefreshTokensRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/RefreshTokensRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendConfirmationRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendConfirmationRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendInvitationRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/ResendInvitationRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/RespondToChallengeRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/RespondToChallengeRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/SetMfaPreferenceRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/SetMfaPreferenceRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpBeginRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpBeginRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpVerifyRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/TotpVerifyRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateEmailRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateEmailRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateProfileRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateProfileRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateUserAttributesRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/UpdateUserAttributesRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/UserActionRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/UserActionRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/dtos/VerifyEmailRequest.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/dtos/VerifyEmailRequest.js +6 -0
- package/bin/cognitoBackofficeConnector/index.d.ts +8 -2
- package/bin/cognitoBackofficeConnector/index.js +8 -2
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +17 -0
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +39 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +7 -1
- package/bin/platformRbac/dtos/AuthContext.d.ts +21 -0
- package/bin/platformRbac/dtos/AuthContext.js +2 -0
- package/bin/platformRbac/dtos/PermissionMeta.d.ts +19 -0
- package/bin/platformRbac/dtos/PermissionMeta.js +2 -0
- package/bin/platformRbac/dtos/RoleAssignmentInfo.d.ts +11 -0
- package/bin/platformRbac/dtos/RoleAssignmentInfo.js +2 -0
- package/bin/platformRbac/enums/Permission.d.ts +93 -0
- package/bin/platformRbac/enums/Permission.js +118 -0
- package/bin/platformRbac/enums/PermissionCategory.d.ts +14 -0
- package/bin/platformRbac/enums/PermissionCategory.js +18 -0
- package/bin/platformRbac/enums/PermissionScope.d.ts +10 -0
- package/bin/platformRbac/enums/PermissionScope.js +14 -0
- package/bin/platformRbac/index.d.ts +6 -0
- package/bin/platformRbac/index.js +18 -0
- package/package.json +6 -3
- package/src/benefitCenter/dtos/BackofficeInputLabelsUpdateRequest.ts +16 -0
- package/src/benefitCenter/dtos/BackofficeLeafHelpImageUpdateRequest.ts +13 -0
- package/src/benefitCenter/dtos/BackofficeProductEnabledUpdateRequest.ts +12 -0
- package/src/benefitCenter/dtos/BackofficeProductHelpImageUpdateRequest.ts +13 -0
- package/src/benefitCenter/dtos/BackofficeSubcategoryLogoUpdateRequest.ts +14 -0
- package/src/benefitCenter/dtos/LeafAssetUploadUrlRequest.ts +23 -0
- package/src/benefitCenter/dtos/LeafAssetUploadUrlResponse.ts +13 -0
- package/src/benefitCenter/dtos/ProductItem.ts +14 -0
- package/src/benefitCenter/enums/LeafAssetKindEnum.ts +12 -0
- package/src/benefitCenter/index.ts +9 -0
- package/src/cognitoBackofficeConnector/dtos/AppClientConfig.ts +22 -0
- package/src/cognitoBackofficeConnector/dtos/AuthEventsRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ChangePasswordRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ConfirmForgotPasswordRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/CreatePoolRequest.ts +30 -0
- package/src/cognitoBackofficeConnector/dtos/CreatePoolResponse.ts +13 -0
- package/src/cognitoBackofficeConnector/dtos/CreateUserRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/CustomAttributeSpec.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/DeletePoolRequest.ts +16 -0
- package/src/cognitoBackofficeConnector/dtos/DeleteUserRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ForgotPasswordRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/InitiateAuthRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/MfaPoolConfig.ts +16 -0
- package/src/cognitoBackofficeConnector/dtos/MfaResetRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/PasswordPolicyConfig.ts +11 -0
- package/src/cognitoBackofficeConnector/dtos/RefreshTokensRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ResendConfirmationRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/ResendInvitationRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/RespondToChallengeRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/SetMfaPreferenceRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/TotpBeginRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/TotpVerifyRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/UpdateEmailRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/UpdateProfileRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/UpdateUserAttributesRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/UserActionRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/dtos/VerifyEmailRequest.ts +1 -0
- package/src/cognitoBackofficeConnector/index.ts +8 -2
- package/src/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.ts +29 -0
- package/src/index.ts +6 -0
- package/src/platformRbac/dtos/AuthContext.ts +22 -0
- package/src/platformRbac/dtos/PermissionMeta.ts +20 -0
- package/src/platformRbac/dtos/RoleAssignmentInfo.ts +12 -0
- package/src/platformRbac/enums/Permission.ts +120 -0
- package/src/platformRbac/enums/PermissionCategory.ts +14 -0
- package/src/platformRbac/enums/PermissionScope.ts +10 -0
- package/src/platformRbac/index.ts +17 -0
- 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/messagesConnector/dtos/SendMessageRequest.d.ts +0 -20
- package/bin/messagesConnector/dtos/SendMessageRequest.js +0 -118
- package/bin/messagesConnector/dtos/VerifyOtpRequest.d.ts +0 -5
- package/src/cognitoBackofficeConnector/dtos/PoolConfigResponse.ts +0 -18
- package/src/cognitoBackofficeConnector/dtos/PoolsListResponse.ts +0 -5
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catálogo universal de permisos del sistema RBAC Fiado.
|
|
3
|
+
*
|
|
4
|
+
* Origen: componente 01 de Fase 0 SureKeep (spec maestro):
|
|
5
|
+
* surekeep/docs/5_fases/00_fase0_cognito_rbac_users_mfa/componentes/01_typekit-rbac-additions.md
|
|
6
|
+
*
|
|
7
|
+
* Copy-paste literal de los 78 valores del spec (DEC-003).
|
|
8
|
+
* Convención: `<category>.<resource>.<action>` (snake_case en action si multi-palabra).
|
|
9
|
+
* Cualquier cambio aquí requiere PR + bump minor + redeploy de consumers.
|
|
10
|
+
*
|
|
11
|
+
* Coexiste con módulo `rbac/` oficial cuando yhonhansen publique componente 01 — TD-RBAC-002.
|
|
12
|
+
*/
|
|
13
|
+
export enum Permission {
|
|
14
|
+
// ====================================================
|
|
15
|
+
// RBAC — gestión genérica del propio sistema RBAC
|
|
16
|
+
// ====================================================
|
|
17
|
+
RBAC_CATALOG_MANAGE = 'rbac.catalog.manage',
|
|
18
|
+
|
|
19
|
+
// ====================================================
|
|
20
|
+
// PLATFORM — operaciones a nivel meta-plataforma (Fiado equipo)
|
|
21
|
+
// ====================================================
|
|
22
|
+
PLATFORM_TENANT_CREATE = 'platform.tenant.create',
|
|
23
|
+
PLATFORM_TENANT_LIST = 'platform.tenant.list',
|
|
24
|
+
PLATFORM_TENANT_VIEW = 'platform.tenant.view',
|
|
25
|
+
PLATFORM_TENANT_UPDATE = 'platform.tenant.update',
|
|
26
|
+
PLATFORM_TENANT_SUSPEND = 'platform.tenant.suspend',
|
|
27
|
+
PLATFORM_TENANT_ACTIVATE = 'platform.tenant.activate',
|
|
28
|
+
PLATFORM_TENANT_ADMIN_REPLACE = 'platform.tenant.admin.replace',
|
|
29
|
+
PLATFORM_COGNITO_POOL_MANAGE = 'platform.cognito.pool.manage',
|
|
30
|
+
PLATFORM_COGNITO_POOL_LIST = 'platform.cognito.pool.list',
|
|
31
|
+
PLATFORM_USER_CREATE = 'platform.user.create',
|
|
32
|
+
PLATFORM_USER_LIST = 'platform.user.list',
|
|
33
|
+
PLATFORM_USER_VIEW = 'platform.user.view',
|
|
34
|
+
PLATFORM_USER_UPDATE = 'platform.user.update',
|
|
35
|
+
PLATFORM_USER_DISABLE = 'platform.user.disable',
|
|
36
|
+
PLATFORM_USER_ENABLE = 'platform.user.enable',
|
|
37
|
+
PLATFORM_USER_DELETE = 'platform.user.delete',
|
|
38
|
+
PLATFORM_ROLE_CREATE = 'platform.role.create',
|
|
39
|
+
PLATFORM_ROLE_LIST = 'platform.role.list',
|
|
40
|
+
PLATFORM_ROLE_UPDATE = 'platform.role.update',
|
|
41
|
+
PLATFORM_ROLE_DELETE = 'platform.role.delete',
|
|
42
|
+
PLATFORM_AUDIT_VIEW = 'platform.audit.view',
|
|
43
|
+
|
|
44
|
+
// ====================================================
|
|
45
|
+
// TENANT — operaciones dentro del silo de un tenant
|
|
46
|
+
// ====================================================
|
|
47
|
+
TENANT_USER_CREATE = 'tenant.user.create',
|
|
48
|
+
TENANT_USER_LIST = 'tenant.user.list',
|
|
49
|
+
TENANT_USER_VIEW = 'tenant.user.view',
|
|
50
|
+
TENANT_USER_UPDATE = 'tenant.user.update',
|
|
51
|
+
TENANT_USER_DISABLE = 'tenant.user.disable',
|
|
52
|
+
TENANT_USER_ENABLE = 'tenant.user.enable',
|
|
53
|
+
TENANT_USER_DELETE = 'tenant.user.delete',
|
|
54
|
+
TENANT_USER_MFA_RESET = 'tenant.user.mfa.reset',
|
|
55
|
+
TENANT_USER_PASSWORD_RESET = 'tenant.user.password.reset',
|
|
56
|
+
TENANT_ROLE_CREATE = 'tenant.role.create',
|
|
57
|
+
TENANT_ROLE_LIST = 'tenant.role.list',
|
|
58
|
+
TENANT_ROLE_UPDATE = 'tenant.role.update',
|
|
59
|
+
TENANT_ROLE_DELETE = 'tenant.role.delete',
|
|
60
|
+
TENANT_ROLE_VIEW = 'tenant.role.view',
|
|
61
|
+
TENANT_ROLE_ASSIGN = 'tenant.role.assign',
|
|
62
|
+
TENANT_ROLE_REVOKE = 'tenant.role.revoke',
|
|
63
|
+
TENANT_SECURITY_POLICY_VIEW = 'tenant.security.policy.view',
|
|
64
|
+
TENANT_SECURITY_POLICY_MANAGE = 'tenant.security.policy.manage',
|
|
65
|
+
TENANT_BRANDING_MANAGE = 'tenant.branding.manage',
|
|
66
|
+
TENANT_AUDIT_VIEW = 'tenant.audit.view',
|
|
67
|
+
|
|
68
|
+
// ====================================================
|
|
69
|
+
// RETAIL — catálogo + inventario + ventas
|
|
70
|
+
// ====================================================
|
|
71
|
+
RETAIL_PRODUCT_CREATE = 'retail.product.create',
|
|
72
|
+
RETAIL_PRODUCT_LIST = 'retail.product.list',
|
|
73
|
+
RETAIL_PRODUCT_VIEW = 'retail.product.view',
|
|
74
|
+
RETAIL_PRODUCT_UPDATE = 'retail.product.update',
|
|
75
|
+
RETAIL_PRODUCT_DELETE = 'retail.product.delete',
|
|
76
|
+
RETAIL_PRODUCT_MDM_CONFIG = 'retail.product.mdm_config',
|
|
77
|
+
RETAIL_INVENTORY_LIST = 'retail.inventory.list',
|
|
78
|
+
RETAIL_INVENTORY_VIEW = 'retail.inventory.view',
|
|
79
|
+
RETAIL_INVENTORY_UPDATE = 'retail.inventory.update',
|
|
80
|
+
RETAIL_SALE_CREATE = 'retail.sale.create',
|
|
81
|
+
RETAIL_SALE_LIST = 'retail.sale.list',
|
|
82
|
+
RETAIL_SALE_CANCEL = 'retail.sale.cancel',
|
|
83
|
+
RETAIL_STORE_MANAGE = 'retail.store.manage',
|
|
84
|
+
RETAIL_RETAILER_MANAGE = 'retail.retailer.manage',
|
|
85
|
+
|
|
86
|
+
// ====================================================
|
|
87
|
+
// LEND — créditos + cobranza
|
|
88
|
+
// ====================================================
|
|
89
|
+
LEND_CREDIT_CREATE = 'lend.credit.create',
|
|
90
|
+
LEND_CREDIT_LIST = 'lend.credit.list',
|
|
91
|
+
LEND_CREDIT_VIEW = 'lend.credit.view',
|
|
92
|
+
LEND_CREDIT_UPDATE = 'lend.credit.update',
|
|
93
|
+
LEND_CREDIT_LIQUIDATE = 'lend.credit.liquidate',
|
|
94
|
+
LEND_CREDIT_RESTRUCTURE = 'lend.credit.restructure',
|
|
95
|
+
LEND_PAYMENT_APPLY = 'lend.payment.apply',
|
|
96
|
+
LEND_PAYMENT_LIST = 'lend.payment.list',
|
|
97
|
+
LEND_PAYMENT_REVERSE = 'lend.payment.reverse',
|
|
98
|
+
LEND_INSTALLMENT_VIEW = 'lend.installment.view',
|
|
99
|
+
|
|
100
|
+
// ====================================================
|
|
101
|
+
// MDM — device management (subset especializado de LEND)
|
|
102
|
+
// ====================================================
|
|
103
|
+
MDM_DEVICE_ENROLL = 'mdm.device.enroll',
|
|
104
|
+
MDM_DEVICE_RELEASE = 'mdm.device.release',
|
|
105
|
+
MDM_DEVICE_ARCHIVE = 'mdm.device.archive',
|
|
106
|
+
MDM_DEVICE_DEACTIVATE = 'mdm.device.deactivate',
|
|
107
|
+
MDM_DEVICE_LOCK_MANUAL = 'mdm.device.lock.manual',
|
|
108
|
+
MDM_DEVICE_UNLOCK_MANUAL = 'mdm.device.unlock.manual',
|
|
109
|
+
MDM_DEVICE_PIN_UNLOCK = 'mdm.device.pin_unlock',
|
|
110
|
+
MDM_DEVICE_EXTEND_VALIDITY = 'mdm.device.extend_validity',
|
|
111
|
+
MDM_DEVICE_NOTIFY = 'mdm.device.notify',
|
|
112
|
+
MDM_DEVICE_STATUS_VIEW = 'mdm.device.status.view',
|
|
113
|
+
MDM_OPERATION_LOG_VIEW = 'mdm.operation_log.view',
|
|
114
|
+
MDM_TEST = 'mdm.test',
|
|
115
|
+
|
|
116
|
+
// ====================================================
|
|
117
|
+
// PAY — futuro FiadoPay (placeholder, no usado en MVP)
|
|
118
|
+
// ====================================================
|
|
119
|
+
PAY_TRANSACTION_VIEW = 'pay.transaction.view',
|
|
120
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Categorías del catálogo de permissions (componente 01).
|
|
3
|
+
* TD-RBAC-005: `AUDIT` category sin permissions `audit.*` asociadas — drift consciente.
|
|
4
|
+
*/
|
|
5
|
+
export enum PermissionCategory {
|
|
6
|
+
RBAC = 'rbac',
|
|
7
|
+
PLATFORM = 'platform',
|
|
8
|
+
TENANT = 'tenant',
|
|
9
|
+
RETAIL = 'retail',
|
|
10
|
+
LEND = 'lend',
|
|
11
|
+
MDM = 'mdm',
|
|
12
|
+
AUDIT = 'audit',
|
|
13
|
+
PAY = 'pay',
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// platformRbac — módulo del lambda platform-rbac-business (Fase 0 SureKeep).
|
|
2
|
+
//
|
|
3
|
+
// Coexiste con `Rbac` oficial cuando yhonhansen publique componente 01 — TD-RBAC-002
|
|
4
|
+
// del platform-rbac-business documenta la migración futura de los 4 símbolos cross-cutting
|
|
5
|
+
// (Permission, PermissionScope, AuthContext, RoleAssignmentInfo) de aquí a `rbac/`.
|
|
6
|
+
//
|
|
7
|
+
// En Fase 1.A los DTOs propios del rbac-business (CreateTenantRequest, AssignRoleRequest,
|
|
8
|
+
// EffectivePermissionsResponse, etc.) NO viven en este módulo todavía — se agregan en
|
|
9
|
+
// Fase 1.B cuando los managers que los consumen se implementen.
|
|
10
|
+
|
|
11
|
+
export { Permission } from './enums/Permission';
|
|
12
|
+
export { PermissionScope } from './enums/PermissionScope';
|
|
13
|
+
export { PermissionCategory } from './enums/PermissionCategory';
|
|
14
|
+
|
|
15
|
+
export type { AuthContext } from './dtos/AuthContext';
|
|
16
|
+
export type { RoleAssignmentInfo } from './dtos/RoleAssignmentInfo';
|
|
17
|
+
export type { PermissionMeta } from './dtos/PermissionMeta';
|
|
@@ -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,20 +0,0 @@
|
|
|
1
|
-
import { DeliveryChannelEnum } from '../../messaging/enums/DeliveryChannelEnum';
|
|
2
|
-
export declare class SendMessageRequest {
|
|
3
|
-
channelType: DeliveryChannelEnum;
|
|
4
|
-
messageType: string;
|
|
5
|
-
directoryId: string;
|
|
6
|
-
typeOfDirectory: string;
|
|
7
|
-
language: string;
|
|
8
|
-
country: string;
|
|
9
|
-
destination?: string;
|
|
10
|
-
var1?: string;
|
|
11
|
-
var2?: string;
|
|
12
|
-
var3?: string;
|
|
13
|
-
var4?: string;
|
|
14
|
-
var5?: string;
|
|
15
|
-
beneficiaryDirectoryId?: string;
|
|
16
|
-
beneficiaryTypeOfDirectoryId?: string;
|
|
17
|
-
options?: Record<string, unknown>;
|
|
18
|
-
referenceMessageId?: string;
|
|
19
|
-
transactionNumber?: string;
|
|
20
|
-
}
|
|
@@ -1,118 +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.SendMessageRequest = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const DeliveryChannelEnum_1 = require("../../messaging/enums/DeliveryChannelEnum");
|
|
16
|
-
class SendMessageRequest {
|
|
17
|
-
}
|
|
18
|
-
exports.SendMessageRequest = SendMessageRequest;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_transformer_1.Expose)(),
|
|
21
|
-
(0, class_validator_1.IsEnum)(DeliveryChannelEnum_1.DeliveryChannelEnum),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], SendMessageRequest.prototype, "channelType", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_transformer_1.Expose)(),
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], SendMessageRequest.prototype, "messageType", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
(0, class_validator_1.IsUUID)(),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], SendMessageRequest.prototype, "directoryId", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_transformer_1.Expose)(),
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], SendMessageRequest.prototype, "typeOfDirectory", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_transformer_1.Expose)(),
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], SendMessageRequest.prototype, "language", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_transformer_1.Expose)(),
|
|
49
|
-
(0, class_validator_1.IsString)(),
|
|
50
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], SendMessageRequest.prototype, "country", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, class_transformer_1.Expose)(),
|
|
55
|
-
(0, class_validator_1.IsOptional)(),
|
|
56
|
-
(0, class_validator_1.IsString)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], SendMessageRequest.prototype, "destination", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_transformer_1.Expose)(),
|
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
(0, class_validator_1.IsString)(),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], SendMessageRequest.prototype, "var1", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, class_transformer_1.Expose)(),
|
|
67
|
-
(0, class_validator_1.IsOptional)(),
|
|
68
|
-
(0, class_validator_1.IsString)(),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], SendMessageRequest.prototype, "var2", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, class_transformer_1.Expose)(),
|
|
73
|
-
(0, class_validator_1.IsOptional)(),
|
|
74
|
-
(0, class_validator_1.IsString)(),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], SendMessageRequest.prototype, "var3", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, class_transformer_1.Expose)(),
|
|
79
|
-
(0, class_validator_1.IsOptional)(),
|
|
80
|
-
(0, class_validator_1.IsString)(),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], SendMessageRequest.prototype, "var4", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, class_transformer_1.Expose)(),
|
|
85
|
-
(0, class_validator_1.IsOptional)(),
|
|
86
|
-
(0, class_validator_1.IsString)(),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], SendMessageRequest.prototype, "var5", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, class_transformer_1.Expose)(),
|
|
91
|
-
(0, class_validator_1.IsOptional)(),
|
|
92
|
-
(0, class_validator_1.IsUUID)(),
|
|
93
|
-
__metadata("design:type", String)
|
|
94
|
-
], SendMessageRequest.prototype, "beneficiaryDirectoryId", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, class_transformer_1.Expose)(),
|
|
97
|
-
(0, class_validator_1.IsOptional)(),
|
|
98
|
-
(0, class_validator_1.IsString)(),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], SendMessageRequest.prototype, "beneficiaryTypeOfDirectoryId", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, class_transformer_1.Expose)(),
|
|
103
|
-
(0, class_validator_1.IsOptional)(),
|
|
104
|
-
(0, class_validator_1.IsObject)(),
|
|
105
|
-
__metadata("design:type", Object)
|
|
106
|
-
], SendMessageRequest.prototype, "options", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, class_transformer_1.Expose)(),
|
|
109
|
-
(0, class_validator_1.IsOptional)(),
|
|
110
|
-
(0, class_validator_1.IsUUID)(),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], SendMessageRequest.prototype, "referenceMessageId", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, class_transformer_1.Expose)(),
|
|
115
|
-
(0, class_validator_1.IsOptional)(),
|
|
116
|
-
(0, class_validator_1.IsString)(),
|
|
117
|
-
__metadata("design:type", String)
|
|
118
|
-
], SendMessageRequest.prototype, "transactionNumber", void 0);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { PoolKind } from '../../rbac/enums/PoolKind';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Shape del `PoolConfigRow` expuesto al caller (BFF M18 / otros lambdas Fiado).
|
|
5
|
-
* Refleja la configuración de un Cognito User Pool registrado en la tabla
|
|
6
|
-
* `PoolConfigs_GT` del lambda `cognito-backoffice-connector`.
|
|
7
|
-
*/
|
|
8
|
-
export class PoolConfigResponse {
|
|
9
|
-
userPoolId!: string;
|
|
10
|
-
userPoolArn!: string;
|
|
11
|
-
region!: string;
|
|
12
|
-
poolKind!: PoolKind;
|
|
13
|
-
displayName!: string;
|
|
14
|
-
appClients!: Record<string, { clientId: string; clientName: string }>;
|
|
15
|
-
status!: 'active' | 'deprecated';
|
|
16
|
-
createdAt!: number;
|
|
17
|
-
updatedAt!: number;
|
|
18
|
-
}
|