@fiado/type-kit 3.102.0 → 3.104.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/LeadResponse.d.ts +5 -0
- package/bin/networkConnector/dtos/SaveLeadRequest.d.ts +5 -0
- package/bin/networkConnector/dtos/SaveLeadRequest.js +30 -0
- package/bin/networkConnector/dtos/UpdateLeadRequest.d.ts +5 -0
- package/bin/networkConnector/dtos/UpdateLeadRequest.js +30 -0
- package/bin/walletFunding/dtos/CreditWalletFundingRequest.d.ts +10 -0
- package/bin/walletFunding/dtos/CreditWalletFundingRequest.js +6 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingRequest.d.ts +2 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingRequest.js +6 -0
- package/package.json +1 -1
- package/src/networkConnector/dtos/LeadResponse.ts +5 -0
- package/src/networkConnector/dtos/SaveLeadRequest.ts +5 -0
- package/src/networkConnector/dtos/UpdateLeadRequest.ts +5 -0
- package/src/walletFunding/dtos/CreditWalletFundingRequest.ts +11 -1
- package/src/walletFunding/dtos/ValidateWalletFundingRequest.ts +3 -1
|
@@ -9,6 +9,11 @@ export interface LeadResponse {
|
|
|
9
9
|
company?: string;
|
|
10
10
|
notes?: string;
|
|
11
11
|
source: LeadSourceEnum;
|
|
12
|
+
companyEmail?: string;
|
|
13
|
+
companyAddress?: string;
|
|
14
|
+
facebook?: string;
|
|
15
|
+
instagram?: string;
|
|
16
|
+
jobTitle?: string;
|
|
12
17
|
status: LeadStatusEnum;
|
|
13
18
|
groupId?: string;
|
|
14
19
|
createdAt: number;
|
|
@@ -55,3 +55,33 @@ __decorate([
|
|
|
55
55
|
(0, class_validator_1.IsEnum)(LeadSourceEnum_1.LeadSourceEnum),
|
|
56
56
|
__metadata("design:type", String)
|
|
57
57
|
], SaveLeadRequest.prototype, "source", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], SaveLeadRequest.prototype, "companyEmail", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], SaveLeadRequest.prototype, "companyAddress", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], SaveLeadRequest.prototype, "facebook", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsString)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], SaveLeadRequest.prototype, "instagram", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.IsString)(),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], SaveLeadRequest.prototype, "jobTitle", void 0);
|
|
@@ -55,3 +55,33 @@ __decorate([
|
|
|
55
55
|
(0, class_validator_1.IsEnum)(LeadStatusEnum_1.LeadStatusEnum),
|
|
56
56
|
__metadata("design:type", String)
|
|
57
57
|
], UpdateLeadRequest.prototype, "status", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], UpdateLeadRequest.prototype, "companyEmail", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
(0, class_validator_1.IsOptional)(),
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], UpdateLeadRequest.prototype, "companyAddress", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], UpdateLeadRequest.prototype, "facebook", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsString)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], UpdateLeadRequest.prototype, "instagram", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.IsString)(),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], UpdateLeadRequest.prototype, "jobTitle", void 0);
|
|
@@ -7,4 +7,14 @@ export declare class CreditWalletFundingRequest {
|
|
|
7
7
|
providerReference: string;
|
|
8
8
|
providerTxId: string;
|
|
9
9
|
paidAt: string;
|
|
10
|
+
/**
|
|
11
|
+
* Nombre legible del centro de pago donde el cliente deposito (ej. "Farmacias del
|
|
12
|
+
* Ahorro", "Oxxo", "7-Eleven"). Lo usa el processor para los campos visibles al
|
|
13
|
+
* usuario: sourceName del producto en la Transaction (movimiento en la app),
|
|
14
|
+
* description del ticket y `{{center}}` en la notificacion push.
|
|
15
|
+
*
|
|
16
|
+
* Opcional para compat con callers viejos (caen al providerName, que es el slug
|
|
17
|
+
* tecnico — e.g. "equality" — y se ve feo en UI).
|
|
18
|
+
*/
|
|
19
|
+
center?: string;
|
|
10
20
|
}
|
|
@@ -53,3 +53,9 @@ __decorate([
|
|
|
53
53
|
(0, class_validator_1.IsDateString)(),
|
|
54
54
|
__metadata("design:type", String)
|
|
55
55
|
], CreditWalletFundingRequest.prototype, "paidAt", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.MaxLength)(64),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CreditWalletFundingRequest.prototype, "center", void 0);
|
|
@@ -49,3 +49,9 @@ __decorate([
|
|
|
49
49
|
(0, class_validator_1.MaxLength)(64),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], ValidateWalletFundingRequest.prototype, "providerTxId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_1.MaxLength)(64),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], ValidateWalletFundingRequest.prototype, "center", void 0);
|
package/package.json
CHANGED
|
@@ -10,6 +10,11 @@ export interface LeadResponse {
|
|
|
10
10
|
company?: string;
|
|
11
11
|
notes?: string;
|
|
12
12
|
source: LeadSourceEnum;
|
|
13
|
+
companyEmail?: string;
|
|
14
|
+
companyAddress?: string;
|
|
15
|
+
facebook?: string;
|
|
16
|
+
instagram?: string;
|
|
17
|
+
jobTitle?: string;
|
|
13
18
|
status: LeadStatusEnum;
|
|
14
19
|
groupId?: string;
|
|
15
20
|
createdAt: number;
|
|
@@ -9,4 +9,9 @@ export class SaveLeadRequest {
|
|
|
9
9
|
@Expose() @IsOptional() @IsString() @MaxLength(200) company?: string;
|
|
10
10
|
@Expose() @IsOptional() @IsString() @MaxLength(500) notes?: string;
|
|
11
11
|
@Expose() @IsOptional() @IsEnum(LeadSourceEnum) source?: LeadSourceEnum;
|
|
12
|
+
@Expose() @IsOptional() @IsString() companyEmail?: string;
|
|
13
|
+
@Expose() @IsOptional() @IsString() companyAddress?: string;
|
|
14
|
+
@Expose() @IsOptional() @IsString() facebook?: string;
|
|
15
|
+
@Expose() @IsOptional() @IsString() instagram?: string;
|
|
16
|
+
@Expose() @IsOptional() @IsString() jobTitle?: string;
|
|
12
17
|
}
|
|
@@ -9,4 +9,9 @@ export class UpdateLeadRequest {
|
|
|
9
9
|
@Expose() @IsOptional() @IsString() @MaxLength(200) company?: string;
|
|
10
10
|
@Expose() @IsOptional() @IsString() @MaxLength(500) notes?: string;
|
|
11
11
|
@Expose() @IsOptional() @IsEnum(LeadStatusEnum) status?: LeadStatusEnum;
|
|
12
|
+
@Expose() @IsOptional() @IsString() companyEmail?: string;
|
|
13
|
+
@Expose() @IsOptional() @IsString() companyAddress?: string;
|
|
14
|
+
@Expose() @IsOptional() @IsString() facebook?: string;
|
|
15
|
+
@Expose() @IsOptional() @IsString() instagram?: string;
|
|
16
|
+
@Expose() @IsOptional() @IsString() jobTitle?: string;
|
|
12
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsString, IsNumber, IsPositive, Length, IsDateString, MaxLength } from "class-validator";
|
|
1
|
+
import { IsString, IsNumber, IsPositive, Length, IsDateString, MaxLength, IsOptional } from "class-validator";
|
|
2
2
|
|
|
3
3
|
export class CreditWalletFundingRequest {
|
|
4
4
|
@IsString() @MaxLength(64) directoryId!: string;
|
|
@@ -9,4 +9,14 @@ export class CreditWalletFundingRequest {
|
|
|
9
9
|
@IsString() @MaxLength(128) providerReference!: string;
|
|
10
10
|
@IsString() @MaxLength(64) providerTxId!: string;
|
|
11
11
|
@IsDateString() paidAt!: string;
|
|
12
|
+
/**
|
|
13
|
+
* Nombre legible del centro de pago donde el cliente deposito (ej. "Farmacias del
|
|
14
|
+
* Ahorro", "Oxxo", "7-Eleven"). Lo usa el processor para los campos visibles al
|
|
15
|
+
* usuario: sourceName del producto en la Transaction (movimiento en la app),
|
|
16
|
+
* description del ticket y `{{center}}` en la notificacion push.
|
|
17
|
+
*
|
|
18
|
+
* Opcional para compat con callers viejos (caen al providerName, que es el slug
|
|
19
|
+
* tecnico — e.g. "equality" — y se ve feo en UI).
|
|
20
|
+
*/
|
|
21
|
+
@IsOptional() @IsString() @MaxLength(64) center?: string;
|
|
12
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsString, IsNumber, IsPositive, Length, MaxLength } from "class-validator";
|
|
1
|
+
import { IsString, IsNumber, IsPositive, Length, MaxLength, IsOptional } from "class-validator";
|
|
2
2
|
|
|
3
3
|
export class ValidateWalletFundingRequest {
|
|
4
4
|
@IsString() @MaxLength(64) directoryId!: string;
|
|
@@ -8,4 +8,6 @@ export class ValidateWalletFundingRequest {
|
|
|
8
8
|
@IsString() @MaxLength(32) providerName!: string;
|
|
9
9
|
@IsString() @MaxLength(128) providerReference!: string;
|
|
10
10
|
@IsString() @MaxLength(64) providerTxId!: string;
|
|
11
|
+
/** Nombre legible del centro de pago (paridad con CreditWalletFundingRequest). */
|
|
12
|
+
@IsOptional() @IsString() @MaxLength(64) center?: string;
|
|
11
13
|
}
|