adamo-types 1.2.62 → 1.2.63-uat
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/billing/customer-bill-details.entity.js +1 -1
- package/dist/bss/bearingpoint/product-offering/product-inventory.entity.d.ts +2 -2
- package/dist/bss/bearingpoint/product-offering/product-inventory.entity.js +1 -1
- package/dist/bss/bearingpoint/product-offering/product.constants.d.ts +4 -0
- package/dist/bss/bearingpoint/product-offering/product.constants.js +6 -1
- package/dist/bss/bearingpoint/shopping-cart/shopping-cart-recurring-currency-sum.entity.js +1 -1
- package/dist/bss/product/product.constants.d.ts +2 -0
- package/dist/bss/product/product.entity.d.ts +2 -1
- package/dist/bss/product/product.entity.js +1 -1
- package/dist/common/constants/common.constants.d.ts +1 -1
- package/dist/common/constants/common.constants.js +1 -1
- package/dist/common/edge-bss/address/req/create.entity.js +1 -1
- package/dist/common/edge-bss/shopping-cart/req/other.entity.js +3 -3
- package/dist/common/edge-bss/shopping-cart/res/other.entity.js +1 -1
- package/dist/common/edge-sendgrid/mail/req/mail.entity.d.ts +1 -1
- package/dist/common/edge-zoho/sale-process/req/create.entity.js +1 -1
- package/dist/common/edge-zoho/sale-process/req/other.entity.js +1 -1
- package/dist/common/edge-zoho/sale-process/req/patch.entity.js +2 -2
- package/dist/common/edge-zoho/sale-process/res/other.entity.js +1 -1
- package/dist/database/configuration.entity.d.ts +0 -9
- package/dist/database/configuration.entity.js +2 -43
- package/dist/digitel/pdf.entity.d.ts +1 -1
- package/dist/digitel/template.contract.entity.d.ts +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/sys03/approval/approval.entity.js +2 -2
- package/dist/sys03/customer/customer-product.entity.js +5 -5
- package/dist/sys03/customer/customer.entity.js +3 -3
- package/dist/sys03/customer-new-extras-process/customer-new-extras-process.entity.js +1 -1
- package/dist/sys03/customer-product-modification-process/customer-product-modification-process.entity.js +1 -1
- package/dist/sys03/customer-product-transition-process/customer-product-transition-process.entity.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -16,7 +16,7 @@ const _validators_1 = require("../../../validators/index");
|
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
17
|
class BpCustomerBillDetailsDto {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { billingAccount: { required: false, type: () => String }, priceDisplayIncludingTax: { required: true, type: () => Boolean }, displayItemized: { required: true, type: () => Boolean }, deliveryMethod: { required: true, enum: require("../../constants/bp.constants").DeliveryMethod }, interval: { required: true, type: () => Number }, startMonth: { required: false, type: () => String }, currency: { required: true, type: () => String }, validFor: { required: false, type: () => require("../common/common.entity").BpValidForDto } };
|
|
19
|
+
return { billingAccount: { required: false, type: () => String }, priceDisplayIncludingTax: { required: true, type: () => Boolean }, displayItemized: { required: true, type: () => Boolean }, deliveryMethod: { required: true, enum: require("../../constants/bp.constants").DeliveryMethod }, interval: { required: true, type: () => Number, minimum: 1, maximum: 12 }, startMonth: { required: false, type: () => String }, currency: { required: true, type: () => String }, validFor: { required: false, type: () => require("../common/common.entity").BpValidForDto } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ProductOrderType } from '../../constants';
|
|
2
2
|
import { ShoppingCartProductDto } from '../shopping-cart';
|
|
3
3
|
import { BpValidForDto } from '../common';
|
|
4
|
-
import { BpProductOrderStateType } from './product.constants';
|
|
4
|
+
import { BpProductInventoryCharacteristicStateType, BpProductOrderStateType } from './product.constants';
|
|
5
5
|
export declare class BpProductInventoryCharacteristicDto {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
|
-
state:
|
|
8
|
+
state: BpProductInventoryCharacteristicStateType;
|
|
9
9
|
validFor: BpValidForDto;
|
|
10
10
|
}
|
|
11
11
|
export declare class BpProductInventoryProductRelationshipDto {
|
|
@@ -4,7 +4,7 @@ exports.BpProductOrderDto = exports.BpProductOrderItemDto = exports.BpProductInv
|
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class BpProductInventoryCharacteristicDto {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
-
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, state: { required: true,
|
|
7
|
+
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, state: { required: true, enum: require("./product.constants").BpProductInventoryCharacteristicStateType }, validFor: { required: true, type: () => require("../common/common.entity").BpValidForDto } };
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.BpProductInventoryCharacteristicDto = BpProductInventoryCharacteristicDto;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BpProductOrderStateType = void 0;
|
|
3
|
+
exports.BpProductInventoryCharacteristicStateType = exports.BpProductOrderStateType = void 0;
|
|
4
4
|
var BpProductOrderStateType;
|
|
5
5
|
(function (BpProductOrderStateType) {
|
|
6
6
|
BpProductOrderStateType["ACKNOWLEDGED"] = "Acknowledged";
|
|
@@ -10,3 +10,8 @@ var BpProductOrderStateType;
|
|
|
10
10
|
BpProductOrderStateType["IN_PROGRESS"] = "InProgress";
|
|
11
11
|
BpProductOrderStateType["NEW"] = "New";
|
|
12
12
|
})(BpProductOrderStateType = exports.BpProductOrderStateType || (exports.BpProductOrderStateType = {}));
|
|
13
|
+
var BpProductInventoryCharacteristicStateType;
|
|
14
|
+
(function (BpProductInventoryCharacteristicStateType) {
|
|
15
|
+
BpProductInventoryCharacteristicStateType["ACTIVE"] = "ACTIVE";
|
|
16
|
+
BpProductInventoryCharacteristicStateType["DISCONNECTED"] = "DISCONNECTED";
|
|
17
|
+
})(BpProductInventoryCharacteristicStateType = exports.BpProductInventoryCharacteristicStateType || (exports.BpProductInventoryCharacteristicStateType = {}));
|
|
@@ -16,7 +16,7 @@ const class_validator_1 = require("class-validator");
|
|
|
16
16
|
const shopping_cart_currency_sum_entity_1 = require("./shopping-cart-currency-sum.entity");
|
|
17
17
|
class ShoppingCartRecurringCurrencySumDto {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { frequency: { required: true, type: () => Number }, currencySums: { required: true, type: () => [require("./shopping-cart-currency-sum.entity").ShoppingCartCurrencySumDto] } };
|
|
19
|
+
return { frequency: { required: true, type: () => Number, minimum: 1 }, currencySums: { required: true, type: () => [require("./shopping-cart-currency-sum.entity").ShoppingCartCurrencySumDto] } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ShoppingCartProductType } from '../../common/constants';
|
|
2
|
+
import { BpProductInventoryCharacteristicStateType } from '..';
|
|
2
3
|
export declare enum ProductInventoryState {
|
|
3
4
|
PENDING_ACTIVATE = "PENDING_ACTIVATE",
|
|
4
5
|
ACTIVE = "ACTIVE",
|
|
@@ -11,3 +12,4 @@ export declare enum ProductInventoryItemRelationshipType {
|
|
|
11
12
|
}
|
|
12
13
|
export declare const BpServiceNameToProductType: Record<string, ShoppingCartProductType>;
|
|
13
14
|
export declare const BpProductInventoryStateToProductInventoryState: Record<string, ProductInventoryState>;
|
|
15
|
+
export declare type ProductInventoryItemCharacteristicStateType = BpProductInventoryCharacteristicStateType;
|
|
@@ -3,7 +3,7 @@ import { BssChargeType, ShoppingCartProductAction } from '../constants';
|
|
|
3
3
|
import { ShoppingCartProductType } from '../../common/constants';
|
|
4
4
|
import { ShoppingCartConfigurationAddressResDto, ShoppingCartInfoServiceCharacteristicDto } from '../../common/edge-bss';
|
|
5
5
|
import { DependencyResDto } from '../../sys03/storage';
|
|
6
|
-
import { ProductInventoryItemRelationshipType, ProductInventoryState } from './product.constants';
|
|
6
|
+
import { ProductInventoryItemCharacteristicStateType, ProductInventoryItemRelationshipType, ProductInventoryState } from './product.constants';
|
|
7
7
|
import { ShoppingCartParametersDto } from '../bearingpoint/shopping-cart';
|
|
8
8
|
export declare class BpProductOfferingsResDto {
|
|
9
9
|
list: ProductDto[];
|
|
@@ -78,6 +78,7 @@ export interface DependencySubGroup {
|
|
|
78
78
|
export declare class ProductInventoryItemCharacteristicDto {
|
|
79
79
|
id: string;
|
|
80
80
|
name: string;
|
|
81
|
+
state: ProductInventoryItemCharacteristicStateType;
|
|
81
82
|
activatedAt: string;
|
|
82
83
|
}
|
|
83
84
|
export declare class ProductInventoryItemRelationshipDto {
|
|
@@ -10,7 +10,7 @@ class BpProductOfferingsResDto {
|
|
|
10
10
|
exports.BpProductOfferingsResDto = BpProductOfferingsResDto;
|
|
11
11
|
class ProductInventoryItemCharacteristicDto {
|
|
12
12
|
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
-
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, activatedAt: { required: true, type: () => String } };
|
|
13
|
+
return { id: { required: true, type: () => String }, name: { required: true, type: () => String }, state: { required: true, enum: require("../bearingpoint/product-offering/product.constants").BpProductInventoryCharacteristicStateType }, activatedAt: { required: true, type: () => String } };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
exports.ProductInventoryItemCharacteristicDto = ProductInventoryItemCharacteristicDto;
|
|
@@ -45,7 +45,7 @@ export declare enum StorageConfiguration {
|
|
|
45
45
|
SEND_BSS_SERVICIABLE_STATUSES = "SEND_BSS_SERVICIABLE_STATUSES",
|
|
46
46
|
SMS_CONTRACT_CHANNELS = "SMS_CONTRACT_CHANNELS",
|
|
47
47
|
SUPER_MANAGERS = "SUPER_MANAGERS",
|
|
48
|
-
|
|
48
|
+
SIM_DELIVERY_PROVINCES = "SIM_DELIVERY_PROVINCES"
|
|
49
49
|
}
|
|
50
50
|
export declare enum BssDropDownKeys {
|
|
51
51
|
COUNTRY_STATE_TYPES = "COUNTRY_STATE_TYPES",
|
|
@@ -61,7 +61,7 @@ var StorageConfiguration;
|
|
|
61
61
|
StorageConfiguration["SEND_BSS_SERVICIABLE_STATUSES"] = "SEND_BSS_SERVICIABLE_STATUSES";
|
|
62
62
|
StorageConfiguration["SMS_CONTRACT_CHANNELS"] = "SMS_CONTRACT_CHANNELS";
|
|
63
63
|
StorageConfiguration["SUPER_MANAGERS"] = "SUPER_MANAGERS";
|
|
64
|
-
StorageConfiguration["
|
|
64
|
+
StorageConfiguration["SIM_DELIVERY_PROVINCES"] = "SIM_DELIVERY_PROVINCES";
|
|
65
65
|
})(StorageConfiguration = exports.StorageConfiguration || (exports.StorageConfiguration = {}));
|
|
66
66
|
var BssDropDownKeys;
|
|
67
67
|
(function (BssDropDownKeys) {
|
|
@@ -21,7 +21,7 @@ class ArsAddressDto {
|
|
|
21
21
|
this.entrance = '';
|
|
22
22
|
}
|
|
23
23
|
static _OPENAPI_METADATA_FACTORY() {
|
|
24
|
-
return { id: { required: false, type: () => String }, country: { required: false, type: () => String }, postcode: { required: true, type: () => String }, province: { required: true, type: () => String }, city: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, block: { required: false, type: () => Object, default: '' }, floor: { required: false, type: () => Object, default: '' }, door: { required: false, type: () => Object, default: '' }, entrance: { required: false, type: () => Object, default: '' }, apartmentId: { required: false, type: () => String }, serviceableStatus: { required: false, type: () => String }, salesAreaId: { required: false, type: () => String }, projectCode: { required: false, type: () => String }, competition: { required: false, type: () => String } };
|
|
24
|
+
return { id: { required: false, type: () => String }, country: { required: false, type: () => String }, postcode: { required: true, type: () => String, pattern: /^[0-9]{1,5}$/ }, province: { required: true, type: () => String }, city: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, block: { required: false, type: () => Object, default: '' }, floor: { required: false, type: () => Object, default: '' }, door: { required: false, type: () => Object, default: '' }, entrance: { required: false, type: () => Object, default: '' }, apartmentId: { required: false, type: () => String }, serviceableStatus: { required: false, type: () => String }, salesAreaId: { required: false, type: () => String }, projectCode: { required: false, type: () => String }, competition: { required: false, type: () => String } };
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
__decorate([
|
|
@@ -100,7 +100,7 @@ class UpdateShoppingCartBundlesExtraDto {
|
|
|
100
100
|
exports.UpdateShoppingCartBundlesExtraDto = UpdateShoppingCartBundlesExtraDto;
|
|
101
101
|
class UpdateShoppingCartExtraDto {
|
|
102
102
|
static _OPENAPI_METADATA_FACTORY() {
|
|
103
|
-
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number } };
|
|
103
|
+
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number, minimum: 0, maximum: 99 } };
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
__decorate([
|
|
@@ -147,7 +147,7 @@ class UpdateShoppingCartContractDto {
|
|
|
147
147
|
exports.UpdateShoppingCartContractDto = UpdateShoppingCartContractDto;
|
|
148
148
|
class UpdateShoppingCartCharacteristicPriceDto {
|
|
149
149
|
static _OPENAPI_METADATA_FACTORY() {
|
|
150
|
-
return { name: { required: true, type: () => String }, displayName: { required: false, type: () => String }, amount: { required: false, type: () => Number }, bindingDate: { required: false, type: () => String } };
|
|
150
|
+
return { name: { required: true, type: () => String }, displayName: { required: false, type: () => String }, amount: { required: false, type: () => Number }, bindingDate: { required: false, type: () => String, maxLength: 10 } };
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
__decorate([
|
|
@@ -179,7 +179,7 @@ __decorate([
|
|
|
179
179
|
exports.UpdateShoppingCartCharacteristicPriceDto = UpdateShoppingCartCharacteristicPriceDto;
|
|
180
180
|
class UpdateShoppingCartCharacteristicDto {
|
|
181
181
|
static _OPENAPI_METADATA_FACTORY() {
|
|
182
|
-
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number }, prices: { required: false, type: () => [require("./other.entity").UpdateShoppingCartCharacteristicPriceDto] } };
|
|
182
|
+
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number, minimum: 0, maximum: 99 }, prices: { required: false, type: () => [require("./other.entity").UpdateShoppingCartCharacteristicPriceDto] } };
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
__decorate([
|
|
@@ -201,7 +201,7 @@ class ShoppingCartConfigurationAddressResDto {
|
|
|
201
201
|
this.entrance = '';
|
|
202
202
|
}
|
|
203
203
|
static _OPENAPI_METADATA_FACTORY() {
|
|
204
|
-
return { country: { required: false, type: () => String }, postcode: { required: true, type: () => String }, province: { required: true, type: () => String }, city: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, block: { required: true, type: () => Object, default: '' }, floor: { required: true, type: () => Object, default: '' }, door: { required: true, type: () => Object, default: '' }, entrance: { required: true, type: () => Object, default: '' }, apartmentId: { required: false, type: () => String } };
|
|
204
|
+
return { country: { required: false, type: () => String }, postcode: { required: true, type: () => String, pattern: /^[0-9]{1,5}$/ }, province: { required: true, type: () => String }, city: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, block: { required: true, type: () => Object, default: '' }, floor: { required: true, type: () => Object, default: '' }, door: { required: true, type: () => Object, default: '' }, entrance: { required: true, type: () => Object, default: '' }, apartmentId: { required: false, type: () => String } };
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
__decorate([
|
|
@@ -19,7 +19,7 @@ const sale_process_1 = require("../../../../zoho/sale-process");
|
|
|
19
19
|
const _validators_1 = require("../../../../validators/index");
|
|
20
20
|
class ArsSaleProcessDocumentDto {
|
|
21
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
22
|
-
return { fileName: { required: true, type: () => String }, type: { required: true, enum: require("../../../../bss/constants/bp.constants").DocumentType }, comment: { required: false, type: () => String }, transactionId: { required: false, type: () => String } };
|
|
22
|
+
return { fileName: { required: true, type: () => String }, type: { required: true, enum: require("../../../../bss/constants/bp.constants").DocumentType }, comment: { required: false, type: () => String, maxLength: 1000 }, transactionId: { required: false, type: () => String, maxLength: 1000 } };
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
__decorate([
|
|
@@ -17,7 +17,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
17
17
|
const class_validator_1 = require("class-validator");
|
|
18
18
|
class DashboardQueryDto {
|
|
19
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
-
return { id: { required: false, type: () => Number }, page: { required: false, type: () => Number }, limit: { required: false, type: () => Number }, phone: { required: false, type: () => String }, smsPhone: { required: false, type: () => String }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, owner: { required: false, type: () => String }, lastChangeMadeBy: { required: false, type: () => String }, status: { required: false, type: () => String }, channel: { required: false, type: () => String }, lastChannel: { required: false, type: () => String }, customerType: { required: false, enum: require("../../../../sys03/shopping-cart/shopping-cart.constants").CustomerType }, customerId: { required: false, type: () => String } };
|
|
20
|
+
return { id: { required: false, type: () => Number, minimum: 1 }, page: { required: false, type: () => Number, minimum: 1 }, limit: { required: false, type: () => Number, minimum: 1 }, phone: { required: false, type: () => String }, smsPhone: { required: false, type: () => String }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, owner: { required: false, type: () => String }, lastChangeMadeBy: { required: false, type: () => String }, status: { required: false, type: () => String }, channel: { required: false, type: () => String }, lastChannel: { required: false, type: () => String }, customerType: { required: false, enum: require("../../../../sys03/shopping-cart/shopping-cart.constants").CustomerType }, customerId: { required: false, type: () => String } };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
__decorate([
|
|
@@ -116,7 +116,7 @@ __decorate([
|
|
|
116
116
|
exports.PartialSaleProcessBillingInfoDto = PartialSaleProcessBillingInfoDto;
|
|
117
117
|
class PartialSaleProcessContractCustomerDto {
|
|
118
118
|
static _OPENAPI_METADATA_FACTORY() {
|
|
119
|
-
return { customerType: { required: true, enum: require("../../../../sys03/shopping-cart/shopping-cart.constants").CustomerType }, title: { required: true, enum: require("../../../../bss/constants/bp.constants").PersonTitle }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, birthDate: { required: true, type: () => String }, email: { required: true, type: () => String }, contactPhone: { required: false, type: () => String }, additionalContactPhone: { required: false, type: () => String }, identification: { required: true, type: () => require("../../../../zoho/sale-process/customer-identification.entity").CustomerIdentificationDto }, preferredContactTime: { required: true, enum: require("../../../../bss/constants/bp.constants").PreferredContactTime }, customerVulnerable: { required: true, type: () => Boolean }, preferredContactLanguage: { required: false, type: () => String }, customerAssociation: { required: false, type: () => String } };
|
|
119
|
+
return { customerType: { required: true, enum: require("../../../../sys03/shopping-cart/shopping-cart.constants").CustomerType }, title: { required: true, enum: require("../../../../bss/constants/bp.constants").PersonTitle }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, birthDate: { required: true, type: () => String, maxLength: 10 }, email: { required: true, type: () => String }, contactPhone: { required: false, type: () => String }, additionalContactPhone: { required: false, type: () => String }, identification: { required: true, type: () => require("../../../../zoho/sale-process/customer-identification.entity").CustomerIdentificationDto }, preferredContactTime: { required: true, enum: require("../../../../bss/constants/bp.constants").PreferredContactTime }, customerVulnerable: { required: true, type: () => Boolean }, preferredContactLanguage: { required: false, type: () => String }, customerAssociation: { required: false, type: () => String } };
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
__decorate([
|
|
@@ -248,7 +248,7 @@ __decorate([
|
|
|
248
248
|
exports.PartialSaleProcessBusinessInfoDto = PartialSaleProcessBusinessInfoDto;
|
|
249
249
|
class PatchSaleProcessContractDataSavedDto {
|
|
250
250
|
static _OPENAPI_METADATA_FACTORY() {
|
|
251
|
-
return { status: { required: true, enum: require("../../../../zoho/constants/zoho.constants").SaleProcessStatusType }, mobilePhone: { required: true, type: () => String }, iban: { required: true, type: () => String }, notes: { required: false, type: () => String }, billingInfo: { required: false, type: () => require("./patch.entity").PartialSaleProcessBillingInfoDto }, customer: { required: false, type: () => require("./patch.entity").PartialSaleProcessContractCustomerDto }, businessInfo: { required: false, type: () => require("./patch.entity").PartialSaleProcessBusinessInfoDto } };
|
|
251
|
+
return { status: { required: true, enum: require("../../../../zoho/constants/zoho.constants").SaleProcessStatusType }, mobilePhone: { required: true, type: () => String }, iban: { required: true, type: () => String, pattern: /^[A-Za-z0-9]+$/ }, notes: { required: false, type: () => String, maxLength: 1000 }, billingInfo: { required: false, type: () => require("./patch.entity").PartialSaleProcessBillingInfoDto }, customer: { required: false, type: () => require("./patch.entity").PartialSaleProcessContractCustomerDto }, businessInfo: { required: false, type: () => require("./patch.entity").PartialSaleProcessBusinessInfoDto } };
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
__decorate([
|
|
@@ -20,7 +20,7 @@ class DashboardDto {
|
|
|
20
20
|
exports.DashboardDto = DashboardDto;
|
|
21
21
|
class DashboardGenericDto {
|
|
22
22
|
static _OPENAPI_METADATA_FACTORY() {
|
|
23
|
-
return {
|
|
23
|
+
return { total: { required: true, type: () => Number } };
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
__decorate([
|
|
@@ -61,16 +61,7 @@ export declare class ProductMandatoryDocumentsDto {
|
|
|
61
61
|
export declare class ProductMandatoryDocumentsItemsDto {
|
|
62
62
|
items: ProductMandatoryDocumentsDto[];
|
|
63
63
|
}
|
|
64
|
-
export declare class DigitelCircuitTypeDto {
|
|
65
|
-
otp?: number;
|
|
66
|
-
ocr_otp?: number;
|
|
67
|
-
}
|
|
68
|
-
export declare class DigitelCircuitsMapDto {
|
|
69
|
-
channel?: string;
|
|
70
|
-
circuitType?: DigitelCircuitTypeDto;
|
|
71
|
-
}
|
|
72
64
|
export declare class DigitelCircuitDto {
|
|
73
|
-
ageLimit?: number;
|
|
74
65
|
circuits: DigitelCircuitInfoDto[];
|
|
75
66
|
}
|
|
76
67
|
export declare class DigitelCircuitInfoDto {
|
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
var _a;
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.SimDeliveryInfoDto = exports.SimDeliveryDto = exports.ApprovalValidationUrlsDto = exports.ApprovalValidationUrlDto = exports.DigitelCircuitInfoDto = exports.DigitelCircuitDto = exports.
|
|
13
|
+
exports.SimDeliveryInfoDto = exports.SimDeliveryDto = exports.ApprovalValidationUrlsDto = exports.ApprovalValidationUrlDto = exports.DigitelCircuitInfoDto = exports.DigitelCircuitDto = exports.ProductMandatoryDocumentsItemsDto = exports.ProductMandatoryDocumentsDto = exports.ReferenceDateDto = exports.BillingCyclesDto = exports.FeatureGroupsItemsDto = exports.FeatureGroupDto = exports.RetailExclusivityRulesItemsDto = exports.ConfigurationArrayItem = exports.ConfigurationRetailExclusivityDto = exports.ConfigurationServiceableAgeDto = exports.ConfigurationSegmentsDto = exports.ConfigurationSegmentDto = exports.FeatureGroup = exports.ConfigurationDto = void 0;
|
|
14
14
|
const openapi = require("@nestjs/swagger");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const _validators_1 = require("../validators/index");
|
|
@@ -270,52 +270,11 @@ __decorate([
|
|
|
270
270
|
__metadata("design:type", Array)
|
|
271
271
|
], ProductMandatoryDocumentsItemsDto.prototype, "items", void 0);
|
|
272
272
|
exports.ProductMandatoryDocumentsItemsDto = ProductMandatoryDocumentsItemsDto;
|
|
273
|
-
class DigitelCircuitTypeDto {
|
|
274
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
275
|
-
return { otp: { required: false, type: () => Number }, ocr_otp: { required: false, type: () => Number } };
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
__decorate([
|
|
279
|
-
(0, class_validator_1.IsInt)(),
|
|
280
|
-
(0, class_transformer_1.Expose)(),
|
|
281
|
-
__metadata("design:type", Number)
|
|
282
|
-
], DigitelCircuitTypeDto.prototype, "otp", void 0);
|
|
283
|
-
__decorate([
|
|
284
|
-
(0, class_validator_1.IsInt)(),
|
|
285
|
-
(0, class_transformer_1.Expose)(),
|
|
286
|
-
__metadata("design:type", Number)
|
|
287
|
-
], DigitelCircuitTypeDto.prototype, "ocr_otp", void 0);
|
|
288
|
-
exports.DigitelCircuitTypeDto = DigitelCircuitTypeDto;
|
|
289
|
-
class DigitelCircuitsMapDto {
|
|
290
|
-
static _OPENAPI_METADATA_FACTORY() {
|
|
291
|
-
return { channel: { required: false, type: () => String }, circuitType: { required: false, type: () => require("./configuration.entity").DigitelCircuitTypeDto } };
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
__decorate([
|
|
295
|
-
(0, class_validator_1.IsArray)(),
|
|
296
|
-
(0, class_validator_1.IsString)(),
|
|
297
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
298
|
-
(0, _validators_1.IsNotBlank)(),
|
|
299
|
-
(0, class_transformer_1.Expose)(),
|
|
300
|
-
__metadata("design:type", String)
|
|
301
|
-
], DigitelCircuitsMapDto.prototype, "channel", void 0);
|
|
302
|
-
__decorate([
|
|
303
|
-
(0, class_validator_1.IsDefined)(),
|
|
304
|
-
(0, class_transformer_1.Type)(() => DigitelCircuitTypeDto),
|
|
305
|
-
(0, class_transformer_1.Expose)(),
|
|
306
|
-
__metadata("design:type", DigitelCircuitTypeDto)
|
|
307
|
-
], DigitelCircuitsMapDto.prototype, "circuitType", void 0);
|
|
308
|
-
exports.DigitelCircuitsMapDto = DigitelCircuitsMapDto;
|
|
309
273
|
class DigitelCircuitDto {
|
|
310
274
|
static _OPENAPI_METADATA_FACTORY() {
|
|
311
|
-
return {
|
|
275
|
+
return { circuits: { required: true, type: () => [require("./configuration.entity").DigitelCircuitInfoDto] } };
|
|
312
276
|
}
|
|
313
277
|
}
|
|
314
|
-
__decorate([
|
|
315
|
-
(0, class_validator_1.IsInt)(),
|
|
316
|
-
(0, class_transformer_1.Expose)(),
|
|
317
|
-
__metadata("design:type", Number)
|
|
318
|
-
], DigitelCircuitDto.prototype, "ageLimit", void 0);
|
|
319
278
|
__decorate([
|
|
320
279
|
(0, class_validator_1.IsArray)(),
|
|
321
280
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SaleProcessDto } from '../zoho/sale-process';
|
|
2
|
-
export type SaleProcessWithPortinOperator = SaleProcessDto & {
|
|
2
|
+
export declare type SaleProcessWithPortinOperator = SaleProcessDto & {
|
|
3
3
|
portinOperator: PortInOperator;
|
|
4
4
|
};
|
|
5
5
|
export declare class PortInOperator {
|
|
@@ -98,7 +98,7 @@ export declare enum TemplateB2CField {
|
|
|
98
98
|
MOBILERATE5 = "mobileRate5",
|
|
99
99
|
MOBILEMONTHLYRATE5 = "mobileMonthlyRate5"
|
|
100
100
|
}
|
|
101
|
-
export type TemplateB2CDto = Record<TemplateB2CField, TemplateFieldDto>;
|
|
101
|
+
export declare type TemplateB2CDto = Record<TemplateB2CField, TemplateFieldDto>;
|
|
102
102
|
export declare enum TemplateB2CSimDeliveryField {
|
|
103
103
|
SIM_DELIVERY_CUSTOMERNAME = "SimDeliveryCustomerName",
|
|
104
104
|
SIM_DELIVERY_CUSTOMERSURNAME = "SimDeliveryCustomerSurname",
|
|
@@ -122,8 +122,8 @@ export declare enum TemplateB2CSimDeliveryField {
|
|
|
122
122
|
SIM_DELIVERY_MOBILERATE = "SimDeliveryMobileRate0",
|
|
123
123
|
SIM_DELIVERY_MOBILEMONTHLYRATE = "SimDeliverymobileMonthlyRate0"
|
|
124
124
|
}
|
|
125
|
-
export type TemplateBaseB2CSimDeliveryDto = Record<TemplateB2CSimDeliveryField, TemplateFieldDto>;
|
|
126
|
-
export type TemplateB2CSimDeliveryDto = Record<string, TemplateFieldDto>;
|
|
125
|
+
export declare type TemplateBaseB2CSimDeliveryDto = Record<TemplateB2CSimDeliveryField, TemplateFieldDto>;
|
|
126
|
+
export declare type TemplateB2CSimDeliveryDto = Record<string, TemplateFieldDto>;
|
|
127
127
|
export declare enum TemplateB2BField {
|
|
128
128
|
SUMMARY_CUSTOMER_BUSINESS_NAME = "summaryCustomerBusinessName",
|
|
129
129
|
SUMMARY_FIBER_PRODUCT_NAME = "summaryFiberProductName",
|
|
@@ -222,5 +222,5 @@ export declare enum TemplateB2BField {
|
|
|
222
222
|
SERVICES_DIGITALSERV_PROMOMONTH = "servicesDigitalServPromoMonth",
|
|
223
223
|
SERVICES_DIGITALSERV_FINALPRICE = "servicesDigitalServFinalPrice"
|
|
224
224
|
}
|
|
225
|
-
export type TemplateBaseB2BDto = Record<TemplateB2BField, TemplateFieldDto>;
|
|
226
|
-
export type TemplateB2BDto = Record<string, TemplateFieldDto>;
|
|
225
|
+
export declare type TemplateBaseB2BDto = Record<TemplateB2BField, TemplateFieldDto>;
|
|
226
|
+
export declare type TemplateB2BDto = Record<string, TemplateFieldDto>;
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ const class_validator_1 = require("class-validator");
|
|
|
19
19
|
const approval_entity_1 = require("../../database/approval.entity");
|
|
20
20
|
class DashboardApprovalFilterDto {
|
|
21
21
|
static _OPENAPI_METADATA_FACTORY() {
|
|
22
|
-
return { page: { required: false, type: () => Number }, limit: { required: false, type: () => Number }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, leadId: { required: false, type: () => Number }, phone: { required: false, type: () => String }, shoppingCartPhone: { required: false, type: () => String }, owner: { required: false, type: () => String }, channel: { required: false, type: () => String }, customerType: { required: false, enum: require("../shopping-cart/shopping-cart.constants").CustomerType }, id: { required: false, type: () => Number }, approvedBy: { required: false, type: () => String }, approved: { required: false, type: () => Object }, validation: { required: true, type: () => String } };
|
|
22
|
+
return { page: { required: false, type: () => Number, minimum: 1 }, limit: { required: false, type: () => Number, minimum: 1 }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, leadId: { required: false, type: () => Number, minimum: 1 }, phone: { required: false, type: () => String }, shoppingCartPhone: { required: false, type: () => String }, owner: { required: false, type: () => String }, channel: { required: false, type: () => String }, customerType: { required: false, enum: require("../shopping-cart/shopping-cart.constants").CustomerType }, id: { required: false, type: () => Number, minimum: 1 }, approvedBy: { required: false, type: () => String }, approved: { required: false, type: () => Object }, validation: { required: true, type: () => String } };
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
__decorate([
|
|
@@ -148,7 +148,7 @@ class ApprovalWithGroupsDto extends (0, swagger_1.IntersectionType)(approval_ent
|
|
|
148
148
|
exports.ApprovalWithGroupsDto = ApprovalWithGroupsDto;
|
|
149
149
|
class PatchApprovalDataDto {
|
|
150
150
|
static _OPENAPI_METADATA_FACTORY() {
|
|
151
|
-
return { approved: { required: false, type: () => Boolean }, notes: { required: false, type: () => String } };
|
|
151
|
+
return { approved: { required: false, type: () => Boolean }, notes: { required: false, type: () => String, maxLength: 1000 } };
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
__decorate([
|
|
@@ -42,7 +42,7 @@ class CustomerProductWithApartmentDto {
|
|
|
42
42
|
exports.CustomerProductWithApartmentDto = CustomerProductWithApartmentDto;
|
|
43
43
|
class CheckCustomerProductTransitionVoipDto {
|
|
44
44
|
static _OPENAPI_METADATA_FACTORY() {
|
|
45
|
-
return { qty: { required: true, type: () => Number } };
|
|
45
|
+
return { qty: { required: true, type: () => Number, minimum: 0 } };
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
__decorate([
|
|
@@ -53,7 +53,7 @@ __decorate([
|
|
|
53
53
|
exports.CheckCustomerProductTransitionVoipDto = CheckCustomerProductTransitionVoipDto;
|
|
54
54
|
class CustomerProductTransitionPayloadDto {
|
|
55
55
|
static _OPENAPI_METADATA_FACTORY() {
|
|
56
|
-
return { groupId: { required: true, type: () => Number }, voip: { required: true, type: () => require("./customer-product.entity").CheckCustomerProductTransitionVoipDto }, mobileData: { required: true, type: () => Number } };
|
|
56
|
+
return { groupId: { required: true, type: () => Number, minimum: 0 }, voip: { required: true, type: () => require("./customer-product.entity").CheckCustomerProductTransitionVoipDto }, mobileData: { required: true, type: () => Number, minimum: -1 } };
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
__decorate([
|
|
@@ -148,7 +148,7 @@ __decorate([
|
|
|
148
148
|
exports.CheckCustomerProductModificationProductInstanceDto = CheckCustomerProductModificationProductInstanceDto;
|
|
149
149
|
class CheckCustomerProductModificationProductDto {
|
|
150
150
|
static _OPENAPI_METADATA_FACTORY() {
|
|
151
|
-
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number }, instances: { required: false, type: () => [require("./customer-product.entity").CheckCustomerProductModificationProductInstanceDto] } };
|
|
151
|
+
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number, minimum: 0 }, instances: { required: false, type: () => [require("./customer-product.entity").CheckCustomerProductModificationProductInstanceDto] } };
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
__decorate([
|
|
@@ -172,7 +172,7 @@ __decorate([
|
|
|
172
172
|
exports.CheckCustomerProductModificationProductDto = CheckCustomerProductModificationProductDto;
|
|
173
173
|
class CheckCustomerProductModificationProductGroupDto {
|
|
174
174
|
static _OPENAPI_METADATA_FACTORY() {
|
|
175
|
-
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number }, products: { required: true, type: () => [require("./customer-product.entity").CheckCustomerProductModificationProductDto] } };
|
|
175
|
+
return { name: { required: true, type: () => String }, qty: { required: true, type: () => Number, minimum: 0 }, products: { required: true, type: () => [require("./customer-product.entity").CheckCustomerProductModificationProductDto] } };
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
__decorate([
|
|
@@ -261,7 +261,7 @@ __decorate([
|
|
|
261
261
|
exports.CheckCustomerProductModificationDto = CheckCustomerProductModificationDto;
|
|
262
262
|
class TerminateCustomerProductDto {
|
|
263
263
|
static _OPENAPI_METADATA_FACTORY() {
|
|
264
|
-
return { reason: { required: true, type: () => String }, targetDate: { required: true, type: () => String }, notes: { required: false, type: () => String } };
|
|
264
|
+
return { reason: { required: true, type: () => String }, targetDate: { required: true, type: () => String }, notes: { required: false, type: () => String, maxLength: 1000 } };
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
__decorate([
|
|
@@ -26,7 +26,7 @@ class CustomerDto {
|
|
|
26
26
|
exports.CustomerDto = CustomerDto;
|
|
27
27
|
class DashboardCustomersFiltersDto {
|
|
28
28
|
static _OPENAPI_METADATA_FACTORY() {
|
|
29
|
-
return { page: { required: false, type: () => Number }, limit: { required: false, type: () => Number }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, identificationNumber: { required: false, type: () => String }, mobileNumber: { required: false, type: () => String }, voipNumber: { required: false, type: () => String }, customerId: { required: false, type: () => String }, email: { required: false, type: () => String } };
|
|
29
|
+
return { page: { required: false, type: () => Number, minimum: 1 }, limit: { required: false, type: () => Number, minimum: 1 }, firstName: { required: false, type: () => String, pattern: SEARCH_FIELD_REGEX }, lastName: { required: false, type: () => String, pattern: SEARCH_FIELD_REGEX }, identificationNumber: { required: false, type: () => String, pattern: SEARCH_FIELD_REGEX }, mobileNumber: { required: false, type: () => String, minLength: 9 }, voipNumber: { required: false, type: () => String, minLength: 9 }, customerId: { required: false, type: () => String }, email: { required: false, type: () => String } };
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
__decorate([
|
|
@@ -101,7 +101,7 @@ __decorate([
|
|
|
101
101
|
exports.DashboardCustomersFiltersDto = DashboardCustomersFiltersDto;
|
|
102
102
|
class CustomerNotesFiltersDto {
|
|
103
103
|
static _OPENAPI_METADATA_FACTORY() {
|
|
104
|
-
return { page: { required: false, type: () => Number }, limit: { required: false, type: () => Number } };
|
|
104
|
+
return { page: { required: false, type: () => Number, minimum: 1 }, limit: { required: false, type: () => Number, minimum: 1 } };
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
__decorate([
|
|
@@ -205,7 +205,7 @@ class CustomerFinanceDto {
|
|
|
205
205
|
exports.CustomerFinanceDto = CustomerFinanceDto;
|
|
206
206
|
class CustomerDashboardFiltersDto {
|
|
207
207
|
static _OPENAPI_METADATA_FACTORY() {
|
|
208
|
-
return { page: { required: false, type: () => Number }, limit: { required: false, type: () => Number }, customerId: { required: false, type: () => String }, id: { required: false, type: () => String }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, createdBy: { required: false, type: () => String }, updatedBy: { required: false, type: () => String }, status: { required: false, type: () => String }, channel: { required: false, type: () => String }, productDisplayName: { required: false, type: () => String } };
|
|
208
|
+
return { page: { required: false, type: () => Number, minimum: 1 }, limit: { required: false, type: () => Number, minimum: 1 }, customerId: { required: false, type: () => String }, id: { required: false, type: () => String }, dateFrom: { required: false, type: () => String }, dateTo: { required: false, type: () => String }, createdBy: { required: false, type: () => String }, updatedBy: { required: false, type: () => String }, status: { required: false, type: () => String }, channel: { required: false, type: () => String }, productDisplayName: { required: false, type: () => String } };
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
__decorate([
|
|
@@ -60,7 +60,7 @@ __decorate([
|
|
|
60
60
|
exports.PatchCustomerNewExtrasProcessStatusWithShoppingCartIdDto = PatchCustomerNewExtrasProcessStatusWithShoppingCartIdDto;
|
|
61
61
|
class PatchCustomerNewExtrasProcessOrderDataSavedDto {
|
|
62
62
|
static _OPENAPI_METADATA_FACTORY() {
|
|
63
|
-
return { status: { required: true, enum: require("./customer-new-extras-process.constants").CustomerNewExtrasProcessStatus }, salesPerson: { required: true, type: () => String }, targetDate: { required: true, type: () => String }, chargeDate: { required: true, type: () => String }, notes: { required: false, type: () => String } };
|
|
63
|
+
return { status: { required: true, enum: require("./customer-new-extras-process.constants").CustomerNewExtrasProcessStatus }, salesPerson: { required: true, type: () => String }, targetDate: { required: true, type: () => String }, chargeDate: { required: true, type: () => String }, notes: { required: false, type: () => String, maxLength: 1000 } };
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
__decorate([
|
|
@@ -60,7 +60,7 @@ __decorate([
|
|
|
60
60
|
exports.PatchCustomerProductModificationProcessStatusWithShoppingCartIdDto = PatchCustomerProductModificationProcessStatusWithShoppingCartIdDto;
|
|
61
61
|
class PatchCustomerProductModificationProcessOrderDataSavedDto {
|
|
62
62
|
static _OPENAPI_METADATA_FACTORY() {
|
|
63
|
-
return { status: { required: true, enum: require("./customer-product-modification-process.constants").CustomerProductModificationProcessStatus }, salesPerson: { required: true, type: () => String }, targetDate: { required: true, type: () => String }, chargeDate: { required: true, type: () => String }, notes: { required: false, type: () => String } };
|
|
63
|
+
return { status: { required: true, enum: require("./customer-product-modification-process.constants").CustomerProductModificationProcessStatus }, salesPerson: { required: true, type: () => String }, targetDate: { required: true, type: () => String }, chargeDate: { required: true, type: () => String }, notes: { required: false, type: () => String, maxLength: 1000 } };
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
__decorate([
|
package/dist/sys03/customer-product-transition-process/customer-product-transition-process.entity.js
CHANGED
|
@@ -90,7 +90,7 @@ __decorate([
|
|
|
90
90
|
exports.PatchCustomerProductTransitionProcessStatusWithShoppingCartIdDto = PatchCustomerProductTransitionProcessStatusWithShoppingCartIdDto;
|
|
91
91
|
class PatchCustomerProductTransitionProcessOrderDataSavedDto {
|
|
92
92
|
static _OPENAPI_METADATA_FACTORY() {
|
|
93
|
-
return { status: { required: true, enum: require("./customer-product-transition-process.constants").CustomerProductTransitionProcessStatus }, salesPerson: { required: true, type: () => String }, reason: { required: false, type: () => String }, targetDate: { required: true, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String } };
|
|
93
|
+
return { status: { required: true, enum: require("./customer-product-transition-process.constants").CustomerProductTransitionProcessStatus }, salesPerson: { required: true, type: () => String }, reason: { required: false, type: () => String }, targetDate: { required: true, type: () => String }, chargeDate: { required: false, type: () => String }, notes: { required: false, type: () => String, maxLength: 1000 } };
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
__decorate([
|