adamo-types 1.1.71 → 1.1.73

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.
Files changed (44) hide show
  1. package/dist/bss/bearingpoint/customer/customer-account-parameters.entity.d.ts +2 -1
  2. package/dist/bss/bearingpoint/customer/customer-account-parameters.entity.js +6 -1
  3. package/dist/bss/bearingpoint/shopping-cart/shopping-cart-product-characteristic.entity.d.ts +1 -1
  4. package/dist/bss/constants/bp.constants.d.ts +6 -0
  5. package/dist/bss/constants/bp.constants.js +8 -1
  6. package/dist/common/constants/common.constants.d.ts +7 -6
  7. package/dist/common/constants/common.constants.js +7 -6
  8. package/dist/common/edge-bss/address/req/create.entity.js +5 -5
  9. package/dist/common/edge-bss/channel/req/channel.entity.d.ts +1 -3
  10. package/dist/common/edge-bss/customer/req/create.entity.d.ts +2 -1
  11. package/dist/common/edge-bss/customer/req/create.entity.js +1 -1
  12. package/dist/common/edge-bss/saleperson/index.d.ts +0 -1
  13. package/dist/common/edge-bss/saleperson/index.js +0 -1
  14. package/dist/common/edge-bss/shopping-cart/req/other.entity.js +2 -2
  15. package/dist/common/edge-bss/shopping-cart/res/index.d.ts +0 -2
  16. package/dist/common/edge-bss/shopping-cart/res/index.js +0 -2
  17. package/dist/common/edge-bss/shopping-cart/res/other.entity.js +5 -5
  18. package/dist/common/edge-zoho/sale-process/req/create.entity.d.ts +2 -0
  19. package/dist/common/edge-zoho/sale-process/req/create.entity.js +8 -1
  20. package/dist/common/edge-zoho/sale-process/req/patch.entity.js +7 -7
  21. package/dist/common/exception/exception.entity.js +1 -1
  22. package/dist/database/dropdown.entity.js +1 -1
  23. package/dist/database/dropdown_data.entity.js +1 -1
  24. package/dist/database/lead.entity.js +3 -3
  25. package/dist/database/leads-additional-contact-medium.entity.js +7 -3
  26. package/dist/database/leads-additional-contact.entity.js +2 -2
  27. package/dist/database/leads-data.entity.js +1 -1
  28. package/dist/database/leads-file.entity.js +1 -1
  29. package/dist/database/user.entity.js +1 -1
  30. package/dist/sys03/sale-process/internal/internal.entity.d.ts +8 -0
  31. package/dist/sys03/sale-process/internal/internal.entity.js +13 -1
  32. package/dist/tsconfig.build.tsbuildinfo +1 -1
  33. package/dist/zoho/sale-process/billing-info.entity.js +1 -1
  34. package/dist/zoho/sale-process/customer-identification.entity.js +1 -1
  35. package/dist/zoho/sale-process/customer.entity.js +1 -1
  36. package/dist/zoho/sale-process/sale-process.entity.d.ts +20 -20
  37. package/dist/zoho/sale-process/sale-process.entity.js +1 -1
  38. package/package.json +2 -1
  39. package/dist/common/edge-bss/saleperson/res/salesperson.entity.d.ts +0 -2
  40. package/dist/common/edge-bss/saleperson/res/salesperson.entity.js +0 -3
  41. package/dist/common/edge-bss/shopping-cart/res/delete.entity.d.ts +0 -2
  42. package/dist/common/edge-bss/shopping-cart/res/delete.entity.js +0 -3
  43. package/dist/common/edge-bss/shopping-cart/res/update.entity.d.ts +0 -2
  44. package/dist/common/edge-bss/shopping-cart/res/update.entity.js +0 -3
@@ -1,6 +1,7 @@
1
- import { ContactType, CustomerAccountParametersAdamoCustomerIdRep } from '@bss/constants';
1
+ import { BusinessSegmentType, ContactType, CustomerAccountParametersAdamoCustomerIdRep } from '@bss/constants';
2
2
  export declare class BpCustomerAccountParametersDto {
3
3
  customerContactType?: ContactType;
4
4
  ADAMO_CUSTOMER_ID_REP?: CustomerAccountParametersAdamoCustomerIdRep;
5
+ businessSegmentation?: BusinessSegmentType;
5
6
  ADAMO_REFERENCES?: string;
6
7
  }
@@ -15,7 +15,7 @@ const constants_1 = require("../../constants");
15
15
  const class_validator_1 = require("class-validator");
16
16
  class BpCustomerAccountParametersDto {
17
17
  static _OPENAPI_METADATA_FACTORY() {
18
- return { customerContactType: { required: false, enum: require("../../constants/bp.constants").ContactType }, ADAMO_CUSTOMER_ID_REP: { required: false, enum: require("../../constants/bp.constants").CustomerAccountParametersAdamoCustomerIdRep }, ADAMO_REFERENCES: { required: false, type: () => String } };
18
+ return { customerContactType: { required: false, enum: require("../../constants/bp.constants").ContactType }, ADAMO_CUSTOMER_ID_REP: { required: false, enum: require("../../constants/bp.constants").CustomerAccountParametersAdamoCustomerIdRep }, businessSegmentation: { required: false, enum: require("../../constants/bp.constants").BusinessSegmentType }, ADAMO_REFERENCES: { required: false, type: () => String } };
19
19
  }
20
20
  }
