@fiado/type-kit 3.95.0 → 3.97.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/networkConnector/dtos/UploadProfilePhotoRequest.d.ts +7 -0
- package/bin/networkConnector/dtos/UploadProfilePhotoRequest.js +29 -0
- package/bin/networkConnector/dtos/UploadProfilePhotoResponse.d.ts +4 -0
- package/bin/networkConnector/dtos/UploadProfilePhotoResponse.js +2 -0
- package/bin/networkConnector/index.d.ts +2 -0
- package/bin/networkConnector/index.js +2 -0
- package/bin/walletFunding/enums/FundingWebhookTypeEnum.d.ts +13 -0
- package/bin/walletFunding/enums/FundingWebhookTypeEnum.js +17 -0
- package/bin/walletFunding/enums/WalletFundingPaymentStatusEnum.d.ts +9 -1
- package/bin/walletFunding/enums/WalletFundingPaymentStatusEnum.js +8 -0
- package/bin/walletFunding/enums/WalletFundingReferenceStatusEnum.d.ts +9 -1
- package/bin/walletFunding/enums/WalletFundingReferenceStatusEnum.js +8 -0
- package/bin/walletFunding/enums/index.d.ts +1 -0
- package/bin/walletFunding/enums/index.js +1 -0
- package/package.json +1 -1
- package/src/networkConnector/dtos/UploadProfilePhotoRequest.ts +11 -0
- package/src/networkConnector/dtos/UploadProfilePhotoResponse.ts +4 -0
- package/src/networkConnector/index.ts +2 -0
- package/src/walletFunding/enums/FundingWebhookTypeEnum.ts +13 -0
- package/src/walletFunding/enums/WalletFundingPaymentStatusEnum.ts +8 -0
- package/src/walletFunding/enums/WalletFundingReferenceStatusEnum.ts +8 -0
- package/src/walletFunding/enums/index.ts +1 -0
|
@@ -0,0 +1,29 @@
|
|
|
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.UploadProfilePhotoRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const PhotoContentType_1 = require("../enums/PhotoContentType");
|
|
16
|
+
class UploadProfilePhotoRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.UploadProfilePhotoRequest = UploadProfilePhotoRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UploadProfilePhotoRequest.prototype, "photoBase64", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsEnum)(PhotoContentType_1.PhotoContentType),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UploadProfilePhotoRequest.prototype, "mimeType", void 0);
|
|
@@ -21,3 +21,5 @@ export * from './dtos/ListLeadGroupsResponse';
|
|
|
21
21
|
export * from './dtos/GetPhotoUploadUrlRequest';
|
|
22
22
|
export * from './dtos/PhotoUploadUrlResponse';
|
|
23
23
|
export * from './dtos/DeletePhotoResponse';
|
|
24
|
+
export * from './dtos/UploadProfilePhotoRequest';
|
|
25
|
+
export * from './dtos/UploadProfilePhotoResponse';
|
|
@@ -42,3 +42,5 @@ __exportStar(require("./dtos/ListLeadGroupsResponse"), exports);
|
|
|
42
42
|
__exportStar(require("./dtos/GetPhotoUploadUrlRequest"), exports);
|
|
43
43
|
__exportStar(require("./dtos/PhotoUploadUrlResponse"), exports);
|
|
44
44
|
__exportStar(require("./dtos/DeletePhotoResponse"), exports);
|
|
45
|
+
__exportStar(require("./dtos/UploadProfilePhotoRequest"), exports);
|
|
46
|
+
__exportStar(require("./dtos/UploadProfilePhotoResponse"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipo de webhook entrante del provider de fondeo cash (Equality, OpenPay, …).
|
|
3
|
+
* Provider-agnóstico: cada connector mapea los strings nativos del provider
|
|
4
|
+
* al enum estándar Fiado.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum FundingWebhookTypeEnum {
|
|
7
|
+
/** Consulta del provider antes de cobrar (Equality "consult", OpenPay "verify", …). */
|
|
8
|
+
CONSULT = "CONSULT",
|
|
9
|
+
/** Pago confirmado del provider tras cobrar en caja. */
|
|
10
|
+
PAYMENT = "PAYMENT",
|
|
11
|
+
/** Reverso/anulación del provider. */
|
|
12
|
+
REVERSE = "REVERSE"
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FundingWebhookTypeEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Tipo de webhook entrante del provider de fondeo cash (Equality, OpenPay, …).
|
|
6
|
+
* Provider-agnóstico: cada connector mapea los strings nativos del provider
|
|
7
|
+
* al enum estándar Fiado.
|
|
8
|
+
*/
|
|
9
|
+
var FundingWebhookTypeEnum;
|
|
10
|
+
(function (FundingWebhookTypeEnum) {
|
|
11
|
+
/** Consulta del provider antes de cobrar (Equality "consult", OpenPay "verify", …). */
|
|
12
|
+
FundingWebhookTypeEnum["CONSULT"] = "CONSULT";
|
|
13
|
+
/** Pago confirmado del provider tras cobrar en caja. */
|
|
14
|
+
FundingWebhookTypeEnum["PAYMENT"] = "PAYMENT";
|
|
15
|
+
/** Reverso/anulación del provider. */
|
|
16
|
+
FundingWebhookTypeEnum["REVERSE"] = "REVERSE";
|
|
17
|
+
})(FundingWebhookTypeEnum || (exports.FundingWebhookTypeEnum = FundingWebhookTypeEnum = {}));
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export declare enum WalletFundingPaymentStatusEnum {
|
|
2
|
+
/** Webhook consult procesado — pre-check OK, esperando webhook payment. */
|
|
2
3
|
CONSULTED = "CONSULTED",
|
|
4
|
+
/** Pago aplicado al wallet via processor.credit. */
|
|
3
5
|
APPLIED = "APPLIED",
|
|
6
|
+
/** Pago revertido via processor.reverse. */
|
|
4
7
|
REVERSED = "REVERSED",
|
|
5
|
-
|
|
8
|
+
/** Cliente ya gastó el dinero — ops resuelve manualmente. */
|
|
9
|
+
QUEUED_FOR_REFUND = "QUEUED_FOR_REFUND",
|
|
10
|
+
/** Webhook rechazado en pre-check (processor rechaza consult/credit). */
|
|
11
|
+
REJECTED = "REJECTED",
|
|
12
|
+
/** Excepción no controlada en el handler. */
|
|
13
|
+
FAILED = "FAILED"
|
|
6
14
|
}
|
|
@@ -3,8 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WalletFundingPaymentStatusEnum = void 0;
|
|
4
4
|
var WalletFundingPaymentStatusEnum;
|
|
5
5
|
(function (WalletFundingPaymentStatusEnum) {
|
|
6
|
+
/** Webhook consult procesado — pre-check OK, esperando webhook payment. */
|
|
6
7
|
WalletFundingPaymentStatusEnum["CONSULTED"] = "CONSULTED";
|
|
8
|
+
/** Pago aplicado al wallet via processor.credit. */
|
|
7
9
|
WalletFundingPaymentStatusEnum["APPLIED"] = "APPLIED";
|
|
10
|
+
/** Pago revertido via processor.reverse. */
|
|
8
11
|
WalletFundingPaymentStatusEnum["REVERSED"] = "REVERSED";
|
|
12
|
+
/** Cliente ya gastó el dinero — ops resuelve manualmente. */
|
|
9
13
|
WalletFundingPaymentStatusEnum["QUEUED_FOR_REFUND"] = "QUEUED_FOR_REFUND";
|
|
14
|
+
/** Webhook rechazado en pre-check (processor rechaza consult/credit). */
|
|
15
|
+
WalletFundingPaymentStatusEnum["REJECTED"] = "REJECTED";
|
|
16
|
+
/** Excepción no controlada en el handler. */
|
|
17
|
+
WalletFundingPaymentStatusEnum["FAILED"] = "FAILED";
|
|
10
18
|
})(WalletFundingPaymentStatusEnum || (exports.WalletFundingPaymentStatusEnum = WalletFundingPaymentStatusEnum = {}));
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export declare enum WalletFundingReferenceStatusEnum {
|
|
2
|
+
/** Persistido al inicio del create, antes de llamar al provider. */
|
|
3
|
+
PENDING = "PENDING",
|
|
4
|
+
/** Referencia generada por el provider, esperando pago en caja. */
|
|
2
5
|
ACTIVE = "ACTIVE",
|
|
6
|
+
/** Cliente pagó la referencia (solo FIXED — para OPEN la ref sigue ACTIVE). */
|
|
3
7
|
PAID = "PAID",
|
|
8
|
+
/** Vencida sin pago (cron `ExpireReferences`). */
|
|
4
9
|
EXPIRED = "EXPIRED",
|
|
5
|
-
|
|
10
|
+
/** Cancelada por el usuario u ops antes de pagar. */
|
|
11
|
+
CANCELLED = "CANCELLED",
|
|
12
|
+
/** El provider rechazó/falló la creación (registro de incidente). */
|
|
13
|
+
FAILED = "FAILED"
|
|
6
14
|
}
|
|
@@ -3,8 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WalletFundingReferenceStatusEnum = void 0;
|
|
4
4
|
var WalletFundingReferenceStatusEnum;
|
|
5
5
|
(function (WalletFundingReferenceStatusEnum) {
|
|
6
|
+
/** Persistido al inicio del create, antes de llamar al provider. */
|
|
7
|
+
WalletFundingReferenceStatusEnum["PENDING"] = "PENDING";
|
|
8
|
+
/** Referencia generada por el provider, esperando pago en caja. */
|
|
6
9
|
WalletFundingReferenceStatusEnum["ACTIVE"] = "ACTIVE";
|
|
10
|
+
/** Cliente pagó la referencia (solo FIXED — para OPEN la ref sigue ACTIVE). */
|
|
7
11
|
WalletFundingReferenceStatusEnum["PAID"] = "PAID";
|
|
12
|
+
/** Vencida sin pago (cron `ExpireReferences`). */
|
|
8
13
|
WalletFundingReferenceStatusEnum["EXPIRED"] = "EXPIRED";
|
|
14
|
+
/** Cancelada por el usuario u ops antes de pagar. */
|
|
9
15
|
WalletFundingReferenceStatusEnum["CANCELLED"] = "CANCELLED";
|
|
16
|
+
/** El provider rechazó/falló la creación (registro de incidente). */
|
|
17
|
+
WalletFundingReferenceStatusEnum["FAILED"] = "FAILED";
|
|
10
18
|
})(WalletFundingReferenceStatusEnum || (exports.WalletFundingReferenceStatusEnum = WalletFundingReferenceStatusEnum = {}));
|
|
@@ -21,3 +21,4 @@ __exportStar(require("./WalletFundingPaymentStatusEnum"), exports);
|
|
|
21
21
|
__exportStar(require("./WalletFundingErrorCodeEnum"), exports);
|
|
22
22
|
__exportStar(require("./WalletFundingRefundReasonEnum"), exports);
|
|
23
23
|
__exportStar(require("./PaymentCodeTypeEnum"), exports);
|
|
24
|
+
__exportStar(require("./FundingWebhookTypeEnum"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsString, IsNotEmpty, IsEnum } from 'class-validator';
|
|
3
|
+
import { PhotoContentType } from '../enums/PhotoContentType';
|
|
4
|
+
|
|
5
|
+
export class UploadProfilePhotoRequest {
|
|
6
|
+
/** Base64 puro (sin prefijo data:image/...) */
|
|
7
|
+
@Expose() @IsString() @IsNotEmpty() photoBase64!: string;
|
|
8
|
+
|
|
9
|
+
/** MIME type de la imagen */
|
|
10
|
+
@Expose() @IsEnum(PhotoContentType) mimeType!: PhotoContentType;
|
|
11
|
+
}
|
|
@@ -30,3 +30,5 @@ export * from './dtos/ListLeadGroupsResponse';
|
|
|
30
30
|
export * from './dtos/GetPhotoUploadUrlRequest';
|
|
31
31
|
export * from './dtos/PhotoUploadUrlResponse';
|
|
32
32
|
export * from './dtos/DeletePhotoResponse';
|
|
33
|
+
export * from './dtos/UploadProfilePhotoRequest';
|
|
34
|
+
export * from './dtos/UploadProfilePhotoResponse';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipo de webhook entrante del provider de fondeo cash (Equality, OpenPay, …).
|
|
3
|
+
* Provider-agnóstico: cada connector mapea los strings nativos del provider
|
|
4
|
+
* al enum estándar Fiado.
|
|
5
|
+
*/
|
|
6
|
+
export enum FundingWebhookTypeEnum {
|
|
7
|
+
/** Consulta del provider antes de cobrar (Equality "consult", OpenPay "verify", …). */
|
|
8
|
+
CONSULT = "CONSULT",
|
|
9
|
+
/** Pago confirmado del provider tras cobrar en caja. */
|
|
10
|
+
PAYMENT = "PAYMENT",
|
|
11
|
+
/** Reverso/anulación del provider. */
|
|
12
|
+
REVERSE = "REVERSE",
|
|
13
|
+
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export enum WalletFundingPaymentStatusEnum {
|
|
2
|
+
/** Webhook consult procesado — pre-check OK, esperando webhook payment. */
|
|
2
3
|
CONSULTED = "CONSULTED",
|
|
4
|
+
/** Pago aplicado al wallet via processor.credit. */
|
|
3
5
|
APPLIED = "APPLIED",
|
|
6
|
+
/** Pago revertido via processor.reverse. */
|
|
4
7
|
REVERSED = "REVERSED",
|
|
8
|
+
/** Cliente ya gastó el dinero — ops resuelve manualmente. */
|
|
5
9
|
QUEUED_FOR_REFUND = "QUEUED_FOR_REFUND",
|
|
10
|
+
/** Webhook rechazado en pre-check (processor rechaza consult/credit). */
|
|
11
|
+
REJECTED = "REJECTED",
|
|
12
|
+
/** Excepción no controlada en el handler. */
|
|
13
|
+
FAILED = "FAILED",
|
|
6
14
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export enum WalletFundingReferenceStatusEnum {
|
|
2
|
+
/** Persistido al inicio del create, antes de llamar al provider. */
|
|
3
|
+
PENDING = "PENDING",
|
|
4
|
+
/** Referencia generada por el provider, esperando pago en caja. */
|
|
2
5
|
ACTIVE = "ACTIVE",
|
|
6
|
+
/** Cliente pagó la referencia (solo FIXED — para OPEN la ref sigue ACTIVE). */
|
|
3
7
|
PAID = "PAID",
|
|
8
|
+
/** Vencida sin pago (cron `ExpireReferences`). */
|
|
4
9
|
EXPIRED = "EXPIRED",
|
|
10
|
+
/** Cancelada por el usuario u ops antes de pagar. */
|
|
5
11
|
CANCELLED = "CANCELLED",
|
|
12
|
+
/** El provider rechazó/falló la creación (registro de incidente). */
|
|
13
|
+
FAILED = "FAILED",
|
|
6
14
|
}
|