@fiado/type-kit 3.87.0 → 3.88.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/index.d.ts +1 -0
- package/bin/index.js +4 -1
- package/bin/networkConnector/dtos/AssignLeadToGroupRequest.d.ts +3 -0
- package/bin/{credit/dtos/internal/DocumentSignRequest.js → networkConnector/dtos/AssignLeadToGroupRequest.js} +6 -5
- package/bin/networkConnector/dtos/CreateLeadGroupRequest.d.ts +5 -0
- package/bin/{credit/dtos/EarlyPaymentRequest.js → networkConnector/dtos/CreateLeadGroupRequest.js} +17 -18
- package/bin/networkConnector/dtos/CreateProfileRequest.d.ts +12 -0
- package/bin/{cognitoConnector/dtos/SignUpBackofficeRequest.js → networkConnector/dtos/CreateProfileRequest.js} +44 -33
- package/bin/networkConnector/dtos/DeletePhotoResponse.d.ts +4 -0
- package/bin/networkConnector/dtos/DeleteProfileResponse.d.ts +4 -0
- package/bin/networkConnector/dtos/GetPhotoUploadUrlRequest.d.ts +5 -0
- package/bin/{credit/dtos/CreditRequestCreate.js → networkConnector/dtos/GetPhotoUploadUrlRequest.js} +11 -8
- package/bin/networkConnector/dtos/LeadGroupResponse.d.ts +8 -0
- package/bin/networkConnector/dtos/LeadGroupResponse.js +2 -0
- package/bin/networkConnector/dtos/LeadResponse.d.ts +16 -0
- package/bin/networkConnector/dtos/LeadResponse.js +2 -0
- package/bin/networkConnector/dtos/ListLeadGroupsResponse.d.ts +5 -0
- package/bin/networkConnector/dtos/ListLeadGroupsResponse.js +2 -0
- package/bin/networkConnector/dtos/ListLeadsResponse.d.ts +5 -0
- package/bin/networkConnector/dtos/ListLeadsResponse.js +2 -0
- package/bin/networkConnector/dtos/ListProfilesResponse.d.ts +5 -0
- package/bin/networkConnector/dtos/ListProfilesResponse.js +2 -0
- package/bin/networkConnector/dtos/PhotoUploadUrlResponse.d.ts +5 -0
- package/bin/networkConnector/dtos/PhotoUploadUrlResponse.js +2 -0
- package/bin/networkConnector/dtos/ProfileResponse.d.ts +18 -0
- package/bin/networkConnector/dtos/ProfileResponse.js +2 -0
- package/bin/networkConnector/dtos/SaveLeadRequest.d.ts +9 -0
- package/bin/{credit/dtos/internal/CreditTransferLoancoRequest.js → networkConnector/dtos/SaveLeadRequest.js} +30 -19
- package/bin/networkConnector/dtos/SaveLeadResponse.d.ts +5 -0
- package/bin/networkConnector/dtos/SaveLeadResponse.js +2 -0
- package/bin/networkConnector/dtos/UpdateLeadGroupRequest.d.ts +4 -0
- package/bin/{credit/dtos/internal/CreditReversalRequest.js → networkConnector/dtos/UpdateLeadGroupRequest.js} +13 -12
- package/bin/networkConnector/dtos/UpdateProfileRequest.d.ts +13 -0
- package/bin/networkConnector/dtos/UpdateProfileRequest.js +87 -0
- package/bin/networkConnector/enums/LeadSourceEnum.d.ts +6 -0
- package/bin/networkConnector/enums/LeadSourceEnum.js +10 -0
- package/bin/networkConnector/enums/LeadStatusEnum.d.ts +6 -0
- package/bin/networkConnector/enums/LeadStatusEnum.js +10 -0
- package/bin/networkConnector/enums/PhotoContentType.d.ts +5 -0
- package/bin/networkConnector/enums/PhotoContentType.js +9 -0
- package/bin/networkConnector/enums/ProfileStatusEnum.d.ts +5 -0
- package/bin/networkConnector/enums/ProfileStatusEnum.js +9 -0
- package/bin/networkConnector/index.d.ts +21 -0
- package/bin/networkConnector/index.js +42 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/src/networkConnector/dtos/AssignLeadToGroupRequest.ts +6 -0
- package/src/networkConnector/dtos/CreateLeadGroupRequest.ts +8 -0
- package/src/networkConnector/dtos/CreateProfileRequest.ts +15 -0
- package/src/networkConnector/dtos/DeletePhotoResponse.ts +4 -0
- package/src/networkConnector/dtos/DeleteProfileResponse.ts +4 -0
- package/src/networkConnector/dtos/GetPhotoUploadUrlRequest.ts +8 -0
- package/src/networkConnector/dtos/LeadGroupResponse.ts +8 -0
- package/src/networkConnector/dtos/LeadResponse.ts +17 -0
- package/src/networkConnector/dtos/ListLeadGroupsResponse.ts +6 -0
- package/src/networkConnector/dtos/ListLeadsResponse.ts +6 -0
- package/src/networkConnector/dtos/ListProfilesResponse.ts +6 -0
- package/src/networkConnector/dtos/PhotoUploadUrlResponse.ts +5 -0
- package/src/networkConnector/dtos/ProfileResponse.ts +19 -0
- package/src/networkConnector/dtos/SaveLeadRequest.ts +12 -0
- package/src/networkConnector/dtos/SaveLeadResponse.ts +5 -0
- package/src/networkConnector/dtos/UpdateLeadGroupRequest.ts +7 -0
- package/src/networkConnector/dtos/UpdateProfileRequest.ts +16 -0
- package/src/networkConnector/enums/LeadSourceEnum.ts +6 -0
- package/src/networkConnector/enums/LeadStatusEnum.ts +6 -0
- package/src/networkConnector/enums/PhotoContentType.ts +5 -0
- package/src/networkConnector/enums/ProfileStatusEnum.ts +5 -0
- package/src/networkConnector/index.ts +30 -0
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +0 -22
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +0 -91
- package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +0 -19
- package/bin/benefitCenter/dtos/FieldOverrideRequest.js +0 -80
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +0 -9
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +0 -29
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +0 -10
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +0 -14
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +0 -7
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.js +0 -36
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +0 -17
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +0 -39
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +0 -13
- package/bin/comission-business/dtos/GenerateReportRequest.d.ts +0 -10
- package/bin/comission-business/dtos/GenerateReportResponse.d.ts +0 -6
- package/bin/comission-business/enums/PaymentStatusEnum.d.ts +0 -5
- package/bin/comission-business/enums/PaymentStatusEnum.js +0 -9
- package/bin/credit/dtos/CreditBannerStateResponse.d.ts +0 -10
- package/bin/credit/dtos/CreditBannerStateResponse.js +0 -6
- package/bin/credit/dtos/CreditDetailResponse.d.ts +0 -23
- package/bin/credit/dtos/CreditDetailResponse.js +0 -6
- package/bin/credit/dtos/CreditEligibilityResponse.d.ts +0 -9
- package/bin/credit/dtos/CreditEligibilityResponse.js +0 -6
- package/bin/credit/dtos/CreditMovementResponse.d.ts +0 -20
- package/bin/credit/dtos/CreditMovementResponse.js +0 -9
- package/bin/credit/dtos/CreditRequestCreate.d.ts +0 -4
- package/bin/credit/dtos/CreditRequestResponse.d.ts +0 -7
- package/bin/credit/dtos/CreditRequestResponse.js +0 -6
- package/bin/credit/dtos/CreditScheduleResponse.d.ts +0 -18
- package/bin/credit/dtos/CreditScheduleResponse.js +0 -9
- package/bin/credit/dtos/CreditStatementResponse.d.ts +0 -11
- package/bin/credit/dtos/CreditStatementResponse.js +0 -9
- package/bin/credit/dtos/EarlyPaymentRequest.d.ts +0 -7
- package/bin/credit/dtos/EarlyPaymentResponse.d.ts +0 -11
- package/bin/credit/dtos/EarlyPaymentResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/CreditBalanceRequest.js +0 -21
- package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +0 -11
- package/bin/credit/dtos/internal/CreditCollectionRequest.js +0 -59
- package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +0 -12
- package/bin/credit/dtos/internal/CreditCollectionResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +0 -7
- package/bin/credit/dtos/internal/CreditDisbursementRequest.js +0 -43
- package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditDisbursementResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/CreditProfileRequest.js +0 -23
- package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +0 -5
- package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +0 -7
- package/bin/credit/dtos/internal/CreditReversalResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +0 -6
- package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/LienApplyRequest.d.ts +0 -7
- package/bin/credit/dtos/internal/LienApplyRequest.js +0 -45
- package/bin/credit/enums/CollectionFrequencyEnum.d.ts +0 -5
- package/bin/credit/enums/CollectionFrequencyEnum.js +0 -9
- package/bin/credit/enums/CreditOperationEnum.d.ts +0 -11
- package/bin/credit/enums/CreditOperationEnum.js +0 -15
- package/bin/credit/enums/CreditStatusEnum.d.ts +0 -12
- package/bin/credit/enums/CreditStatusEnum.js +0 -16
- package/bin/credit/enums/DelinquencyLevelEnum.d.ts +0 -9
- package/bin/credit/enums/DelinquencyLevelEnum.js +0 -13
- package/bin/credit/enums/DocumentTypeEnum.d.ts +0 -8
- package/bin/credit/enums/DocumentTypeEnum.js +0 -12
- package/bin/credit/enums/OfferStatusEnum.d.ts +0 -8
- package/bin/credit/enums/OfferStatusEnum.js +0 -12
- package/bin/credit/enums/PaymentTypeEnum.d.ts +0 -9
- package/bin/credit/enums/PaymentTypeEnum.js +0 -13
- package/bin/credit/enums/ReconciliationStatusEnum.d.ts +0 -6
- package/bin/credit/enums/ReconciliationStatusEnum.js +0 -10
- package/bin/credit/enums/TransferStatusEnum.d.ts +0 -8
- package/bin/credit/enums/TransferStatusEnum.js +0 -12
- /package/bin/{comission-business/dtos/GenerateReportRequest.js → networkConnector/dtos/DeletePhotoResponse.js} +0 -0
- /package/bin/{comission-business/dtos/GenerateReportResponse.js → networkConnector/dtos/DeleteProfileResponse.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeadSourceEnum = void 0;
|
|
4
|
+
var LeadSourceEnum;
|
|
5
|
+
(function (LeadSourceEnum) {
|
|
6
|
+
LeadSourceEnum["QR_SCAN"] = "QR_SCAN";
|
|
7
|
+
LeadSourceEnum["DIRECT_LINK"] = "DIRECT_LINK";
|
|
8
|
+
LeadSourceEnum["SHARED_CONTACT"] = "SHARED_CONTACT";
|
|
9
|
+
LeadSourceEnum["WALLET_PASS"] = "WALLET_PASS";
|
|
10
|
+
})(LeadSourceEnum || (exports.LeadSourceEnum = LeadSourceEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeadStatusEnum = void 0;
|
|
4
|
+
var LeadStatusEnum;
|
|
5
|
+
(function (LeadStatusEnum) {
|
|
6
|
+
LeadStatusEnum["NEW"] = "NEW";
|
|
7
|
+
LeadStatusEnum["CONTACTED"] = "CONTACTED";
|
|
8
|
+
LeadStatusEnum["CONVERTED"] = "CONVERTED";
|
|
9
|
+
LeadStatusEnum["ARCHIVED"] = "ARCHIVED";
|
|
10
|
+
})(LeadStatusEnum || (exports.LeadStatusEnum = LeadStatusEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhotoContentType = void 0;
|
|
4
|
+
var PhotoContentType;
|
|
5
|
+
(function (PhotoContentType) {
|
|
6
|
+
PhotoContentType["JPEG"] = "image/jpeg";
|
|
7
|
+
PhotoContentType["PNG"] = "image/png";
|
|
8
|
+
PhotoContentType["WEBP"] = "image/webp";
|
|
9
|
+
})(PhotoContentType || (exports.PhotoContentType = PhotoContentType = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProfileStatusEnum = void 0;
|
|
4
|
+
var ProfileStatusEnum;
|
|
5
|
+
(function (ProfileStatusEnum) {
|
|
6
|
+
ProfileStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
ProfileStatusEnum["INACTIVE"] = "INACTIVE";
|
|
8
|
+
ProfileStatusEnum["DRAFT"] = "DRAFT";
|
|
9
|
+
})(ProfileStatusEnum || (exports.ProfileStatusEnum = ProfileStatusEnum = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './enums/ProfileStatusEnum';
|
|
2
|
+
export * from './enums/LeadSourceEnum';
|
|
3
|
+
export * from './enums/LeadStatusEnum';
|
|
4
|
+
export * from './enums/PhotoContentType';
|
|
5
|
+
export * from './dtos/CreateProfileRequest';
|
|
6
|
+
export * from './dtos/UpdateProfileRequest';
|
|
7
|
+
export * from './dtos/ProfileResponse';
|
|
8
|
+
export * from './dtos/ListProfilesResponse';
|
|
9
|
+
export * from './dtos/DeleteProfileResponse';
|
|
10
|
+
export * from './dtos/SaveLeadRequest';
|
|
11
|
+
export * from './dtos/SaveLeadResponse';
|
|
12
|
+
export * from './dtos/LeadResponse';
|
|
13
|
+
export * from './dtos/ListLeadsResponse';
|
|
14
|
+
export * from './dtos/CreateLeadGroupRequest';
|
|
15
|
+
export * from './dtos/UpdateLeadGroupRequest';
|
|
16
|
+
export * from './dtos/AssignLeadToGroupRequest';
|
|
17
|
+
export * from './dtos/LeadGroupResponse';
|
|
18
|
+
export * from './dtos/ListLeadGroupsResponse';
|
|
19
|
+
export * from './dtos/GetPhotoUploadUrlRequest';
|
|
20
|
+
export * from './dtos/PhotoUploadUrlResponse';
|
|
21
|
+
export * from './dtos/DeletePhotoResponse';
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
// Enums
|
|
18
|
+
__exportStar(require("./enums/ProfileStatusEnum"), exports);
|
|
19
|
+
__exportStar(require("./enums/LeadSourceEnum"), exports);
|
|
20
|
+
__exportStar(require("./enums/LeadStatusEnum"), exports);
|
|
21
|
+
__exportStar(require("./enums/PhotoContentType"), exports);
|
|
22
|
+
// Profile DTOs
|
|
23
|
+
__exportStar(require("./dtos/CreateProfileRequest"), exports);
|
|
24
|
+
__exportStar(require("./dtos/UpdateProfileRequest"), exports);
|
|
25
|
+
__exportStar(require("./dtos/ProfileResponse"), exports);
|
|
26
|
+
__exportStar(require("./dtos/ListProfilesResponse"), exports);
|
|
27
|
+
__exportStar(require("./dtos/DeleteProfileResponse"), exports);
|
|
28
|
+
// Lead DTOs
|
|
29
|
+
__exportStar(require("./dtos/SaveLeadRequest"), exports);
|
|
30
|
+
__exportStar(require("./dtos/SaveLeadResponse"), exports);
|
|
31
|
+
__exportStar(require("./dtos/LeadResponse"), exports);
|
|
32
|
+
__exportStar(require("./dtos/ListLeadsResponse"), exports);
|
|
33
|
+
// Lead Group DTOs
|
|
34
|
+
__exportStar(require("./dtos/CreateLeadGroupRequest"), exports);
|
|
35
|
+
__exportStar(require("./dtos/UpdateLeadGroupRequest"), exports);
|
|
36
|
+
__exportStar(require("./dtos/AssignLeadToGroupRequest"), exports);
|
|
37
|
+
__exportStar(require("./dtos/LeadGroupResponse"), exports);
|
|
38
|
+
__exportStar(require("./dtos/ListLeadGroupsResponse"), exports);
|
|
39
|
+
// Photo DTOs
|
|
40
|
+
__exportStar(require("./dtos/GetPhotoUploadUrlRequest"), exports);
|
|
41
|
+
__exportStar(require("./dtos/PhotoUploadUrlResponse"), exports);
|
|
42
|
+
__exportStar(require("./dtos/DeletePhotoResponse"), exports);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -85,5 +85,8 @@ export * as PlatformRbac from './platformRbac';
|
|
|
85
85
|
export * as Remittance from './remittance';
|
|
86
86
|
export * as WalletFunding from './walletFunding';
|
|
87
87
|
export * as TotpSecurity from './totpSecurity';
|
|
88
|
+
// NetworkConnector: módulo del lambda fiado-network-business (Access Card / Digital Business Card).
|
|
89
|
+
// Contiene DTOs y enums para perfiles, leads, lead groups y fotos.
|
|
90
|
+
export * as NetworkConnector from './networkConnector';
|
|
88
91
|
export * from './messaging';
|
|
89
92
|
export * from './complaint';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsString, IsOptional, MaxLength, MinLength } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class CreateLeadGroupRequest {
|
|
5
|
+
@Expose() @IsString() @MinLength(1) @MaxLength(100) name!: string;
|
|
6
|
+
@Expose() @IsOptional() @IsString() @MaxLength(500) description?: string;
|
|
7
|
+
@Expose() @IsString() profileId!: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsString, IsOptional, IsObject, MaxLength, MinLength } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class CreateProfileRequest {
|
|
5
|
+
@Expose() @IsString() @MinLength(1) @MaxLength(100) firstName!: string;
|
|
6
|
+
@Expose() @IsString() @MinLength(1) @MaxLength(100) lastName!: string;
|
|
7
|
+
@Expose() @IsString() @MinLength(1) @MaxLength(200) title!: string;
|
|
8
|
+
@Expose() @IsString() @MinLength(1) @MaxLength(200) company!: string;
|
|
9
|
+
@Expose() @IsString() @MinLength(2) @MaxLength(100) slug!: string;
|
|
10
|
+
@Expose() @IsString() directoryId!: string;
|
|
11
|
+
@Expose() @IsOptional() @IsString() phone?: string;
|
|
12
|
+
@Expose() @IsOptional() @IsString() email?: string;
|
|
13
|
+
@Expose() @IsOptional() @IsString() @MaxLength(500) bio?: string;
|
|
14
|
+
@Expose() @IsOptional() @IsObject() socialLinks?: Record<string, string>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsString, IsOptional, IsEnum } from 'class-validator';
|
|
3
|
+
import { PhotoContentType } from '../enums/PhotoContentType';
|
|
4
|
+
|
|
5
|
+
export class GetPhotoUploadUrlRequest {
|
|
6
|
+
@Expose() @IsString() profileId!: string;
|
|
7
|
+
@Expose() @IsOptional() @IsEnum(PhotoContentType) contentType?: PhotoContentType;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LeadSourceEnum } from '../enums/LeadSourceEnum';
|
|
2
|
+
import { LeadStatusEnum } from '../enums/LeadStatusEnum';
|
|
3
|
+
|
|
4
|
+
export interface LeadResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
profileId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
company?: string;
|
|
11
|
+
notes?: string;
|
|
12
|
+
source: LeadSourceEnum;
|
|
13
|
+
status: LeadStatusEnum;
|
|
14
|
+
groupId?: string;
|
|
15
|
+
createdAt: number;
|
|
16
|
+
updatedAt: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ProfileStatusEnum } from '../enums/ProfileStatusEnum';
|
|
2
|
+
|
|
3
|
+
export interface ProfileResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
title: string;
|
|
9
|
+
company: string;
|
|
10
|
+
phone?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
photoUrl?: string;
|
|
13
|
+
bio?: string;
|
|
14
|
+
socialLinks?: Record<string, string>;
|
|
15
|
+
status: ProfileStatusEnum;
|
|
16
|
+
directoryId: string;
|
|
17
|
+
createdAt: number;
|
|
18
|
+
updatedAt: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsString, IsOptional, IsEnum, IsEmail, MaxLength, MinLength } from 'class-validator';
|
|
3
|
+
import { LeadSourceEnum } from '../enums/LeadSourceEnum';
|
|
4
|
+
|
|
5
|
+
export class SaveLeadRequest {
|
|
6
|
+
@Expose() @IsString() @MinLength(1) @MaxLength(200) name!: string;
|
|
7
|
+
@Expose() @IsOptional() @IsEmail() email?: string;
|
|
8
|
+
@Expose() @IsOptional() @IsString() phone?: string;
|
|
9
|
+
@Expose() @IsOptional() @IsString() @MaxLength(200) company?: string;
|
|
10
|
+
@Expose() @IsOptional() @IsString() @MaxLength(500) notes?: string;
|
|
11
|
+
@Expose() @IsOptional() @IsEnum(LeadSourceEnum) source?: LeadSourceEnum;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsString, IsOptional, MaxLength, MinLength } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class UpdateLeadGroupRequest {
|
|
5
|
+
@Expose() @IsOptional() @IsString() @MinLength(1) @MaxLength(100) name?: string;
|
|
6
|
+
@Expose() @IsOptional() @IsString() @MaxLength(500) description?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsString, IsOptional, IsEnum, IsObject, MaxLength, MinLength } from 'class-validator';
|
|
3
|
+
import { ProfileStatusEnum } from '../enums/ProfileStatusEnum';
|
|
4
|
+
|
|
5
|
+
export class UpdateProfileRequest {
|
|
6
|
+
@Expose() @IsOptional() @IsString() @MinLength(1) @MaxLength(100) firstName?: string;
|
|
7
|
+
@Expose() @IsOptional() @IsString() @MinLength(1) @MaxLength(100) lastName?: string;
|
|
8
|
+
@Expose() @IsOptional() @IsString() @MaxLength(200) title?: string;
|
|
9
|
+
@Expose() @IsOptional() @IsString() @MaxLength(200) company?: string;
|
|
10
|
+
@Expose() @IsOptional() @IsString() @MinLength(2) @MaxLength(100) slug?: string;
|
|
11
|
+
@Expose() @IsOptional() @IsString() phone?: string;
|
|
12
|
+
@Expose() @IsOptional() @IsString() email?: string;
|
|
13
|
+
@Expose() @IsOptional() @IsString() @MaxLength(500) bio?: string;
|
|
14
|
+
@Expose() @IsOptional() @IsObject() socialLinks?: Record<string, string>;
|
|
15
|
+
@Expose() @IsOptional() @IsEnum(ProfileStatusEnum) status?: ProfileStatusEnum;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Enums
|
|
2
|
+
export * from './enums/ProfileStatusEnum';
|
|
3
|
+
export * from './enums/LeadSourceEnum';
|
|
4
|
+
export * from './enums/LeadStatusEnum';
|
|
5
|
+
export * from './enums/PhotoContentType';
|
|
6
|
+
|
|
7
|
+
// Profile DTOs
|
|
8
|
+
export * from './dtos/CreateProfileRequest';
|
|
9
|
+
export * from './dtos/UpdateProfileRequest';
|
|
10
|
+
export * from './dtos/ProfileResponse';
|
|
11
|
+
export * from './dtos/ListProfilesResponse';
|
|
12
|
+
export * from './dtos/DeleteProfileResponse';
|
|
13
|
+
|
|
14
|
+
// Lead DTOs
|
|
15
|
+
export * from './dtos/SaveLeadRequest';
|
|
16
|
+
export * from './dtos/SaveLeadResponse';
|
|
17
|
+
export * from './dtos/LeadResponse';
|
|
18
|
+
export * from './dtos/ListLeadsResponse';
|
|
19
|
+
|
|
20
|
+
// Lead Group DTOs
|
|
21
|
+
export * from './dtos/CreateLeadGroupRequest';
|
|
22
|
+
export * from './dtos/UpdateLeadGroupRequest';
|
|
23
|
+
export * from './dtos/AssignLeadToGroupRequest';
|
|
24
|
+
export * from './dtos/LeadGroupResponse';
|
|
25
|
+
export * from './dtos/ListLeadGroupsResponse';
|
|
26
|
+
|
|
27
|
+
// Photo DTOs
|
|
28
|
+
export * from './dtos/GetPhotoUploadUrlRequest';
|
|
29
|
+
export * from './dtos/PhotoUploadUrlResponse';
|
|
30
|
+
export * from './dtos/DeletePhotoResponse';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InputSchemaOverrideRequest } from "./InputSchemaOverrideRequest";
|
|
2
|
-
/**
|
|
3
|
-
* Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
|
|
4
|
-
* - undefined → no se toca
|
|
5
|
-
* - string/number/boolean seteado → pisa el valor previo del override
|
|
6
|
-
* - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
|
|
7
|
-
*
|
|
8
|
-
* Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
|
|
9
|
-
*/
|
|
10
|
-
export declare class BackofficeLeafOverrideUpsertRequest {
|
|
11
|
-
serviceName?: string;
|
|
12
|
-
logo?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
helpText?: string;
|
|
15
|
-
serviceOrder?: number;
|
|
16
|
-
subcategoryOrder?: number;
|
|
17
|
-
enabled?: boolean;
|
|
18
|
-
category?: string;
|
|
19
|
-
subcategory?: string;
|
|
20
|
-
requiresReferenceVerification?: boolean;
|
|
21
|
-
inputSchema?: InputSchemaOverrideRequest;
|
|
22
|
-
}
|
|
@@ -1,91 +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.BackofficeLeafOverrideUpsertRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const InputSchemaOverrideRequest_1 = require("./InputSchemaOverrideRequest");
|
|
16
|
-
/**
|
|
17
|
-
* Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
|
|
18
|
-
* - undefined → no se toca
|
|
19
|
-
* - string/number/boolean seteado → pisa el valor previo del override
|
|
20
|
-
* - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
|
|
21
|
-
*
|
|
22
|
-
* Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
|
|
23
|
-
*/
|
|
24
|
-
class BackofficeLeafOverrideUpsertRequest {
|
|
25
|
-
}
|
|
26
|
-
exports.BackofficeLeafOverrideUpsertRequest = BackofficeLeafOverrideUpsertRequest;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_validator_1.MaxLength)(120),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "serviceName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
|
|
36
|
-
(0, class_validator_1.MaxLength)(500),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "logo", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
(0, class_validator_1.MaxLength)(2000),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "description", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
(0, class_validator_1.IsString)(),
|
|
48
|
-
(0, class_validator_1.MaxLength)(1000),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "helpText", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_validator_1.IsOptional)(),
|
|
53
|
-
(0, class_validator_1.IsInt)(),
|
|
54
|
-
(0, class_validator_1.Min)(0),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "serviceOrder", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsInt)(),
|
|
60
|
-
(0, class_validator_1.Min)(0),
|
|
61
|
-
__metadata("design:type", Number)
|
|
62
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "subcategoryOrder", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_validator_1.IsBoolean)(),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "enabled", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
(0, class_validator_1.IsString)(),
|
|
71
|
-
(0, class_validator_1.MaxLength)(60),
|
|
72
|
-
(0, class_validator_1.Matches)(/^[A-Z][A-Z0-9_ ]*$/, { message: "category must be uppercase with underscores or spaces" }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "category", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_validator_1.IsString)(),
|
|
78
|
-
(0, class_validator_1.MaxLength)(60),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "subcategory", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, class_validator_1.IsOptional)(),
|
|
83
|
-
(0, class_validator_1.IsBoolean)(),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "requiresReferenceVerification", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, class_validator_1.IsOptional)(),
|
|
88
|
-
(0, class_validator_1.ValidateNested)(),
|
|
89
|
-
(0, class_transformer_1.Type)(() => InputSchemaOverrideRequest_1.InputSchemaOverrideRequest),
|
|
90
|
-
__metadata("design:type", InputSchemaOverrideRequest_1.InputSchemaOverrideRequest)
|
|
91
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "inputSchema", void 0);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InputFieldTypeEnum } from "../enums/InputFieldTypeEnum";
|
|
2
|
-
import { InputValidation } from "./InputValidation";
|
|
3
|
-
import { SelectOption } from "./SelectOption";
|
|
4
|
-
/**
|
|
5
|
-
* Override parcial de un field individual del `inputSchema` por `key`.
|
|
6
|
-
* El admin no puede agregar ni quitar fields — solo editar los existentes.
|
|
7
|
-
*/
|
|
8
|
-
export declare class FieldOverrideRequest {
|
|
9
|
-
key: string;
|
|
10
|
-
type?: InputFieldTypeEnum;
|
|
11
|
-
label?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
helpImage?: string;
|
|
15
|
-
showHelp?: boolean;
|
|
16
|
-
options?: SelectOption[];
|
|
17
|
-
dependsOn?: string;
|
|
18
|
-
validation?: InputValidation;
|
|
19
|
-
}
|
|
@@ -1,80 +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.FieldOverrideRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const InputFieldTypeEnum_1 = require("../enums/InputFieldTypeEnum");
|
|
16
|
-
const InputValidation_1 = require("./InputValidation");
|
|
17
|
-
const SelectOption_1 = require("./SelectOption");
|
|
18
|
-
/**
|
|
19
|
-
* Override parcial de un field individual del `inputSchema` por `key`.
|
|
20
|
-
* El admin no puede agregar ni quitar fields — solo editar los existentes.
|
|
21
|
-
*/
|
|
22
|
-
class FieldOverrideRequest {
|
|
23
|
-
}
|
|
24
|
-
exports.FieldOverrideRequest = FieldOverrideRequest;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], FieldOverrideRequest.prototype, "key", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsEnum)(InputFieldTypeEnum_1.InputFieldTypeEnum),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], FieldOverrideRequest.prototype, "type", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0, class_validator_1.MaxLength)(120),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], FieldOverrideRequest.prototype, "label", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0, class_validator_1.MaxLength)(120),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], FieldOverrideRequest.prototype, "placeholder", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsOptional)(),
|
|
49
|
-
(0, class_validator_1.IsBoolean)(),
|
|
50
|
-
__metadata("design:type", Boolean)
|
|
51
|
-
], FieldOverrideRequest.prototype, "required", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsOptional)(),
|
|
54
|
-
(0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], FieldOverrideRequest.prototype, "helpImage", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsBoolean)(),
|
|
60
|
-
__metadata("design:type", Boolean)
|
|
61
|
-
], FieldOverrideRequest.prototype, "showHelp", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
|
64
|
-
(0, class_validator_1.IsArray)(),
|
|
65
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
66
|
-
(0, class_transformer_1.Type)(() => SelectOption_1.SelectOption),
|
|
67
|
-
__metadata("design:type", Array)
|
|
68
|
-
], FieldOverrideRequest.prototype, "options", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
(0, class_validator_1.IsString)(),
|
|
72
|
-
(0, class_validator_1.MaxLength)(60),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], FieldOverrideRequest.prototype, "dependsOn", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_validator_1.ValidateNested)(),
|
|
78
|
-
(0, class_transformer_1.Type)(() => InputValidation_1.InputValidation),
|
|
79
|
-
__metadata("design:type", InputValidation_1.InputValidation)
|
|
80
|
-
], FieldOverrideRequest.prototype, "validation", void 0);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FieldOverrideRequest } from "./FieldOverrideRequest";
|
|
2
|
-
/**
|
|
3
|
-
* Override del inputSchema completo. El array `fieldOverrides[]` lista overrides
|
|
4
|
-
* parciales por `key`. La validación cruzada de que cada `key` exista en el
|
|
5
|
-
* inputSchema del conector la hace el manager (no se puede expresar con class-validator).
|
|
6
|
-
*/
|
|
7
|
-
export declare class InputSchemaOverrideRequest {
|
|
8
|
-
fieldOverrides: FieldOverrideRequest[];
|
|
9
|
-
}
|