21
21
  __decorate([
@@ -28,6 +28,11 @@ __decorate([
28
28
  (0, class_validator_1.IsOptional)(),
29
29
  __metadata("design:type", String)
30
30
  ], BpCustomerAccountParametersDto.prototype, "ADAMO_CUSTOMER_ID_REP", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsEnum)(constants_1.BusinessSegmentType),
33
+ (0, class_validator_1.IsOptional)(),
34
+ __metadata("design:type", String)
35
+ ], BpCustomerAccountParametersDto.prototype, "businessSegmentation", void 0);
31
36
  __decorate([
32
37
  (0, class_validator_1.IsString)(),
33
38
  (0, class_validator_1.IsOptional)(),
@@ -2,5 +2,5 @@ import { ShoppingCartItemAction } from '@bss/constants';
2
2
  export declare class ShoppingCartProductCharacteristicDto {
3
3
  name: string;
4
4
  action: ShoppingCartItemAction;
5
- charges?: object;
5
+ charges?: any;
6
6
  }
@@ -321,3 +321,9 @@ export declare enum CustomerAccountHistoryType {
321
321
  SERVICE = "Service",
322
322
  TASK = "Task"
323
323
  }
324
+ export declare enum BusinessSegmentType {
325
+ CORPORATE = "CORPORATE",
326
+ SOHO = "SOHO",
327
+ PUBLIC = "PUBLIC",
328
+ PYME = "PYME"
329
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomerAccountHistoryType = exports.PaymentMethodType = exports.DeliveryMethod = exports.DocumentType = exports.PartyStateType = exports.RelatedPartyRoleType = exports.IndustryType = exports.CustomerAccountOrganizationEntityType = exports.IdentificationType = exports.ContactMediumTelephoneType = exports.CustomerAccountContactMediumRoleType = exports.CustomerAccountContactMediumContactType = exports.CustomerAccountContactMediumType = exports.CustomerAccountParametersAdamoCustomerIdRep = exports.ContactType = exports.AccountState = exports.PersonTitle = exports.Timezone = exports.PreferredLanguage = exports.EntityType = exports.PartyType = exports.CustomerType = exports.BpPronvinceToArs = exports.ArsPronvinceToBp = exports.ServiceSpecificationDictionary = exports.ServiceSpecificationType = exports.ShoppingCartItemAction = exports.ProrationConditionType = exports.ProrationModeType = exports.AssignmentType = exports.CurrencyType = exports.TaxType = exports.DependencySourceTargetType = exports.DependencyType = exports.ProductCatalogItemState = exports.MobileVisibilityType = exports.ConfigurationAttributeType = void 0;
3
+ exports.BusinessSegmentType = exports.CustomerAccountHistoryType = exports.PaymentMethodType = exports.DeliveryMethod = exports.DocumentType = exports.PartyStateType = exports.RelatedPartyRoleType = exports.IndustryType = exports.CustomerAccountOrganizationEntityType = exports.IdentificationType = exports.ContactMediumTelephoneType = exports.CustomerAccountContactMediumRoleType = exports.CustomerAccountContactMediumContactType = exports.CustomerAccountContactMediumType = exports.CustomerAccountParametersAdamoCustomerIdRep = exports.ContactType = exports.AccountState = exports.PersonTitle = exports.Timezone = exports.PreferredLanguage = exports.EntityType = exports.PartyType = exports.CustomerType = exports.BpPronvinceToArs = exports.ArsPronvinceToBp = exports.ServiceSpecificationDictionary = exports.ServiceSpecificationType = exports.ShoppingCartItemAction = exports.ProrationConditionType = exports.ProrationModeType = exports.AssignmentType = exports.CurrencyType = exports.TaxType = exports.DependencySourceTargetType = exports.DependencyType = exports.ProductCatalogItemState = exports.MobileVisibilityType = exports.ConfigurationAttributeType = void 0;
4
4
  var ConfigurationAttributeType;
5
5
  (function (ConfigurationAttributeType) {
6
6
  ConfigurationAttributeType["BINDING_PERIOD"] = "BINDING_PERIOD";
@@ -361,3 +361,10 @@ var CustomerAccountHistoryType;
361
361
  CustomerAccountHistoryType["SERVICE"] = "Service";
362
362
  CustomerAccountHistoryType["TASK"] = "Task";
363
363
  })(CustomerAccountHistoryType = exports.CustomerAccountHistoryType || (exports.CustomerAccountHistoryType = {}));
364
+ var BusinessSegmentType;
365
+ (function (BusinessSegmentType) {
366
+ BusinessSegmentType["CORPORATE"] = "CORPORATE";
367
+ BusinessSegmentType["SOHO"] = "SOHO";
368
+ BusinessSegmentType["PUBLIC"] = "PUBLIC";
369
+ BusinessSegmentType["PYME"] = "PYME";
370
+ })(BusinessSegmentType = exports.BusinessSegmentType || (exports.BusinessSegmentType = {}));
@@ -61,17 +61,18 @@ export declare enum Province {
61
61
  ZARAGOZA = "Zaragoza"
62
62
  }
63
63
  export declare enum StorageConfiguration {
64
+ B2B_SEGMENTS = "B2B_SEGMENTS",
64
65
  BILLING_CYCLES = "BILLING_CYCLES",
65
- SMS_CONTRACT_CHANNELS = "SMS_CONTRACT_CHANNELS",
66
- SALES_AREAS = "SALES_AREAS",
67
- DEPENDENCY_GROUPS = "DEPENDENCY_GROUPS",
68
- SEND_BSS_SERVICIABLE_STATUSES = "SEND_BSS_SERVICIABLE_STATUSES",
69
- PROVINCE_PREFIXES = "PROVINCE_PREFIXES",
70
- IBAN_SUPPORTED_COUNTRIES = "IBAN_SUPPORTED_COUNTRIES",
71
66
  BLACKLISTED_APARTMENTS_CHANNELS = "BLACKLISTED_APARTMENTS_CHANNELS",
72
67
  BLACKLISTED_APARTMENTS_OPERATORS = "BLACKLISTED_APARTMENTS_OPERATORS",
68
+ DEPENDENCY_GROUPS = "DEPENDENCY_GROUPS",
73
69
  FORBIDDEN_SALE_PROCESS_STATUSES = "FORBIDDEN_SALE_PROCESS_STATUSES",
70
+ IBAN_SUPPORTED_COUNTRIES = "IBAN_SUPPORTED_COUNTRIES",
74
71
  PROMOTION_GROUPS = "PROMOTION_GROUPS",
72
+ PROVINCE_PREFIXES = "PROVINCE_PREFIXES",
73
+ SALES_AREAS = "SALES_AREAS",
74
+ SEND_BSS_SERVICIABLE_STATUSES = "SEND_BSS_SERVICIABLE_STATUSES",
75
+ SMS_CONTRACT_CHANNELS = "SMS_CONTRACT_CHANNELS",
75
76
  SUPER_MANAGERS = "SUPER_MANAGERS"
76
77
  }
77
78
  export declare enum MicroserviceType {
@@ -68,17 +68,18 @@ var Province;
68
68
  })(Province = exports.Province || (exports.Province = {}));
69
69
  var StorageConfiguration;
70
70
  (function (StorageConfiguration) {
71
+ StorageConfiguration["B2B_SEGMENTS"] = "B2B_SEGMENTS";
71
72
  StorageConfiguration["BILLING_CYCLES"] = "BILLING_CYCLES";
72
- StorageConfiguration["SMS_CONTRACT_CHANNELS"] = "SMS_CONTRACT_CHANNELS";
73
- StorageConfiguration["SALES_AREAS"] = "SALES_AREAS";
74
- StorageConfiguration["DEPENDENCY_GROUPS"] = "DEPENDENCY_GROUPS";
75
- StorageConfiguration["SEND_BSS_SERVICIABLE_STATUSES"] = "SEND_BSS_SERVICIABLE_STATUSES";
76
- StorageConfiguration["PROVINCE_PREFIXES"] = "PROVINCE_PREFIXES";
77
- StorageConfiguration["IBAN_SUPPORTED_COUNTRIES"] = "IBAN_SUPPORTED_COUNTRIES";
78
73
  StorageConfiguration["BLACKLISTED_APARTMENTS_CHANNELS"] = "BLACKLISTED_APARTMENTS_CHANNELS";
79
74
  StorageConfiguration["BLACKLISTED_APARTMENTS_OPERATORS"] = "BLACKLISTED_APARTMENTS_OPERATORS";
75
+ StorageConfiguration["DEPENDENCY_GROUPS"] = "DEPENDENCY_GROUPS";
80
76
  StorageConfiguration["FORBIDDEN_SALE_PROCESS_STATUSES"] = "FORBIDDEN_SALE_PROCESS_STATUSES";
77
+ StorageConfiguration["IBAN_SUPPORTED_COUNTRIES"] = "IBAN_SUPPORTED_COUNTRIES";
81
78
  StorageConfiguration["PROMOTION_GROUPS"] = "PROMOTION_GROUPS";
79
+ StorageConfiguration["PROVINCE_PREFIXES"] = "PROVINCE_PREFIXES";
80
+ StorageConfiguration["SALES_AREAS"] = "SALES_AREAS";
81
+ StorageConfiguration["SEND_BSS_SERVICIABLE_STATUSES"] = "SEND_BSS_SERVICIABLE_STATUSES";
82
+ StorageConfiguration["SMS_CONTRACT_CHANNELS"] = "SMS_CONTRACT_CHANNELS";
82
83
  StorageConfiguration["SUPER_MANAGERS"] = "SUPER_MANAGERS";
83
84
  })(StorageConfiguration = exports.StorageConfiguration || (exports.StorageConfiguration = {}));
84
85
  var MicroserviceType;
@@ -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, 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: () => String, default: '' }, floor: { required: true, type: () => String, default: '' }, door: { required: true, type: () => String, default: '' }, entrance: { required: true, type: () => String, 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: 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 }, 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([
@@ -62,18 +62,18 @@ __decorate([
62
62
  ], ArsAddressDto.prototype, "streetNumber", void 0);
63
63
  __decorate([
64
64
  (0, class_validator_1.IsString)(),
65
- __metadata("design:type", String)
65
+ __metadata("design:type", Object)
66
66
  ], ArsAddressDto.prototype, "block", void 0);
67
67
  __decorate([
68
68
  (0, class_validator_1.IsString)(),
69
- __metadata("design:type", String)
69
+ __metadata("design:type", Object)
70
70
  ], ArsAddressDto.prototype, "floor", void 0);
71
71
  __decorate([
72
72
  (0, class_validator_1.IsString)(),
73
- __metadata("design:type", String)
73
+ __metadata("design:type", Object)
74
74
  ], ArsAddressDto.prototype, "door", void 0);
75
75
  __decorate([
76
76
  (0, class_validator_1.IsString)(),
77
- __metadata("design:type", String)
77
+ __metadata("design:type", Object)
78
78
  ], ArsAddressDto.prototype, "entrance", void 0);
79
79
  exports.ArsAddressDto = ArsAddressDto;
@@ -1,5 +1,3 @@
1
- declare type username = string;
2
1
  export declare class UserChannelAssignDto {
3
- [channel: string]: username[];
2
+ [channel: string]: string[];
4
3
  }
5
- export {};
@@ -1,11 +1,12 @@
1
1
  import { BpRelatedPartyDto } from '@bss/bearingpoint/customer/related-party.entity';
2
- import { CustomerAccountHistoryType, CustomerAccountOrganizationEntityType, DocumentType, IdentificationType, PersonTitle, PreferredLanguage, Timezone } from '@bss/constants';
2
+ import { BusinessSegmentType, CustomerAccountHistoryType, CustomerAccountOrganizationEntityType, DocumentType, IdentificationType, PersonTitle, PreferredLanguage, Timezone } from '@bss/constants';
3
3
  export declare class ArsCustomerAccountDto {
4
4
  preferredLanguage?: PreferredLanguage;
5
5
  timezone?: Timezone;
6
6
  channel: string;
7
7
  billingAccount?: number;
8
8
  companyType?: CustomerAccountOrganizationEntityType;
9
+ segment: BusinessSegmentType;
9
10
  relatedParties?: BpRelatedPartyDto[];
10
11
  }
11
12
  export declare class ArsCustomerAccountIdentificationDto {
@@ -4,7 +4,7 @@ exports.ArsCustomerAccountDocumentDto = exports.ArsCustomerAccountHistoryDto = e
4
4
  const openapi = require("@nestjs/swagger");
5
5
  class ArsCustomerAccountDto {
6
6
  static _OPENAPI_METADATA_FACTORY() {
7
- return { preferredLanguage: { required: false, enum: require("../../../../bss/constants/bp.constants").PreferredLanguage }, timezone: { required: false, enum: require("../../../../bss/constants/bp.constants").Timezone }, channel: { required: true, type: () => String }, billingAccount: { required: false, type: () => Number }, companyType: { required: false, enum: require("../../../../bss/constants/bp.constants").CustomerAccountOrganizationEntityType }, relatedParties: { required: false, type: () => [require("../../../../bss/bearingpoint/customer/related-party.entity").BpRelatedPartyDto] } };
7
+ return { preferredLanguage: { required: false, enum: require("../../../../bss/constants/bp.constants").PreferredLanguage }, timezone: { required: false, enum: require("../../../../bss/constants/bp.constants").Timezone }, channel: { required: true, type: () => String }, billingAccount: { required: false, type: () => Number }, companyType: { required: false, enum: require("../../../../bss/constants/bp.constants").CustomerAccountOrganizationEntityType }, segment: { required: true, enum: require("../../../../bss/constants/bp.constants").BusinessSegmentType }, relatedParties: { required: false, type: () => [require("../../../../bss/bearingpoint/customer/related-party.entity").BpRelatedPartyDto] } };
8
8
  }
9
9
  }
10
10
  exports.ArsCustomerAccountDto = ArsCustomerAccountDto;
@@ -1,2 +1 @@
1
1
  export * from './req/saleperson.entity';
2
- export * from './res/salesperson.entity';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./req/saleperson.entity"), exports);
18
- __exportStar(require("./res/salesperson.entity"), exports);
@@ -62,7 +62,7 @@ __decorate([
62
62
  (0, class_validator_1.ArrayNotEmpty)(),
63
63
  (0, class_validator_1.ValidateNested)({ each: true }),
64
64
  (0, class_transformer_1.Type)(() => UpdateShoppingCartExtraDto),
65
- (0, class_validator_1.ValidateIf)(o => o.extras || !o.extraGroups),
65
+ (0, class_validator_1.ValidateIf)((o) => o.extras || !o.extraGroups),
66
66
  __metadata("design:type", Array)
67
67
  ], UpdateShoppingCartExtrasDto.prototype, "extras", void 0);
68
68
  exports.UpdateShoppingCartExtrasDto = UpdateShoppingCartExtrasDto;
@@ -87,7 +87,7 @@ __decorate([
87
87
  (0, class_validator_1.IsArray)(),
88
88
  (0, class_validator_1.ValidateNested)({ each: true }),
89
89
  (0, class_transformer_1.Type)(() => UpdateShoppingCartExtraDto),
90
- (0, class_validator_1.ValidateIf)(o => o.extras || !o.extraGroups),
90
+ (0, class_validator_1.ValidateIf)((o) => o.extras || !o.extraGroups),
91
91
  __metadata("design:type", Array)
92
92
  ], UpdateShoppingCartBundleExtrasDto.prototype, "extras", void 0);
93
93
  exports.UpdateShoppingCartBundleExtrasDto = UpdateShoppingCartBundleExtrasDto;
@@ -1,4 +1,2 @@
1
1
  export * from './create.entity';
2
- export * from './delete.entity';
3
2
  export * from './other.entity';
4
- export * from './update.entity';
@@ -15,6 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create.entity"), exports);
18
- __exportStar(require("./delete.entity"), exports);
19
18
  __exportStar(require("./other.entity"), exports);
20
- __exportStar(require("./update.entity"), exports);
@@ -195,7 +195,7 @@ class ShoppingCartConfigurationAddressResDto {
195
195
  this.entrance = '';
196
196
  }
197
197
  static _OPENAPI_METADATA_FACTORY() {
198
- 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: () => String, default: '' }, floor: { required: true, type: () => String, default: '' }, door: { required: true, type: () => String, default: '' }, entrance: { required: true, type: () => String, default: '' }, apartmentId: { required: false, type: () => String } };
198
+ 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 } };
199
199
  }
