adamo-types 1.1.24 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bss/constants/bp.constants.d.ts +7 -0
- package/dist/bss/constants/bp.constants.js +9 -1
- package/dist/common/constants/error.constants.d.ts +1 -0
- package/dist/common/constants/error.constants.js +2 -1
- package/dist/common/constants/jwt-decoded.entity.d.ts +4 -0
- package/dist/common/constants/jwt-decoded.entity.js +1 -1
- package/dist/common/edge-bss/login/res/login.entity.d.ts +1 -1
- package/dist/common/edge-bss/login/res/login.entity.js +1 -1
- package/dist/common/edge-bss/product/res/other.entity.d.ts +9 -0
- package/dist/common/edge-bss/product/res/other.entity.js +13 -1
- package/dist/common/edge-bss/shopping-cart/req/other.entity.d.ts +5 -0
- package/dist/common/edge-bss/shopping-cart/req/other.entity.js +26 -3
- package/dist/common/edge-bss/shopping-cart/res/other.entity.d.ts +8 -1
- package/dist/common/edge-bss/shopping-cart/res/other.entity.js +8 -2
- package/dist/common/edge-sms/contract/index.d.ts +1 -0
- package/dist/common/edge-sms/contract/index.js +1 -0
- package/dist/common/edge-sms/contract/res/response.entity.d.ts +4 -0
- package/dist/common/edge-sms/contract/res/response.entity.js +10 -0
- package/dist/common/edge-sms/index.d.ts +1 -0
- package/dist/common/edge-sms/index.js +1 -0
- package/dist/common/edge-sms/information/index.d.ts +1 -0
- package/dist/common/edge-sms/information/index.js +17 -0
- package/dist/common/edge-sms/information/req/req.entity.d.ts +4 -0
- package/dist/common/edge-sms/information/req/req.entity.js +10 -0
- package/dist/common/edge-sms/information/res/res.entity.d.ts +0 -0
- package/dist/common/edge-sms/information/res/res.entity.js +1 -0
- package/dist/common/edge-zoho/sale-process/req/other.entity.d.ts +1 -0
- package/dist/common/edge-zoho/sale-process/req/other.entity.js +6 -1
- package/dist/sys03/sale-process/internal/internal.entity.d.ts +1 -0
- package/dist/sys03/sale-process/internal/internal.entity.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export declare enum ConfigurationAttributeType {
|
|
|
5
5
|
COMPETITION = "COMPETITION",
|
|
6
6
|
FIBERHOOD = "FIBERHOOD",
|
|
7
7
|
INSTALLATION_COST = "INSTALLATION_COST",
|
|
8
|
+
MOBILE_VISIBILITY = "MOBILE_VISIBILITY",
|
|
8
9
|
NETWORK = "NETWORK",
|
|
9
10
|
PROJECT_CODE = "PROJECT_CODE",
|
|
10
11
|
PROMOTION = "PROMOTION",
|
|
@@ -13,6 +14,11 @@ export declare enum ConfigurationAttributeType {
|
|
|
13
14
|
SERVICEABLE_AGE = "SERVICEABLE_AGE",
|
|
14
15
|
SYS02 = "SYS02"
|
|
15
16
|
}
|
|
17
|
+
export declare enum MobileVisibilityType {
|
|
18
|
+
ONLY_MOBILE = "ONLY_MOBILE",
|
|
19
|
+
SHARED_DATA = "SHARED_DATA",
|
|
20
|
+
MAIN_SHARED_DATA = "MAIN_SHARED_DATA"
|
|
21
|
+
}
|
|
16
22
|
export declare enum ProductCatalogItemState {
|
|
17
23
|
ACTIVE = "Active",
|
|
18
24
|
PENDING_ACTIVE = "PendingActive",
|
|
@@ -265,6 +271,7 @@ export declare enum IndustryType {
|
|
|
265
271
|
export declare enum RelatedPartyRoleType {
|
|
266
272
|
CUSTOMER_ACCOUNT_OWNER = "CUSTOMER_ACCOUNT_OWNER",
|
|
267
273
|
CUSTOMER_ACCOUNT_CONTACT = "CUSTOMER_ACCOUNT_CONTACT",
|
|
274
|
+
ORGANIZATION_CONTACT = "ORGANIZATION_CONTACT",
|
|
268
275
|
LEGAL_REPRESENTATIVE = "LEGAL_REPRESENTATIVE",
|
|
269
276
|
INVOICE = "INVOICE",
|
|
270
277
|
TECH = "TECH",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerAccountHistoryType = exports.PaymentMethodType = exports.DeliveryMethod = exports.DocumentType = exports.PartyStateType = exports.RelatedPartyRoleType = exports.IndustryType = exports.CustomerAccountOrganizationEntityType = exports.IdentificationType = exports.ContactMediumTelephoneType = exports.CustomerAccountContactMediumRoleType = exports.CustomerAccountContactMediumContactType = exports.CustomerAccountContactMediumType = exports.CustomerAccountParametersAdamoCustomerIdRep = exports.ContactType = exports.AccountState = exports.PersonTitle = exports.Timezone = exports.PreferredLanguage = exports.EntityType = exports.PartyType = exports.CustomerType = exports.BpPronvinceToArs = exports.ArsPronvinceToBp = exports.ServiceSpecificationDictionary = exports.ServiceSpecificationType = exports.ShoppingCartItemAction = exports.ProrationConditionType = exports.ProrationModeType = exports.AssignmentType = exports.CurrencyType = exports.TaxType = exports.DependencySourceTargetType = exports.DependencyType = exports.ProductCatalogItemState = exports.ConfigurationAttributeType = void 0;
|
|
3
|
+
exports.CustomerAccountHistoryType = exports.PaymentMethodType = exports.DeliveryMethod = exports.DocumentType = exports.PartyStateType = exports.RelatedPartyRoleType = exports.IndustryType = exports.CustomerAccountOrganizationEntityType = exports.IdentificationType = exports.ContactMediumTelephoneType = exports.CustomerAccountContactMediumRoleType = exports.CustomerAccountContactMediumContactType = exports.CustomerAccountContactMediumType = exports.CustomerAccountParametersAdamoCustomerIdRep = exports.ContactType = exports.AccountState = exports.PersonTitle = exports.Timezone = exports.PreferredLanguage = exports.EntityType = exports.PartyType = exports.CustomerType = exports.BpPronvinceToArs = exports.ArsPronvinceToBp = exports.ServiceSpecificationDictionary = exports.ServiceSpecificationType = exports.ShoppingCartItemAction = exports.ProrationConditionType = exports.ProrationModeType = exports.AssignmentType = exports.CurrencyType = exports.TaxType = exports.DependencySourceTargetType = exports.DependencyType = exports.ProductCatalogItemState = exports.MobileVisibilityType = exports.ConfigurationAttributeType = void 0;
|
|
4
4
|
var ConfigurationAttributeType;
|
|
5
5
|
(function (ConfigurationAttributeType) {
|
|
6
6
|
ConfigurationAttributeType["BINDING_PERIOD"] = "BINDING_PERIOD";
|
|
@@ -9,6 +9,7 @@ var ConfigurationAttributeType;
|
|
|
9
9
|
ConfigurationAttributeType["COMPETITION"] = "COMPETITION";
|
|
10
10
|
ConfigurationAttributeType["FIBERHOOD"] = "FIBERHOOD";
|
|
11
11
|
ConfigurationAttributeType["INSTALLATION_COST"] = "INSTALLATION_COST";
|
|
12
|
+
ConfigurationAttributeType["MOBILE_VISIBILITY"] = "MOBILE_VISIBILITY";
|
|
12
13
|
ConfigurationAttributeType["NETWORK"] = "NETWORK";
|
|
13
14
|
ConfigurationAttributeType["PROJECT_CODE"] = "PROJECT_CODE";
|
|
14
15
|
ConfigurationAttributeType["PROMOTION"] = "PROMOTION";
|
|
@@ -17,6 +18,12 @@ var ConfigurationAttributeType;
|
|
|
17
18
|
ConfigurationAttributeType["SERVICEABLE_AGE"] = "SERVICEABLE_AGE";
|
|
18
19
|
ConfigurationAttributeType["SYS02"] = "SYS02";
|
|
19
20
|
})(ConfigurationAttributeType = exports.ConfigurationAttributeType || (exports.ConfigurationAttributeType = {}));
|
|
21
|
+
var MobileVisibilityType;
|
|
22
|
+
(function (MobileVisibilityType) {
|
|
23
|
+
MobileVisibilityType["ONLY_MOBILE"] = "ONLY_MOBILE";
|
|
24
|
+
MobileVisibilityType["SHARED_DATA"] = "SHARED_DATA";
|
|
25
|
+
MobileVisibilityType["MAIN_SHARED_DATA"] = "MAIN_SHARED_DATA";
|
|
26
|
+
})(MobileVisibilityType = exports.MobileVisibilityType || (exports.MobileVisibilityType = {}));
|
|
20
27
|
var ProductCatalogItemState;
|
|
21
28
|
(function (ProductCatalogItemState) {
|
|
22
29
|
ProductCatalogItemState["ACTIVE"] = "Active";
|
|
@@ -299,6 +306,7 @@ var RelatedPartyRoleType;
|
|
|
299
306
|
(function (RelatedPartyRoleType) {
|
|
300
307
|
RelatedPartyRoleType["CUSTOMER_ACCOUNT_OWNER"] = "CUSTOMER_ACCOUNT_OWNER";
|
|
301
308
|
RelatedPartyRoleType["CUSTOMER_ACCOUNT_CONTACT"] = "CUSTOMER_ACCOUNT_CONTACT";
|
|
309
|
+
RelatedPartyRoleType["ORGANIZATION_CONTACT"] = "ORGANIZATION_CONTACT";
|
|
302
310
|
RelatedPartyRoleType["LEGAL_REPRESENTATIVE"] = "LEGAL_REPRESENTATIVE";
|
|
303
311
|
RelatedPartyRoleType["INVOICE"] = "INVOICE";
|
|
304
312
|
RelatedPartyRoleType["TECH"] = "TECH";
|
|
@@ -91,3 +91,4 @@ export declare const E_NOT_FOUND = "E_NOT_FOUND";
|
|
|
91
91
|
export declare const E_INVALID_SALE_PROCESS_STATUS = "E_INVALID_SALE_PROCESS_STATUS";
|
|
92
92
|
export declare const E_FETCH_LOOKUP_OPTIONS = "E_FETCH_LOOKUP_OPTIONS";
|
|
93
93
|
export declare const E_NO_SELECTED_CHANNEL = "E_NO_SELECTED_CHANNEL";
|
|
94
|
+
export declare const E_NOT_BASE_BUNDLE = "E_NOT_BASE_BUNDLE";
|
|
@@ -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_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_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';
|
|
@@ -95,3 +95,4 @@ exports.E_NOT_FOUND = 'E_NOT_FOUND';
|
|
|
95
95
|
exports.E_INVALID_SALE_PROCESS_STATUS = 'E_INVALID_SALE_PROCESS_STATUS';
|
|
96
96
|
exports.E_FETCH_LOOKUP_OPTIONS = 'E_FETCH_LOOKUP_OPTIONS';
|
|
97
97
|
exports.E_NO_SELECTED_CHANNEL = 'E_NO_SELECTED_CHANNEL';
|
|
98
|
+
exports.E_NOT_BASE_BUNDLE = 'E_NOT_BASE_BUNDLE';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { Role } from '@admin/constants';
|
|
2
|
+
import { BssUserInfoDto } from '@bss/login';
|
|
1
3
|
export declare class JwtDecoded {
|
|
2
4
|
username: string;
|
|
3
5
|
channels: string[];
|
|
4
6
|
roles: string[];
|
|
7
|
+
role: Role;
|
|
5
8
|
tenentPermissions: string[];
|
|
9
|
+
userInfo: BssUserInfoDto;
|
|
6
10
|
}
|
|
@@ -4,7 +4,7 @@ exports.JwtDecoded = void 0;
|
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class JwtDecoded {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
-
return { username: { required: true, type: () => String }, channels: { required: true, type: () => [String] }, roles: { required: true, type: () => [String] }, tenentPermissions: { required: true, type: () => [String] } };
|
|
7
|
+
return { username: { required: true, type: () => String }, channels: { required: true, type: () => [String] }, roles: { required: true, type: () => [String] }, role: { required: true, enum: require("../../admin/constants/admin.constants").Role }, tenentPermissions: { required: true, type: () => [String] }, userInfo: { required: true, type: () => require("../../bss/login/res/login.entity").BssUserInfoDto } };
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.JwtDecoded = JwtDecoded;
|
|
@@ -4,12 +4,12 @@ export declare class UserMetaData {
|
|
|
4
4
|
username: string;
|
|
5
5
|
channels: string[];
|
|
6
6
|
roles: string[];
|
|
7
|
+
role: Role;
|
|
7
8
|
tenentPermissions: string[];
|
|
8
9
|
userInfo: BssUserInfoDto;
|
|
9
10
|
}
|
|
10
11
|
export interface UserLoginRes {
|
|
11
12
|
jwt: string;
|
|
12
|
-
role: Role;
|
|
13
13
|
}
|
|
14
14
|
export interface AclUserRolesPayload {
|
|
15
15
|
roles: string[];
|
|
@@ -4,7 +4,7 @@ exports.UserMetaData = void 0;
|
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class UserMetaData {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
-
return { username: { required: true, type: () => String }, channels: { required: true, type: () => [String] }, roles: { required: true, type: () => [String] }, tenentPermissions: { required: true, type: () => [String] }, userInfo: { required: true, type: () => require("../../../../bss/login/res/login.entity").BssUserInfoDto } };
|
|
7
|
+
return { username: { required: true, type: () => String }, channels: { required: true, type: () => [String] }, roles: { required: true, type: () => [String] }, role: { required: true, enum: require("../../../../admin/constants/admin.constants").Role }, tenentPermissions: { required: true, type: () => [String] }, userInfo: { required: true, type: () => require("../../../../bss/login/res/login.entity").BssUserInfoDto } };
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.UserMetaData = UserMetaData;
|
|
@@ -4,6 +4,10 @@ export declare class DefaultSummaryResDto {
|
|
|
4
4
|
shoppingCart: ShoppingCartDto;
|
|
5
5
|
summary: ProductSummaryResDto;
|
|
6
6
|
}
|
|
7
|
+
export declare class DefaultBundlesSummaryResDto {
|
|
8
|
+
shoppingCart: ShoppingCartDto;
|
|
9
|
+
summary: BundlesSummaryResDto;
|
|
10
|
+
}
|
|
7
11
|
export declare class ProductSummaryResDto {
|
|
8
12
|
name: string;
|
|
9
13
|
displayName: string;
|
|
@@ -14,6 +18,11 @@ export declare class ProductSummaryResDto {
|
|
|
14
18
|
products: ProductSummaryProductResDto[];
|
|
15
19
|
prices: ProductSummaryPriceResDto[];
|
|
16
20
|
}
|
|
21
|
+
export declare class BundlesSummaryResDto {
|
|
22
|
+
bundles: ProductSummaryResDto[];
|
|
23
|
+
contract: ProductSummaryContractResDto;
|
|
24
|
+
prices: ProductSummaryPriceResDto[];
|
|
25
|
+
}
|
|
17
26
|
export declare class ProductSummaryProductResDto {
|
|
18
27
|
name: string;
|
|
19
28
|
index: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductSummaryContractResDto = exports.ProductSummaryPriceResDto = exports.ProductSummaryCharacteristicResDto = exports.ProductSummaryProductResDto = exports.ProductSummaryResDto = exports.DefaultSummaryResDto = void 0;
|
|
3
|
+
exports.ProductSummaryContractResDto = exports.ProductSummaryPriceResDto = exports.ProductSummaryCharacteristicResDto = exports.ProductSummaryProductResDto = exports.BundlesSummaryResDto = exports.ProductSummaryResDto = exports.DefaultBundlesSummaryResDto = exports.DefaultSummaryResDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class DefaultSummaryResDto {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
@@ -8,12 +8,24 @@ class DefaultSummaryResDto {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.DefaultSummaryResDto = DefaultSummaryResDto;
|
|
11
|
+
class DefaultBundlesSummaryResDto {
|
|
12
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
+
return { shoppingCart: { required: true, type: () => require("../../../../bss/bearingpoint/shopping-cart/shopping-cart.entity").ShoppingCartDto }, summary: { required: true, type: () => require("./other.entity").BundlesSummaryResDto } };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.DefaultBundlesSummaryResDto = DefaultBundlesSummaryResDto;
|
|
11
17
|
class ProductSummaryResDto {
|
|
12
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
13
19
|
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, promotions: { required: true, type: () => [require("./other.entity").ProductSummaryCharacteristicResDto] }, installationCosts: { required: false, type: () => [require("./other.entity").ProductSummaryCharacteristicResDto] }, contract: { required: true, type: () => require("./other.entity").ProductSummaryContractResDto }, products: { required: true, type: () => [require("./other.entity").ProductSummaryProductResDto] }, prices: { required: true, type: () => [require("./other.entity").ProductSummaryPriceResDto] } };
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
22
|
exports.ProductSummaryResDto = ProductSummaryResDto;
|
|
23
|
+
class BundlesSummaryResDto {
|
|
24
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
+
return { bundles: { required: true, type: () => [require("./other.entity").ProductSummaryResDto] }, contract: { required: true, type: () => require("./other.entity").ProductSummaryContractResDto }, prices: { required: true, type: () => [require("./other.entity").ProductSummaryPriceResDto] } };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.BundlesSummaryResDto = BundlesSummaryResDto;
|
|
17
29
|
class ProductSummaryProductResDto {
|
|
18
30
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
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 } };
|
|
@@ -19,6 +19,11 @@ export declare class UpdateShoppingCartExtrasDto {
|
|
|
19
19
|
extraGroups: UpdateShoppingCartExtraGroupDto[];
|
|
20
20
|
extras: UpdateShoppingCartExtraDto[];
|
|
21
21
|
}
|
|
22
|
+
export declare class UpdateShoppingCartBundleExtrasDto {
|
|
23
|
+
name: string;
|
|
24
|
+
extraGroups: UpdateShoppingCartExtraGroupDto[];
|
|
25
|
+
extras: UpdateShoppingCartExtraDto[];
|
|
26
|
+
}
|
|
22
27
|
export declare class UpdateShoppingCartExtraDto {
|
|
23
28
|
name: string;
|
|
24
29
|
qty: number;
|
|
@@ -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.UpdateShoppingCartExtrasDto = exports.ConfigurationAttributeValuesDto = void 0;
|
|
12
|
+
exports.UpdateShoppingCartServiceSpecificationItemDto = exports.UpdateShoppingCartConfigurationProductDto = exports.UpdateShoppingCartConfigurationDto = exports.UpdateShoppingCartCharacteristicDto = exports.SaveShoppingCartDto = exports.UpdateShoppingCartExtraGroupDto = exports.UpdateShoppingCartExtraDto = exports.UpdateShoppingCartBundleExtrasDto = 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");
|
|
@@ -58,6 +58,31 @@ __decorate([
|
|
|
58
58
|
__metadata("design:type", Array)
|
|
59
59
|
], UpdateShoppingCartExtrasDto.prototype, "extras", void 0);
|
|
60
60
|
exports.UpdateShoppingCartExtrasDto = UpdateShoppingCartExtrasDto;
|
|
61
|
+
class UpdateShoppingCartBundleExtrasDto {
|
|
62
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
63
|
+
return { name: { required: true, type: () => String }, extraGroups: { required: true, type: () => [require("./other.entity").UpdateShoppingCartExtraGroupDto] }, extras: { required: true, type: () => [require("./other.entity").UpdateShoppingCartExtraDto] } };
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], UpdateShoppingCartBundleExtrasDto.prototype, "name", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsArray)(),
|
|
73
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
74
|
+
(0, class_transformer_1.Type)(() => UpdateShoppingCartExtraGroupDto),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], UpdateShoppingCartBundleExtrasDto.prototype, "extraGroups", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsArray)(),
|
|
80
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
81
|
+
(0, class_transformer_1.Type)(() => UpdateShoppingCartExtraDto),
|
|
82
|
+
(0, class_validator_1.ValidateIf)(o => o.extras || !o.extraGroups),
|
|
83
|
+
__metadata("design:type", Array)
|
|
84
|
+
], UpdateShoppingCartBundleExtrasDto.prototype, "extras", void 0);
|
|
85
|
+
exports.UpdateShoppingCartBundleExtrasDto = UpdateShoppingCartBundleExtrasDto;
|
|
61
86
|
class UpdateShoppingCartExtraDto {
|
|
62
87
|
static _OPENAPI_METADATA_FACTORY() {
|
|
63
88
|
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number, minimum: 0, maximum: 99 } };
|
|
@@ -156,14 +181,12 @@ __decorate([
|
|
|
156
181
|
], UpdateShoppingCartConfigurationProductDto.prototype, "type", void 0);
|
|
157
182
|
__decorate([
|
|
158
183
|
(0, class_validator_1.IsArray)(),
|
|
159
|
-
(0, class_validator_1.ArrayNotEmpty)(),
|
|
160
184
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
161
185
|
(0, class_transformer_1.Type)(() => UpdateShoppingCartCharacteristicDto),
|
|
162
186
|
__metadata("design:type", Array)
|
|
163
187
|
], UpdateShoppingCartConfigurationProductDto.prototype, "characteristics", void 0);
|
|
164
188
|
__decorate([
|
|
165
189
|
(0, class_validator_1.IsArray)(),
|
|
166
|
-
(0, class_validator_1.ArrayNotEmpty)(),
|
|
167
190
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
168
191
|
(0, class_transformer_1.Type)(() => UpdateShoppingCartServiceSpecificationItemDto),
|
|
169
192
|
__metadata("design:type", Array)
|
|
@@ -12,7 +12,14 @@ export declare class ShoppingCartAvailableProductWithIdResDto {
|
|
|
12
12
|
products: ShoppingCartAvailableProductResDto[];
|
|
13
13
|
}
|
|
14
14
|
export declare class ShoppingCartExtrasResDto {
|
|
15
|
-
|
|
15
|
+
extraGroups: ShoppingCartExtraGroup[];
|
|
16
|
+
extras: ShoppingCartExtra[];
|
|
17
|
+
}
|
|
18
|
+
export declare class ShoppingCartBundleExtrasResDto {
|
|
19
|
+
name: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
displayDescription: string;
|
|
22
|
+
extraGroups: ShoppingCartExtraGroup[];
|
|
16
23
|
extras: ShoppingCartExtra[];
|
|
17
24
|
}
|
|
18
25
|
export declare class ShoppingCartConfigurationBssResDto {
|
|
@@ -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.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;
|
|
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.ShoppingCartBundleExtrasResDto = exports.ShoppingCartExtrasResDto = exports.ShoppingCartAvailableProductWithIdResDto = exports.ShoppingCartAvailableProductResDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
@@ -27,10 +27,16 @@ class ShoppingCartAvailableProductWithIdResDto {
|
|
|
27
27
|
exports.ShoppingCartAvailableProductWithIdResDto = ShoppingCartAvailableProductWithIdResDto;
|
|
28
28
|
class ShoppingCartExtrasResDto {
|
|
29
29
|
static _OPENAPI_METADATA_FACTORY() {
|
|
30
|
-
return {
|
|
30
|
+
return { extraGroups: { required: true, type: () => [require("../../../../bss/shopping-cart/internal/internal.entity").ShoppingCartExtraGroup] }, extras: { required: true, type: () => [require("../../../../bss/shopping-cart/internal/internal.entity").ShoppingCartExtra] } };
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.ShoppingCartExtrasResDto = ShoppingCartExtrasResDto;
|
|
34
|
+
class ShoppingCartBundleExtrasResDto {
|
|
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] } };
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ShoppingCartBundleExtrasResDto = ShoppingCartBundleExtrasResDto;
|
|
34
40
|
class ShoppingCartConfigurationBssResDto {
|
|
35
41
|
static _OPENAPI_METADATA_FACTORY() {
|
|
36
42
|
return { promotions: { required: true, type: () => require("./other.entity").ShoppingCartConfigurationFeaturesResDto }, contracts: { required: true, type: () => [require("./other.entity").ShoppingCartConfigurationCharacteristicResDto] }, products: { required: true, type: () => [require("./other.entity").ShoppingCartConfigurationProductBssResDto] }, parameters: { required: true, type: () => require("../../../../bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity").ShoppingCartParametersDto } };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendSmsResponse = void 0;
|
|
4
|
+
const openapi = require("@nestjs/swagger");
|
|
5
|
+
class SendSmsResponse {
|
|
6
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
+
return { id: { required: true, type: () => String }, fileName: { required: true, type: () => String } };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SendSmsResponse = SendSmsResponse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './req/req.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/req.entity"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendInformationDto = void 0;
|
|
4
|
+
const openapi = require("@nestjs/swagger");
|
|
5
|
+
class SendInformationDto {
|
|
6
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
+
return { phone: { required: true, type: () => String }, msg: { required: true, type: () => String } };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SendInformationDto = SendInformationDto;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import openapi = require("@nestjs/swagger");
|
|
@@ -16,7 +16,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
17
|
class DashboardQueryDto {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { page: { required: false, type: () => Number, minimum: 1 }, limit: { required: false, type: () => Number, minimum: 1 }, phone: { required: false, type: () => String }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, lastChangeMadeBy: { required: false, type: () => String }, status: { required: false, type: () => String }, channel: { required: false, type: () => String }, customerType: { required: false, enum: require("../../../../sys03/shopping-cart/req/req.entity").CustomerType } };
|
|
19
|
+
return { page: { required: false, type: () => Number, minimum: 1 }, limit: { required: false, type: () => Number, minimum: 1 }, phone: { required: false, type: () => String }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, lastChangeMadeBy: { required: false, type: () => String }, status: { required: false, type: () => String }, channel: { required: false, type: () => String }, lastChannel: { required: false, type: () => String }, customerType: { required: false, enum: require("../../../../sys03/shopping-cart/req/req.entity").CustomerType } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
@@ -68,6 +68,11 @@ __decorate([
|
|
|
68
68
|
(0, class_validator_1.IsOptional)(),
|
|
69
69
|
__metadata("design:type", String)
|
|
70
70
|
], DashboardQueryDto.prototype, "channel", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsString)(),
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], DashboardQueryDto.prototype, "lastChannel", void 0);
|
|
71
76
|
__decorate([
|
|
72
77
|
(0, class_validator_1.IsEnum)(shopping_cart_1.CustomerType),
|
|
73
78
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -4,7 +4,7 @@ exports.SmsMessagePayloadDto = exports.DashboardFilterDto = void 0;
|
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class DashboardFilterDto {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
-
return { page: { required: false, type: () => Number }, limit: { required: false, type: () => Number }, phone: { required: false, type: () => String }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, lastChangeMadeBy: { required: false, type: () => String }, status: { required: false, type: () => String }, channel: { required: false, type: () => [String] }, customerType: { required: false, enum: require("../../shopping-cart/req/req.entity").CustomerType }, softDeleted: { required: false, type: () => Boolean } };
|
|
7
|
+
return { page: { required: false, type: () => Number }, limit: { required: false, type: () => Number }, phone: { required: false, type: () => String }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, lastChangeMadeBy: { required: false, type: () => String }, status: { required: false, type: () => String }, channel: { required: false, type: () => [String] }, lastChannel: { required: false, type: () => [String] }, customerType: { required: false, enum: require("../../shopping-cart/req/req.entity").CustomerType }, softDeleted: { required: false, type: () => Boolean } };
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.DashboardFilterDto = DashboardFilterDto;
|