adamo-types 2.1.42 → 2.1.43-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 +10 -9
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity.js +9 -8
- package/dist/common/constants/common.error.constants.d.ts +0 -1
- package/dist/common/constants/common.error.constants.js +4 -5
- package/dist/common/constants/digitel.error.constants.d.ts +2 -0
- package/dist/common/constants/digitel.error.constants.js +3 -1
- package/dist/common/constants/not-found.error.constants.d.ts +5 -0
- package/dist/common/constants/not-found.error.constants.js +7 -2
- package/dist/common/constants/sale-process.error.constants.d.ts +2 -0
- package/dist/common/constants/sale-process.error.constants.js +3 -1
- package/dist/common/constants/shopping-cart.error.constants.d.ts +1 -0
- package/dist/common/constants/shopping-cart.error.constants.js +2 -1
- package/dist/common/edge-bss/shopping-cart/req/other.entity.d.ts +0 -3
- package/dist/common/edge-bss/shopping-cart/req/other.entity.js +1 -7
- package/dist/common/edge-zoho/sale-process/req/patch.entity.d.ts +9 -9
- package/dist/common/edge-zoho/sale-process/req/patch.entity.js +25 -25
- package/dist/digitel/auth.entity.d.ts +0 -3
- package/dist/digitel/auth.entity.js +1 -7
- package/dist/digitel/constants.d.ts +6 -0
- package/dist/digitel/constants.js +8 -1
- package/dist/digitel/event.entity.d.ts +10 -0
- package/dist/digitel/event.entity.js +10 -0
- package/dist/digitel/index.d.ts +1 -0
- package/dist/digitel/index.js +1 -0
- package/dist/digitel/status-dic.js +2 -0
- package/dist/sys03/aggrupation/aggrupation-file.entity.d.ts +27 -0
- package/dist/sys03/aggrupation/aggrupation-file.entity.js +91 -0
- package/dist/sys03/aggrupation/aggrupation-sign-flow.entity.d.ts +24 -0
- package/dist/sys03/aggrupation/aggrupation-sign-flow.entity.js +33 -0
- package/dist/sys03/aggrupation/aggrupation.constants.d.ts +12 -0
- package/dist/sys03/aggrupation/aggrupation.constants.js +14 -1
- package/dist/sys03/aggrupation/aggrupation.entity.d.ts +5 -6
- package/dist/sys03/aggrupation/aggrupation.entity.js +2 -28
- package/dist/sys03/aggrupation/index.d.ts +2 -0
- package/dist/sys03/aggrupation/index.js +2 -0
- package/dist/sys03/approval/approval.entity.d.ts +4 -3
- package/dist/sys03/approval/approval.entity.js +3 -3
- package/dist/sys03/common/common.entity.d.ts +3 -16
- package/dist/sys03/common/common.entity.js +7 -33
- package/dist/sys03/customer/customer-account.entitty.d.ts +6 -2
- package/dist/sys03/customer/customer.constants.d.ts +2 -0
- package/dist/sys03/customer/customer.constants.js +3 -1
- package/dist/sys03/customer-handover-process/customer-handover-process.entity.d.ts +7 -7
- package/dist/sys03/customer-handover-process/customer-handover-process.entity.js +9 -9
- package/dist/sys03/customer-handover-process/index.d.ts +1 -1
- package/dist/sys03/customer-handover-process/index.js +1 -1
- package/dist/sys03/generic-sale-process/constants.d.ts +9 -0
- package/dist/sys03/generic-sale-process/constants.js +13 -0
- package/dist/sys03/generic-sale-process/entity.d.ts +78 -0
- package/dist/sys03/generic-sale-process/entity.js +32 -0
- package/dist/sys03/generic-sale-process/index.d.ts +3 -0
- package/dist/{ams → sys03/generic-sale-process}/index.js +3 -1
- package/dist/sys03/generic-sale-process/patch/address-search.entity.d.ts +20 -0
- package/dist/sys03/generic-sale-process/patch/address-search.entity.js +137 -0
- package/dist/sys03/generic-sale-process/patch/bundle-selected.entity.d.ts +6 -0
- package/dist/sys03/generic-sale-process/patch/bundle-selected.entity.js +38 -0
- package/dist/sys03/generic-sale-process/patch/customer-type-selected.entity.d.ts +16 -0
- package/dist/sys03/generic-sale-process/patch/customer-type-selected.entity.js +75 -0
- package/dist/sys03/generic-sale-process/patch/customer-type-validated.entity.d.ts +10 -0
- package/dist/sys03/generic-sale-process/patch/customer-type-validated.entity.js +42 -0
- package/dist/sys03/generic-sale-process/patch/index.d.ts +4 -0
- package/dist/sys03/generic-sale-process/patch/index.js +20 -0
- package/dist/sys03/sale-process/constants.d.ts +17 -0
- package/dist/sys03/sale-process/constants.js +23 -0
- package/dist/sys03/sale-process/identification.entity.d.ts +11 -0
- package/dist/sys03/sale-process/identification.entity.js +97 -0
- package/dist/sys03/sale-process/index.d.ts +4 -0
- package/dist/sys03/sale-process/index.js +4 -0
- package/dist/sys03/sale-process/internal/internal.entity.d.ts +0 -14
- package/dist/sys03/sale-process/internal/internal.entity.js +1 -7
- package/dist/sys03/sale-process/sale-process.entity.d.ts +4 -0
- package/dist/sys03/sale-process/sale-process.entity.js +19 -1
- package/dist/sys03/sale-process/sale-process.file.entity.d.ts +4 -2
- package/dist/sys03/sale-process/sale-process.file.entity.js +12 -4
- package/dist/sys03/sale-process/sale-process.sign-flow.entity.d.ts +24 -0
- package/dist/sys03/sale-process/sale-process.sign-flow.entity.js +29 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/zoho/constants/zoho.constants.d.ts +3 -8
- package/dist/zoho/constants/zoho.constants.js +4 -11
- package/dist/zoho/sale-process/business-info.entity.d.ts +2 -2
- package/dist/zoho/sale-process/business-info.entity.js +1 -9
- package/dist/zoho/sale-process/customer.entity.d.ts +2 -2
- package/dist/zoho/sale-process/customer.entity.js +1 -9
- package/dist/zoho/sale-process/index.d.ts +0 -2
- package/dist/zoho/sale-process/index.js +0 -2
- package/dist/zoho/sale-process/sale-process.entity.d.ts +2 -0
- package/dist/zoho/sale-process/sale-process.entity.js +1 -1
- package/package.json +2 -2
- package/dist/ams/ams.entity.d.ts +0 -76
- package/dist/ams/ams.entity.js +0 -3
- package/dist/ams/index.d.ts +0 -1
- package/dist/zoho/sale-process/business-identification.entity.d.ts +0 -6
- package/dist/zoho/sale-process/business-identification.entity.js +0 -55
- package/dist/zoho/sale-process/customer-identification.entity.d.ts +0 -6
- package/dist/zoho/sale-process/customer-identification.entity.js +0 -56
- /package/dist/sys03/customer-handover-process/{cusotmer-handover-process-credit-bureau-validation.entity.d.ts → customer-handover-process-credit-bureau-validation.entity.d.ts} +0 -0
- /package/dist/sys03/customer-handover-process/{cusotmer-handover-process-credit-bureau-validation.entity.js → customer-handover-process-credit-bureau-validation.entity.js} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BpCustomerAccountDocumentType } from '../../bss/constants';
|
|
2
|
+
export declare class CustomerAggrupationFileDto {
|
|
3
|
+
id: number;
|
|
4
|
+
aggrupationId: number;
|
|
5
|
+
documentId?: string;
|
|
6
|
+
fileName: string;
|
|
7
|
+
contentType: string;
|
|
8
|
+
type: BpCustomerAccountDocumentType;
|
|
9
|
+
comment?: string;
|
|
10
|
+
transactionId?: string;
|
|
11
|
+
signFlowId?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const CreateCustomerAggrupationFileDto_base: import("@nestjs/common").Type<Pick<CustomerAggrupationFileDto, "type" | "fileName" | "contentType" | "comment" | "aggrupationId" | "transactionId" | "signFlowId">>;
|
|
14
|
+
export declare class CreateCustomerAggrupationFileDto extends CreateCustomerAggrupationFileDto_base {
|
|
15
|
+
}
|
|
16
|
+
declare const PatchCustomerAggrupationFileDto_base: import("@nestjs/common").Type<Partial<Pick<CustomerAggrupationFileDto, "type" | "fileName" | "comment" | "documentId">>>;
|
|
17
|
+
export declare class PatchCustomerAggrupationFileDto extends PatchCustomerAggrupationFileDto_base {
|
|
18
|
+
}
|
|
19
|
+
export declare class CreateCustomerAggrupationFileReqDto {
|
|
20
|
+
aggrupationId: number;
|
|
21
|
+
fileName: string;
|
|
22
|
+
type: BpCustomerAccountDocumentType;
|
|
23
|
+
comment?: string;
|
|
24
|
+
transactionId?: string;
|
|
25
|
+
signFlowId?: string;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
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.CreateCustomerAggrupationFileReqDto = exports.PatchCustomerAggrupationFileDto = exports.CreateCustomerAggrupationFileDto = exports.CustomerAggrupationFileDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const constants_1 = require("../../bss/constants");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const _validators_1 = require("../../validators/index");
|
|
17
|
+
const class_transformer_1 = require("class-transformer");
|
|
18
|
+
const class_validator_1 = require("class-validator");
|
|
19
|
+
class CustomerAggrupationFileDto {
|
|
20
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
+
return { id: { required: true, type: () => Number }, aggrupationId: { required: true, type: () => Number }, documentId: { required: false, type: () => String }, fileName: { required: true, type: () => String }, contentType: { required: true, type: () => String }, type: { required: true, enum: require("../../bss/constants/bp.constants").BpCustomerAccountDocumentType }, comment: { required: false, type: () => String }, transactionId: { required: false, type: () => String }, signFlowId: { required: false, type: () => String } };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.CustomerAggrupationFileDto = CustomerAggrupationFileDto;
|
|
25
|
+
class CreateCustomerAggrupationFileDto extends (0, swagger_1.PickType)(CustomerAggrupationFileDto, [
|
|
26
|
+
'aggrupationId',
|
|
27
|
+
'fileName',
|
|
28
|
+
'contentType',
|
|
29
|
+
'type',
|
|
30
|
+
'comment',
|
|
31
|
+
'transactionId',
|
|
32
|
+
'signFlowId'
|
|
33
|
+
]) {
|
|
34
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.CreateCustomerAggrupationFileDto = CreateCustomerAggrupationFileDto;
|
|
39
|
+
class PatchCustomerAggrupationFileDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(CustomerAggrupationFileDto, ['documentId', 'fileName', 'type', 'comment'])) {
|
|
40
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.PatchCustomerAggrupationFileDto = PatchCustomerAggrupationFileDto;
|
|
45
|
+
class CreateCustomerAggrupationFileReqDto {
|
|
46
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
47
|
+
return { aggrupationId: { required: true, type: () => Number }, fileName: { required: true, type: () => String }, type: { required: true, enum: require("../../bss/constants/bp.constants").BpCustomerAccountDocumentType }, comment: { required: false, type: () => String, maxLength: 1000 }, transactionId: { required: false, type: () => String }, signFlowId: { required: false, type: () => String } };
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.CreateCustomerAggrupationFileReqDto = CreateCustomerAggrupationFileReqDto;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsInt)(),
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
54
|
+
if (value) {
|
|
55
|
+
return Number(value);
|
|
56
|
+
}
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], CreateCustomerAggrupationFileReqDto.prototype, "aggrupationId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
63
|
+
(0, _validators_1.IsNotBlank)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CreateCustomerAggrupationFileReqDto.prototype, "fileName", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsEnum)(constants_1.BpCustomerAccountDocumentType),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], CreateCustomerAggrupationFileReqDto.prototype, "type", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
73
|
+
(0, _validators_1.IsNotBlank)(),
|
|
74
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CreateCustomerAggrupationFileReqDto.prototype, "comment", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsString)(),
|
|
80
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
81
|
+
(0, _validators_1.IsNotBlank)(),
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], CreateCustomerAggrupationFileReqDto.prototype, "transactionId", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_1.IsString)(),
|
|
87
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
88
|
+
(0, _validators_1.IsNotBlank)(),
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], CreateCustomerAggrupationFileReqDto.prototype, "signFlowId", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AuditDateDto, PartialAuditDateDto } from '../common';
|
|
2
|
+
import { CustomerAggrupationSignFlowStatus } from './aggrupation.constants';
|
|
3
|
+
export declare class CustomerAggrupationSignFlowPreconditionDto {
|
|
4
|
+
value?: boolean;
|
|
5
|
+
acceptedAt?: Date;
|
|
6
|
+
}
|
|
7
|
+
export declare class CustomerAggrupationSignFlowDto {
|
|
8
|
+
id: number;
|
|
9
|
+
aggrupationId: number;
|
|
10
|
+
signFlowId: string;
|
|
11
|
+
status: CustomerAggrupationSignFlowStatus;
|
|
12
|
+
operationsIds: string[];
|
|
13
|
+
gdprShareOtherGroup?: CustomerAggrupationSignFlowPreconditionDto;
|
|
14
|
+
gdprShareThirdParties?: CustomerAggrupationSignFlowPreconditionDto;
|
|
15
|
+
created: AuditDateDto;
|
|
16
|
+
updated: PartialAuditDateDto;
|
|
17
|
+
}
|
|
18
|
+
declare const CreateCustomerAggrupationSignFlowDto_base: import("@nestjs/common").Type<Pick<CustomerAggrupationSignFlowDto, "aggrupationId" | "signFlowId" | "operationsIds">>;
|
|
19
|
+
export declare class CreateCustomerAggrupationSignFlowDto extends CreateCustomerAggrupationSignFlowDto_base {
|
|
20
|
+
}
|
|
21
|
+
declare const PatchCustomerAggrupationSignFlowDto_base: import("@nestjs/common").Type<Partial<Pick<CustomerAggrupationSignFlowDto, "status" | "gdprShareOtherGroup" | "gdprShareThirdParties">>>;
|
|
22
|
+
export declare class PatchCustomerAggrupationSignFlowDto extends PatchCustomerAggrupationSignFlowDto_base {
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PatchCustomerAggrupationSignFlowDto = exports.CreateCustomerAggrupationSignFlowDto = exports.CustomerAggrupationSignFlowDto = exports.CustomerAggrupationSignFlowPreconditionDto = void 0;
|
|
4
|
+
const openapi = require("@nestjs/swagger");
|
|
5
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
6
|
+
class CustomerAggrupationSignFlowPreconditionDto {
|
|
7
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
8
|
+
return { value: { required: false, type: () => Boolean }, acceptedAt: { required: false, type: () => Date } };
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CustomerAggrupationSignFlowPreconditionDto = CustomerAggrupationSignFlowPreconditionDto;
|
|
12
|
+
class CustomerAggrupationSignFlowDto {
|
|
13
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
14
|
+
return { id: { required: true, type: () => Number }, aggrupationId: { required: true, type: () => Number }, signFlowId: { required: true, type: () => String }, status: { required: true, enum: require("./aggrupation.constants").CustomerAggrupationSignFlowStatus }, operationsIds: { required: true, type: () => [String] }, gdprShareOtherGroup: { required: false, type: () => require("./aggrupation-sign-flow.entity").CustomerAggrupationSignFlowPreconditionDto }, gdprShareThirdParties: { required: false, type: () => require("./aggrupation-sign-flow.entity").CustomerAggrupationSignFlowPreconditionDto }, created: { required: true, type: () => require("../common/common.entity").AuditDateDto }, updated: { required: true, type: () => require("../common/common.entity").PartialAuditDateDto } };
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.CustomerAggrupationSignFlowDto = CustomerAggrupationSignFlowDto;
|
|
18
|
+
class CreateCustomerAggrupationSignFlowDto extends (0, swagger_1.PickType)(CustomerAggrupationSignFlowDto, [
|
|
19
|
+
'aggrupationId',
|
|
20
|
+
'signFlowId',
|
|
21
|
+
'operationsIds'
|
|
22
|
+
]) {
|
|
23
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.CreateCustomerAggrupationSignFlowDto = CreateCustomerAggrupationSignFlowDto;
|
|
28
|
+
class PatchCustomerAggrupationSignFlowDto extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(CustomerAggrupationSignFlowDto, ['status', 'gdprShareOtherGroup', 'gdprShareThirdParties'])) {
|
|
29
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.PatchCustomerAggrupationSignFlowDto = PatchCustomerAggrupationSignFlowDto;
|
|
@@ -3,12 +3,15 @@ export declare enum CustomerAggrupationStatus {
|
|
|
3
3
|
GROUPED = "grouped",
|
|
4
4
|
UNGROUPED = "ungrouped",
|
|
5
5
|
DIGITEL_CANCELLED = "digitel-canceled",
|
|
6
|
+
DIGITEL_CANCELLED_BY_OTHER_REASON = "digitel-canceled-by-other-reason",
|
|
6
7
|
DIGITEL_CERTIFICATION = "digitel-certification",
|
|
7
8
|
DIGITEL_CREATED = "digitel-created",
|
|
8
9
|
DIGITEL_CREATED_WITH_ERRORS = "digitel-created-with-errors",
|
|
9
10
|
DIGITEL_DOCUMENT_VIEWED = "digitel-document-viewed",
|
|
10
11
|
DIGITEL_DOCUMENTS_SIGNED = "digitel-documents-signed",
|
|
12
|
+
DIGITEL_INVALID_OTP = "digitel-invalid-otp",
|
|
11
13
|
DIGITEL_ERROR = "digitel-error",
|
|
14
|
+
DIGITEL_EVENT_ERROR = "digitel-event-error",
|
|
12
15
|
DIGITEL_EXPIRED = "digitel-expired",
|
|
13
16
|
DIGITEL_FAILED = "digitel-failed",
|
|
14
17
|
DIGITEL_LAUNCHED = "digitel-launched",
|
|
@@ -23,6 +26,15 @@ export declare enum CustomerAggrupationStatus {
|
|
|
23
26
|
PROCESSES_SENT_WITH_ERRORS = "processes-sent-with-errors",
|
|
24
27
|
COMPLETED = "completed"
|
|
25
28
|
}
|
|
29
|
+
export declare enum CustomerAggrupationSignFlowStatus {
|
|
30
|
+
IN_PROGRESS = "in-progress",
|
|
31
|
+
COMPLETED = "completed",
|
|
32
|
+
CANCELLED = "cancelled",
|
|
33
|
+
BROKEN = "broken",
|
|
34
|
+
EXPIRED = "expired",
|
|
35
|
+
REJECTED = "rejected",
|
|
36
|
+
INVALID_OTP = "invalid-otp"
|
|
37
|
+
}
|
|
26
38
|
export declare enum CustomerAggrupationProcessStatus {
|
|
27
39
|
GROUPED = "grouped",
|
|
28
40
|
BROKEN = "broken",
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CUSTOMER_AGGRUPATION_CREATION_ENABLED_STATUS = exports.CUSTOMER_AGGRUPATION_CREATION_DISABLED_STATUS = exports.CustomerAggrupationProcessStatus = exports.CustomerAggrupationStatus = void 0;
|
|
3
|
+
exports.CUSTOMER_AGGRUPATION_CREATION_ENABLED_STATUS = exports.CUSTOMER_AGGRUPATION_CREATION_DISABLED_STATUS = exports.CustomerAggrupationProcessStatus = exports.CustomerAggrupationSignFlowStatus = exports.CustomerAggrupationStatus = void 0;
|
|
4
4
|
var CustomerAggrupationStatus;
|
|
5
5
|
(function (CustomerAggrupationStatus) {
|
|
6
6
|
CustomerAggrupationStatus["FRESH"] = "fresh";
|
|
7
7
|
CustomerAggrupationStatus["GROUPED"] = "grouped";
|
|
8
8
|
CustomerAggrupationStatus["UNGROUPED"] = "ungrouped";
|
|
9
9
|
CustomerAggrupationStatus["DIGITEL_CANCELLED"] = "digitel-canceled";
|
|
10
|
+
CustomerAggrupationStatus["DIGITEL_CANCELLED_BY_OTHER_REASON"] = "digitel-canceled-by-other-reason";
|
|
10
11
|
CustomerAggrupationStatus["DIGITEL_CERTIFICATION"] = "digitel-certification";
|
|
11
12
|
CustomerAggrupationStatus["DIGITEL_CREATED"] = "digitel-created";
|
|
12
13
|
CustomerAggrupationStatus["DIGITEL_CREATED_WITH_ERRORS"] = "digitel-created-with-errors";
|
|
13
14
|
CustomerAggrupationStatus["DIGITEL_DOCUMENT_VIEWED"] = "digitel-document-viewed";
|
|
14
15
|
CustomerAggrupationStatus["DIGITEL_DOCUMENTS_SIGNED"] = "digitel-documents-signed";
|
|
16
|
+
CustomerAggrupationStatus["DIGITEL_INVALID_OTP"] = "digitel-invalid-otp";
|
|
15
17
|
CustomerAggrupationStatus["DIGITEL_ERROR"] = "digitel-error";
|
|
18
|
+
CustomerAggrupationStatus["DIGITEL_EVENT_ERROR"] = "digitel-event-error";
|
|
16
19
|
CustomerAggrupationStatus["DIGITEL_EXPIRED"] = "digitel-expired";
|
|
17
20
|
CustomerAggrupationStatus["DIGITEL_FAILED"] = "digitel-failed";
|
|
18
21
|
CustomerAggrupationStatus["DIGITEL_LAUNCHED"] = "digitel-launched";
|
|
@@ -27,6 +30,16 @@ var CustomerAggrupationStatus;
|
|
|
27
30
|
CustomerAggrupationStatus["PROCESSES_SENT_WITH_ERRORS"] = "processes-sent-with-errors";
|
|
28
31
|
CustomerAggrupationStatus["COMPLETED"] = "completed";
|
|
29
32
|
})(CustomerAggrupationStatus || (exports.CustomerAggrupationStatus = CustomerAggrupationStatus = {}));
|
|
33
|
+
var CustomerAggrupationSignFlowStatus;
|
|
34
|
+
(function (CustomerAggrupationSignFlowStatus) {
|
|
35
|
+
CustomerAggrupationSignFlowStatus["IN_PROGRESS"] = "in-progress";
|
|
36
|
+
CustomerAggrupationSignFlowStatus["COMPLETED"] = "completed";
|
|
37
|
+
CustomerAggrupationSignFlowStatus["CANCELLED"] = "cancelled";
|
|
38
|
+
CustomerAggrupationSignFlowStatus["BROKEN"] = "broken";
|
|
39
|
+
CustomerAggrupationSignFlowStatus["EXPIRED"] = "expired";
|
|
40
|
+
CustomerAggrupationSignFlowStatus["REJECTED"] = "rejected";
|
|
41
|
+
CustomerAggrupationSignFlowStatus["INVALID_OTP"] = "invalid-otp";
|
|
42
|
+
})(CustomerAggrupationSignFlowStatus || (exports.CustomerAggrupationSignFlowStatus = CustomerAggrupationSignFlowStatus = {}));
|
|
30
43
|
var CustomerAggrupationProcessStatus;
|
|
31
44
|
(function (CustomerAggrupationProcessStatus) {
|
|
32
45
|
CustomerAggrupationProcessStatus["GROUPED"] = "grouped";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { CustomerProcessType } from '../../bss/customer/customer.constants';
|
|
2
2
|
import { PaginationQueryDto } from '../../common/common.entity';
|
|
3
|
-
import {
|
|
3
|
+
import { AuditFieldsDto, CreateAuditFieldsDto } from '../common';
|
|
4
4
|
import { CustomerAggrupationProcessStatus, CustomerAggrupationStatus } from './aggrupation.constants';
|
|
5
5
|
import { DigitelCircuitType } from '../../bss/constants';
|
|
6
|
+
import { CustomerAggrupationSignFlowDto } from './aggrupation-sign-flow.entity';
|
|
7
|
+
import { CustomerAggrupationFileDto } from './aggrupation-file.entity';
|
|
6
8
|
export declare class AggrupationProcessDto {
|
|
7
9
|
id: number;
|
|
8
10
|
aggrupationId: number;
|
|
@@ -35,7 +37,8 @@ export declare class AggrupationDto {
|
|
|
35
37
|
customerVulnerable: boolean;
|
|
36
38
|
digitelCircuitType: DigitelCircuitType;
|
|
37
39
|
contractId?: string;
|
|
38
|
-
files?:
|
|
40
|
+
files?: CustomerAggrupationFileDto[];
|
|
41
|
+
signFlows?: CustomerAggrupationSignFlowDto[];
|
|
39
42
|
submitErrors?: CustomerAggrupationSubmitProcessErrorDto[];
|
|
40
43
|
created: AuditFieldsDto;
|
|
41
44
|
updated?: AuditFieldsDto;
|
|
@@ -57,8 +60,4 @@ export declare class AggrupationFiltersDto extends PaginationQueryDto {
|
|
|
57
60
|
status?: string;
|
|
58
61
|
channel?: string;
|
|
59
62
|
}
|
|
60
|
-
export declare class ArsAggrupationDocumentDto extends ArsDocumentDto {
|
|
61
|
-
comment?: string;
|
|
62
|
-
transactionId?: string;
|
|
63
|
-
}
|
|
64
63
|
export {};
|
|
@@ -9,10 +9,9 @@ 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.
|
|
12
|
+
exports.AggrupationFiltersDto = exports.PatchAggrupationProcessDto = exports.CreateAggrupationProcessDto = exports.AggrupationDto = exports.CustomerAggrupationSubmitProcessesResDto = exports.CustomerAggrupationSubmitProcessResDto = exports.CustomerAggrupationSubmitProcessErrorDto = exports.AggrupationProcessDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const common_entity_1 = require("../../common/common.entity");
|
|
15
|
-
const common_1 = require("../common");
|
|
16
15
|
const class_validator_1 = require("class-validator");
|
|
17
16
|
const aggrupation_constants_1 = require("./aggrupation.constants");
|
|
18
17
|
const _validators_1 = require("../../validators/index");
|
|
@@ -45,7 +44,7 @@ class CustomerAggrupationSubmitProcessesResDto {
|
|
|
45
44
|
exports.CustomerAggrupationSubmitProcessesResDto = CustomerAggrupationSubmitProcessesResDto;
|
|
46
45
|
class AggrupationDto {
|
|
47
46
|
static _OPENAPI_METADATA_FACTORY() {
|
|
48
|
-
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, status: { required: false, enum: require("./aggrupation.constants").CustomerAggrupationStatus }, shoppingCartId: { required: false, type: () => String }, channel: { required: true, type: () => String }, customerVulnerable: { required: true, type: () => Boolean }, digitelCircuitType: { required: true, enum: require("../../bss/constants/bp.constants").DigitelCircuitType }, contractId: { required: false, type: () => String }, files: { required: false, type: () => [require("
|
|
47
|
+
return { id: { required: false, type: () => Number }, customerId: { required: true, type: () => String }, status: { required: false, enum: require("./aggrupation.constants").CustomerAggrupationStatus }, shoppingCartId: { required: false, type: () => String }, channel: { required: true, type: () => String }, customerVulnerable: { required: true, type: () => Boolean }, digitelCircuitType: { required: true, enum: require("../../bss/constants/bp.constants").DigitelCircuitType }, contractId: { required: false, type: () => String }, files: { required: false, type: () => [require("./aggrupation-file.entity").CustomerAggrupationFileDto] }, signFlows: { required: false, type: () => [require("./aggrupation-sign-flow.entity").CustomerAggrupationSignFlowDto] }, submitErrors: { required: false, type: () => [require("./aggrupation.entity").CustomerAggrupationSubmitProcessErrorDto] }, created: { required: true, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: false, type: () => require("../common/common.entity").AuditFieldsDto } };
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
exports.AggrupationDto = AggrupationDto;
|
|
@@ -92,13 +91,6 @@ __decorate([
|
|
|
92
91
|
(0, class_validator_1.IsNotEmpty)(),
|
|
93
92
|
__metadata("design:type", String)
|
|
94
93
|
], AggrupationDto.prototype, "contractId", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, class_validator_1.IsArray)(),
|
|
97
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
98
|
-
(0, class_transformer_1.Type)(() => common_1.GenericFileDto),
|
|
99
|
-
(0, class_validator_1.IsOptional)(),
|
|
100
|
-
__metadata("design:type", Array)
|
|
101
|
-
], AggrupationDto.prototype, "files", void 0);
|
|
102
94
|
class CreateAggrupationProcessDto extends (0, swagger_1.PickType)(AggrupationProcessDto, [
|
|
103
95
|
'aggrupationId',
|
|
104
96
|
'customerProcessId',
|
|
@@ -170,21 +162,3 @@ __decorate([
|
|
|
170
162
|
(0, class_validator_1.IsOptional)(),
|
|
171
163
|
__metadata("design:type", String)
|
|
172
164
|
], AggrupationFiltersDto.prototype, "channel", void 0);
|
|
173
|
-
class ArsAggrupationDocumentDto extends common_1.ArsDocumentDto {
|
|
174
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
175
|
-
return { comment: { required: false, type: () => String, maxLength: 1000 }, transactionId: { required: false, type: () => String, maxLength: 1000 } };
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
exports.ArsAggrupationDocumentDto = ArsAggrupationDocumentDto;
|
|
179
|
-
__decorate([
|
|
180
|
-
(0, class_validator_1.IsString)(),
|
|
181
|
-
(0, class_validator_1.MaxLength)(1000),
|
|
182
|
-
(0, class_validator_1.IsOptional)(),
|
|
183
|
-
__metadata("design:type", String)
|
|
184
|
-
], ArsAggrupationDocumentDto.prototype, "comment", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
(0, class_validator_1.IsString)(),
|
|
187
|
-
(0, class_validator_1.MaxLength)(1000),
|
|
188
|
-
(0, class_validator_1.IsOptional)(),
|
|
189
|
-
__metadata("design:type", String)
|
|
190
|
-
], ArsAggrupationDocumentDto.prototype, "transactionId", void 0);
|
|
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./aggrupation-sign-flow.entity"), exports);
|
|
18
|
+
__exportStar(require("./aggrupation.constants"), exports);
|
|
17
19
|
__exportStar(require("./aggrupation.entity"), exports);
|
|
18
20
|
__exportStar(require("./aggrupation.constants"), exports);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { BusinessCustomerType, CustomerType } from '../../common/constants';
|
|
2
2
|
import { AuditFieldsDto, AuditFieldsWithValueDto } from '../common';
|
|
3
|
-
import {
|
|
3
|
+
import { SaleProcessDto } from '../../zoho/sale-process';
|
|
4
4
|
import { PartialSaleProcessBillingInfoBaseWithIdentificationDto, PartialSaleProcessBillingInfoFirstAndLastNameDto, PartialSaleProcessCustomerBaseWithoutTypeDto } from '../../common/edge-zoho';
|
|
5
5
|
import { PaginationQueryDto } from '../../common/common.entity';
|
|
6
6
|
import { BpCustomerAccountIndividualTitleType } from '../../bss/constants';
|
|
7
7
|
import { SaleProcessApprovalValidation } from '../constants';
|
|
8
8
|
import { Builder } from '../../common/helpers/helpers';
|
|
9
|
+
import { SaleProcessCompanyIdentificationDto, SaleProcessIndividualIdentificationDto } from '../sale-process/identification.entity';
|
|
9
10
|
export declare class DashboardApprovalFilterDto extends PaginationQueryDto {
|
|
10
11
|
dateFrom?: string;
|
|
11
12
|
dateTo?: string;
|
|
@@ -22,9 +23,9 @@ export declare class DashboardApprovalFilterDto extends PaginationQueryDto {
|
|
|
22
23
|
}
|
|
23
24
|
export declare class ApprovalValidationDataFilterDto extends PaginationQueryDto {
|
|
24
25
|
}
|
|
25
|
-
export declare class ApprovalIndividualIdentificationDto extends
|
|
26
|
+
export declare class ApprovalIndividualIdentificationDto extends SaleProcessIndividualIdentificationDto {
|
|
26
27
|
}
|
|
27
|
-
export declare class ApprovalOrganizationIdentificationDto extends
|
|
28
|
+
export declare class ApprovalOrganizationIdentificationDto extends SaleProcessCompanyIdentificationDto {
|
|
28
29
|
}
|
|
29
30
|
export declare class ApprovalCustomerDto {
|
|
30
31
|
type: CustomerType;
|
|
@@ -17,13 +17,13 @@ const _validators_1 = require("../../validators/index");
|
|
|
17
17
|
const class_transformer_1 = require("class-transformer");
|
|
18
18
|
const class_validator_1 = require("class-validator");
|
|
19
19
|
const common_1 = require("../common");
|
|
20
|
-
const sale_process_1 = require("../../zoho/sale-process");
|
|
21
20
|
const edge_zoho_1 = require("../../common/edge-zoho");
|
|
22
21
|
const common_entity_1 = require("../../common/common.entity");
|
|
23
22
|
const constants_2 = require("../../bss/constants");
|
|
24
23
|
const constants_3 = require("../constants");
|
|
25
24
|
const helpers_1 = require("../../common/helpers/helpers");
|
|
26
25
|
const faker_1 = require("@faker-js/faker");
|
|
26
|
+
const identification_entity_1 = require("../sale-process/identification.entity");
|
|
27
27
|
class DashboardApprovalFilterDto extends common_entity_1.PaginationQueryDto {
|
|
28
28
|
static _OPENAPI_METADATA_FACTORY() {
|
|
29
29
|
return { dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, saleProcessId: { required: false, type: () => Number, minimum: 1 }, phone: { required: false, type: () => String }, shoppingCartPhone: { required: false, type: () => String }, owner: { required: false, type: () => String }, channel: { required: false, type: () => String }, customerType: { required: false, enum: require("../../common/constants/common.constants").CustomerType }, id: { required: false, type: () => Number, minimum: 1 }, approvedBy: { required: false, type: () => String }, approved: { required: false, type: () => Object }, validation: { required: false, type: () => String } };
|
|
@@ -115,13 +115,13 @@ class ApprovalValidationDataFilterDto extends common_entity_1.PaginationQueryDto
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
exports.ApprovalValidationDataFilterDto = ApprovalValidationDataFilterDto;
|
|
118
|
-
class ApprovalIndividualIdentificationDto extends
|
|
118
|
+
class ApprovalIndividualIdentificationDto extends identification_entity_1.SaleProcessIndividualIdentificationDto {
|
|
119
119
|
static _OPENAPI_METADATA_FACTORY() {
|
|
120
120
|
return {};
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
exports.ApprovalIndividualIdentificationDto = ApprovalIndividualIdentificationDto;
|
|
124
|
-
class ApprovalOrganizationIdentificationDto extends
|
|
124
|
+
class ApprovalOrganizationIdentificationDto extends identification_entity_1.SaleProcessCompanyIdentificationDto {
|
|
125
125
|
static _OPENAPI_METADATA_FACTORY() {
|
|
126
126
|
return {};
|
|
127
127
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { CustomerProductTransitionProcessTransitionType } from './common.constants';
|
|
2
2
|
import { CustomerProductTransitionCombinationDto } from '../customer';
|
|
3
3
|
import { Builder } from '../../common/helpers/helpers';
|
|
4
|
-
import { BpCustomerAccountDocumentType } from '../../bss/constants';
|
|
5
4
|
import { BureauValidationIdentificationType, BureauValidationRetailStatus } from '../bureau-validation';
|
|
6
5
|
import { CheckProductTransitionGroupOptionFiberDto, CheckProductTransitionGroupOptionMobileDto, CheckProductTransitionGroupOptionVoipDto } from '../updowngrade';
|
|
7
6
|
export declare class AuditDateDto {
|
|
8
7
|
at: Date;
|
|
9
8
|
}
|
|
9
|
+
declare const PartialAuditDateDto_base: import("@nestjs/common").Type<Partial<AuditDateDto>>;
|
|
10
|
+
export declare class PartialAuditDateDto extends PartialAuditDateDto_base {
|
|
11
|
+
}
|
|
10
12
|
export declare class AuditFieldsDto {
|
|
11
13
|
by?: string;
|
|
12
14
|
at?: Date;
|
|
@@ -51,21 +53,6 @@ export declare class CustomerProductTransitionProcessTransitionDto implements Cu
|
|
|
51
53
|
voip: CheckProductTransitionGroupOptionVoipDto;
|
|
52
54
|
type?: CustomerProductTransitionProcessTransitionType;
|
|
53
55
|
}
|
|
54
|
-
export declare class GenericFileDto {
|
|
55
|
-
id?: number;
|
|
56
|
-
internalId?: number;
|
|
57
|
-
documentId?: string;
|
|
58
|
-
url?: string;
|
|
59
|
-
fileName: string;
|
|
60
|
-
contentType?: string;
|
|
61
|
-
type: BpCustomerAccountDocumentType;
|
|
62
|
-
comment?: string;
|
|
63
|
-
transactionId?: string;
|
|
64
|
-
}
|
|
65
|
-
export declare class ArsDocumentDto {
|
|
66
|
-
fileName: string;
|
|
67
|
-
type: BpCustomerAccountDocumentType;
|
|
68
|
-
}
|
|
69
56
|
export declare class CreditBureauValidationIdentificationDto {
|
|
70
57
|
type: BureauValidationIdentificationType;
|
|
71
58
|
number: string;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreditBureauValidationProcessDto = exports.CreditBureauValidationCacheDto = exports.CreditBureauValidationIdentificationDto = exports.
|
|
3
|
+
exports.CreditBureauValidationProcessDto = exports.CreditBureauValidationCacheDto = exports.CreditBureauValidationIdentificationDto = exports.CustomerProductTransitionProcessTransitionDto = exports.UpdateCustomerProcessOrderDto = exports.CustomerProcessOrderDto = exports.CustomerProcessStepRelatedProductDto = exports.CustomerProductActionProcessProductDto = exports.CreateProcessAuditFieldsDto = exports.ProcessAuditFieldsDto = exports.AuditFieldsWithValueDto = exports.AuditFieldsDtoBuilder = exports.CreateAuditFieldsDto = exports.AuditFieldsDto = exports.PartialAuditDateDto = exports.AuditDateDto = void 0;
|
|
13
4
|
const openapi = require("@nestjs/swagger");
|
|
14
5
|
const helpers_1 = require("../../common/helpers/helpers");
|
|
15
6
|
const faker_1 = require("@faker-js/faker");
|
|
16
|
-
const class_validator_1 = require("class-validator");
|
|
17
|
-
const constants_1 = require("../../bss/constants");
|
|
18
7
|
const swagger_1 = require("@nestjs/swagger");
|
|
19
8
|
class AuditDateDto {
|
|
20
9
|
static _OPENAPI_METADATA_FACTORY() {
|
|
@@ -22,6 +11,12 @@ class AuditDateDto {
|
|
|
22
11
|
}
|
|
23
12
|
}
|
|
24
13
|
exports.AuditDateDto = AuditDateDto;
|
|
14
|
+
class PartialAuditDateDto extends (0, swagger_1.PartialType)(AuditDateDto) {
|
|
15
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.PartialAuditDateDto = PartialAuditDateDto;
|
|
25
20
|
class AuditFieldsDto {
|
|
26
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
27
22
|
return { by: { required: false, type: () => String }, at: { required: false, type: () => Date } };
|
|
@@ -94,27 +89,6 @@ class CustomerProductTransitionProcessTransitionDto {
|
|
|
94
89
|
}
|
|
95
90
|
}
|
|
96
91
|
exports.CustomerProductTransitionProcessTransitionDto = CustomerProductTransitionProcessTransitionDto;
|
|
97
|
-
class GenericFileDto {
|
|
98
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
99
|
-
return { id: { required: false, type: () => Number }, internalId: { required: false, type: () => Number }, documentId: { required: false, type: () => String }, url: { required: false, type: () => String }, fileName: { required: true, type: () => String }, contentType: { required: false, type: () => String }, type: { required: true, enum: require("../../bss/constants/bp.constants").BpCustomerAccountDocumentType }, comment: { required: false, type: () => String }, transactionId: { required: false, type: () => String } };
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
exports.GenericFileDto = GenericFileDto;
|
|
103
|
-
class ArsDocumentDto {
|
|
104
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
105
|
-
return { fileName: { required: true, type: () => String }, type: { required: true, enum: require("../../bss/constants/bp.constants").BpCustomerAccountDocumentType } };
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exports.ArsDocumentDto = ArsDocumentDto;
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, class_validator_1.IsString)(),
|
|
111
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
112
|
-
__metadata("design:type", String)
|
|
113
|
-
], ArsDocumentDto.prototype, "fileName", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
(0, class_validator_1.IsEnum)(constants_1.BpCustomerAccountDocumentType),
|
|
116
|
-
__metadata("design:type", String)
|
|
117
|
-
], ArsDocumentDto.prototype, "type", void 0);
|
|
118
92
|
class CreditBureauValidationIdentificationDto {
|
|
119
93
|
static _OPENAPI_METADATA_FACTORY() {
|
|
120
94
|
return { type: { required: true, enum: require("../bureau-validation/bureau-validation.constants").BureauValidationIdentificationType }, number: { required: true, type: () => String } };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BpAccountPreferredLanguageType, BpAccountStateType, BpCustomerAccountBusinessSegmentType, BpCustomerAccountIdentificationType, BpCustomerAccountIndividualTitleType, BpCustomerAccountPreferredContactTimeType, BpPartyType, BpTimezoneType, BpCustomerAccountDocumentType } from '../../bss/constants';
|
|
2
2
|
import { Builder } from '../../common/helpers/helpers';
|
|
3
3
|
import { BusinessCustomerType, CustomerType } from '../../common/constants';
|
|
4
|
-
import { CustomerAccountContactMediumType, CustomerAccountIdentificationType, CustomerAccountRelatedPartyRoleType } from './customer.constants';
|
|
4
|
+
import { CUSTOMER_ACCOUNT_GDPR_SHARE_OTHER_GROUP_PARAMETER_KEY, CUSTOMER_ACCOUNT_GDPR_SHARE_THIRD_PARTIES_PARAMETER_KEY, CustomerAccountContactMediumType, CustomerAccountIdentificationType, CustomerAccountRelatedPartyRoleType } from './customer.constants';
|
|
5
5
|
export declare class CustomerAccountPartyRelatedPartyRelationshipDto {
|
|
6
6
|
party: string;
|
|
7
7
|
role: CustomerAccountRelatedPartyRoleType;
|
|
@@ -11,6 +11,10 @@ export declare class CustomerAccountPartyRelatedPartyRelationshipDto {
|
|
|
11
11
|
declare const CreateCustomerAccountPartyRelatedPartyRelationshipDto_base: import("@nestjs/common").Type<Omit<CustomerAccountPartyRelatedPartyRelationshipDto, "type">>;
|
|
12
12
|
export declare class CreateCustomerAccountPartyRelatedPartyRelationshipDto extends CreateCustomerAccountPartyRelatedPartyRelationshipDto_base {
|
|
13
13
|
}
|
|
14
|
+
export type CustomerAccountParametersDto = Partial<{
|
|
15
|
+
[CUSTOMER_ACCOUNT_GDPR_SHARE_OTHER_GROUP_PARAMETER_KEY]: string;
|
|
16
|
+
[CUSTOMER_ACCOUNT_GDPR_SHARE_THIRD_PARTIES_PARAMETER_KEY]: string;
|
|
17
|
+
}> & Record<string, string>;
|
|
14
18
|
export declare class CustomerAccountDto {
|
|
15
19
|
id: string;
|
|
16
20
|
billingAccountId: string;
|
|
@@ -24,7 +28,7 @@ export declare class CustomerAccountDto {
|
|
|
24
28
|
additionalContactPhone?: string;
|
|
25
29
|
preferredContactTime?: BpCustomerAccountPreferredContactTimeType;
|
|
26
30
|
relatedParties?: CustomerAccountPartyRelatedPartyRelationshipDto[];
|
|
27
|
-
parameters?:
|
|
31
|
+
parameters?: CustomerAccountParametersDto;
|
|
28
32
|
}
|
|
29
33
|
declare const CreateCustomerAccountDto_base: import("@nestjs/common").Type<Omit<CustomerAccountDto, "billingAccountId" | "id" | "type" | "state" | "relatedParties">>;
|
|
30
34
|
export declare class CreateCustomerAccountDto extends CreateCustomerAccountDto_base {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const CUSTOMER_ACCOUNT_GDPR_SHARE_OTHER_GROUP_PARAMETER_KEY = "GDPR_SHARE_OTHER_GROUP";
|
|
2
|
+
export declare const CUSTOMER_ACCOUNT_GDPR_SHARE_THIRD_PARTIES_PARAMETER_KEY = "GDPR_SHARE_3RD_PARTIES";
|
|
1
3
|
export declare enum CustomerAccountIdentificationType {
|
|
2
4
|
DNI = "dni",
|
|
3
5
|
NIE = "nie",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerJiraTicketStatusType = exports.CustomerAccountAdditionalContactContactMediumType = exports.CustomerAccountContactMediumType = exports.CustomerAccountAdditionalContactRelatedPartyRoleType = exports.CustomerAccountRelatedPartyRoleType = exports.CustomerProductInstanceAction = exports.CustomerAccountIdentificationType = void 0;
|
|
3
|
+
exports.CustomerJiraTicketStatusType = exports.CustomerAccountAdditionalContactContactMediumType = exports.CustomerAccountContactMediumType = exports.CustomerAccountAdditionalContactRelatedPartyRoleType = exports.CustomerAccountRelatedPartyRoleType = exports.CustomerProductInstanceAction = exports.CustomerAccountIdentificationType = exports.CUSTOMER_ACCOUNT_GDPR_SHARE_THIRD_PARTIES_PARAMETER_KEY = exports.CUSTOMER_ACCOUNT_GDPR_SHARE_OTHER_GROUP_PARAMETER_KEY = void 0;
|
|
4
4
|
const helpers_1 = require("../../common/helpers/helpers");
|
|
5
|
+
exports.CUSTOMER_ACCOUNT_GDPR_SHARE_OTHER_GROUP_PARAMETER_KEY = 'GDPR_SHARE_OTHER_GROUP';
|
|
6
|
+
exports.CUSTOMER_ACCOUNT_GDPR_SHARE_THIRD_PARTIES_PARAMETER_KEY = 'GDPR_SHARE_3RD_PARTIES';
|
|
5
7
|
var CustomerAccountIdentificationType;
|
|
6
8
|
(function (CustomerAccountIdentificationType) {
|
|
7
9
|
CustomerAccountIdentificationType["DNI"] = "dni";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BusinessCustomerType, CustomerType } from '../../common/constants';
|
|
2
2
|
import { CustomerHandoverStatusType, CustomerHandoverStep, CustomerHandoverType } from './customer-handover.constants';
|
|
3
|
-
import { BusinessIdentificationDto, CustomerIdentificationDto } from '../../zoho/sale-process';
|
|
4
3
|
import { AuditFieldsDto, CustomerProcessStepRelatedProductDto, ExistingCustomerBehaviourType, ProcessAuditFieldsDto } from '../common';
|
|
5
4
|
import { BpAccountPreferredLanguageType, BpCustomerAccountIndividualTitleType, BpCustomerAccountPreferredContactTimeType } from '../../bss/constants';
|
|
6
5
|
import { CustomError } from '../../common/exception';
|
|
@@ -8,6 +7,7 @@ import { CustomerHandoverProcessAdditionalContactDto } from './customer-handover
|
|
|
8
7
|
import { CustomerHandoverProcessFileDto } from './customer-handover-process-file.entity';
|
|
9
8
|
import { CreateCustomerAccountAddressDto, CreateCustomerAccountAddressReqDto } from '../customer/customer-account-address.entity';
|
|
10
9
|
import { BillingPaymentMethodType } from '../../bss/billing';
|
|
10
|
+
import { SaleProcessCompanyIdentificationDto, SaleProcessIndividualIdentificationDto } from '../sale-process/identification.entity';
|
|
11
11
|
export declare class CustomerHandoverProcessStepDto {
|
|
12
12
|
id: number;
|
|
13
13
|
customerHandoverProcessId: number;
|
|
@@ -49,7 +49,7 @@ export declare class CustomerHandoverProcessCustomerDto {
|
|
|
49
49
|
addressId: string;
|
|
50
50
|
preferredContactTime?: BpCustomerAccountPreferredContactTimeType;
|
|
51
51
|
preferredContactLanguage?: BpAccountPreferredLanguageType;
|
|
52
|
-
identification?:
|
|
52
|
+
identification?: SaleProcessIndividualIdentificationDto;
|
|
53
53
|
}
|
|
54
54
|
export declare class PatchCustomerHandoverProcessCustomerReqDto {
|
|
55
55
|
title?: BpCustomerAccountIndividualTitleType;
|
|
@@ -62,19 +62,19 @@ export declare class PatchCustomerHandoverProcessCustomerReqDto {
|
|
|
62
62
|
additionalContactPhone?: string;
|
|
63
63
|
preferredContactTime: BpCustomerAccountPreferredContactTimeType;
|
|
64
64
|
preferredContactLanguage?: BpAccountPreferredLanguageType;
|
|
65
|
-
identification:
|
|
65
|
+
identification: SaleProcessIndividualIdentificationDto;
|
|
66
66
|
}
|
|
67
67
|
export declare class CustomerHandoverProcessBusinessDto {
|
|
68
68
|
type?: BusinessCustomerType;
|
|
69
69
|
tradingName?: string;
|
|
70
70
|
legalName?: string;
|
|
71
|
-
identification?:
|
|
71
|
+
identification?: SaleProcessCompanyIdentificationDto;
|
|
72
72
|
}
|
|
73
73
|
export declare class PatchCustomerHandoverProcessBusinessReqDto {
|
|
74
74
|
type: BusinessCustomerType;
|
|
75
75
|
tradingName: string;
|
|
76
76
|
legalName: string;
|
|
77
|
-
identification?:
|
|
77
|
+
identification?: SaleProcessCompanyIdentificationDto;
|
|
78
78
|
}
|
|
79
79
|
export declare class CustomerHandoverProcessBillingDto {
|
|
80
80
|
firstName?: string;
|
|
@@ -130,11 +130,11 @@ export declare class CustomerHandoverProcessDto {
|
|
|
130
130
|
created?: ProcessAuditFieldsDto;
|
|
131
131
|
updated?: AuditFieldsDto;
|
|
132
132
|
}
|
|
133
|
-
declare const CreateCustomerHandoverProcessDto_base: import("@nestjs/common").Type<Omit<CustomerHandoverProcessDto, "notes" | "id" | "updated" | "data" | "
|
|
133
|
+
declare const CreateCustomerHandoverProcessDto_base: import("@nestjs/common").Type<Omit<CustomerHandoverProcessDto, "notes" | "id" | "updated" | "data" | "billing" | "additionalContacts" | "activeCustomerId" | "activeCustomerBehaviour" | "handoverCustomerId" | "files">>;
|
|
134
134
|
export declare class CreateCustomerHandoverProcessDto extends CreateCustomerHandoverProcessDto_base {
|
|
135
135
|
billing?: CreateCustomerHandoverProcessBillingDto;
|
|
136
136
|
}
|
|
137
|
-
declare const UpdateCustomerHandoverProcessDto_base: import("@nestjs/common").Type<Omit<CustomerHandoverProcessDto, "id" | "type" | "created" | "updated" | "data" | "
|
|
137
|
+
declare const UpdateCustomerHandoverProcessDto_base: import("@nestjs/common").Type<Omit<CustomerHandoverProcessDto, "id" | "type" | "created" | "updated" | "data" | "billing" | "additionalContacts" | "files">>;
|
|
138
138
|
export declare class UpdateCustomerHandoverProcessDto extends UpdateCustomerHandoverProcessDto_base {
|
|
139
139
|
billing?: UpdateCustomerHandoverProcessBillingDto;
|
|
140
140
|
payload?: CustomerHandoverProcessDataPayloadDto;
|