adamo-types 2.0.74-sit → 2.0.76-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/customer/customer.constants.d.ts +4 -0
- package/dist/bss/customer/customer.constants.js +6 -1
- package/dist/bss/customer/customer.entity.d.ts +28 -1
- package/dist/bss/customer/customer.entity.js +125 -2
- package/dist/common/constants/customer.error.constants.d.ts +3 -0
- package/dist/common/constants/customer.error.constants.js +5 -1
- package/dist/common/constants/not-found.error.constants.d.ts +1 -0
- package/dist/common/constants/not-found.error.constants.js +2 -1
- package/dist/common/edge-zoho/sale-process/req/patch.entity.d.ts +3 -2
- package/dist/common/edge-zoho/sale-process/req/patch.entity.js +3 -2
- package/dist/sys03/common/common.constants.d.ts +4 -0
- package/dist/sys03/common/common.constants.js +6 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/validators/TransformBoolean.d.ts +1 -0
- package/dist/validators/TransformBoolean.js +14 -0
- package/dist/validators/index.d.ts +1 -0
- package/dist/validators/index.js +1 -0
- package/dist/zoho/constants/zoho.constants.d.ts +0 -4
- package/dist/zoho/constants/zoho.constants.js +1 -6
- package/dist/zoho/sale-process/sale-process.entity.d.ts +3 -2
- package/dist/zoho/sale-process/sale-process.entity.js +3 -2
- package/package.json +1 -1
|
@@ -26,6 +26,10 @@ export declare enum CustomerProcessType {
|
|
|
26
26
|
TRANSITION = "TRANSITION",
|
|
27
27
|
MULTIPLE_TRANSITION = "MULTIPLE_TRANSITION"
|
|
28
28
|
}
|
|
29
|
+
export declare enum SearchCustomerStatusType {
|
|
30
|
+
ACTIVE = "ACTIVE",
|
|
31
|
+
DISCONNECTED = "DISCONNECTED"
|
|
32
|
+
}
|
|
29
33
|
export declare const CustomerProductActionTypeDisplayOrder: Record<CustomerProductActionType, number>;
|
|
30
34
|
export declare const CustomerProductTypeToServiceCharacteristicName: Record<ShoppingCartProductType, string[]>;
|
|
31
35
|
export declare const CustomerProductTypeToServiceCharacteristicInstanceName: Record<ShoppingCartProductType, string[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerProductTypeToServiceCharacteristicInstanceName = exports.CustomerProductTypeToServiceCharacteristicName = exports.CustomerProductActionTypeDisplayOrder = exports.CustomerProcessType = exports.CustomerProductActionType = exports.ContactMediumType = void 0;
|
|
3
|
+
exports.CustomerProductTypeToServiceCharacteristicInstanceName = exports.CustomerProductTypeToServiceCharacteristicName = exports.CustomerProductActionTypeDisplayOrder = exports.SearchCustomerStatusType = exports.CustomerProcessType = exports.CustomerProductActionType = exports.ContactMediumType = void 0;
|
|
4
4
|
const constants_1 = require("../../common/constants");
|
|
5
5
|
var ContactMediumType;
|
|
6
6
|
(function (ContactMediumType) {
|
|
@@ -32,6 +32,11 @@ var CustomerProcessType;
|
|
|
32
32
|
CustomerProcessType["TRANSITION"] = "TRANSITION";
|
|
33
33
|
CustomerProcessType["MULTIPLE_TRANSITION"] = "MULTIPLE_TRANSITION";
|
|
34
34
|
})(CustomerProcessType || (exports.CustomerProcessType = CustomerProcessType = {}));
|
|
35
|
+
var SearchCustomerStatusType;
|
|
36
|
+
(function (SearchCustomerStatusType) {
|
|
37
|
+
SearchCustomerStatusType["ACTIVE"] = "ACTIVE";
|
|
38
|
+
SearchCustomerStatusType["DISCONNECTED"] = "DISCONNECTED";
|
|
39
|
+
})(SearchCustomerStatusType || (exports.SearchCustomerStatusType = SearchCustomerStatusType = {}));
|
|
35
40
|
exports.CustomerProductActionTypeDisplayOrder = {
|
|
36
41
|
[CustomerProductActionType.CHANGE]: 1,
|
|
37
42
|
[CustomerProductActionType.MIGRATE]: 2,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseSearchFiltersDto } from '../search';
|
|
2
2
|
import { BpAccountStateType, BpCustomerAccountIdentificationType, BpCustomerAccountOrganizationIndustryType, BpCustomerAccountIndividualTitleType } from '../constants';
|
|
3
|
-
import { ContactMediumType } from './customer.constants';
|
|
3
|
+
import { ContactMediumType, SearchCustomerStatusType } from './customer.constants';
|
|
4
4
|
import { CustomerAccountAddressDto } from '../../sys03/customer';
|
|
5
|
+
import { Builder } from '../../common/helpers/helpers';
|
|
5
6
|
export declare class ContactMediumDto {
|
|
6
7
|
type: ContactMediumType;
|
|
7
8
|
value: string;
|
|
@@ -21,6 +22,9 @@ export declare class SearchCustomerCustomerAccountIndividualPartyDto {
|
|
|
21
22
|
identifications: IdentificationDto[];
|
|
22
23
|
contactMediums: ContactMediumDto[];
|
|
23
24
|
}
|
|
25
|
+
export declare class SearchCustomerCustomerAccountIndividualPartyDtoBuilder extends Builder<SearchCustomerCustomerAccountIndividualPartyDto> {
|
|
26
|
+
setDefaults(): SearchCustomerCustomerAccountIndividualPartyDto;
|
|
27
|
+
}
|
|
24
28
|
export declare class SearchCustomerCustomerAccountOrganizationPartyDto {
|
|
25
29
|
legalName: string;
|
|
26
30
|
tradingName: string;
|
|
@@ -30,27 +34,50 @@ export declare class SearchCustomerCustomerAccountOrganizationPartyDto {
|
|
|
30
34
|
identifications: IdentificationDto[];
|
|
31
35
|
contactMediums: ContactMediumDto[];
|
|
32
36
|
}
|
|
37
|
+
export declare class SearchCustomerCustomerAccountOrganizationPartyDtoBuilder extends Builder<SearchCustomerCustomerAccountOrganizationPartyDto> {
|
|
38
|
+
setDefaults(): SearchCustomerCustomerAccountOrganizationPartyDto;
|
|
39
|
+
}
|
|
33
40
|
export declare class SearchCustomerCustomerAccountDto {
|
|
34
41
|
state: BpAccountStateType;
|
|
35
42
|
address?: CustomerAccountAddressDto;
|
|
36
43
|
individual?: SearchCustomerCustomerAccountIndividualPartyDto;
|
|
37
44
|
organization?: SearchCustomerCustomerAccountOrganizationPartyDto;
|
|
38
45
|
}
|
|
46
|
+
export declare class SearchCustomerCustomerAccountDtoBuilder extends Builder<SearchCustomerCustomerAccountDto> {
|
|
47
|
+
setDefaults(): SearchCustomerCustomerAccountDto;
|
|
48
|
+
}
|
|
49
|
+
export declare class SearchCustomerIndividualCustomerAccountDtoBuilder extends Builder<SearchCustomerCustomerAccountDto> {
|
|
50
|
+
setDefaults(): SearchCustomerCustomerAccountDto;
|
|
51
|
+
}
|
|
52
|
+
export declare class SearchCustomerOrganizationCustomerAccountDtoBuilder extends Builder<SearchCustomerCustomerAccountDto> {
|
|
53
|
+
setDefaults(): SearchCustomerCustomerAccountDto;
|
|
54
|
+
}
|
|
39
55
|
export declare class BillReceiverDto {
|
|
40
56
|
givenName: string;
|
|
41
57
|
familyName: string;
|
|
42
58
|
postalAddress: string;
|
|
43
59
|
}
|
|
60
|
+
export declare class BillReceiverDtoBuilder extends Builder<BillReceiverDto> {
|
|
61
|
+
setDefaults(): BillReceiverDto;
|
|
62
|
+
}
|
|
44
63
|
export declare class SearchCustomerBillingAccountDto {
|
|
45
64
|
state: BpAccountStateType;
|
|
46
65
|
billReceiver: BillReceiverDto;
|
|
47
66
|
}
|
|
67
|
+
export declare class SearchCustomerBillingAccountDtoBuilder extends Builder<SearchCustomerBillingAccountDto> {
|
|
68
|
+
setDefaults(): SearchCustomerBillingAccountDto;
|
|
69
|
+
}
|
|
48
70
|
export declare class SearchCustomerDto {
|
|
49
71
|
id: string;
|
|
50
72
|
customerAccount: SearchCustomerCustomerAccountDto;
|
|
51
73
|
billingAccount: SearchCustomerBillingAccountDto;
|
|
52
74
|
}
|
|
75
|
+
export declare class SearchCustomerDtoBuilder extends Builder<SearchCustomerDto> {
|
|
76
|
+
setDefaults(): SearchCustomerDto;
|
|
77
|
+
}
|
|
53
78
|
export declare class SearchCustomersFiltersDto extends BaseSearchFiltersDto {
|
|
79
|
+
fetchAddress?: boolean;
|
|
80
|
+
status?: SearchCustomerStatusType;
|
|
54
81
|
firstName?: string;
|
|
55
82
|
lastName?: string;
|
|
56
83
|
legalName?: string;
|
|
@@ -1,8 +1,21 @@
|
|
|
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
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerCharacteristicDto = exports.CustomerBillsFiltersDto = exports.CustomerOrdersFiltersDto = exports.CustomerNotesFiltersDto = exports.CustomerTasksFiltersDto = exports.SearchCustomersFiltersDto = exports.SearchCustomerDto = exports.SearchCustomerBillingAccountDto = exports.BillReceiverDto = exports.SearchCustomerCustomerAccountDto = exports.SearchCustomerCustomerAccountOrganizationPartyDto = exports.SearchCustomerCustomerAccountIndividualPartyDto = exports.IdentificationDto = exports.ContactMediumDto = void 0;
|
|
12
|
+
exports.CustomerCharacteristicDto = exports.CustomerBillsFiltersDto = exports.CustomerOrdersFiltersDto = exports.CustomerNotesFiltersDto = exports.CustomerTasksFiltersDto = exports.SearchCustomersFiltersDto = exports.SearchCustomerDtoBuilder = exports.SearchCustomerDto = exports.SearchCustomerBillingAccountDtoBuilder = exports.SearchCustomerBillingAccountDto = exports.BillReceiverDtoBuilder = exports.BillReceiverDto = exports.SearchCustomerOrganizationCustomerAccountDtoBuilder = exports.SearchCustomerIndividualCustomerAccountDtoBuilder = exports.SearchCustomerCustomerAccountDtoBuilder = exports.SearchCustomerCustomerAccountDto = exports.SearchCustomerCustomerAccountOrganizationPartyDtoBuilder = exports.SearchCustomerCustomerAccountOrganizationPartyDto = exports.SearchCustomerCustomerAccountIndividualPartyDtoBuilder = exports.SearchCustomerCustomerAccountIndividualPartyDto = exports.IdentificationDto = exports.ContactMediumDto = void 0;
|
|
4
13
|
const openapi = require("@nestjs/swagger");
|
|
5
14
|
const search_1 = require("../search");
|
|
15
|
+
const constants_1 = require("../constants");
|
|
16
|
+
const _validators_1 = require("../../validators/index");
|
|
17
|
+
const helpers_1 = require("../../common/helpers/helpers");
|
|
18
|
+
const faker_1 = require("@faker-js/faker");
|
|
6
19
|
class ContactMediumDto {
|
|
7
20
|
static _OPENAPI_METADATA_FACTORY() {
|
|
8
21
|
return { type: { required: true, enum: require("./customer.constants").ContactMediumType }, value: { required: true, type: () => String } };
|
|
@@ -21,42 +34,152 @@ class SearchCustomerCustomerAccountIndividualPartyDto {
|
|
|
21
34
|
}
|
|
22
35
|
}
|
|
23
36
|
exports.SearchCustomerCustomerAccountIndividualPartyDto = SearchCustomerCustomerAccountIndividualPartyDto;
|
|
37
|
+
class SearchCustomerCustomerAccountIndividualPartyDtoBuilder extends helpers_1.Builder {
|
|
38
|
+
setDefaults() {
|
|
39
|
+
const givenName = faker_1.faker.person.firstName();
|
|
40
|
+
const familyName = faker_1.faker.person.lastName();
|
|
41
|
+
const fullName = [givenName, familyName].join(' ');
|
|
42
|
+
return {
|
|
43
|
+
dateOfBirth: faker_1.faker.date.anytime().toISOString(),
|
|
44
|
+
title: faker_1.faker.helpers.enumValue(constants_1.BpCustomerAccountIndividualTitleType),
|
|
45
|
+
givenName,
|
|
46
|
+
familyName,
|
|
47
|
+
fullName,
|
|
48
|
+
identifications: [],
|
|
49
|
+
contactMediums: []
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
53
|
+
return {};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.SearchCustomerCustomerAccountIndividualPartyDtoBuilder = SearchCustomerCustomerAccountIndividualPartyDtoBuilder;
|
|
24
57
|
class SearchCustomerCustomerAccountOrganizationPartyDto {
|
|
25
58
|
static _OPENAPI_METADATA_FACTORY() {
|
|
26
59
|
return { legalName: { required: true, type: () => String }, tradingName: { required: true, type: () => String }, legalEntity: { required: true, type: () => Boolean }, industryType: { required: true, type: () => String, enum: require("../constants/bp.constants").BpCustomerAccountOrganizationIndustryType }, contactPerson: { required: true, type: () => require("./customer.entity").SearchCustomerCustomerAccountIndividualPartyDto }, identifications: { required: true, type: () => [require("./customer.entity").IdentificationDto] }, contactMediums: { required: true, type: () => [require("./customer.entity").ContactMediumDto] } };
|
|
27
60
|
}
|
|
28
61
|
}
|
|
29
62
|
exports.SearchCustomerCustomerAccountOrganizationPartyDto = SearchCustomerCustomerAccountOrganizationPartyDto;
|
|
63
|
+
class SearchCustomerCustomerAccountOrganizationPartyDtoBuilder extends helpers_1.Builder {
|
|
64
|
+
setDefaults() {
|
|
65
|
+
return {
|
|
66
|
+
legalName: faker_1.faker.company.name(),
|
|
67
|
+
tradingName: faker_1.faker.company.name(),
|
|
68
|
+
legalEntity: faker_1.faker.datatype.boolean(0.3),
|
|
69
|
+
industryType: faker_1.faker.helpers.enumValue(constants_1.BpCustomerAccountOrganizationIndustryType),
|
|
70
|
+
contactPerson: new SearchCustomerCustomerAccountIndividualPartyDtoBuilder().build(),
|
|
71
|
+
identifications: [],
|
|
72
|
+
contactMediums: []
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
76
|
+
return {};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.SearchCustomerCustomerAccountOrganizationPartyDtoBuilder = SearchCustomerCustomerAccountOrganizationPartyDtoBuilder;
|
|
30
80
|
class SearchCustomerCustomerAccountDto {
|
|
31
81
|
static _OPENAPI_METADATA_FACTORY() {
|
|
32
82
|
return { state: { required: true, enum: require("../constants/bp.constants").BpAccountStateType }, address: { required: false, type: () => require("../../sys03/customer/customer-account-address.entity").CustomerAccountAddressDto }, individual: { required: false, type: () => require("./customer.entity").SearchCustomerCustomerAccountIndividualPartyDto }, organization: { required: false, type: () => require("./customer.entity").SearchCustomerCustomerAccountOrganizationPartyDto } };
|
|
33
83
|
}
|
|
34
84
|
}
|
|
35
85
|
exports.SearchCustomerCustomerAccountDto = SearchCustomerCustomerAccountDto;
|
|
86
|
+
class SearchCustomerCustomerAccountDtoBuilder extends helpers_1.Builder {
|
|
87
|
+
setDefaults() {
|
|
88
|
+
return {
|
|
89
|
+
state: faker_1.faker.helpers.enumValue(constants_1.BpAccountStateType)
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
93
|
+
return {};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.SearchCustomerCustomerAccountDtoBuilder = SearchCustomerCustomerAccountDtoBuilder;
|
|
97
|
+
class SearchCustomerIndividualCustomerAccountDtoBuilder extends helpers_1.Builder {
|
|
98
|
+
setDefaults() {
|
|
99
|
+
const individual = new SearchCustomerCustomerAccountIndividualPartyDtoBuilder().build();
|
|
100
|
+
return new SearchCustomerCustomerAccountDtoBuilder().with('individual', individual).build();
|
|
101
|
+
}
|
|
102
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
103
|
+
return {};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.SearchCustomerIndividualCustomerAccountDtoBuilder = SearchCustomerIndividualCustomerAccountDtoBuilder;
|
|
107
|
+
class SearchCustomerOrganizationCustomerAccountDtoBuilder extends helpers_1.Builder {
|
|
108
|
+
setDefaults() {
|
|
109
|
+
const organization = new SearchCustomerCustomerAccountOrganizationPartyDtoBuilder().build();
|
|
110
|
+
return new SearchCustomerCustomerAccountDtoBuilder().with('organization', organization).build();
|
|
111
|
+
}
|
|
112
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
113
|
+
return {};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.SearchCustomerOrganizationCustomerAccountDtoBuilder = SearchCustomerOrganizationCustomerAccountDtoBuilder;
|
|
36
117
|
class BillReceiverDto {
|
|
37
118
|
static _OPENAPI_METADATA_FACTORY() {
|
|
38
119
|
return { givenName: { required: true, type: () => String }, familyName: { required: true, type: () => String }, postalAddress: { required: true, type: () => String } };
|
|
39
120
|
}
|
|
40
121
|
}
|
|
41
122
|
exports.BillReceiverDto = BillReceiverDto;
|
|
123
|
+
class BillReceiverDtoBuilder extends helpers_1.Builder {
|
|
124
|
+
setDefaults() {
|
|
125
|
+
return {
|
|
126
|
+
givenName: faker_1.faker.person.firstName(),
|
|
127
|
+
familyName: faker_1.faker.person.lastName(),
|
|
128
|
+
postalAddress: (0, helpers_1.fakerNumericStringLen)(5)
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
132
|
+
return {};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.BillReceiverDtoBuilder = BillReceiverDtoBuilder;
|
|
42
136
|
class SearchCustomerBillingAccountDto {
|
|
43
137
|
static _OPENAPI_METADATA_FACTORY() {
|
|
44
138
|
return { state: { required: true, enum: require("../constants/bp.constants").BpAccountStateType }, billReceiver: { required: true, type: () => require("./customer.entity").BillReceiverDto } };
|
|
45
139
|
}
|
|
46
140
|
}
|
|
47
141
|
exports.SearchCustomerBillingAccountDto = SearchCustomerBillingAccountDto;
|
|
142
|
+
class SearchCustomerBillingAccountDtoBuilder extends helpers_1.Builder {
|
|
143
|
+
setDefaults() {
|
|
144
|
+
return {
|
|
145
|
+
state: faker_1.faker.helpers.enumValue(constants_1.BpAccountStateType),
|
|
146
|
+
billReceiver: new BillReceiverDtoBuilder().build()
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
150
|
+
return {};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
exports.SearchCustomerBillingAccountDtoBuilder = SearchCustomerBillingAccountDtoBuilder;
|
|
48
154
|
class SearchCustomerDto {
|
|
49
155
|
static _OPENAPI_METADATA_FACTORY() {
|
|
50
156
|
return { id: { required: true, type: () => String }, customerAccount: { required: true, type: () => require("./customer.entity").SearchCustomerCustomerAccountDto }, billingAccount: { required: true, type: () => require("./customer.entity").SearchCustomerBillingAccountDto } };
|
|
51
157
|
}
|
|
52
158
|
}
|
|
53
159
|
exports.SearchCustomerDto = SearchCustomerDto;
|
|
160
|
+
class SearchCustomerDtoBuilder extends helpers_1.Builder {
|
|
161
|
+
setDefaults() {
|
|
162
|
+
return {
|
|
163
|
+
id: (0, helpers_1.fakerCustomerId)(),
|
|
164
|
+
customerAccount: new SearchCustomerCustomerAccountDtoBuilder().build(),
|
|
165
|
+
billingAccount: new SearchCustomerBillingAccountDtoBuilder().build()
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
169
|
+
return {};
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
exports.SearchCustomerDtoBuilder = SearchCustomerDtoBuilder;
|
|
54
173
|
class SearchCustomersFiltersDto extends search_1.BaseSearchFiltersDto {
|
|
55
174
|
static _OPENAPI_METADATA_FACTORY() {
|
|
56
|
-
return { firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, legalName: { required: false, type: () => String }, tradingName: { required: false, type: () => String }, identificationNumber: { required: false, type: () => String }, mobileNumber: { required: false, type: () => String }, voipNumber: { required: false, type: () => String }, customerId: { required: false, type: () => String }, email: { required: false, type: () => String } };
|
|
175
|
+
return { fetchAddress: { required: false, type: () => Boolean }, status: { required: false, enum: require("./customer.constants").SearchCustomerStatusType }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, legalName: { required: false, type: () => String }, tradingName: { required: false, type: () => String }, identificationNumber: { required: false, type: () => String }, mobileNumber: { required: false, type: () => String }, voipNumber: { required: false, type: () => String }, customerId: { required: false, type: () => String }, email: { required: false, type: () => String } };
|
|
57
176
|
}
|
|
58
177
|
}
|
|
59
178
|
exports.SearchCustomersFiltersDto = SearchCustomersFiltersDto;
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, _validators_1.TransformBoolean)(),
|
|
181
|
+
__metadata("design:type", Boolean)
|
|
182
|
+
], SearchCustomersFiltersDto.prototype, "fetchAddress", void 0);
|
|
60
183
|
class CustomerTasksFiltersDto extends search_1.BaseSearchFiltersDto {
|
|
61
184
|
static _OPENAPI_METADATA_FACTORY() {
|
|
62
185
|
return {};
|
|
@@ -47,3 +47,6 @@ export declare const E_REVIEW_MULTIPLE_FIBER_BUNDLES_CUSTOMER_AGRRUPATION_CREATE
|
|
|
47
47
|
export declare const E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_DEACTIVATE = "E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_DEACTIVATE";
|
|
48
48
|
export declare const E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_MULTIPLE_FIBER_BUNDLES = "E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_MULTIPLE_FIBER_BUNDLES";
|
|
49
49
|
export declare const E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE = "E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE";
|
|
50
|
+
export declare const E_CUSTOMERS_TO_CHECK_LIMIT_REACHED = "E_CUSTOMERS_TO_CHECK_LIMIT_REACHED";
|
|
51
|
+
export declare const E_CUSTOMER_HAS_DRAFT_ORDER = "E_CUSTOMER_HAS_DRAFT_ORDER";
|
|
52
|
+
export declare const E_CUSTOMER_HAS_DEBT = "E_CUSTOMER_HAS_DEBT";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_MULTIPLE_FIBER_BUNDLES = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_DEACTIVATE = exports.E_REVIEW_MULTIPLE_FIBER_BUNDLES_CUSTOMER_AGRRUPATION_CREATED_DIRECT_SEND_TO_BSS = exports.E_REVIEW_DEACTIVATE_CUSTOMER_AGRRUPATION_CREATED_DIRECT_SEND_TO_BSS = exports.E_UPLOAD_CUSTOMER_ACCOUNT_DOCUMENT = exports.E_UPDATE_CUSTOMER_POSTAL_AND_BILLING_ADDRESS_FROM_APARTMENT_ID = exports.E_UPDATE_CUSTOMER_ACCOUNT = exports.E_SEARCH_CUSTOMERS = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS_NEGATIVE_INVOICE = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE = exports.E_ORDER_NOT_BELONG_TO_CUSTOMER = exports.E_FETCH_CUSTOMERS = exports.E_FETCH_CUSTOMER_PRODUCTS = exports.E_FETCH_CUSTOMER_NOTES = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_FETCH_CUSTOMER_ACCOUNT = exports.E_CUSTOMER_WITHOUT_VALID_APARTMENT = exports.E_CUSTOMER_WITHOUT_RELATED_PARTY = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_TERMINATION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_WITHOUT_STEPS = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_UNKNOWN_STEP = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_STEP_UNSTARTED = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_WITHOUT_STEPS = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_VOIP_NUMBER_POOL = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_UNKNOWN_STEP = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_STEP_UNSTARTED = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_INVALID_PRODUCT = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_FORBIDDEN_STATUS = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_UNKNOWN_OWNER_RELATED_PARTY = exports.E_CUSTOMER_ORGANIZATION_OWNER_WITHOUT_CONTACT_PARTY = exports.E_CUSTOMER_WITHOUT_OWNER_RELATED_PARTY = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_HAS_ALL_EXTRAS = exports.E_CUSTOMER_CHECK_DEBT = exports.E_CUSTOMER_AGGRUPATION_UNHAPPY_RUNNING = exports.E_CUSTOMER_AGGRUPATION_HAPPY_RUNNING = exports.E_CREATE_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS = exports.E_CREATE_CUSTOMER_ACCOUNT_NOTE = exports.E_CREATE_CUSTOMER_ACCOUNT_HISTORY = exports.E_CREATE_CUSTOMER_ACCOUNT = void 0;
|
|
3
|
+
exports.E_CUSTOMERS_TO_CHECK_LIMIT_REACHED = exports.E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_MULTIPLE_FIBER_BUNDLES = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_DEACTIVATE = exports.E_REVIEW_MULTIPLE_FIBER_BUNDLES_CUSTOMER_AGRRUPATION_CREATED_DIRECT_SEND_TO_BSS = exports.E_REVIEW_DEACTIVATE_CUSTOMER_AGRRUPATION_CREATED_DIRECT_SEND_TO_BSS = exports.E_UPLOAD_CUSTOMER_ACCOUNT_DOCUMENT = exports.E_UPDATE_CUSTOMER_POSTAL_AND_BILLING_ADDRESS_FROM_APARTMENT_ID = exports.E_UPDATE_CUSTOMER_ACCOUNT = exports.E_SEARCH_CUSTOMERS = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS_NEGATIVE_INVOICE = exports.E_REVIEW_CUSTOMER_CHARGES_AND_CREDITS = exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE = exports.E_ORDER_NOT_BELONG_TO_CUSTOMER = exports.E_FETCH_CUSTOMERS = exports.E_FETCH_CUSTOMER_PRODUCTS = exports.E_FETCH_CUSTOMER_NOTES = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_FETCH_CUSTOMER_ACCOUNT = exports.E_CUSTOMER_WITHOUT_VALID_APARTMENT = exports.E_CUSTOMER_WITHOUT_RELATED_PARTY = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_TERMINATION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_WITHOUT_STEPS = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_UNKNOWN_STEP = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_STEP_UNSTARTED = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_PRODUCT_MODIFICATION_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_WITHOUT_STEPS = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_VOIP_NUMBER_POOL = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_UNKNOWN_STEP = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_STEP_UNSTARTED = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_INVALID_PRODUCT = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_FORBIDDEN_STATUS = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_UNKNOWN_OWNER_RELATED_PARTY = exports.E_CUSTOMER_ORGANIZATION_OWNER_WITHOUT_CONTACT_PARTY = exports.E_CUSTOMER_WITHOUT_OWNER_RELATED_PARTY = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_OWNER_MISMATCHING = exports.E_CUSTOMER_NEW_EXTRAS_PROCESS_ALREADY_EXISTS = exports.E_CUSTOMER_HAS_ALL_EXTRAS = exports.E_CUSTOMER_CHECK_DEBT = exports.E_CUSTOMER_AGGRUPATION_UNHAPPY_RUNNING = exports.E_CUSTOMER_AGGRUPATION_HAPPY_RUNNING = exports.E_CREATE_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS = exports.E_CREATE_CUSTOMER_ACCOUNT_NOTE = exports.E_CREATE_CUSTOMER_ACCOUNT_HISTORY = exports.E_CREATE_CUSTOMER_ACCOUNT = void 0;
|
|
4
|
+
exports.E_CUSTOMER_HAS_DEBT = exports.E_CUSTOMER_HAS_DRAFT_ORDER = void 0;
|
|
4
5
|
exports.E_CREATE_CUSTOMER_ACCOUNT = 'E_CREATE_CUSTOMER_ACCOUNT';
|
|
5
6
|
exports.E_CREATE_CUSTOMER_ACCOUNT_HISTORY = 'E_CREATE_CUSTOMER_ACCOUNT_HISTORY';
|
|
6
7
|
exports.E_CREATE_CUSTOMER_ACCOUNT_NOTE = 'E_CREATE_CUSTOMER_ACCOUNT_NOTE';
|
|
@@ -50,3 +51,6 @@ exports.E_REVIEW_MULTIPLE_FIBER_BUNDLES_CUSTOMER_AGRRUPATION_CREATED_DIRECT_SEND
|
|
|
50
51
|
exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_DEACTIVATE = 'E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_DEACTIVATE';
|
|
51
52
|
exports.E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_MULTIPLE_FIBER_BUNDLES = 'E_REVIEW_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_MULTIPLE_FIBER_BUNDLES';
|
|
52
53
|
exports.E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE = 'E_REVIEW_CREATED_CUSTOMER_AGRRUPATION_DIRECT_SEND_TO_BSS_WITHOUT_SIGNATURE';
|
|
54
|
+
exports.E_CUSTOMERS_TO_CHECK_LIMIT_REACHED = 'E_CUSTOMERS_TO_CHECK_LIMIT_REACHED';
|
|
55
|
+
exports.E_CUSTOMER_HAS_DRAFT_ORDER = 'E_CUSTOMER_HAS_DRAFT_ORDER';
|
|
56
|
+
exports.E_CUSTOMER_HAS_DEBT = 'E_CUSTOMER_HAS_DEBT';
|
|
@@ -34,4 +34,5 @@ export declare const E_NUMBER_FROM_POOL_NOT_FOUND = "E_NUMBER_FROM_POOL_NOT_FOUN
|
|
|
34
34
|
export declare const E_BUNDLE_TYPE_CONFIGURATION_NOT_FOUND = "E_BUNDLE_TYPE_CONFIGURATION_NOT_FOUND";
|
|
35
35
|
export declare const E_CUSTOMER_BILLING_PAYMENT_METHODS_NOT_FOUND = "E_CUSTOMER_BILLING_PAYMENT_METHODS_NOT_FOUND";
|
|
36
36
|
export declare const E_CUSTOMER_BILLING_DIRECT_DEBIT_PAYMENT_METHOD_NOT_FOUND = "E_CUSTOMER_BILLING_DIRECT_DEBIT_PAYMENT_METHOD_NOT_FOUND";
|
|
37
|
+
export declare const E_CUSTOMER_BILLING_DIRECT_DEBIT_MANDATE_NOT_FOUND = "E_CUSTOMER_BILLING_DIRECT_DEBIT_MANDATE_NOT_FOUND";
|
|
37
38
|
export declare const E_TASK_NOT_FOUND = "E_TASK_NOT_FOUND";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.E_TASK_NOT_FOUND = exports.E_CUSTOMER_BILLING_DIRECT_DEBIT_PAYMENT_METHOD_NOT_FOUND = exports.E_CUSTOMER_BILLING_PAYMENT_METHODS_NOT_FOUND = exports.E_BUNDLE_TYPE_CONFIGURATION_NOT_FOUND = exports.E_NUMBER_FROM_POOL_NOT_FOUND = exports.E_ZIP_ADDRESSES_NOT_FOUND = exports.E_WORKGROUP_NOT_FOUND = exports.E_USER_NOT_FOUND = exports.E_PRODUCT_TRANSITION_CONFIGURATION_NOT_FOUND = exports.E_PRODUCT_TRANSITION_GROUP_NOT_FOUND = exports.E_PRODUCT_MOBILE_PROFILE_EQUIVALENCE_NOT_FOUND = exports.E_PRODUCT_CHARACTERISITC_EQUIVALENCE_NOT_FOUND = exports.E_SHOPPING_CART_NOT_FOUND = exports.E_NOT_FOUND = exports.E_SALE_PROCESS_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LEAD_FILE_NOT_FOUND = exports.E_CONFIGURATION_NOT_FOUND = exports.E_CHANGE_OF_ADDRESS_CHARACTERISTIC_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_INTERMEDIATE_BUNDLE_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_FIBER_PRODUCT_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_TRANSITION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_MODIFICATION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_DEACTIVATION_NOT_FOUND = exports.E_CUSTOMER_NEW_EXTRAS_NOT_FOUND = exports.E_CUSTOMER_AGGRUPATION_NOT_FOUND = exports.E_CUSTOMER_NOT_FOUND = exports.E_BUNDLE_PRODUCTS_NOT_FOUND = exports.E_AUTH_NOT_FOUND = exports.E_AREA_ADDRESSES_NOT_FOUND = exports.E_APPROVAL_NOT_FOUND = exports.E_APPROVAL_DATA_TO_APPROVE_NOT_FOUND = exports.E_APPROVAL_DATA_NOT_FOUND = exports.E_APARTMENT_NOT_FOUND = exports.E_ADDRESS_NOT_FOUND = void 0;
|
|
3
|
+
exports.E_TASK_NOT_FOUND = exports.E_CUSTOMER_BILLING_DIRECT_DEBIT_MANDATE_NOT_FOUND = exports.E_CUSTOMER_BILLING_DIRECT_DEBIT_PAYMENT_METHOD_NOT_FOUND = exports.E_CUSTOMER_BILLING_PAYMENT_METHODS_NOT_FOUND = exports.E_BUNDLE_TYPE_CONFIGURATION_NOT_FOUND = exports.E_NUMBER_FROM_POOL_NOT_FOUND = exports.E_ZIP_ADDRESSES_NOT_FOUND = exports.E_WORKGROUP_NOT_FOUND = exports.E_USER_NOT_FOUND = exports.E_PRODUCT_TRANSITION_CONFIGURATION_NOT_FOUND = exports.E_PRODUCT_TRANSITION_GROUP_NOT_FOUND = exports.E_PRODUCT_MOBILE_PROFILE_EQUIVALENCE_NOT_FOUND = exports.E_PRODUCT_CHARACTERISITC_EQUIVALENCE_NOT_FOUND = exports.E_SHOPPING_CART_NOT_FOUND = exports.E_NOT_FOUND = exports.E_SALE_PROCESS_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LEAD_FILE_NOT_FOUND = exports.E_CONFIGURATION_NOT_FOUND = exports.E_CHANGE_OF_ADDRESS_CHARACTERISTIC_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_INTERMEDIATE_BUNDLE_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_FIBER_PRODUCT_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_TRANSITION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_MODIFICATION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_DEACTIVATION_NOT_FOUND = exports.E_CUSTOMER_NEW_EXTRAS_NOT_FOUND = exports.E_CUSTOMER_AGGRUPATION_NOT_FOUND = exports.E_CUSTOMER_NOT_FOUND = exports.E_BUNDLE_PRODUCTS_NOT_FOUND = exports.E_AUTH_NOT_FOUND = exports.E_AREA_ADDRESSES_NOT_FOUND = exports.E_APPROVAL_NOT_FOUND = exports.E_APPROVAL_DATA_TO_APPROVE_NOT_FOUND = exports.E_APPROVAL_DATA_NOT_FOUND = exports.E_APARTMENT_NOT_FOUND = exports.E_ADDRESS_NOT_FOUND = void 0;
|
|
4
4
|
exports.E_ADDRESS_NOT_FOUND = 'E_ADDRESS_NOT_FOUND';
|
|
5
5
|
exports.E_APARTMENT_NOT_FOUND = 'E_APARTMENT_NOT_FOUND';
|
|
6
6
|
exports.E_APPROVAL_DATA_NOT_FOUND = 'E_APPROVAL_DATA_NOT_FOUND';
|
|
@@ -37,4 +37,5 @@ exports.E_NUMBER_FROM_POOL_NOT_FOUND = 'E_NUMBER_FROM_POOL_NOT_FOUND';
|
|
|
37
37
|
exports.E_BUNDLE_TYPE_CONFIGURATION_NOT_FOUND = 'E_BUNDLE_TYPE_CONFIGURATION_NOT_FOUND';
|
|
38
38
|
exports.E_CUSTOMER_BILLING_PAYMENT_METHODS_NOT_FOUND = 'E_CUSTOMER_BILLING_PAYMENT_METHODS_NOT_FOUND';
|
|
39
39
|
exports.E_CUSTOMER_BILLING_DIRECT_DEBIT_PAYMENT_METHOD_NOT_FOUND = 'E_CUSTOMER_BILLING_DIRECT_DEBIT_PAYMENT_METHOD_NOT_FOUND';
|
|
40
|
+
exports.E_CUSTOMER_BILLING_DIRECT_DEBIT_MANDATE_NOT_FOUND = 'E_CUSTOMER_BILLING_DIRECT_DEBIT_MANDATE_NOT_FOUND';
|
|
40
41
|
exports.E_TASK_NOT_FOUND = 'E_TASK_NOT_FOUND';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DigitelCircuitType, BpCustomerAccountIndividualTitleType, BpCustomerAccountPreferredContactTimeType } from '../../../../bss/constants';
|
|
2
2
|
import { BusinessCustomerType, CustomerType } from '../../../constants';
|
|
3
|
-
import { AddressSearchType,
|
|
3
|
+
import { AddressSearchType, SaleProcessStatusType } from '../../../../zoho/constants';
|
|
4
4
|
import { BusinessIdentificationDto, CustomerIdentificationDto } from '../../../../zoho/sale-process';
|
|
5
5
|
import { CreateCustomerAccountAddressReqDto } from '../../../../sys03/customer';
|
|
6
|
+
import { ExistingCustomerBehaviourType } from '../../../../sys03/common';
|
|
6
7
|
export declare class PartialSaleProcessCustomerDto {
|
|
7
8
|
customerType: CustomerType;
|
|
8
9
|
identification?: CustomerIdentificationDto;
|
|
@@ -18,7 +19,7 @@ export declare class PatchSaleProcessCustomerTypeSelectedDto {
|
|
|
18
19
|
}
|
|
19
20
|
export declare class PatchSaleProcessCustomerTypeValidatedDto {
|
|
20
21
|
status: SaleProcessStatusType;
|
|
21
|
-
customerAccountBehaviour:
|
|
22
|
+
customerAccountBehaviour: ExistingCustomerBehaviourType;
|
|
22
23
|
}
|
|
23
24
|
export declare class PatchSaleProcessCustomerContractDataSavedDto {
|
|
24
25
|
customerType: CustomerType;
|
|
@@ -20,6 +20,7 @@ const class_validator_1 = require("class-validator");
|
|
|
20
20
|
const _validators_1 = require("../../../../validators/index");
|
|
21
21
|
const swagger_1 = require("@nestjs/swagger");
|
|
22
22
|
const customer_1 = require("../../../../sys03/customer");
|
|
23
|
+
const common_1 = require("../../../../sys03/common");
|
|
23
24
|
class PartialSaleProcessCustomerDto {
|
|
24
25
|
static _OPENAPI_METADATA_FACTORY() {
|
|
25
26
|
return { customerType: { required: true, enum: require("../../../constants/common.constants").CustomerType }, identification: { required: false, type: () => require("../../../../zoho/sale-process/customer-identification.entity").CustomerIdentificationDto } };
|
|
@@ -79,7 +80,7 @@ __decorate([
|
|
|
79
80
|
], PatchSaleProcessCustomerTypeSelectedDto.prototype, "businessInfo", void 0);
|
|
80
81
|
class PatchSaleProcessCustomerTypeValidatedDto {
|
|
81
82
|
static _OPENAPI_METADATA_FACTORY() {
|
|
82
|
-
return { status: { required: true, enum: require("../../../../zoho/constants/zoho.constants").SaleProcessStatusType }, customerAccountBehaviour: { required: true, enum: require("../../../../
|
|
83
|
+
return { status: { required: true, enum: require("../../../../zoho/constants/zoho.constants").SaleProcessStatusType }, customerAccountBehaviour: { required: true, enum: require("../../../../sys03/common/common.constants").ExistingCustomerBehaviourType } };
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
exports.PatchSaleProcessCustomerTypeValidatedDto = PatchSaleProcessCustomerTypeValidatedDto;
|
|
@@ -88,7 +89,7 @@ __decorate([
|
|
|
88
89
|
__metadata("design:type", String)
|
|
89
90
|
], PatchSaleProcessCustomerTypeValidatedDto.prototype, "status", void 0);
|
|
90
91
|
__decorate([
|
|
91
|
-
(0, class_validator_1.IsEnum)(
|
|
92
|
+
(0, class_validator_1.IsEnum)(common_1.ExistingCustomerBehaviourType),
|
|
92
93
|
__metadata("design:type", String)
|
|
93
94
|
], PatchSaleProcessCustomerTypeValidatedDto.prototype, "customerAccountBehaviour", void 0);
|
|
94
95
|
class PatchSaleProcessCustomerContractDataSavedDto {
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerProductTransitionProcessTransitionType = void 0;
|
|
3
|
+
exports.ExistingCustomerBehaviourType = exports.CustomerProductTransitionProcessTransitionType = void 0;
|
|
4
4
|
var CustomerProductTransitionProcessTransitionType;
|
|
5
5
|
(function (CustomerProductTransitionProcessTransitionType) {
|
|
6
6
|
CustomerProductTransitionProcessTransitionType["UPGRADE"] = "upgrade";
|
|
7
7
|
CustomerProductTransitionProcessTransitionType["DOWNGRADE"] = "downgrade";
|
|
8
8
|
CustomerProductTransitionProcessTransitionType["UNKNOWN"] = "unknown";
|
|
9
9
|
})(CustomerProductTransitionProcessTransitionType || (exports.CustomerProductTransitionProcessTransitionType = CustomerProductTransitionProcessTransitionType = {}));
|
|
10
|
+
var ExistingCustomerBehaviourType;
|
|
11
|
+
(function (ExistingCustomerBehaviourType) {
|
|
12
|
+
ExistingCustomerBehaviourType["CREATE"] = "CREATE";
|
|
13
|
+
ExistingCustomerBehaviourType["PATCH"] = "PATCH";
|
|
14
|
+
})(ExistingCustomerBehaviourType || (exports.ExistingCustomerBehaviourType = ExistingCustomerBehaviourType = {}));
|