adamo-types 1.1.29 → 1.1.32
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/common/constants/common.constants.d.ts +1 -1
- package/dist/common/constants/common.constants.js +1 -1
- package/dist/common/constants/error.constants.d.ts +1 -0
- package/dist/common/constants/error.constants.js +2 -1
- package/dist/common/edge-bss/login/res/login.entity.d.ts +1 -1
- package/dist/common/edge-bss/login/res/login.entity.js +7 -1
- package/dist/common/edge-bss/shopping-cart/req/other.entity.d.ts +28 -2
- package/dist/common/edge-bss/shopping-cart/req/other.entity.js +66 -10
- package/dist/common/edge-bss/shopping-cart/res/other.entity.d.ts +3 -0
- package/dist/common/edge-bss/shopping-cart/res/other.entity.js +2 -2
- package/dist/common/edge-zoho/sale-process/req/create.entity.js +2 -2
- package/dist/common/edge-zoho/sale-process/req/patch.entity.js +4 -3
- package/dist/common/exception/exception.entity.d.ts +4 -0
- package/dist/common/exception/exception.entity.js +11 -1
- package/dist/sys03/sale-process/internal/internal.entity.d.ts +1 -1
- package/dist/sys03/sale-process/internal/internal.entity.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -98,7 +98,7 @@ var MicroserviceType;
|
|
|
98
98
|
MicroserviceType["BSS_BRIDGE"] = "BSS BRIDGE";
|
|
99
99
|
MicroserviceType["DB_BRIDGE"] = "DB BRIDGE";
|
|
100
100
|
MicroserviceType["FTP"] = "FTP";
|
|
101
|
-
MicroserviceType["BEARINGPOINT"] = "
|
|
101
|
+
MicroserviceType["BEARINGPOINT"] = "INFONOVA";
|
|
102
102
|
MicroserviceType["OTRS"] = "OTRS";
|
|
103
103
|
MicroserviceType["SMS_CERT"] = "SMS CERT";
|
|
104
104
|
MicroserviceType["ZOHO_ADAPTOR"] = "ZOHO ADAPTOR";
|
|
@@ -94,3 +94,4 @@ export declare const E_NO_SELECTED_CHANNEL = "E_NO_SELECTED_CHANNEL";
|
|
|
94
94
|
export declare const E_NOT_BASE_BUNDLE = "E_NOT_BASE_BUNDLE";
|
|
95
95
|
export declare const E_FETCH_SHOPPING_CART_FEATURES = "E_FETCH_SHOPPING_CART_FEATURES";
|
|
96
96
|
export declare const E_USER_WITHOUT_CHANNELS = "E_USER_WITHOUT_CHANNELS";
|
|
97
|
+
export declare const E_UNAUTHORIZED = "E_UNAUTHORIZED";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
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
|
-
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_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;
|
|
4
|
+
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_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';
|
|
@@ -98,3 +98,4 @@ exports.E_NO_SELECTED_CHANNEL = 'E_NO_SELECTED_CHANNEL';
|
|
|
98
98
|
exports.E_NOT_BASE_BUNDLE = 'E_NOT_BASE_BUNDLE';
|
|
99
99
|
exports.E_FETCH_SHOPPING_CART_FEATURES = 'E_FETCH_SHOPPING_CART_FEATURES';
|
|
100
100
|
exports.E_USER_WITHOUT_CHANNELS = 'E_USER_WITHOUT_CHANNELS';
|
|
101
|
+
exports.E_UNAUTHORIZED = 'E_UNAUTHORIZED';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserMetaData = void 0;
|
|
3
|
+
exports.UserLoginRes = exports.UserMetaData = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class UserMetaData {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
@@ -8,3 +8,9 @@ class UserMetaData {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.UserMetaData = UserMetaData;
|
|
11
|
+
class UserLoginRes {
|
|
12
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
+
return { jwt: { required: true, type: () => String } };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.UserLoginRes = UserLoginRes;
|
|
@@ -15,15 +15,24 @@ export declare class ConfigurationAttributeValuesDto {
|
|
|
15
15
|
channel?: string;
|
|
16
16
|
contractBindingMonths?: number;
|
|
17
17
|
}
|
|
18
|
+
export declare class ShoppingCartUpdateInfoDto {
|
|
19
|
+
channel: string;
|
|
20
|
+
username: string;
|
|
21
|
+
}
|
|
18
22
|
export declare class UpdateShoppingCartExtrasDto {
|
|
19
23
|
extraGroups: UpdateShoppingCartExtraGroupDto[];
|
|
20
24
|
extras: UpdateShoppingCartExtraDto[];
|
|
25
|
+
updateInfo?: ShoppingCartUpdateInfoDto;
|
|
21
26
|
}
|
|
22
27
|
export declare class UpdateShoppingCartBundleExtrasDto {
|
|
23
28
|
name: string;
|
|
24
29
|
extraGroups: UpdateShoppingCartExtraGroupDto[];
|
|
25
30
|
extras: UpdateShoppingCartExtraDto[];
|
|
26
31
|
}
|
|
32
|
+
export declare class UpdateShoppingCartBundlesExtraDto {
|
|
33
|
+
bundles: UpdateShoppingCartBundleExtrasDto[];
|
|
34
|
+
updateInfo?: ShoppingCartUpdateInfoDto;
|
|
35
|
+
}
|
|
27
36
|
export declare class UpdateShoppingCartExtraDto {
|
|
28
37
|
name: string;
|
|
29
38
|
qty: number;
|
|
@@ -33,19 +42,36 @@ export declare class UpdateShoppingCartExtraGroupDto {
|
|
|
33
42
|
extras: UpdateShoppingCartExtraDto[];
|
|
34
43
|
}
|
|
35
44
|
export declare class SaveShoppingCartDto {
|
|
36
|
-
notes
|
|
45
|
+
notes?: string;
|
|
46
|
+
updateInfo?: ShoppingCartUpdateInfoDto;
|
|
47
|
+
}
|
|
48
|
+
export declare class UpdateShoppingCartContractDto {
|
|
49
|
+
updateInfo?: ShoppingCartUpdateInfoDto;
|
|
37
50
|
}
|
|
38
51
|
export declare class UpdateShoppingCartCharacteristicDto {
|
|
39
52
|
name: string;
|
|
40
53
|
qty: number;
|
|
41
54
|
}
|
|
55
|
+
export declare class UpdateShoppingCartPromotionsDto {
|
|
56
|
+
promotions: UpdateShoppingCartCharacteristicDto[];
|
|
57
|
+
updateInfo: ShoppingCartUpdateInfoDto;
|
|
58
|
+
}
|
|
42
59
|
export declare class UpdateShoppingCartConfigurationDto {
|
|
43
60
|
products: UpdateShoppingCartConfigurationProductDto[];
|
|
44
61
|
parameters: ShoppingCartParametersDto;
|
|
62
|
+
updateInfo?: ShoppingCartUpdateInfoDto;
|
|
63
|
+
}
|
|
64
|
+
export declare class UpdateShoppingCartBundlesConfigurationDto {
|
|
65
|
+
bundles: UpadateShoppingCartConfigurationBundleDto[];
|
|
66
|
+
parameters: ShoppingCartParametersDto;
|
|
67
|
+
updateInfo?: ShoppingCartUpdateInfoDto;
|
|
68
|
+
}
|
|
69
|
+
export declare class UpadateShoppingCartConfigurationBundleDto {
|
|
70
|
+
name: string;
|
|
71
|
+
products: UpdateShoppingCartConfigurationProductDto[];
|
|
45
72
|
}
|
|
46
73
|
export declare class UpdateShoppingCartConfigurationProductDto {
|
|
47
74
|
name: string;
|
|
48
|
-
index: number;
|
|
49
75
|
type: ShoppingCartConfigurationProductType;
|
|
50
76
|
characteristics: UpdateShoppingCartCharacteristicDto[];
|
|
51
77
|
serviceSpecification: UpdateShoppingCartServiceSpecificationItemDto[];
|
|
@@ -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.UpdateShoppingCartServiceSpecificationItemDto = exports.UpdateShoppingCartConfigurationProductDto = exports.UpdateShoppingCartConfigurationDto = exports.UpdateShoppingCartCharacteristicDto = exports.SaveShoppingCartDto = exports.UpdateShoppingCartExtraGroupDto = exports.UpdateShoppingCartExtraDto = exports.UpdateShoppingCartBundleExtrasDto = exports.UpdateShoppingCartExtrasDto = exports.ConfigurationAttributeValuesDto = void 0;
|
|
12
|
+
exports.UpdateShoppingCartServiceSpecificationItemDto = exports.UpdateShoppingCartConfigurationProductDto = exports.UpadateShoppingCartConfigurationBundleDto = exports.UpdateShoppingCartBundlesConfigurationDto = exports.UpdateShoppingCartConfigurationDto = exports.UpdateShoppingCartPromotionsDto = exports.UpdateShoppingCartCharacteristicDto = exports.UpdateShoppingCartContractDto = exports.SaveShoppingCartDto = exports.UpdateShoppingCartExtraGroupDto = exports.UpdateShoppingCartExtraDto = exports.UpdateShoppingCartBundlesExtraDto = exports.UpdateShoppingCartBundleExtrasDto = exports.UpdateShoppingCartExtrasDto = exports.ShoppingCartUpdateInfoDto = 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");
|
|
@@ -36,9 +36,15 @@ __decorate([
|
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], ConfigurationAttributeValuesDto.prototype, "salesAreaName", void 0);
|
|
38
38
|
exports.ConfigurationAttributeValuesDto = ConfigurationAttributeValuesDto;
|
|
39
|
+
class ShoppingCartUpdateInfoDto {
|
|
40
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
41
|
+
return { channel: { required: true, type: () => String }, username: { required: true, type: () => String } };
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.ShoppingCartUpdateInfoDto = ShoppingCartUpdateInfoDto;
|
|
39
45
|
class UpdateShoppingCartExtrasDto {
|
|
40
46
|
static _OPENAPI_METADATA_FACTORY() {
|
|
41
|
-
return { extraGroups: { required: true, type: () => [require("./other.entity").UpdateShoppingCartExtraGroupDto] }, extras: { required: true, type: () => [require("./other.entity").UpdateShoppingCartExtraDto] } };
|
|
47
|
+
return { extraGroups: { required: true, type: () => [require("./other.entity").UpdateShoppingCartExtraGroupDto] }, extras: { required: true, type: () => [require("./other.entity").UpdateShoppingCartExtraDto] }, updateInfo: { required: false, type: () => require("./other.entity").ShoppingCartUpdateInfoDto } };
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
50
|
__decorate([
|
|
@@ -83,6 +89,12 @@ __decorate([
|
|
|
83
89
|
__metadata("design:type", Array)
|
|
84
90
|
], UpdateShoppingCartBundleExtrasDto.prototype, "extras", void 0);
|
|
85
91
|
exports.UpdateShoppingCartBundleExtrasDto = UpdateShoppingCartBundleExtrasDto;
|
|
92
|
+
class UpdateShoppingCartBundlesExtraDto {
|
|
93
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
94
|
+
return { bundles: { required: true, type: () => [require("./other.entity").UpdateShoppingCartBundleExtrasDto] }, updateInfo: { required: false, type: () => require("./other.entity").ShoppingCartUpdateInfoDto } };
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.UpdateShoppingCartBundlesExtraDto = UpdateShoppingCartBundlesExtraDto;
|
|
86
98
|
class UpdateShoppingCartExtraDto {
|
|
87
99
|
static _OPENAPI_METADATA_FACTORY() {
|
|
88
100
|
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number, minimum: 0, maximum: 99 } };
|
|
@@ -120,10 +132,16 @@ __decorate([
|
|
|
120
132
|
exports.UpdateShoppingCartExtraGroupDto = UpdateShoppingCartExtraGroupDto;
|
|
121
133
|
class SaveShoppingCartDto {
|
|
122
134
|
static _OPENAPI_METADATA_FACTORY() {
|
|
123
|
-
return { notes: { required:
|
|
135
|
+
return { notes: { required: false, type: () => String }, updateInfo: { required: false, type: () => require("./other.entity").ShoppingCartUpdateInfoDto } };
|
|
124
136
|
}
|
|
125
137
|
}
|
|
126
138
|
exports.SaveShoppingCartDto = SaveShoppingCartDto;
|
|
139
|
+
class UpdateShoppingCartContractDto {
|
|
140
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
141
|
+
return { updateInfo: { required: false, type: () => require("./other.entity").ShoppingCartUpdateInfoDto } };
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.UpdateShoppingCartContractDto = UpdateShoppingCartContractDto;
|
|
127
145
|
class UpdateShoppingCartCharacteristicDto {
|
|
128
146
|
static _OPENAPI_METADATA_FACTORY() {
|
|
129
147
|
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number, minimum: 0, maximum: 99 } };
|
|
@@ -141,9 +159,15 @@ __decorate([
|
|
|
141
159
|
__metadata("design:type", Number)
|
|
142
160
|
], UpdateShoppingCartCharacteristicDto.prototype, "qty", void 0);
|
|
143
161
|
exports.UpdateShoppingCartCharacteristicDto = UpdateShoppingCartCharacteristicDto;
|
|
162
|
+
class UpdateShoppingCartPromotionsDto {
|
|
163
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
164
|
+
return { promotions: { required: true, type: () => [require("./other.entity").UpdateShoppingCartCharacteristicDto] }, updateInfo: { required: true, type: () => require("./other.entity").ShoppingCartUpdateInfoDto } };
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.UpdateShoppingCartPromotionsDto = UpdateShoppingCartPromotionsDto;
|
|
144
168
|
class UpdateShoppingCartConfigurationDto {
|
|
145
169
|
static _OPENAPI_METADATA_FACTORY() {
|
|
146
|
-
return { products: { required: true, type: () => [require("./other.entity").UpdateShoppingCartConfigurationProductDto] }, parameters: { required: true, type: () => require("../../../../bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity").ShoppingCartParametersDto } };
|
|
170
|
+
return { products: { required: true, type: () => [require("./other.entity").UpdateShoppingCartConfigurationProductDto] }, parameters: { required: true, type: () => require("../../../../bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity").ShoppingCartParametersDto }, updateInfo: { required: false, type: () => require("./other.entity").ShoppingCartUpdateInfoDto } };
|
|
147
171
|
}
|
|
148
172
|
}
|
|
149
173
|
__decorate([
|
|
@@ -160,9 +184,46 @@ __decorate([
|
|
|
160
184
|
__metadata("design:type", bearingpoint_1.ShoppingCartParametersDto)
|
|
161
185
|
], UpdateShoppingCartConfigurationDto.prototype, "parameters", void 0);
|
|
162
186
|
exports.UpdateShoppingCartConfigurationDto = UpdateShoppingCartConfigurationDto;
|
|
187
|
+
class UpdateShoppingCartBundlesConfigurationDto {
|
|
188
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
189
|
+
return { bundles: { required: true, type: () => [require("./other.entity").UpadateShoppingCartConfigurationBundleDto] }, parameters: { required: true, type: () => require("../../../../bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity").ShoppingCartParametersDto }, updateInfo: { required: false, type: () => require("./other.entity").ShoppingCartUpdateInfoDto } };
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, class_validator_1.IsArray)(),
|
|
194
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
195
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
196
|
+
(0, class_transformer_1.Type)(() => UpadateShoppingCartConfigurationBundleDto),
|
|
197
|
+
__metadata("design:type", Array)
|
|
198
|
+
], UpdateShoppingCartBundlesConfigurationDto.prototype, "bundles", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, class_validator_1.IsDefined)(),
|
|
201
|
+
(0, class_validator_1.ValidateNested)(),
|
|
202
|
+
(0, class_transformer_1.Type)(() => bearingpoint_1.ShoppingCartParametersDto),
|
|
203
|
+
__metadata("design:type", bearingpoint_1.ShoppingCartParametersDto)
|
|
204
|
+
], UpdateShoppingCartBundlesConfigurationDto.prototype, "parameters", void 0);
|
|
205
|
+
exports.UpdateShoppingCartBundlesConfigurationDto = UpdateShoppingCartBundlesConfigurationDto;
|
|
206
|
+
class UpadateShoppingCartConfigurationBundleDto {
|
|
207
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
208
|
+
return { name: { required: true, type: () => String }, products: { required: true, type: () => [require("./other.entity").UpdateShoppingCartConfigurationProductDto] } };
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, class_validator_1.IsString)(),
|
|
213
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
214
|
+
__metadata("design:type", String)
|
|
215
|
+
], UpadateShoppingCartConfigurationBundleDto.prototype, "name", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, class_validator_1.IsArray)(),
|
|
218
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
219
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
220
|
+
(0, class_transformer_1.Type)(() => UpdateShoppingCartConfigurationProductDto),
|
|
221
|
+
__metadata("design:type", Array)
|
|
222
|
+
], UpadateShoppingCartConfigurationBundleDto.prototype, "products", void 0);
|
|
223
|
+
exports.UpadateShoppingCartConfigurationBundleDto = UpadateShoppingCartConfigurationBundleDto;
|
|
163
224
|
class UpdateShoppingCartConfigurationProductDto {
|
|
164
225
|
static _OPENAPI_METADATA_FACTORY() {
|
|
165
|
-
return { name: { required: true, type: () => String },
|
|
226
|
+
return { name: { required: true, type: () => String }, 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] } };
|
|
166
227
|
}
|
|
167
228
|
}
|
|
168
229
|
__decorate([
|
|
@@ -170,11 +231,6 @@ __decorate([
|
|
|
170
231
|
(0, class_validator_1.IsNotEmpty)(),
|
|
171
232
|
__metadata("design:type", String)
|
|
172
233
|
], UpdateShoppingCartConfigurationProductDto.prototype, "name", void 0);
|
|
173
|
-
__decorate([
|
|
174
|
-
(0, class_validator_1.IsInt)(),
|
|
175
|
-
(0, class_validator_1.Min)(0),
|
|
176
|
-
__metadata("design:type", Number)
|
|
177
|
-
], UpdateShoppingCartConfigurationProductDto.prototype, "index", void 0);
|
|
178
234
|
__decorate([
|
|
179
235
|
(0, class_validator_1.IsEnum)(constants_1.ShoppingCartConfigurationProductType),
|
|
180
236
|
__metadata("design:type", String)
|
|
@@ -19,6 +19,8 @@ export declare class ShoppingCartBundleExtrasResDto {
|
|
|
19
19
|
name: string;
|
|
20
20
|
displayName: string;
|
|
21
21
|
displayDescription: string;
|
|
22
|
+
required: boolean;
|
|
23
|
+
displayOrder: number;
|
|
22
24
|
extraGroups: ShoppingCartExtraGroup[];
|
|
23
25
|
extras: ShoppingCartExtra[];
|
|
24
26
|
}
|
|
@@ -47,6 +49,7 @@ export declare class ShoppingCartConfigurationBundleResDto {
|
|
|
47
49
|
products: ShoppingCartConfigurationProductResDto[];
|
|
48
50
|
}
|
|
49
51
|
export declare class ShoppingCartFeaturesResDto {
|
|
52
|
+
id?: string;
|
|
50
53
|
promotions: ShoppingCartConfigurationFeaturesResDto;
|
|
51
54
|
contracts: ShoppingCartConfigurationCharacteristicResDto[];
|
|
52
55
|
}
|
|
@@ -33,7 +33,7 @@ class ShoppingCartExtrasResDto {
|
|
|
33
33
|
exports.ShoppingCartExtrasResDto = ShoppingCartExtrasResDto;
|
|
34
34
|
class ShoppingCartBundleExtrasResDto {
|
|
35
35
|
static _OPENAPI_METADATA_FACTORY() {
|
|
36
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, extraGroups: { required: true, type: () => [require("../../../../bss/shopping-cart/internal/internal.entity").ShoppingCartExtraGroup] }, extras: { required: true, type: () => [require("../../../../bss/shopping-cart/internal/internal.entity").ShoppingCartExtra] } };
|
|
36
|
+
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, required: { required: true, type: () => Boolean }, displayOrder: { required: true, type: () => Number }, extraGroups: { required: true, type: () => [require("../../../../bss/shopping-cart/internal/internal.entity").ShoppingCartExtraGroup] }, extras: { required: true, type: () => [require("../../../../bss/shopping-cart/internal/internal.entity").ShoppingCartExtra] } };
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
exports.ShoppingCartBundleExtrasResDto = ShoppingCartBundleExtrasResDto;
|
|
@@ -63,7 +63,7 @@ class ShoppingCartConfigurationBundleResDto {
|
|
|
63
63
|
exports.ShoppingCartConfigurationBundleResDto = ShoppingCartConfigurationBundleResDto;
|
|
64
64
|
class ShoppingCartFeaturesResDto {
|
|
65
65
|
static _OPENAPI_METADATA_FACTORY() {
|
|
66
|
-
return { promotions: { required: true, type: () => require("./other.entity").ShoppingCartConfigurationFeaturesResDto }, contracts: { required: true, type: () => [require("./other.entity").ShoppingCartConfigurationCharacteristicResDto] } };
|
|
66
|
+
return { id: { required: false, type: () => String }, promotions: { required: true, type: () => require("./other.entity").ShoppingCartConfigurationFeaturesResDto }, contracts: { required: true, type: () => [require("./other.entity").ShoppingCartConfigurationCharacteristicResDto] } };
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
exports.ShoppingCartFeaturesResDto = ShoppingCartFeaturesResDto;
|
|
@@ -17,7 +17,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
17
17
|
const class_validator_1 = require("class-validator");
|
|
18
18
|
class ArsSaleProcessDocumentDto {
|
|
19
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
-
return { fileName: { required: true, type: () => String }, type: { required: true, enum: require("../../../../bss/constants/bp.constants").DocumentType }, comment: { required: false, type: () => String, maxLength:
|
|
20
|
+
return { fileName: { required: true, type: () => String }, type: { required: true, enum: require("../../../../bss/constants/bp.constants").DocumentType }, comment: { required: false, type: () => String, maxLength: 1000 } };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
__decorate([
|
|
@@ -31,7 +31,7 @@ __decorate([
|
|
|
31
31
|
], ArsSaleProcessDocumentDto.prototype, "type", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
|
-
(0, class_validator_1.MaxLength)(
|
|
34
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
35
35
|
(0, class_validator_1.IsOptional)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], ArsSaleProcessDocumentDto.prototype, "comment", void 0);
|
|
@@ -154,7 +154,8 @@ __decorate([
|
|
|
154
154
|
__metadata("design:type", String)
|
|
155
155
|
], PartialSaleProcessContractCustomerDto.prototype, "contactPhone", void 0);
|
|
156
156
|
__decorate([
|
|
157
|
-
(0, class_validator_1.
|
|
157
|
+
(0, class_validator_1.IsDefined)(),
|
|
158
|
+
(0, class_validator_1.ValidateNested)(),
|
|
158
159
|
(0, class_transformer_1.Type)(() => sale_process_1.CustomerIdentificationDto),
|
|
159
160
|
__metadata("design:type", sale_process_1.CustomerIdentificationDto)
|
|
160
161
|
], PartialSaleProcessContractCustomerDto.prototype, "identification", void 0);
|
|
@@ -188,7 +189,7 @@ __decorate([
|
|
|
188
189
|
exports.PartialSaleProcessBusinessInfoDto = PartialSaleProcessBusinessInfoDto;
|
|
189
190
|
class PatchSaleProcessContractDataSavedDto {
|
|
190
191
|
static _OPENAPI_METADATA_FACTORY() {
|
|
191
|
-
return { status: { required: true, enum: require("../../../../zoho/constants/zoho.constants").SaleProcessStatusType }, mobilePhone: { required: true, type: () => String }, iban: { required: true, type: () => String }, notes: { required: false, type: () => String, maxLength:
|
|
192
|
+
return { status: { required: true, enum: require("../../../../zoho/constants/zoho.constants").SaleProcessStatusType }, mobilePhone: { required: true, type: () => String }, iban: { required: true, type: () => String }, notes: { required: false, type: () => String, maxLength: 1000 }, billingInfo: { required: true, type: () => require("./patch.entity").PartialSaleProcessBillingInfoDto }, customer: { required: true, type: () => require("./patch.entity").PartialSaleProcessContractCustomerDto }, businessInfo: { required: false, type: () => require("./patch.entity").PartialSaleProcessBusinessInfoDto } };
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
__decorate([
|
|
@@ -208,7 +209,7 @@ __decorate([
|
|
|
208
209
|
__decorate([
|
|
209
210
|
(0, class_validator_1.IsString)(),
|
|
210
211
|
(0, class_validator_1.IsNotEmpty)(),
|
|
211
|
-
(0, class_validator_1.MaxLength)(
|
|
212
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
212
213
|
(0, class_validator_1.IsOptional)(),
|
|
213
214
|
__metadata("design:type", String)
|
|
214
215
|
], PatchSaleProcessContractDataSavedDto.prototype, "notes", void 0);
|
|
@@ -24,6 +24,10 @@ interface ErrorParams {
|
|
|
24
24
|
code?: string;
|
|
25
25
|
args?: any;
|
|
26
26
|
}
|
|
27
|
+
export declare class ObjectError extends Error {
|
|
28
|
+
object: any;
|
|
29
|
+
constructor(object: any, ...args: any[]);
|
|
30
|
+
}
|
|
27
31
|
export declare class CustomError extends Error {
|
|
28
32
|
code: string;
|
|
29
33
|
source: MicroserviceType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BssBridgeError = exports.BearingPointError = exports.AmsError = exports.DbBridgeError = exports.OtrsError = exports.SmsCertError = exports.ZohoError = exports.ArsEdgeError = exports.FtpError = exports.NieValidationError = exports.CifValidationError = exports.DniValidationError = exports.CustomError = exports.HttpExceptionPayloadDto = exports.ConstraintsDto = exports.MessagePayloadDto = exports.BulkExceptionPayloadDto = void 0;
|
|
3
|
+
exports.BssBridgeError = exports.BearingPointError = exports.AmsError = exports.DbBridgeError = exports.OtrsError = exports.SmsCertError = exports.ZohoError = exports.ArsEdgeError = exports.FtpError = exports.NieValidationError = exports.CifValidationError = exports.DniValidationError = exports.CustomError = exports.ObjectError = exports.HttpExceptionPayloadDto = exports.ConstraintsDto = exports.MessagePayloadDto = exports.BulkExceptionPayloadDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
const error_constants_1 = require("../constants/error.constants");
|
|
6
6
|
const common_constants_1 = require("../constants/common.constants");
|
|
@@ -36,6 +36,16 @@ function mapErrorCode(code) {
|
|
|
36
36
|
return error_constants_1.E_CONNECTION_REFUSED;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
+
class ObjectError extends Error {
|
|
40
|
+
constructor(object, ...args) {
|
|
41
|
+
super(...args);
|
|
42
|
+
this.object = object;
|
|
43
|
+
}
|
|
44
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
45
|
+
return { object: { required: true, type: () => Object } };
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.ObjectError = ObjectError;
|
|
39
49
|
class CustomError extends Error {
|
|
40
50
|
constructor(source, code, ...args) {
|
|
41
51
|
super(...args);
|
|
@@ -26,8 +26,8 @@ export declare class DashboardFilterDto {
|
|
|
26
26
|
}
|
|
27
27
|
export declare class SmsMessagePayloadDto {
|
|
28
28
|
bundleName: string;
|
|
29
|
-
permanency: number;
|
|
30
29
|
products: string[];
|
|
30
|
+
permanency: number;
|
|
31
31
|
promotions: string[];
|
|
32
32
|
basePrice: number;
|
|
33
33
|
prices: ProductSummaryPriceResDto[];
|
|
@@ -10,7 +10,7 @@ class DashboardFilterDto {
|
|
|
10
10
|
exports.DashboardFilterDto = DashboardFilterDto;
|
|
11
11
|
class SmsMessagePayloadDto {
|
|
12
12
|
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
-
return { bundleName: { required: true, type: () => String },
|
|
13
|
+
return { bundleName: { required: true, type: () => String }, products: { required: true, type: () => [String] }, permanency: { required: true, type: () => Number }, promotions: { required: true, type: () => [String] }, basePrice: { required: true, type: () => Number }, prices: { required: true, type: () => [require("../../../common/edge-bss/product/res/other.entity").ProductSummaryPriceResDto] }, customerFullName: { required: true, type: () => String }, customerIdentificationType: { required: true, type: () => String }, customerIdentificationValue: { required: true, type: () => String }, customerAddress: { required: true, type: () => String }, excludeIva: { required: true, type: () => Boolean }, cif: { required: true, type: () => String }, company: { required: true, type: () => String }, iban: { required: true, type: () => String }, installationCost: { required: true, type: () => Number } };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
exports.SmsMessagePayloadDto = SmsMessagePayloadDto;
|