adamo-types 1.2.126-sit → 1.2.127-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.
|
@@ -39,12 +39,18 @@ export declare class ApprovalCustomerDto {
|
|
|
39
39
|
email: string;
|
|
40
40
|
phones: string[];
|
|
41
41
|
}
|
|
42
|
+
export declare class ApprovalCustomerDtoBuilder extends Builder<ApprovalCustomerDto> {
|
|
43
|
+
setDefaults(): ApprovalCustomerDto;
|
|
44
|
+
}
|
|
42
45
|
export declare class ApprovalBusinessDto {
|
|
43
46
|
type: CustomerAccountOrganizationEntityType;
|
|
44
47
|
tradingName: string;
|
|
45
48
|
legalName: string;
|
|
46
49
|
identification?: ApprovalOrganizationIdentificationDto;
|
|
47
50
|
}
|
|
51
|
+
export declare class ApprovalBusinessDtoBuilder extends Builder<ApprovalBusinessDto> {
|
|
52
|
+
setDefaults(): ApprovalBusinessDto;
|
|
53
|
+
}
|
|
48
54
|
export declare class ApprovalBillingDto {
|
|
49
55
|
firstName: string;
|
|
50
56
|
lastName: string;
|
|
@@ -52,6 +58,9 @@ export declare class ApprovalBillingDto {
|
|
|
52
58
|
iban: string;
|
|
53
59
|
ibanValidationId?: string;
|
|
54
60
|
}
|
|
61
|
+
export declare class ApprovalBillingDtoBuilder extends Builder<ApprovalBillingDto> {
|
|
62
|
+
setDefaults(): ApprovalBillingDto;
|
|
63
|
+
}
|
|
55
64
|
export declare class ApprovalDto {
|
|
56
65
|
id: number;
|
|
57
66
|
saleProcessId: number;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateApprovalValidationDataDto = exports.ApprovalValidationDataDtoBuilder = exports.ApprovalValidationDataDto = exports.UpdateApprovalSaleProcessDto = exports.PatchApprovalValidationDataDto = exports.PatchApprovalDataDto = exports.UpdateApprovalDataDto = exports.PartialCreateApprovalDataDto = exports.CreateApprovalDataDto = exports.ApprovalWithGroupsDto = exports.ApprovalDataGroupDto = exports.ApprovalDataDtoBuilder = exports.ApprovalDataDto = exports.ApprovalDataCustomerDto = exports.UpdateApprovalDto = exports.UpdateApprovalBusinessDto = exports.UpdateApprovalBillingDto = exports.UpdateApprovalCustomerDto = exports.PartialCreateApprovalDto = exports.CreateApprovalDto = exports.ApprovalDto = exports.ApprovalBillingDto = exports.ApprovalBusinessDto = exports.ApprovalCustomerDto = exports.ApprovalOrganizationIdentificationDto = exports.ApprovalIndividualIdentificationDto = exports.ApprovalValidationDataFilterDto = exports.ApprovalFilterDto = exports.DashboardApprovalFilterDto = void 0;
|
|
12
|
+
exports.CreateApprovalValidationDataDto = exports.ApprovalValidationDataDtoBuilder = exports.ApprovalValidationDataDto = exports.UpdateApprovalSaleProcessDto = exports.PatchApprovalValidationDataDto = exports.PatchApprovalDataDto = exports.UpdateApprovalDataDto = exports.PartialCreateApprovalDataDto = exports.CreateApprovalDataDto = exports.ApprovalWithGroupsDto = exports.ApprovalDataGroupDto = exports.ApprovalDataDtoBuilder = exports.ApprovalDataDto = exports.ApprovalDataCustomerDto = exports.UpdateApprovalDto = exports.UpdateApprovalBusinessDto = exports.UpdateApprovalBillingDto = exports.UpdateApprovalCustomerDto = exports.PartialCreateApprovalDto = exports.CreateApprovalDto = exports.ApprovalDto = exports.ApprovalBillingDtoBuilder = exports.ApprovalBillingDto = exports.ApprovalBusinessDtoBuilder = exports.ApprovalBusinessDto = exports.ApprovalCustomerDtoBuilder = exports.ApprovalCustomerDto = exports.ApprovalOrganizationIdentificationDto = exports.ApprovalIndividualIdentificationDto = exports.ApprovalValidationDataFilterDto = exports.ApprovalFilterDto = exports.DashboardApprovalFilterDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const shopping_cart_1 = require("../shopping-cart");
|
|
@@ -20,7 +20,8 @@ const common_1 = require("../common");
|
|
|
20
20
|
const sale_process_1 = require("../../zoho/sale-process");
|
|
21
21
|
const edge_zoho_1 = require("../../common/edge-zoho");
|
|
22
22
|
const common_entity_1 = require("../../common/common.entity");
|
|
23
|
-
const constants_1 = require("
|
|
23
|
+
const constants_1 = require("../../bss/constants");
|
|
24
|
+
const constants_2 = require("../constants");
|
|
24
25
|
const helpers_1 = require("../../common/helpers/helpers");
|
|
25
26
|
const faker_1 = require("@faker-js/faker");
|
|
26
27
|
class DashboardApprovalFilterDto extends common_entity_1.PaginationQueryDto {
|
|
@@ -150,18 +151,69 @@ class ApprovalCustomerDto {
|
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
153
|
exports.ApprovalCustomerDto = ApprovalCustomerDto;
|
|
154
|
+
class ApprovalCustomerDtoBuilder extends helpers_1.Builder {
|
|
155
|
+
setDefaults() {
|
|
156
|
+
return {
|
|
157
|
+
type: faker_1.faker.helpers.enumValue(shopping_cart_1.CustomerType),
|
|
158
|
+
identification: undefined,
|
|
159
|
+
title: faker_1.faker.helpers.enumValue(constants_1.PersonTitle),
|
|
160
|
+
firstName: faker_1.faker.person.firstName(),
|
|
161
|
+
lastName: faker_1.faker.person.lastName(),
|
|
162
|
+
email: faker_1.faker.internet.email(),
|
|
163
|
+
phones: faker_1.faker.helpers.arrayElements([
|
|
164
|
+
faker_1.faker.helpers.fromRegExp('[6789][0-9]{8}'),
|
|
165
|
+
faker_1.faker.helpers.fromRegExp('[6789][0-9]{8}'),
|
|
166
|
+
faker_1.faker.helpers.fromRegExp('[6789][0-9]{8}'),
|
|
167
|
+
faker_1.faker.helpers.fromRegExp('[6789][0-9]{8}'),
|
|
168
|
+
faker_1.faker.helpers.fromRegExp('[6789][0-9]{8}')
|
|
169
|
+
], 2)
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
173
|
+
return {};
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
exports.ApprovalCustomerDtoBuilder = ApprovalCustomerDtoBuilder;
|
|
153
177
|
class ApprovalBusinessDto {
|
|
154
178
|
static _OPENAPI_METADATA_FACTORY() {
|
|
155
179
|
return { type: { required: true, enum: require("../../bss/constants/bp.constants").CustomerAccountOrganizationEntityType }, tradingName: { required: true, type: () => String }, legalName: { required: true, type: () => String }, identification: { required: false, type: () => require("./approval.entity").ApprovalOrganizationIdentificationDto } };
|
|
156
180
|
}
|
|
157
181
|
}
|
|
158
182
|
exports.ApprovalBusinessDto = ApprovalBusinessDto;
|
|
183
|
+
class ApprovalBusinessDtoBuilder extends helpers_1.Builder {
|
|
184
|
+
setDefaults() {
|
|
185
|
+
return {
|
|
186
|
+
type: faker_1.faker.helpers.enumValue(constants_1.CustomerAccountOrganizationEntityType),
|
|
187
|
+
tradingName: faker_1.faker.company.name(),
|
|
188
|
+
legalName: faker_1.faker.company.name(),
|
|
189
|
+
identification: undefined
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
193
|
+
return {};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.ApprovalBusinessDtoBuilder = ApprovalBusinessDtoBuilder;
|
|
159
197
|
class ApprovalBillingDto {
|
|
160
198
|
static _OPENAPI_METADATA_FACTORY() {
|
|
161
199
|
return { firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, identification: { required: false, type: () => require("./approval.entity").ApprovalIndividualIdentificationDto }, iban: { required: true, type: () => String }, ibanValidationId: { required: false, type: () => String } };
|
|
162
200
|
}
|
|
163
201
|
}
|
|
164
202
|
exports.ApprovalBillingDto = ApprovalBillingDto;
|
|
203
|
+
class ApprovalBillingDtoBuilder extends helpers_1.Builder {
|
|
204
|
+
setDefaults() {
|
|
205
|
+
return {
|
|
206
|
+
firstName: faker_1.faker.person.firstName(),
|
|
207
|
+
lastName: faker_1.faker.person.lastName(),
|
|
208
|
+
identification: undefined,
|
|
209
|
+
iban: faker_1.faker.finance.iban({ countryCode: 'ES' })
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
213
|
+
return {};
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
exports.ApprovalBillingDtoBuilder = ApprovalBillingDtoBuilder;
|
|
165
217
|
class ApprovalDto {
|
|
166
218
|
static _OPENAPI_METADATA_FACTORY() {
|
|
167
219
|
return { id: { required: true, type: () => Number }, saleProcessId: { required: true, type: () => Number }, saleProcessIbanValidationId: { required: false, type: () => String }, data: { required: false, type: () => [require("./approval.entity").ApprovalDataDto] }, validationData: { required: false, type: () => [require("./approval.entity").ApprovalValidationDataDto] }, validations: { required: true, enum: require("../constants/sys03.constants").SaleProcessApprovalValidation, isArray: true }, owner: { required: true, type: () => String }, channel: { required: true, type: () => String }, apartmentId: { required: true, type: () => String }, customer: { required: true, type: () => require("./approval.entity").ApprovalCustomerDto }, billing: { required: true, type: () => require("./approval.entity").ApprovalBillingDto }, business: { required: false, type: () => require("./approval.entity").ApprovalBusinessDto }, shoppingCartId: { required: false, type: () => String }, shoppingCartPhones: { required: false, type: () => [String] }, created: { required: true, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: false, type: () => require("../common/common.entity").AuditFieldsDto }, approved: { required: false, type: () => require("../common/common.entity").AuditFieldsWithValueDto } };
|
|
@@ -221,7 +273,7 @@ class ApprovalDataDtoBuilder extends helpers_1.Builder {
|
|
|
221
273
|
return {
|
|
222
274
|
id: faker_1.faker.number.int(),
|
|
223
275
|
approvalId: faker_1.faker.number.int(),
|
|
224
|
-
validation: faker_1.faker.helpers.enumValue(
|
|
276
|
+
validation: faker_1.faker.helpers.enumValue(constants_2.SaleProcessApprovalValidation),
|
|
225
277
|
active: faker_1.faker.datatype.boolean(0.99),
|
|
226
278
|
approved: null,
|
|
227
279
|
created: new common_1.AuditFieldsDtoBuilder().build()
|
|
@@ -336,7 +388,7 @@ class ApprovalValidationDataDtoBuilder extends helpers_1.Builder {
|
|
|
336
388
|
return {
|
|
337
389
|
id: faker_1.faker.number.int(),
|
|
338
390
|
approvalId: faker_1.faker.number.int(),
|
|
339
|
-
validation: faker_1.faker.helpers.enumValue(
|
|
391
|
+
validation: faker_1.faker.helpers.enumValue(constants_2.SaleProcessApprovalValidation),
|
|
340
392
|
approved: undefined,
|
|
341
393
|
created: new common_1.AuditFieldsDtoBuilder().build()
|
|
342
394
|
};
|