adamo-types 2.0.99-sit → 2.0.100-sit
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/customer/customer-product.entity.d.ts +4 -9
- package/dist/bss/customer/customer-product.entity.js +16 -7
- package/dist/sys03/shopping-cart/shopping-cart-summary.entity.d.ts +4 -0
- package/dist/sys03/shopping-cart/shopping-cart-summary.entity.js +8 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,9 @@ export declare class CustomerProductCharacteristicDto {
|
|
|
20
20
|
includedAmount?: number;
|
|
21
21
|
excludedAmount?: number;
|
|
22
22
|
}
|
|
23
|
+
declare const CustomerProductShoppingCartCharacteristicDto_base: import("@nestjs/common").Type<Pick<CustomerProductCharacteristicDto, "name" | "id" | "bindingDays" | "bindingMonths" | "activatedAt" | "terminatedAt" | "completedPercentage">>;
|
|
24
|
+
export declare class CustomerProductShoppingCartCharacteristicDto extends CustomerProductShoppingCartCharacteristicDto_base {
|
|
25
|
+
}
|
|
23
26
|
export declare class CustomerProductServiceDataDto {
|
|
24
27
|
type?: ShoppingCartProductType;
|
|
25
28
|
serviceCharacteristicInstanceValue?: string;
|
|
@@ -61,15 +64,7 @@ export declare class CustomerProductDto extends CustomerProductServiceDataDto {
|
|
|
61
64
|
characteristics?: CustomerProductCharacteristicDto[];
|
|
62
65
|
products?: CustomerProductDto[];
|
|
63
66
|
}
|
|
64
|
-
export declare class CustomerProductContractDto {
|
|
65
|
-
id: string;
|
|
66
|
-
name: string;
|
|
67
|
-
displayName?: string;
|
|
68
|
-
bindingMonths?: number;
|
|
69
|
-
bindingDays?: number;
|
|
70
|
-
activatedAt: string;
|
|
71
|
-
terminatedAt?: string;
|
|
72
|
-
}
|
|
73
67
|
export declare class CustomerProductDtoBuilder extends Builder<CustomerProductDto> {
|
|
74
68
|
setDefaults(): CustomerProductDto;
|
|
75
69
|
}
|
|
70
|
+
export {};
|
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerProductDtoBuilder = exports.
|
|
3
|
+
exports.CustomerProductDtoBuilder = exports.CustomerProductDto = exports.CustomerProductServiceDto = exports.CustomerProductServiceCharacteristicDto = exports.CustomerProductServiceDataDto = exports.CustomerProductShoppingCartCharacteristicDto = exports.CustomerProductCharacteristicDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
const product_1 = require("../product");
|
|
6
6
|
const helpers_1 = require("../../common/helpers/helpers");
|
|
7
7
|
const faker_1 = require("@faker-js/faker");
|
|
8
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
8
9
|
class CustomerProductCharacteristicDto {
|
|
9
10
|
static _OPENAPI_METADATA_FACTORY() {
|
|
10
11
|
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, displayName: { required: false, type: () => String }, displayDescription: { required: false, type: () => String }, configurationAttributes: { required: false, type: () => [require("../../sys03/shopping-cart/shopping-cart.common.entity").ShoppingCartConfigurationAttributeDto] }, bindingMonths: { required: false, type: () => Number }, bindingDays: { required: false, type: () => Number }, activatedAt: { required: true, type: () => String }, terminatedAt: { required: false, type: () => String }, completedPercentage: { required: false, type: () => Number }, displayAmount: { required: false, type: () => Number }, includedAmount: { required: false, type: () => Number }, excludedAmount: { required: false, type: () => Number } };
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
exports.CustomerProductCharacteristicDto = CustomerProductCharacteristicDto;
|
|
15
|
+
class CustomerProductShoppingCartCharacteristicDto extends (0, swagger_1.PickType)(CustomerProductCharacteristicDto, [
|
|
16
|
+
'id',
|
|
17
|
+
'name',
|
|
18
|
+
'bindingDays',
|
|
19
|
+
'bindingMonths',
|
|
20
|
+
'activatedAt',
|
|
21
|
+
'terminatedAt',
|
|
22
|
+
'completedPercentage'
|
|
23
|
+
]) {
|
|
24
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
+
return {};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.CustomerProductShoppingCartCharacteristicDto = CustomerProductShoppingCartCharacteristicDto;
|
|
14
29
|
class CustomerProductServiceDataDto {
|
|
15
30
|
static _OPENAPI_METADATA_FACTORY() {
|
|
16
31
|
return { type: { required: false, enum: require("../../common/constants/common.constants").ShoppingCartProductType }, serviceCharacteristicInstanceValue: { required: false, type: () => String }, serviceCharacteristicName: { required: false, type: () => String }, serviceCharacteristicValue: { required: false, type: () => Object }, services: { required: false, type: () => [require("./customer-product.entity").CustomerProductServiceDto] } };
|
|
@@ -39,12 +54,6 @@ class CustomerProductDto extends CustomerProductServiceDataDto {
|
|
|
39
54
|
}
|
|
40
55
|
}
|
|
41
56
|
exports.CustomerProductDto = CustomerProductDto;
|
|
42
|
-
class CustomerProductContractDto {
|
|
43
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
44
|
-
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, displayName: { required: false, type: () => String }, bindingMonths: { required: false, type: () => Number }, bindingDays: { required: false, type: () => Number }, activatedAt: { required: true, type: () => String }, terminatedAt: { required: false, type: () => String } };
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.CustomerProductContractDto = CustomerProductContractDto;
|
|
48
57
|
class CustomerProductDtoBuilder extends helpers_1.Builder {
|
|
49
58
|
setDefaults() {
|
|
50
59
|
const { key: name, productName: displayName } = (0, helpers_1.fakerCommerceProductNameAndKey)();
|
|
@@ -64,6 +64,7 @@ export declare class ShoppingCartSummaryBundleProductResDto {
|
|
|
64
64
|
}
|
|
65
65
|
export declare class ShoppingCartSummaryBundleResDto {
|
|
66
66
|
name: string;
|
|
67
|
+
configurationType?: string;
|
|
67
68
|
displayName: string;
|
|
68
69
|
displayDescription: string;
|
|
69
70
|
promotions: ShoppingCartSummaryCharacteristicResDto[];
|
|
@@ -79,6 +80,9 @@ export declare class ShoppingCartSummaryResDto {
|
|
|
79
80
|
prices: ShoppingCartSummaryPriceResDto[];
|
|
80
81
|
parameters?: ShoppingCartParametersDto;
|
|
81
82
|
}
|
|
83
|
+
export declare class ShoppingCartDigitalContractSummaryResDto extends ShoppingCartSummaryResDto {
|
|
84
|
+
tvPrices: ShoppingCartSummaryPriceResDto[];
|
|
85
|
+
}
|
|
82
86
|
export declare class DefaultShoppingCartSummaryBundleResDto {
|
|
83
87
|
shoppingCart: ShoppingCartDto;
|
|
84
88
|
summary: ShoppingCartSummaryBundleResDto;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShoppingCartSummaryAggrupationResDto = exports.DefaultShoppingCartSummaryResDto = exports.DefaultShoppingCartSummaryBundleResDto = exports.ShoppingCartSummaryResDto = exports.ShoppingCartSummaryBundleResDto = exports.ShoppingCartSummaryBundleProductResDto = exports.ShoppingCartSummaryCharacteristicResDto = exports.ShoppingCartSummaryBundlePriceResDto = exports.ShoppingCartSummaryChargeAndCreditResDto = exports.ShoppingCartSummaryPriceResDto = exports.ShoppingCartSummaryContractResDto = void 0;
|
|
3
|
+
exports.ShoppingCartSummaryAggrupationResDto = exports.DefaultShoppingCartSummaryResDto = exports.DefaultShoppingCartSummaryBundleResDto = exports.ShoppingCartDigitalContractSummaryResDto = exports.ShoppingCartSummaryResDto = exports.ShoppingCartSummaryBundleResDto = exports.ShoppingCartSummaryBundleProductResDto = exports.ShoppingCartSummaryCharacteristicResDto = exports.ShoppingCartSummaryBundlePriceResDto = exports.ShoppingCartSummaryChargeAndCreditResDto = exports.ShoppingCartSummaryPriceResDto = exports.ShoppingCartSummaryContractResDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class ShoppingCartSummaryContractResDto {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
@@ -40,7 +40,7 @@ class ShoppingCartSummaryBundleProductResDto {
|
|
|
40
40
|
exports.ShoppingCartSummaryBundleProductResDto = ShoppingCartSummaryBundleProductResDto;
|
|
41
41
|
class ShoppingCartSummaryBundleResDto {
|
|
42
42
|
static _OPENAPI_METADATA_FACTORY() {
|
|
43
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, promotions: { required: true, type: () => [require("./shopping-cart-summary.entity").ShoppingCartSummaryCharacteristicResDto] }, installationCosts: { required: false, type: () => [require("./shopping-cart-summary.entity").ShoppingCartSummaryCharacteristicResDto] }, contract: { required: true, type: () => require("./shopping-cart-summary.entity").ShoppingCartSummaryContractResDto }, configurationAttributes: { required: false, type: () => [require("./shopping-cart.common.entity").ShoppingCartConfigurationAttributeDto] }, products: { required: true, type: () => [require("./shopping-cart-summary.entity").ShoppingCartSummaryBundleProductResDto] }, prices: { required: true, type: () => [require("./shopping-cart-summary.entity").ShoppingCartSummaryPriceResDto] } };
|
|
43
|
+
return { name: { required: true, type: () => String }, configurationType: { required: false, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, promotions: { required: true, type: () => [require("./shopping-cart-summary.entity").ShoppingCartSummaryCharacteristicResDto] }, installationCosts: { required: false, type: () => [require("./shopping-cart-summary.entity").ShoppingCartSummaryCharacteristicResDto] }, contract: { required: true, type: () => require("./shopping-cart-summary.entity").ShoppingCartSummaryContractResDto }, configurationAttributes: { required: false, type: () => [require("./shopping-cart.common.entity").ShoppingCartConfigurationAttributeDto] }, products: { required: true, type: () => [require("./shopping-cart-summary.entity").ShoppingCartSummaryBundleProductResDto] }, prices: { required: true, type: () => [require("./shopping-cart-summary.entity").ShoppingCartSummaryPriceResDto] } };
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.ShoppingCartSummaryBundleResDto = ShoppingCartSummaryBundleResDto;
|
|
@@ -50,6 +50,12 @@ class ShoppingCartSummaryResDto {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
exports.ShoppingCartSummaryResDto = ShoppingCartSummaryResDto;
|
|
53
|
+
class ShoppingCartDigitalContractSummaryResDto extends ShoppingCartSummaryResDto {
|
|
54
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
55
|
+
return { tvPrices: { required: true, type: () => [require("./shopping-cart-summary.entity").ShoppingCartSummaryPriceResDto] } };
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ShoppingCartDigitalContractSummaryResDto = ShoppingCartDigitalContractSummaryResDto;
|
|
53
59
|
class DefaultShoppingCartSummaryBundleResDto {
|
|
54
60
|
static _OPENAPI_METADATA_FACTORY() {
|
|
55
61
|
return { shoppingCart: { required: true, type: () => require("../../bss/bearingpoint/shopping-cart/shopping-cart.entity").ShoppingCartDto }, summary: { required: true, type: () => require("./shopping-cart-summary.entity").ShoppingCartSummaryBundleResDto } };
|