adamo-types 1.1.76 → 1.1.79
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/constants/admin.constants.d.ts +0 -6
- package/dist/admin/constants/admin.constants.js +0 -6
- package/dist/bss/bearingpoint/product.entity.d.ts +2 -0
- package/dist/bss/bearingpoint/product.entity.js +1 -1
- package/dist/bss/constants/bp.constants.d.ts +2 -1
- package/dist/bss/constants/bp.constants.js +1 -0
- package/dist/bss/product/internal/internal.entity.d.ts +2 -0
- package/dist/bss/shopping-cart/internal/internal.entity.d.ts +2 -0
- package/dist/bss/shopping-cart/internal/internal.entity.js +2 -2
- package/dist/common/constants/common.constants.d.ts +10 -3
- package/dist/common/constants/common.constants.js +11 -3
- package/dist/common/constants/error.constants.d.ts +1 -0
- package/dist/common/constants/error.constants.js +2 -1
- package/dist/common/edge-bss/customer/req/create.entity.d.ts +4 -1
- package/dist/common/edge-bss/customer/req/create.entity.js +1 -1
- package/dist/common/edge-bss/product/res/other.entity.d.ts +2 -0
- package/dist/common/edge-bss/product/res/other.entity.js +1 -1
- package/dist/common/edge-bss/shopping-cart/req/other.entity.d.ts +1 -0
- package/dist/common/edge-bss/shopping-cart/req/other.entity.js +1 -1
- package/dist/common/edge-sendgrid/index.d.ts +1 -0
- package/dist/common/edge-sendgrid/index.js +17 -0
- package/dist/common/edge-sendgrid/mail/index.d.ts +1 -0
- package/dist/common/edge-sendgrid/mail/index.js +17 -0
- package/dist/common/edge-sendgrid/mail/req/mail.entity.d.ts +17 -0
- package/dist/common/edge-sendgrid/mail/req/mail.entity.js +28 -0
- package/dist/common/exception/exception.entity.d.ts +0 -35
- package/dist/common/exception/exception.entity.js +1 -132
- package/dist/common/exception/index.d.ts +1 -0
- package/dist/common/exception/index.js +1 -0
- package/dist/common/exception/service.exception.entity.d.ts +39 -0
- package/dist/common/exception/service.exception.entity.js +157 -0
- package/dist/database/configuration.entity.d.ts +5 -0
- package/dist/database/configuration.entity.js +25 -2
- package/dist/database/index.d.ts +1 -0
- package/dist/database/index.js +1 -0
- package/dist/database/template.entity.d.ts +4 -0
- package/dist/database/template.entity.js +31 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +19 -0
- package/dist/sys03/sale-process/internal/internal.entity.d.ts +35 -1
- package/dist/sys03/sale-process/internal/internal.entity.js +32 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4,14 +4,8 @@ export declare enum Language {
|
|
|
4
4
|
CATALAN = "ca"
|
|
5
5
|
}
|
|
6
6
|
export declare enum Role {
|
|
7
|
-
AGENT = "Agente",
|
|
8
7
|
ADMIN = "admin",
|
|
9
8
|
MANAGER = "manager",
|
|
10
|
-
SYS02_ADMIN = "sys02_admin",
|
|
11
|
-
SYS02_COVERAGE = "sys02_coverage",
|
|
12
|
-
SYS02_MANAGER = "sys02_manager",
|
|
13
|
-
SYS02_MANAGER_ADMIN = "sys02_manageradmin",
|
|
14
|
-
SYS02_OPERATOR = "sys02_operator",
|
|
15
9
|
MANAGER_ADMIN = "manager_admin",
|
|
16
10
|
OPERATOR = "operator",
|
|
17
11
|
COVERAGE = "coverage"
|
|
@@ -9,14 +9,8 @@ var Language;
|
|
|
9
9
|
})(Language = exports.Language || (exports.Language = {}));
|
|
10
10
|
var Role;
|
|
11
11
|
(function (Role) {
|
|
12
|
-
Role["AGENT"] = "Agente";
|
|
13
12
|
Role["ADMIN"] = "admin";
|
|
14
13
|
Role["MANAGER"] = "manager";
|
|
15
|
-
Role["SYS02_ADMIN"] = "sys02_admin";
|
|
16
|
-
Role["SYS02_COVERAGE"] = "sys02_coverage";
|
|
17
|
-
Role["SYS02_MANAGER"] = "sys02_manager";
|
|
18
|
-
Role["SYS02_MANAGER_ADMIN"] = "sys02_manageradmin";
|
|
19
|
-
Role["SYS02_OPERATOR"] = "sys02_operator";
|
|
20
14
|
Role["MANAGER_ADMIN"] = "manager_admin";
|
|
21
15
|
Role["OPERATOR"] = "operator";
|
|
22
16
|
Role["COVERAGE"] = "coverage";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CacheTariffModelDto } from '@bss/tariff-model';
|
|
1
2
|
import { CharacteristicDto } from './characteristic.entity';
|
|
2
3
|
import { ConfigurationAttributeDto } from './configuration-attribute.entity';
|
|
3
4
|
import { DependencyDto } from './dependency.entity';
|
|
@@ -11,6 +12,7 @@ export declare class ProductDto {
|
|
|
11
12
|
billText: string;
|
|
12
13
|
description: string;
|
|
13
14
|
tariffModel: string;
|
|
15
|
+
tariffModelData: CacheTariffModelDto;
|
|
14
16
|
validFor?: ValidForDto;
|
|
15
17
|
dependencies: DependencyDto[];
|
|
16
18
|
configurationAttributes: ConfigurationAttributeDto[];
|
|
@@ -14,7 +14,7 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
class ProductDto {
|
|
16
16
|
static _OPENAPI_METADATA_FACTORY() {
|
|
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 } };
|
|
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 }, tariffModelData: { required: true, type: () => require("../tariff-model/internal/internal.entity").CacheTariffModelDto }, 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 } };
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
exports.ProductDto = ProductDto;
|
|
@@ -92,7 +92,8 @@ export declare enum ServiceSpecificationDictionary {
|
|
|
92
92
|
VOIP_CLOUDPBX_SID = "STRING",
|
|
93
93
|
DEVICE_STATIC_IP = "STRING",
|
|
94
94
|
ADDITIONAL_PHONE_NUMBERS = "STRING",
|
|
95
|
-
VOIP_SIPTRUNK_SID = "STRING"
|
|
95
|
+
VOIP_SIPTRUNK_SID = "STRING",
|
|
96
|
+
'Operator we Port-In from' = "SELECT"
|
|
96
97
|
}
|
|
97
98
|
export declare enum ArsPronvinceToBp {
|
|
98
99
|
ALAVA = "ALAVA",
|
|
@@ -109,6 +109,7 @@ var ServiceSpecificationDictionary;
|
|
|
109
109
|
ServiceSpecificationDictionary["DEVICE_STATIC_IP"] = "STRING";
|
|
110
110
|
ServiceSpecificationDictionary["ADDITIONAL_PHONE_NUMBERS"] = "STRING";
|
|
111
111
|
ServiceSpecificationDictionary["VOIP_SIPTRUNK_SID"] = "STRING";
|
|
112
|
+
ServiceSpecificationDictionary["Operator we Port-In from"] = "SELECT";
|
|
112
113
|
})(ServiceSpecificationDictionary = exports.ServiceSpecificationDictionary || (exports.ServiceSpecificationDictionary = {}));
|
|
113
114
|
var ArsPronvinceToBp;
|
|
114
115
|
(function (ArsPronvinceToBp) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConfigurationAttributeDto, OnceOnlyChargeDto, ProductDto, RecurringChargeDto, TerminationChargeDto } from '@bss/bearingpoint';
|
|
2
2
|
import { BssChargeType } from '@bss/constants';
|
|
3
3
|
import { ShoppingCartConfigurationProductType } from '@common/constants';
|
|
4
|
+
import { ShoppingCartInfoServiceCharacteristicDto } from '@common/edge-bss';
|
|
4
5
|
import { DependencyResDto } from '@sys03/storage';
|
|
5
6
|
export declare class BpProductOfferingsResDto {
|
|
6
7
|
list: ProductDto[];
|
|
@@ -21,6 +22,7 @@ export interface DefaultSummaryProduct {
|
|
|
21
22
|
displayDescription: string;
|
|
22
23
|
type: ShoppingCartConfigurationProductType;
|
|
23
24
|
characteristics: DefaultSummaryCharacteristic[];
|
|
25
|
+
servicesCharacteristics: ShoppingCartInfoServiceCharacteristicDto[];
|
|
24
26
|
total: number;
|
|
25
27
|
}
|
|
26
28
|
export interface DefaultSummaryCharacteristic {
|
|
@@ -17,11 +17,13 @@ export declare class BssShoppingCartExtra {
|
|
|
17
17
|
max: number;
|
|
18
18
|
enabled: boolean;
|
|
19
19
|
configurationAttributes?: ShoppingCartConfigurationAttributeDto[];
|
|
20
|
+
total?: number;
|
|
20
21
|
}
|
|
21
22
|
export declare class ShoppingCartExtra {
|
|
22
23
|
name: string;
|
|
23
24
|
displayName: string;
|
|
24
25
|
displayDescription?: string;
|
|
26
|
+
total?: number;
|
|
25
27
|
type?: ShoppingCartConfigurationProductType;
|
|
26
28
|
data?: string;
|
|
27
29
|
min: number;
|
|
@@ -17,13 +17,13 @@ class BpShoppingCartCreatedResDto extends bearingpoint_1.ShoppingCartDto {
|
|
|
17
17
|
exports.BpShoppingCartCreatedResDto = BpShoppingCartCreatedResDto;
|
|
18
18
|
class BssShoppingCartExtra {
|
|
19
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: false, type: () => String }, type: { required: false, enum: require("../../../common/constants/common.constants").ShoppingCartConfigurationProductType }, min: { required: true, type: () => Number }, qty: { required: true, type: () => Number }, max: { required: true, type: () => Number }, enabled: { required: true, type: () => Boolean }, configurationAttributes: { required: false, type: () => [require("../../../common/edge-bss/shopping-cart/res/other.entity").ShoppingCartConfigurationAttributeDto] } };
|
|
20
|
+
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: false, type: () => String }, type: { required: false, enum: require("../../../common/constants/common.constants").ShoppingCartConfigurationProductType }, min: { required: true, type: () => Number }, qty: { required: true, type: () => Number }, max: { required: true, type: () => Number }, enabled: { required: true, type: () => Boolean }, configurationAttributes: { required: false, type: () => [require("../../../common/edge-bss/shopping-cart/res/other.entity").ShoppingCartConfigurationAttributeDto] }, total: { required: false, type: () => Number } };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
exports.BssShoppingCartExtra = BssShoppingCartExtra;
|
|
24
24
|
class ShoppingCartExtra {
|
|
25
25
|
static _OPENAPI_METADATA_FACTORY() {
|
|
26
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: false, type: () => String }, type: { required: false, enum: require("../../../common/constants/common.constants").ShoppingCartConfigurationProductType }, data: { required: false, type: () => String }, min: { required: true, type: () => Number }, qty: { required: true, type: () => Number }, max: { required: true, type: () => Number }, enabled: { required: true, type: () => Boolean } };
|
|
26
|
+
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: false, type: () => String }, total: { required: false, type: () => Number }, type: { required: false, enum: require("../../../common/constants/common.constants").ShoppingCartConfigurationProductType }, data: { required: false, type: () => String }, min: { required: true, type: () => Number }, qty: { required: true, type: () => Number }, max: { required: true, type: () => Number }, enabled: { required: true, type: () => Boolean } };
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
exports.ShoppingCartExtra = ShoppingCartExtra;
|
|
@@ -73,17 +73,24 @@ export declare enum StorageConfiguration {
|
|
|
73
73
|
SALES_AREAS = "SALES_AREAS",
|
|
74
74
|
SEND_BSS_SERVICIABLE_STATUSES = "SEND_BSS_SERVICIABLE_STATUSES",
|
|
75
75
|
SMS_CONTRACT_CHANNELS = "SMS_CONTRACT_CHANNELS",
|
|
76
|
+
COVERAGE_HIDDEN_CHANNELS = "COVERAGE_HIDDEN_CHANNELS",
|
|
76
77
|
SUPER_MANAGERS = "SUPER_MANAGERS"
|
|
77
78
|
}
|
|
78
79
|
export declare enum MicroserviceType {
|
|
79
80
|
AMS = "AMS",
|
|
80
81
|
ARS_EDGE = "ARS EDGE",
|
|
82
|
+
BEARINGPOINT = "INFONOVA",
|
|
81
83
|
BSS_BRIDGE = "BSS BRIDGE",
|
|
82
84
|
DB_BRIDGE = "DB BRIDGE",
|
|
83
85
|
FTP = "FTP",
|
|
84
|
-
|
|
86
|
+
MSG_MEDIA = "MESSAGE MEDIA",
|
|
85
87
|
OTRS = "OTRS",
|
|
88
|
+
SENDGRID = "SENDGRID",
|
|
86
89
|
SMS_CERT = "SMS CERT",
|
|
87
|
-
ZOHO_ADAPTOR = "ZOHO ADAPTOR"
|
|
88
|
-
|
|
90
|
+
ZOHO_ADAPTOR = "ZOHO ADAPTOR"
|
|
91
|
+
}
|
|
92
|
+
export declare enum Templates {
|
|
93
|
+
B2C_SMS_TEMPLATE = "B2C_SMS_TEMPLATE",
|
|
94
|
+
B2B_SMS_TEMPLATE = "B2B_SMS_TEMPLATE",
|
|
95
|
+
WEB_ORDER_CLIENT_TEMPLATE = "WEB_ORDER_CLIENT_TEMPLATE"
|
|
89
96
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MicroserviceType = exports.StorageConfiguration = exports.Province = exports.ShoppingCartConfigurationProductType = exports.ClientType = void 0;
|
|
3
|
+
exports.Templates = exports.MicroserviceType = exports.StorageConfiguration = exports.Province = exports.ShoppingCartConfigurationProductType = exports.ClientType = void 0;
|
|
4
4
|
var ClientType;
|
|
5
5
|
(function (ClientType) {
|
|
6
6
|
ClientType["RESIDENTIAL"] = "Residential";
|
|
@@ -80,18 +80,26 @@ var StorageConfiguration;
|
|
|
80
80
|
StorageConfiguration["SALES_AREAS"] = "SALES_AREAS";
|
|
81
81
|
StorageConfiguration["SEND_BSS_SERVICIABLE_STATUSES"] = "SEND_BSS_SERVICIABLE_STATUSES";
|
|
82
82
|
StorageConfiguration["SMS_CONTRACT_CHANNELS"] = "SMS_CONTRACT_CHANNELS";
|
|
83
|
+
StorageConfiguration["COVERAGE_HIDDEN_CHANNELS"] = "COVERAGE_HIDDEN_CHANNELS";
|
|
83
84
|
StorageConfiguration["SUPER_MANAGERS"] = "SUPER_MANAGERS";
|
|
84
85
|
})(StorageConfiguration = exports.StorageConfiguration || (exports.StorageConfiguration = {}));
|
|
85
86
|
var MicroserviceType;
|
|
86
87
|
(function (MicroserviceType) {
|
|
87
88
|
MicroserviceType["AMS"] = "AMS";
|
|
88
89
|
MicroserviceType["ARS_EDGE"] = "ARS EDGE";
|
|
90
|
+
MicroserviceType["BEARINGPOINT"] = "INFONOVA";
|
|
89
91
|
MicroserviceType["BSS_BRIDGE"] = "BSS BRIDGE";
|
|
90
92
|
MicroserviceType["DB_BRIDGE"] = "DB BRIDGE";
|
|
91
93
|
MicroserviceType["FTP"] = "FTP";
|
|
92
|
-
MicroserviceType["
|
|
94
|
+
MicroserviceType["MSG_MEDIA"] = "MESSAGE MEDIA";
|
|
93
95
|
MicroserviceType["OTRS"] = "OTRS";
|
|
96
|
+
MicroserviceType["SENDGRID"] = "SENDGRID";
|
|
94
97
|
MicroserviceType["SMS_CERT"] = "SMS CERT";
|
|
95
98
|
MicroserviceType["ZOHO_ADAPTOR"] = "ZOHO ADAPTOR";
|
|
96
|
-
MicroserviceType["MSG_MEDIA"] = "MESSAGE MEDIA";
|
|
97
99
|
})(MicroserviceType = exports.MicroserviceType || (exports.MicroserviceType = {}));
|
|
100
|
+
var Templates;
|
|
101
|
+
(function (Templates) {
|
|
102
|
+
Templates["B2C_SMS_TEMPLATE"] = "B2C_SMS_TEMPLATE";
|
|
103
|
+
Templates["B2B_SMS_TEMPLATE"] = "B2B_SMS_TEMPLATE";
|
|
104
|
+
Templates["WEB_ORDER_CLIENT_TEMPLATE"] = "WEB_ORDER_CLIENT_TEMPLATE";
|
|
105
|
+
})(Templates = exports.Templates || (exports.Templates = {}));
|
|
@@ -103,3 +103,4 @@ export declare const E_LOGIN_MAX_ATTEMPTS_REACHED = "E_LOGIN_MAX_ATTEMPTS_REACHE
|
|
|
103
103
|
export declare const E_LEAD_NOT_FOUND = "E_LEAD_NOT_FOUND";
|
|
104
104
|
export declare const E_LEAD_FILE_NOT_FOUND = "E_LEAD_FILE_NOT_FOUND";
|
|
105
105
|
export declare const E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = "E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES";
|
|
106
|
+
export declare const E_UNHANDLED_KEY = "E_UNHANDLED_KEY";
|
|
@@ -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_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_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';
|
|
@@ -108,3 +108,4 @@ exports.E_LOGIN_MAX_ATTEMPTS_REACHED = 'E_LOGIN_MAX_ATTEMPTS_REACHED';
|
|
|
108
108
|
exports.E_LEAD_NOT_FOUND = 'E_LEAD_NOT_FOUND';
|
|
109
109
|
exports.E_LEAD_FILE_NOT_FOUND = 'E_LEAD_FILE_NOT_FOUND';
|
|
110
110
|
exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = 'E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES';
|
|
111
|
+
exports.E_UNHANDLED_KEY = 'E_UNHANDLED_KEY';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { BpRelatedPartyDto } from '@bss/bearingpoint/customer/related-party.entity';
|
|
2
3
|
import { BusinessSegmentType, CustomerAccountHistoryType, CustomerAccountOrganizationEntityType, DocumentType, IdentificationType, PersonTitle, PreferredLanguage, Timezone } from '@bss/constants';
|
|
4
|
+
import { PassThrough } from 'stream';
|
|
3
5
|
export declare class ArsCustomerAccountDto {
|
|
4
6
|
preferredLanguage?: PreferredLanguage;
|
|
5
7
|
timezone?: Timezone;
|
|
@@ -52,7 +54,8 @@ export declare class ArsCustomerAccountHistoryDto {
|
|
|
52
54
|
content: string;
|
|
53
55
|
}
|
|
54
56
|
export declare class ArsCustomerAccountDocumentDto {
|
|
55
|
-
url
|
|
57
|
+
url?: string;
|
|
58
|
+
stream?: PassThrough;
|
|
56
59
|
fileName: string;
|
|
57
60
|
contentType: string;
|
|
58
61
|
type: DocumentType;
|
|
@@ -53,7 +53,7 @@ class ArsCustomerAccountHistoryDto {
|
|
|
53
53
|
exports.ArsCustomerAccountHistoryDto = ArsCustomerAccountHistoryDto;
|
|
54
54
|
class ArsCustomerAccountDocumentDto {
|
|
55
55
|
static _OPENAPI_METADATA_FACTORY() {
|
|
56
|
-
return { url: { required:
|
|
56
|
+
return { url: { required: false, type: () => String }, stream: { required: false, type: () => require("stream").PassThrough }, fileName: { required: true, type: () => String }, contentType: { required: true, type: () => String }, type: { required: true, enum: require("../../../../bss/constants/bp.constants").DocumentType }, comment: { required: false, type: () => String } };
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
exports.ArsCustomerAccountDocumentDto = ArsCustomerAccountDocumentDto;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ShoppingCartDto } from '@bss/bearingpoint';
|
|
2
2
|
import { ShoppingCartConfigurationProductType } from '@common/constants';
|
|
3
|
+
import { ShoppingCartInfoServiceCharacteristicDto } from '@common/edge-bss/shopping-cart';
|
|
3
4
|
export declare class DefaultSummaryResDto {
|
|
4
5
|
shoppingCart: ShoppingCartDto;
|
|
5
6
|
summary: ProductSummaryResDto;
|
|
@@ -30,6 +31,7 @@ export declare class ProductSummaryProductResDto {
|
|
|
30
31
|
displayDescription: string;
|
|
31
32
|
type: ShoppingCartConfigurationProductType;
|
|
32
33
|
characteristics: ProductSummaryCharacteristicResDto[];
|
|
34
|
+
servicesCharacteristics: ShoppingCartInfoServiceCharacteristicDto[];
|
|
33
35
|
total: number;
|
|
34
36
|
}
|
|
35
37
|
export declare class ProductSummaryCharacteristicResDto {
|
|
@@ -28,7 +28,7 @@ class BundlesSummaryResDto {
|
|
|
28
28
|
exports.BundlesSummaryResDto = BundlesSummaryResDto;
|
|
29
29
|
class ProductSummaryProductResDto {
|
|
30
30
|
static _OPENAPI_METADATA_FACTORY() {
|
|
31
|
-
return { name: { required: true, type: () => String }, index: { required: true, type: () => Number }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, type: { required: true, enum: require("../../../constants/common.constants").ShoppingCartConfigurationProductType }, characteristics: { required: true, type: () => [require("./other.entity").ProductSummaryCharacteristicResDto] }, total: { required: true, type: () => Number } };
|
|
31
|
+
return { name: { required: true, type: () => String }, index: { required: true, type: () => Number }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, type: { required: true, enum: require("../../../constants/common.constants").ShoppingCartConfigurationProductType }, characteristics: { required: true, type: () => [require("./other.entity").ProductSummaryCharacteristicResDto] }, servicesCharacteristics: { required: true, type: () => [require("../../shopping-cart/res/other.entity").ShoppingCartInfoServiceCharacteristicDto] }, total: { required: true, type: () => Number } };
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
exports.ProductSummaryProductResDto = ProductSummaryProductResDto;
|
|
@@ -277,7 +277,7 @@ class AvailableProductsQueryDto {
|
|
|
277
277
|
exports.AvailableProductsQueryDto = AvailableProductsQueryDto;
|
|
278
278
|
class ExtrasQueryDto {
|
|
279
279
|
static _OPENAPI_METADATA_FACTORY() {
|
|
280
|
-
return { configurationAttributes: { required: true, type: () => Boolean } };
|
|
280
|
+
return { configurationAttributes: { required: true, type: () => Boolean }, extraTotal: { required: true, type: () => Boolean } };
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
exports.ExtrasQueryDto = ExtrasQueryDto;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mail';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./mail"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './req/mail.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./req/mail.entity"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class SendGridUserDto {
|
|
2
|
+
email: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class SendGridPersonalizationDto {
|
|
6
|
+
to: SendGridUserDto[];
|
|
7
|
+
}
|
|
8
|
+
export declare class SendGridContentDto {
|
|
9
|
+
type: 'text/txt' | 'text/html';
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class SendGridMailDto {
|
|
13
|
+
subject: string;
|
|
14
|
+
from: SendGridUserDto;
|
|
15
|
+
personalizations: SendGridPersonalizationDto[];
|
|
16
|
+
content: SendGridContentDto[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendGridMailDto = exports.SendGridContentDto = exports.SendGridPersonalizationDto = exports.SendGridUserDto = void 0;
|
|
4
|
+
const openapi = require("@nestjs/swagger");
|
|
5
|
+
class SendGridUserDto {
|
|
6
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
+
return { email: { required: true, type: () => String }, name: { required: true, type: () => String } };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SendGridUserDto = SendGridUserDto;
|
|
11
|
+
class SendGridPersonalizationDto {
|
|
12
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
+
return { to: { required: true, type: () => [require("./mail.entity").SendGridUserDto] } };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.SendGridPersonalizationDto = SendGridPersonalizationDto;
|
|
17
|
+
class SendGridContentDto {
|
|
18
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
+
return { type: { required: true, type: () => Object }, value: { required: true, type: () => String } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.SendGridContentDto = SendGridContentDto;
|
|
23
|
+
class SendGridMailDto {
|
|
24
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
+
return { subject: { required: true, type: () => String }, from: { required: true, type: () => require("./mail.entity").SendGridUserDto }, personalizations: { required: true, type: () => [require("./mail.entity").SendGridPersonalizationDto] }, content: { required: true, type: () => [require("./mail.entity").SendGridContentDto] } };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.SendGridMailDto = SendGridMailDto;
|
|
@@ -21,10 +21,6 @@ export declare class HttpExceptionPayloadDto {
|
|
|
21
21
|
message: string;
|
|
22
22
|
messages?: MessagePayloadDto[];
|
|
23
23
|
}
|
|
24
|
-
interface ErrorParams {
|
|
25
|
-
code?: string;
|
|
26
|
-
args?: any;
|
|
27
|
-
}
|
|
28
24
|
export declare class ObjectError extends Error {
|
|
29
25
|
object: any;
|
|
30
26
|
constructor(object: any, ...args: any[]);
|
|
@@ -44,34 +40,3 @@ export declare class CifValidationError extends CustomError {
|
|
|
44
40
|
export declare class NieValidationError extends CustomError {
|
|
45
41
|
constructor(source: MicroserviceType, ...args: any[]);
|
|
46
42
|
}
|
|
47
|
-
export declare class FtpError extends CustomError {
|
|
48
|
-
constructor({ code, args }: ErrorParams);
|
|
49
|
-
}
|
|
50
|
-
export declare class ArsEdgeError extends CustomError {
|
|
51
|
-
constructor({ code, args }: ErrorParams);
|
|
52
|
-
}
|
|
53
|
-
export declare class ZohoError extends CustomError {
|
|
54
|
-
constructor({ code, args }: ErrorParams);
|
|
55
|
-
}
|
|
56
|
-
export declare class SmsCertError extends CustomError {
|
|
57
|
-
constructor({ code, args }: ErrorParams);
|
|
58
|
-
}
|
|
59
|
-
export declare class MsgMediaError extends CustomError {
|
|
60
|
-
constructor({ code, args }: ErrorParams);
|
|
61
|
-
}
|
|
62
|
-
export declare class OtrsError extends CustomError {
|
|
63
|
-
constructor({ code, args }: ErrorParams);
|
|
64
|
-
}
|
|
65
|
-
export declare class DbBridgeError extends CustomError {
|
|
66
|
-
constructor({ code, args }: ErrorParams);
|
|
67
|
-
}
|
|
68
|
-
export declare class AmsError extends CustomError {
|
|
69
|
-
constructor({ args, code }: ErrorParams);
|
|
70
|
-
}
|
|
71
|
-
export declare class BearingPointError extends CustomError {
|
|
72
|
-
constructor({ code, args }: ErrorParams);
|
|
73
|
-
}
|
|
74
|
-
export declare class BssBridgeError extends CustomError {
|
|
75
|
-
constructor({ code, args }: ErrorParams);
|
|
76
|
-
}
|
|
77
|
-
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
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
|
-
const common_constants_1 = require("../constants/common.constants");
|
|
7
6
|
class BulkExceptionPayloadDto {
|
|
8
7
|
static _OPENAPI_METADATA_FACTORY() {
|
|
9
8
|
return { index: { required: true, type: () => Number }, message: { required: true, type: () => require("./exception.entity").HttpExceptionPayloadDto } };
|
|
@@ -28,14 +27,6 @@ class HttpExceptionPayloadDto {
|
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
exports.HttpExceptionPayloadDto = HttpExceptionPayloadDto;
|
|
31
|
-
function mapErrorCode(code) {
|
|
32
|
-
if (code && code.toString().startsWith('E_'))
|
|
33
|
-
return code;
|
|
34
|
-
switch (code) {
|
|
35
|
-
case 'ECONNREFUSED':
|
|
36
|
-
return error_constants_1.E_CONNECTION_REFUSED;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
30
|
class ObjectError extends Error {
|
|
40
31
|
constructor(object, ...args) {
|
|
41
32
|
super(...args);
|
|
@@ -84,125 +75,3 @@ class NieValidationError extends CustomError {
|
|
|
84
75
|
}
|
|
85
76
|
}
|
|
86
77
|
exports.NieValidationError = NieValidationError;
|
|
87
|
-
class FtpError extends CustomError {
|
|
88
|
-
constructor({ code, args }) {
|
|
89
|
-
const { code: argsCode } = args, mappedCode = code !== null && code !== void 0 ? code : mapErrorCode(argsCode);
|
|
90
|
-
super(common_constants_1.MicroserviceType.FTP, mappedCode, args);
|
|
91
|
-
this.name = 'FtpError';
|
|
92
|
-
}
|
|
93
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
94
|
-
return {};
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
exports.FtpError = FtpError;
|
|
98
|
-
class ArsEdgeError extends CustomError {
|
|
99
|
-
constructor({ code, args = {} }) {
|
|
100
|
-
const { code: argsCode, message } = args, mappedCode = code !== null && code !== void 0 ? code : mapErrorCode(argsCode);
|
|
101
|
-
super(common_constants_1.MicroserviceType.ARS_EDGE, mappedCode, message, args);
|
|
102
|
-
this.name = 'ArsEdgeError';
|
|
103
|
-
}
|
|
104
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
105
|
-
return {};
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exports.ArsEdgeError = ArsEdgeError;
|
|
109
|
-
class ZohoError extends CustomError {
|
|
110
|
-
constructor({ code, args = {} }) {
|
|
111
|
-
var _a;
|
|
112
|
-
const { response: { status: statusCode, data: { code: responseCode, message: responseMessage } } = { status: undefined, data: ({} = {}) }, message, stack, code: argsCode } = args, mappedCode = (_a = code !== null && code !== void 0 ? code : responseCode) !== null && _a !== void 0 ? _a : mapErrorCode(argsCode);
|
|
113
|
-
super(common_constants_1.MicroserviceType.ZOHO_ADAPTOR, mappedCode, responseMessage || message, stack);
|
|
114
|
-
this.statusCode = statusCode;
|
|
115
|
-
this.name = 'ZohoError';
|
|
116
|
-
}
|
|
117
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
118
|
-
return {};
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
exports.ZohoError = ZohoError;
|
|
122
|
-
class SmsCertError extends CustomError {
|
|
123
|
-
constructor({ code, args = {} }) {
|
|
124
|
-
var _a;
|
|
125
|
-
const { response: { data: { code: responseCode, message: responseMessage } } = { data: ({} = {}) }, message, stack, code: argsCode } = args, mappedCode = (_a = code !== null && code !== void 0 ? code : responseCode) !== null && _a !== void 0 ? _a : mapErrorCode(argsCode);
|
|
126
|
-
super(common_constants_1.MicroserviceType.SMS_CERT, mappedCode, responseMessage || message, stack);
|
|
127
|
-
this.name = 'SmsCertError';
|
|
128
|
-
}
|
|
129
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
130
|
-
return {};
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
exports.SmsCertError = SmsCertError;
|
|
134
|
-
class MsgMediaError extends CustomError {
|
|
135
|
-
constructor({ code, args = {} }) {
|
|
136
|
-
var _a;
|
|
137
|
-
const { response: { data: { code: responseCode, message: responseMessage } } = { data: ({} = {}) }, message, stack, code: argsCode } = args, mappedCode = (_a = code !== null && code !== void 0 ? code : responseCode) !== null && _a !== void 0 ? _a : mapErrorCode(argsCode);
|
|
138
|
-
super(common_constants_1.MicroserviceType.MSG_MEDIA, mappedCode, responseMessage || message, stack);
|
|
139
|
-
this.name = 'MsgMediaError';
|
|
140
|
-
}
|
|
141
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
142
|
-
return {};
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
exports.MsgMediaError = MsgMediaError;
|
|
146
|
-
class OtrsError extends CustomError {
|
|
147
|
-
constructor({ code, args = {} }) {
|
|
148
|
-
const { message, stack, code: argsCode } = args, mappedCode = code !== null && code !== void 0 ? code : mapErrorCode(argsCode);
|
|
149
|
-
super(common_constants_1.MicroserviceType.OTRS, mappedCode, message, stack);
|
|
150
|
-
this.name = 'OtrsError';
|
|
151
|
-
}
|
|
152
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
153
|
-
return {};
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
exports.OtrsError = OtrsError;
|
|
157
|
-
class DbBridgeError extends CustomError {
|
|
158
|
-
constructor({ code, args = {} }) {
|
|
159
|
-
var _a;
|
|
160
|
-
const { response: { data: { status, i18n: responseCode, message: responseMessage } } = { data: ({} = {}) }, message, stack, code: argsCode } = args, mappedCode = (_a = code !== null && code !== void 0 ? code : responseCode) !== null && _a !== void 0 ? _a : mapErrorCode(argsCode);
|
|
161
|
-
super(common_constants_1.MicroserviceType.DB_BRIDGE, mappedCode, responseMessage || message, stack);
|
|
162
|
-
this.statusCode = status;
|
|
163
|
-
this.name = 'DbBridgeError';
|
|
164
|
-
}
|
|
165
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
166
|
-
return {};
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
exports.DbBridgeError = DbBridgeError;
|
|
170
|
-
class AmsError extends CustomError {
|
|
171
|
-
constructor({ args, code }) {
|
|
172
|
-
const { message, stack, code: argsCode } = args, mappedCode = code !== null && code !== void 0 ? code : mapErrorCode(argsCode);
|
|
173
|
-
super(common_constants_1.MicroserviceType.AMS, mappedCode, message, stack);
|
|
174
|
-
this.name = 'AmsError';
|
|
175
|
-
}
|
|
176
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
177
|
-
return {};
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
exports.AmsError = AmsError;
|
|
181
|
-
class BearingPointError extends CustomError {
|
|
182
|
-
constructor({ code, args = {} }) {
|
|
183
|
-
const { message, stack, code: argsCode } = args, mappedCode = code !== null && code !== void 0 ? code : mapErrorCode(argsCode);
|
|
184
|
-
super(common_constants_1.MicroserviceType.BEARINGPOINT, mappedCode, message, stack);
|
|
185
|
-
this.name = 'BearingPointError';
|
|
186
|
-
}
|
|
187
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
188
|
-
return {};
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
exports.BearingPointError = BearingPointError;
|
|
192
|
-
class BssBridgeError extends CustomError {
|
|
193
|
-
constructor({ code, args = {} }) {
|
|
194
|
-
const { message, stack, code: argsCode, response } = args, mappedCode = code !== null && code !== void 0 ? code : mapErrorCode(argsCode);
|
|
195
|
-
if (response && response.data) {
|
|
196
|
-
const { source, i18n, message: dataMessage } = response.data;
|
|
197
|
-
super(source, i18n !== null && i18n !== void 0 ? i18n : mappedCode, dataMessage !== null && dataMessage !== void 0 ? dataMessage : message, stack);
|
|
198
|
-
this.name = 'BssBridgeError';
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
super(common_constants_1.MicroserviceType.BSS_BRIDGE, mappedCode, message, stack);
|
|
202
|
-
this.name = 'BssBridgeError';
|
|
203
|
-
}
|
|
204
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
205
|
-
return {};
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
exports.BssBridgeError = BssBridgeError;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CustomError } from './exception.entity';
|
|
2
|
+
interface ErrorParams {
|
|
3
|
+
code?: string;
|
|
4
|
+
args?: any;
|
|
5
|
+
}
|
|
6
|
+
export declare class FtpError extends CustomError {
|
|
7
|
+
constructor({ code, args }: ErrorParams);
|
|
8
|
+
}
|
|
9
|
+
export declare class ArsEdgeError extends CustomError {
|
|
10
|
+
constructor({ code, args }: ErrorParams);
|
|
11
|
+
}
|
|
12
|
+
export declare class ZohoError extends CustomError {
|
|
13
|
+
constructor(errorParams: ErrorParams);
|
|
14
|
+
}
|
|
15
|
+
export declare class SmsCertError extends CustomError {
|
|
16
|
+
constructor(errorParams: ErrorParams);
|
|
17
|
+
}
|
|
18
|
+
export declare class MsgMediaError extends CustomError {
|
|
19
|
+
constructor(errorParams: ErrorParams);
|
|
20
|
+
}
|
|
21
|
+
export declare class SendGridError extends CustomError {
|
|
22
|
+
constructor(errorParams: ErrorParams);
|
|
23
|
+
}
|
|
24
|
+
export declare class OtrsError extends CustomError {
|
|
25
|
+
constructor({ code, args }: ErrorParams);
|
|
26
|
+
}
|
|
27
|
+
export declare class DbBridgeError extends CustomError {
|
|
28
|
+
constructor(errorParams: ErrorParams);
|
|
29
|
+
}
|
|
30
|
+
export declare class AmsError extends CustomError {
|
|
31
|
+
constructor({ args, code }: ErrorParams);
|
|
32
|
+
}
|
|
33
|
+
export declare class BearingPointError extends CustomError {
|
|
34
|
+
constructor({ code, args }: ErrorParams);
|
|
35
|
+
}
|
|
36
|
+
export declare class BssBridgeError extends CustomError {
|
|
37
|
+
constructor({ code, args }: ErrorParams);
|
|
38
|
+
}
|
|
39
|
+
export {};
|