adamo-types 2.1.45-sit → 2.1.46-sit
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/dist/bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity.d.ts +1 -1
- package/dist/common/edge-zoho/sale-process/req/patch.entity.d.ts +0 -7
- package/dist/common/edge-zoho/sale-process/req/patch.entity.js +1 -35
- package/dist/sys03/generic-sale-process/additional-contact.entity.d.ts +2 -2
- package/dist/sys03/generic-sale-process/additional-contact.entity.js +2 -6
- package/dist/sys03/generic-sale-process/constants.d.ts +19 -5
- package/dist/sys03/generic-sale-process/constants.js +18 -4
- package/dist/sys03/generic-sale-process/credit-bureau-validation.entity.d.ts +9 -0
- package/dist/sys03/generic-sale-process/credit-bureau-validation.entity.js +26 -0
- package/dist/sys03/generic-sale-process/entity.d.ts +11 -5
- package/dist/sys03/generic-sale-process/entity.js +10 -5
- package/dist/sys03/generic-sale-process/index.d.ts +1 -0
- package/dist/sys03/generic-sale-process/index.js +1 -0
- package/dist/sys03/generic-sale-process/patch/contract-data-saved-digitel.entity.d.ts +9 -0
- package/dist/sys03/generic-sale-process/patch/contract-data-saved-digitel.entity.js +44 -0
- package/dist/sys03/generic-sale-process/patch/contract-data-saved.entity.d.ts +40 -0
- package/dist/sys03/generic-sale-process/patch/contract-data-saved.entity.js +233 -0
- package/dist/sys03/generic-sale-process/patch/customer-type-selected.entity.d.ts +1 -1
- package/dist/sys03/generic-sale-process/patch/customer-type-selected.entity.js +5 -5
- package/dist/sys03/generic-sale-process/patch/customer-type-validated.entity.d.ts +1 -1
- package/dist/sys03/generic-sale-process/patch/customer-type-validated.entity.js +3 -3
- package/dist/sys03/generic-sale-process/patch/index.d.ts +3 -0
- package/dist/sys03/generic-sale-process/patch/index.js +3 -0
- package/dist/sys03/generic-sale-process/patch/patch-customer-account-behaviour.entity.d.ts +8 -0
- package/dist/sys03/generic-sale-process/patch/patch-customer-account-behaviour.entity.js +41 -0
- package/dist/sys03/sale-process/{sale-process.credit-bureau-validation.entity.d.ts → credit-bureau-validation.entity.d.ts} +3 -2
- package/dist/sys03/sale-process/{sale-process.credit-bureau-validation.entity.js → credit-bureau-validation.entity.js} +9 -2
- package/dist/sys03/sale-process/index.d.ts +1 -1
- package/dist/sys03/sale-process/index.js +1 -1
- package/dist/sys03/sale-process/patch/contract-data-saved.entity.d.ts +7 -0
- package/dist/sys03/sale-process/patch/contract-data-saved.entity.js +42 -0
- package/dist/sys03/sale-process/patch/index.d.ts +1 -0
- package/dist/sys03/sale-process/patch/index.js +17 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,233 @@
|
|
|
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.PatchGenericSaleProcessContractDataSavedDto = exports.PartialGenericSaleProcessContractDataSavedBillingDto = exports.PartialGenericSaleProcessContractDataSavedBusinessDto = exports.PartialGenericSaleProcessContractDataSavedCustomerDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const constants_1 = require("../constants");
|
|
16
|
+
const constants_2 = require("../../../bss/constants");
|
|
17
|
+
const class_transformer_1 = require("class-transformer");
|
|
18
|
+
const _validators_1 = require("../../../validators/index");
|
|
19
|
+
const customer_1 = require("../../customer");
|
|
20
|
+
const sale_process_1 = require("../../sale-process");
|
|
21
|
+
const constants_3 = require("../../../common/constants");
|
|
22
|
+
class PartialGenericSaleProcessContractDataSavedCustomerDto {
|
|
23
|
+
title;
|
|
24
|
+
firstName;
|
|
25
|
+
lastName;
|
|
26
|
+
birthDate;
|
|
27
|
+
vulnerable;
|
|
28
|
+
email;
|
|
29
|
+
identification;
|
|
30
|
+
mobilePhone;
|
|
31
|
+
contactPhone;
|
|
32
|
+
additionalContactPhone;
|
|
33
|
+
preferredContactTime;
|
|
34
|
+
preferredContactLanguage;
|
|
35
|
+
association;
|
|
36
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
37
|
+
return { title: { required: true, enum: require("../../../bss/constants/bp.constants").BpCustomerAccountIndividualTitleType }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, birthDate: { required: true, type: () => String, maxLength: 10 }, vulnerable: { required: true, type: () => Boolean }, email: { required: true, type: () => String, format: "email" }, identification: { required: true, type: () => require("../../sale-process/identification.entity").SaleProcessIndividualIdentificationDto }, mobilePhone: { required: true, type: () => String }, contactPhone: { required: false, type: () => String }, additionalContactPhone: { required: false, type: () => String }, preferredContactTime: { required: true, enum: require("../../../bss/constants/bp.constants").BpCustomerAccountPreferredContactTimeType }, preferredContactLanguage: { required: true, type: () => String }, association: { required: false, type: () => String } };
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.PartialGenericSaleProcessContractDataSavedCustomerDto = PartialGenericSaleProcessContractDataSavedCustomerDto;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsEnum)(constants_2.BpCustomerAccountIndividualTitleType, { groups: ['title'] }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "title", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
48
|
+
(0, _validators_1.IsNotBlank)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "firstName", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
54
|
+
(0, _validators_1.IsNotBlank)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "lastName", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsISO8601)({}, { groups: ['birthdate'] }),
|
|
59
|
+
(0, class_validator_1.MaxLength)(10, { groups: ['birthdate'] }),
|
|
60
|
+
(0, class_validator_1.IsNotEmpty)({ groups: ['birthdate'] }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "birthDate", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsBoolean)(),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "vulnerable", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsEmail)(),
|
|
70
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
71
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
72
|
+
if (value)
|
|
73
|
+
return value.toString().toLowerCase();
|
|
74
|
+
return value;
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "email", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsDefined)(),
|
|
80
|
+
(0, class_validator_1.ValidateNested)(),
|
|
81
|
+
(0, class_transformer_1.Type)(() => sale_process_1.SaleProcessIndividualIdentificationDto),
|
|
82
|
+
__metadata("design:type", sale_process_1.SaleProcessIndividualIdentificationDto)
|
|
83
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "identification", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsString)(),
|
|
86
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
87
|
+
(0, _validators_1.IsNotBlank)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "mobilePhone", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_validator_1.IsString)(),
|
|
92
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "contactPhone", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsString)(),
|
|
98
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
99
|
+
(0, class_validator_1.IsOptional)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "additionalContactPhone", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_validator_1.IsEnum)(constants_2.BpCustomerAccountPreferredContactTimeType),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "preferredContactTime", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, class_validator_1.IsString)(),
|
|
108
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
109
|
+
(0, _validators_1.IsNotBlank)(),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "preferredContactLanguage", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_validator_1.IsString)(),
|
|
114
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
115
|
+
(0, _validators_1.IsNotBlank)(),
|
|
116
|
+
(0, class_validator_1.IsOptional)(),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], PartialGenericSaleProcessContractDataSavedCustomerDto.prototype, "association", void 0);
|
|
119
|
+
class PartialGenericSaleProcessContractDataSavedBusinessDto {
|
|
120
|
+
tradingName;
|
|
121
|
+
legalName;
|
|
122
|
+
companyType;
|
|
123
|
+
identification;
|
|
124
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
125
|
+
return { tradingName: { required: true, type: () => String }, legalName: { required: true, type: () => String }, companyType: { required: true, enum: require("../../../common/constants/common.constants").BusinessCustomerType }, identification: { required: true, type: () => require("../../sale-process/identification.entity").SaleProcessCompanyIdentificationDto } };
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.PartialGenericSaleProcessContractDataSavedBusinessDto = PartialGenericSaleProcessContractDataSavedBusinessDto;
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, class_validator_1.IsString)(),
|
|
131
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
132
|
+
(0, _validators_1.IsNotBlank)(),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], PartialGenericSaleProcessContractDataSavedBusinessDto.prototype, "tradingName", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, class_validator_1.IsString)(),
|
|
137
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
138
|
+
(0, _validators_1.IsNotBlank)(),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], PartialGenericSaleProcessContractDataSavedBusinessDto.prototype, "legalName", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_validator_1.IsEnum)(constants_3.BusinessCustomerType),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], PartialGenericSaleProcessContractDataSavedBusinessDto.prototype, "companyType", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, class_validator_1.IsDefined)({ groups: ['businessIdentification'] }),
|
|
147
|
+
(0, class_validator_1.ValidateNested)({ groups: ['businessIdentification'] }),
|
|
148
|
+
(0, class_transformer_1.Type)(() => sale_process_1.SaleProcessCompanyIdentificationDto),
|
|
149
|
+
__metadata("design:type", sale_process_1.SaleProcessCompanyIdentificationDto)
|
|
150
|
+
], PartialGenericSaleProcessContractDataSavedBusinessDto.prototype, "identification", void 0);
|
|
151
|
+
class PartialGenericSaleProcessContractDataSavedBillingDto {
|
|
152
|
+
firstName;
|
|
153
|
+
lastName;
|
|
154
|
+
iban;
|
|
155
|
+
addressData;
|
|
156
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
157
|
+
return { firstName: { required: true, type: () => String, maxLength: 64 }, lastName: { required: true, type: () => String, maxLength: 64 }, iban: { required: true, type: () => String, pattern: "/^[A-Za-z0-9]+$/" }, addressData: { required: true, type: () => require("../../customer/customer-account-address.entity").CreateCustomerAccountAddressReqDto } };
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.PartialGenericSaleProcessContractDataSavedBillingDto = PartialGenericSaleProcessContractDataSavedBillingDto;
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, class_validator_1.IsString)(),
|
|
163
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
164
|
+
(0, _validators_1.IsNotBlank)(),
|
|
165
|
+
(0, class_validator_1.MaxLength)(64),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], PartialGenericSaleProcessContractDataSavedBillingDto.prototype, "firstName", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, class_validator_1.IsString)(),
|
|
170
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
171
|
+
(0, _validators_1.IsNotBlank)(),
|
|
172
|
+
(0, class_validator_1.MaxLength)(64),
|
|
173
|
+
__metadata("design:type", String)
|
|
174
|
+
], PartialGenericSaleProcessContractDataSavedBillingDto.prototype, "lastName", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, class_validator_1.IsString)(),
|
|
177
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
178
|
+
(0, class_validator_1.Matches)(/^[A-Za-z0-9]+$/),
|
|
179
|
+
__metadata("design:type", String)
|
|
180
|
+
], PartialGenericSaleProcessContractDataSavedBillingDto.prototype, "iban", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, class_validator_1.IsDefined)(),
|
|
183
|
+
(0, class_validator_1.ValidateNested)(),
|
|
184
|
+
(0, class_transformer_1.Type)(() => customer_1.CreateCustomerAccountAddressReqDto),
|
|
185
|
+
__metadata("design:type", customer_1.CreateCustomerAccountAddressReqDto)
|
|
186
|
+
], PartialGenericSaleProcessContractDataSavedBillingDto.prototype, "addressData", void 0);
|
|
187
|
+
class PatchGenericSaleProcessContractDataSavedDto {
|
|
188
|
+
status;
|
|
189
|
+
customer;
|
|
190
|
+
business;
|
|
191
|
+
billing;
|
|
192
|
+
digitelCircuitType;
|
|
193
|
+
notes;
|
|
194
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
195
|
+
return { status: { required: true, enum: require("../constants").GenericSaleProcessStatus }, customer: { required: true, type: () => require("./contract-data-saved.entity").PartialGenericSaleProcessContractDataSavedCustomerDto }, business: { required: false, type: () => require("./contract-data-saved.entity").PartialGenericSaleProcessContractDataSavedBusinessDto }, billing: { required: true, type: () => require("./contract-data-saved.entity").PartialGenericSaleProcessContractDataSavedBillingDto }, digitelCircuitType: { required: false, enum: require("../../../bss/constants/bp.constants").DigitelCircuitType }, notes: { required: false, type: () => String, maxLength: 1000 } };
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
exports.PatchGenericSaleProcessContractDataSavedDto = PatchGenericSaleProcessContractDataSavedDto;
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, class_validator_1.IsEnum)(constants_1.GenericSaleProcessStatus),
|
|
201
|
+
__metadata("design:type", String)
|
|
202
|
+
], PatchGenericSaleProcessContractDataSavedDto.prototype, "status", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, class_validator_1.IsDefined)(),
|
|
205
|
+
(0, class_validator_1.ValidateNested)(),
|
|
206
|
+
(0, class_validator_1.IsOptional)(),
|
|
207
|
+
(0, class_transformer_1.Type)(() => PartialGenericSaleProcessContractDataSavedCustomerDto),
|
|
208
|
+
__metadata("design:type", PartialGenericSaleProcessContractDataSavedCustomerDto)
|
|
209
|
+
], PatchGenericSaleProcessContractDataSavedDto.prototype, "customer", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, class_validator_1.IsDefined)({ groups: ['business'] }),
|
|
212
|
+
(0, class_validator_1.ValidateNested)({ groups: ['business'] }),
|
|
213
|
+
(0, class_transformer_1.Type)(() => PartialGenericSaleProcessContractDataSavedBusinessDto),
|
|
214
|
+
__metadata("design:type", PartialGenericSaleProcessContractDataSavedBusinessDto)
|
|
215
|
+
], PatchGenericSaleProcessContractDataSavedDto.prototype, "business", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, class_validator_1.IsDefined)(),
|
|
218
|
+
(0, class_validator_1.ValidateNested)(),
|
|
219
|
+
(0, class_transformer_1.Type)(() => PartialGenericSaleProcessContractDataSavedBillingDto),
|
|
220
|
+
__metadata("design:type", PartialGenericSaleProcessContractDataSavedBillingDto)
|
|
221
|
+
], PatchGenericSaleProcessContractDataSavedDto.prototype, "billing", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
(0, class_validator_1.IsEnum)(constants_2.DigitelCircuitType),
|
|
224
|
+
(0, class_validator_1.IsOptional)(),
|
|
225
|
+
__metadata("design:type", String)
|
|
226
|
+
], PatchGenericSaleProcessContractDataSavedDto.prototype, "digitelCircuitType", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, class_validator_1.IsString)(),
|
|
229
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
230
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
231
|
+
(0, class_validator_1.IsOptional)(),
|
|
232
|
+
__metadata("design:type", String)
|
|
233
|
+
], PatchGenericSaleProcessContractDataSavedDto.prototype, "notes", void 0);
|
|
@@ -2,7 +2,7 @@ import { BusinessCustomerType, CustomerType } from '../../../common/constants';
|
|
|
2
2
|
import { SaleProcessCompanyIdentificationDto, SaleProcessIndividualIdentificationDto } from '../../sale-process';
|
|
3
3
|
import { GenericSaleProcessStatus } from '../constants';
|
|
4
4
|
export declare class PartialGenericSaleProcessCustomerTypeSelectedCustomerDto {
|
|
5
|
-
|
|
5
|
+
type: CustomerType;
|
|
6
6
|
identification?: SaleProcessIndividualIdentificationDto;
|
|
7
7
|
}
|
|
8
8
|
export declare class PartialGenericSaleProcessCustomerTypeSelectedBusinessDto {
|
|
@@ -17,19 +17,19 @@ const class_transformer_1 = require("class-transformer");
|
|
|
17
17
|
const class_validator_1 = require("class-validator");
|
|
18
18
|
const constants_2 = require("../constants");
|
|
19
19
|
class PartialGenericSaleProcessCustomerTypeSelectedCustomerDto {
|
|
20
|
-
|
|
20
|
+
type;
|
|
21
21
|
identification;
|
|
22
22
|
static _OPENAPI_METADATA_FACTORY() {
|
|
23
|
-
return {
|
|
23
|
+
return { type: { required: true, enum: require("../../../common/constants/common.constants").CustomerType }, identification: { required: false, type: () => require("../../sale-process/identification.entity").SaleProcessIndividualIdentificationDto } };
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
exports.PartialGenericSaleProcessCustomerTypeSelectedCustomerDto = PartialGenericSaleProcessCustomerTypeSelectedCustomerDto;
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, class_validator_1.IsEnum)(constants_1.CustomerType),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
|
-
], PartialGenericSaleProcessCustomerTypeSelectedCustomerDto.prototype, "
|
|
30
|
+
], PartialGenericSaleProcessCustomerTypeSelectedCustomerDto.prototype, "type", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, class_validator_1.ValidateIf)((o) => o.
|
|
32
|
+
(0, class_validator_1.ValidateIf)((o) => o.type === constants_1.CustomerType.RESIDENTIAL),
|
|
33
33
|
(0, class_validator_1.IsDefined)(),
|
|
34
34
|
(0, class_validator_1.ValidateNested)(),
|
|
35
35
|
(0, class_transformer_1.Type)(() => sale_process_1.SaleProcessIndividualIdentificationDto),
|
|
@@ -74,7 +74,7 @@ __decorate([
|
|
|
74
74
|
__metadata("design:type", PartialGenericSaleProcessCustomerTypeSelectedCustomerDto)
|
|
75
75
|
], PatchGenericSaleProcessCustomerTypeSelectedDto.prototype, "customer", void 0);
|
|
76
76
|
__decorate([
|
|
77
|
-
(0, class_validator_1.ValidateIf)((o) => o.customer && o.customer.
|
|
77
|
+
(0, class_validator_1.ValidateIf)((o) => o.customer && o.customer.type === constants_1.CustomerType.BUSINESS),
|
|
78
78
|
(0, class_validator_1.IsDefined)(),
|
|
79
79
|
(0, class_validator_1.ValidateNested)(),
|
|
80
80
|
(0, class_transformer_1.Type)(() => PartialGenericSaleProcessCustomerTypeSelectedBusinessDto),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExistingCustomerBehaviourType } from '../../common';
|
|
2
2
|
import { GenericSaleProcessStatus } from '../constants';
|
|
3
3
|
declare class PartialCustomerDto {
|
|
4
|
-
|
|
4
|
+
accountBehaviour: ExistingCustomerBehaviourType;
|
|
5
5
|
}
|
|
6
6
|
export declare class PatchGenericSaleProcessCustomerTypeValidatedDto {
|
|
7
7
|
status: GenericSaleProcessStatus;
|
|
@@ -16,15 +16,15 @@ const class_validator_1 = require("class-validator");
|
|
|
16
16
|
const constants_1 = require("../constants");
|
|
17
17
|
const class_transformer_1 = require("class-transformer");
|
|
18
18
|
class PartialCustomerDto {
|
|
19
|
-
|
|
19
|
+
accountBehaviour;
|
|
20
20
|
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
-
return {
|
|
21
|
+
return { accountBehaviour: { required: true, enum: require("../../common/common.constants").ExistingCustomerBehaviourType } };
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsEnum)(common_1.ExistingCustomerBehaviourType),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
], PartialCustomerDto.prototype, "
|
|
27
|
+
], PartialCustomerDto.prototype, "accountBehaviour", void 0);
|
|
28
28
|
class PatchGenericSaleProcessCustomerTypeValidatedDto {
|
|
29
29
|
status;
|
|
30
30
|
customer;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from './address-search.entity';
|
|
2
2
|
export * from './bundle-selected.entity';
|
|
3
|
+
export * from './contract-data-saved-digitel.entity';
|
|
4
|
+
export * from './contract-data-saved.entity';
|
|
3
5
|
export * from './customer-type-selected.entity';
|
|
4
6
|
export * from './customer-type-validated.entity';
|
|
5
7
|
export * from './shopping-cart-updated.entity';
|
|
8
|
+
export * from './patch-customer-account-behaviour.entity';
|
|
@@ -16,6 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./address-search.entity"), exports);
|
|
18
18
|
__exportStar(require("./bundle-selected.entity"), exports);
|
|
19
|
+
__exportStar(require("./contract-data-saved-digitel.entity"), exports);
|
|
20
|
+
__exportStar(require("./contract-data-saved.entity"), exports);
|
|
19
21
|
__exportStar(require("./customer-type-selected.entity"), exports);
|
|
20
22
|
__exportStar(require("./customer-type-validated.entity"), exports);
|
|
21
23
|
__exportStar(require("./shopping-cart-updated.entity"), exports);
|
|
24
|
+
__exportStar(require("./patch-customer-account-behaviour.entity"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SaleProcessCompanyIdentificationDto } from '../../sale-process';
|
|
2
|
+
declare class PartialBusinessDto {
|
|
3
|
+
identification: SaleProcessCompanyIdentificationDto;
|
|
4
|
+
}
|
|
5
|
+
export declare class PartialGenericSaleProcessContractDataSavedPatchBehaviourBusinessDto {
|
|
6
|
+
business: PartialBusinessDto;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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.PartialGenericSaleProcessContractDataSavedPatchBehaviourBusinessDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const sale_process_1 = require("../../sale-process");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const class_validator_1 = require("class-validator");
|
|
17
|
+
class PartialBusinessDto {
|
|
18
|
+
identification;
|
|
19
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
+
return { identification: { required: true, type: () => require("../../sale-process/identification.entity").SaleProcessCompanyIdentificationDto } };
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsDefined)(),
|
|
25
|
+
(0, class_validator_1.ValidateNested)(),
|
|
26
|
+
(0, class_transformer_1.Type)(() => sale_process_1.SaleProcessCompanyIdentificationDto),
|
|
27
|
+
__metadata("design:type", sale_process_1.SaleProcessCompanyIdentificationDto)
|
|
28
|
+
], PartialBusinessDto.prototype, "identification", void 0);
|
|
29
|
+
class PartialGenericSaleProcessContractDataSavedPatchBehaviourBusinessDto {
|
|
30
|
+
business;
|
|
31
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
32
|
+
return { business: { required: true, type: () => PartialBusinessDto } };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.PartialGenericSaleProcessContractDataSavedPatchBehaviourBusinessDto = PartialGenericSaleProcessContractDataSavedPatchBehaviourBusinessDto;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsDefined)(),
|
|
38
|
+
(0, class_validator_1.ValidateNested)(),
|
|
39
|
+
(0, class_transformer_1.Type)(() => PartialBusinessDto),
|
|
40
|
+
__metadata("design:type", PartialBusinessDto)
|
|
41
|
+
], PartialGenericSaleProcessContractDataSavedPatchBehaviourBusinessDto.prototype, "business", void 0);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CreditBureauValidationProcessDto } from '../common';
|
|
1
|
+
import { CreateProcessAuditFieldsDto, CreditBureauValidationProcessDto } from '../common';
|
|
2
2
|
export declare class SaleProcessCreditBureauValidationDto extends CreditBureauValidationProcessDto {
|
|
3
3
|
saleProcessId: number;
|
|
4
4
|
}
|
|
5
|
-
declare const CreateSaleProcessCreditBureauValidationDto_base: import("@nestjs/common").Type<
|
|
5
|
+
declare const CreateSaleProcessCreditBureauValidationDto_base: import("@nestjs/common").Type<Pick<SaleProcessCreditBureauValidationDto, "identification" | "status" | "saleProcessId" | "cache" | "errors">>;
|
|
6
6
|
export declare class CreateSaleProcessCreditBureauValidationDto extends CreateSaleProcessCreditBureauValidationDto_base {
|
|
7
|
+
created: CreateProcessAuditFieldsDto;
|
|
7
8
|
}
|
|
8
9
|
export {};
|
|
@@ -11,9 +11,16 @@ class SaleProcessCreditBureauValidationDto extends common_1.CreditBureauValidati
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.SaleProcessCreditBureauValidationDto = SaleProcessCreditBureauValidationDto;
|
|
14
|
-
class CreateSaleProcessCreditBureauValidationDto extends (0, swagger_1.
|
|
14
|
+
class CreateSaleProcessCreditBureauValidationDto extends (0, swagger_1.PickType)(SaleProcessCreditBureauValidationDto, [
|
|
15
|
+
'saleProcessId',
|
|
16
|
+
'status',
|
|
17
|
+
'identification',
|
|
18
|
+
'cache',
|
|
19
|
+
'errors'
|
|
20
|
+
]) {
|
|
21
|
+
created;
|
|
15
22
|
static _OPENAPI_METADATA_FACTORY() {
|
|
16
|
-
return {};
|
|
23
|
+
return { created: { required: true, type: () => require("../common/common.entity").CreateProcessAuditFieldsDto } };
|
|
17
24
|
}
|
|
18
25
|
}
|
|
19
26
|
exports.CreateSaleProcessCreditBureauValidationDto = CreateSaleProcessCreditBureauValidationDto;
|
|
@@ -2,7 +2,7 @@ export * from './internal/internal.entity';
|
|
|
2
2
|
export * from './identification.entity';
|
|
3
3
|
export * from './sale-process.consent-data.entity';
|
|
4
4
|
export * from './constants';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './credit-bureau-validation.entity';
|
|
6
6
|
export * from './sale-process.entity';
|
|
7
7
|
export * from './sale-process.file.entity';
|
|
8
8
|
export * from './sale-process.sign-flow.entity';
|
|
@@ -18,7 +18,7 @@ __exportStar(require("./internal/internal.entity"), exports);
|
|
|
18
18
|
__exportStar(require("./identification.entity"), exports);
|
|
19
19
|
__exportStar(require("./sale-process.consent-data.entity"), exports);
|
|
20
20
|
__exportStar(require("./constants"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./credit-bureau-validation.entity"), exports);
|
|
22
22
|
__exportStar(require("./sale-process.entity"), exports);
|
|
23
23
|
__exportStar(require("./sale-process.file.entity"), exports);
|
|
24
24
|
__exportStar(require("./sale-process.sign-flow.entity"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SaleProcessIndividualIdentificationDto } from '../identification.entity';
|
|
2
|
+
export declare class PartialCustomerDto {
|
|
3
|
+
identification: SaleProcessIndividualIdentificationDto;
|
|
4
|
+
}
|
|
5
|
+
export declare class PartialSaleProcessContractDataSavedPatchBehaviourCustomerIdentificationDto {
|
|
6
|
+
customer: PartialCustomerDto;
|
|
7
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.PartialSaleProcessContractDataSavedPatchBehaviourCustomerIdentificationDto = exports.PartialCustomerDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const identification_entity_1 = require("../identification.entity");
|
|
17
|
+
class PartialCustomerDto {
|
|
18
|
+
identification;
|
|
19
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
+
return { identification: { required: true, type: () => require("../identification.entity").SaleProcessIndividualIdentificationDto } };
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.PartialCustomerDto = PartialCustomerDto;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsDefined)(),
|
|
26
|
+
(0, class_validator_1.ValidateNested)(),
|
|
27
|
+
(0, class_transformer_1.Type)(() => identification_entity_1.SaleProcessIndividualIdentificationDto),
|
|
28
|
+
__metadata("design:type", identification_entity_1.SaleProcessIndividualIdentificationDto)
|
|
29
|
+
], PartialCustomerDto.prototype, "identification", void 0);
|
|
30
|
+
class PartialSaleProcessContractDataSavedPatchBehaviourCustomerIdentificationDto {
|
|
31
|
+
customer;
|
|
32
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
33
|
+
return { customer: { required: true, type: () => require("./contract-data-saved.entity").PartialCustomerDto } };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PartialSaleProcessContractDataSavedPatchBehaviourCustomerIdentificationDto = PartialSaleProcessContractDataSavedPatchBehaviourCustomerIdentificationDto;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsDefined)(),
|
|
39
|
+
(0, class_validator_1.ValidateNested)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => PartialCustomerDto),
|
|
41
|
+
__metadata("design:type", PartialCustomerDto)
|
|
42
|
+
], PartialSaleProcessContractDataSavedPatchBehaviourCustomerIdentificationDto.prototype, "customer", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './contract-data-saved.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
__exportStar(require("./contract-data-saved.entity"), exports);
|