adamo-types 1.1.113 → 1.1.114
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/bearingpoint/product-offering/product-inventory.entity.d.ts +13 -0
- package/dist/bss/bearingpoint/product-offering/product-inventory.entity.js +14 -2
- package/dist/bss/bearingpoint/product.entity.d.ts +12 -0
- package/dist/bss/bearingpoint/product.entity.js +15 -3
- package/dist/bss/bearingpoint/search/search.entity.d.ts +5 -0
- package/dist/bss/bearingpoint/search/search.entity.js +21 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity.d.ts +2 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity.js +1 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-product-characteristic.entity.d.ts +1 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-product-characteristic.entity.js +1 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-product.entity.d.ts +1 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-product.entity.js +1 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-resource-characteristic.entity.js +1 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-resource.entity.js +1 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-service-characteristic.entity.d.ts +1 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-service-characteristic.entity.js +1 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-service.entity.d.ts +3 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-service.entity.js +1 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart.entity.d.ts +2 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart.entity.js +1 -1
- package/dist/bss/constants/bp.constants.d.ts +6 -1
- package/dist/bss/constants/bp.constants.js +5 -0
- package/dist/common/constants/error.constants.d.ts +3 -0
- package/dist/common/constants/error.constants.js +4 -1
- package/dist/common/constants/index.d.ts +1 -0
- package/dist/common/constants/index.js +1 -0
- package/dist/common/constants/updowngrade.error.constants.d.ts +12 -0
- package/dist/common/constants/updowngrade.error.constants.js +15 -0
- package/dist/common/edge-bss/customer/req/create.entity.d.ts +2 -2
- package/dist/common/edge-bss/customer/req/create.entity.js +1 -1
- package/dist/database/index.d.ts +1 -0
- package/dist/database/index.js +1 -0
- package/dist/database/updowngrade-product-configuration.entity.d.ts +9 -0
- package/dist/database/updowngrade-product-configuration.entity.js +52 -0
- package/dist/sys03/shopping-cart/req/req.entity.js +1 -1
- package/dist/sys03/updowngrade/index.d.ts +56 -0
- package/dist/sys03/updowngrade/index.js +150 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,17 @@
|
|
|
1
|
+
import { ShoppingCartProductDto } from '../shopping-cart';
|
|
1
2
|
export declare class BpProductInventoryDto {
|
|
2
3
|
id: string;
|
|
4
|
+
bundle?: boolean;
|
|
3
5
|
billingAccount: string;
|
|
6
|
+
productOffering?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class BpProductOrderItemDto {
|
|
9
|
+
id: string;
|
|
10
|
+
product: ShoppingCartProductDto;
|
|
11
|
+
}
|
|
12
|
+
export declare class BpProductOrderDto {
|
|
13
|
+
id: string;
|
|
14
|
+
channel: string;
|
|
15
|
+
orderItems: BpProductOrderItemDto[];
|
|
16
|
+
parameters: Record<string, string>;
|
|
4
17
|
}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BpProductInventoryDto = void 0;
|
|
3
|
+
exports.BpProductOrderDto = exports.BpProductOrderItemDto = exports.BpProductInventoryDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class BpProductInventoryDto {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
-
return { id: { required: true, type: () => String }, billingAccount: { required: true, type: () => String } };
|
|
7
|
+
return { id: { required: true, type: () => String }, bundle: { required: false, type: () => Boolean }, billingAccount: { required: true, type: () => String }, productOffering: { required: false, type: () => String } };
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.BpProductInventoryDto = BpProductInventoryDto;
|
|
11
|
+
class BpProductOrderItemDto {
|
|
12
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
+
return { id: { required: true, type: () => String }, product: { required: true, type: () => require("../shopping-cart/shopping-cart-product.entity").ShoppingCartProductDto } };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.BpProductOrderItemDto = BpProductOrderItemDto;
|
|
17
|
+
class BpProductOrderDto {
|
|
18
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
+
return { id: { required: true, type: () => String }, channel: { required: true, type: () => String }, orderItems: { required: true, type: () => [require("./product-inventory.entity").BpProductOrderItemDto] }, parameters: { required: true, type: () => Object } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.BpProductOrderDto = BpProductOrderDto;
|
|
@@ -4,6 +4,13 @@ import { ConfigurationAttributeDto } from './configuration-attribute.entity';
|
|
|
4
4
|
import { DependencyDto } from './dependency.entity';
|
|
5
5
|
import { ServiceSpecificationDto } from './service-specification';
|
|
6
6
|
import { ValidForDto } from './valid-for.entity';
|
|
7
|
+
import { ProductCatalogItemState } from '..';
|
|
8
|
+
export declare class ProductOfferingRuleDto {
|
|
9
|
+
rule: string;
|
|
10
|
+
ruleType: string;
|
|
11
|
+
state: ProductCatalogItemState;
|
|
12
|
+
validFor: ValidForDto;
|
|
13
|
+
}
|
|
7
14
|
export declare class ProductDto {
|
|
8
15
|
name: string;
|
|
9
16
|
bundle: boolean;
|
|
@@ -15,6 +22,7 @@ export declare class ProductDto {
|
|
|
15
22
|
tariffModelData: CacheTariffModelDto;
|
|
16
23
|
validFor?: ValidForDto;
|
|
17
24
|
dependencies: DependencyDto[];
|
|
25
|
+
productOfferingRuleReferences: ProductOfferingRuleDto[];
|
|
18
26
|
configurationAttributes: ConfigurationAttributeDto[];
|
|
19
27
|
characteristicGroups: CharacteristicDto[];
|
|
20
28
|
serviceSpecifications: ServiceSpecificationDto[];
|
|
@@ -23,9 +31,13 @@ export declare class ProductDto {
|
|
|
23
31
|
minNumberOfInstances?: number;
|
|
24
32
|
maxNumberOfInstances?: number;
|
|
25
33
|
}
|
|
34
|
+
export declare class ShoppingCartProductOfferingChangePathDto {
|
|
35
|
+
name: string;
|
|
36
|
+
}
|
|
26
37
|
export declare class ShoppingCartProductOfferingDto {
|
|
27
38
|
name: string;
|
|
28
39
|
group?: string;
|
|
40
|
+
changePath?: ShoppingCartProductOfferingChangePathDto;
|
|
29
41
|
invoiceName?: string;
|
|
30
42
|
internalName?: string;
|
|
31
43
|
type?: string;
|
|
@@ -9,18 +9,30 @@ 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.ShoppingCartProductOfferingDto = exports.ProductDto = void 0;
|
|
12
|
+
exports.ShoppingCartProductOfferingDto = exports.ShoppingCartProductOfferingChangePathDto = exports.ProductDto = exports.ProductOfferingRuleDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
class ProductOfferingRuleDto {
|
|
16
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
+
return { rule: { required: true, type: () => String }, ruleType: { required: true, type: () => String }, state: { required: true, enum: require("../constants/bp.constants").ProductCatalogItemState }, validFor: { required: true, type: () => require("./valid-for.entity").ValidForDto } };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ProductOfferingRuleDto = ProductOfferingRuleDto;
|
|
15
21
|
class ProductDto {
|
|
16
22
|
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 }, 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 } };
|
|
23
|
+
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] }, productOfferingRuleReferences: { required: true, type: () => [require("./product.entity").ProductOfferingRuleDto] }, 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
24
|
}
|
|
19
25
|
}
|
|
20
26
|
exports.ProductDto = ProductDto;
|
|
27
|
+
class ShoppingCartProductOfferingChangePathDto {
|
|
28
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
29
|
+
return { name: { required: true, type: () => String } };
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.ShoppingCartProductOfferingChangePathDto = ShoppingCartProductOfferingChangePathDto;
|
|
21
33
|
class ShoppingCartProductOfferingDto {
|
|
22
34
|
static _OPENAPI_METADATA_FACTORY() {
|
|
23
|
-
return { name: { required: true, type: () => String }, group: { required: false, type: () => String }, invoiceName: { required: false, type: () => String }, internalName: { required: false, type: () => String }, type: { required: false, type: () => String }, available: { required: false, type: () => Boolean }, hidden: { required: false, type: () => Boolean } };
|
|
35
|
+
return { name: { required: true, type: () => String }, group: { required: false, type: () => String }, changePath: { required: false, type: () => require("./product.entity").ShoppingCartProductOfferingChangePathDto }, invoiceName: { required: false, type: () => String }, internalName: { required: false, type: () => String }, type: { required: false, type: () => String }, available: { required: false, type: () => Boolean }, hidden: { required: false, type: () => Boolean } };
|
|
24
36
|
}
|
|
25
37
|
}
|
|
26
38
|
__decorate([
|
|
@@ -44,6 +44,11 @@ export declare class BpQueryProductInventoryDto {
|
|
|
44
44
|
paginationInformation: BpPaginationInformationDto;
|
|
45
45
|
_links: BpLinkDto;
|
|
46
46
|
}
|
|
47
|
+
export declare class BpQueryResultDto<T> {
|
|
48
|
+
list: T[];
|
|
49
|
+
paginationInformation: BpPaginationInformationDto;
|
|
50
|
+
_links: BpLinkDto;
|
|
51
|
+
}
|
|
47
52
|
export declare class BpQueryPaymenMethodsDto {
|
|
48
53
|
list: BpPaymentMethodDto[];
|
|
49
54
|
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BpQueryPaymenMethodsDto = exports.BpQueryProductInventoryDto = exports.BpQueryCustomersDto = exports.BpQueryOrganizationPartiesDto = exports.BpQueryIndividualPartiesDto = exports.BpLinksDto = exports.BpLinkDto = exports.BpPaginationInformationDto = exports.BpSearchParamsDto = void 0;
|
|
12
|
+
exports.BpQueryPaymenMethodsDto = exports.BpQueryResultDto = exports.BpQueryProductInventoryDto = exports.BpQueryCustomersDto = exports.BpQueryOrganizationPartiesDto = exports.BpQueryIndividualPartiesDto = exports.BpLinksDto = exports.BpLinkDto = exports.BpPaginationInformationDto = exports.BpSearchParamsDto = void 0;
|
|
4
13
|
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
5
15
|
class BpSearchParamsDto {
|
|
6
16
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
17
|
return { pageSize: { required: true, type: () => String }, page: { required: true, type: () => String }, filter: { required: true, type: () => String }, query: { required: true, type: () => String }, sortBy: { required: true, type: () => String }, sortOrder: { required: true, type: () => String } };
|
|
@@ -50,6 +60,16 @@ class BpQueryProductInventoryDto {
|
|
|
50
60
|
}
|
|
51
61
|
}
|
|
52
62
|
exports.BpQueryProductInventoryDto = BpQueryProductInventoryDto;
|
|
63
|
+
class BpQueryResultDto {
|
|
64
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
65
|
+
return { list: { required: true }, paginationInformation: { required: true, type: () => require("./search.entity").BpPaginationInformationDto }, _links: { required: true, type: () => require("./search.entity").BpLinkDto } };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Exclude)(),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], BpQueryResultDto.prototype, "list", void 0);
|
|
72
|
+
exports.BpQueryResultDto = BpQueryResultDto;
|
|
53
73
|
class BpQueryPaymenMethodsDto {
|
|
54
74
|
static _OPENAPI_METADATA_FACTORY() {
|
|
55
75
|
return { list: { required: true, type: () => [require("../payment-method.entity").BpPaymentMethodDto] } };
|
|
@@ -14,7 +14,7 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
class ShoppingCartParametersDto {
|
|
16
16
|
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
-
return { addressInfo: { required: true, type: () => String }, door: { required: true, type: () => String }, country: { required: true, type: () => String }, salesAreaName: { required: true, type: () => String }, city: { required: true, type: () => String }, municipality: { required: true, type: () => String }, competition: { required: true, type: () => String }, network: { required: true, type: () => String }, fiberhood: { required: true, type: () => String }, cartCreatedBy: { required: true, type: () => String }, streetName: { required: true, type: () => String }, province: { required: true, type: () => String }, projectCode: { required: true, type: () => String }, block: { required: true, type: () => String }, serviceable: { required: true, type: () => String }, floor: { required: true, type: () => String }, entrance: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, streetType: { required: true, type: () => String }, serviceableStatus: { required: true, type: () => String }, postcode: { required: true, type: () => String }, technology: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, salesAreaId: { required: true, type: () => String }, serviceableAge: { required: true, type: () => String }, projectId: { required: true, type: () => String }, apartmentId: { required: true, type: () => String }, streetAddressId: { required: true, type: () => String }, customerType: { required: true, type: () => String } };
|
|
17
|
+
return { addressInfo: { required: true, type: () => String }, door: { required: true, type: () => String }, country: { required: true, type: () => String }, salesAreaName: { required: true, type: () => String }, city: { required: true, type: () => String }, municipality: { required: true, type: () => String }, competition: { required: true, type: () => String }, network: { required: true, type: () => String }, fiberhood: { required: true, type: () => String }, cartCreatedBy: { required: true, type: () => String }, streetName: { required: true, type: () => String }, province: { required: true, type: () => String }, projectCode: { required: true, type: () => String }, block: { required: true, type: () => String }, serviceable: { required: true, type: () => String }, floor: { required: true, type: () => String }, entrance: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, streetType: { required: true, type: () => String }, salesPerson: { required: true, type: () => String }, migrationCartCreatedBy: { required: true, type: () => String }, serviceableStatus: { required: true, type: () => String }, postcode: { required: true, type: () => String }, technology: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, salesAreaId: { required: true, type: () => String }, serviceableAge: { required: true, type: () => String }, projectId: { required: true, type: () => String }, apartmentId: { required: true, type: () => String }, streetAddressId: { required: true, type: () => String }, customerType: { required: true, type: () => String } };
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
__decorate([
|
|
@@ -16,7 +16,7 @@ const _validators_1 = require("../../../validators/index");
|
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
17
|
class ShoppingCartProductCharacteristicDto {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return {
|
|
19
|
+
return { id: { required: false, type: () => String }, name: { required: true, type: () => String }, action: { required: true, enum: require("../../constants/bp.constants").ShoppingCartItemAction }, charges: { required: false, type: () => Object } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
@@ -6,6 +6,7 @@ import { ShoppingCartServiceDto } from './shopping-cart-service.entity';
|
|
|
6
6
|
import { ShoppingCartTotalsDto } from './shopping-cart-totals.entity';
|
|
7
7
|
import { ShoppingCartParametersDto } from './shopping-cart-parameters.entity';
|
|
8
8
|
export declare class ShoppingCartProductDto {
|
|
9
|
+
id?: string;
|
|
9
10
|
name?: string;
|
|
10
11
|
action: ShoppingCartItemAction;
|
|
11
12
|
productOffering?: ShoppingCartProductOfferingDto;
|
|
@@ -23,7 +23,7 @@ const shopping_cart_parameters_entity_1 = require("./shopping-cart-parameters.en
|
|
|
23
23
|
const _validators_1 = require("../../../validators/index");
|
|
24
24
|
class ShoppingCartProductDto {
|
|
25
25
|
static _OPENAPI_METADATA_FACTORY() {
|
|
26
|
-
return {
|
|
26
|
+
return { id: { required: false, type: () => String }, name: { required: false, type: () => String }, action: { required: true, enum: require("../../constants/bp.constants").ShoppingCartItemAction }, productOffering: { required: false, type: () => require("../product.entity").ShoppingCartProductOfferingDto }, products: { required: false, type: () => [require("./shopping-cart-product.entity").ShoppingCartProductDto] }, productCharacteristics: { required: false, type: () => [require("./shopping-cart-product-characteristic.entity").ShoppingCartProductCharacteristicDto] }, services: { required: false, type: () => [require("./shopping-cart-service.entity").ShoppingCartServiceDto] }, resources: { required: false, type: () => [require("./shopping-cart-resource.entity").ShoppingCartResourceDto] }, totals: { required: false, type: () => require("./shopping-cart-totals.entity").ShoppingCartTotalsDto }, parameters: { required: false, type: () => require("./shopping-cart-parameters.entity").ShoppingCartParametersDto } };
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
__decorate([
|
|
@@ -16,7 +16,7 @@ const _validators_1 = require("../../../validators/index");
|
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
17
|
class ShoppingCartResourceCharacteristicDto {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { name: { required: true, type: () => String }, value: { required: true, type: () => String }, action: { required: true,
|
|
19
|
+
return { name: { required: true, type: () => String }, value: { required: true, type: () => String }, action: { required: true, enum: require("../../constants/bp.constants").ShoppingCartItemAction } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
@@ -19,7 +19,7 @@ const shopping_cart_resource_characteristic_entity_1 = require("./shopping-cart-
|
|
|
19
19
|
const shopping_cart_resource_recipient_entity_1 = require("./shopping-cart-resource-recipient.entity");
|
|
20
20
|
class ShoppingCartResourceDto {
|
|
21
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
22
|
-
return { name: { required: true, type: () => String }, group: { required: true, type: () => String }, action: { required: true,
|
|
22
|
+
return { name: { required: true, type: () => String }, group: { required: true, type: () => String }, action: { required: true, enum: require("../../constants/bp.constants").ShoppingCartItemAction }, characteristics: { required: true, type: () => [require("./shopping-cart-resource-characteristic.entity").ShoppingCartResourceCharacteristicDto] }, provider: { required: true, type: () => String }, recipient: { required: true, type: () => require("./shopping-cart-resource-recipient.entity").ShoppingCartResourceRecipientDto } };
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
__decorate([
|
|
@@ -16,7 +16,7 @@ const _validators_1 = require("../../../validators/index");
|
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
17
|
class ShoppingCartServiceCharacteristicDto {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return {
|
|
19
|
+
return { id: { required: false, type: () => String }, name: { required: true, type: () => String }, value: { required: false, type: () => String }, action: { required: true, enum: require("../../constants/bp.constants").ShoppingCartItemAction } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ShoppingCartItemAction } from '@bss/constants';
|
|
2
2
|
import { ShoppingCartServiceCharacteristicDto } from './shopping-cart-service-characteristic.entity';
|
|
3
3
|
export declare class ShoppingCartServiceDto {
|
|
4
|
+
id?: string;
|
|
4
5
|
name: string;
|
|
5
6
|
action: ShoppingCartItemAction;
|
|
7
|
+
instanceName?: string;
|
|
8
|
+
serviceIdentifier?: string;
|
|
6
9
|
serviceCharacteristics: ShoppingCartServiceCharacteristicDto[];
|
|
7
10
|
migration?: boolean;
|
|
8
11
|
}
|
|
@@ -18,7 +18,7 @@ const class_validator_1 = require("class-validator");
|
|
|
18
18
|
const shopping_cart_service_characteristic_entity_1 = require("./shopping-cart-service-characteristic.entity");
|
|
19
19
|
class ShoppingCartServiceDto {
|
|
20
20
|
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
-
return {
|
|
21
|
+
return { id: { required: false, type: () => String }, name: { required: true, type: () => String }, action: { required: true, enum: require("../../constants/bp.constants").ShoppingCartItemAction }, instanceName: { required: false, type: () => String }, serviceIdentifier: { required: false, type: () => String }, serviceCharacteristics: { required: true, type: () => [require("./shopping-cart-service-characteristic.entity").ShoppingCartServiceCharacteristicDto] }, migration: { required: false, type: () => Boolean } };
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
__decorate([
|
|
@@ -2,6 +2,8 @@ import { ShoppingCartParametersDto } from '.';
|
|
|
2
2
|
import { ShoppingCartProductDto } from './shopping-cart-product.entity';
|
|
3
3
|
export declare class ShoppingCartDto {
|
|
4
4
|
id?: string;
|
|
5
|
+
user?: string;
|
|
6
|
+
chargeDate?: string;
|
|
5
7
|
channel?: string;
|
|
6
8
|
products?: ShoppingCartProductDto[];
|
|
7
9
|
billingAccount?: string;
|
|
@@ -17,7 +17,7 @@ const _1 = require(".");
|
|
|
17
17
|
const shopping_cart_product_entity_1 = require("./shopping-cart-product.entity");
|
|
18
18
|
class ShoppingCartDto {
|
|
19
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
-
return { id: { required: false, type: () => String }, channel: { required: false, type: () => String }, products: { required: false, type: () => [require("./shopping-cart-product.entity").ShoppingCartProductDto] }, billingAccount: { required: false, type: () => String }, parameters: { required: false, type: () => require("./shopping-cart-parameters.entity").ShoppingCartParametersDto } };
|
|
20
|
+
return { id: { required: false, type: () => String }, user: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, channel: { required: false, type: () => String }, products: { required: false, type: () => [require("./shopping-cart-product.entity").ShoppingCartProductDto] }, billingAccount: { required: false, type: () => String }, parameters: { required: false, type: () => require("./shopping-cart-parameters.entity").ShoppingCartParametersDto } };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
__decorate([
|
|
@@ -59,7 +59,11 @@ export declare enum ProrationConditionType {
|
|
|
59
59
|
ALWAYS = "Always"
|
|
60
60
|
}
|
|
61
61
|
export declare enum ShoppingCartItemAction {
|
|
62
|
-
ADD = "add"
|
|
62
|
+
ADD = "add",
|
|
63
|
+
DELETE = "delete",
|
|
64
|
+
MODIFY = "modify",
|
|
65
|
+
NO_CHANGE = "no_change",
|
|
66
|
+
UP_DOWNGRADE = "up_downgrade"
|
|
63
67
|
}
|
|
64
68
|
export declare enum ServiceSpecificationType {
|
|
65
69
|
ADDRESS = "ADDRESS",
|
|
@@ -307,6 +311,7 @@ export declare enum DocumentType {
|
|
|
307
311
|
UI_CUSTOMIZATION = "UI_CUSTOMIZATION"
|
|
308
312
|
}
|
|
309
313
|
export declare enum DeliveryMethod {
|
|
314
|
+
ONLINE = "ONLINE",
|
|
310
315
|
ONLINE_ONLY = "ONLINE_ONLY",
|
|
311
316
|
MAIL = "MAIL"
|
|
312
317
|
}
|
|
@@ -74,6 +74,10 @@ var ProrationConditionType;
|
|
|
74
74
|
var ShoppingCartItemAction;
|
|
75
75
|
(function (ShoppingCartItemAction) {
|
|
76
76
|
ShoppingCartItemAction["ADD"] = "add";
|
|
77
|
+
ShoppingCartItemAction["DELETE"] = "delete";
|
|
78
|
+
ShoppingCartItemAction["MODIFY"] = "modify";
|
|
79
|
+
ShoppingCartItemAction["NO_CHANGE"] = "no_change";
|
|
80
|
+
ShoppingCartItemAction["UP_DOWNGRADE"] = "up_downgrade";
|
|
77
81
|
})(ShoppingCartItemAction = exports.ShoppingCartItemAction || (exports.ShoppingCartItemAction = {}));
|
|
78
82
|
var ServiceSpecificationType;
|
|
79
83
|
(function (ServiceSpecificationType) {
|
|
@@ -345,6 +349,7 @@ var DocumentType;
|
|
|
345
349
|
})(DocumentType = exports.DocumentType || (exports.DocumentType = {}));
|
|
346
350
|
var DeliveryMethod;
|
|
347
351
|
(function (DeliveryMethod) {
|
|
352
|
+
DeliveryMethod["ONLINE"] = "ONLINE";
|
|
348
353
|
DeliveryMethod["ONLINE_ONLY"] = "ONLINE_ONLY";
|
|
349
354
|
DeliveryMethod["MAIL"] = "MAIL";
|
|
350
355
|
})(DeliveryMethod = exports.DeliveryMethod || (exports.DeliveryMethod = {}));
|
|
@@ -111,3 +111,6 @@ export declare const E_PRODUCT_SERVICE_MISSING = "E_PRODUCT_SERVICE_MISSING";
|
|
|
111
111
|
export declare const E_APPLY_CHARGE = "E_APPLY_CHARGE";
|
|
112
112
|
export declare const E_SALE_PROCESS_WITHOUT_SHOPPING_CART = "E_SALE_PROCESS_WITHOUT_SHOPPING_CART";
|
|
113
113
|
export declare const E_SALE_PROCESS_DOCUMENTS_REQUIRED = "E_SALE_PROCESS_DOCUMENTS_REQUIRED";
|
|
114
|
+
export declare const E_FETCH_PRODUCT_ORDERS = "E_FETCH_PRODUCT_ORDERS";
|
|
115
|
+
export declare const E_FETCH_PRODUCT_ORDER = "E_FETCH_PRODUCT_ORDER";
|
|
116
|
+
export declare const E_CUSTOMER_WITHOUT_RELATED_PARTY = "E_CUSTOMER_WITHOUT_RELATED_PARTY";
|
|
@@ -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_SALE_PROCESS_DOCUMENTS_REQUIRED = exports.E_SALE_PROCESS_WITHOUT_SHOPPING_CART = exports.E_APPLY_CHARGE = exports.E_PRODUCT_SERVICE_MISSING = exports.E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_UPDATE_PRODUCT_CATALOG_CACHE = exports.E_DUPLICATE_ENTRY = exports.E_UNHANDLED_KEY = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_LEAD_FILE_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LOGIN_MAX_ATTEMPTS_REACHED = exports.E_TOO_MANY_REQUESTS = void 0;
|
|
5
|
+
exports.E_CUSTOMER_WITHOUT_RELATED_PARTY = exports.E_FETCH_PRODUCT_ORDER = exports.E_FETCH_PRODUCT_ORDERS = exports.E_SALE_PROCESS_DOCUMENTS_REQUIRED = exports.E_SALE_PROCESS_WITHOUT_SHOPPING_CART = exports.E_APPLY_CHARGE = exports.E_PRODUCT_SERVICE_MISSING = exports.E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_UPDATE_PRODUCT_CATALOG_CACHE = exports.E_DUPLICATE_ENTRY = exports.E_UNHANDLED_KEY = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_LEAD_FILE_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LOGIN_MAX_ATTEMPTS_REACHED = exports.E_TOO_MANY_REQUESTS = void 0;
|
|
6
6
|
exports.E_LOGIN = 'E_LOGIN';
|
|
7
7
|
exports.E_ASSIGN_CHANNELS = 'E_ASSIGN_CHANNELS';
|
|
8
8
|
exports.E_UPDATE_PASSWORD = 'E_UPDATE_PASSWORD';
|
|
@@ -116,3 +116,6 @@ exports.E_PRODUCT_SERVICE_MISSING = 'E_PRODUCT_SERVICE_MISSING';
|
|
|
116
116
|
exports.E_APPLY_CHARGE = 'E_APPLY_CHARGE';
|
|
117
117
|
exports.E_SALE_PROCESS_WITHOUT_SHOPPING_CART = 'E_SALE_PROCESS_WITHOUT_SHOPPING_CART';
|
|
118
118
|
exports.E_SALE_PROCESS_DOCUMENTS_REQUIRED = 'E_SALE_PROCESS_DOCUMENTS_REQUIRED';
|
|
119
|
+
exports.E_FETCH_PRODUCT_ORDERS = 'E_FETCH_PRODUCT_ORDERS';
|
|
120
|
+
exports.E_FETCH_PRODUCT_ORDER = 'E_FETCH_PRODUCT_ORDER';
|
|
121
|
+
exports.E_CUSTOMER_WITHOUT_RELATED_PARTY = 'E_CUSTOMER_WITHOUT_RELATED_PARTY';
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./common.constants"), exports);
|
|
|
18
18
|
__exportStar(require("./error.constants"), exports);
|
|
19
19
|
__exportStar(require("./number-pool.constants"), exports);
|
|
20
20
|
__exportStar(require("./jwt-decoded.entity"), exports);
|
|
21
|
+
__exportStar(require("./updowngrade.error.constants"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const E_UPDOWNGRADE_MORE_THAN_ONE_RULE = "E_UPDOWNGRADE_MORE_THAN_ONE_RULE";
|
|
2
|
+
export declare const E_UPDOWNGRADE_NONEXISTENT_RULE = "E_UPDOWNGRADE_NONEXISTENT_RULE";
|
|
3
|
+
export declare const E_UPDOWNGRADE_NONEXISTENT_SUMMARY = "E_UPDOWNGRADE_NONEXISTENT_SUMMARY";
|
|
4
|
+
export declare const E_UPDOWNGRADE_NONEXISTENT_MIGRATION_PATH = "E_UPDOWNGRADE_NONEXISTENT_MIGRATION_PATH";
|
|
5
|
+
export declare const E_UPDOWNGRADE_NONEXISTENT_ORDER = "E_UPDOWNGRADE_NONEXISTENT_ORDER";
|
|
6
|
+
export declare const E_UPDOWNGRADE_NONEXISTENT_ORDER_BY_PRODUCT_REFERENCE = "E_UPDOWNGRADE_NONEXISTENT_ORDER_BY_PRODUCT_REFERENCE";
|
|
7
|
+
export declare const E_UPDOWNGRADE_NONEXISTENT_PRODUCT_OFFERING = "E_UPDOWNGRADE_NONEXISTENT_PRODUCT_OFFERING";
|
|
8
|
+
export declare const E_UPDOWNGRADE_MORE_THAN_ONE_PRODUCT_OFFERING = "E_UPDOWNGRADE_MORE_THAN_ONE_PRODUCT_OFFERING";
|
|
9
|
+
export declare const E_UPDOWNGRADE_UNHANDLED_PRODUCT_CHARACTERISITIC = "E_UPDOWNGRADE_UNHANDLED_PRODUCT_CHARACTERISITIC";
|
|
10
|
+
export declare const E_UPDOWNGRADE_UNHANDLED_SERVICE_SPECIFICATION_CHARACTERISITIC = "E_UPDOWNGRADE_UNHANDLED_SERVICE_SPECIFICATION_CHARACTERISITIC";
|
|
11
|
+
export declare const E_UPDOWNGRADE_SERVICE_SPECIFICATION_CHARACTERISITIC_MULTIPLE_VALUES = "E_UPDOWNGRADE_SERVICE_SPECIFICATION_CHARACTERISITIC_MULTIPLE_VALUES";
|
|
12
|
+
export declare const E_UPDOWNGRADE_MANDATORY_SERVICE_SPECIFICATION_CHARACTERISITIC_MISSING = "E_UPDOWNGRADE_MANDATORY_SERVICE_SPECIFICATION_CHARACTERISITIC_MISSING";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.E_UPDOWNGRADE_MANDATORY_SERVICE_SPECIFICATION_CHARACTERISITIC_MISSING = exports.E_UPDOWNGRADE_SERVICE_SPECIFICATION_CHARACTERISITIC_MULTIPLE_VALUES = exports.E_UPDOWNGRADE_UNHANDLED_SERVICE_SPECIFICATION_CHARACTERISITIC = exports.E_UPDOWNGRADE_UNHANDLED_PRODUCT_CHARACTERISITIC = exports.E_UPDOWNGRADE_MORE_THAN_ONE_PRODUCT_OFFERING = exports.E_UPDOWNGRADE_NONEXISTENT_PRODUCT_OFFERING = exports.E_UPDOWNGRADE_NONEXISTENT_ORDER_BY_PRODUCT_REFERENCE = exports.E_UPDOWNGRADE_NONEXISTENT_ORDER = exports.E_UPDOWNGRADE_NONEXISTENT_MIGRATION_PATH = exports.E_UPDOWNGRADE_NONEXISTENT_SUMMARY = exports.E_UPDOWNGRADE_NONEXISTENT_RULE = exports.E_UPDOWNGRADE_MORE_THAN_ONE_RULE = void 0;
|
|
4
|
+
exports.E_UPDOWNGRADE_MORE_THAN_ONE_RULE = 'E_UPDOWNGRADE_MORE_THAN_ONE_RULE';
|
|
5
|
+
exports.E_UPDOWNGRADE_NONEXISTENT_RULE = 'E_UPDOWNGRADE_NONEXISTENT_RULE';
|
|
6
|
+
exports.E_UPDOWNGRADE_NONEXISTENT_SUMMARY = 'E_UPDOWNGRADE_NONEXISTENT_SUMMARY';
|
|
7
|
+
exports.E_UPDOWNGRADE_NONEXISTENT_MIGRATION_PATH = 'E_UPDOWNGRADE_NONEXISTENT_MIGRATION_PATH';
|
|
8
|
+
exports.E_UPDOWNGRADE_NONEXISTENT_ORDER = 'E_UPDOWNGRADE_NONEXISTENT_ORDER';
|
|
9
|
+
exports.E_UPDOWNGRADE_NONEXISTENT_ORDER_BY_PRODUCT_REFERENCE = 'E_UPDOWNGRADE_NONEXISTENT_ORDER_BY_PRODUCT_REFERENCE';
|
|
10
|
+
exports.E_UPDOWNGRADE_NONEXISTENT_PRODUCT_OFFERING = 'E_UPDOWNGRADE_NONEXISTENT_PRODUCT_OFFERING';
|
|
11
|
+
exports.E_UPDOWNGRADE_MORE_THAN_ONE_PRODUCT_OFFERING = 'E_UPDOWNGRADE_MORE_THAN_ONE_PRODUCT_OFFERING';
|
|
12
|
+
exports.E_UPDOWNGRADE_UNHANDLED_PRODUCT_CHARACTERISITIC = 'E_UPDOWNGRADE_UNHANDLED_PRODUCT_CHARACTERISITIC';
|
|
13
|
+
exports.E_UPDOWNGRADE_UNHANDLED_SERVICE_SPECIFICATION_CHARACTERISITIC = 'E_UPDOWNGRADE_UNHANDLED_SERVICE_SPECIFICATION_CHARACTERISITIC';
|
|
14
|
+
exports.E_UPDOWNGRADE_SERVICE_SPECIFICATION_CHARACTERISITIC_MULTIPLE_VALUES = 'E_UPDOWNGRADE_SERVICE_SPECIFICATION_CHARACTERISITIC_MULTIPLE_VALUES';
|
|
15
|
+
exports.E_UPDOWNGRADE_MANDATORY_SERVICE_SPECIFICATION_CHARACTERISITIC_MISSING = 'E_UPDOWNGRADE_MANDATORY_SERVICE_SPECIFICATION_CHARACTERISITIC_MISSING';
|
|
@@ -29,8 +29,8 @@ export declare class ArsContactMediumDto {
|
|
|
29
29
|
}
|
|
30
30
|
export declare class ArsIndividualCustomerDto {
|
|
31
31
|
title?: PersonTitle;
|
|
32
|
-
firstName
|
|
33
|
-
lastName
|
|
32
|
+
firstName?: string;
|
|
33
|
+
lastName?: string;
|
|
34
34
|
birthDate?: string;
|
|
35
35
|
identification?: ArsCustomerAccountIdentificationDto;
|
|
36
36
|
contactMediums?: ArsContactMediumDto[];
|
|
@@ -29,7 +29,7 @@ class ArsContactMediumDto {
|
|
|
29
29
|
exports.ArsContactMediumDto = ArsContactMediumDto;
|
|
30
30
|
class ArsIndividualCustomerDto {
|
|
31
31
|
static _OPENAPI_METADATA_FACTORY() {
|
|
32
|
-
return { title: { required: false, enum: require("../../../../bss/constants/bp.constants").PersonTitle }, firstName: { required:
|
|
32
|
+
return { title: { required: false, enum: require("../../../../bss/constants/bp.constants").PersonTitle }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, birthDate: { required: false, type: () => String }, identification: { required: false, type: () => require("./create.entity").ArsCustomerAccountIdentificationDto }, contactMediums: { required: false, type: () => [require("./create.entity").ArsContactMediumDto] }, relatedParties: { required: false, type: () => [require("../../../../bss/bearingpoint/customer/related-party.entity").BpRelatedPartyDto] } };
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
exports.ArsIndividualCustomerDto = ArsIndividualCustomerDto;
|
package/dist/database/index.d.ts
CHANGED
package/dist/database/index.js
CHANGED
|
@@ -29,3 +29,4 @@ __exportStar(require("./leads-data.entity"), exports);
|
|
|
29
29
|
__exportStar(require("./acl/user.entity"), exports);
|
|
30
30
|
__exportStar(require("./leads-file.entity"), exports);
|
|
31
31
|
__exportStar(require("./template.entity"), exports);
|
|
32
|
+
__exportStar(require("./updowngrade-product-configuration.entity"), exports);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpDownGradeProductConfigurationDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let UpDownGradeProductConfigurationDto = class UpDownGradeProductConfigurationDto {
|
|
16
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
+
return { id: { required: true, type: () => Number }, product: { required: true, type: () => String }, configuration: { required: true, type: () => String }, createdBy: { required: true, type: () => String }, createdAt: { required: true, type: () => Date }, updatedBy: { required: true, type: () => String }, updatedAt: { required: true, type: () => Date } };
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryColumn)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], UpDownGradeProductConfigurationDto.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
26
|
+
(0, typeorm_1.Index)({ unique: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpDownGradeProductConfigurationDto.prototype, "product", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpDownGradeProductConfigurationDto.prototype, "configuration", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, default: null }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], UpDownGradeProductConfigurationDto.prototype, "createdBy", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'datetime', default: 'CURRENT_TIMESTAMP' }),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], UpDownGradeProductConfigurationDto.prototype, "createdAt", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, default: null }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], UpDownGradeProductConfigurationDto.prototype, "updatedBy", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'datetime', default: 'CURRENT_TIMESTAMP', onUpdate: 'CURRENT_TIMESTAMP' }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], UpDownGradeProductConfigurationDto.prototype, "updatedAt", void 0);
|
|
49
|
+
UpDownGradeProductConfigurationDto = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)({ name: 'updowngrade-product-configuration' })
|
|
51
|
+
], UpDownGradeProductConfigurationDto);
|
|
52
|
+
exports.UpDownGradeProductConfigurationDto = UpDownGradeProductConfigurationDto;
|
|
@@ -53,7 +53,7 @@ __decorate([
|
|
|
53
53
|
exports.ShoppingCartCreateDto = ShoppingCartCreateDto;
|
|
54
54
|
class ShoppingCartBundleDto {
|
|
55
55
|
static _OPENAPI_METADATA_FACTORY() {
|
|
56
|
-
return { action: { required: true,
|
|
56
|
+
return { action: { required: true, enum: require("../../../bss/constants/bp.constants").ShoppingCartItemAction }, productOffering: { required: false, type: () => require("../../../bss/bearingpoint/product.entity").ShoppingCartProductOfferingDto }, products: { required: true, type: () => [require("../../../bss/bearingpoint/shopping-cart/shopping-cart-product.entity").ShoppingCartProductDto] }, productCharacteristics: { required: false, type: () => [require("../../../bss/bearingpoint/shopping-cart/shopping-cart-product-characteristic.entity").ShoppingCartProductCharacteristicDto] } };
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
__decorate([
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ShoppingCartDto, ShoppingCartProductOfferingDto } from '@bss/bearingpoint';
|
|
2
|
+
import { ShoppingCartItemAction } from '@bss/constants';
|
|
3
|
+
import { CustomError } from '@common/exception';
|
|
4
|
+
export declare class MigrationPathDto {
|
|
5
|
+
from: string;
|
|
6
|
+
to: string;
|
|
7
|
+
action: ShoppingCartItemAction;
|
|
8
|
+
group?: string;
|
|
9
|
+
changePath?: ShoppingCartProductOfferingDto;
|
|
10
|
+
}
|
|
11
|
+
export declare class UpDownGradeConfigurationProductCharacteristicDto {
|
|
12
|
+
name: string;
|
|
13
|
+
action: ShoppingCartItemAction;
|
|
14
|
+
to?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class UpDownGradeConfigurationDto {
|
|
17
|
+
productCharacteristics: UpDownGradeConfigurationProductCharacteristicDto[];
|
|
18
|
+
}
|
|
19
|
+
export declare class SummaryChracteristicsGroupDto {
|
|
20
|
+
all: string[];
|
|
21
|
+
mandatory: string[];
|
|
22
|
+
optional: string[];
|
|
23
|
+
}
|
|
24
|
+
export declare class UpDownGradeBaseOfferDto {
|
|
25
|
+
from: string;
|
|
26
|
+
to: string;
|
|
27
|
+
}
|
|
28
|
+
export declare class CustomerNotificationDto {
|
|
29
|
+
sendNotification: boolean;
|
|
30
|
+
mobilePhone?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare class UpDownGradeDto {
|
|
33
|
+
dryrun?: boolean;
|
|
34
|
+
billingAccountId: string;
|
|
35
|
+
user?: string;
|
|
36
|
+
chargeDate?: string;
|
|
37
|
+
customerNotification: CustomerNotificationDto;
|
|
38
|
+
from: string;
|
|
39
|
+
to: string;
|
|
40
|
+
baseOffers: UpDownGradeBaseOfferDto[];
|
|
41
|
+
}
|
|
42
|
+
export declare class BulkUpDownGradeDto {
|
|
43
|
+
dryrun?: boolean;
|
|
44
|
+
user?: string;
|
|
45
|
+
chargeDate?: string;
|
|
46
|
+
customerNotification: CustomerNotificationDto;
|
|
47
|
+
list: UpDownGradeDto[];
|
|
48
|
+
}
|
|
49
|
+
export declare class BulkUpDownGradeOutputDto extends CustomError {
|
|
50
|
+
error: boolean;
|
|
51
|
+
shoppingCart?: ShoppingCartDto;
|
|
52
|
+
}
|
|
53
|
+
export declare class BulkUpDownGradeResDto {
|
|
54
|
+
input: UpDownGradeDto;
|
|
55
|
+
output: BulkUpDownGradeOutputDto;
|
|
56
|
+
}
|