@fiado/type-kit 3.63.0 → 3.65.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/benefitCenter/enums/BenefitPaymentErrorCodeEnum.d.ts +13 -1
- package/bin/benefitCenter/enums/BenefitPaymentErrorCodeEnum.js +12 -0
- package/bin/cognitoBackofficeConnector/dtos/SetUserPasswordRequest.d.ts +10 -0
- package/bin/cognitoBackofficeConnector/dtos/SetUserPasswordRequest.js +40 -0
- package/bin/cognitoBackofficeConnector/index.d.ts +1 -0
- package/bin/cognitoBackofficeConnector/index.js +1 -0
- package/package.json +31 -31
- package/src/benefitCenter/enums/BenefitPaymentErrorCodeEnum.ts +12 -0
- package/src/cognitoBackofficeConnector/dtos/SetUserPasswordRequest.ts +13 -0
- package/src/cognitoBackofficeConnector/index.ts +1 -0
|
@@ -13,5 +13,17 @@ export declare enum BenefitPaymentErrorCodeEnum {
|
|
|
13
13
|
PRODUCT_NOT_FOUND = "PRODUCT_NOT_FOUND",
|
|
14
14
|
PROVIDER_REJECTED = "PROVIDER_REJECTED",
|
|
15
15
|
PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT",
|
|
16
|
-
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS"
|
|
16
|
+
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
17
|
+
/** Referencia/teléfono inválido, inexistente o que no soporta el servicio. El usuario debe corregir el dato. */
|
|
18
|
+
INVALID_REFERENCE = "INVALID_REFERENCE",
|
|
19
|
+
/** Monto inválido o que no coincide con el requerido por la factura/servicio. El usuario debe corregir el monto. */
|
|
20
|
+
INVALID_AMOUNT = "INVALID_AMOUNT",
|
|
21
|
+
/** Transacción/folio ya aplicado por el proveedor. El usuario NO debe reintentar sin revisar su historial. */
|
|
22
|
+
DUPLICATE_TRANSACTION = "DUPLICATE_TRANSACTION",
|
|
23
|
+
/** Proveedor/carrier temporalmente no disponible (mantenimiento, conexión, saldo de la cuenta Fiado). Reintentar más tarde. */
|
|
24
|
+
SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE",
|
|
25
|
+
/** La referencia no tiene adeudos pendientes por pagar. */
|
|
26
|
+
NO_DEBT = "NO_DEBT",
|
|
27
|
+
/** Error de configuración/integración nuestro con el proveedor (firma, IP, credenciales). Alerta operativa; el usuario solo puede reintentar más tarde. */
|
|
28
|
+
INTEGRATION_ERROR = "INTEGRATION_ERROR"
|
|
17
29
|
}
|
|
@@ -18,4 +18,16 @@ var BenefitPaymentErrorCodeEnum;
|
|
|
18
18
|
BenefitPaymentErrorCodeEnum["PROVIDER_REJECTED"] = "PROVIDER_REJECTED";
|
|
19
19
|
BenefitPaymentErrorCodeEnum["PROVIDER_TIMEOUT"] = "PROVIDER_TIMEOUT";
|
|
20
20
|
BenefitPaymentErrorCodeEnum["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
|
|
21
|
+
/** Referencia/teléfono inválido, inexistente o que no soporta el servicio. El usuario debe corregir el dato. */
|
|
22
|
+
BenefitPaymentErrorCodeEnum["INVALID_REFERENCE"] = "INVALID_REFERENCE";
|
|
23
|
+
/** Monto inválido o que no coincide con el requerido por la factura/servicio. El usuario debe corregir el monto. */
|
|
24
|
+
BenefitPaymentErrorCodeEnum["INVALID_AMOUNT"] = "INVALID_AMOUNT";
|
|
25
|
+
/** Transacción/folio ya aplicado por el proveedor. El usuario NO debe reintentar sin revisar su historial. */
|
|
26
|
+
BenefitPaymentErrorCodeEnum["DUPLICATE_TRANSACTION"] = "DUPLICATE_TRANSACTION";
|
|
27
|
+
/** Proveedor/carrier temporalmente no disponible (mantenimiento, conexión, saldo de la cuenta Fiado). Reintentar más tarde. */
|
|
28
|
+
BenefitPaymentErrorCodeEnum["SERVICE_UNAVAILABLE"] = "SERVICE_UNAVAILABLE";
|
|
29
|
+
/** La referencia no tiene adeudos pendientes por pagar. */
|
|
30
|
+
BenefitPaymentErrorCodeEnum["NO_DEBT"] = "NO_DEBT";
|
|
31
|
+
/** Error de configuración/integración nuestro con el proveedor (firma, IP, credenciales). Alerta operativa; el usuario solo puede reintentar más tarde. */
|
|
32
|
+
BenefitPaymentErrorCodeEnum["INTEGRATION_ERROR"] = "INTEGRATION_ERROR";
|
|
21
33
|
})(BenefitPaymentErrorCodeEnum || (exports.BenefitPaymentErrorCodeEnum = BenefitPaymentErrorCodeEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request para reset de password admin con password temporal (el `cognitoSub`
|
|
3
|
+
* viaja por path param del endpoint). El `region` se mantiene por consistencia
|
|
4
|
+
* con `UserActionRequest`.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SetUserPasswordRequest {
|
|
7
|
+
userPoolId: string;
|
|
8
|
+
region: string;
|
|
9
|
+
temporaryPassword: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.SetUserPasswordRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/**
|
|
16
|
+
* Request para reset de password admin con password temporal (el `cognitoSub`
|
|
17
|
+
* viaja por path param del endpoint). El `region` se mantiene por consistencia
|
|
18
|
+
* con `UserActionRequest`.
|
|
19
|
+
*/
|
|
20
|
+
class SetUserPasswordRequest {
|
|
21
|
+
}
|
|
22
|
+
exports.SetUserPasswordRequest = SetUserPasswordRequest;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], SetUserPasswordRequest.prototype, "userPoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], SetUserPasswordRequest.prototype, "region", 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
|
+
], SetUserPasswordRequest.prototype, "temporaryPassword", void 0);
|
|
@@ -14,6 +14,7 @@ export * from './dtos/CreateUserRequest';
|
|
|
14
14
|
export * from './dtos/CreateUserResponse';
|
|
15
15
|
export * from './dtos/UpdateUserAttributesRequest';
|
|
16
16
|
export * from './dtos/UserActionRequest';
|
|
17
|
+
export * from './dtos/SetUserPasswordRequest';
|
|
17
18
|
export * from './dtos/DeleteUserRequest';
|
|
18
19
|
export * from './dtos/ResendInvitationRequest';
|
|
19
20
|
export * from './dtos/UserDetailResponse';
|
|
@@ -30,6 +30,7 @@ __exportStar(require("./dtos/CreateUserRequest"), exports);
|
|
|
30
30
|
__exportStar(require("./dtos/CreateUserResponse"), exports);
|
|
31
31
|
__exportStar(require("./dtos/UpdateUserAttributesRequest"), exports);
|
|
32
32
|
__exportStar(require("./dtos/UserActionRequest"), exports);
|
|
33
|
+
__exportStar(require("./dtos/SetUserPasswordRequest"), exports);
|
|
33
34
|
__exportStar(require("./dtos/DeleteUserRequest"), exports);
|
|
34
35
|
__exportStar(require("./dtos/ResendInvitationRequest"), exports);
|
|
35
36
|
__exportStar(require("./dtos/UserDetailResponse"), exports);
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fiado/type-kit",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "bin/index.js",
|
|
6
|
-
"types": "bin/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "jest",
|
|
9
|
-
"build": "tsc",
|
|
10
|
-
"prepublishOnly": "npm run build"
|
|
11
|
-
},
|
|
12
|
-
"keywords": [],
|
|
13
|
-
"author": "Fiado Inc",
|
|
14
|
-
"license": "ISC",
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@types/jest": "^30.0.0",
|
|
17
|
-
"@types/node": "^20.11.20",
|
|
18
|
-
"class-transformer": "^0.5.1",
|
|
19
|
-
"class-validator": "^0.14.2",
|
|
20
|
-
"install": "^0.13.0",
|
|
21
|
-
"jest": "^30.4.2",
|
|
22
|
-
"reflect-metadata": "^0.2.2",
|
|
23
|
-
"ts-jest": "^29.4.11",
|
|
24
|
-
"typescript": "^5.3.3"
|
|
25
|
-
},
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"class-transformer": "^0.5.1",
|
|
28
|
-
"class-validator": "^0.14.2",
|
|
29
|
-
"reflect-metadata": "^0.2.2"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fiado/type-kit",
|
|
3
|
+
"version": "3.65.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "bin/index.js",
|
|
6
|
+
"types": "bin/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "jest",
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"prepublishOnly": "npm run build"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [],
|
|
13
|
+
"author": "Fiado Inc",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/jest": "^30.0.0",
|
|
17
|
+
"@types/node": "^20.11.20",
|
|
18
|
+
"class-transformer": "^0.5.1",
|
|
19
|
+
"class-validator": "^0.14.2",
|
|
20
|
+
"install": "^0.13.0",
|
|
21
|
+
"jest": "^30.4.2",
|
|
22
|
+
"reflect-metadata": "^0.2.2",
|
|
23
|
+
"ts-jest": "^29.4.11",
|
|
24
|
+
"typescript": "^5.3.3"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"class-transformer": "^0.5.1",
|
|
28
|
+
"class-validator": "^0.14.2",
|
|
29
|
+
"reflect-metadata": "^0.2.2"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -14,4 +14,16 @@ export enum BenefitPaymentErrorCodeEnum {
|
|
|
14
14
|
PROVIDER_REJECTED = "PROVIDER_REJECTED",
|
|
15
15
|
PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT",
|
|
16
16
|
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
17
|
+
/** Referencia/teléfono inválido, inexistente o que no soporta el servicio. El usuario debe corregir el dato. */
|
|
18
|
+
INVALID_REFERENCE = "INVALID_REFERENCE",
|
|
19
|
+
/** Monto inválido o que no coincide con el requerido por la factura/servicio. El usuario debe corregir el monto. */
|
|
20
|
+
INVALID_AMOUNT = "INVALID_AMOUNT",
|
|
21
|
+
/** Transacción/folio ya aplicado por el proveedor. El usuario NO debe reintentar sin revisar su historial. */
|
|
22
|
+
DUPLICATE_TRANSACTION = "DUPLICATE_TRANSACTION",
|
|
23
|
+
/** Proveedor/carrier temporalmente no disponible (mantenimiento, conexión, saldo de la cuenta Fiado). Reintentar más tarde. */
|
|
24
|
+
SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE",
|
|
25
|
+
/** La referencia no tiene adeudos pendientes por pagar. */
|
|
26
|
+
NO_DEBT = "NO_DEBT",
|
|
27
|
+
/** Error de configuración/integración nuestro con el proveedor (firma, IP, credenciales). Alerta operativa; el usuario solo puede reintentar más tarde. */
|
|
28
|
+
INTEGRATION_ERROR = "INTEGRATION_ERROR",
|
|
17
29
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsNotEmpty, IsString } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Request para reset de password admin con password temporal (el `cognitoSub`
|
|
6
|
+
* viaja por path param del endpoint). El `region` se mantiene por consistencia
|
|
7
|
+
* con `UserActionRequest`.
|
|
8
|
+
*/
|
|
9
|
+
export class SetUserPasswordRequest {
|
|
10
|
+
@Expose() @IsString() @IsNotEmpty() userPoolId!: string;
|
|
11
|
+
@Expose() @IsString() @IsNotEmpty() region!: string;
|
|
12
|
+
@Expose() @IsString() @IsNotEmpty() temporaryPassword!: string;
|
|
13
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from './dtos/CreateUserRequest';
|
|
|
14
14
|
export * from './dtos/CreateUserResponse';
|
|
15
15
|
export * from './dtos/UpdateUserAttributesRequest';
|
|
16
16
|
export * from './dtos/UserActionRequest';
|
|
17
|
+
export * from './dtos/SetUserPasswordRequest';
|
|
17
18
|
export * from './dtos/DeleteUserRequest';
|
|
18
19
|
export * from './dtos/ResendInvitationRequest';
|
|
19
20
|
export * from './dtos/UserDetailResponse';
|