adamo-types 1.1.88 → 1.1.90
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/admin/user/create/internal/creation-process.d.ts +1 -1
- package/dist/ams/res/ams.entity.d.ts +7 -1
- package/dist/ams/res/ams.entity.js +3 -3
- package/dist/bss/constants/bss.constants.d.ts +4 -1
- package/dist/bss/constants/bss.constants.js +3 -0
- package/dist/common/address/address.entity.d.ts +2 -2
- package/dist/common/address/address.entity.js +8 -8
- package/dist/common/constants/common.constants.d.ts +3 -1
- package/dist/common/constants/common.constants.js +3 -1
- package/dist/common/constants/error.constants.d.ts +1 -0
- package/dist/common/constants/error.constants.js +2 -1
- package/dist/common/edge-ams/res/index.entity.d.ts +6 -0
- package/dist/common/edge-ams/res/index.entity.js +3 -3
- package/dist/common/edge-bss/address/req/create.entity.d.ts +2 -0
- package/dist/common/edge-bss/address/req/create.entity.js +1 -1
- package/dist/database/configuration.entity.d.ts +25 -0
- package/dist/database/configuration.entity.js +104 -1
- package/dist/sys03/sale-process/internal/internal.entity.d.ts +0 -8
- package/dist/sys03/sale-process/internal/internal.entity.js +1 -13
- package/dist/sys03/storage/res/onther.entity.d.ts +1 -1
- package/dist/sys03/storage/res/onther.entity.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/validators/IsGreaterEqualTo.d.ts +4 -0
- package/dist/validators/IsGreaterEqualTo.js +29 -0
- package/dist/validators/IsGreaterThan.d.ts +4 -0
- package/dist/validators/IsGreaterThan.js +29 -0
- package/dist/validators/IsLowerThan.d.ts +4 -0
- package/dist/validators/IsLowerThan.js +29 -0
- package/dist/validators/index.d.ts +3 -0
- package/dist/validators/index.js +3 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class FetchAddressByIdRes {
|
|
2
|
-
id:
|
|
2
|
+
id: string;
|
|
3
3
|
address: string;
|
|
4
4
|
city: string;
|
|
5
5
|
province: string;
|
|
@@ -8,6 +8,7 @@ export declare class FetchAddressByIdRes {
|
|
|
8
8
|
note?: string;
|
|
9
9
|
zone?: string;
|
|
10
10
|
serviceable: Date;
|
|
11
|
+
serviceableAge: number;
|
|
11
12
|
lng: string;
|
|
12
13
|
lat: string;
|
|
13
14
|
externalOk: boolean;
|
|
@@ -21,6 +22,10 @@ export declare class Apartment {
|
|
|
21
22
|
stair?: string;
|
|
22
23
|
floor?: string;
|
|
23
24
|
door: string;
|
|
25
|
+
salesArea: string;
|
|
26
|
+
operationalStatus: string;
|
|
27
|
+
serviceableDate: Date;
|
|
28
|
+
serviceableAge: number;
|
|
24
29
|
client?: number;
|
|
25
30
|
}
|
|
26
31
|
export declare class FetchAddressByAreaRes {
|
|
@@ -30,6 +35,7 @@ export declare class FetchAddressByAreaRes {
|
|
|
30
35
|
salesArea: string;
|
|
31
36
|
lng: string;
|
|
32
37
|
lat: string;
|
|
38
|
+
serviceableAge: number;
|
|
33
39
|
distance?: number;
|
|
34
40
|
}
|
|
35
41
|
export declare class FetchAddressByApartmentIdRes {
|
|
@@ -4,19 +4,19 @@ exports.FetchAddressByApartmentIdRes = exports.FetchAddressByAreaRes = exports.A
|
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class FetchAddressByIdRes {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
-
return { id: { required: true, type: () =>
|
|
7
|
+
return { id: { required: true, type: () => String }, address: { required: true, type: () => String }, city: { required: true, type: () => String }, province: { required: true, type: () => String }, status: { required: true, type: () => String }, salesArea: { required: true, type: () => String }, note: { required: false, type: () => String }, zone: { required: false, type: () => String }, serviceable: { required: true, type: () => Date }, serviceableAge: { required: true, type: () => Number }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, externalOk: { required: true, type: () => Boolean }, externalMsg: { required: false, type: () => String }, externalEmail: { required: false, type: () => String }, canOrder: { required: true, type: () => Boolean }, apartments: { required: true, type: () => [require("./ams.entity").Apartment] } };
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.FetchAddressByIdRes = FetchAddressByIdRes;
|
|
11
11
|
class Apartment {
|
|
12
12
|
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
-
return { id: { required: true, type: () => String }, stair: { required: false, type: () => String }, floor: { required: false, type: () => String }, door: { required: true, type: () => String }, client: { required: false, type: () => Number } };
|
|
13
|
+
return { id: { required: true, type: () => String }, stair: { required: false, type: () => String }, floor: { required: false, type: () => String }, door: { required: true, type: () => String }, salesArea: { required: true, type: () => String }, operationalStatus: { required: true, type: () => String }, serviceableDate: { required: true, type: () => Date }, serviceableAge: { required: true, type: () => Number }, client: { required: false, type: () => Number } };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
exports.Apartment = Apartment;
|
|
17
17
|
class FetchAddressByAreaRes {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { id: { required: true, type: () => String }, address: { required: true, type: () => String }, status: { required: true, type: () => String }, salesArea: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, distance: { required: false, type: () => Number } };
|
|
19
|
+
return { id: { required: true, type: () => String }, address: { required: true, type: () => String }, status: { required: true, type: () => String }, salesArea: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, serviceableAge: { required: true, type: () => Number }, distance: { required: false, type: () => Number } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.FetchAddressByAreaRes = FetchAddressByAreaRes;
|
|
@@ -15,6 +15,9 @@ export declare enum CacheKeyType {
|
|
|
15
15
|
TARIFF_MODEL = "tariff-model",
|
|
16
16
|
AVAILABLE_PRODUCTS = "available-products",
|
|
17
17
|
AMS_APARTMENT = "ams:apartment",
|
|
18
|
+
AMS_ADDRESS = "ams:address",
|
|
19
|
+
AMS_ADDRESS_V2 = "ams:v2:address",
|
|
18
20
|
BSS_ADDRESS = "bss:address",
|
|
19
|
-
LOCK_PRODUCT_CATALOG = "lock#product-catalog"
|
|
21
|
+
LOCK_PRODUCT_CATALOG = "lock#product-catalog",
|
|
22
|
+
CONFIGURATION = "configuration"
|
|
20
23
|
}
|
|
@@ -31,6 +31,9 @@ var CacheKeyType;
|
|
|
31
31
|
CacheKeyType["TARIFF_MODEL"] = "tariff-model";
|
|
32
32
|
CacheKeyType["AVAILABLE_PRODUCTS"] = "available-products";
|
|
33
33
|
CacheKeyType["AMS_APARTMENT"] = "ams:apartment";
|
|
34
|
+
CacheKeyType["AMS_ADDRESS"] = "ams:address";
|
|
35
|
+
CacheKeyType["AMS_ADDRESS_V2"] = "ams:v2:address";
|
|
34
36
|
CacheKeyType["BSS_ADDRESS"] = "bss:address";
|
|
35
37
|
CacheKeyType["LOCK_PRODUCT_CATALOG"] = "lock#product-catalog";
|
|
38
|
+
CacheKeyType["CONFIGURATION"] = "configuration";
|
|
36
39
|
})(CacheKeyType = exports.CacheKeyType || (exports.CacheKeyType = {}));
|
|
@@ -6,7 +6,7 @@ export declare class CreateAddressDto {
|
|
|
6
6
|
salesAreaName: string;
|
|
7
7
|
projectCode: string;
|
|
8
8
|
competition: string;
|
|
9
|
-
serviceableStatus:
|
|
9
|
+
serviceableStatus: AddressStatus;
|
|
10
10
|
province: string;
|
|
11
11
|
city: string;
|
|
12
12
|
zip: string;
|
|
@@ -15,7 +15,7 @@ export declare class CreateAddressDto {
|
|
|
15
15
|
streetNumber: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
}
|
|
18
|
-
export declare enum
|
|
18
|
+
export declare enum AddressStatus {
|
|
19
19
|
EN_CURSO = "EN CURSO",
|
|
20
20
|
SERVICIABLE = "SERVICIABLE",
|
|
21
21
|
PLANIFICADO = "PLANIFICADO"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AddressStatus = exports.CreateAddressDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class CreateAddressDto {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
-
return { id: { required: true, type: () => Number }, piso: { required: true, type: () => String, nullable: true }, puerta: { required: true, type: () => String, nullable: true }, streetAddressId: { required: true, type: () => String }, salesAreaName: { required: true, type: () => String }, projectCode: { required: true, type: () => String }, competition: { required: true, type: () => String }, serviceableStatus: { required: true, enum: require("./address.entity").
|
|
7
|
+
return { id: { required: true, type: () => Number }, piso: { required: true, type: () => String, nullable: true }, puerta: { required: true, type: () => String, nullable: true }, streetAddressId: { required: true, type: () => String }, salesAreaName: { required: true, type: () => String }, projectCode: { required: true, type: () => String }, competition: { required: true, type: () => String }, serviceableStatus: { required: true, enum: require("./address.entity").AddressStatus }, province: { required: true, type: () => String }, city: { required: true, type: () => String }, zip: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, projectId: { required: true, type: () => String } };
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.CreateAddressDto = CreateAddressDto;
|
|
11
|
-
var
|
|
12
|
-
(function (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})(
|
|
11
|
+
var AddressStatus;
|
|
12
|
+
(function (AddressStatus) {
|
|
13
|
+
AddressStatus["EN_CURSO"] = "EN CURSO";
|
|
14
|
+
AddressStatus["SERVICIABLE"] = "SERVICIABLE";
|
|
15
|
+
AddressStatus["PLANIFICADO"] = "PLANIFICADO";
|
|
16
|
+
})(AddressStatus = exports.AddressStatus || (exports.AddressStatus = {}));
|
|
@@ -65,15 +65,17 @@ export declare enum StorageConfiguration {
|
|
|
65
65
|
BILLING_CYCLES = "BILLING_CYCLES",
|
|
66
66
|
BLACKLISTED_APARTMENTS_CHANNELS = "BLACKLISTED_APARTMENTS_CHANNELS",
|
|
67
67
|
BLACKLISTED_APARTMENTS_OPERATORS = "BLACKLISTED_APARTMENTS_OPERATORS",
|
|
68
|
+
COVERAGE_HIDDEN_CHANNELS = "COVERAGE_HIDDEN_CHANNELS",
|
|
68
69
|
DEPENDENCY_GROUPS = "DEPENDENCY_GROUPS",
|
|
70
|
+
REFERENCE_DATES = "REFERENCE_DATES",
|
|
69
71
|
FORBIDDEN_SALE_PROCESS_STATUSES = "FORBIDDEN_SALE_PROCESS_STATUSES",
|
|
70
72
|
IBAN_SUPPORTED_COUNTRIES = "IBAN_SUPPORTED_COUNTRIES",
|
|
71
73
|
PROMOTION_GROUPS = "PROMOTION_GROUPS",
|
|
72
74
|
PROVINCE_PREFIXES = "PROVINCE_PREFIXES",
|
|
75
|
+
RETAIL_EXCLUSIVITY_RULES = "RETAIL_EXCLUSIVITY_RULES",
|
|
73
76
|
SALES_AREAS = "SALES_AREAS",
|
|
74
77
|
SEND_BSS_SERVICIABLE_STATUSES = "SEND_BSS_SERVICIABLE_STATUSES",
|
|
75
78
|
SMS_CONTRACT_CHANNELS = "SMS_CONTRACT_CHANNELS",
|
|
76
|
-
COVERAGE_HIDDEN_CHANNELS = "COVERAGE_HIDDEN_CHANNELS",
|
|
77
79
|
SUPER_MANAGERS = "SUPER_MANAGERS"
|
|
78
80
|
}
|
|
79
81
|
export declare enum MicroserviceType {
|
|
@@ -72,15 +72,17 @@ var StorageConfiguration;
|
|
|
72
72
|
StorageConfiguration["BILLING_CYCLES"] = "BILLING_CYCLES";
|
|
73
73
|
StorageConfiguration["BLACKLISTED_APARTMENTS_CHANNELS"] = "BLACKLISTED_APARTMENTS_CHANNELS";
|
|
74
74
|
StorageConfiguration["BLACKLISTED_APARTMENTS_OPERATORS"] = "BLACKLISTED_APARTMENTS_OPERATORS";
|
|
75
|
+
StorageConfiguration["COVERAGE_HIDDEN_CHANNELS"] = "COVERAGE_HIDDEN_CHANNELS";
|
|
75
76
|
StorageConfiguration["DEPENDENCY_GROUPS"] = "DEPENDENCY_GROUPS";
|
|
77
|
+
StorageConfiguration["REFERENCE_DATES"] = "REFERENCE_DATES";
|
|
76
78
|
StorageConfiguration["FORBIDDEN_SALE_PROCESS_STATUSES"] = "FORBIDDEN_SALE_PROCESS_STATUSES";
|
|
77
79
|
StorageConfiguration["IBAN_SUPPORTED_COUNTRIES"] = "IBAN_SUPPORTED_COUNTRIES";
|
|
78
80
|
StorageConfiguration["PROMOTION_GROUPS"] = "PROMOTION_GROUPS";
|
|
79
81
|
StorageConfiguration["PROVINCE_PREFIXES"] = "PROVINCE_PREFIXES";
|
|
82
|
+
StorageConfiguration["RETAIL_EXCLUSIVITY_RULES"] = "RETAIL_EXCLUSIVITY_RULES";
|
|
80
83
|
StorageConfiguration["SALES_AREAS"] = "SALES_AREAS";
|
|
81
84
|
StorageConfiguration["SEND_BSS_SERVICIABLE_STATUSES"] = "SEND_BSS_SERVICIABLE_STATUSES";
|
|
82
85
|
StorageConfiguration["SMS_CONTRACT_CHANNELS"] = "SMS_CONTRACT_CHANNELS";
|
|
83
|
-
StorageConfiguration["COVERAGE_HIDDEN_CHANNELS"] = "COVERAGE_HIDDEN_CHANNELS";
|
|
84
86
|
StorageConfiguration["SUPER_MANAGERS"] = "SUPER_MANAGERS";
|
|
85
87
|
})(StorageConfiguration = exports.StorageConfiguration || (exports.StorageConfiguration = {}));
|
|
86
88
|
var MicroserviceType;
|
|
@@ -106,3 +106,4 @@ export declare const E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = "E_FETCH_CUSTOM
|
|
|
106
106
|
export declare const E_UNHANDLED_KEY = "E_UNHANDLED_KEY";
|
|
107
107
|
export declare const E_DUPLICATE_ENTRY = "E_DUPLICATE_ENTRY";
|
|
108
108
|
export declare const E_UPDATE_PRODUCT_CATALOG_CACHE = "E_UPDATE_PRODUCT_CATALOG_CACHE";
|
|
109
|
+
export declare const E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = "E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.E_UPDATE_PAYMENT_METHOD = exports.E_CREATE_PAYMENT_METHOD = exports.E_UPDATE_MANDATE = exports.E_CREATE_MANDATE = exports.E_UPDATE_BILLING_ACCOUNT = exports.E_CREATE_BILLING_ACCOUNT = exports.E_UPLOAD_CUSTOMER_ACCOUNT_DOCUMENT = exports.E_CREATE_CUSTOMER_ACCOUNT_NOTE = exports.E_UPDATE_CUSTOMER_ACCOUNT = exports.E_CREATE_CUSTOMER_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_BP = exports.E_BP_INTERNAL_SERVER_ERROR = exports.E_UPDATE_SHOPPING_CART_EXTRAS = exports.E_EMPTY_SHOPPING_CART = exports.E_SHOPPING_CART_NOT_FOUND = exports.E_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = exports.E_SAVE_SHOPPING_CART = exports.E_CREATE_SHOPPING_CART = exports.E_FETCH_PRODUCT_DEFAULT_SUMMARY = 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_LOGIN = void 0;
|
|
4
4
|
exports.E_UPLOAD_SALE_PROCESS_CONTRACT = exports.E_FETCH_USER_CHANNELS = exports.E_UNAUTHORIZED = exports.E_USER_WITHOUT_CHANNELS = exports.E_FETCH_SHOPPING_CART_FEATURES = exports.E_NOT_BASE_BUNDLE = exports.E_NO_SELECTED_CHANNEL = exports.E_FETCH_LOOKUP_OPTIONS = exports.E_INVALID_SALE_PROCESS_STATUS = exports.E_NOT_FOUND = exports.E_USER_ROLE_UNKNOWN = exports.E_USER_WITHOUT_ROLE = exports.E_RESERVE_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_CREATE_CUSTOMER_ACCOUNT_HISTORY = 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_CUSTOMERS = 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_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_FTP_RENAME = exports.E_FTP_REMOVE = exports.E_FTP_DOWNLOAD = exports.E_FTP_UPLOAD = exports.E_SUBMIT_SHOPPING_CART = exports.E_FETCH_SHOPPING_CART = void 0;
|
|
5
|
-
exports.E_UPDATE_PRODUCT_CATALOG_CACHE = exports.E_DUPLICATE_ENTRY = exports.E_UNHANDLED_KEY = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_LEAD_FILE_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LOGIN_MAX_ATTEMPTS_REACHED = exports.E_TOO_MANY_REQUESTS = void 0;
|
|
5
|
+
exports.E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_UPDATE_PRODUCT_CATALOG_CACHE = exports.E_DUPLICATE_ENTRY = exports.E_UNHANDLED_KEY = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_LEAD_FILE_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LOGIN_MAX_ATTEMPTS_REACHED = exports.E_TOO_MANY_REQUESTS = void 0;
|
|
6
6
|
exports.E_LOGIN = 'E_LOGIN';
|
|
7
7
|
exports.E_ASSIGN_CHANNELS = 'E_ASSIGN_CHANNELS';
|
|
8
8
|
exports.E_UPDATE_PASSWORD = 'E_UPDATE_PASSWORD';
|
|
@@ -111,3 +111,4 @@ exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = 'E_FETCH_CUSTOMER_ACCOUNT_FI
|
|
|
111
111
|
exports.E_UNHANDLED_KEY = 'E_UNHANDLED_KEY';
|
|
112
112
|
exports.E_DUPLICATE_ENTRY = 'E_DUPLICATE_ENTRY';
|
|
113
113
|
exports.E_UPDATE_PRODUCT_CATALOG_CACHE = 'E_UPDATE_PRODUCT_CATALOG_CACHE';
|
|
114
|
+
exports.E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = 'E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES';
|
|
@@ -46,6 +46,7 @@ export declare class FetchAddressByIdAmsRes {
|
|
|
46
46
|
note: string;
|
|
47
47
|
zone: string;
|
|
48
48
|
servicable: string;
|
|
49
|
+
serviceable_age: number;
|
|
49
50
|
lng: string;
|
|
50
51
|
lat: string;
|
|
51
52
|
external_ok: boolean;
|
|
@@ -60,6 +61,10 @@ export declare class Apartment {
|
|
|
60
61
|
piso: string;
|
|
61
62
|
porta: string;
|
|
62
63
|
client: string | number;
|
|
64
|
+
sales_area: string;
|
|
65
|
+
operational_status: string;
|
|
66
|
+
serviceable_date: string;
|
|
67
|
+
serviceable_age: number;
|
|
63
68
|
}
|
|
64
69
|
export declare class FetchAddressByAreaAmsRes {
|
|
65
70
|
id: string;
|
|
@@ -68,6 +73,7 @@ export declare class FetchAddressByAreaAmsRes {
|
|
|
68
73
|
sales_area: string;
|
|
69
74
|
lng: string;
|
|
70
75
|
lat: string;
|
|
76
|
+
serviceable_age: number;
|
|
71
77
|
distance?: number;
|
|
72
78
|
}
|
|
73
79
|
export declare class FetchAddressNotFoundRes {
|
|
@@ -16,19 +16,19 @@ class FetchAddressByApartmentIdAmsRes {
|
|
|
16
16
|
exports.FetchAddressByApartmentIdAmsRes = FetchAddressByApartmentIdAmsRes;
|
|
17
17
|
class FetchAddressByIdAmsRes {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { id: { required: true, type: () => String }, address: { required: true, type: () => String }, postal_code: { required: true, type: () => String }, poblacion: { required: true, type: () => String }, provincia: { required: true, type: () => String }, status: { required: true, type: () => String }, sales_area: { required: true, type: () => String }, note: { required: true, type: () => String }, zone: { required: true, type: () => String }, servicable: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, external_ok: { required: true, type: () => Boolean }, external_msg: { required: true, type: () => String }, external_email: { required: true, type: () => String }, can_order: { required: true, type: () => Boolean }, apartments: { required: true, type: () => [require("./index.entity").Apartment] } };
|
|
19
|
+
return { id: { required: true, type: () => String }, address: { required: true, type: () => String }, postal_code: { required: true, type: () => String }, poblacion: { required: true, type: () => String }, provincia: { required: true, type: () => String }, status: { required: true, type: () => String }, sales_area: { required: true, type: () => String }, note: { required: true, type: () => String }, zone: { required: true, type: () => String }, servicable: { required: true, type: () => String }, serviceable_age: { required: true, type: () => Number }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, external_ok: { required: true, type: () => Boolean }, external_msg: { required: true, type: () => String }, external_email: { required: true, type: () => String }, can_order: { required: true, type: () => Boolean }, apartments: { required: true, type: () => [require("./index.entity").Apartment] } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.FetchAddressByIdAmsRes = FetchAddressByIdAmsRes;
|
|
23
23
|
class Apartment {
|
|
24
24
|
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
-
return { id: { required: true, type: () => String }, escalera: { required: true, type: () => String }, piso: { required: true, type: () => String }, porta: { required: true, type: () => String }, client: { required: true, type: () => Object } };
|
|
25
|
+
return { id: { required: true, type: () => String }, escalera: { required: true, type: () => String }, piso: { required: true, type: () => String }, porta: { required: true, type: () => String }, client: { required: true, type: () => Object }, sales_area: { required: true, type: () => String }, operational_status: { required: true, type: () => String }, serviceable_date: { required: true, type: () => String }, serviceable_age: { required: true, type: () => Number } };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
exports.Apartment = Apartment;
|
|
29
29
|
class FetchAddressByAreaAmsRes {
|
|
30
30
|
static _OPENAPI_METADATA_FACTORY() {
|
|
31
|
-
return { id: { required: true, type: () => String }, address: { required: true, type: () => String }, status: { required: true, type: () => String }, sales_area: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, distance: { required: false, type: () => Number } };
|
|
31
|
+
return { id: { required: true, type: () => String }, address: { required: true, type: () => String }, status: { required: true, type: () => String }, sales_area: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, serviceable_age: { required: true, type: () => Number }, distance: { required: false, type: () => Number } };
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
exports.FetchAddressByAreaAmsRes = FetchAddressByAreaAmsRes;
|
|
@@ -21,7 +21,7 @@ class ArsAddressDto {
|
|
|
21
21
|
this.entrance = '';
|
|
22
22
|
}
|
|
23
23
|
static _OPENAPI_METADATA_FACTORY() {
|
|
24
|
-
return { id: { required: false, type: () => String }, country: { required: false, type: () => String }, postcode: { required: true, type: () => String, pattern: /^[0-9]{1,5}$/ }, province: { required: true, type: () => String }, city: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, block: { required: true, type: () => Object, default: '' }, floor: { required: true, type: () => Object, default: '' }, door: { required: true, type: () => Object, default: '' }, entrance: { required: true, type: () => Object, default: '' }, apartmentId: { required: false, type: () => String }, serviceableStatus: { required: false, type: () => String }, salesAreaId: { required: false, type: () => String }, projectCode: { required: false, type: () => String }, competition: { required: false, type: () => String } };
|
|
24
|
+
return { id: { required: false, type: () => String }, country: { required: false, type: () => String }, postcode: { required: true, type: () => String, pattern: /^[0-9]{1,5}$/ }, province: { required: true, type: () => String }, city: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, block: { required: true, type: () => Object, default: '' }, floor: { required: true, type: () => Object, default: '' }, door: { required: true, type: () => Object, default: '' }, entrance: { required: true, type: () => Object, default: '' }, apartmentId: { required: false, type: () => String }, serviceableStatus: { required: false, type: () => String }, serviceableAge: { required: false, type: () => Number }, salesAreaId: { required: false, type: () => String }, salesAreaName: { required: false, type: () => String }, projectCode: { required: false, type: () => String }, competition: { required: false, type: () => String } };
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
__decorate([
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ProductOfferingCharacteristicDto } from '@bss/bearingpoint';
|
|
2
|
+
import { StorageConfiguration } from '@common/constants';
|
|
2
3
|
export declare class ConfigurationDto {
|
|
3
4
|
id: number;
|
|
4
5
|
key: string;
|
|
@@ -19,6 +20,30 @@ export declare class FeatureGroupCharacteristic {
|
|
|
19
20
|
min: number;
|
|
20
21
|
max: number;
|
|
21
22
|
}
|
|
23
|
+
export declare class ConfigurationSegmentDto {
|
|
24
|
+
segment: string;
|
|
25
|
+
channels: string[];
|
|
26
|
+
default?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare class ConfigurationSegmentsDto {
|
|
29
|
+
[key: string]: ConfigurationSegmentDto[];
|
|
30
|
+
}
|
|
31
|
+
export declare class ConfigurationServiceableAgeDto {
|
|
32
|
+
min?: number;
|
|
33
|
+
max?: number;
|
|
34
|
+
}
|
|
35
|
+
export declare class ConfigurationRetailExclusivityDto {
|
|
36
|
+
channels: string[];
|
|
37
|
+
status?: string;
|
|
38
|
+
serviceableAge?: ConfigurationServiceableAgeDto;
|
|
39
|
+
areas?: string[];
|
|
40
|
+
}
|
|
22
41
|
export declare class ConfigurationArrayItem {
|
|
23
42
|
items: string[];
|
|
24
43
|
}
|
|
44
|
+
export declare class RetailExclusivityRulesItemsDto {
|
|
45
|
+
items: ConfigurationRetailExclusivityDto[];
|
|
46
|
+
}
|
|
47
|
+
export declare class ReferenceDateDto {
|
|
48
|
+
[StorageConfiguration.RETAIL_EXCLUSIVITY_RULES]?: Date | null;
|
|
49
|
+
}
|
|
@@ -8,12 +8,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
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
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ConfigurationArrayItem = exports.FeatureGroupCharacteristic = exports.FeatureGroup = exports.ConfigurationDto = void 0;
|
|
13
|
+
exports.ReferenceDateDto = exports.RetailExclusivityRulesItemsDto = exports.ConfigurationArrayItem = exports.ConfigurationRetailExclusivityDto = exports.ConfigurationServiceableAgeDto = exports.ConfigurationSegmentsDto = exports.ConfigurationSegmentDto = exports.FeatureGroupCharacteristic = exports.FeatureGroup = exports.ConfigurationDto = void 0;
|
|
13
14
|
const openapi = require("@nestjs/swagger");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
16
|
const _validators_1 = require("../validators/index");
|
|
16
17
|
const typeorm_1 = require("typeorm");
|
|
18
|
+
const constants_1 = require("../common/constants");
|
|
19
|
+
const class_transformer_1 = require("class-transformer");
|
|
20
|
+
const IsLowerThan_1 = require("../validators/IsLowerThan");
|
|
17
21
|
let ConfigurationDto = class ConfigurationDto {
|
|
18
22
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
23
|
return { id: { required: true, type: () => Number }, key: { required: true, type: () => String }, value: { required: true, type: () => String }, updatedAt: { required: false, type: () => String }, updatedBy: { required: false, type: () => String } };
|
|
@@ -55,6 +59,78 @@ class FeatureGroupCharacteristic {
|
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
61
|
exports.FeatureGroupCharacteristic = FeatureGroupCharacteristic;
|
|
62
|
+
class ConfigurationSegmentDto {
|
|
63
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
64
|
+
return { segment: { required: true, type: () => String }, channels: { required: true, type: () => [String] }, default: { required: false, type: () => Boolean } };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.ConfigurationSegmentDto = ConfigurationSegmentDto;
|
|
68
|
+
class ConfigurationSegmentsDto {
|
|
69
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
70
|
+
return {};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.ConfigurationSegmentsDto = ConfigurationSegmentsDto;
|
|
74
|
+
class ConfigurationServiceableAgeDto {
|
|
75
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
76
|
+
return { min: { required: false, type: () => Number }, max: { required: false, type: () => Number } };
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.ValidateIf)((o, value) => value || !o.max),
|
|
81
|
+
(0, class_validator_1.IsInt)(),
|
|
82
|
+
(0, IsLowerThan_1.IsLowerThan)('max'),
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], ConfigurationServiceableAgeDto.prototype, "min", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.ValidateIf)((o, value) => value || !o.min),
|
|
88
|
+
(0, class_validator_1.IsInt)(),
|
|
89
|
+
(0, _validators_1.IsGreaterThan)('min'),
|
|
90
|
+
(0, class_transformer_1.Expose)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], ConfigurationServiceableAgeDto.prototype, "max", void 0);
|
|
93
|
+
exports.ConfigurationServiceableAgeDto = ConfigurationServiceableAgeDto;
|
|
94
|
+
class ConfigurationRetailExclusivityDto {
|
|
95
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
96
|
+
return { channels: { required: true, type: () => [String] }, status: { required: false, type: () => String }, serviceableAge: { required: false, type: () => require("./configuration.entity").ConfigurationServiceableAgeDto }, areas: { required: false, type: () => [String] } };
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsArray)(),
|
|
101
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
102
|
+
(0, class_validator_1.IsNotEmpty)({ each: true }),
|
|
103
|
+
(0, _validators_1.IsNotBlank)({ each: true }),
|
|
104
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
105
|
+
(0, class_transformer_1.Expose)(),
|
|
106
|
+
__metadata("design:type", Array)
|
|
107
|
+
], ConfigurationRetailExclusivityDto.prototype, "channels", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, class_validator_1.ValidateIf)((o, value) => value || (!o.serviceableAge && !o.areas)),
|
|
110
|
+
(0, class_validator_1.IsString)(),
|
|
111
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
112
|
+
(0, _validators_1.IsNotBlank)(),
|
|
113
|
+
(0, class_transformer_1.Expose)(),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], ConfigurationRetailExclusivityDto.prototype, "status", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, class_validator_1.ValidateIf)((o, value) => value || (!o.status && !o.areas)),
|
|
118
|
+
(0, class_validator_1.IsDefined)(),
|
|
119
|
+
(0, class_validator_1.ValidateNested)(),
|
|
120
|
+
(0, class_transformer_1.Type)(() => ConfigurationServiceableAgeDto),
|
|
121
|
+
(0, class_transformer_1.Expose)(),
|
|
122
|
+
__metadata("design:type", ConfigurationServiceableAgeDto)
|
|
123
|
+
], ConfigurationRetailExclusivityDto.prototype, "serviceableAge", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.ValidateIf)((o, value) => value || (!o.serviceableAge && !o.status)),
|
|
126
|
+
(0, class_validator_1.IsArray)(),
|
|
127
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
128
|
+
(0, class_validator_1.IsNotEmpty)({ each: true }),
|
|
129
|
+
(0, _validators_1.IsNotBlank)({ each: true }),
|
|
130
|
+
(0, class_transformer_1.Expose)(),
|
|
131
|
+
__metadata("design:type", Array)
|
|
132
|
+
], ConfigurationRetailExclusivityDto.prototype, "areas", void 0);
|
|
133
|
+
exports.ConfigurationRetailExclusivityDto = ConfigurationRetailExclusivityDto;
|
|
58
134
|
class ConfigurationArrayItem {
|
|
59
135
|
static _OPENAPI_METADATA_FACTORY() {
|
|
60
136
|
return { items: { required: true, type: () => [String] } };
|
|
@@ -68,3 +144,30 @@ __decorate([
|
|
|
68
144
|
__metadata("design:type", Array)
|
|
69
145
|
], ConfigurationArrayItem.prototype, "items", void 0);
|
|
70
146
|
exports.ConfigurationArrayItem = ConfigurationArrayItem;
|
|
147
|
+
class RetailExclusivityRulesItemsDto {
|
|
148
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
149
|
+
return { items: { required: true, type: () => [require("./configuration.entity").ConfigurationRetailExclusivityDto] } };
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, class_validator_1.IsArray)(),
|
|
154
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
155
|
+
(0, class_transformer_1.Type)(() => ConfigurationRetailExclusivityDto),
|
|
156
|
+
(0, class_transformer_1.Expose)(),
|
|
157
|
+
__metadata("design:type", Array)
|
|
158
|
+
], RetailExclusivityRulesItemsDto.prototype, "items", void 0);
|
|
159
|
+
exports.RetailExclusivityRulesItemsDto = RetailExclusivityRulesItemsDto;
|
|
160
|
+
class ReferenceDateDto {
|
|
161
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
162
|
+
return {};
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
_a = constants_1.StorageConfiguration.RETAIL_EXCLUSIVITY_RULES;
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, class_validator_1.ValidateIf)((value) => value !== null),
|
|
168
|
+
(0, class_validator_1.IsDateString)(),
|
|
169
|
+
(0, class_validator_1.IsOptional)(),
|
|
170
|
+
(0, class_transformer_1.Expose)(),
|
|
171
|
+
__metadata("design:type", Date)
|
|
172
|
+
], ReferenceDateDto.prototype, _a, void 0);
|
|
173
|
+
exports.ReferenceDateDto = ReferenceDateDto;
|
|
@@ -97,11 +97,3 @@ export declare class WebOrderClientPayloadDto {
|
|
|
97
97
|
installationCosts: ProductSummaryCharacteristicResDto[];
|
|
98
98
|
promotions: ProductSummaryCharacteristicResDto[];
|
|
99
99
|
}
|
|
100
|
-
export declare class ConfigurationSegmentDto {
|
|
101
|
-
segment: string;
|
|
102
|
-
channels: string[];
|
|
103
|
-
default?: boolean;
|
|
104
|
-
}
|
|
105
|
-
export declare class ConfigurationSegmentsDto {
|
|
106
|
-
[key: string]: ConfigurationSegmentDto[];
|
|
107
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WebOrderClientPayloadDto = exports.WebOrderClientCustomerDto = exports.WebOrderClientVoipProductDto = exports.WebOrderClientMobileProductDto = exports.WebOrderClientMobileProductPortinDto = exports.SaleProcessScoringStatusSalesArea = exports.SmsMessageBusinessPayloadDto = exports.SmsMessagePayloadDto = exports.DashboardFilterDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
const product_1 = require("../../../common/edge-bss/product");
|
|
6
6
|
class DashboardFilterDto {
|
|
@@ -57,15 +57,3 @@ class WebOrderClientPayloadDto {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
exports.WebOrderClientPayloadDto = WebOrderClientPayloadDto;
|
|
60
|
-
class ConfigurationSegmentDto {
|
|
61
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
62
|
-
return { segment: { required: true, type: () => String }, channels: { required: true, type: () => [String] }, default: { required: false, type: () => Boolean } };
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.ConfigurationSegmentDto = ConfigurationSegmentDto;
|
|
66
|
-
class ConfigurationSegmentsDto {
|
|
67
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
68
|
-
return {};
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.ConfigurationSegmentsDto = ConfigurationSegmentsDto;
|
|
@@ -4,7 +4,7 @@ exports.DependencyResDto = exports.DropdownDataResDto = void 0;
|
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class DropdownDataResDto {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
-
return { value: { required: true, type: () => String }, displayName: { required: true, type: () => String } };
|
|
7
|
+
return { value: { required: true, type: () => String, nullable: true }, displayName: { required: true, type: () => String } };
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.DropdownDataResDto = DropdownDataResDto;
|