@fiado/type-kit 3.86.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/networkConnector/dtos/AssignLeadToGroupRequest.js +22 -0
- package/bin/networkConnector/dtos/CreateLeadGroupRequest.d.ts +5 -0
- package/bin/networkConnector/dtos/CreateLeadGroupRequest.js +36 -0
- package/bin/networkConnector/dtos/CreateProfileRequest.d.ts +12 -0
- package/bin/networkConnector/dtos/CreateProfileRequest.js +82 -0
- package/bin/networkConnector/dtos/DeletePhotoResponse.d.ts +4 -0
- package/bin/networkConnector/dtos/DeletePhotoResponse.js +2 -0
- package/bin/networkConnector/dtos/DeleteProfileResponse.d.ts +4 -0
- package/bin/networkConnector/dtos/DeleteProfileResponse.js +2 -0
- package/bin/networkConnector/dtos/GetPhotoUploadUrlRequest.d.ts +5 -0
- package/bin/networkConnector/dtos/GetPhotoUploadUrlRequest.js +29 -0
- 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/networkConnector/dtos/SaveLeadRequest.js +57 -0
- 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/networkConnector/dtos/UpdateLeadGroupRequest.js +32 -0
- 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/bin/platformRbac/dtos/AuthContext.d.ts +3 -3
- package/bin/platformRbac/tenantTypes.d.ts +4 -3
- package/bin/platformRbac/tenantTypes.js +4 -3
- package/bin/transaction/dtos/CreateDisputePrivateRequest.d.ts +19 -0
- package/bin/transaction/dtos/CreateDisputePrivateRequest.js +11 -0
- package/bin/transaction/dtos/ReopenDisputeRequest.d.ts +8 -0
- package/bin/transaction/dtos/ReopenDisputeRequest.js +11 -0
- package/bin/transaction/index.d.ts +2 -0
- package/bin/transaction/index.js +2 -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/src/platformRbac/dtos/AuthContext.ts +3 -3
- package/src/platformRbac/tenantTypes.ts +4 -3
- package/src/transaction/dtos/CreateDisputePrivateRequest.ts +19 -0
- package/src/transaction/dtos/ReopenDisputeRequest.ts +8 -0
- package/src/transaction/index.ts +2 -0
package/bin/index.d.ts
CHANGED
|
@@ -80,5 +80,6 @@ export * as PlatformRbac from './platformRbac';
|
|
|
80
80
|
export * as Remittance from './remittance';
|
|
81
81
|
export * as WalletFunding from './walletFunding';
|
|
82
82
|
export * as TotpSecurity from './totpSecurity';
|
|
83
|
+
export * as NetworkConnector from './networkConnector';
|
|
83
84
|
export * from './messaging';
|
|
84
85
|
export * from './complaint';
|
package/bin/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BenefitCenter = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.TransactionAnalytics = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = exports.Crypto = void 0;
|
|
40
|
-
exports.TotpSecurity = exports.WalletFunding = exports.Remittance = exports.PlatformRbac = exports.CognitoBackofficeConnector = exports.TwilioConnector = exports.MessagesConnector = exports.Mdm = exports.MilestoneBusiness = exports.CirculoCredito = exports.CreditStatements = exports.Sentry = exports.AiEngine = exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CustomerFile = exports.CreditBackoffice = exports.CreditDashboard = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = exports.Collector = exports.Pricelist = void 0;
|
|
40
|
+
exports.NetworkConnector = exports.TotpSecurity = exports.WalletFunding = exports.Remittance = exports.PlatformRbac = exports.CognitoBackofficeConnector = exports.TwilioConnector = exports.MessagesConnector = exports.Mdm = exports.MilestoneBusiness = exports.CirculoCredito = exports.CreditStatements = exports.Sentry = exports.AiEngine = exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CustomerFile = exports.CreditBackoffice = exports.CreditDashboard = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = exports.Collector = exports.Pricelist = void 0;
|
|
41
41
|
exports.Crypto = __importStar(require("./crypto"));
|
|
42
42
|
exports.Account = __importStar(require("./account"));
|
|
43
43
|
exports.Activity = __importStar(require("./activity"));
|
|
@@ -125,5 +125,8 @@ exports.PlatformRbac = __importStar(require("./platformRbac"));
|
|
|
125
125
|
exports.Remittance = __importStar(require("./remittance"));
|
|
126
126
|
exports.WalletFunding = __importStar(require("./walletFunding"));
|
|
127
127
|
exports.TotpSecurity = __importStar(require("./totpSecurity"));
|
|
128
|
+
// NetworkConnector: módulo del lambda fiado-network-business (Access Card / Digital Business Card).
|
|
129
|
+
// Contiene DTOs y enums para perfiles, leads, lead groups y fotos.
|
|
130
|
+
exports.NetworkConnector = __importStar(require("./networkConnector"));
|
|
128
131
|
__exportStar(require("./messaging"), exports);
|
|
129
132
|
__exportStar(require("./complaint"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
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.AssignLeadToGroupRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class AssignLeadToGroupRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.AssignLeadToGroupRequest = AssignLeadToGroupRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], AssignLeadToGroupRequest.prototype, "leadId", void 0);
|
|
@@ -0,0 +1,36 @@
|
|
|
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.CreateLeadGroupRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateLeadGroupRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateLeadGroupRequest = CreateLeadGroupRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.MinLength)(1),
|
|
22
|
+
(0, class_validator_1.MaxLength)(100),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateLeadGroupRequest.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.MaxLength)(500),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateLeadGroupRequest.prototype, "description", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateLeadGroupRequest.prototype, "profileId", void 0);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class CreateProfileRequest {
|
|
2
|
+
firstName: string;
|
|
3
|
+
lastName: string;
|
|
4
|
+
title: string;
|
|
5
|
+
company: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
directoryId: string;
|
|
8
|
+
phone?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
bio?: string;
|
|
11
|
+
socialLinks?: Record<string, string>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.CreateProfileRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateProfileRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateProfileRequest = CreateProfileRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.MinLength)(1),
|
|
22
|
+
(0, class_validator_1.MaxLength)(100),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateProfileRequest.prototype, "firstName", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.MinLength)(1),
|
|
29
|
+
(0, class_validator_1.MaxLength)(100),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateProfileRequest.prototype, "lastName", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.MinLength)(1),
|
|
36
|
+
(0, class_validator_1.MaxLength)(200),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateProfileRequest.prototype, "title", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.MinLength)(1),
|
|
43
|
+
(0, class_validator_1.MaxLength)(200),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CreateProfileRequest.prototype, "company", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.MinLength)(2),
|
|
50
|
+
(0, class_validator_1.MaxLength)(100),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateProfileRequest.prototype, "slug", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], CreateProfileRequest.prototype, "directoryId", 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
|
+
], CreateProfileRequest.prototype, "phone", 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
|
+
], CreateProfileRequest.prototype, "email", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
(0, class_validator_1.MaxLength)(500),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CreateProfileRequest.prototype, "bio", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_validator_1.IsObject)(),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], CreateProfileRequest.prototype, "socialLinks", void 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.GetPhotoUploadUrlRequest = 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 GetPhotoUploadUrlRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.GetPhotoUploadUrlRequest = GetPhotoUploadUrlRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], GetPhotoUploadUrlRequest.prototype, "profileId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsEnum)(PhotoContentType_1.PhotoContentType),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], GetPhotoUploadUrlRequest.prototype, "contentType", void 0);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LeadSourceEnum } from '../enums/LeadSourceEnum';
|
|
2
|
+
import { LeadStatusEnum } from '../enums/LeadStatusEnum';
|
|
3
|
+
export interface LeadResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
profileId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
phone?: string;
|
|
9
|
+
company?: string;
|
|
10
|
+
notes?: string;
|
|
11
|
+
source: LeadSourceEnum;
|
|
12
|
+
status: LeadStatusEnum;
|
|
13
|
+
groupId?: string;
|
|
14
|
+
createdAt: number;
|
|
15
|
+
updatedAt: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ProfileStatusEnum } from '../enums/ProfileStatusEnum';
|
|
2
|
+
export interface ProfileResponse {
|
|
3
|
+
id: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
title: string;
|
|
8
|
+
company: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
photoUrl?: string;
|
|
12
|
+
bio?: string;
|
|
13
|
+
socialLinks?: Record<string, string>;
|
|
14
|
+
status: ProfileStatusEnum;
|
|
15
|
+
directoryId: string;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
updatedAt: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.SaveLeadRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const LeadSourceEnum_1 = require("../enums/LeadSourceEnum");
|
|
16
|
+
class SaveLeadRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.SaveLeadRequest = SaveLeadRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.MinLength)(1),
|
|
23
|
+
(0, class_validator_1.MaxLength)(200),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SaveLeadRequest.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsEmail)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SaveLeadRequest.prototype, "email", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], SaveLeadRequest.prototype, "phone", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.MaxLength)(200),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], SaveLeadRequest.prototype, "company", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.MaxLength)(500),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], SaveLeadRequest.prototype, "notes", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsEnum)(LeadSourceEnum_1.LeadSourceEnum),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], SaveLeadRequest.prototype, "source", void 0);
|
|
@@ -0,0 +1,32 @@
|
|
|
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.UpdateLeadGroupRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class UpdateLeadGroupRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateLeadGroupRequest = UpdateLeadGroupRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.MinLength)(1),
|
|
23
|
+
(0, class_validator_1.MaxLength)(100),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], UpdateLeadGroupRequest.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.MaxLength)(500),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpdateLeadGroupRequest.prototype, "description", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ProfileStatusEnum } from '../enums/ProfileStatusEnum';
|
|
2
|
+
export declare class UpdateProfileRequest {
|
|
3
|
+
firstName?: string;
|
|
4
|
+
lastName?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
company?: string;
|
|
7
|
+
slug?: string;
|
|
8
|
+
phone?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
bio?: string;
|
|
11
|
+
socialLinks?: Record<string, string>;
|
|
12
|
+
status?: ProfileStatusEnum;
|
|
13
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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.UpdateProfileRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const ProfileStatusEnum_1 = require("../enums/ProfileStatusEnum");
|
|
16
|
+
class UpdateProfileRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.UpdateProfileRequest = UpdateProfileRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.MinLength)(1),
|
|
24
|
+
(0, class_validator_1.MaxLength)(100),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], UpdateProfileRequest.prototype, "firstName", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.MinLength)(1),
|
|
32
|
+
(0, class_validator_1.MaxLength)(100),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], UpdateProfileRequest.prototype, "lastName", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.MaxLength)(200),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UpdateProfileRequest.prototype, "title", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_validator_1.MaxLength)(200),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], UpdateProfileRequest.prototype, "company", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
(0, class_validator_1.MinLength)(2),
|
|
54
|
+
(0, class_validator_1.MaxLength)(100),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UpdateProfileRequest.prototype, "slug", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], UpdateProfileRequest.prototype, "phone", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsString)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], UpdateProfileRequest.prototype, "email", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_validator_1.IsString)(),
|
|
73
|
+
(0, class_validator_1.MaxLength)(500),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], UpdateProfileRequest.prototype, "bio", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsObject)(),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], UpdateProfileRequest.prototype, "socialLinks", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.IsEnum)(ProfileStatusEnum_1.ProfileStatusEnum),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], UpdateProfileRequest.prototype, "status", void 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 = {}));
|