200
200
  }
201
201
  __decorate([
@@ -236,19 +236,19 @@ __decorate([
236
236
  ], ShoppingCartConfigurationAddressResDto.prototype, "streetNumber", void 0);
237
237
  __decorate([
238
238
  (0, class_validator_1.IsString)(),
239
- __metadata("design:type", String)
239
+ __metadata("design:type", Object)
240
240
  ], ShoppingCartConfigurationAddressResDto.prototype, "block", void 0);
241
241
  __decorate([
242
242
  (0, class_validator_1.IsString)(),
243
- __metadata("design:type", String)
243
+ __metadata("design:type", Object)
244
244
  ], ShoppingCartConfigurationAddressResDto.prototype, "floor", void 0);
245
245
  __decorate([
246
246
  (0, class_validator_1.IsString)(),
247
- __metadata("design:type", String)
247
+ __metadata("design:type", Object)
248
248
  ], ShoppingCartConfigurationAddressResDto.prototype, "door", void 0);
249
249
  __decorate([
250
250
  (0, class_validator_1.IsString)(),
251
- __metadata("design:type", String)
251
+ __metadata("design:type", Object)
252
252
  ], ShoppingCartConfigurationAddressResDto.prototype, "entrance", void 0);
253
253
  exports.ShoppingCartConfigurationAddressResDto = ShoppingCartConfigurationAddressResDto;
254
254
  class ShoppingCartConfigurationServiceValueResDto {
@@ -1,5 +1,6 @@
1
1
  import { DocumentType } from '@bss/constants';
2
2
  import { AdditionalContactMediumType, AdditionalContactRoleType, SaleProcessCallType } from '@zoho/constants';
3
+ import { UtmDto } from '@zoho/sale-process';
3
4
  export declare class ArsSaleProcessDocumentDto {
4
5
  fileName: string;
5
6
  type: DocumentType;
@@ -23,4 +24,5 @@ export declare class ArsSaleProcessCreateDto {
23
24
  phone: string;
24
25
  campaign?: string;
25
26
  callType?: SaleProcessCallType;
27
+ utm?: UtmDto;
26
28
  }
@@ -15,6 +15,7 @@ const constants_1 = require("../../../../bss/constants");
15
15
  const constants_2 = require("../../../../zoho/constants");
16
16
  const class_transformer_1 = require("class-transformer");
17
17
  const class_validator_1 = require("class-validator");
18
+ const sale_process_1 = require("../../../../zoho/sale-process");
18
19
  class ArsSaleProcessDocumentDto {
19
20
  static _OPENAPI_METADATA_FACTORY() {
20
21
  return { fileName: { required: true, type: () => String }, type: { required: true, enum: require("../../../../bss/constants/bp.constants").DocumentType }, comment: { required: false, type: () => String, maxLength: 1000 } };
@@ -97,7 +98,7 @@ __decorate([
97
98
  exports.ArsSaleProcessAdditionalContactMediumDto = ArsSaleProcessAdditionalContactMediumDto;
98
99
  class ArsSaleProcessCreateDto {
99
100
  static _OPENAPI_METADATA_FACTORY() {
100
- return { name: { required: false, type: () => String }, phone: { required: true, type: () => String }, campaign: { required: false, type: () => String }, callType: { required: false, enum: require("../../../../zoho/constants/zoho.constants").SaleProcessCallType } };
101
+ return { name: { required: false, type: () => String }, phone: { required: true, type: () => String }, campaign: { required: false, type: () => String }, callType: { required: false, enum: require("../../../../zoho/constants/zoho.constants").SaleProcessCallType }, utm: { required: false, type: () => require("../../../../zoho/sale-process/utm.entity").UtmDto } };
101
102
  }
102
103
  }
103
104
  __decorate([
@@ -122,4 +123,10 @@ __decorate([
122
123
  (0, class_validator_1.IsOptional)(),
123
124
  __metadata("design:type", String)
124
125
  ], ArsSaleProcessCreateDto.prototype, "callType", void 0);
126
+ __decorate([
127
+ (0, class_validator_1.ValidateNested)(),
128
+ (0, class_transformer_1.Type)(() => sale_process_1.UtmDto),
129
+ (0, class_validator_1.IsOptional)(),
130
+ __metadata("design:type", sale_process_1.UtmDto)
131
+ ], ArsSaleProcessCreateDto.prototype, "utm", void 0);
125
132
  exports.ArsSaleProcessCreateDto = ArsSaleProcessCreateDto;
@@ -292,43 +292,43 @@ __decorate([
292
292
  __metadata("design:type", String)
293
293
  ], PartialAddressSearchDto.prototype, "searchType", void 0);
294
294
  __decorate([
295
- (0, class_validator_1.ValidateIf)(o => o.searchType !== constants_2.AddressSearchType.COORDS),
295
+ (0, class_validator_1.ValidateIf)((o) => o.searchType !== constants_2.AddressSearchType.COORDS),
296
296
  (0, class_validator_1.IsString)(),
297
297
  (0, class_validator_1.IsNotEmpty)(),
298
298
  __metadata("design:type", String)
299
299
  ], PartialAddressSearchDto.prototype, "search", void 0);
300
300
  __decorate([
301
- (0, class_validator_1.ValidateIf)(o => o.searchType === constants_2.AddressSearchType.GOOGLE),
301
+ (0, class_validator_1.ValidateIf)((o) => o.searchType === constants_2.AddressSearchType.GOOGLE),
302
302
  (0, class_validator_1.IsString)(),
303
303
  (0, class_validator_1.IsNotEmpty)(),
304
304
  __metadata("design:type", String)
305
305
  ], PartialAddressSearchDto.prototype, "googleStreet", void 0);
306
306
  __decorate([
307
- (0, class_validator_1.ValidateIf)(o => o.searchType === constants_2.AddressSearchType.GOOGLE || o.searchType === constants_2.AddressSearchType.COORDS),
307
+ (0, class_validator_1.ValidateIf)((o) => o.searchType === constants_2.AddressSearchType.GOOGLE || o.searchType === constants_2.AddressSearchType.COORDS),
308
308
  (0, class_validator_1.IsString)(),
309
309
  (0, class_validator_1.IsNotEmpty)(),
310
310
  __metadata("design:type", String)
311
311
  ], PartialAddressSearchDto.prototype, "googleLatitude", void 0);
312
312
  __decorate([
313
- (0, class_validator_1.ValidateIf)(o => o.searchType === constants_2.AddressSearchType.GOOGLE || o.searchType === constants_2.AddressSearchType.COORDS),
313
+ (0, class_validator_1.ValidateIf)((o) => o.searchType === constants_2.AddressSearchType.GOOGLE || o.searchType === constants_2.AddressSearchType.COORDS),
314
314
  (0, class_validator_1.IsString)(),
315
315
  (0, class_validator_1.IsNotEmpty)(),
316
316
  __metadata("design:type", String)
317
317
  ], PartialAddressSearchDto.prototype, "googleLongitude", void 0);
318
318
  __decorate([
319
- (0, class_validator_1.ValidateIf)(o => o.searchType === constants_2.AddressSearchType.GOOGLE),
319
+ (0, class_validator_1.ValidateIf)((o) => o.searchType === constants_2.AddressSearchType.GOOGLE),
320
320
  (0, class_validator_1.IsString)(),
321
321
  (0, class_validator_1.IsOptional)(),
322
322
  __metadata("design:type", String)
323
323
  ], PartialAddressSearchDto.prototype, "googleProvince", void 0);
324
324
  __decorate([
325
- (0, class_validator_1.ValidateIf)(o => o.searchType === constants_2.AddressSearchType.GOOGLE),
325
+ (0, class_validator_1.ValidateIf)((o) => o.searchType === constants_2.AddressSearchType.GOOGLE),
326
326
  (0, class_validator_1.IsString)(),
327
327
  (0, class_validator_1.IsOptional)(),
328
328
  __metadata("design:type", String)
329
329
  ], PartialAddressSearchDto.prototype, "googleZip", void 0);
330
330
  __decorate([
331
- (0, class_validator_1.ValidateIf)(o => o.searchType === constants_2.AddressSearchType.GOOGLE),
331
+ (0, class_validator_1.ValidateIf)((o) => o.searchType === constants_2.AddressSearchType.GOOGLE),
332
332
  (0, class_validator_1.IsString)(),
333
333
  (0, class_validator_1.IsOptional)(),
334
334
  __metadata("design:type", String)
@@ -109,7 +109,7 @@ exports.ArsEdgeError = ArsEdgeError;
109
109
  class ZohoError extends CustomError {
110
110
  constructor({ code, args = {} }) {
111
111
  var _a;
112
- const { response: { status: statusCode, data: { code: responseCode, message: responseMessage } } = { status: undefined, data: ({} = {}) }, message, stack, code: argsCode, } = args, mappedCode = (_a = code !== null && code !== void 0 ? code : responseCode) !== null && _a !== void 0 ? _a : mapErrorCode(argsCode);
112
+ const { response: { status: statusCode, data: { code: responseCode, message: responseMessage } } = { status: undefined, data: ({} = {}) }, message, stack, code: argsCode } = args, mappedCode = (_a = code !== null && code !== void 0 ? code : responseCode) !== null && _a !== void 0 ? _a : mapErrorCode(argsCode);
113
113
  super(common_constants_1.MicroserviceType.ZOHO_ADAPTOR, mappedCode, responseMessage || message, stack);
114
114
  this.statusCode = statusCode;
115
115
  this.name = 'ZohoError';
@@ -27,7 +27,7 @@ __decorate([
27
27
  __metadata("design:type", String)
28
28
  ], DropdownDto.prototype, "name", void 0);
29
29
  __decorate([
30
- (0, typeorm_1.OneToMany)((type) => dropdown_data_entity_1.DropdownDataDto, (data) => data.dropdown),
30
+ (0, typeorm_1.OneToMany)(() => dropdown_data_entity_1.DropdownDataDto, (data) => data.dropdown),
31
31
  __metadata("design:type", Array)
32
32
  ], DropdownDto.prototype, "data", void 0);
33
33
  DropdownDto = __decorate([
@@ -23,7 +23,7 @@ __decorate([
23
23
  __metadata("design:type", Number)
24
24
  ], DropdownDataDto.prototype, "id", void 0);
25
25
  __decorate([
26
- (0, typeorm_1.ManyToOne)((type) => dropdown_entity_1.DropdownDto),
26
+ (0, typeorm_1.ManyToOne)(() => dropdown_entity_1.DropdownDto),
27
27
  (0, typeorm_1.JoinColumn)({ name: 'dropdown', referencedColumnName: 'id' }),
28
28
  __metadata("design:type", dropdown_entity_1.DropdownDto)
29
29
  ], DropdownDataDto.prototype, "dropdown", void 0);
@@ -25,15 +25,15 @@ __decorate([
25
25
  __metadata("design:type", Number)
26
26
  ], Lead.prototype, "id", void 0);
27
27
  __decorate([
28
- (0, typeorm_1.OneToMany)((type) => leads_data_entity_1.LeadsData, (data) => data.lead),
28
+ (0, typeorm_1.OneToMany)(() => leads_data_entity_1.LeadsData, (data) => data.lead),
29
29
  __metadata("design:type", Array)
30
30
  ], Lead.prototype, "data", void 0);
31
31
  __decorate([
32
- (0, typeorm_1.OneToMany)((type) => leads_file_entity_1.LeadsFile, (data) => data.lead),
32
+ (0, typeorm_1.OneToMany)(() => leads_file_entity_1.LeadsFile, (data) => data.lead),
33
33
  __metadata("design:type", Array)
34
34
  ], Lead.prototype, "files", void 0);
35
35
  __decorate([
36
- (0, typeorm_1.OneToMany)((type) => leads_additional_contact_entity_1.LeadsAdditionalContact, (data) => data.lead),
36
+ (0, typeorm_1.OneToMany)(() => leads_additional_contact_entity_1.LeadsAdditionalContact, (data) => data.lead),
37
37
  __metadata("design:type", Array)
38
38
  ], Lead.prototype, "additionalContacts", void 0);
39
39
  __decorate([
@@ -23,7 +23,7 @@ __decorate([
23
23
  __metadata("design:type", Number)
24
24
  ], LeadsAdditionalContactMedium.prototype, "id", void 0);
25
25
  __decorate([
26
- (0, typeorm_1.ManyToOne)((type) => leads_additional_contact_entity_1.LeadsAdditionalContact),
26
+ (0, typeorm_1.ManyToOne)(() => leads_additional_contact_entity_1.LeadsAdditionalContact),
27
27
  (0, typeorm_1.JoinColumn)({ name: 'leadAdditionalContact', referencedColumnName: 'id' }),
28
28
  __metadata("design:type", leads_additional_contact_entity_1.LeadsAdditionalContact)
29
29
  ], LeadsAdditionalContactMedium.prototype, "leadAdditionalContact", void 0);
@@ -36,14 +36,18 @@ __decorate([
36
36
  __metadata("design:type", String)
37
37
  ], LeadsAdditionalContactMedium.prototype, "value", void 0);
38
38
  __decorate([
39
- (0, typeorm_1.Column)({ default: 0, type: 'tinyint', transformer: {
39
+ (0, typeorm_1.Column)({
40
+ default: 0,
41
+ type: 'tinyint',
42
+ transformer: {
40
43
  to: (value) => {
41
44
  return value ? 1 : 0;
42
45
  },
43
46
  from: (value) => {
44
47
  return value ? true : false;
45
48
  }
46
- } }),
49
+ }
50
+ }),
47
51
  __metadata("design:type", Boolean)
48
52
  ], LeadsAdditionalContactMedium.prototype, "preferred", void 0);
49
53
  LeadsAdditionalContactMedium = __decorate([
@@ -24,7 +24,7 @@ __decorate([
24
24
  __metadata("design:type", Number)
25
25
  ], LeadsAdditionalContact.prototype, "id", void 0);
26
26
  __decorate([
27
- (0, typeorm_1.ManyToOne)((type) => lead_entity_1.Lead),
27
+ (0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead),
28
28
  (0, typeorm_1.JoinColumn)({ name: 'lead', referencedColumnName: 'id' }),
29
29
  __metadata("design:type", lead_entity_1.Lead)
30
30
  ], LeadsAdditionalContact.prototype, "lead", void 0);
@@ -45,7 +45,7 @@ __decorate([
45
45
  __metadata("design:type", String)
46
46
  ], LeadsAdditionalContact.prototype, "role", void 0);
47
47
  __decorate([
48
- (0, typeorm_1.OneToMany)((type) => leads_additional_contact_medium_entity_1.LeadsAdditionalContactMedium, (data) => data.leadAdditionalContact, {
48
+ (0, typeorm_1.OneToMany)(() => leads_additional_contact_medium_entity_1.LeadsAdditionalContactMedium, (data) => data.leadAdditionalContact, {
49
49
  cascade: ['insert', 'update']
50
50
  }),
51
51
  __metadata("design:type", Array)
@@ -23,7 +23,7 @@ __decorate([
23
23
  __metadata("design:type", Number)
24
24
  ], LeadsData.prototype, "id", void 0);
25
25
  __decorate([
26
- (0, typeorm_1.ManyToOne)((type) => lead_entity_1.Lead, (lead) => lead.data),
26
+ (0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, (lead) => lead.data),
27
27
  (0, typeorm_1.JoinColumn)({ name: 'lead', referencedColumnName: 'id' }),
28
28
  __metadata("design:type", lead_entity_1.Lead)
29
29
  ], LeadsData.prototype, "lead", void 0);
@@ -23,7 +23,7 @@ __decorate([
23
23
  __metadata("design:type", Number)
24
24
  ], LeadsFile.prototype, "id", void 0);
25
25
  __decorate([
26
- (0, typeorm_1.ManyToOne)((type) => lead_entity_1.Lead),
26
+ (0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead),
27
27
  (0, typeorm_1.JoinColumn)({ name: 'lead', referencedColumnName: 'id' }),
28
28
  __metadata("design:type", lead_entity_1.Lead)
29
29
  ], LeadsFile.prototype, "lead", void 0);
@@ -33,7 +33,7 @@ __decorate([
33
33
  (0, typeorm_1.Column)({
34
34
  type: 'json',
35
35
  array: true,
36
- nullable: false,
36
+ nullable: false
37
37
  }),
38
38
  __metadata("design:type", Array)
39
39
  ], UserDto.prototype, "tenents", void 0);
@@ -63,3 +63,11 @@ export declare class SaleProcessScoringStatusSalesArea {
63
63
  status: string;
64
64
  salesArea: string;
65
65
  }
66
+ export declare class ConfigurationSegmentDto {
67
+ segment: string;
68
+ channels: string[];
69
+ default?: boolean;
70
+ }
71
+ export declare class ConfigurationSegmentsDto {
72
+ [key: string]: ConfigurationSegmentDto[];
73
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SaleProcessScoringStatusSalesArea = exports.SmsMessageBusinessPayloadDto = exports.SmsMessagePayloadDto = exports.DashboardFilterDto = void 0;
3
+ exports.ConfigurationSegmentsDto = exports.ConfigurationSegmentDto = exports.SaleProcessScoringStatusSalesArea = exports.SmsMessageBusinessPayloadDto = exports.SmsMessagePayloadDto = exports.DashboardFilterDto = void 0;
4
4
  const openapi = require("@nestjs/swagger");
5
5
  class DashboardFilterDto {
6
6
  static _OPENAPI_METADATA_FACTORY() {
@@ -26,3 +26,15 @@ class SaleProcessScoringStatusSalesArea {
26
26
  }
27
27
  }
28
28
  exports.SaleProcessScoringStatusSalesArea = SaleProcessScoringStatusSalesArea;
29
+ class ConfigurationSegmentDto {
30
+ static _OPENAPI_METADATA_FACTORY() {
31
+ return { segment: { required: true, type: () => String }, channels: { required: true, type: () => [String] }, default: { required: false, type: () => Boolean } };
32
+ }
33
+ }
34
+ exports.ConfigurationSegmentDto = ConfigurationSegmentDto;
35
+ class ConfigurationSegmentsDto {
36
+ static _OPENAPI_METADATA_FACTORY() {
37
+ return {};
38
+ }
39
+ }
40
+ exports.ConfigurationSegmentsDto = ConfigurationSegmentsDto;