adamo-types 2.0.104-sit → 2.0.106-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/charge/charge.entity.d.ts +13 -0
- package/dist/bss/charge/charge.entity.js +13 -1
- package/dist/bss/constants/bss.constants.d.ts +2 -0
- package/dist/bss/constants/bss.constants.js +4 -0
- package/dist/bss/customer/customer.entity.d.ts +8 -4
- package/dist/bss/customer/customer.entity.js +9 -2
- package/dist/common/constants/common.error.constants.d.ts +1 -0
- package/dist/common/constants/common.error.constants.js +3 -2
- package/dist/common/constants/customer-handover.error.constants.d.ts +1 -0
- package/dist/common/constants/customer-handover.error.constants.js +2 -1
- package/dist/database/lead/index.d.ts +3 -3
- package/dist/database/lead/index.js +3 -3
- package/dist/database/lead/{leads-additional-contact.entity.d.ts → lead-additional-contact.entity.d.ts} +4 -4
- package/dist/database/lead/{leads-additional-contact.entity.js → lead-additional-contact.entity.js} +26 -26
- package/dist/database/lead/{lead-transactions.entity.d.ts → lead-transaction.entity.d.ts} +1 -1
- package/dist/database/lead/{lead-transactions.entity.js → lead-transaction.entity.js} +12 -12
- package/dist/database/lead/lead.entity.d.ts +2 -2
- package/dist/database/lead/lead.entity.js +3 -3
- package/dist/sys03/address/address.entity.d.ts +4 -0
- package/dist/sys03/address/address.entity.js +7 -1
- package/dist/sys03/customer/customer.entity.d.ts +6 -0
- package/dist/sys03/customer/customer.entity.js +34 -1
- package/dist/sys03/user/user.entity.d.ts +7 -1
- package/dist/sys03/user/user.entity.js +8 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/database/portanet/index.d.ts +0 -1
- package/dist/database/portanet/index.js +0 -17
- package/dist/database/portanet/portanet-db.entity.d.ts +0 -57
- package/dist/database/portanet/portanet-db.entity.js +0 -248
- package/dist/database/provision/index.d.ts +0 -1
- package/dist/database/provision/index.js +0 -17
- package/dist/database/provision/provision-db.entity.d.ts +0 -34
- package/dist/database/provision/provision-db.entity.js +0 -135
- package/dist/database/user/auth.entity.d.ts +0 -45
- package/dist/database/user/auth.entity.js +0 -206
- package/dist/database/user/index.d.ts +0 -1
- package/dist/database/user/index.js +0 -17
|
@@ -14,3 +14,16 @@ export declare class ChargeAndCreditDto {
|
|
|
14
14
|
activatedAt: string;
|
|
15
15
|
terminatedAt?: string;
|
|
16
16
|
}
|
|
17
|
+
export declare class AvailableOnceOnlyChargeOrCreditDto {
|
|
18
|
+
name: string;
|
|
19
|
+
displayName: string;
|
|
20
|
+
displayDescription: string;
|
|
21
|
+
amountAdjustmentAllowed: boolean;
|
|
22
|
+
billTextAdjustmentAllowed: boolean;
|
|
23
|
+
includedAmount: number;
|
|
24
|
+
excludedAmount: number;
|
|
25
|
+
}
|
|
26
|
+
export declare class BillingAccountChargesAndCreditsDto {
|
|
27
|
+
onceOnlyCharges: AvailableOnceOnlyChargeOrCreditDto[];
|
|
28
|
+
onceOnlyCredits: AvailableOnceOnlyChargeOrCreditDto[];
|
|
29
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChargeAndCreditDto = void 0;
|
|
3
|
+
exports.BillingAccountChargesAndCreditsDto = exports.AvailableOnceOnlyChargeOrCreditDto = exports.ChargeAndCreditDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class ChargeAndCreditDto {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
@@ -8,3 +8,15 @@ class ChargeAndCreditDto {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.ChargeAndCreditDto = ChargeAndCreditDto;
|
|
11
|
+
class AvailableOnceOnlyChargeOrCreditDto {
|
|
12
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
+
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, amountAdjustmentAllowed: { required: true, type: () => Boolean }, billTextAdjustmentAllowed: { required: true, type: () => Boolean }, includedAmount: { required: true, type: () => Number }, excludedAmount: { required: true, type: () => Number } };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.AvailableOnceOnlyChargeOrCreditDto = AvailableOnceOnlyChargeOrCreditDto;
|
|
17
|
+
class BillingAccountChargesAndCreditsDto {
|
|
18
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
+
return { onceOnlyCharges: { required: true, type: () => [require("./charge.entity").AvailableOnceOnlyChargeOrCreditDto] }, onceOnlyCredits: { required: true, type: () => [require("./charge.entity").AvailableOnceOnlyChargeOrCreditDto] } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.BillingAccountChargesAndCreditsDto = BillingAccountChargesAndCreditsDto;
|
|
@@ -40,6 +40,7 @@ export declare enum CacheKeyType {
|
|
|
40
40
|
BUNDLE_NAME_DISPLAY_NAME = "bundle-name-display-name",
|
|
41
41
|
BUNDLE_TYPE_CONFIGURATIONS = "bundle-type-configurations",
|
|
42
42
|
CONFIGURATION = "configuration",
|
|
43
|
+
CUSTOMER_AVAILABLE_CHARGES_AND_CREDITS = "customer-available-charges-and-credits",
|
|
43
44
|
CUSTOMER_PRODUCT = "customer-product",
|
|
44
45
|
CUSTOMER_HANDOVER_PRODUCT = "customer-handover:product",
|
|
45
46
|
CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_INTERMEDIATE_PRODUCT = "customer-product-change-of-address-intermediate-product",
|
|
@@ -69,6 +70,7 @@ export declare enum CacheKeyType {
|
|
|
69
70
|
SHOPPING_CART_SUMMARY_V2 = "v2:shopping-cart-summary",
|
|
70
71
|
TARIFF_MODEL = "tariff-model",
|
|
71
72
|
USER_PERMISSIONS = "user-permissions",
|
|
73
|
+
USER_DATA_ACCESS = "user-data-access",
|
|
72
74
|
HISTORY_CUSTOMERS = "history-customers"
|
|
73
75
|
}
|
|
74
76
|
export declare const CacheKeyTypeTtl: Record<CacheKeyType, number>;
|
|
@@ -85,6 +85,7 @@ var CacheKeyType;
|
|
|
85
85
|
CacheKeyType["BUNDLE_NAME_DISPLAY_NAME"] = "bundle-name-display-name";
|
|
86
86
|
CacheKeyType["BUNDLE_TYPE_CONFIGURATIONS"] = "bundle-type-configurations";
|
|
87
87
|
CacheKeyType["CONFIGURATION"] = "configuration";
|
|
88
|
+
CacheKeyType["CUSTOMER_AVAILABLE_CHARGES_AND_CREDITS"] = "customer-available-charges-and-credits";
|
|
88
89
|
CacheKeyType["CUSTOMER_PRODUCT"] = "customer-product";
|
|
89
90
|
CacheKeyType["CUSTOMER_HANDOVER_PRODUCT"] = "customer-handover:product";
|
|
90
91
|
CacheKeyType["CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_INTERMEDIATE_PRODUCT"] = "customer-product-change-of-address-intermediate-product";
|
|
@@ -114,6 +115,7 @@ var CacheKeyType;
|
|
|
114
115
|
CacheKeyType["SHOPPING_CART_SUMMARY_V2"] = "v2:shopping-cart-summary";
|
|
115
116
|
CacheKeyType["TARIFF_MODEL"] = "tariff-model";
|
|
116
117
|
CacheKeyType["USER_PERMISSIONS"] = "user-permissions";
|
|
118
|
+
CacheKeyType["USER_DATA_ACCESS"] = "user-data-access";
|
|
117
119
|
CacheKeyType["HISTORY_CUSTOMERS"] = "history-customers";
|
|
118
120
|
})(CacheKeyType || (exports.CacheKeyType = CacheKeyType = {}));
|
|
119
121
|
exports.CacheKeyTypeTtl = {
|
|
@@ -139,6 +141,7 @@ exports.CacheKeyTypeTtl = {
|
|
|
139
141
|
[CacheKeyType.BUNDLE_NAME_DISPLAY_NAME]: 1000 * 60 * 60,
|
|
140
142
|
[CacheKeyType.BUNDLE_TYPE_CONFIGURATIONS]: 1000 * 60 * 60 * 24,
|
|
141
143
|
[CacheKeyType.CONFIGURATION]: 1000 * 60 * 60 * 24,
|
|
144
|
+
[CacheKeyType.CUSTOMER_AVAILABLE_CHARGES_AND_CREDITS]: 1000 * 60 * 60 * 24,
|
|
142
145
|
[CacheKeyType.CUSTOMER_PRODUCT]: 1000 * 60 * 60 * 3,
|
|
143
146
|
[CacheKeyType.CUSTOMER_HANDOVER_PRODUCT]: 1000 * 60 * 60 * 24 * 30,
|
|
144
147
|
[CacheKeyType.CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_INTERMEDIATE_PRODUCT]: 1000 * 60 * 60 * 24 * 30,
|
|
@@ -168,6 +171,7 @@ exports.CacheKeyTypeTtl = {
|
|
|
168
171
|
[CacheKeyType.SHOPPING_CART_SUMMARY_V2]: 1000 * 60 * 60 * 24,
|
|
169
172
|
[CacheKeyType.TARIFF_MODEL]: 0,
|
|
170
173
|
[CacheKeyType.USER_PERMISSIONS]: 1000 * 60,
|
|
174
|
+
[CacheKeyType.USER_DATA_ACCESS]: 1000 * 60,
|
|
171
175
|
[CacheKeyType.HISTORY_CUSTOMERS]: 1000 * 60 * 60 * 24 * 3
|
|
172
176
|
};
|
|
173
177
|
var ShoppingCartProductAction;
|
|
@@ -97,16 +97,20 @@ export declare class CustomerOrdersFiltersDto extends BaseSearchFiltersDto {
|
|
|
97
97
|
export declare class CustomerBillsFiltersDto extends BaseSearchFiltersDto {
|
|
98
98
|
}
|
|
99
99
|
export declare class CustomerCharacteristicDto {
|
|
100
|
-
id
|
|
101
|
-
|
|
100
|
+
id: string;
|
|
101
|
+
customerAccountId: string;
|
|
102
102
|
name: string;
|
|
103
|
-
invoiceText
|
|
103
|
+
invoiceText?: string;
|
|
104
104
|
startDate: string;
|
|
105
105
|
endDate: string;
|
|
106
|
-
netCharge
|
|
106
|
+
netCharge?: string;
|
|
107
|
+
}
|
|
108
|
+
declare const CreateCustomerCharacteristicDto_base: import("@nestjs/common").Type<Pick<CustomerCharacteristicDto, "name" | "customerAccountId"> & Partial<Pick<CustomerCharacteristicDto, keyof CustomerCharacteristicDto>>>;
|
|
109
|
+
export declare class CreateCustomerCharacteristicDto extends CreateCustomerCharacteristicDto_base {
|
|
107
110
|
}
|
|
108
111
|
export declare class CustomerFinancialBalancesDto {
|
|
109
112
|
accountBalance: number;
|
|
110
113
|
overdueBalance: number;
|
|
111
114
|
writeOffBalance: number;
|
|
112
115
|
}
|
|
116
|
+
export {};
|
|
@@ -9,13 +9,14 @@ 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.CustomerFinancialBalancesDto = 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;
|
|
12
|
+
exports.CustomerFinancialBalancesDto = exports.CreateCustomerCharacteristicDto = 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;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const search_1 = require("../search");
|
|
15
15
|
const constants_1 = require("../constants");
|
|
16
16
|
const _validators_1 = require("../../validators/index");
|
|
17
17
|
const helpers_1 = require("../../common/helpers/helpers");
|
|
18
18
|
const faker_1 = require("@faker-js/faker");
|
|
19
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
19
20
|
class ContactMediumDto {
|
|
20
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
21
22
|
return { type: { required: true, enum: require("./customer.constants").ContactMediumType }, value: { required: true, type: () => String } };
|
|
@@ -206,10 +207,16 @@ class CustomerBillsFiltersDto extends search_1.BaseSearchFiltersDto {
|
|
|
206
207
|
exports.CustomerBillsFiltersDto = CustomerBillsFiltersDto;
|
|
207
208
|
class CustomerCharacteristicDto {
|
|
208
209
|
static _OPENAPI_METADATA_FACTORY() {
|
|
209
|
-
return { id: { required:
|
|
210
|
+
return { id: { required: true, type: () => String }, customerAccountId: { required: true, type: () => String }, name: { required: true, type: () => String }, invoiceText: { required: false, type: () => String }, startDate: { required: true, type: () => String }, endDate: { required: true, type: () => String }, netCharge: { required: false, type: () => String } };
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
213
|
exports.CustomerCharacteristicDto = CustomerCharacteristicDto;
|
|
214
|
+
class CreateCustomerCharacteristicDto extends (0, swagger_1.IntersectionType)((0, swagger_1.PickType)(CustomerCharacteristicDto, ['name', 'customerAccountId']), (0, swagger_1.PartialType)((0, swagger_1.PickType)(CustomerCharacteristicDto, ['invoiceText', 'startDate', 'endDate', 'netCharge']))) {
|
|
215
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
216
|
+
return {};
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
exports.CreateCustomerCharacteristicDto = CreateCustomerCharacteristicDto;
|
|
213
220
|
class CustomerFinancialBalancesDto {
|
|
214
221
|
static _OPENAPI_METADATA_FACTORY() {
|
|
215
222
|
return { accountBalance: { required: true, type: () => Number }, overdueBalance: { required: true, type: () => Number }, writeOffBalance: { required: true, type: () => Number } };
|
|
@@ -130,6 +130,7 @@ export declare const E_SALE_PROCESS_UNKNOWN_COMPANY_TYPE = "E_SALE_PROCESS_UNKNO
|
|
|
130
130
|
export declare const E_SALE_PROCESS_DOCUMENTS_REQUIRED = "E_SALE_PROCESS_DOCUMENTS_REQUIRED";
|
|
131
131
|
export declare const E_FETCH_PRODUCT_ORDERS = "E_FETCH_PRODUCT_ORDERS";
|
|
132
132
|
export declare const E_FETCH_PRODUCT_ORDER = "E_FETCH_PRODUCT_ORDER";
|
|
133
|
+
export declare const E_FETCH_AVAILABLE_CHARGES_AND_CREDITS = "E_FETCH_AVAILABLE_CHARGES_AND_CREDITS";
|
|
133
134
|
export declare const E_BI_SALES_EXTRACTION = "E_BI_SALES_EXTRACTION";
|
|
134
135
|
export declare const E_USER_WITHOUT_AUTH = "E_USER_WITHOUT_AUTH";
|
|
135
136
|
export declare const E_USER_WITHOUT_WORKGROUPS = "E_USER_WITHOUT_WORKGROUPS";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.E_CREATE_MANDATE = exports.E_UPDATE_BILLING_ACCOUNT = exports.E_CREATE_BILLING_ACCOUNT = exports.E_FETCH_ADDRESS = exports.E_CREATE_ADDRESS = exports.E_FIBER_NOT_AVAILABLE_FOR_THIS_NETWORK = exports.E_UPDATE_SHOPPING_CART_CONFIGURATION = exports.E_CIF_VALIDATION = exports.E_NIE_VALIDATION = exports.E_DNI_VALIDATION = exports.E_SET_SHOPPING_CART_PROMOTIONS = exports.E_SET_SHOPPING_CART_CONTRACT = exports.E_FETCH_AVAILABLE_NUMBERS_FROM_POOL = exports.E_PROVINCE_WITHOUT_PREFIXES = exports.E_SERVER = exports.E_CONNECTION_REFUSED = exports.E_VALIDATION = exports.E_BODY_NOT_OBJECT = exports.E_BODY_NOT_ARRAY = exports.E_BODY_NOT_PROVIDED = exports.E_NO_CHANNEL_SELECTED = exports.E_CHANGE_CHANNEL = exports.E_SERVICE_UNAVAILABLE = exports.E_INVALID_USER_CREDENTIALS = exports.E_TASK4WORK = exports.E_INFONOVA = exports.E_BP_INTERNAL_SERVER_ERROR = exports.E_UPDATE_SHOPPING_CART_EXTRAS = exports.E_EMPTY_SHOPPING_CART = exports.E_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = exports.E_PERSIST_SHOPPING_CART = exports.E_SAVE_SHOPPING_CART = exports.E_CREATE_SHOPPING_CART = exports.E_FETCH_PRODUCT_DEFAULT_SUMMARY = exports.E_FETCH_SHOPPING_CART_TRANSITION_ONLY_MOBILES = exports.E_FETCH_SHOPPING_CART_MODIFICATION = exports.E_FETCH_SHOPPING_CART_CONFIGURATION = exports.E_FETCH_SHOPPING_CART_SUMMARY = exports.E_FETCH_SHOPPING_CART_AVAILABLE_EXTRAS = exports.E_FETCH_SHOPPING_CART_AVAILABLE_PRODUCT = exports.E_FETCH_SHOPPING_CART_AVAILABLE_PRODUCTS = exports.E_FETCH_PRODUCT_OFFERINGS = exports.E_ASSIGN_SALESPERSON = exports.E_ASSIGN_ROLE_TENENT = exports.E_CREATE_USER = exports.E_UPDATE_PASSWORD = exports.E_ASSIGN_CHANNELS = exports.E_ENTRAID_LOGIN = exports.E_LOGIN = exports.E_TIMEOUT = void 0;
|
|
4
4
|
exports.E_FETCH_LOOKUP_OPTIONS = exports.E_INVALID_SALE_PROCESS_STATUS = exports.E_USER_ROLE_UNKNOWN = exports.E_USER_WITHOUT_ROLE = exports.E_RESERVE_NUMBER_FROM_POOL = exports.E_FETCH_NUMBER_FROM_POOL = exports.E_WHOLESALE_APARTMENT_BLACKLISTED = exports.E_USER_SALE_PROCESS_PERMISSION = exports.E_UPDATE_CACHE_RECORD = exports.E_DELETE_CACHE_RECORD = exports.E_UPDATE_PRODUCT_CATALOG = exports.E_DELETE_PRODUCT_CATALOG = exports.E_FETCH_ORGANIZATION_PARTY = exports.E_FETCH_INDIVIDUAL_PARTY = exports.E_FETCH_PAYMENT_METHOD = exports.E_FETCH_MANDATE = exports.E_FETCH_BILLING_ACCOUNT = exports.E_FETCH_PRODUCT_INVENTORY = exports.E_FETCH_ORGANIZATION_PARTIES = exports.E_FETCH_INDIVIDUAL_PARTIES = exports.E_DOWNLOAD_INVOICE = exports.E_FETCH_BILLING_ACCOUNT_DETAILS = exports.E_INVALID_IBAN_ACCOUNT_NUMBER_CONTROL_CODE = exports.E_INVALID_IBAN_MOD = exports.E_INVALID_IBAN_FORMAT = exports.E_INVALID_IBAN_LENGTH = exports.E_INVALID_IBAN_ISO_CODE = exports.E_IBAN_SUPPORTED_COUNTRIES_ARE_REQUIRED = exports.E_IBAN_IS_REQUIRED = exports.E_IBAN_COUNTRY_NOT_SUPPORTED = exports.E_SPAIN_NOT_ALLOWED = exports.E_EMAIL_INVALID_FORMAT = exports.E_PHONE_INVALID_FORMAT = exports.E_PHONE_INVALID_LENGTH = exports.E_VALIDATE_SHOPPING_CART = exports.E_FETCH_CHANNEL_USERS = exports.E_SFTP_DOWNLOAD = exports.E_SFTP_UPLOAD = exports.E_SFTP_LIST = exports.E_SFTP_CONNECT = exports.E_FTP_RENAME = exports.E_FTP_REMOVE = exports.E_FTP_DOWNLOAD = exports.E_FTP_UPLOAD = exports.E_SUBMIT_SHOPPING_CART = exports.E_FETCH_SHOPPING_CART = exports.E_CREATE_PAYMENT = exports.E_UPDATE_PAYMENT_METHOD = exports.E_CREATE_PAYMENT_METHOD = exports.E_UPDATE_MANDATE = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.E_SALE_PROCESS_FILE_WITHOUT_APPROVAL = exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE = exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT = exports.E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING = exports.E_CREATE_PRODUCT_ORDER = exports.E_ENUM_VALUE_EQUIVALENCE = exports.E_SHOPPING_CART_CONFIGURATION_FEATURE_GROUP_INCONSISTENT_MIN_MAX = exports.E_SALE_PROCESS_CREDIT_BUREAU_VALIDATION_REJECTED = exports.E_CHANGE_OF_ADDRESS_INTERMEDIATE_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = exports.E_PRODUCT_ACTION_DISABLED_CHANGE_OF_ADDRESS_2ND_PHASE_IN_PROGRESS = exports.E_PRODUCT_ACTION_DISABLED_NOT_INTERMEDIATE_PRODUCT = exports.E_SHOPPING_CART_WITHOUT_PROVINCE_PARAMETER = exports.E_AGGRUPATION_CREATION_NOT_ALLOWED = exports.E_SHOPPING_CART_APARTMENT_BUSINESS_RULE = exports.E_PROVINCE_WITHOUT_AVAILABLE_VOIP_NUMBERS = exports.E_SHOPPING_CART_DEPRECATED = exports.E_APPROVAL_MODIFY_DISABLED_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_WITHOUT_VALIDATION = exports.E_APPROVAL_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_APPROVAL_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_IBAN_VALIDATION_PENDING = exports.E_APPROVAL_IBAN_VALIDATION_ERROR = exports.E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED = exports.E_APPROVAL_IBAN_VALIDATION_REJECTED = exports.E_SALE_PROCESS_FORBIDDEN_APPROVAL = exports.E_SALE_PROCESS_FORBIDDEN_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_PENDING = exports.E_SALE_PROCESS_IBAN_VALIDATION_REJECTED = exports.E_CHARACTERISTIC_NOT_CHANGEABLE = exports.E_BUNDLE_NOT_AVAILABLE_IN_CHANNEL = exports.E_UNKNOWN_CACHE_KEY = exports.E_FILTER_PRODUCT_BY_PARAMETERS = exports.E_FETCH_CHARGES_AND_CREDITS = exports.E_FETCH_SERVICE_INVENTORY_BY_ID = exports.E_FETCH_PRODUCT_INVENTORY_BY_ID = exports.E_ENCRYPTION_KEY = exports.E_FETCH_BILLS = exports.E_PATCH_BILLING_STATE = exports.E_FETCH_ORDER_HIERARCHY = exports.E_FETCH_WORK_ORDERS = exports.E_FETCH_ORDERS = exports.E_FILTERS_REQUIRED = exports.E_RESOLVE_TASKS = exports.E_FETCH_TASKS = exports.E_FETCH_TASK_NOTES = exports.E_PATCH_TASK = exports.E_FETCH_TASK = void 0;
|
|
5
|
+
exports.E_DIGITEL_PROCESS_ERROR = exports.E_APPROVAL_FORBIDDEN_VALIDATION = exports.E_APPROVAL_FORBIDDEN_STATUS = exports.E_APPROVAL_DATA_WITHOUT_CHANGES = exports.E_APPROVAL_DATA_WITHOUT_RESPONSE = exports.E_SALE_PROCESS_PENDING_APPROVAL_UNSOLVED = exports.E_SALE_PROCESS_PENDING_APPROVAL = exports.E_CSV_INVALID_RECORDS = exports.E_CSV_INVALID_RECORD_LENGTH = exports.E_PARSE_CSV = exports.E_PUT_LOOKUP_OPTIONS = exports.E_USER_INACTIVE = exports.E_USER_WITHOUT_TENANTS = exports.E_USER_WITH_EMPTY_WORKGROUP_PERMISSIONS = exports.E_USER_WITHOUT_WORKGROUPS = exports.E_USER_WITHOUT_AUTH = exports.E_BI_SALES_EXTRACTION = exports.E_FETCH_AVAILABLE_CHARGES_AND_CREDITS = exports.E_FETCH_PRODUCT_ORDER = exports.E_FETCH_PRODUCT_ORDERS = exports.E_SALE_PROCESS_DOCUMENTS_REQUIRED = exports.E_SALE_PROCESS_UNKNOWN_COMPANY_TYPE = exports.E_SALE_PROCESS_UNKNOWN_CUSTOMER_TYPE = exports.E_SALE_PROCESS_BUSINESS_CUSTOMER_WITHOUT_INFO = exports.E_SALE_PROCESS_BUSINESS_CUSTOMER_WITHOUT_IDENTIFICATION = exports.E_SALE_PROCESS_RESIDENTIAL_CUSTOMER_WITHOUT_IDENTIFICATION = exports.E_SALE_PROCESS_WITHOUT_CHANGES = exports.E_SALE_PROCESS_WITHOUT_IBAN_VALIDATION_ID = exports.E_SALE_PROCESS_WITHOUT_SHOPPING_CART = exports.E_APPLY_CHARGE = exports.E_PRODUCT_SERVICE_MISSING = exports.E_SALE_PROCESS_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_ADDRESS_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_UPDATE_PRODUCT_CATALOG_CACHE = exports.E_ENTRY_FOREIGN_KEY_CONSTRAINT = exports.E_DUPLICATE_ENTRY = exports.E_UNHANDLED_KEY = exports.E_LOGIN_MAX_ATTEMPTS_REACHED = exports.E_TOO_MANY_REQUESTS = exports.E_UPLOAD_SALE_PROCESS_CONTRACT = exports.E_FETCH_USER_CHANNELS = exports.E_UNAUTHORIZED = exports.E_USER_NOT_FOUND_WITHOUT_CHANNELS = exports.E_USER_WITHOUT_CHANNELS = exports.E_FETCH_SHOPPING_CART_PROMOTIONS_AND_CONTRACTS = exports.E_FETCH_SHOPPING_CART_FEATURES = exports.E_NOT_IMPLEMENTED = exports.E_NOT_BASE_BUNDLE = exports.E_NO_SELECTED_CHANNEL = void 0;
|
|
6
|
+
exports.E_SALE_PROCESS_FILE_WITHOUT_APPROVAL = exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE = exports.E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT = exports.E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING = exports.E_CREATE_PRODUCT_ORDER = exports.E_ENUM_VALUE_EQUIVALENCE = exports.E_SHOPPING_CART_CONFIGURATION_FEATURE_GROUP_INCONSISTENT_MIN_MAX = exports.E_SALE_PROCESS_CREDIT_BUREAU_VALIDATION_REJECTED = exports.E_CHANGE_OF_ADDRESS_INTERMEDIATE_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = exports.E_PRODUCT_ACTION_DISABLED_CHANGE_OF_ADDRESS_2ND_PHASE_IN_PROGRESS = exports.E_PRODUCT_ACTION_DISABLED_NOT_INTERMEDIATE_PRODUCT = exports.E_SHOPPING_CART_WITHOUT_PROVINCE_PARAMETER = exports.E_AGGRUPATION_CREATION_NOT_ALLOWED = exports.E_SHOPPING_CART_APARTMENT_BUSINESS_RULE = exports.E_PROVINCE_WITHOUT_AVAILABLE_VOIP_NUMBERS = exports.E_SHOPPING_CART_DEPRECATED = exports.E_APPROVAL_MODIFY_DISABLED_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_WITHOUT_VALIDATION = exports.E_APPROVAL_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_APPROVAL_IBAN_VALIDATION_MAX_INTENTS_REACHED = exports.E_APPROVAL_IBAN_VALIDATION_PENDING = exports.E_APPROVAL_IBAN_VALIDATION_ERROR = exports.E_APPROVAL_IBAN_VALIDATION_UNSUPPORTED = exports.E_APPROVAL_IBAN_VALIDATION_REJECTED = exports.E_SALE_PROCESS_FORBIDDEN_APPROVAL = exports.E_SALE_PROCESS_FORBIDDEN_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_SALE_PROCESS_IBAN_VALIDATION_PENDING = exports.E_SALE_PROCESS_IBAN_VALIDATION_REJECTED = exports.E_CHARACTERISTIC_NOT_CHANGEABLE = exports.E_BUNDLE_NOT_AVAILABLE_IN_CHANNEL = exports.E_UNKNOWN_CACHE_KEY = exports.E_FILTER_PRODUCT_BY_PARAMETERS = exports.E_FETCH_CHARGES_AND_CREDITS = exports.E_FETCH_SERVICE_INVENTORY_BY_ID = exports.E_FETCH_PRODUCT_INVENTORY_BY_ID = exports.E_ENCRYPTION_KEY = exports.E_FETCH_BILLS = exports.E_PATCH_BILLING_STATE = exports.E_FETCH_ORDER_HIERARCHY = exports.E_FETCH_WORK_ORDERS = exports.E_FETCH_ORDERS = exports.E_FILTERS_REQUIRED = exports.E_RESOLVE_TASKS = exports.E_FETCH_TASKS = exports.E_FETCH_TASK_NOTES = exports.E_PATCH_TASK = exports.E_FETCH_TASK = exports.E_CREATE_TASK = void 0;
|
|
7
7
|
exports.E_TIMEOUT = 'E_TIMEOUT';
|
|
8
8
|
exports.E_LOGIN = 'E_LOGIN';
|
|
9
9
|
exports.E_ENTRAID_LOGIN = 'E_ENTRAID_LOGIN';
|
|
@@ -136,6 +136,7 @@ exports.E_SALE_PROCESS_UNKNOWN_COMPANY_TYPE = 'E_SALE_PROCESS_UNKNOWN_COMPANY_TY
|
|
|
136
136
|
exports.E_SALE_PROCESS_DOCUMENTS_REQUIRED = 'E_SALE_PROCESS_DOCUMENTS_REQUIRED';
|
|
137
137
|
exports.E_FETCH_PRODUCT_ORDERS = 'E_FETCH_PRODUCT_ORDERS';
|
|
138
138
|
exports.E_FETCH_PRODUCT_ORDER = 'E_FETCH_PRODUCT_ORDER';
|
|
139
|
+
exports.E_FETCH_AVAILABLE_CHARGES_AND_CREDITS = 'E_FETCH_AVAILABLE_CHARGES_AND_CREDITS';
|
|
139
140
|
exports.E_BI_SALES_EXTRACTION = 'E_BI_SALES_EXTRACTION';
|
|
140
141
|
exports.E_USER_WITHOUT_AUTH = 'E_USER_WITHOUT_AUTH';
|
|
141
142
|
exports.E_USER_WITHOUT_WORKGROUPS = 'E_USER_WITHOUT_WORKGROUPS';
|
|
@@ -15,4 +15,5 @@ export declare const E_CUSTOMER_HANDOVER_CREDIT_BUREAU_VALIDATION = "E_CUSTOMER_
|
|
|
15
15
|
export declare const E_CUSTOMER_HANDOVER_PROCESS_FORBIDDEN_STATUS = "E_CUSTOMER_HANDOVER_PROCESS_FORBIDDEN_STATUS";
|
|
16
16
|
export declare const E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_CUSTOMER_TYPE = "E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_CUSTOMER_TYPE";
|
|
17
17
|
export declare const E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_BUSINESS_TYPE = "E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_BUSINESS_TYPE";
|
|
18
|
+
export declare const E_CUSTOMER_HANDOVER_PROCESS_WAITING_STEP_TO_BE_COMPLETED = "E_CUSTOMER_HANDOVER_PROCESS_WAITING_STEP_TO_BE_COMPLETED";
|
|
18
19
|
export declare const E_CUSTOMER_HANDOVER_PROCESS_ACTIVE_CUSTOMER_WITH_SAME_IDENTIFICATION_NUMBER = "E_CUSTOMER_HANDOVER_PROCESS_ACTIVE_CUSTOMER_WITH_SAME_IDENTIFICATION_NUMBER";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.E_CUSTOMER_HANDOVER_PROCESS_ACTIVE_CUSTOMER_WITH_SAME_IDENTIFICATION_NUMBER = exports.E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_BUSINESS_TYPE = exports.E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_CUSTOMER_TYPE = exports.E_CUSTOMER_HANDOVER_PROCESS_FORBIDDEN_STATUS = exports.E_CUSTOMER_HANDOVER_CREDIT_BUREAU_VALIDATION = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_PENDING = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_ERROR = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_UNSUPPORTED = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_REJECTED = exports.E_CUSTOMER_RESEGMENTATION_SEND_DISABLED = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_VOIP_CLOUD_PRODUCTS = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_MOBILE_PRODUCTS_FROM_GROUP = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_BROKEN_PRODUCTS = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_BROKEN_BUNDLE = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_CHANGE_OF_ADDRESS_PROCESS_IN_PROGRESS = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_ORDERS_IN_PROGRESS = exports.E_CUSTOMER_RESEGMENTATION_UNKNOWN_CUSTOMER_TYPE = void 0;
|
|
3
|
+
exports.E_CUSTOMER_HANDOVER_PROCESS_ACTIVE_CUSTOMER_WITH_SAME_IDENTIFICATION_NUMBER = exports.E_CUSTOMER_HANDOVER_PROCESS_WAITING_STEP_TO_BE_COMPLETED = exports.E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_BUSINESS_TYPE = exports.E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_CUSTOMER_TYPE = exports.E_CUSTOMER_HANDOVER_PROCESS_FORBIDDEN_STATUS = exports.E_CUSTOMER_HANDOVER_CREDIT_BUREAU_VALIDATION = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_UNHANDLED_STATUS = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_PENDING = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_ERROR = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_UNSUPPORTED = exports.E_CUSTOMER_HANDOVER_IBAN_VALIDATION_REJECTED = exports.E_CUSTOMER_RESEGMENTATION_SEND_DISABLED = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_VOIP_CLOUD_PRODUCTS = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_MOBILE_PRODUCTS_FROM_GROUP = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_BROKEN_PRODUCTS = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_BROKEN_BUNDLE = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_CHANGE_OF_ADDRESS_PROCESS_IN_PROGRESS = exports.E_CUSTOMER_RESEGMENTATION_DISABLED_ORDERS_IN_PROGRESS = exports.E_CUSTOMER_RESEGMENTATION_UNKNOWN_CUSTOMER_TYPE = void 0;
|
|
4
4
|
exports.E_CUSTOMER_RESEGMENTATION_UNKNOWN_CUSTOMER_TYPE = 'E_CUSTOMER_RESEGMENTATION_UNKNOWN_CUSTOMER_TYPE';
|
|
5
5
|
exports.E_CUSTOMER_RESEGMENTATION_DISABLED_ORDERS_IN_PROGRESS = 'E_CUSTOMER_RESEGMENTATION_DISABLED_ORDERS_IN_PROGRESS';
|
|
6
6
|
exports.E_CUSTOMER_RESEGMENTATION_DISABLED_CHANGE_OF_ADDRESS_PROCESS_IN_PROGRESS = 'E_CUSTOMER_RESEGMENTATION_DISABLED_CHANGE_OF_ADDRESS_PROCESS_IN_PROGRESS';
|
|
@@ -18,4 +18,5 @@ exports.E_CUSTOMER_HANDOVER_CREDIT_BUREAU_VALIDATION = 'E_CUSTOMER_HANDOVER_CRED
|
|
|
18
18
|
exports.E_CUSTOMER_HANDOVER_PROCESS_FORBIDDEN_STATUS = 'E_CUSTOMER_HANDOVER_PROCESS_FORBIDDEN_STATUS';
|
|
19
19
|
exports.E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_CUSTOMER_TYPE = 'E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_CUSTOMER_TYPE';
|
|
20
20
|
exports.E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_BUSINESS_TYPE = 'E_CUSTOMER_HANDOVER_PROCESS_UNKNOWN_BUSINESS_TYPE';
|
|
21
|
+
exports.E_CUSTOMER_HANDOVER_PROCESS_WAITING_STEP_TO_BE_COMPLETED = 'E_CUSTOMER_HANDOVER_PROCESS_WAITING_STEP_TO_BE_COMPLETED';
|
|
21
22
|
exports.E_CUSTOMER_HANDOVER_PROCESS_ACTIVE_CUSTOMER_WITH_SAME_IDENTIFICATION_NUMBER = 'E_CUSTOMER_HANDOVER_PROCESS_ACTIVE_CUSTOMER_WITH_SAME_IDENTIFICATION_NUMBER';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './apartment-whitelist.entity';
|
|
2
2
|
export * from './approval.entity';
|
|
3
|
+
export * from './lead-additional-contact.entity';
|
|
3
4
|
export * from './lead-credit-bureau-validation.entity';
|
|
4
|
-
export * from './lead-
|
|
5
|
+
export * from './lead-file.entity';
|
|
6
|
+
export * from './lead-transaction.entity';
|
|
5
7
|
export * from './lead.entity';
|
|
6
|
-
export * from './leads-additional-contact.entity';
|
|
7
8
|
export * from './leads-consent-data.entity';
|
|
8
|
-
export * from './lead-file.entity';
|
|
@@ -16,9 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./apartment-whitelist.entity"), exports);
|
|
18
18
|
__exportStar(require("./approval.entity"), exports);
|
|
19
|
+
__exportStar(require("./lead-additional-contact.entity"), exports);
|
|
19
20
|
__exportStar(require("./lead-credit-bureau-validation.entity"), exports);
|
|
20
|
-
__exportStar(require("./lead-
|
|
21
|
+
__exportStar(require("./lead-file.entity"), exports);
|
|
22
|
+
__exportStar(require("./lead-transaction.entity"), exports);
|
|
21
23
|
__exportStar(require("./lead.entity"), exports);
|
|
22
|
-
__exportStar(require("./leads-additional-contact.entity"), exports);
|
|
23
24
|
__exportStar(require("./leads-consent-data.entity"), exports);
|
|
24
|
-
__exportStar(require("./lead-file.entity"), exports);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { LeadEntity } from './lead.entity';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class LeadAdditionalContactEntity {
|
|
3
3
|
id?: number;
|
|
4
4
|
lead?: LeadEntity;
|
|
5
5
|
partyId?: string;
|
|
6
6
|
firstName?: string;
|
|
7
7
|
lastName?: string;
|
|
8
8
|
role?: string;
|
|
9
|
-
contactMediums?:
|
|
9
|
+
contactMediums?: LeadAdditionalContactMediumEntity[];
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class LeadAdditionalContactMediumEntity {
|
|
12
12
|
id?: number;
|
|
13
|
-
leadAdditionalContact:
|
|
13
|
+
leadAdditionalContact: LeadAdditionalContactEntity;
|
|
14
14
|
type: string;
|
|
15
15
|
value: string;
|
|
16
16
|
preferred: boolean;
|
package/dist/database/lead/{leads-additional-contact.entity.js → lead-additional-contact.entity.js}
RENAMED
|
@@ -9,73 +9,73 @@ 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.LeadAdditionalContactMediumEntity = exports.LeadAdditionalContactEntity = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const lead_entity_1 = require("./lead.entity");
|
|
16
|
-
let
|
|
16
|
+
let LeadAdditionalContactEntity = class LeadAdditionalContactEntity {
|
|
17
17
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
return { id: { required: false, type: () => Number }, lead: { required: false, type: () => require("./lead.entity").LeadEntity }, partyId: { required: false, type: () => String }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, role: { required: false, type: () => String }, contactMediums: { required: false, type: () => [require("./
|
|
18
|
+
return { id: { required: false, type: () => Number }, lead: { required: false, type: () => require("./lead.entity").LeadEntity }, partyId: { required: false, type: () => String }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, role: { required: false, type: () => String }, contactMediums: { required: false, type: () => [require("./lead-additional-contact.entity").LeadAdditionalContactMediumEntity] } };
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
exports.
|
|
21
|
+
exports.LeadAdditionalContactEntity = LeadAdditionalContactEntity;
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
24
24
|
__metadata("design:type", Number)
|
|
25
|
-
],
|
|
25
|
+
], LeadAdditionalContactEntity.prototype, "id", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.ManyToOne)(() => lead_entity_1.LeadEntity),
|
|
28
28
|
(0, typeorm_1.JoinColumn)({ name: 'lead', referencedColumnName: 'id' }),
|
|
29
29
|
__metadata("design:type", lead_entity_1.LeadEntity)
|
|
30
|
-
],
|
|
30
|
+
], LeadAdditionalContactEntity.prototype, "lead", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
34
|
+
], LeadAdditionalContactEntity.prototype, "partyId", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
38
|
+
], LeadAdditionalContactEntity.prototype, "firstName", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
42
|
+
], LeadAdditionalContactEntity.prototype, "lastName", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
|
-
],
|
|
46
|
+
], LeadAdditionalContactEntity.prototype, "role", void 0);
|
|
47
47
|
__decorate([
|
|
48
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
48
|
+
(0, typeorm_1.OneToMany)(() => LeadAdditionalContactMediumEntity, (data) => data.leadAdditionalContact, {
|
|
49
49
|
cascade: ['insert', 'update']
|
|
50
50
|
}),
|
|
51
51
|
__metadata("design:type", Array)
|
|
52
|
-
],
|
|
53
|
-
exports.
|
|
52
|
+
], LeadAdditionalContactEntity.prototype, "contactMediums", void 0);
|
|
53
|
+
exports.LeadAdditionalContactEntity = LeadAdditionalContactEntity = __decorate([
|
|
54
54
|
(0, typeorm_1.Entity)({ name: 'leads-additional-contact' })
|
|
55
|
-
],
|
|
56
|
-
let
|
|
55
|
+
], LeadAdditionalContactEntity);
|
|
56
|
+
let LeadAdditionalContactMediumEntity = class LeadAdditionalContactMediumEntity {
|
|
57
57
|
static _OPENAPI_METADATA_FACTORY() {
|
|
58
|
-
return { id: { required: false, type: () => Number }, leadAdditionalContact: { required: true, type: () => require("./
|
|
58
|
+
return { id: { required: false, type: () => Number }, leadAdditionalContact: { required: true, type: () => require("./lead-additional-contact.entity").LeadAdditionalContactEntity }, type: { required: true, type: () => String }, value: { required: true, type: () => String }, preferred: { required: true, type: () => Boolean } };
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
exports.
|
|
61
|
+
exports.LeadAdditionalContactMediumEntity = LeadAdditionalContactMediumEntity;
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
64
64
|
__metadata("design:type", Number)
|
|
65
|
-
],
|
|
65
|
+
], LeadAdditionalContactMediumEntity.prototype, "id", void 0);
|
|
66
66
|
__decorate([
|
|
67
|
-
(0, typeorm_1.ManyToOne)(() =>
|
|
67
|
+
(0, typeorm_1.ManyToOne)(() => LeadAdditionalContactEntity),
|
|
68
68
|
(0, typeorm_1.JoinColumn)({ name: 'leadAdditionalContact', referencedColumnName: 'id' }),
|
|
69
|
-
__metadata("design:type",
|
|
70
|
-
],
|
|
69
|
+
__metadata("design:type", LeadAdditionalContactEntity)
|
|
70
|
+
], LeadAdditionalContactMediumEntity.prototype, "leadAdditionalContact", void 0);
|
|
71
71
|
__decorate([
|
|
72
72
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
73
73
|
__metadata("design:type", String)
|
|
74
|
-
],
|
|
74
|
+
], LeadAdditionalContactMediumEntity.prototype, "type", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
77
77
|
__metadata("design:type", String)
|
|
78
|
-
],
|
|
78
|
+
], LeadAdditionalContactMediumEntity.prototype, "value", void 0);
|
|
79
79
|
__decorate([
|
|
80
80
|
(0, typeorm_1.Column)({
|
|
81
81
|
default: 0,
|
|
@@ -90,7 +90,7 @@ __decorate([
|
|
|
90
90
|
}
|
|
91
91
|
}),
|
|
92
92
|
__metadata("design:type", Boolean)
|
|
93
|
-
],
|
|
94
|
-
exports.
|
|
93
|
+
], LeadAdditionalContactMediumEntity.prototype, "preferred", void 0);
|
|
94
|
+
exports.LeadAdditionalContactMediumEntity = LeadAdditionalContactMediumEntity = __decorate([
|
|
95
95
|
(0, typeorm_1.Entity)({ name: 'leads-additional-contact-medium' })
|
|
96
|
-
],
|
|
96
|
+
], LeadAdditionalContactMediumEntity);
|
|
@@ -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.
|
|
12
|
+
exports.LeadTransactionEntity = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const PrimaryGeneratedColumn_1 = require("typeorm/decorator/columns/PrimaryGeneratedColumn");
|
|
15
15
|
const Entity_1 = require("typeorm/decorator/entity/Entity");
|
|
@@ -17,41 +17,41 @@ const lead_entity_1 = require("./lead.entity");
|
|
|
17
17
|
const JoinColumn_1 = require("typeorm/decorator/relations/JoinColumn");
|
|
18
18
|
const Column_1 = require("typeorm/decorator/columns/Column");
|
|
19
19
|
const OneToOne_1 = require("typeorm/decorator/relations/OneToOne");
|
|
20
|
-
let
|
|
20
|
+
let LeadTransactionEntity = class LeadTransactionEntity {
|
|
21
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
22
22
|
return { id: { required: false, type: () => Number }, lead: { required: false, type: () => require("./lead.entity").LeadEntity }, dtsTransactionId: { required: false, type: () => String }, createdBy: { required: false, type: () => String }, createdAt: { required: false, type: () => Date }, updatedBy: { required: false, type: () => String }, updatedAt: { required: false, type: () => Date } };
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
exports.
|
|
25
|
+
exports.LeadTransactionEntity = LeadTransactionEntity;
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, PrimaryGeneratedColumn_1.PrimaryGeneratedColumn)(),
|
|
28
28
|
__metadata("design:type", Number)
|
|
29
|
-
],
|
|
29
|
+
], LeadTransactionEntity.prototype, "id", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, OneToOne_1.OneToOne)(() => lead_entity_1.LeadEntity),
|
|
32
32
|
(0, JoinColumn_1.JoinColumn)({ name: 'lead', referencedColumnName: 'id' }),
|
|
33
33
|
__metadata("design:type", lead_entity_1.LeadEntity)
|
|
34
|
-
],
|
|
34
|
+
], LeadTransactionEntity.prototype, "lead", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, Column_1.Column)({ nullable: false }),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
38
|
+
], LeadTransactionEntity.prototype, "dtsTransactionId", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, Column_1.Column)({ nullable: true }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
42
|
+
], LeadTransactionEntity.prototype, "createdBy", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, Column_1.Column)({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }),
|
|
45
45
|
__metadata("design:type", Date)
|
|
46
|
-
],
|
|
46
|
+
], LeadTransactionEntity.prototype, "createdAt", void 0);
|
|
47
47
|
__decorate([
|
|
48
48
|
(0, Column_1.Column)({ nullable: true }),
|
|
49
49
|
__metadata("design:type", String)
|
|
50
|
-
],
|
|
50
|
+
], LeadTransactionEntity.prototype, "updatedBy", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
(0, Column_1.Column)({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP', onUpdate: 'CURRENT_TIMESTAMP' }),
|
|
53
53
|
__metadata("design:type", Date)
|
|
54
|
-
],
|
|
55
|
-
exports.
|
|
54
|
+
], LeadTransactionEntity.prototype, "updatedAt", void 0);
|
|
55
|
+
exports.LeadTransactionEntity = LeadTransactionEntity = __decorate([
|
|
56
56
|
(0, Entity_1.Entity)({ name: 'leads-transactions' })
|
|
57
|
-
],
|
|
57
|
+
], LeadTransactionEntity);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LeadAdditionalContactEntity } from './lead-additional-contact.entity';
|
|
2
2
|
import { LeadFileEntity } from './lead-file.entity';
|
|
3
3
|
import { LeadsConsentData } from './leads-consent-data.entity';
|
|
4
4
|
import { ApprovalEntity } from './approval.entity';
|
|
@@ -93,7 +93,7 @@ export declare class LeadEntity extends LeadColumns {
|
|
|
93
93
|
data?: LeadDataEntity[];
|
|
94
94
|
approvals?: ApprovalEntity[];
|
|
95
95
|
files?: LeadFileEntity[];
|
|
96
|
-
additionalContacts?:
|
|
96
|
+
additionalContacts?: LeadAdditionalContactEntity[];
|
|
97
97
|
consents?: LeadsConsentData[];
|
|
98
98
|
}
|
|
99
99
|
export type CreateLeadReferenceEntity = Pick<LeadEntity, 'id'>;
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.LeadDataZohoEntity = exports.SaleEntity = exports.LeadDataEntity = exports.LeadEntity = exports.LeadColumns = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
|
-
const
|
|
15
|
+
const lead_additional_contact_entity_1 = require("./lead-additional-contact.entity");
|
|
16
16
|
const lead_file_entity_1 = require("./lead-file.entity");
|
|
17
17
|
const leads_consent_data_entity_1 = require("./leads-consent-data.entity");
|
|
18
18
|
const approval_entity_1 = require("./approval.entity");
|
|
@@ -361,7 +361,7 @@ __decorate([
|
|
|
361
361
|
], LeadColumns.prototype, "updateByUserChannel", void 0);
|
|
362
362
|
let LeadEntity = class LeadEntity extends LeadColumns {
|
|
363
363
|
static _OPENAPI_METADATA_FACTORY() {
|
|
364
|
-
return { data: { required: false, type: () => [require("./lead.entity").LeadDataEntity] }, approvals: { required: false, type: () => [require("./approval.entity").ApprovalEntity] }, files: { required: false, type: () => [require("./lead-file.entity").LeadFileEntity] }, additionalContacts: { required: false, type: () => [require("./
|
|
364
|
+
return { data: { required: false, type: () => [require("./lead.entity").LeadDataEntity] }, approvals: { required: false, type: () => [require("./approval.entity").ApprovalEntity] }, files: { required: false, type: () => [require("./lead-file.entity").LeadFileEntity] }, additionalContacts: { required: false, type: () => [require("./lead-additional-contact.entity").LeadAdditionalContactEntity] }, consents: { required: false, type: () => [require("./leads-consent-data.entity").LeadsConsentData] } };
|
|
365
365
|
}
|
|
366
366
|
};
|
|
367
367
|
exports.LeadEntity = LeadEntity;
|
|
@@ -378,7 +378,7 @@ __decorate([
|
|
|
378
378
|
__metadata("design:type", Array)
|
|
379
379
|
], LeadEntity.prototype, "files", void 0);
|
|
380
380
|
__decorate([
|
|
381
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
381
|
+
(0, typeorm_1.OneToMany)(() => lead_additional_contact_entity_1.LeadAdditionalContactEntity, (data) => data.lead),
|
|
382
382
|
__metadata("design:type", Array)
|
|
383
383
|
], LeadEntity.prototype, "additionalContacts", void 0);
|
|
384
384
|
__decorate([
|
|
@@ -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.SearchByAreaParamsDto = exports.AreaAddressesQueryDto = exports.BaseAreaAddressesQueryDto = exports.ApartmentDto = exports.AreaAddressDto = exports.AddressApartmentDto = exports.AddressDto = void 0;
|
|
12
|
+
exports.WholesaleApartmentDto = exports.SearchByAreaParamsDto = exports.AreaAddressesQueryDto = exports.BaseAreaAddressesQueryDto = exports.ApartmentDto = exports.AreaAddressDto = exports.AddressApartmentDto = exports.AddressDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const _validators_1 = require("../../validators/index");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
@@ -73,3 +73,9 @@ class SearchByAreaParamsDto {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
exports.SearchByAreaParamsDto = SearchByAreaParamsDto;
|
|
76
|
+
class WholesaleApartmentDto {
|
|
77
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
78
|
+
return { apartmentId: { required: true, type: () => String }, blacklisted: { required: true, type: () => Boolean } };
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.WholesaleApartmentDto = WholesaleApartmentDto;
|
|
@@ -101,4 +101,10 @@ export declare class CustomerDashboardFiltersDto extends PaginationQueryDto {
|
|
|
101
101
|
channel?: string;
|
|
102
102
|
productDisplayName?: string;
|
|
103
103
|
}
|
|
104
|
+
export declare class CreateCustomerCharacteristicReqDto {
|
|
105
|
+
name: string;
|
|
106
|
+
invoiceText?: string;
|
|
107
|
+
startDate?: string;
|
|
108
|
+
includedAmount?: string;
|
|
109
|
+
}
|
|
104
110
|
export {};
|
|
@@ -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.CustomerDashboardFiltersDto = exports.CustomerFinanceDto = exports.CustomerTaskDto = exports.CustomerOrderDto = exports.CustomerTaskAdditionalFieldsDto = exports.DashboardCustomerCsvDto = exports.DashboardCustomerDto = exports.CustomerFinanceFiltersDto = exports.CustomerBillsFiltersDto = exports.CustomerOrdersFiltersDto = exports.CustomerTasksFiltersDto = exports.CustomerNotesFiltersDto = exports.DashboardCustomersFiltersDto = exports.CustomerBalancesAndDebtDto = exports.CustomerDto = void 0;
|
|
12
|
+
exports.CreateCustomerCharacteristicReqDto = exports.CustomerDashboardFiltersDto = exports.CustomerFinanceDto = exports.CustomerTaskDto = exports.CustomerOrderDto = exports.CustomerTaskAdditionalFieldsDto = exports.DashboardCustomerCsvDto = exports.DashboardCustomerDto = exports.CustomerFinanceFiltersDto = exports.CustomerBillsFiltersDto = exports.CustomerOrdersFiltersDto = exports.CustomerTasksFiltersDto = exports.CustomerNotesFiltersDto = exports.DashboardCustomersFiltersDto = exports.CustomerBalancesAndDebtDto = exports.CustomerDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const task_1 = require("../../bss/task");
|
|
15
15
|
const common_entity_1 = require("../../common/common.entity");
|
|
@@ -242,3 +242,36 @@ __decorate([
|
|
|
242
242
|
(0, class_validator_1.IsOptional)(),
|
|
243
243
|
__metadata("design:type", String)
|
|
244
244
|
], CustomerDashboardFiltersDto.prototype, "productDisplayName", void 0);
|
|
245
|
+
class CreateCustomerCharacteristicReqDto {
|
|
246
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
247
|
+
return { name: { required: true, type: () => String }, invoiceText: { required: false, type: () => String }, startDate: { required: false, type: () => String }, includedAmount: { required: false, type: () => String } };
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
exports.CreateCustomerCharacteristicReqDto = CreateCustomerCharacteristicReqDto;
|
|
251
|
+
__decorate([
|
|
252
|
+
(0, class_validator_1.IsString)(),
|
|
253
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
254
|
+
(0, _validators_1.IsNotBlank)(),
|
|
255
|
+
__metadata("design:type", String)
|
|
256
|
+
], CreateCustomerCharacteristicReqDto.prototype, "name", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, class_validator_1.IsString)(),
|
|
259
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
260
|
+
(0, _validators_1.IsNotBlank)(),
|
|
261
|
+
(0, class_validator_1.IsOptional)(),
|
|
262
|
+
__metadata("design:type", String)
|
|
263
|
+
], CreateCustomerCharacteristicReqDto.prototype, "invoiceText", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
(0, class_validator_1.IsDateString)(),
|
|
266
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
267
|
+
(0, _validators_1.IsNotBlank)(),
|
|
268
|
+
(0, class_validator_1.IsOptional)(),
|
|
269
|
+
__metadata("design:type", String)
|
|
270
|
+
], CreateCustomerCharacteristicReqDto.prototype, "startDate", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
(0, class_validator_1.IsNumberString)(),
|
|
273
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
274
|
+
(0, _validators_1.IsNotBlank)(),
|
|
275
|
+
(0, class_validator_1.IsOptional)(),
|
|
276
|
+
__metadata("design:type", String)
|
|
277
|
+
], CreateCustomerCharacteristicReqDto.prototype, "includedAmount", void 0);
|