adamo-types 1.1.19 → 1.1.20
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/README.md +48 -0
- package/dist/bss/bearingpoint/product.entity.js +21 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity.js +15 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-product.entity.js +8 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-service-characteristic.entity.js +2 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-service.entity.js +1 -0
- package/dist/common/constants/error.constants.d.ts +3 -0
- package/dist/common/constants/error.constants.js +5 -2
- package/dist/common/edge-bss/address/req/create.entity.js +56 -1
- package/dist/common/edge-bss/shopping-cart/req/other.entity.d.ts +1 -29
- package/dist/common/edge-bss/shopping-cart/req/other.entity.js +63 -35
- package/dist/common/edge-bss/shopping-cart/res/other.entity.js +56 -1
- package/dist/common/edge-zoho/sale-process/req/create.entity.d.ts +2 -2
- package/dist/common/edge-zoho/sale-process/req/create.entity.js +97 -1
- package/dist/common/edge-zoho/sale-process/req/other.entity.js +67 -1
- package/dist/common/edge-zoho/sale-process/req/patch.entity.js +9 -4
- package/dist/common/exception/exception.entity.d.ts +7 -8
- package/dist/common/exception/exception.entity.js +4 -4
- package/dist/common/number-pool/constants/index.entity.d.ts +1 -1
- package/dist/common/number-pool/constants/index.entity.js +54 -54
- package/dist/common/number-pool/index.d.ts +1 -0
- package/dist/common/number-pool/index.js +1 -0
- package/dist/sys03/shopping-cart/req/req.entity.d.ts +10 -3
- package/dist/sys03/shopping-cart/req/req.entity.js +39 -8
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/zoho/sale-process/business-identification.entity.d.ts +1 -1
- package/dist/zoho/sale-process/business-identification.entity.js +4 -3
- package/dist/zoho/sale-process/customer-identification.entity.js +3 -2
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -99,3 +99,51 @@ try {
|
|
|
99
99
|
---
|
|
100
100
|
## TODO
|
|
101
101
|
- With DTOS fix exporting types -> class(es) because types don't allow for DTO validation within validators
|
|
102
|
+
|
|
103
|
+
## Use `yalc` for local develoment
|
|
104
|
+
There are some issues when ussig `class-transformer` and `class-validator` with `npm link` or `npm install file:../adamo-types`.
|
|
105
|
+
|
|
106
|
+
See these GitHub issues:
|
|
107
|
+
|
|
108
|
+
https://github.com/typestack/class-transformer/issues/313#issuecomment-667728916
|
|
109
|
+
|
|
110
|
+
https://github.com/typestack/class-transformer/issues/384
|
|
111
|
+
|
|
112
|
+
In order to get rid of this, you can use `yalc` for local development. For more information about `yalc` see this [link](https://www.npmjs.com/package/yalc).
|
|
113
|
+
1. Install `yalc` globally with:
|
|
114
|
+
```
|
|
115
|
+
npm i -g yalc
|
|
116
|
+
```
|
|
117
|
+
It has to be installed globally because it creates a global folder where all packages are stored.
|
|
118
|
+
|
|
119
|
+
2. Run script `start:yalc` with:
|
|
120
|
+
```
|
|
121
|
+
npm run start:yalc
|
|
122
|
+
```
|
|
123
|
+
This will execute:
|
|
124
|
+
```
|
|
125
|
+
concurrently --kill-others \"npm run start\" \"npm run yalc:watch\"
|
|
126
|
+
```
|
|
127
|
+
`concurrently` is a packege installed like a dev dependency which will execute both scripts: `npm run start` and `npm run yalc:watch`. For more information about `concurrently` see this [link](https://github.com/open-cli-tools/concurrently).
|
|
128
|
+
|
|
129
|
+
`npm run start` will execute this script: `nest build --watch`. This script will watch your code changes and will build the project with every change you make.
|
|
130
|
+
|
|
131
|
+
`npm run yalc:watch` will execute the script: `nodemon -w ./dist/tsconfig.build.tsbuildinfo -x \"yalc push --changed --replace --private\"`. This script will watch the file `./dist/tsconfig.build.tsbuildinfo`, that will change with every build, and will execute this `yalc` script: `yalc push --changed --replace --private`.
|
|
132
|
+
|
|
133
|
+
`yalc push --changed --replace --private` will propagate your changes to all projects where this package is installed.
|
|
134
|
+
|
|
135
|
+
3. Install `adamo-types` in your project with:
|
|
136
|
+
```
|
|
137
|
+
yalc link adamo-types
|
|
138
|
+
```
|
|
139
|
+
`yalc link` will create a symbolic link in `node_modules` to `yalc` directory where `adamo-types` is pushed. Also this link won't update your `package.json` file.
|
|
140
|
+
|
|
141
|
+
4. Update your project `.gitignore` with:
|
|
142
|
+
```
|
|
143
|
+
# Yalc
|
|
144
|
+
/.yalc
|
|
145
|
+
yalc-build
|
|
146
|
+
yalc.lock
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
|
|
@@ -1,7 +1,17 @@
|
|
|
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
12
|
exports.ShoppingCartProductOfferingDto = exports.ProductDto = void 0;
|
|
4
13
|
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
5
15
|
class ProductDto {
|
|
6
16
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
17
|
return { name: { required: true, type: () => String }, bundle: { required: true, type: () => Boolean }, internalName: { required: true, type: () => String }, displayName: { required: false, type: () => String }, billText: { required: true, type: () => String }, description: { required: true, type: () => String }, tariffModel: { required: true, type: () => String }, validFor: { required: false, type: () => require("./valid-for.entity").ValidForDto }, dependencies: { required: true, type: () => [require("./dependency.entity").DependencyDto] }, configurationAttributes: { required: true, type: () => [require("./configuration-attribute.entity").ConfigurationAttributeDto] }, characteristicGroups: { required: true, type: () => [require("./characteristic.entity").CharacteristicDto] }, serviceSpecifications: { required: true, type: () => [require("./service-specification/service-specification.entity").ServiceSpecificationDto] }, productOfferings: { required: true, type: () => [require("./product.entity").ProductDto] }, productOfferingGroups: { required: true, type: () => [require("./product.entity").ProductDto] }, minNumberOfInstances: { required: false, type: () => Number }, maxNumberOfInstances: { required: false, type: () => Number } };
|
|
@@ -13,4 +23,15 @@ class ShoppingCartProductOfferingDto {
|
|
|
13
23
|
return { name: { required: true, type: () => String }, group: { required: false, type: () => String }, invoiceName: { required: false, type: () => String }, internalName: { required: false, type: () => String }, type: { required: false, type: () => String }, available: { required: false, type: () => Boolean }, hidden: { required: false, type: () => Boolean } };
|
|
14
24
|
}
|
|
15
25
|
}
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ShoppingCartProductOfferingDto.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ShoppingCartProductOfferingDto.prototype, "group", void 0);
|
|
16
37
|
exports.ShoppingCartProductOfferingDto = ShoppingCartProductOfferingDto;
|
|
@@ -1,10 +1,25 @@
|
|
|
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
12
|
exports.ShoppingCartParametersDto = void 0;
|
|
4
13
|
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
5
15
|
class ShoppingCartParametersDto {
|
|
6
16
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
17
|
return { addressInfo: { required: true, type: () => String }, door: { required: true, type: () => String }, country: { required: true, type: () => String }, salesAreaName: { required: true, type: () => String }, city: { required: true, type: () => String }, municipality: { required: true, type: () => String }, competition: { required: true, type: () => String }, network: { required: true, type: () => String }, fiberhood: { required: true, type: () => String }, cartCreatedBy: { required: true, type: () => String }, streetName: { required: true, type: () => String }, province: { required: true, type: () => String }, projectCode: { required: true, type: () => String }, block: { required: true, type: () => String }, serviceable: { required: true, type: () => String }, floor: { required: true, type: () => String }, entrance: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, streetType: { required: true, type: () => String }, serviceableStatus: { required: true, type: () => String }, postcode: { required: true, type: () => String }, technology: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, salesAreaId: { required: true, type: () => String }, serviceableAge: { required: true, type: () => String }, projectId: { required: true, type: () => String }, apartmentId: { required: true, type: () => String }, streetAddressId: { required: true, type: () => String }, customerType: { required: true, type: () => String } };
|
|
8
18
|
}
|
|
9
19
|
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ShoppingCartParametersDto.prototype, "serviceableStatus", void 0);
|
|
10
25
|
exports.ShoppingCartParametersDto = ShoppingCartParametersDto;
|
|
@@ -38,31 +38,38 @@ __decorate([
|
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, class_validator_1.ValidateNested)(),
|
|
40
40
|
(0, class_transformer_1.Type)(() => product_entity_1.ShoppingCartProductOfferingDto),
|
|
41
|
-
(0, class_validator_1.IsOptional)(),
|
|
42
41
|
__metadata("design:type", product_entity_1.ShoppingCartProductOfferingDto)
|
|
43
42
|
], ShoppingCartProductDto.prototype, "productOffering", void 0);
|
|
44
43
|
__decorate([
|
|
45
44
|
(0, class_validator_1.IsArray)(),
|
|
45
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
46
46
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
47
47
|
(0, class_transformer_1.Type)(() => ShoppingCartProductDto),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
49
|
__metadata("design:type", Array)
|
|
49
50
|
], ShoppingCartProductDto.prototype, "products", void 0);
|
|
50
51
|
__decorate([
|
|
51
52
|
(0, class_validator_1.IsArray)(),
|
|
53
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
52
54
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
53
55
|
(0, class_transformer_1.Type)(() => shopping_cart_product_characteristic_entity_1.ShoppingCartProductCharacteristicDto),
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
57
|
__metadata("design:type", Array)
|
|
55
58
|
], ShoppingCartProductDto.prototype, "productCharacteristics", void 0);
|
|
56
59
|
__decorate([
|
|
57
60
|
(0, class_validator_1.IsArray)(),
|
|
61
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
58
62
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
59
63
|
(0, class_transformer_1.Type)(() => shopping_cart_service_entity_1.ShoppingCartServiceDto),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
65
|
__metadata("design:type", Array)
|
|
61
66
|
], ShoppingCartProductDto.prototype, "services", void 0);
|
|
62
67
|
__decorate([
|
|
63
68
|
(0, class_validator_1.IsArray)(),
|
|
69
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
64
70
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
65
71
|
(0, class_transformer_1.Type)(() => shopping_cart_resource_entity_1.ShoppingCartResourceDto),
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
73
|
__metadata("design:type", Array)
|
|
67
74
|
], ShoppingCartProductDto.prototype, "resources", void 0);
|
|
68
75
|
__decorate([
|
|
@@ -20,10 +20,12 @@ class ShoppingCartServiceCharacteristicDto {
|
|
|
20
20
|
}
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
25
|
], ShoppingCartServiceCharacteristicDto.prototype, "name", void 0);
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
29
|
(0, class_validator_1.IsOptional)(),
|
|
28
30
|
__metadata("design:type", String)
|
|
29
31
|
], ShoppingCartServiceCharacteristicDto.prototype, "value", void 0);
|
|
@@ -30,6 +30,7 @@ __decorate([
|
|
|
30
30
|
], ShoppingCartServiceDto.prototype, "action", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, class_validator_1.IsArray)(),
|
|
33
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
33
34
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
34
35
|
(0, class_transformer_1.Type)(() => shopping_cart_service_characteristic_entity_1.ShoppingCartServiceCharacteristicDto),
|
|
35
36
|
__metadata("design:type", Array)
|
|
@@ -22,6 +22,8 @@ export declare const E_BP = "E_BP";
|
|
|
22
22
|
export declare const E_CHANGE_CHANNEL = "E_CHANGE_CHANNEL";
|
|
23
23
|
export declare const E_NO_SELECTED_CHANNEL = "E_NO_SELECTED_CHANNEL";
|
|
24
24
|
export declare const E_BODY_NOT_PROVIDED = "E_BODY_NOT_PROVIDED";
|
|
25
|
+
export declare const E_BODY_NOT_ARRAY = "E_BODY_NOT_ARRAY";
|
|
26
|
+
export declare const E_BODY_NOT_OBJECT = "E_BODY_NOT_OBJECT";
|
|
25
27
|
export declare const E_VALIDATION = "E_VALIDATION";
|
|
26
28
|
export declare const E_CONNECTION_REFUSED = "E_CONNECTION_REFUSED";
|
|
27
29
|
export declare const E_SERVER = "E_SERVER";
|
|
@@ -86,3 +88,4 @@ export declare const E_RESERVE_NUMBER_FROM_POOL = "E_RESERVE_NUMBER_FROM_POOL";
|
|
|
86
88
|
export declare const E_USER_WITHOUT_ROLE = "E_USER_WITHOUT_ROLE";
|
|
87
89
|
export declare const E_USER_ROLE_UNKNOWN = "E_USER_ROLE_UNKNOWN";
|
|
88
90
|
export declare const E_NOT_FOUND = "E_NOT_FOUND";
|
|
91
|
+
export declare const E_INVALID_SALE_PROCESS_STATUS = "E_INVALID_SALE_PROCESS_STATUS";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
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_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 = void 0;
|
|
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_SELECTED_CHANNEL = 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
|
+
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_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
5
|
exports.E_LOGIN = 'E_LOGIN';
|
|
6
6
|
exports.E_ASSIGN_CHANNELS = 'E_ASSIGN_CHANNELS';
|
|
7
7
|
exports.E_UPDATE_PASSWORD = 'E_UPDATE_PASSWORD';
|
|
@@ -26,6 +26,8 @@ exports.E_BP = 'E_BP';
|
|
|
26
26
|
exports.E_CHANGE_CHANNEL = 'E_CHANGE_CHANNEL';
|
|
27
27
|
exports.E_NO_SELECTED_CHANNEL = 'E_NO_SELECTED_CHANNEL';
|
|
28
28
|
exports.E_BODY_NOT_PROVIDED = 'E_BODY_NOT_PROVIDED';
|
|
29
|
+
exports.E_BODY_NOT_ARRAY = 'E_BODY_NOT_ARRAY';
|
|
30
|
+
exports.E_BODY_NOT_OBJECT = 'E_BODY_NOT_OBJECT';
|
|
29
31
|
exports.E_VALIDATION = 'E_VALIDATION';
|
|
30
32
|
exports.E_CONNECTION_REFUSED = 'E_CONNECTION_REFUSED';
|
|
31
33
|
exports.E_SERVER = 'E_SERVER';
|
|
@@ -90,3 +92,4 @@ exports.E_RESERVE_NUMBER_FROM_POOL = 'E_RESERVE_NUMBER_FROM_POOL';
|
|
|
90
92
|
exports.E_USER_WITHOUT_ROLE = 'E_USER_WITHOUT_ROLE';
|
|
91
93
|
exports.E_USER_ROLE_UNKNOWN = 'E_USER_ROLE_UNKNOWN';
|
|
92
94
|
exports.E_NOT_FOUND = 'E_NOT_FOUND';
|
|
95
|
+
exports.E_INVALID_SALE_PROCESS_STATUS = 'E_INVALID_SALE_PROCESS_STATUS';
|
|
@@ -11,14 +11,69 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ArsAddressDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
16
|
class ArsAddressDto {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.block = '';
|
|
19
|
+
this.floor = '';
|
|
20
|
+
this.door = '';
|
|
21
|
+
this.entrance = '';
|
|
22
|
+
}
|
|
16
23
|
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
-
return { id: { required: false, type: () => String }, country: { required: false, type: () => String }, postcode: { required: true, type: () => String }, 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: () => String }, floor: { required: true, type: () => String }, door: { required: true, type: () => String }, entrance: { required: true, type: () => String }, 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 }, 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: () => String, default: '' }, floor: { required: true, type: () => String, default: '' }, door: { required: true, type: () => String, default: '' }, entrance: { required: true, type: () => String, 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 } };
|
|
18
25
|
}
|
|
19
26
|
}
|
|
20
27
|
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
21
29
|
(0, class_validator_1.Matches)(/^[0-9]{1,5}$/),
|
|
30
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
31
|
+
if (value.length < 5) {
|
|
32
|
+
return value.toString().padStart('0', 5);
|
|
33
|
+
}
|
|
34
|
+
return value;
|
|
35
|
+
}),
|
|
22
36
|
__metadata("design:type", String)
|
|
23
37
|
], ArsAddressDto.prototype, "postcode", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ArsAddressDto.prototype, "province", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ArsAddressDto.prototype, "city", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ArsAddressDto.prototype, "streetType", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], ArsAddressDto.prototype, "streetName", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ArsAddressDto.prototype, "streetNumber", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], ArsAddressDto.prototype, "block", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], ArsAddressDto.prototype, "floor", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsString)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], ArsAddressDto.prototype, "door", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsString)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], ArsAddressDto.prototype, "entrance", void 0);
|
|
24
79
|
exports.ArsAddressDto = ArsAddressDto;
|
|
@@ -45,36 +45,8 @@ export declare class UpdateShoppingCartConfigurationProductDto {
|
|
|
45
45
|
characteristics: UpdateShoppingCartCharacteristicDto[];
|
|
46
46
|
serviceSpecification: UpdateShoppingCartServiceSpecificationItemDto[];
|
|
47
47
|
}
|
|
48
|
-
export declare class UpdateShoppingCartConfigurationFibreDto {
|
|
49
|
-
others: UpdateShoppingCartServiceSpecificationItemDto[];
|
|
50
|
-
}
|
|
51
|
-
export declare class UpdateShoppingCartConfigurationVoipDto {
|
|
52
|
-
phoneNumber?: UpdateShoppingCartServiceSpecificationItemDto;
|
|
53
|
-
portin?: UpdateShoppingCartConfigurationVoipPortinDto;
|
|
54
|
-
others: UpdateShoppingCartServiceSpecificationItemDto[];
|
|
55
|
-
}
|
|
56
|
-
export declare class UpdateShoppingCartConfigurationMobileDto {
|
|
57
|
-
deliveryAddress: UpdateShoppingCartServiceSpecificationItemDto;
|
|
58
|
-
portin?: UpdateShoppingCartConfigurationMobilePortinDto;
|
|
59
|
-
others: UpdateShoppingCartServiceSpecificationItemDto[];
|
|
60
|
-
}
|
|
61
48
|
export declare class UpdateShoppingCartServiceSpecificationItemDto {
|
|
62
49
|
name: string;
|
|
63
50
|
type: ServiceSpecificationType;
|
|
64
|
-
value
|
|
65
|
-
}
|
|
66
|
-
export declare class UpdateShoppingCartConfigurationVoipPortinDto {
|
|
67
|
-
number: UpdateShoppingCartServiceSpecificationItemDto;
|
|
68
|
-
address: UpdateShoppingCartServiceSpecificationItemDto;
|
|
69
|
-
}
|
|
70
|
-
export declare class UpdateShoppingCartConfigurationMobilePortinDto {
|
|
71
|
-
number: UpdateShoppingCartServiceSpecificationItemDto;
|
|
72
|
-
operator: UpdateShoppingCartServiceSpecificationItemDto;
|
|
73
|
-
contractType: UpdateShoppingCartServiceSpecificationItemDto;
|
|
74
|
-
icc?: UpdateShoppingCartServiceSpecificationItemDto;
|
|
75
|
-
customerName?: UpdateShoppingCartServiceSpecificationItemDto;
|
|
76
|
-
customerLastName?: UpdateShoppingCartServiceSpecificationItemDto;
|
|
77
|
-
customerIdType?: UpdateShoppingCartServiceSpecificationItemDto;
|
|
78
|
-
customerIdentifier?: UpdateShoppingCartServiceSpecificationItemDto;
|
|
79
|
-
passportCountry?: UpdateShoppingCartServiceSpecificationItemDto;
|
|
51
|
+
value?: string | ShoppingCartConfigurationAddressResDto;
|
|
80
52
|
}
|
|
@@ -9,11 +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.
|
|
12
|
+
exports.UpdateShoppingCartServiceSpecificationItemDto = exports.UpdateShoppingCartConfigurationProductDto = exports.UpdateShoppingCartConfigurationDto = exports.UpdateShoppingCartCharacteristicDto = exports.SaveShoppingCartDto = exports.UpdateShoppingCartExtraGroupDto = exports.UpdateShoppingCartExtraDto = exports.UpdateShoppingCartExtrasDto = exports.ConfigurationAttributeValuesDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const common_constants_1 = require("../../../constants/common.constants");
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
|
+
const constants_1 = require("../../../constants");
|
|
18
|
+
const constants_2 = require("../../../../bss/constants");
|
|
19
|
+
const bearingpoint_1 = require("../../../../bss/bearingpoint");
|
|
17
20
|
class ConfigurationAttributeValuesDto {
|
|
18
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
22
|
return { businessType: { required: false, enum: require("../../../constants/common.constants").ClientType }, competition: { required: false, type: () => String }, fiberhood: { required: false, type: () => String }, network: { required: false, type: () => String }, projectCode: { required: false, type: () => String }, salesAreaName: { required: false, enum: require("../../../constants/common.constants").SalesArea }, serviceableAge: { required: false, type: () => String }, serviceableStatus: { required: false, type: () => String }, channel: { required: false, type: () => String }, contractBindingMonths: { required: false, type: () => Number } };
|
|
@@ -51,7 +54,7 @@ __decorate([
|
|
|
51
54
|
(0, class_validator_1.ArrayNotEmpty)(),
|
|
52
55
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
53
56
|
(0, class_transformer_1.Type)(() => UpdateShoppingCartExtraDto),
|
|
54
|
-
(0, class_validator_1.
|
|
57
|
+
(0, class_validator_1.ValidateIf)(o => o.extras || !o.extraGroups),
|
|
55
58
|
__metadata("design:type", Array)
|
|
56
59
|
], UpdateShoppingCartExtrasDto.prototype, "extras", void 0);
|
|
57
60
|
exports.UpdateShoppingCartExtrasDto = UpdateShoppingCartExtrasDto;
|
|
@@ -98,7 +101,7 @@ class SaveShoppingCartDto {
|
|
|
98
101
|
exports.SaveShoppingCartDto = SaveShoppingCartDto;
|
|
99
102
|
class UpdateShoppingCartCharacteristicDto {
|
|
100
103
|
static _OPENAPI_METADATA_FACTORY() {
|
|
101
|
-
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number, minimum: 0 } };
|
|
104
|
+
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number, minimum: 0, maximum: 99 } };
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
107
|
__decorate([
|
|
@@ -109,6 +112,7 @@ __decorate([
|
|
|
109
112
|
__decorate([
|
|
110
113
|
(0, class_validator_1.IsInt)(),
|
|
111
114
|
(0, class_validator_1.Min)(0),
|
|
115
|
+
(0, class_validator_1.Max)(99),
|
|
112
116
|
__metadata("design:type", Number)
|
|
113
117
|
], UpdateShoppingCartCharacteristicDto.prototype, "qty", void 0);
|
|
114
118
|
exports.UpdateShoppingCartCharacteristicDto = UpdateShoppingCartCharacteristicDto;
|
|
@@ -117,46 +121,70 @@ class UpdateShoppingCartConfigurationDto {
|
|
|
117
121
|
return { products: { required: true, type: () => [require("./other.entity").UpdateShoppingCartConfigurationProductDto] }, parameters: { required: true, type: () => require("../../../../bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity").ShoppingCartParametersDto } };
|
|
118
122
|
}
|
|
119
123
|
}
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.IsArray)(),
|
|
126
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
127
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
128
|
+
(0, class_transformer_1.Type)(() => UpdateShoppingCartConfigurationProductDto),
|
|
129
|
+
__metadata("design:type", Array)
|
|
130
|
+
], UpdateShoppingCartConfigurationDto.prototype, "products", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, class_validator_1.IsDefined)(),
|
|
133
|
+
(0, class_validator_1.ValidateNested)(),
|
|
134
|
+
(0, class_transformer_1.Type)(() => bearingpoint_1.ShoppingCartParametersDto),
|
|
135
|
+
__metadata("design:type", bearingpoint_1.ShoppingCartParametersDto)
|
|
136
|
+
], UpdateShoppingCartConfigurationDto.prototype, "parameters", void 0);
|
|
120
137
|
exports.UpdateShoppingCartConfigurationDto = UpdateShoppingCartConfigurationDto;
|
|
121
138
|
class UpdateShoppingCartConfigurationProductDto {
|
|
122
139
|
static _OPENAPI_METADATA_FACTORY() {
|
|
123
|
-
return { name: { required: true, type: () => String }, index: { required: true, type: () => Number }, type: { required: true, enum: require("../../../constants/common.constants").ShoppingCartConfigurationProductType }, characteristics: { required: true, type: () => [require("./other.entity").UpdateShoppingCartCharacteristicDto] }, serviceSpecification: { required: true, type: () => [require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto] } };
|
|
140
|
+
return { name: { required: true, type: () => String }, index: { required: true, type: () => Number, minimum: 0 }, type: { required: true, enum: require("../../../constants/common.constants").ShoppingCartConfigurationProductType }, characteristics: { required: true, type: () => [require("./other.entity").UpdateShoppingCartCharacteristicDto] }, serviceSpecification: { required: true, type: () => [require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto] } };
|
|
124
141
|
}
|
|
125
142
|
}
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, class_validator_1.IsString)(),
|
|
145
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], UpdateShoppingCartConfigurationProductDto.prototype, "name", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, class_validator_1.IsInt)(),
|
|
150
|
+
(0, class_validator_1.Min)(0),
|
|
151
|
+
__metadata("design:type", Number)
|
|
152
|
+
], UpdateShoppingCartConfigurationProductDto.prototype, "index", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, class_validator_1.IsEnum)(constants_1.ShoppingCartConfigurationProductType),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], UpdateShoppingCartConfigurationProductDto.prototype, "type", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, class_validator_1.IsArray)(),
|
|
159
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
160
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
161
|
+
(0, class_transformer_1.Type)(() => UpdateShoppingCartCharacteristicDto),
|
|
162
|
+
__metadata("design:type", Array)
|
|
163
|
+
], UpdateShoppingCartConfigurationProductDto.prototype, "characteristics", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, class_validator_1.IsArray)(),
|
|
166
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
167
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
168
|
+
(0, class_transformer_1.Type)(() => UpdateShoppingCartServiceSpecificationItemDto),
|
|
169
|
+
__metadata("design:type", Array)
|
|
170
|
+
], UpdateShoppingCartConfigurationProductDto.prototype, "serviceSpecification", void 0);
|
|
126
171
|
exports.UpdateShoppingCartConfigurationProductDto = UpdateShoppingCartConfigurationProductDto;
|
|
127
|
-
class UpdateShoppingCartConfigurationFibreDto {
|
|
128
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
129
|
-
return { others: { required: true, type: () => [require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto] } };
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
exports.UpdateShoppingCartConfigurationFibreDto = UpdateShoppingCartConfigurationFibreDto;
|
|
133
|
-
class UpdateShoppingCartConfigurationVoipDto {
|
|
134
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
135
|
-
return { phoneNumber: { required: false, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, portin: { required: false, type: () => require("./other.entity").UpdateShoppingCartConfigurationVoipPortinDto }, others: { required: true, type: () => [require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto] } };
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
exports.UpdateShoppingCartConfigurationVoipDto = UpdateShoppingCartConfigurationVoipDto;
|
|
139
|
-
class UpdateShoppingCartConfigurationMobileDto {
|
|
140
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
141
|
-
return { deliveryAddress: { required: true, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, portin: { required: false, type: () => require("./other.entity").UpdateShoppingCartConfigurationMobilePortinDto }, others: { required: true, type: () => [require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto] } };
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
exports.UpdateShoppingCartConfigurationMobileDto = UpdateShoppingCartConfigurationMobileDto;
|
|
145
172
|
class UpdateShoppingCartServiceSpecificationItemDto {
|
|
146
173
|
static _OPENAPI_METADATA_FACTORY() {
|
|
147
|
-
return { name: { required: true, type: () => String }, type: { required: true, enum: require("../../../../bss/constants/bp.constants").ServiceSpecificationType }, value: { required:
|
|
174
|
+
return { name: { required: true, type: () => String }, type: { required: true, enum: require("../../../../bss/constants/bp.constants").ServiceSpecificationType }, value: { required: false, type: () => Object } };
|
|
148
175
|
}
|
|
149
176
|
}
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, class_validator_1.IsString)(),
|
|
179
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
180
|
+
__metadata("design:type", String)
|
|
181
|
+
], UpdateShoppingCartServiceSpecificationItemDto.prototype, "name", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, class_validator_1.IsEnum)(constants_2.ServiceSpecificationType),
|
|
184
|
+
__metadata("design:type", String)
|
|
185
|
+
], UpdateShoppingCartServiceSpecificationItemDto.prototype, "type", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, class_validator_1.IsOptional)(),
|
|
188
|
+
__metadata("design:type", Object)
|
|
189
|
+
], UpdateShoppingCartServiceSpecificationItemDto.prototype, "value", void 0);
|
|
150
190
|
exports.UpdateShoppingCartServiceSpecificationItemDto = UpdateShoppingCartServiceSpecificationItemDto;
|
|
151
|
-
class UpdateShoppingCartConfigurationVoipPortinDto {
|
|
152
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
153
|
-
return { number: { required: true, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, address: { required: true, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto } };
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
exports.UpdateShoppingCartConfigurationVoipPortinDto = UpdateShoppingCartConfigurationVoipPortinDto;
|
|
157
|
-
class UpdateShoppingCartConfigurationMobilePortinDto {
|
|
158
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
159
|
-
return { number: { required: true, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, operator: { required: true, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, contractType: { required: true, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, icc: { required: false, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, customerName: { required: false, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, customerLastName: { required: false, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, customerIdType: { required: false, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, customerIdentifier: { required: false, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto }, passportCountry: { required: false, type: () => require("./other.entity").UpdateShoppingCartServiceSpecificationItemDto } };
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
exports.UpdateShoppingCartConfigurationMobilePortinDto = UpdateShoppingCartConfigurationMobilePortinDto;
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ShoppingCartInfoServiceCharacteristicDto = exports.ShoppingCartInfoServiceDto = exports.ShoppingCartInfoCharacteristicDto = exports.ShoppingCartInfoProductDto = exports.ShoppingCartInfoDto = exports.ShoppingCartConfigurationServiceValueResDto = exports.ShoppingCartConfigurationAddressResDto = exports.ShoppingCartConfigurationServiceSpecificationItemResDto = exports.ShoppingCartConfigurationServiceSpecificationItemBssResDto = exports.ShoppingCartConfigurationMobilePortinResDto = exports.ShoppingCartConfigurationMobileResDto = exports.ShoppingCartConfigurationVoipPortinResDto = exports.ShoppingCartConfigurationVoipResDto = exports.ShoppingCartConfigurationFibreResDto = exports.ShoppingCartConfigurationProductResDto = exports.ShoppingCartConfigurationProductBssResDto = exports.ShoppingCartConfigurationChargeResDto = exports.ShoppingCartConfigurationCharacteristicResDto = exports.ShoppingCartConfigurationCharacteristicGroupResDto = exports.ShoppingCartConfigurationFeaturesResDto = exports.ShoppingCartConfigurationResDto = exports.ShoppingCartConfigurationBssResDto = exports.ShoppingCartExtrasResDto = exports.ShoppingCartAvailableProductWithIdResDto = exports.ShoppingCartAvailableProductResDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
16
|
class ShoppingCartAvailableProductResDto {
|
|
16
17
|
static _OPENAPI_METADATA_FACTORY() {
|
|
@@ -121,14 +122,68 @@ class ShoppingCartConfigurationServiceSpecificationItemResDto {
|
|
|
121
122
|
}
|
|
122
123
|
exports.ShoppingCartConfigurationServiceSpecificationItemResDto = ShoppingCartConfigurationServiceSpecificationItemResDto;
|
|
123
124
|
class ShoppingCartConfigurationAddressResDto {
|
|
125
|
+
constructor() {
|
|
126
|
+
this.block = '';
|
|
127
|
+
this.floor = '';
|
|
128
|
+
this.door = '';
|
|
129
|
+
this.entrance = '';
|
|
130
|
+
}
|
|
124
131
|
static _OPENAPI_METADATA_FACTORY() {
|
|
125
|
-
return { country: { required: false, type: () => String }, postcode: { required: true, type: () => String }, 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: () => String }, floor: { required: true, type: () => String }, door: { required: true, type: () => String }, entrance: { required: true, type: () => String }, apartmentId: { required: false, type: () => String } };
|
|
132
|
+
return { country: { required: false, type: () => String }, postcode: { required: true, type: () => String }, 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: () => String, default: '' }, floor: { required: true, type: () => String, default: '' }, door: { required: true, type: () => String, default: '' }, entrance: { required: true, type: () => String, default: '' }, apartmentId: { required: false, type: () => String } };
|
|
126
133
|
}
|
|
127
134
|
}
|
|
128
135
|
__decorate([
|
|
136
|
+
(0, class_validator_1.IsString)(),
|
|
129
137
|
(0, class_validator_1.Matches)(/^[0-9]{1,5}$/),
|
|
138
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
139
|
+
if (value.length < 5) {
|
|
140
|
+
return value.toString().padStart('0', 5);
|
|
141
|
+
}
|
|
142
|
+
return value;
|
|
143
|
+
}),
|
|
130
144
|
__metadata("design:type", String)
|
|
131
145
|
], ShoppingCartConfigurationAddressResDto.prototype, "postcode", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, class_validator_1.IsString)(),
|
|
148
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], ShoppingCartConfigurationAddressResDto.prototype, "province", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, class_validator_1.IsString)(),
|
|
153
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], ShoppingCartConfigurationAddressResDto.prototype, "city", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, class_validator_1.IsString)(),
|
|
158
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
159
|
+
__metadata("design:type", String)
|
|
160
|
+
], ShoppingCartConfigurationAddressResDto.prototype, "streetType", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, class_validator_1.IsString)(),
|
|
163
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], ShoppingCartConfigurationAddressResDto.prototype, "streetName", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, class_validator_1.IsString)(),
|
|
168
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], ShoppingCartConfigurationAddressResDto.prototype, "streetNumber", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, class_validator_1.IsString)(),
|
|
173
|
+
__metadata("design:type", String)
|
|
174
|
+
], ShoppingCartConfigurationAddressResDto.prototype, "block", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, class_validator_1.IsString)(),
|
|
177
|
+
__metadata("design:type", String)
|
|
178
|
+
], ShoppingCartConfigurationAddressResDto.prototype, "floor", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, class_validator_1.IsString)(),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], ShoppingCartConfigurationAddressResDto.prototype, "door", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, class_validator_1.IsString)(),
|
|
185
|
+
__metadata("design:type", String)
|
|
186
|
+
], ShoppingCartConfigurationAddressResDto.prototype, "entrance", void 0);
|
|
132
187
|
exports.ShoppingCartConfigurationAddressResDto = ShoppingCartConfigurationAddressResDto;
|
|
133
188
|
class ShoppingCartConfigurationServiceValueResDto {
|
|
134
189
|
static _OPENAPI_METADATA_FACTORY() {
|
|
@@ -21,6 +21,6 @@ export declare class ArsSaleProcessAdditionalContactMediumDto {
|
|
|
21
21
|
export declare class ArsSaleProcessCreateDto {
|
|
22
22
|
name: string;
|
|
23
23
|
phone: string;
|
|
24
|
-
campaign
|
|
25
|
-
callType
|
|
24
|
+
campaign?: string;
|
|
25
|
+
callType?: SaleProcessCallType;
|
|
26
26
|
}
|