adamo-types 1.1.152 → 1.1.153

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.
@@ -13,6 +13,7 @@ export declare class BpProductOrderItemDto {
13
13
  export declare class BpProductOrderDto {
14
14
  id: string;
15
15
  channel: string;
16
+ billingAccount: string;
16
17
  type: ProductOrderType;
17
18
  orderItems: BpProductOrderItemDto[];
18
19
  parameters: Record<string, string>;
@@ -16,7 +16,7 @@ class BpProductOrderItemDto {
16
16
  exports.BpProductOrderItemDto = BpProductOrderItemDto;
17
17
  class BpProductOrderDto {
18
18
  static _OPENAPI_METADATA_FACTORY() {
19
- return { id: { required: true, type: () => String }, channel: { required: true, type: () => String }, type: { required: true, enum: require("../../constants/bp.constants").ProductOrderType }, orderItems: { required: true, type: () => [require("./product-inventory.entity").BpProductOrderItemDto] }, parameters: { required: true, type: () => Object } };
19
+ return { id: { required: true, type: () => String }, channel: { required: true, type: () => String }, billingAccount: { required: true, type: () => String }, type: { required: true, enum: require("../../constants/bp.constants").ProductOrderType }, orderItems: { required: true, type: () => [require("./product-inventory.entity").BpProductOrderItemDto] }, parameters: { required: true, type: () => Object } };
20
20
  }
21
21
  }
22
22
  exports.BpProductOrderDto = BpProductOrderDto;
@@ -4,6 +4,7 @@ export declare class ShoppingCartDto {
4
4
  id?: string;
5
5
  user?: string;
6
6
  chargeDate?: string;
7
+ order?: string;
7
8
  channel?: string;
8
9
  products?: ShoppingCartProductDto[];
9
10
  billingAccount?: string;
@@ -17,7 +17,7 @@ const _1 = require(".");
17
17
  const shopping_cart_product_entity_1 = require("./shopping-cart-product.entity");
18
18
  class ShoppingCartDto {
19
19
  static _OPENAPI_METADATA_FACTORY() {
20
- return { id: { required: false, type: () => String }, user: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, channel: { required: false, type: () => String }, products: { required: false, type: () => [require("./shopping-cart-product.entity").ShoppingCartProductDto] }, billingAccount: { required: false, type: () => String }, parameters: { required: false, type: () => require("./shopping-cart-parameters.entity").ShoppingCartParametersDto } };
20
+ return { id: { required: false, type: () => String }, user: { required: false, type: () => String }, chargeDate: { required: false, type: () => String }, order: { required: false, type: () => String }, channel: { required: false, type: () => String }, products: { required: false, type: () => [require("./shopping-cart-product.entity").ShoppingCartProductDto] }, billingAccount: { required: false, type: () => String }, parameters: { required: false, type: () => require("./shopping-cart-parameters.entity").ShoppingCartParametersDto } };
21
21
  }
22
22
  }
23
23
  __decorate([
@@ -0,0 +1,63 @@
1
+ export declare enum BpTaskParameterType {
2
+ COMERCIAL = "Comercial"
3
+ }
4
+ export declare enum BpTaskParameterSubType {
5
+ MODIFY_CONTRACTED_SERVICE = "Modificar el servicio contratado"
6
+ }
7
+ export declare enum BpTaskParameterContactTypes {
8
+ NOTE_OTHERS = "Nota / Otros"
9
+ }
10
+ export declare enum BpTaskParameterCategoryTypes {
11
+ INTERVENTION = "Actuaci\u00F3n"
12
+ }
13
+ export declare class BpTaskParametersDto {
14
+ dueDate: string;
15
+ creationDate: string;
16
+ description: string;
17
+ billingAccountId: string;
18
+ priority: keyof typeof BpTaskPriority;
19
+ type: BpTaskParameterType;
20
+ contact: BpTaskParameterContactTypes;
21
+ subType: BpTaskParameterSubType;
22
+ category: BpTaskParameterCategoryTypes;
23
+ operatorId: string;
24
+ }
25
+ export declare enum BpTaskPriority {
26
+ Medium = 3
27
+ }
28
+ export declare enum BpRelatedProductOrderRelationType {
29
+ REFERENCE = "reference"
30
+ }
31
+ export declare class BpRelatedProductOrderDto {
32
+ id: string;
33
+ relationType: BpRelatedProductOrderRelationType;
34
+ }
35
+ export declare enum BpTaskDefinitionTypes {
36
+ COMERCIAL_MODIFY_WITH_SERVICE = "COMMERCIAL_MODIFY_CON_SERVICE"
37
+ }
38
+ export declare class BpTaskDto {
39
+ readonly id?: string;
40
+ taskDefinition: BpTaskDefinitionTypes;
41
+ billingAccount: string;
42
+ assignee: string;
43
+ priority: BpTaskPriority;
44
+ tags: string[];
45
+ relatedProductOrders?: BpRelatedProductOrderDto[];
46
+ parameters: BpTaskParametersDto;
47
+ }
48
+ export declare enum BpTaskResolveResolutionActionTypes {
49
+ CLOSED = "Closed successfully"
50
+ }
51
+ export declare class BpTaskResolveDto {
52
+ resolutionNote: string;
53
+ resolutionAction: BpTaskResolveResolutionActionTypes;
54
+ tasks: string[];
55
+ }
56
+ export declare class BpTaskResolveResDto {
57
+ enqueuedTasks: number;
58
+ totalTasks: number;
59
+ failedTasks: number;
60
+ succeededTasks: number;
61
+ resolvedTasks: number;
62
+ notFoundTasks: number;
63
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BpTaskResolveResDto = exports.BpTaskResolveDto = exports.BpTaskResolveResolutionActionTypes = exports.BpTaskDto = exports.BpTaskDefinitionTypes = exports.BpRelatedProductOrderDto = exports.BpRelatedProductOrderRelationType = exports.BpTaskPriority = exports.BpTaskParametersDto = exports.BpTaskParameterCategoryTypes = exports.BpTaskParameterContactTypes = exports.BpTaskParameterSubType = exports.BpTaskParameterType = void 0;
4
+ var BpTaskParameterType;
5
+ (function (BpTaskParameterType) {
6
+ BpTaskParameterType["COMERCIAL"] = "Comercial";
7
+ })(BpTaskParameterType = exports.BpTaskParameterType || (exports.BpTaskParameterType = {}));
8
+ var BpTaskParameterSubType;
9
+ (function (BpTaskParameterSubType) {
10
+ BpTaskParameterSubType["MODIFY_CONTRACTED_SERVICE"] = "Modificar el servicio contratado";
11
+ })(BpTaskParameterSubType = exports.BpTaskParameterSubType || (exports.BpTaskParameterSubType = {}));
12
+ var BpTaskParameterContactTypes;
13
+ (function (BpTaskParameterContactTypes) {
14
+ BpTaskParameterContactTypes["NOTE_OTHERS"] = "Nota / Otros";
15
+ })(BpTaskParameterContactTypes = exports.BpTaskParameterContactTypes || (exports.BpTaskParameterContactTypes = {}));
16
+ var BpTaskParameterCategoryTypes;
17
+ (function (BpTaskParameterCategoryTypes) {
18
+ BpTaskParameterCategoryTypes["INTERVENTION"] = "Actuaci\u00F3n";
19
+ })(BpTaskParameterCategoryTypes = exports.BpTaskParameterCategoryTypes || (exports.BpTaskParameterCategoryTypes = {}));
20
+ class BpTaskParametersDto {
21
+ }
22
+ exports.BpTaskParametersDto = BpTaskParametersDto;
23
+ var BpTaskPriority;
24
+ (function (BpTaskPriority) {
25
+ BpTaskPriority[BpTaskPriority["Medium"] = 3] = "Medium";
26
+ })(BpTaskPriority = exports.BpTaskPriority || (exports.BpTaskPriority = {}));
27
+ var BpRelatedProductOrderRelationType;
28
+ (function (BpRelatedProductOrderRelationType) {
29
+ BpRelatedProductOrderRelationType["REFERENCE"] = "reference";
30
+ })(BpRelatedProductOrderRelationType = exports.BpRelatedProductOrderRelationType || (exports.BpRelatedProductOrderRelationType = {}));
31
+ class BpRelatedProductOrderDto {
32
+ }
33
+ exports.BpRelatedProductOrderDto = BpRelatedProductOrderDto;
34
+ var BpTaskDefinitionTypes;
35
+ (function (BpTaskDefinitionTypes) {
36
+ BpTaskDefinitionTypes["COMERCIAL_MODIFY_WITH_SERVICE"] = "COMMERCIAL_MODIFY_CON_SERVICE";
37
+ })(BpTaskDefinitionTypes = exports.BpTaskDefinitionTypes || (exports.BpTaskDefinitionTypes = {}));
38
+ class BpTaskDto {
39
+ }
40
+ exports.BpTaskDto = BpTaskDto;
41
+ var BpTaskResolveResolutionActionTypes;
42
+ (function (BpTaskResolveResolutionActionTypes) {
43
+ BpTaskResolveResolutionActionTypes["CLOSED"] = "Closed successfully";
44
+ })(BpTaskResolveResolutionActionTypes = exports.BpTaskResolveResolutionActionTypes || (exports.BpTaskResolveResolutionActionTypes = {}));
45
+ class BpTaskResolveDto {
46
+ }
47
+ exports.BpTaskResolveDto = BpTaskResolveDto;
48
+ class BpTaskResolveResDto {
49
+ }
50
+ exports.BpTaskResolveResDto = BpTaskResolveResDto;
@@ -124,3 +124,5 @@ export declare const E_PUT_LOOKUP_OPTIONS = "E_PUT_LOOKUP_OPTIONS";
124
124
  export declare const E_PARSE_CSV = "E_PARSE_CSV";
125
125
  export declare const E_CSV_INVALID_RECORD_LENGTH = "E_CSV_INVALID_RECORD_LENGTH";
126
126
  export declare const E_DIGITEL_PROCESS_ERROR = "E_DIGITEL_PROCESS_ERROR";
127
+ export declare const E_CREATE_TASK = "E_CREATE_TASK";
128
+ export declare const E_RESOLVE_TASKS = "E_RESOLVE_TASKS";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.E_UPDATE_PAYMENT_METHOD = exports.E_CREATE_PAYMENT_METHOD = exports.E_UPDATE_MANDATE = exports.E_CREATE_MANDATE = exports.E_UPDATE_BILLING_ACCOUNT = exports.E_CREATE_BILLING_ACCOUNT = exports.E_UPLOAD_CUSTOMER_ACCOUNT_DOCUMENT = exports.E_CREATE_CUSTOMER_ACCOUNT_NOTE = exports.E_UPDATE_CUSTOMER_ACCOUNT = exports.E_CREATE_CUSTOMER_ACCOUNT = exports.E_FETCH_ADDRESS = exports.E_CREATE_ADDRESS = exports.E_FIBER_NOT_AVAILABLE_FOR_THIS_NETWORK = exports.E_UPDATE_SHOPPING_CART_CONFIGURATION = exports.E_CIF_VALIDATION = exports.E_NIE_VALIDATION = exports.E_DNI_VALIDATION = exports.E_SET_SHOPPING_CART_PROMOTIONS = exports.E_SET_SHOPPING_CART_CONTRACT = exports.E_FETCH_AVAILABLE_NUMBERS_FROM_POOL = exports.E_PROVINCE_WITHOUT_PREFIXES = exports.E_SERVER = exports.E_CONNECTION_REFUSED = exports.E_VALIDATION = exports.E_BODY_NOT_OBJECT = exports.E_BODY_NOT_ARRAY = exports.E_BODY_NOT_PROVIDED = exports.E_NO_CHANNEL_SELECTED = exports.E_CHANGE_CHANNEL = exports.E_BP = exports.E_BP_INTERNAL_SERVER_ERROR = exports.E_UPDATE_SHOPPING_CART_EXTRAS = exports.E_EMPTY_SHOPPING_CART = exports.E_SHOPPING_CART_NOT_FOUND = exports.E_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = exports.E_SAVE_SHOPPING_CART = exports.E_CREATE_SHOPPING_CART = exports.E_FETCH_PRODUCT_DEFAULT_SUMMARY = exports.E_FETCH_SHOPPING_CART_CONFIGURATION = exports.E_FETCH_SHOPPING_CART_SUMMARY = exports.E_FETCH_SHOPPING_CART_AVAILABLE_EXTRAS = exports.E_FETCH_SHOPPING_CART_AVAILABLE_PRODUCT = exports.E_FETCH_SHOPPING_CART_AVAILABLE_PRODUCTS = exports.E_FETCH_PRODUCT_OFFERINGS = exports.E_ASSIGN_SALESPERSON = exports.E_ASSIGN_ROLE_TENENT = exports.E_CREATE_USER = exports.E_UPDATE_PASSWORD = exports.E_ASSIGN_CHANNELS = exports.E_LOGIN = void 0;
4
4
  exports.E_UPLOAD_SALE_PROCESS_CONTRACT = exports.E_FETCH_USER_CHANNELS = exports.E_UNAUTHORIZED = exports.E_USER_WITHOUT_CHANNELS = exports.E_FETCH_SHOPPING_CART_FEATURES = exports.E_NOT_BASE_BUNDLE = exports.E_NO_SELECTED_CHANNEL = exports.E_FETCH_LOOKUP_OPTIONS = exports.E_INVALID_SALE_PROCESS_STATUS = exports.E_NOT_FOUND = exports.E_USER_ROLE_UNKNOWN = exports.E_USER_WITHOUT_ROLE = exports.E_RESERVE_NUMBER_FROM_POOL = exports.E_WHOLESALE_APARTMENT_BLACKLISTED = exports.E_USER_SALE_PROCESS_PERMISSION = exports.E_UPDATE_CACHE_RECORD = exports.E_DELETE_CACHE_RECORD = exports.E_UPDATE_PRODUCT_CATALOG = exports.E_DELETE_PRODUCT_CATALOG = exports.E_CREATE_CUSTOMER_ACCOUNT_HISTORY = exports.E_FETCH_ORGANIZATION_PARTY = exports.E_FETCH_INDIVIDUAL_PARTY = exports.E_FETCH_PAYMENT_METHOD = exports.E_FETCH_MANDATE = exports.E_FETCH_BILLING_ACCOUNT = exports.E_FETCH_PRODUCT_INVENTORY = exports.E_FETCH_CUSTOMERS = exports.E_FETCH_ORGANIZATION_PARTIES = exports.E_FETCH_INDIVIDUAL_PARTIES = exports.E_DOWNLOAD_INVOICE = exports.E_FETCH_BILLING_ACCOUNT_DETAILS = exports.E_INVALID_IBAN_ACCOUNT_NUMBER_CONTROL_CODE = exports.E_INVALID_IBAN_MOD = exports.E_INVALID_IBAN_FORMAT = exports.E_INVALID_IBAN_LENGTH = exports.E_INVALID_IBAN_ISO_CODE = exports.E_IBAN_IS_REQUIRED = exports.E_IBAN_COUNTRY_NOT_SUPPORTED = exports.E_SPAIN_NOT_ALLOWED = exports.E_EMAIL_INVALID_FORMAT = exports.E_PHONE_INVALID_FORMAT = exports.E_PHONE_INVALID_LENGTH = exports.E_VALIDATE_SHOPPING_CART = exports.E_FETCH_CHANNEL_USERS = exports.E_FTP_RENAME = exports.E_FTP_REMOVE = exports.E_FTP_DOWNLOAD = exports.E_FTP_UPLOAD = exports.E_SUBMIT_SHOPPING_CART = exports.E_FETCH_SHOPPING_CART = void 0;
5
- exports.E_DIGITEL_PROCESS_ERROR = exports.E_CSV_INVALID_RECORD_LENGTH = exports.E_PARSE_CSV = exports.E_PUT_LOOKUP_OPTIONS = exports.E_USER_INACTIVE = exports.E_USER_WITHOUT_TENANTS = exports.E_USER_WITH_EMPTY_WORKGROUP_PERMISSIONS = exports.E_USER_WITHOUT_WORKGROUPS = exports.E_USER_WITHOUT_AUTH = exports.E_BI_SALES_EXTRACTION = exports.E_CUSTOMER_WITHOUT_RELATED_PARTY = exports.E_FETCH_PRODUCT_ORDER = exports.E_FETCH_PRODUCT_ORDERS = exports.E_SALE_PROCESS_DOCUMENTS_REQUIRED = exports.E_SALE_PROCESS_WITHOUT_SHOPPING_CART = exports.E_APPLY_CHARGE = exports.E_PRODUCT_SERVICE_MISSING = exports.E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_UPDATE_PRODUCT_CATALOG_CACHE = exports.E_DUPLICATE_ENTRY = exports.E_UNHANDLED_KEY = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_LEAD_FILE_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LOGIN_MAX_ATTEMPTS_REACHED = exports.E_TOO_MANY_REQUESTS = void 0;
5
+ exports.E_RESOLVE_TASKS = exports.E_CREATE_TASK = exports.E_DIGITEL_PROCESS_ERROR = exports.E_CSV_INVALID_RECORD_LENGTH = exports.E_PARSE_CSV = exports.E_PUT_LOOKUP_OPTIONS = exports.E_USER_INACTIVE = exports.E_USER_WITHOUT_TENANTS = exports.E_USER_WITH_EMPTY_WORKGROUP_PERMISSIONS = exports.E_USER_WITHOUT_WORKGROUPS = exports.E_USER_WITHOUT_AUTH = exports.E_BI_SALES_EXTRACTION = exports.E_CUSTOMER_WITHOUT_RELATED_PARTY = exports.E_FETCH_PRODUCT_ORDER = exports.E_FETCH_PRODUCT_ORDERS = exports.E_SALE_PROCESS_DOCUMENTS_REQUIRED = exports.E_SALE_PROCESS_WITHOUT_SHOPPING_CART = exports.E_APPLY_CHARGE = exports.E_PRODUCT_SERVICE_MISSING = exports.E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = exports.E_UPDATE_PRODUCT_CATALOG_CACHE = exports.E_DUPLICATE_ENTRY = exports.E_UNHANDLED_KEY = exports.E_FETCH_CUSTOMER_ACCOUNT_FINANCE_BALANCES = exports.E_LEAD_FILE_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LOGIN_MAX_ATTEMPTS_REACHED = exports.E_TOO_MANY_REQUESTS = void 0;
6
6
  exports.E_LOGIN = 'E_LOGIN';
7
7
  exports.E_ASSIGN_CHANNELS = 'E_ASSIGN_CHANNELS';
8
8
  exports.E_UPDATE_PASSWORD = 'E_UPDATE_PASSWORD';
@@ -129,3 +129,5 @@ exports.E_PUT_LOOKUP_OPTIONS = 'E_PUT_LOOKUP_OPTIONS';
129
129
  exports.E_PARSE_CSV = 'E_PARSE_CSV';
130
130
  exports.E_CSV_INVALID_RECORD_LENGTH = 'E_CSV_INVALID_RECORD_LENGTH';
131
131
  exports.E_DIGITEL_PROCESS_ERROR = 'E_DIGITEL_PROCESS_ERROR';
132
+ exports.E_CREATE_TASK = 'E_CREATE_TASK';
133
+ exports.E_RESOLVE_TASKS = 'E_RESOLVE_TASKS';
@@ -54,6 +54,10 @@ export declare class FeatureGroupDto {
54
54
  export declare class FeatureGroupsItemsDto {
55
55
  items: FeatureGroupDto[];
56
56
  }
57
+ export declare class BillingCyclesDto {
58
+ BUSINESS: string;
59
+ RESIDENTIAL: string;
60
+ }
57
61
  export declare class ReferenceDateDto {
58
62
  [StorageConfiguration.RETAIL_EXCLUSIVITY_RULES]?: Date | null;
59
63
  }
@@ -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.DigitelCircuitInfoDto = exports.DigitelCircuitDto = exports.DigitelCircuitsMapDto = exports.DigitelCircuitTypeDto = exports.ProductMandatoryDocumentsItemsDto = exports.ProductMandatoryDocumentsDto = exports.ReferenceDateDto = exports.FeatureGroupsItemsDto = exports.FeatureGroupDto = exports.RetailExclusivityRulesItemsDto = exports.ConfigurationArrayItem = exports.ConfigurationRetailExclusivityDto = exports.ConfigurationServiceableAgeDto = exports.ConfigurationSegmentsDto = exports.ConfigurationSegmentDto = exports.FeatureGroupCharacteristic = exports.FeatureGroup = exports.ConfigurationDto = void 0;
13
+ exports.DigitelCircuitInfoDto = exports.DigitelCircuitDto = exports.DigitelCircuitsMapDto = exports.DigitelCircuitTypeDto = 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.FeatureGroupCharacteristic = 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");
@@ -207,6 +207,26 @@ __decorate([
207
207
  __metadata("design:type", Array)
208
208
  ], FeatureGroupsItemsDto.prototype, "items", void 0);
209
209
  exports.FeatureGroupsItemsDto = FeatureGroupsItemsDto;
210
+ class BillingCyclesDto {
211
+ static _OPENAPI_METADATA_FACTORY() {
212
+ return { BUSINESS: { required: true, type: () => String }, RESIDENTIAL: { required: true, type: () => String } };
213
+ }
214
+ }
215
+ __decorate([
216
+ (0, class_validator_1.IsString)(),
217
+ (0, class_validator_1.IsNotEmpty)(),
218
+ (0, _validators_1.IsNotBlank)(),
219
+ (0, class_transformer_1.Expose)(),
220
+ __metadata("design:type", String)
221
+ ], BillingCyclesDto.prototype, "BUSINESS", void 0);
222
+ __decorate([
223
+ (0, class_validator_1.IsString)(),
224
+ (0, class_validator_1.IsNotEmpty)(),
225
+ (0, _validators_1.IsNotBlank)(),
226
+ (0, class_transformer_1.Expose)(),
227
+ __metadata("design:type", String)
228
+ ], BillingCyclesDto.prototype, "RESIDENTIAL", void 0);
229
+ exports.BillingCyclesDto = BillingCyclesDto;
210
230
  class ReferenceDateDto {
211
231
  static _OPENAPI_METADATA_FACTORY() {
212
232
  return {};
@@ -25,30 +25,31 @@ export declare class UpDownGradeBaseOfferDto {
25
25
  from: string;
26
26
  to: string;
27
27
  }
28
- export declare class CustomerNotificationDto {
29
- sendNotification: boolean;
30
- mobilePhone?: string;
31
- }
32
28
  export declare class UpDownGradeDto {
33
29
  dryrun?: boolean;
34
30
  billingAccountId: string;
31
+ taskDescription?: string;
35
32
  user?: string;
36
33
  chargeDate?: string;
37
- customerNotification: CustomerNotificationDto;
38
34
  from: string;
35
+ fromId?: string;
39
36
  to: string;
40
37
  baseOffers: UpDownGradeBaseOfferDto[];
41
38
  }
42
39
  export declare class BulkUpDownGradeDto {
43
40
  dryrun?: boolean;
44
41
  user?: string;
42
+ taskDescription: string;
45
43
  chargeDate?: string;
46
- customerNotification: CustomerNotificationDto;
47
44
  list: UpDownGradeDto[];
48
45
  }
46
+ export declare class UpDownGradeOutputDto {
47
+ shoppingCart: ShoppingCartDto;
48
+ taskError?: Error;
49
+ }
49
50
  export declare class BulkUpDownGradeOutputDto extends CustomError {
50
51
  error: boolean;
51
- shoppingCart?: ShoppingCartDto;
52
+ data?: Partial<UpDownGradeOutputDto>[];
52
53
  }
53
54
  export declare class BulkUpDownGradeResDto {
54
55
  input: UpDownGradeDto;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BulkUpDownGradeResDto = exports.BulkUpDownGradeOutputDto = exports.BulkUpDownGradeDto = exports.UpDownGradeDto = exports.CustomerNotificationDto = exports.UpDownGradeBaseOfferDto = exports.SummaryChracteristicsGroupDto = exports.UpDownGradeConfigurationDto = exports.UpDownGradeConfigurationProductCharacteristicDto = exports.MigrationPathDto = void 0;
12
+ exports.BulkUpDownGradeResDto = exports.BulkUpDownGradeOutputDto = exports.UpDownGradeOutputDto = exports.BulkUpDownGradeDto = exports.UpDownGradeDto = exports.UpDownGradeBaseOfferDto = exports.SummaryChracteristicsGroupDto = exports.UpDownGradeConfigurationDto = exports.UpDownGradeConfigurationProductCharacteristicDto = exports.MigrationPathDto = void 0;
13
13
  const exception_1 = require("../../common/exception");
14
14
  const _validators_1 = require("../../validators/index");
15
15
  const class_transformer_1 = require("class-transformer");
@@ -41,33 +41,26 @@ __decorate([
41
41
  __metadata("design:type", String)
42
42
  ], UpDownGradeBaseOfferDto.prototype, "to", void 0);
43
43
  exports.UpDownGradeBaseOfferDto = UpDownGradeBaseOfferDto;
44
- class CustomerNotificationDto {
44
+ class UpDownGradeDto {
45
45
  }
46
46
  __decorate([
47
47
  (0, class_validator_1.IsBoolean)(),
48
+ (0, class_validator_1.IsOptional)(),
48
49
  __metadata("design:type", Boolean)
49
- ], CustomerNotificationDto.prototype, "sendNotification", void 0);
50
+ ], UpDownGradeDto.prototype, "dryrun", void 0);
50
51
  __decorate([
51
52
  (0, class_validator_1.IsString)(),
52
53
  (0, class_validator_1.IsNotEmpty)(),
53
54
  (0, _validators_1.IsNotBlank)(),
54
- (0, class_validator_1.ValidateIf)((o) => o.sendNotification === false),
55
55
  __metadata("design:type", String)
56
- ], CustomerNotificationDto.prototype, "mobilePhone", void 0);
57
- exports.CustomerNotificationDto = CustomerNotificationDto;
58
- class UpDownGradeDto {
59
- }
60
- __decorate([
61
- (0, class_validator_1.IsBoolean)(),
62
- (0, class_validator_1.IsOptional)(),
63
- __metadata("design:type", Boolean)
64
- ], UpDownGradeDto.prototype, "dryrun", void 0);
56
+ ], UpDownGradeDto.prototype, "billingAccountId", void 0);
65
57
  __decorate([
66
58
  (0, class_validator_1.IsString)(),
67
59
  (0, class_validator_1.IsNotEmpty)(),
68
60
  (0, _validators_1.IsNotBlank)(),
61
+ (0, class_validator_1.IsOptional)({ groups: ['bulk'] }),
69
62
  __metadata("design:type", String)
70
- ], UpDownGradeDto.prototype, "billingAccountId", void 0);
63
+ ], UpDownGradeDto.prototype, "taskDescription", void 0);
71
64
  __decorate([
72
65
  (0, class_validator_1.IsString)(),
73
66
  (0, class_validator_1.IsNotEmpty)(),
@@ -80,19 +73,19 @@ __decorate([
80
73
  (0, class_validator_1.IsOptional)(),
81
74
  __metadata("design:type", String)
82
75
  ], UpDownGradeDto.prototype, "chargeDate", void 0);
83
- __decorate([
84
- (0, class_validator_1.IsDefined)(),
85
- (0, class_validator_1.ValidateNested)(),
86
- (0, class_transformer_1.Type)(() => CustomerNotificationDto),
87
- (0, class_validator_1.ValidateIf)((o) => o.customerNotification !== undefined, { groups: ['bulk'] }),
88
- __metadata("design:type", CustomerNotificationDto)
89
- ], UpDownGradeDto.prototype, "customerNotification", void 0);
90
76
  __decorate([
91
77
  (0, class_validator_1.IsString)(),
92
78
  (0, class_validator_1.IsNotEmpty)(),
93
79
  (0, _validators_1.IsNotBlank)(),
94
80
  __metadata("design:type", String)
95
81
  ], UpDownGradeDto.prototype, "from", void 0);
82
+ __decorate([
83
+ (0, class_validator_1.IsString)(),
84
+ (0, class_validator_1.IsNotEmpty)(),
85
+ (0, _validators_1.IsNotBlank)(),
86
+ (0, class_validator_1.IsOptional)(),
87
+ __metadata("design:type", String)
88
+ ], UpDownGradeDto.prototype, "fromId", void 0);
96
89
  __decorate([
97
90
  (0, class_validator_1.IsString)(),
98
91
  (0, class_validator_1.IsNotEmpty)(),
@@ -122,17 +115,17 @@ __decorate([
122
115
  (0, class_validator_1.IsOptional)(),
123
116
  __metadata("design:type", String)
124
117
  ], BulkUpDownGradeDto.prototype, "user", void 0);
118
+ __decorate([
119
+ (0, class_validator_1.IsString)(),
120
+ (0, class_validator_1.IsNotEmpty)(),
121
+ (0, _validators_1.IsNotBlank)(),
122
+ __metadata("design:type", String)
123
+ ], BulkUpDownGradeDto.prototype, "taskDescription", void 0);
125
124
  __decorate([
126
125
  (0, class_validator_1.IsDateString)(),
127
126
  (0, class_validator_1.IsOptional)(),
128
127
  __metadata("design:type", String)
129
128
  ], BulkUpDownGradeDto.prototype, "chargeDate", void 0);
130
- __decorate([
131
- (0, class_validator_1.IsDefined)(),
132
- (0, class_validator_1.ValidateNested)(),
133
- (0, class_transformer_1.Type)(() => CustomerNotificationDto),
134
- __metadata("design:type", CustomerNotificationDto)
135
- ], BulkUpDownGradeDto.prototype, "customerNotification", void 0);
136
129
  __decorate([
137
130
  (0, class_validator_1.IsArray)(),
138
131
  (0, class_validator_1.IsDefined)(),
@@ -142,6 +135,9 @@ __decorate([
142
135
  __metadata("design:type", Array)
143
136
  ], BulkUpDownGradeDto.prototype, "list", void 0);
144
137
  exports.BulkUpDownGradeDto = BulkUpDownGradeDto;
138
+ class UpDownGradeOutputDto {
139
+ }
140
+ exports.UpDownGradeOutputDto = UpDownGradeOutputDto;
145
141
  class BulkUpDownGradeOutputDto extends exception_1.CustomError {
146
142
  }
147
143
  exports.BulkUpDownGradeOutputDto = BulkUpDownGradeOutputDto;