adamo-types 1.2.131-sit → 1.2.133-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/bearingpoint/customer/customer-account.entity.js +3 -2
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity.d.ts +1 -0
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity.js +1 -1
- package/dist/bss/constants/bss.constants.d.ts +1 -0
- package/dist/bss/constants/bss.constants.js +2 -0
- package/dist/bss/customer/customer-product.entity.d.ts +4 -0
- package/dist/bss/customer/customer-product.entity.js +32 -1
- package/dist/bss/product/product.entity.js +1 -1
- package/dist/common/edge-bss/shopping-cart/res/other.entity.d.ts +2 -0
- package/dist/common/edge-bss/shopping-cart/res/other.entity.js +2 -2
- package/dist/common/helpers/helpers.d.ts +1 -0
- package/dist/common/helpers/helpers.js +5 -1
- package/dist/database/index.d.ts +1 -0
- package/dist/database/index.js +1 -0
- package/dist/database/product-mobile-profile-equivalence.entity.d.ts +11 -0
- package/dist/database/product-mobile-profile-equivalence.entity.js +62 -0
- package/dist/database/product-transition-configuration.entity.d.ts +1 -1
- package/dist/database/product-transition-configuration.entity.js +1 -1
- package/dist/sys03/sale-process/sale-process.entity.js +2 -1
- package/dist/sys03/updowngrade/index.d.ts +3 -2
- package/dist/sys03/updowngrade/index.js +3 -2
- package/dist/sys03/updowngrade/product-characteristic-equivalence.entity.d.ts +17 -5
- package/dist/sys03/updowngrade/product-characteristic-equivalence.entity.js +21 -11
- package/dist/sys03/updowngrade/product-mobile-profile-equivalence.entity.d.ts +30 -0
- package/dist/sys03/updowngrade/product-mobile-profile-equivalence.entity.js +109 -0
- package/dist/sys03/updowngrade/product-transition-configuration.entity.d.ts +25 -0
- package/dist/sys03/updowngrade/product-transition-configuration.entity.js +96 -0
- package/dist/sys03/updowngrade/product-transition-group.entity.d.ts +85 -0
- package/dist/sys03/updowngrade/product-transition-group.entity.js +163 -0
- package/dist/sys03/updowngrade/updowngrade.constants.d.ts +16 -1
- package/dist/sys03/updowngrade/updowngrade.constants.js +18 -1
- package/dist/sys03/updowngrade/updowngrade.entity.d.ts +10 -25
- package/dist/sys03/updowngrade/updowngrade.entity.js +1 -81
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/sys03/updowngrade/internal.d.ts +0 -10
- package/dist/sys03/updowngrade/internal.js +0 -2
- package/dist/sys03/updowngrade/product-transition.entity.d.ts +0 -41
- package/dist/sys03/updowngrade/product-transition.entity.js +0 -40
|
@@ -79,9 +79,10 @@ __decorate([
|
|
|
79
79
|
exports.BpCustomerAccountDto = BpCustomerAccountDto;
|
|
80
80
|
class BpCustomerAccountDtoBuilder extends helpers_1.Builder {
|
|
81
81
|
setDefaults() {
|
|
82
|
+
const id = (0, helpers_1.fakerCustomerId)();
|
|
82
83
|
return {
|
|
83
|
-
id
|
|
84
|
-
billingAccount:
|
|
84
|
+
id,
|
|
85
|
+
billingAccount: id,
|
|
85
86
|
state: faker_1.faker.helpers.enumValue(constants_1.AccountState),
|
|
86
87
|
type: faker_1.faker.helpers.enumValue(constants_1.CustomerType),
|
|
87
88
|
preferredLanguage: faker_1.faker.helpers.enumValue(constants_1.PreferredLanguage),
|
|
@@ -52,6 +52,7 @@ export declare class ShoppingCartParametersDto {
|
|
|
52
52
|
originalServices?: string;
|
|
53
53
|
referenceProductId?: string;
|
|
54
54
|
referenceProductName?: string;
|
|
55
|
+
referenceProductServiceProfile?: string;
|
|
55
56
|
referenceProductServiceCharacteristicName?: string;
|
|
56
57
|
referenceProductServiceCharacteristicValue?: string;
|
|
57
58
|
referenceInstanceAction?: CustomerProductInstanceAction;
|
|
@@ -11,7 +11,7 @@ class ShoppingCartEntityParametersDto {
|
|
|
11
11
|
exports.ShoppingCartEntityParametersDto = ShoppingCartEntityParametersDto;
|
|
12
12
|
class ShoppingCartParametersDto {
|
|
13
13
|
static _OPENAPI_METADATA_FACTORY() {
|
|
14
|
-
return { addressInfo: { required: false, type: () => String }, apartmentId: { required: false, type: () => String }, block: { required: false, type: () => String }, cartCreatedBy: { required: false, type: () => String }, city: { required: false, type: () => String }, competition: { required: false, type: () => String }, country: { required: false, type: () => String }, customerType: { required: false, type: () => String }, door: { required: false, type: () => String }, entrance: { required: false, type: () => String }, fiberhood: { required: false, type: () => String }, floor: { required: false, type: () => String }, lat: { required: false, type: () => String }, lng: { required: false, type: () => String }, migrationCartCreatedBy: { required: false, type: () => String }, municipality: { required: false, type: () => String }, network: { required: false, type: () => String }, postcode: { required: false, type: () => String }, projectCode: { required: false, type: () => String }, projectId: { required: false, type: () => String }, province: { required: false, type: () => String }, salesAreaId: { required: false, type: () => String }, salesAreaName: { required: false, type: () => String }, salesPerson: { required: false, type: () => String }, serviceable: { required: false, type: () => String }, serviceableAge: { required: false, type: () => String }, serviceableStatus: { required: false, type: () => String }, streetAddressId: { required: false, type: () => String }, streetName: { required: false, type: () => String }, streetNumber: { required: false, type: () => String }, streetType: { required: false, type: () => String }, technology: { required: false, type: () => String }, shoppingCartProcess: { required: false, type: () => Object }, transitionShoppingCartType: { required: false, type: () => Object }, originalId: { required: false, type: () => String }, originalAction: { required: false, type: () => String }, originalSourceProduct: { required: false, type: () => String }, originalProductOffering: { required: false, type: () => String }, originalReason: { required: false, type: () => String }, originalProducts: { required: false, type: () => String }, originalProductCharacteristics: { required: false, type: () => String }, originalServices: { required: false, type: () => String }, referenceProductId: { required: false, type: () => String }, referenceProductName: { required: false, type: () => String }, referenceProductServiceCharacteristicName: { required: false, type: () => String }, referenceProductServiceCharacteristicValue: { required: false, type: () => String }, referenceInstanceAction: { required: false, enum: require("../../../sys03/customer/customer.constants").CustomerProductInstanceAction } };
|
|
14
|
+
return { addressInfo: { required: false, type: () => String }, apartmentId: { required: false, type: () => String }, block: { required: false, type: () => String }, cartCreatedBy: { required: false, type: () => String }, city: { required: false, type: () => String }, competition: { required: false, type: () => String }, country: { required: false, type: () => String }, customerType: { required: false, type: () => String }, door: { required: false, type: () => String }, entrance: { required: false, type: () => String }, fiberhood: { required: false, type: () => String }, floor: { required: false, type: () => String }, lat: { required: false, type: () => String }, lng: { required: false, type: () => String }, migrationCartCreatedBy: { required: false, type: () => String }, municipality: { required: false, type: () => String }, network: { required: false, type: () => String }, postcode: { required: false, type: () => String }, projectCode: { required: false, type: () => String }, projectId: { required: false, type: () => String }, province: { required: false, type: () => String }, salesAreaId: { required: false, type: () => String }, salesAreaName: { required: false, type: () => String }, salesPerson: { required: false, type: () => String }, serviceable: { required: false, type: () => String }, serviceableAge: { required: false, type: () => String }, serviceableStatus: { required: false, type: () => String }, streetAddressId: { required: false, type: () => String }, streetName: { required: false, type: () => String }, streetNumber: { required: false, type: () => String }, streetType: { required: false, type: () => String }, technology: { required: false, type: () => String }, shoppingCartProcess: { required: false, type: () => Object }, transitionShoppingCartType: { required: false, type: () => Object }, originalId: { required: false, type: () => String }, originalAction: { required: false, type: () => String }, originalSourceProduct: { required: false, type: () => String }, originalProductOffering: { required: false, type: () => String }, originalReason: { required: false, type: () => String }, originalProducts: { required: false, type: () => String }, originalProductCharacteristics: { required: false, type: () => String }, originalServices: { required: false, type: () => String }, referenceProductId: { required: false, type: () => String }, referenceProductName: { required: false, type: () => String }, referenceProductServiceProfile: { required: false, type: () => String }, referenceProductServiceCharacteristicName: { required: false, type: () => String }, referenceProductServiceCharacteristicValue: { required: false, type: () => String }, referenceInstanceAction: { required: false, enum: require("../../../sys03/customer/customer.constants").CustomerProductInstanceAction } };
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.ShoppingCartParametersDto = ShoppingCartParametersDto;
|
|
@@ -43,6 +43,7 @@ export declare enum CacheKeyType {
|
|
|
43
43
|
JOB_SALE_PROCESS = "job-sale-process",
|
|
44
44
|
LOCK_PRODUCT_CATALOG = "lock#product-catalog",
|
|
45
45
|
PRODUCT_CHARACTERISTIC_EQUIVALENCE = "product-characteristic-equivalence",
|
|
46
|
+
PRODUCT_MOBILE_PROFILE_EQUIVALENCE_BY_TO_PRODUCT = "product-mobile-profile-equivalence-by-to-product",
|
|
46
47
|
PRODUCT_TRANSITION_CONFIGURATION = "product-transition-configuration",
|
|
47
48
|
PRODUCT_TRANSITION_GROUPS = "product-transition-groups",
|
|
48
49
|
SHOPPING_CART_AVAILABLE_PRODUCT = "shopping-cart-available-product",
|
|
@@ -63,6 +63,7 @@ var CacheKeyType;
|
|
|
63
63
|
CacheKeyType["JOB_SALE_PROCESS"] = "job-sale-process";
|
|
64
64
|
CacheKeyType["LOCK_PRODUCT_CATALOG"] = "lock#product-catalog";
|
|
65
65
|
CacheKeyType["PRODUCT_CHARACTERISTIC_EQUIVALENCE"] = "product-characteristic-equivalence";
|
|
66
|
+
CacheKeyType["PRODUCT_MOBILE_PROFILE_EQUIVALENCE_BY_TO_PRODUCT"] = "product-mobile-profile-equivalence-by-to-product";
|
|
66
67
|
CacheKeyType["PRODUCT_TRANSITION_CONFIGURATION"] = "product-transition-configuration";
|
|
67
68
|
CacheKeyType["PRODUCT_TRANSITION_GROUPS"] = "product-transition-groups";
|
|
68
69
|
CacheKeyType["SHOPPING_CART_AVAILABLE_PRODUCT"] = "shopping-cart-available-product";
|
|
@@ -111,6 +112,7 @@ exports.CacheKeyTypeTtl = {
|
|
|
111
112
|
[CacheKeyType.LOCK_PRODUCT_CATALOG]: 60 * 15,
|
|
112
113
|
[CacheKeyType.PRODUCT_TRANSITION_CONFIGURATION]: 60 * 60 * 24,
|
|
113
114
|
[CacheKeyType.PRODUCT_CHARACTERISTIC_EQUIVALENCE]: 60 * 60 * 24,
|
|
115
|
+
[CacheKeyType.PRODUCT_MOBILE_PROFILE_EQUIVALENCE_BY_TO_PRODUCT]: 60 * 60 * 24,
|
|
114
116
|
[CacheKeyType.PRODUCT_TRANSITION_GROUPS]: 60 * 60 * 24,
|
|
115
117
|
[CacheKeyType.SHOPPING_CART_AVAILABLE_PRODUCTS]: 60 * 60 * 24,
|
|
116
118
|
[CacheKeyType.SHOPPING_CART_AVAILABLE_PRODUCTS_V2]: 60 * 60 * 24,
|
|
@@ -3,6 +3,7 @@ import { ShoppingCartProductType } from '../../common/constants';
|
|
|
3
3
|
import { ArsAddressDto, ShoppingCartConfigurationAttributeDto } from '../../common/edge-bss';
|
|
4
4
|
import { CustomerProductActionType } from './customer.constants';
|
|
5
5
|
import { MobileVisibilityType } from '..';
|
|
6
|
+
import { Builder } from '../../common/helpers/helpers';
|
|
6
7
|
export declare class CustomerProductCharacteristicDto {
|
|
7
8
|
id: string;
|
|
8
9
|
name: string;
|
|
@@ -56,6 +57,9 @@ export declare class CustomerProductDto extends CustomerProductServiceDataDto {
|
|
|
56
57
|
characteristics?: CustomerProductCharacteristicDto[];
|
|
57
58
|
products?: CustomerProductDto[];
|
|
58
59
|
}
|
|
60
|
+
export declare class CustomerProductDtoBuilder extends Builder<CustomerProductDto> {
|
|
61
|
+
setDefaults(): CustomerProductDto;
|
|
62
|
+
}
|
|
59
63
|
export declare class CustomerProductsDto {
|
|
60
64
|
records: CustomerProductDto[];
|
|
61
65
|
total: number;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomerProductsDto = exports.CustomerProductDto = exports.CustomerProductServiceDto = exports.CustomerProductServiceCharacteristicDto = exports.CustomerProductServiceDataDto = exports.CustomerProductCharacteristicDto = void 0;
|
|
3
|
+
exports.CustomerProductsDto = exports.CustomerProductDtoBuilder = exports.CustomerProductDto = exports.CustomerProductServiceDto = exports.CustomerProductServiceCharacteristicDto = exports.CustomerProductServiceDataDto = exports.CustomerProductCharacteristicDto = void 0;
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
|
+
const product_1 = require("../product");
|
|
6
|
+
const __1 = require("..");
|
|
7
|
+
const helpers_1 = require("../../common/helpers/helpers");
|
|
8
|
+
const faker_1 = require("@faker-js/faker");
|
|
5
9
|
class CustomerProductCharacteristicDto {
|
|
6
10
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
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("../../common/edge-bss/shopping-cart/res/other.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 } };
|
|
@@ -36,6 +40,33 @@ class CustomerProductDto extends CustomerProductServiceDataDto {
|
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
exports.CustomerProductDto = CustomerProductDto;
|
|
43
|
+
class CustomerProductDtoBuilder extends helpers_1.Builder {
|
|
44
|
+
setDefaults() {
|
|
45
|
+
const { key: name, productName: displayName } = (0, helpers_1.fakerCommerceProductNameAndKey)();
|
|
46
|
+
const bundle = faker_1.faker.datatype.boolean({ probability: 0.9 });
|
|
47
|
+
const isMainBundle = bundle ? faker_1.faker.datatype.boolean({ probability: 0.75 }) : false;
|
|
48
|
+
const configurationType = bundle ? faker_1.faker.helpers.enumValue(__1.MobileVisibilityType) : undefined;
|
|
49
|
+
return {
|
|
50
|
+
id: faker_1.faker.string.uuid(),
|
|
51
|
+
customerId: (0, helpers_1.fakerCustomerId)(),
|
|
52
|
+
instanceName: faker_1.faker.string.uuid(),
|
|
53
|
+
name,
|
|
54
|
+
displayName,
|
|
55
|
+
displayDescription: faker_1.faker.commerce.productDescription(),
|
|
56
|
+
bundle,
|
|
57
|
+
isMainBundle,
|
|
58
|
+
configurationType,
|
|
59
|
+
enabled: true,
|
|
60
|
+
actions: [],
|
|
61
|
+
state: faker_1.faker.helpers.enumValue(product_1.ProductInventoryState),
|
|
62
|
+
activatedAt: faker_1.faker.date.anytime().toISOString()
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
66
|
+
return {};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.CustomerProductDtoBuilder = CustomerProductDtoBuilder;
|
|
39
70
|
class CustomerProductsDto {
|
|
40
71
|
static _OPENAPI_METADATA_FACTORY() {
|
|
41
72
|
return { records: { required: true, type: () => [require("./customer-product.entity").CustomerProductDto] }, total: { required: true, type: () => Number } };
|
|
@@ -36,7 +36,7 @@ class ProductInventoryItemDtoBuilder extends helpers_1.Builder {
|
|
|
36
36
|
setDefaults() {
|
|
37
37
|
return {
|
|
38
38
|
id: faker_1.faker.string.numeric(4),
|
|
39
|
-
billingAccount:
|
|
39
|
+
billingAccount: (0, helpers_1.fakerCustomerId)(),
|
|
40
40
|
bundle: faker_1.faker.datatype.boolean(),
|
|
41
41
|
state: faker_1.faker.helpers.enumValue(product_constants_1.ProductInventoryState),
|
|
42
42
|
completenessState: faker_1.faker.string.alpha(10),
|
|
@@ -80,6 +80,7 @@ export declare class ShoppingCartConfigurationBundleResDto {
|
|
|
80
80
|
displayName: string;
|
|
81
81
|
displayDescription: string;
|
|
82
82
|
products: ShoppingCartConfigurationProductResDto[];
|
|
83
|
+
parameters?: ShoppingCartParametersDto;
|
|
83
84
|
}
|
|
84
85
|
export declare class ShoppingCartFeaturesResDto {
|
|
85
86
|
id?: string;
|
|
@@ -175,6 +176,7 @@ export declare class ShoppingCartConfigurationProductResDto {
|
|
|
175
176
|
serviceSpecification?: ShoppingCartConfigurationServiceSpecificationItemResDto[];
|
|
176
177
|
serviceCharacteristicName?: string;
|
|
177
178
|
serviceCharacteristicValue?: string | ShoppingCartConfigurationAddressResDto;
|
|
179
|
+
parameters?: ShoppingCartParametersDto;
|
|
178
180
|
}
|
|
179
181
|
export declare class ShoppingCartConfigurationServiceSpecificationItemBssResDto {
|
|
180
182
|
name: string;
|
|
@@ -100,7 +100,7 @@ class ShoppingCartConfigurationBundleBssResDto {
|
|
|
100
100
|
exports.ShoppingCartConfigurationBundleBssResDto = ShoppingCartConfigurationBundleBssResDto;
|
|
101
101
|
class ShoppingCartConfigurationBundleResDto {
|
|
102
102
|
static _OPENAPI_METADATA_FACTORY() {
|
|
103
|
-
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, products: { required: true, type: () => [require("./other.entity").ShoppingCartConfigurationProductResDto] } };
|
|
103
|
+
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, products: { required: true, type: () => [require("./other.entity").ShoppingCartConfigurationProductResDto] }, parameters: { required: false, type: () => require("../../../../bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity").ShoppingCartParametersDto } };
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
exports.ShoppingCartConfigurationBundleResDto = ShoppingCartConfigurationBundleResDto;
|
|
@@ -160,7 +160,7 @@ class ShoppingCartConfigurationProductBssResDto {
|
|
|
160
160
|
exports.ShoppingCartConfigurationProductBssResDto = ShoppingCartConfigurationProductBssResDto;
|
|
161
161
|
class ShoppingCartConfigurationProductResDto {
|
|
162
162
|
static _OPENAPI_METADATA_FACTORY() {
|
|
163
|
-
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, action: { required: false, enum: require("../../../../bss/constants/bss.constants").ShoppingCartProductAction }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, type: { required: true, enum: require("../../../constants/common.constants").ShoppingCartProductType }, enabled: { required: true, type: () => Boolean }, characteristicGroups: { required: false, type: () => [require("./other.entity").ShoppingCartConfigurationCharacteristicGroupResDto] }, characteristics: { required: true, type: () => [require("./other.entity").ShoppingCartConfigurationCharacteristicResDto] }, serviceSpecification: { required: false, type: () => [require("./other.entity").ShoppingCartConfigurationServiceSpecificationItemResDto] }, serviceCharacteristicName: { required: false, type: () => String }, serviceCharacteristicValue: { required: false, type: () => Object } };
|
|
163
|
+
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, action: { required: false, enum: require("../../../../bss/constants/bss.constants").ShoppingCartProductAction }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, type: { required: true, enum: require("../../../constants/common.constants").ShoppingCartProductType }, enabled: { required: true, type: () => Boolean }, characteristicGroups: { required: false, type: () => [require("./other.entity").ShoppingCartConfigurationCharacteristicGroupResDto] }, characteristics: { required: true, type: () => [require("./other.entity").ShoppingCartConfigurationCharacteristicResDto] }, serviceSpecification: { required: false, type: () => [require("./other.entity").ShoppingCartConfigurationServiceSpecificationItemResDto] }, serviceCharacteristicName: { required: false, type: () => String }, serviceCharacteristicValue: { required: false, type: () => Object }, parameters: { required: false, type: () => require("../../../../bss/bearingpoint/shopping-cart/shopping-cart-parameters.entity").ShoppingCartParametersDto } };
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
exports.ShoppingCartConfigurationProductResDto = ShoppingCartConfigurationProductResDto;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fakerCommerceProductNameAndKey = exports.Builder = exports.invertEnum = void 0;
|
|
3
|
+
exports.fakerCustomerId = exports.fakerCommerceProductNameAndKey = exports.Builder = exports.invertEnum = void 0;
|
|
4
4
|
const faker_1 = require("@faker-js/faker");
|
|
5
5
|
function invertEnum({ enumObject }) {
|
|
6
6
|
const enumInvertdEntries = Object.entries(enumObject).reduce((acc, enumItem) => {
|
|
@@ -37,3 +37,7 @@ function fakerCommerceProductNameAndKey() {
|
|
|
37
37
|
return { key, productName };
|
|
38
38
|
}
|
|
39
39
|
exports.fakerCommerceProductNameAndKey = fakerCommerceProductNameAndKey;
|
|
40
|
+
function fakerCustomerId() {
|
|
41
|
+
return faker_1.faker.string.numeric(10);
|
|
42
|
+
}
|
|
43
|
+
exports.fakerCustomerId = fakerCustomerId;
|
package/dist/database/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './leads-additional-contact.entity';
|
|
|
17
17
|
export * from './leads-consent-data.entity';
|
|
18
18
|
export * from './leads-file.entity';
|
|
19
19
|
export * from './product-characteristic-equivalence.entity';
|
|
20
|
+
export * from './product-mobile-profile-equivalence.entity';
|
|
20
21
|
export * from './product-transition-configuration.entity';
|
|
21
22
|
export * from './provision-db.entity';
|
|
22
23
|
export * from './template.entity';
|
package/dist/database/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./leads-additional-contact.entity"), exports);
|
|
|
33
33
|
__exportStar(require("./leads-consent-data.entity"), exports);
|
|
34
34
|
__exportStar(require("./leads-file.entity"), exports);
|
|
35
35
|
__exportStar(require("./product-characteristic-equivalence.entity"), exports);
|
|
36
|
+
__exportStar(require("./product-mobile-profile-equivalence.entity"), exports);
|
|
36
37
|
__exportStar(require("./product-transition-configuration.entity"), exports);
|
|
37
38
|
__exportStar(require("./provision-db.entity"), exports);
|
|
38
39
|
__exportStar(require("./template.entity"), exports);
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ProductMobileProfileEquivalenceEntity = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let ProductMobileProfileEquivalenceEntity = class ProductMobileProfileEquivalenceEntity {
|
|
16
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
+
return { id: { required: false, type: () => Number }, fromProfile: { required: true, type: () => String }, toProduct: { required: true, type: () => String }, toProfile: { required: true, type: () => String }, active: { required: true, type: () => Boolean }, 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.PrimaryGeneratedColumn)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ProductMobileProfileEquivalenceEntity.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ProductMobileProfileEquivalenceEntity.prototype, "fromProfile", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ProductMobileProfileEquivalenceEntity.prototype, "toProduct", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ProductMobileProfileEquivalenceEntity.prototype, "toProfile", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: true }),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], ProductMobileProfileEquivalenceEntity.prototype, "active", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, default: null }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ProductMobileProfileEquivalenceEntity.prototype, "createdBy", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: false, default: 'CURRENT_TIMESTAMP' }),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], ProductMobileProfileEquivalenceEntity.prototype, "createdAt", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, default: null }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ProductMobileProfileEquivalenceEntity.prototype, "updatedBy", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: false, default: 'CURRENT_TIMESTAMP', onUpdate: 'CURRENT_TIMESTAMP' }),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], ProductMobileProfileEquivalenceEntity.prototype, "updatedAt", void 0);
|
|
56
|
+
ProductMobileProfileEquivalenceEntity = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)({ name: 'product-mobile-profile-equivalence' }),
|
|
58
|
+
(0, typeorm_1.Index)('fromProfile_toProduct_toProfile_UNIQUE', ['fromProfile', 'toProduct', 'toProfile'], {
|
|
59
|
+
unique: true
|
|
60
|
+
})
|
|
61
|
+
], ProductMobileProfileEquivalenceEntity);
|
|
62
|
+
exports.ProductMobileProfileEquivalenceEntity = ProductMobileProfileEquivalenceEntity;
|
|
@@ -12,7 +12,7 @@ export declare class ProductTransitionGroupEntity {
|
|
|
12
12
|
export declare class ProductTransitionCombinationEntity {
|
|
13
13
|
id: number;
|
|
14
14
|
groupId: number;
|
|
15
|
-
group
|
|
15
|
+
group?: ProductTransitionGroupEntity;
|
|
16
16
|
product: string;
|
|
17
17
|
productPriority: number;
|
|
18
18
|
fiberProduct?: string;
|
|
@@ -60,7 +60,7 @@ ProductTransitionGroupEntity = __decorate([
|
|
|
60
60
|
exports.ProductTransitionGroupEntity = ProductTransitionGroupEntity;
|
|
61
61
|
let ProductTransitionCombinationEntity = class ProductTransitionCombinationEntity {
|
|
62
62
|
static _OPENAPI_METADATA_FACTORY() {
|
|
63
|
-
return { id: { required: true, type: () => Number }, groupId: { required: true, type: () => Number }, group: { required:
|
|
63
|
+
return { id: { required: true, type: () => Number }, groupId: { required: true, type: () => Number }, group: { required: false, type: () => require("./product-transition-configuration.entity").ProductTransitionGroupEntity }, product: { required: true, type: () => String }, productPriority: { required: true, type: () => Number }, fiberProduct: { required: false, type: () => String }, fiberBandwidth: { required: false, type: () => String }, voipMin: { required: true, type: () => Number }, voipMax: { required: true, type: () => Number }, mobileProduct: { required: false, type: () => String }, mobileData: { required: true, type: () => Number }, mobileType: { required: true, type: () => String }, active: { required: true, type: () => Boolean } };
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
__decorate([
|
|
@@ -76,8 +76,9 @@ __decorate([
|
|
|
76
76
|
(0, class_validator_1.IsDefined)(),
|
|
77
77
|
(0, class_validator_1.IsArray)(),
|
|
78
78
|
(0, class_validator_1.ArrayMinSize)(1),
|
|
79
|
-
(0,
|
|
79
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
80
80
|
(0, class_transformer_1.Type)(() => CreateApprovalDataBaseDto),
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
81
82
|
__metadata("design:type", Array)
|
|
82
83
|
], CreateSaleProcessApprovalDto.prototype, "data", void 0);
|
|
83
84
|
exports.CreateSaleProcessApprovalDto = CreateSaleProcessApprovalDto;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './bundle-products.entity';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './product-transition.entity';
|
|
2
|
+
export * from './product-transition-group.entity';
|
|
4
3
|
export * from './product-characteristic-equivalence.entity';
|
|
4
|
+
export * from './product-mobile-profile-equivalence.entity';
|
|
5
|
+
export * from './product-transition-configuration.entity';
|
|
5
6
|
export * from './updowngrade.constants';
|
|
6
7
|
export * from './updowngrade.entity';
|
|
@@ -15,8 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./bundle-products.entity"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./product-transition.entity"), exports);
|
|
18
|
+
__exportStar(require("./product-transition-group.entity"), exports);
|
|
20
19
|
__exportStar(require("./product-characteristic-equivalence.entity"), exports);
|
|
20
|
+
__exportStar(require("./product-mobile-profile-equivalence.entity"), exports);
|
|
21
|
+
__exportStar(require("./product-transition-configuration.entity"), exports);
|
|
21
22
|
__exportStar(require("./updowngrade.constants"), exports);
|
|
22
23
|
__exportStar(require("./updowngrade.entity"), exports);
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import { AuditFieldsDto } from '../common/common.entity';
|
|
2
2
|
export declare class ProductCharacteristicEquivalenceDto {
|
|
3
|
-
id
|
|
4
|
-
fromProduct
|
|
3
|
+
id: number;
|
|
4
|
+
fromProduct: string;
|
|
5
5
|
fromCharacteristic: string;
|
|
6
6
|
toProduct?: string;
|
|
7
7
|
toCharacteristic?: string;
|
|
8
8
|
featureGroup: string;
|
|
9
|
-
active
|
|
9
|
+
active: boolean;
|
|
10
10
|
created: AuditFieldsDto;
|
|
11
|
-
updated
|
|
11
|
+
updated: AuditFieldsDto;
|
|
12
|
+
}
|
|
13
|
+
export declare class CreateProductCharacteristicEquivalenceDto {
|
|
14
|
+
fromProduct: string;
|
|
15
|
+
fromCharacteristic: string;
|
|
16
|
+
toProduct: string;
|
|
17
|
+
toCharacteristic?: string;
|
|
18
|
+
featureGroup: string;
|
|
19
|
+
active?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const PartialCreateProductCharacteristicEquivalenceDto_base: import("@nestjs/common").Type<Partial<CreateProductCharacteristicEquivalenceDto>>;
|
|
22
|
+
declare class PartialCreateProductCharacteristicEquivalenceDto extends PartialCreateProductCharacteristicEquivalenceDto_base {
|
|
12
23
|
}
|
|
13
|
-
export declare class PatchProductCharacteristicEquivalenceDto {
|
|
24
|
+
export declare class PatchProductCharacteristicEquivalenceDto implements PartialCreateProductCharacteristicEquivalenceDto {
|
|
14
25
|
fromProduct?: string;
|
|
15
26
|
fromCharacteristic?: string;
|
|
16
27
|
toProduct?: string;
|
|
@@ -18,3 +29,4 @@ export declare class PatchProductCharacteristicEquivalenceDto {
|
|
|
18
29
|
featureGroup?: string;
|
|
19
30
|
active?: boolean;
|
|
20
31
|
}
|
|
32
|
+
export {};
|
|
@@ -9,54 +9,64 @@ 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.PatchProductCharacteristicEquivalenceDto = exports.ProductCharacteristicEquivalenceDto = void 0;
|
|
12
|
+
exports.PatchProductCharacteristicEquivalenceDto = exports.CreateProductCharacteristicEquivalenceDto = exports.ProductCharacteristicEquivalenceDto = void 0;
|
|
13
13
|
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
const _validators_1 = require("../../validators/index");
|
|
15
16
|
const class_validator_1 = require("class-validator");
|
|
16
17
|
class ProductCharacteristicEquivalenceDto {
|
|
17
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
return { id: { required:
|
|
19
|
+
return { id: { required: true, type: () => Number }, fromProduct: { required: true, type: () => String }, fromCharacteristic: { required: true, type: () => String }, toProduct: { required: false, type: () => String }, toCharacteristic: { required: false, type: () => String }, featureGroup: { required: true, type: () => String }, active: { required: true, type: () => Boolean }, created: { required: true, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").AuditFieldsDto } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.ProductCharacteristicEquivalenceDto = ProductCharacteristicEquivalenceDto;
|
|
23
|
+
class CreateProductCharacteristicEquivalenceDto {
|
|
24
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
+
return { fromProduct: { required: true, type: () => String }, fromCharacteristic: { required: true, type: () => String }, toProduct: { required: true, type: () => String }, toCharacteristic: { required: false, type: () => String }, featureGroup: { required: true, type: () => String }, active: { required: false, type: () => Boolean } };
|
|
19
26
|
}
|
|
20
27
|
}
|
|
21
28
|
__decorate([
|
|
22
29
|
(0, class_validator_1.IsString)(),
|
|
23
30
|
(0, class_validator_1.IsNotEmpty)(),
|
|
24
31
|
(0, _validators_1.IsNotBlank)(),
|
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
|
26
32
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
33
|
+
], CreateProductCharacteristicEquivalenceDto.prototype, "fromProduct", void 0);
|
|
28
34
|
__decorate([
|
|
29
35
|
(0, class_validator_1.IsString)(),
|
|
30
36
|
(0, class_validator_1.IsNotEmpty)(),
|
|
31
37
|
(0, _validators_1.IsNotBlank)(),
|
|
32
38
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
39
|
+
], CreateProductCharacteristicEquivalenceDto.prototype, "fromCharacteristic", void 0);
|
|
34
40
|
__decorate([
|
|
35
41
|
(0, class_validator_1.IsString)(),
|
|
36
42
|
(0, class_validator_1.IsNotEmpty)(),
|
|
37
43
|
(0, _validators_1.IsNotBlank)(),
|
|
38
|
-
(0, class_validator_1.IsOptional)(),
|
|
39
44
|
__metadata("design:type", String)
|
|
40
|
-
],
|
|
45
|
+
], CreateProductCharacteristicEquivalenceDto.prototype, "toProduct", void 0);
|
|
41
46
|
__decorate([
|
|
42
47
|
(0, class_validator_1.IsString)(),
|
|
43
48
|
(0, class_validator_1.IsNotEmpty)(),
|
|
44
49
|
(0, _validators_1.IsNotBlank)(),
|
|
45
50
|
(0, class_validator_1.IsOptional)(),
|
|
46
51
|
__metadata("design:type", String)
|
|
47
|
-
],
|
|
52
|
+
], CreateProductCharacteristicEquivalenceDto.prototype, "toCharacteristic", void 0);
|
|
48
53
|
__decorate([
|
|
49
54
|
(0, class_validator_1.IsString)(),
|
|
50
55
|
(0, class_validator_1.IsNotEmpty)(),
|
|
51
56
|
(0, _validators_1.IsNotBlank)(),
|
|
52
57
|
__metadata("design:type", String)
|
|
53
|
-
],
|
|
58
|
+
], CreateProductCharacteristicEquivalenceDto.prototype, "featureGroup", void 0);
|
|
54
59
|
__decorate([
|
|
55
60
|
(0, class_validator_1.IsBoolean)(),
|
|
56
61
|
(0, class_validator_1.IsOptional)(),
|
|
57
62
|
__metadata("design:type", Boolean)
|
|
58
|
-
],
|
|
59
|
-
exports.
|
|
63
|
+
], CreateProductCharacteristicEquivalenceDto.prototype, "active", void 0);
|
|
64
|
+
exports.CreateProductCharacteristicEquivalenceDto = CreateProductCharacteristicEquivalenceDto;
|
|
65
|
+
class PartialCreateProductCharacteristicEquivalenceDto extends (0, swagger_1.PartialType)(CreateProductCharacteristicEquivalenceDto) {
|
|
66
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
67
|
+
return {};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
60
70
|
class PatchProductCharacteristicEquivalenceDto {
|
|
61
71
|
static _OPENAPI_METADATA_FACTORY() {
|
|
62
72
|
return { fromProduct: { required: false, type: () => String }, fromCharacteristic: { required: false, type: () => String }, toProduct: { required: false, type: () => String }, toCharacteristic: { required: false, type: () => String }, featureGroup: { required: false, type: () => String }, active: { required: false, type: () => Boolean } };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Builder } from '../../common/helpers/helpers';
|
|
2
|
+
import { AuditFieldsDto } from '../common/common.entity';
|
|
3
|
+
export declare class ProductMobileProfileEquivalenceDto {
|
|
4
|
+
id: number;
|
|
5
|
+
fromProfile: string;
|
|
6
|
+
toProduct: string;
|
|
7
|
+
toProfile: string;
|
|
8
|
+
active: boolean;
|
|
9
|
+
created: AuditFieldsDto;
|
|
10
|
+
updated: AuditFieldsDto;
|
|
11
|
+
}
|
|
12
|
+
export declare class ProductMobileProfileEquivalenceDtoBuilder extends Builder<ProductMobileProfileEquivalenceDto> {
|
|
13
|
+
setDefaults(): ProductMobileProfileEquivalenceDto;
|
|
14
|
+
}
|
|
15
|
+
export declare class CreateProductMobileProfileEquivalenceDto {
|
|
16
|
+
fromProfile: string;
|
|
17
|
+
toProduct: string;
|
|
18
|
+
toProfile: string;
|
|
19
|
+
active?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const PartialCreateProductMobileProfileEquivalenceDto_base: import("@nestjs/common").Type<Partial<CreateProductMobileProfileEquivalenceDto>>;
|
|
22
|
+
declare class PartialCreateProductMobileProfileEquivalenceDto extends PartialCreateProductMobileProfileEquivalenceDto_base {
|
|
23
|
+
}
|
|
24
|
+
export declare class PatchProductMobileProfileEquivalenceDto implements PartialCreateProductMobileProfileEquivalenceDto {
|
|
25
|
+
fromProfile?: string;
|
|
26
|
+
toProduct?: string;
|
|
27
|
+
toProfile?: string;
|
|
28
|
+
active?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
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.PatchProductMobileProfileEquivalenceDto = exports.CreateProductMobileProfileEquivalenceDto = exports.ProductMobileProfileEquivalenceDtoBuilder = exports.ProductMobileProfileEquivalenceDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const helpers_1 = require("../../common/helpers/helpers");
|
|
16
|
+
const faker_1 = require("@faker-js/faker");
|
|
17
|
+
const common_entity_1 = require("../common/common.entity");
|
|
18
|
+
const _validators_1 = require("../../validators/index");
|
|
19
|
+
const class_validator_1 = require("class-validator");
|
|
20
|
+
class ProductMobileProfileEquivalenceDto {
|
|
21
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
22
|
+
return { id: { required: true, type: () => Number }, fromProfile: { required: true, type: () => String }, toProduct: { required: true, type: () => String }, toProfile: { required: true, type: () => String }, active: { required: true, type: () => Boolean }, created: { required: true, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: true, type: () => require("../common/common.entity").AuditFieldsDto } };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.ProductMobileProfileEquivalenceDto = ProductMobileProfileEquivalenceDto;
|
|
26
|
+
class ProductMobileProfileEquivalenceDtoBuilder extends helpers_1.Builder {
|
|
27
|
+
setDefaults() {
|
|
28
|
+
const { key: toProduct } = (0, helpers_1.fakerCommerceProductNameAndKey)();
|
|
29
|
+
return {
|
|
30
|
+
id: faker_1.faker.number.int(),
|
|
31
|
+
active: true,
|
|
32
|
+
fromProfile: faker_1.faker.string.alpha(10),
|
|
33
|
+
toProduct,
|
|
34
|
+
toProfile: faker_1.faker.string.alpha(10),
|
|
35
|
+
created: new common_entity_1.AuditFieldsDtoBuilder().build(),
|
|
36
|
+
updated: new common_entity_1.AuditFieldsDtoBuilder().build()
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
40
|
+
return {};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ProductMobileProfileEquivalenceDtoBuilder = ProductMobileProfileEquivalenceDtoBuilder;
|
|
44
|
+
class CreateProductMobileProfileEquivalenceDto {
|
|
45
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
46
|
+
return { fromProfile: { required: true, type: () => String }, toProduct: { required: true, type: () => String }, toProfile: { required: true, type: () => String }, active: { required: false, type: () => Boolean } };
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
(0, _validators_1.IsNotBlank)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], CreateProductMobileProfileEquivalenceDto.prototype, "fromProfile", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
58
|
+
(0, _validators_1.IsNotBlank)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], CreateProductMobileProfileEquivalenceDto.prototype, "toProduct", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
64
|
+
(0, _validators_1.IsNotBlank)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], CreateProductMobileProfileEquivalenceDto.prototype, "toProfile", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsBoolean)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
|
+
], CreateProductMobileProfileEquivalenceDto.prototype, "active", void 0);
|
|
72
|
+
exports.CreateProductMobileProfileEquivalenceDto = CreateProductMobileProfileEquivalenceDto;
|
|
73
|
+
class PartialCreateProductMobileProfileEquivalenceDto extends (0, swagger_1.PartialType)(CreateProductMobileProfileEquivalenceDto) {
|
|
74
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
75
|
+
return {};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
class PatchProductMobileProfileEquivalenceDto {
|
|
79
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
80
|
+
return { fromProfile: { required: false, type: () => String }, toProduct: { required: false, type: () => String }, toProfile: { required: false, type: () => String }, active: { required: false, type: () => Boolean } };
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsString)(),
|
|
85
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
86
|
+
(0, _validators_1.IsNotBlank)(),
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], PatchProductMobileProfileEquivalenceDto.prototype, "fromProfile", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_validator_1.IsString)(),
|
|
92
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
93
|
+
(0, _validators_1.IsNotBlank)(),
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], PatchProductMobileProfileEquivalenceDto.prototype, "toProduct", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
100
|
+
(0, _validators_1.IsNotBlank)(),
|
|
101
|
+
(0, class_validator_1.IsOptional)(),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], PatchProductMobileProfileEquivalenceDto.prototype, "toProfile", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, class_validator_1.IsBoolean)(),
|
|
106
|
+
(0, class_validator_1.IsOptional)(),
|
|
107
|
+
__metadata("design:type", Boolean)
|
|
108
|
+
], PatchProductMobileProfileEquivalenceDto.prototype, "active", void 0);
|
|
109
|
+
exports.PatchProductMobileProfileEquivalenceDto = PatchProductMobileProfileEquivalenceDto;
|