adamo-types 2.0.73-uat → 2.0.75-sit

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/bss/constants/bp.constants.d.ts +0 -16
  2. package/dist/bss/constants/bp.constants.js +1 -32
  3. package/dist/bss/constants/bss.constants.d.ts +1 -0
  4. package/dist/bss/constants/bss.constants.js +2 -0
  5. package/dist/bss/customer/customer-product.entity.d.ts +1 -2
  6. package/dist/bss/customer/customer-product.entity.js +2 -3
  7. package/dist/bss/customer/customer.constants.d.ts +4 -0
  8. package/dist/bss/customer/customer.constants.js +6 -1
  9. package/dist/bss/customer/customer.entity.d.ts +28 -1
  10. package/dist/bss/customer/customer.entity.js +125 -2
  11. package/dist/bss/shopping-cart/shopping-cart.entity.d.ts +2 -3
  12. package/dist/bss/shopping-cart/shopping-cart.entity.js +2 -2
  13. package/dist/common/common.entity.js +2 -2
  14. package/dist/common/constants/bundle-type-configuration.error.constants.d.ts +20 -0
  15. package/dist/common/constants/bundle-type-configuration.error.constants.js +23 -0
  16. package/dist/common/constants/common.constants.d.ts +4 -0
  17. package/dist/common/constants/common.constants.js +8 -2
  18. package/dist/common/constants/common.error.constants.d.ts +4 -0
  19. package/dist/common/constants/common.error.constants.js +6 -2
  20. package/dist/common/constants/customer.error.constants.d.ts +5 -2
  21. package/dist/common/constants/customer.error.constants.js +7 -3
  22. package/dist/common/constants/index.d.ts +1 -0
  23. package/dist/common/constants/index.js +1 -0
  24. package/dist/common/constants/not-found.error.constants.d.ts +1 -0
  25. package/dist/common/constants/not-found.error.constants.js +2 -1
  26. package/dist/common/edge-bss/shopping-cart/req/other.entity.d.ts +0 -1
  27. package/dist/common/edge-bss/shopping-cart/req/other.entity.js +2 -9
  28. package/dist/common/edge-zoho/sale-process/req/patch.entity.d.ts +3 -2
  29. package/dist/common/edge-zoho/sale-process/req/patch.entity.js +3 -2
  30. package/dist/database/ars/bundle-type-configuration.entity.d.ts +28 -0
  31. package/dist/database/ars/bundle-type-configuration.entity.js +137 -0
  32. package/dist/database/ars/index.d.ts +1 -0
  33. package/dist/database/ars/index.js +1 -0
  34. package/dist/database/ars/product-transition-configuration.entity.d.ts +32 -2
  35. package/dist/database/ars/product-transition-configuration.entity.js +153 -23
  36. package/dist/digitel/pdf.entity.d.ts +2 -0
  37. package/dist/sys03/approval/approval.entity.d.ts +3 -3
  38. package/dist/sys03/common/common.constants.d.ts +4 -0
  39. package/dist/sys03/common/common.constants.js +6 -1
  40. package/dist/sys03/common/common.entity.d.ts +6 -1
  41. package/dist/sys03/common/common.entity.js +2 -3
  42. package/dist/sys03/customer/customer-product.entity.d.ts +6 -16
  43. package/dist/sys03/customer/customer-product.entity.js +10 -49
  44. package/dist/sys03/customer-product-change-of-address-process/customer-product-change-of-address-process.entity.d.ts +2 -2
  45. package/dist/sys03/updowngrade/bundle-type-configuration.entity.d.ts +60 -0
  46. package/dist/sys03/updowngrade/bundle-type-configuration.entity.js +178 -0
  47. package/dist/sys03/updowngrade/index.d.ts +1 -0
  48. package/dist/sys03/updowngrade/index.js +1 -0
  49. package/dist/sys03/updowngrade/product-transition-group.entity.d.ts +176 -26
  50. package/dist/sys03/updowngrade/product-transition-group.entity.js +561 -34
  51. package/dist/sys03/updowngrade/updowngrade.constants.d.ts +25 -17
  52. package/dist/sys03/updowngrade/updowngrade.constants.js +31 -19
  53. package/dist/tsconfig.build.tsbuildinfo +1 -1
  54. package/dist/validators/TransformBoolean.d.ts +1 -0
  55. package/dist/validators/TransformBoolean.js +14 -0
  56. package/dist/validators/index.d.ts +1 -0
  57. package/dist/validators/index.js +1 -0
  58. package/dist/zoho/constants/zoho.constants.d.ts +0 -4
  59. package/dist/zoho/constants/zoho.constants.js +1 -6
  60. package/dist/zoho/sale-process/sale-process.entity.d.ts +3 -2
  61. package/dist/zoho/sale-process/sale-process.entity.js +3 -2
  62. package/package.json +1 -1
@@ -24,26 +24,10 @@ export declare enum ConfigurationAttributeType {
24
24
  SYS02 = "SYS02",
25
25
  TYPE = "TYPE"
26
26
  }
27
- export declare enum MobileVisibilityType {
28
- DIGITAL_SERVICES = "DIGITAL_SERVICES",
29
- EASY = "EASY",
30
- ELIGES = "ELIGES",
31
- MAIN_RELAX = "MAIN_RELAX",
32
- MAIN_RELAX_SMART = "MAIN_RELAX_SMART",
33
- MAIN_RELAX_TOTAL = "MAIN_RELAX_TOTAL",
34
- MAIN_SHARED_DATA = "MAIN_SHARED_DATA",
35
- ONLY_MOBILE = "ONLY_MOBILE",
36
- RELAX_ONLY_MOBILE = "RELAX_ONLY_MOBILE",
37
- RELAX_TOTAL_ONLY_MOBILE = "RELAX_TOTAL_ONLY_MOBILE",
38
- SECOND_RESIDENCE = "2ND_RESIDENCE",
39
- SHARED_DATA = "SHARED_DATA",
40
- TV = "TV"
41
- }
42
27
  export declare enum PhoneBonusValue {
43
28
  MOBILE_BONUS = "MOBILE_BONUS",
44
29
  VOIP_BONUS = "VOIP_BONUS"
45
30
  }
46
- export declare const MobileVisibilityTypeDisplayOrder: Record<MobileVisibilityType, number>;
47
31
  export declare enum ProductCatalogItemState {
48
32
  ACTIVE = "Active",
49
33
  PENDING_ACTIVE = "PendingActive",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DigitelCircuitType = exports.BpCustomerAccountPreferredContactTimeType = exports.BpCustomerAccountBusinessSegmentType = exports.CustomerAccountHistoryType = exports.DeliveryMethod = exports.BpCustomerAccountDocumentType = exports.BpPartyStateType = exports.BpRelatedPartyRoleType = exports.BpCustomerAccountOrganizationIndustryType = exports.BusinessCustomerTypeToBpCustomerAccountOrganizationType = exports.BpCustomerAccountOrganizationTypeToBusinessCustomerType = exports.BpCustomerAccountOrganizationType = exports.BpCustomerAccountIdentificationType = exports.BpCustomerAccountContactMediumTelephoneNumberType = exports.BpCustomerAccountContactMediumRoleType = exports.BpCustomerAccountContactMediumContactType = exports.BpCustomerAccountContactMediumType = exports.BpCustomerAccountAdamoCustomerIdRepType = exports.BpCustomerAccountContactType = exports.BpAccountStateType = exports.UserState = exports.BpCustomerAccountIndividualTitleType = exports.BpTimezoneType = exports.BpAccountPreferredLanguageType = exports.BpEntityType = exports.BpPartyType = exports.BpCustomerAccountType = exports.ServiceSpecificationDictionary = exports.ServiceSpecificationType = exports.ProductOrderTypeToBpProductOrderType = exports.BpProductOrderTypeToProductOrderType = exports.BpProductOrderType = exports.ShoppingCartItemState = exports.ShoppingCartItemAction = exports.ProrationConditionType = exports.ProrationModeType = exports.AssignmentType = exports.CurrencyType = exports.TaxType = exports.DependencySourceTargetType = exports.DependencyType = exports.ProductCatalogItemState = exports.MobileVisibilityTypeDisplayOrder = exports.PhoneBonusValue = exports.MobileVisibilityType = exports.ConfigurationAttributeType = void 0;
3
+ exports.DigitelCircuitType = exports.BpCustomerAccountPreferredContactTimeType = exports.BpCustomerAccountBusinessSegmentType = exports.CustomerAccountHistoryType = exports.DeliveryMethod = exports.BpCustomerAccountDocumentType = exports.BpPartyStateType = exports.BpRelatedPartyRoleType = exports.BpCustomerAccountOrganizationIndustryType = exports.BusinessCustomerTypeToBpCustomerAccountOrganizationType = exports.BpCustomerAccountOrganizationTypeToBusinessCustomerType = exports.BpCustomerAccountOrganizationType = exports.BpCustomerAccountIdentificationType = exports.BpCustomerAccountContactMediumTelephoneNumberType = exports.BpCustomerAccountContactMediumRoleType = exports.BpCustomerAccountContactMediumContactType = exports.BpCustomerAccountContactMediumType = exports.BpCustomerAccountAdamoCustomerIdRepType = exports.BpCustomerAccountContactType = exports.BpAccountStateType = exports.UserState = exports.BpCustomerAccountIndividualTitleType = exports.BpTimezoneType = exports.BpAccountPreferredLanguageType = exports.BpEntityType = exports.BpPartyType = exports.BpCustomerAccountType = exports.ServiceSpecificationDictionary = exports.ServiceSpecificationType = exports.ProductOrderTypeToBpProductOrderType = exports.BpProductOrderTypeToProductOrderType = exports.BpProductOrderType = exports.ShoppingCartItemState = exports.ShoppingCartItemAction = exports.ProrationConditionType = exports.ProrationModeType = exports.AssignmentType = exports.CurrencyType = exports.TaxType = exports.DependencySourceTargetType = exports.DependencyType = exports.ProductCatalogItemState = exports.PhoneBonusValue = exports.ConfigurationAttributeType = void 0;
4
4
  const product_1 = require("../product");
5
5
  const constants_1 = require("../../common/constants");
6
6
  const helpers_1 = require("../../common/helpers/helpers");
@@ -29,42 +29,11 @@ var ConfigurationAttributeType;
29
29
  ConfigurationAttributeType["SYS02"] = "SYS02";
30
30
  ConfigurationAttributeType["TYPE"] = "TYPE";
31
31
  })(ConfigurationAttributeType || (exports.ConfigurationAttributeType = ConfigurationAttributeType = {}));
32
- var MobileVisibilityType;
33
- (function (MobileVisibilityType) {
34
- MobileVisibilityType["DIGITAL_SERVICES"] = "DIGITAL_SERVICES";
35
- MobileVisibilityType["EASY"] = "EASY";
36
- MobileVisibilityType["ELIGES"] = "ELIGES";
37
- MobileVisibilityType["MAIN_RELAX"] = "MAIN_RELAX";
38
- MobileVisibilityType["MAIN_RELAX_SMART"] = "MAIN_RELAX_SMART";
39
- MobileVisibilityType["MAIN_RELAX_TOTAL"] = "MAIN_RELAX_TOTAL";
40
- MobileVisibilityType["MAIN_SHARED_DATA"] = "MAIN_SHARED_DATA";
41
- MobileVisibilityType["ONLY_MOBILE"] = "ONLY_MOBILE";
42
- MobileVisibilityType["RELAX_ONLY_MOBILE"] = "RELAX_ONLY_MOBILE";
43
- MobileVisibilityType["RELAX_TOTAL_ONLY_MOBILE"] = "RELAX_TOTAL_ONLY_MOBILE";
44
- MobileVisibilityType["SECOND_RESIDENCE"] = "2ND_RESIDENCE";
45
- MobileVisibilityType["SHARED_DATA"] = "SHARED_DATA";
46
- MobileVisibilityType["TV"] = "TV";
47
- })(MobileVisibilityType || (exports.MobileVisibilityType = MobileVisibilityType = {}));
48
32
  var PhoneBonusValue;
49
33
  (function (PhoneBonusValue) {
50
34
  PhoneBonusValue["MOBILE_BONUS"] = "MOBILE_BONUS";
51
35
  PhoneBonusValue["VOIP_BONUS"] = "VOIP_BONUS";
52
36
  })(PhoneBonusValue || (exports.PhoneBonusValue = PhoneBonusValue = {}));
53
- exports.MobileVisibilityTypeDisplayOrder = {
54
- [MobileVisibilityType.MAIN_SHARED_DATA]: 1,
55
- [MobileVisibilityType.MAIN_RELAX]: 1,
56
- [MobileVisibilityType.MAIN_RELAX_SMART]: 1,
57
- [MobileVisibilityType.MAIN_RELAX_TOTAL]: 1,
58
- [MobileVisibilityType.EASY]: 1,
59
- [MobileVisibilityType.ELIGES]: 1,
60
- [MobileVisibilityType.SECOND_RESIDENCE]: 1,
61
- [MobileVisibilityType.SHARED_DATA]: 2,
62
- [MobileVisibilityType.ONLY_MOBILE]: 3,
63
- [MobileVisibilityType.RELAX_ONLY_MOBILE]: 3,
64
- [MobileVisibilityType.RELAX_TOTAL_ONLY_MOBILE]: 3,
65
- [MobileVisibilityType.TV]: 4,
66
- [MobileVisibilityType.DIGITAL_SERVICES]: 5
67
- };
68
37
  var ProductCatalogItemState;
69
38
  (function (ProductCatalogItemState) {
70
39
  ProductCatalogItemState["ACTIVE"] = "Active";
@@ -35,6 +35,7 @@ export declare enum CacheKeyType {
35
35
  BUNDLE = "bundle",
36
36
  BUNDLE_CHARACTERISTICS_BINDING_PERIOD = "bundle-characteristics-binding-period",
37
37
  BUNDLE_NAME_DISPLAY_NAME = "bundle-name-display-name",
38
+ BUNDLE_TYPE_CONFIGURATIONS = "bundle-type-configurations",
38
39
  CONFIGURATION = "configuration",
39
40
  CUSTOMER_PRODUCT = "customer-product",
40
41
  CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_INTERMEDIATE_PRODUCT = "customer-product-change-of-address-intermediate-product",
@@ -79,6 +79,7 @@ var CacheKeyType;
79
79
  CacheKeyType["BUNDLE"] = "bundle";
80
80
  CacheKeyType["BUNDLE_CHARACTERISTICS_BINDING_PERIOD"] = "bundle-characteristics-binding-period";
81
81
  CacheKeyType["BUNDLE_NAME_DISPLAY_NAME"] = "bundle-name-display-name";
82
+ CacheKeyType["BUNDLE_TYPE_CONFIGURATIONS"] = "bundle-type-configurations";
82
83
  CacheKeyType["CONFIGURATION"] = "configuration";
83
84
  CacheKeyType["CUSTOMER_PRODUCT"] = "customer-product";
84
85
  CacheKeyType["CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_INTERMEDIATE_PRODUCT"] = "customer-product-change-of-address-intermediate-product";
@@ -130,6 +131,7 @@ exports.CacheKeyTypeTtl = {
130
131
  [CacheKeyType.BUNDLE]: 1000 * 60 * 60 * 24 * 90,
131
132
  [CacheKeyType.BUNDLE_CHARACTERISTICS_BINDING_PERIOD]: 1000 * 60 * 60,
132
133
  [CacheKeyType.BUNDLE_NAME_DISPLAY_NAME]: 1000 * 60 * 60,
134
+ [CacheKeyType.BUNDLE_TYPE_CONFIGURATIONS]: 1000 * 60 * 60 * 24,
133
135
  [CacheKeyType.CONFIGURATION]: 1000 * 60 * 60 * 24,
134
136
  [CacheKeyType.CUSTOMER_PRODUCT]: 1000 * 60 * 60 * 3,
135
137
  [CacheKeyType.CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_INTERMEDIATE_PRODUCT]: 1000 * 60 * 60 * 24 * 30,
@@ -1,7 +1,6 @@
1
1
  import { ProductInventoryCompletenessStateType, ProductInventoryStateType } from '../product';
2
2
  import { ShoppingCartProductType } from '../../common/constants';
3
3
  import { CustomerProductActionType } from './customer.constants';
4
- import { MobileVisibilityType } from '..';
5
4
  import { Builder } from '../../common/helpers/helpers';
6
5
  import { ShoppingCartConfigurationAttributeDto } from '../../sys03/shopping-cart';
7
6
  import { ServiceInventoryServiceStateType } from '../service';
@@ -46,7 +45,7 @@ export declare class CustomerProductDto extends CustomerProductServiceDataDto {
46
45
  customerId: string;
47
46
  instanceName?: string;
48
47
  name: string;
49
- configurationType?: MobileVisibilityType;
48
+ configurationType?: string;
50
49
  group?: string;
51
50
  displayName: string;
52
51
  displayDescription?: string;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CustomerProductDtoBuilder = exports.CustomerProductDto = exports.CustomerProductServiceDto = exports.CustomerProductServiceCharacteristicDto = exports.CustomerProductServiceDataDto = exports.CustomerProductCharacteristicDto = void 0;
4
4
  const openapi = require("@nestjs/swagger");
5
5
  const product_1 = require("../product");
6
- const __1 = require("..");
7
6
  const helpers_1 = require("../../common/helpers/helpers");
8
7
  const faker_1 = require("@faker-js/faker");
9
8
  class CustomerProductCharacteristicDto {
@@ -36,7 +35,7 @@ class CustomerProductDto extends CustomerProductServiceDataDto {
36
35
  this.bundle = false;
37
36
  }
38
37
  static _OPENAPI_METADATA_FACTORY() {
39
- return { id: { required: true, type: () => String }, customerId: { required: true, type: () => String }, instanceName: { required: false, type: () => String }, name: { required: true, type: () => String }, configurationType: { required: false, enum: require("../constants/bp.constants").MobileVisibilityType }, group: { required: false, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: false, type: () => String }, bundle: { required: true, type: () => Object, default: false }, enabled: { required: true, type: () => Boolean }, isMainBundle: { required: true, type: () => Boolean }, actions: { required: true, enum: require("./customer.constants").CustomerProductActionType, isArray: true }, state: { required: true, enum: require("../product/product.constants").ProductInventoryStateType }, completenessState: { required: false, enum: require("../product/product.constants").ProductInventoryCompletenessStateType }, activatedAt: { required: true, type: () => String }, terminatedAt: { required: false, type: () => String }, contract: { required: false, type: () => require("./customer-product.entity").CustomerProductCharacteristicDto }, characteristics: { required: false, type: () => [require("./customer-product.entity").CustomerProductCharacteristicDto] }, products: { required: false, type: () => [require("./customer-product.entity").CustomerProductDto] } };
38
+ return { id: { required: true, type: () => String }, customerId: { required: true, type: () => String }, instanceName: { required: false, type: () => String }, name: { required: true, type: () => String }, configurationType: { required: false, type: () => String }, group: { required: false, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: false, type: () => String }, bundle: { required: true, type: () => Object, default: false }, enabled: { required: true, type: () => Boolean }, isMainBundle: { required: true, type: () => Boolean }, actions: { required: true, enum: require("./customer.constants").CustomerProductActionType, isArray: true }, state: { required: true, enum: require("../product/product.constants").ProductInventoryStateType }, completenessState: { required: false, enum: require("../product/product.constants").ProductInventoryCompletenessStateType }, activatedAt: { required: true, type: () => String }, terminatedAt: { required: false, type: () => String }, contract: { required: false, type: () => require("./customer-product.entity").CustomerProductCharacteristicDto }, characteristics: { required: false, type: () => [require("./customer-product.entity").CustomerProductCharacteristicDto] }, products: { required: false, type: () => [require("./customer-product.entity").CustomerProductDto] } };
40
39
  }
41
40
  }
42
41
  exports.CustomerProductDto = CustomerProductDto;
@@ -45,7 +44,7 @@ class CustomerProductDtoBuilder extends helpers_1.Builder {
45
44
  const { key: name, productName: displayName } = (0, helpers_1.fakerCommerceProductNameAndKey)();
46
45
  const bundle = faker_1.faker.datatype.boolean({ probability: 0.9 });
47
46
  const isMainBundle = bundle ? faker_1.faker.datatype.boolean({ probability: 0.75 }) : false;
48
- const configurationType = bundle ? faker_1.faker.helpers.enumValue(__1.MobileVisibilityType) : undefined;
47
+ const configurationType = bundle ? faker_1.faker.helpers.arrayElement([undefined, 'MAIN_RELAX', 'MAIN_RELAX_TOTAL', 'EASY', 'ELIGES']) : undefined;
49
48
  return {
50
49
  id: faker_1.faker.string.uuid(),
51
50
  customerId: (0, helpers_1.fakerCustomerId)(),
@@ -26,6 +26,10 @@ export declare enum CustomerProcessType {
26
26
  TRANSITION = "TRANSITION",
27
27
  MULTIPLE_TRANSITION = "MULTIPLE_TRANSITION"
28
28
  }
29
+ export declare enum SearchCustomerStatusType {
30
+ ACTIVE = "ACTIVE",
31
+ DISCONNECTED = "DISCONNECTED"
32
+ }
29
33
  export declare const CustomerProductActionTypeDisplayOrder: Record<CustomerProductActionType, number>;
30
34
  export declare const CustomerProductTypeToServiceCharacteristicName: Record<ShoppingCartProductType, string[]>;
31
35
  export declare const CustomerProductTypeToServiceCharacteristicInstanceName: Record<ShoppingCartProductType, string[]>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomerProductTypeToServiceCharacteristicInstanceName = exports.CustomerProductTypeToServiceCharacteristicName = exports.CustomerProductActionTypeDisplayOrder = exports.CustomerProcessType = exports.CustomerProductActionType = exports.ContactMediumType = void 0;
3
+ exports.CustomerProductTypeToServiceCharacteristicInstanceName = exports.CustomerProductTypeToServiceCharacteristicName = exports.CustomerProductActionTypeDisplayOrder = exports.SearchCustomerStatusType = exports.CustomerProcessType = exports.CustomerProductActionType = exports.ContactMediumType = void 0;
4
4
  const constants_1 = require("../../common/constants");
5
5
  var ContactMediumType;
6
6
  (function (ContactMediumType) {
@@ -32,6 +32,11 @@ var CustomerProcessType;
32
32
  CustomerProcessType["TRANSITION"] = "TRANSITION";
33
33
  CustomerProcessType["MULTIPLE_TRANSITION"] = "MULTIPLE_TRANSITION";
34
34
  })(CustomerProcessType || (exports.CustomerProcessType = CustomerProcessType = {}));
35
+ var SearchCustomerStatusType;
36
+ (function (SearchCustomerStatusType) {
37
+ SearchCustomerStatusType["ACTIVE"] = "ACTIVE";
38
+ SearchCustomerStatusType["DISCONNECTED"] = "DISCONNECTED";
39
+ })(SearchCustomerStatusType || (exports.SearchCustomerStatusType = SearchCustomerStatusType = {}));
35
40
  exports.CustomerProductActionTypeDisplayOrder = {
36
41
  [CustomerProductActionType.CHANGE]: 1,
37
42
  [CustomerProductActionType.MIGRATE]: 2,
@@ -1,7 +1,8 @@
1
1
  import { BaseSearchFiltersDto } from '../search';
2
2
  import { BpAccountStateType, BpCustomerAccountIdentificationType, BpCustomerAccountOrganizationIndustryType, BpCustomerAccountIndividualTitleType } from '../constants';
3
- import { ContactMediumType } from './customer.constants';
3
+ import { ContactMediumType, SearchCustomerStatusType } from './customer.constants';
4
4
  import { CustomerAccountAddressDto } from '../../sys03/customer';
5
+ import { Builder } from '../../common/helpers/helpers';
5
6
  export declare class ContactMediumDto {
6
7
  type: ContactMediumType;
7
8
  value: string;
@@ -21,6 +22,9 @@ export declare class SearchCustomerCustomerAccountIndividualPartyDto {
21
22
  identifications: IdentificationDto[];
22
23
  contactMediums: ContactMediumDto[];
23
24
  }
25
+ export declare class SearchCustomerCustomerAccountIndividualPartyDtoBuilder extends Builder<SearchCustomerCustomerAccountIndividualPartyDto> {
26
+ setDefaults(): SearchCustomerCustomerAccountIndividualPartyDto;
27
+ }
24
28
  export declare class SearchCustomerCustomerAccountOrganizationPartyDto {
25
29
  legalName: string;
26
30
  tradingName: string;
@@ -30,27 +34,50 @@ export declare class SearchCustomerCustomerAccountOrganizationPartyDto {
30
34
  identifications: IdentificationDto[];
31
35
  contactMediums: ContactMediumDto[];
32
36
  }
37
+ export declare class SearchCustomerCustomerAccountOrganizationPartyDtoBuilder extends Builder<SearchCustomerCustomerAccountOrganizationPartyDto> {
38
+ setDefaults(): SearchCustomerCustomerAccountOrganizationPartyDto;
39
+ }
33
40
  export declare class SearchCustomerCustomerAccountDto {
34
41
  state: BpAccountStateType;
35
42
  address?: CustomerAccountAddressDto;
36
43
  individual?: SearchCustomerCustomerAccountIndividualPartyDto;
37
44
  organization?: SearchCustomerCustomerAccountOrganizationPartyDto;
38
45
  }
46
+ export declare class SearchCustomerCustomerAccountDtoBuilder extends Builder<SearchCustomerCustomerAccountDto> {
47
+ setDefaults(): SearchCustomerCustomerAccountDto;
48
+ }
49
+ export declare class SearchCustomerIndividualCustomerAccountDtoBuilder extends Builder<SearchCustomerCustomerAccountDto> {
50
+ setDefaults(): SearchCustomerCustomerAccountDto;
51
+ }
52
+ export declare class SearchCustomerOrganizationCustomerAccountDtoBuilder extends Builder<SearchCustomerCustomerAccountDto> {
53
+ setDefaults(): SearchCustomerCustomerAccountDto;
54
+ }
39
55
  export declare class BillReceiverDto {
40
56
  givenName: string;
41
57
  familyName: string;
42
58
  postalAddress: string;
43
59
  }
60
+ export declare class BillReceiverDtoBuilder extends Builder<BillReceiverDto> {
61
+ setDefaults(): BillReceiverDto;
62
+ }
44
63
  export declare class SearchCustomerBillingAccountDto {
45
64
  state: BpAccountStateType;
46
65
  billReceiver: BillReceiverDto;
47
66
  }
67
+ export declare class SearchCustomerBillingAccountDtoBuilder extends Builder<SearchCustomerBillingAccountDto> {
68
+ setDefaults(): SearchCustomerBillingAccountDto;
69
+ }
48
70
  export declare class SearchCustomerDto {
49
71
  id: string;
50
72
  customerAccount: SearchCustomerCustomerAccountDto;
51
73
  billingAccount: SearchCustomerBillingAccountDto;
52
74
  }
75
+ export declare class SearchCustomerDtoBuilder extends Builder<SearchCustomerDto> {
76
+ setDefaults(): SearchCustomerDto;
77
+ }
53
78
  export declare class SearchCustomersFiltersDto extends BaseSearchFiltersDto {
79
+ fetchAddress?: boolean;
80
+ status?: SearchCustomerStatusType;
54
81
  firstName?: string;
55
82
  lastName?: string;
56
83
  legalName?: string;
@@ -1,8 +1,21 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomerCharacteristicDto = exports.CustomerBillsFiltersDto = exports.CustomerOrdersFiltersDto = exports.CustomerNotesFiltersDto = exports.CustomerTasksFiltersDto = exports.SearchCustomersFiltersDto = exports.SearchCustomerDto = exports.SearchCustomerBillingAccountDto = exports.BillReceiverDto = exports.SearchCustomerCustomerAccountDto = exports.SearchCustomerCustomerAccountOrganizationPartyDto = exports.SearchCustomerCustomerAccountIndividualPartyDto = exports.IdentificationDto = exports.ContactMediumDto = void 0;
12
+ exports.CustomerCharacteristicDto = exports.CustomerBillsFiltersDto = exports.CustomerOrdersFiltersDto = exports.CustomerNotesFiltersDto = exports.CustomerTasksFiltersDto = exports.SearchCustomersFiltersDto = exports.SearchCustomerDtoBuilder = exports.SearchCustomerDto = exports.SearchCustomerBillingAccountDtoBuilder = exports.SearchCustomerBillingAccountDto = exports.BillReceiverDtoBuilder = exports.BillReceiverDto = exports.SearchCustomerOrganizationCustomerAccountDtoBuilder = exports.SearchCustomerIndividualCustomerAccountDtoBuilder = exports.SearchCustomerCustomerAccountDtoBuilder = exports.SearchCustomerCustomerAccountDto = exports.SearchCustomerCustomerAccountOrganizationPartyDtoBuilder = exports.SearchCustomerCustomerAccountOrganizationPartyDto = exports.SearchCustomerCustomerAccountIndividualPartyDtoBuilder = exports.SearchCustomerCustomerAccountIndividualPartyDto = exports.IdentificationDto = exports.ContactMediumDto = void 0;
4
13
  const openapi = require("@nestjs/swagger");
5
14
  const search_1 = require("../search");
15
+ const constants_1 = require("../constants");
16
+ const _validators_1 = require("../../validators/index");
17
+ const helpers_1 = require("../../common/helpers/helpers");
18
+ const faker_1 = require("@faker-js/faker");
6
19
  class ContactMediumDto {
7
20
  static _OPENAPI_METADATA_FACTORY() {
8
21
  return { type: { required: true, enum: require("./customer.constants").ContactMediumType }, value: { required: true, type: () => String } };
@@ -21,42 +34,152 @@ class SearchCustomerCustomerAccountIndividualPartyDto {
21
34
  }
22
35
  }
23
36
  exports.SearchCustomerCustomerAccountIndividualPartyDto = SearchCustomerCustomerAccountIndividualPartyDto;
37
+ class SearchCustomerCustomerAccountIndividualPartyDtoBuilder extends helpers_1.Builder {
38
+ setDefaults() {
39
+ const givenName = faker_1.faker.person.firstName();
40
+ const familyName = faker_1.faker.person.lastName();
41
+ const fullName = [givenName, familyName].join(' ');
42
+ return {
43
+ dateOfBirth: faker_1.faker.date.anytime().toISOString(),
44
+ title: faker_1.faker.helpers.enumValue(constants_1.BpCustomerAccountIndividualTitleType),
45
+ givenName,
46
+ familyName,
47
+ fullName,
48
+ identifications: [],
49
+ contactMediums: []
50
+ };
51
+ }
52
+ static _OPENAPI_METADATA_FACTORY() {
53
+ return {};
54
+ }
55
+ }
56
+ exports.SearchCustomerCustomerAccountIndividualPartyDtoBuilder = SearchCustomerCustomerAccountIndividualPartyDtoBuilder;
24
57
  class SearchCustomerCustomerAccountOrganizationPartyDto {
25
58
  static _OPENAPI_METADATA_FACTORY() {
26
59
  return { legalName: { required: true, type: () => String }, tradingName: { required: true, type: () => String }, legalEntity: { required: true, type: () => Boolean }, industryType: { required: true, type: () => String, enum: require("../constants/bp.constants").BpCustomerAccountOrganizationIndustryType }, contactPerson: { required: true, type: () => require("./customer.entity").SearchCustomerCustomerAccountIndividualPartyDto }, identifications: { required: true, type: () => [require("./customer.entity").IdentificationDto] }, contactMediums: { required: true, type: () => [require("./customer.entity").ContactMediumDto] } };
27
60
  }
28
61
  }
29
62
  exports.SearchCustomerCustomerAccountOrganizationPartyDto = SearchCustomerCustomerAccountOrganizationPartyDto;
63
+ class SearchCustomerCustomerAccountOrganizationPartyDtoBuilder extends helpers_1.Builder {
64
+ setDefaults() {
65
+ return {
66
+ legalName: faker_1.faker.company.name(),
67
+ tradingName: faker_1.faker.company.name(),
68
+ legalEntity: faker_1.faker.datatype.boolean(0.3),
69
+ industryType: faker_1.faker.helpers.enumValue(constants_1.BpCustomerAccountOrganizationIndustryType),
70
+ contactPerson: new SearchCustomerCustomerAccountIndividualPartyDtoBuilder().build(),
71
+ identifications: [],
72
+ contactMediums: []
73
+ };
74
+ }
75
+ static _OPENAPI_METADATA_FACTORY() {
76
+ return {};
77
+ }
78
+ }
79
+ exports.SearchCustomerCustomerAccountOrganizationPartyDtoBuilder = SearchCustomerCustomerAccountOrganizationPartyDtoBuilder;
30
80
  class SearchCustomerCustomerAccountDto {
31
81
  static _OPENAPI_METADATA_FACTORY() {
32
82
  return { state: { required: true, enum: require("../constants/bp.constants").BpAccountStateType }, address: { required: false, type: () => require("../../sys03/customer/customer-account-address.entity").CustomerAccountAddressDto }, individual: { required: false, type: () => require("./customer.entity").SearchCustomerCustomerAccountIndividualPartyDto }, organization: { required: false, type: () => require("./customer.entity").SearchCustomerCustomerAccountOrganizationPartyDto } };
33
83
  }
34
84
  }
35
85
  exports.SearchCustomerCustomerAccountDto = SearchCustomerCustomerAccountDto;
86
+ class SearchCustomerCustomerAccountDtoBuilder extends helpers_1.Builder {
87
+ setDefaults() {
88
+ return {
89
+ state: faker_1.faker.helpers.enumValue(constants_1.BpAccountStateType)
90
+ };
91
+ }
92
+ static _OPENAPI_METADATA_FACTORY() {
93
+ return {};
94
+ }
95
+ }
96
+ exports.SearchCustomerCustomerAccountDtoBuilder = SearchCustomerCustomerAccountDtoBuilder;
97
+ class SearchCustomerIndividualCustomerAccountDtoBuilder extends helpers_1.Builder {
98
+ setDefaults() {
99
+ const individual = new SearchCustomerCustomerAccountIndividualPartyDtoBuilder().build();
100
+ return new SearchCustomerCustomerAccountDtoBuilder().with('individual', individual).build();
101
+ }
102
+ static _OPENAPI_METADATA_FACTORY() {
103
+ return {};
104
+ }
105
+ }
106
+ exports.SearchCustomerIndividualCustomerAccountDtoBuilder = SearchCustomerIndividualCustomerAccountDtoBuilder;
107
+ class SearchCustomerOrganizationCustomerAccountDtoBuilder extends helpers_1.Builder {
108
+ setDefaults() {
109
+ const organization = new SearchCustomerCustomerAccountOrganizationPartyDtoBuilder().build();
110
+ return new SearchCustomerCustomerAccountDtoBuilder().with('organization', organization).build();
111
+ }
112
+ static _OPENAPI_METADATA_FACTORY() {
113
+ return {};
114
+ }
115
+ }
116
+ exports.SearchCustomerOrganizationCustomerAccountDtoBuilder = SearchCustomerOrganizationCustomerAccountDtoBuilder;
36
117
  class BillReceiverDto {
37
118
  static _OPENAPI_METADATA_FACTORY() {
38
119
  return { givenName: { required: true, type: () => String }, familyName: { required: true, type: () => String }, postalAddress: { required: true, type: () => String } };
39
120
  }
40
121
  }
41
122
  exports.BillReceiverDto = BillReceiverDto;
123
+ class BillReceiverDtoBuilder extends helpers_1.Builder {
124
+ setDefaults() {
125
+ return {
126
+ givenName: faker_1.faker.person.firstName(),
127
+ familyName: faker_1.faker.person.lastName(),
128
+ postalAddress: (0, helpers_1.fakerNumericStringLen)(5)
129
+ };
130
+ }
131
+ static _OPENAPI_METADATA_FACTORY() {
132
+ return {};
133
+ }
134
+ }
135
+ exports.BillReceiverDtoBuilder = BillReceiverDtoBuilder;
42
136
  class SearchCustomerBillingAccountDto {
43
137
  static _OPENAPI_METADATA_FACTORY() {
44
138
  return { state: { required: true, enum: require("../constants/bp.constants").BpAccountStateType }, billReceiver: { required: true, type: () => require("./customer.entity").BillReceiverDto } };
45
139
  }
46
140
  }
47
141
  exports.SearchCustomerBillingAccountDto = SearchCustomerBillingAccountDto;
142
+ class SearchCustomerBillingAccountDtoBuilder extends helpers_1.Builder {
143
+ setDefaults() {
144
+ return {
145
+ state: faker_1.faker.helpers.enumValue(constants_1.BpAccountStateType),
146
+ billReceiver: new BillReceiverDtoBuilder().build()
147
+ };
148
+ }
149
+ static _OPENAPI_METADATA_FACTORY() {
150
+ return {};
151
+ }
152
+ }
153
+ exports.SearchCustomerBillingAccountDtoBuilder = SearchCustomerBillingAccountDtoBuilder;
48
154
  class SearchCustomerDto {
49
155
  static _OPENAPI_METADATA_FACTORY() {
50
156
  return { id: { required: true, type: () => String }, customerAccount: { required: true, type: () => require("./customer.entity").SearchCustomerCustomerAccountDto }, billingAccount: { required: true, type: () => require("./customer.entity").SearchCustomerBillingAccountDto } };
51
157
  }
52
158
  }
53
159
  exports.SearchCustomerDto = SearchCustomerDto;
160
+ class SearchCustomerDtoBuilder extends helpers_1.Builder {
161
+ setDefaults() {
162
+ return {
163
+ id: (0, helpers_1.fakerCustomerId)(),
164
+ customerAccount: new SearchCustomerCustomerAccountDtoBuilder().build(),
165
+ billingAccount: new SearchCustomerBillingAccountDtoBuilder().build()
166
+ };
167
+ }
168
+ static _OPENAPI_METADATA_FACTORY() {
169
+ return {};
170
+ }
171
+ }
172
+ exports.SearchCustomerDtoBuilder = SearchCustomerDtoBuilder;
54
173
  class SearchCustomersFiltersDto extends search_1.BaseSearchFiltersDto {
55
174
  static _OPENAPI_METADATA_FACTORY() {
56
- return { firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, legalName: { required: false, type: () => String }, tradingName: { 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 } };
175
+ return { fetchAddress: { required: false, type: () => Boolean }, status: { required: false, enum: require("./customer.constants").SearchCustomerStatusType }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, legalName: { required: false, type: () => String }, tradingName: { 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 } };
57
176
  }
58
177
  }
59
178
  exports.SearchCustomersFiltersDto = SearchCustomersFiltersDto;
179
+ __decorate([
180
+ (0, _validators_1.TransformBoolean)(),
181
+ __metadata("design:type", Boolean)
182
+ ], SearchCustomersFiltersDto.prototype, "fetchAddress", void 0);
60
183
  class CustomerTasksFiltersDto extends search_1.BaseSearchFiltersDto {
61
184
  static _OPENAPI_METADATA_FACTORY() {
62
185
  return {};
@@ -1,7 +1,6 @@
1
1
  import { ShoppingCartConfigurationCharacteristicResDto, ShoppingCartConfigurationFeaturesResDto, ShoppingCartUpdateInfoDto } from '../../common/edge-bss';
2
2
  import { ShoppingCartParametersDto } from '../bearingpoint/shopping-cart';
3
3
  import { UpdateShoppingCartContractsDto as ArsUpdateShoppingCartContractsDto, UpdateShoppingCartPromotionsDto as ArsUpdateShoppingCartPromotionsDto, ShoppingCartConfigurationAttributeDto } from '../../sys03/shopping-cart';
4
- import { MobileVisibilityType } from '../constants/bp.constants';
5
4
  import { ShoppingCartProductType } from '../../common/constants';
6
5
  export declare class ShoppingCartBundleExtraDataDto {
7
6
  name: string;
@@ -43,7 +42,7 @@ export declare class UpdateShoppingCartContractsDto extends ArsUpdateShoppingCar
43
42
  }
44
43
  export declare class ShoppingCartAvailableExtrasReqDto {
45
44
  shoppingCartId?: string;
46
- bundleConfigurationTypesToBeConsidered: MobileVisibilityType[];
45
+ bundleConfigurationTypesToBeConsidered: string[];
47
46
  channel: string;
48
47
  parameters: Partial<ShoppingCartParametersDto>;
49
48
  }
@@ -54,7 +53,7 @@ export declare class ShoppingCartExtraGroupsAndExtrasDto {
54
53
  export declare class ShoppingCartBundleExtraGroupsAndExtrasDto extends ShoppingCartExtraGroupsAndExtrasDto {
55
54
  id?: string;
56
55
  name: string;
57
- configurationType?: MobileVisibilityType;
56
+ configurationType?: string;
58
57
  displayName: string;
59
58
  displayDescription: string;
60
59
  required: boolean;
@@ -50,7 +50,7 @@ class UpdateShoppingCartContractsDto extends shopping_cart_1.UpdateShoppingCartC
50
50
  exports.UpdateShoppingCartContractsDto = UpdateShoppingCartContractsDto;
51
51
  class ShoppingCartAvailableExtrasReqDto {
52
52
  static _OPENAPI_METADATA_FACTORY() {
53
- return { shoppingCartId: { required: false, type: () => String }, bundleConfigurationTypesToBeConsidered: { required: true, enum: require("../constants/bp.constants").MobileVisibilityType, isArray: true }, channel: { required: true, type: () => String }, parameters: { required: true, type: () => Object } };
53
+ return { shoppingCartId: { required: false, type: () => String }, bundleConfigurationTypesToBeConsidered: { required: true, type: () => [String] }, channel: { required: true, type: () => String }, parameters: { required: true, type: () => Object } };
54
54
  }
55
55
  }
56
56
  exports.ShoppingCartAvailableExtrasReqDto = ShoppingCartAvailableExtrasReqDto;
@@ -62,7 +62,7 @@ class ShoppingCartExtraGroupsAndExtrasDto {
62
62
  exports.ShoppingCartExtraGroupsAndExtrasDto = ShoppingCartExtraGroupsAndExtrasDto;
63
63
  class ShoppingCartBundleExtraGroupsAndExtrasDto extends ShoppingCartExtraGroupsAndExtrasDto {
64
64
  static _OPENAPI_METADATA_FACTORY() {
65
- return { id: { required: false, type: () => String }, name: { required: true, type: () => String }, configurationType: { required: false, enum: require("../constants/bp.constants").MobileVisibilityType }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, required: { required: true, type: () => Boolean }, isMainBundle: { required: true, type: () => Boolean }, displayOrder: { required: true, type: () => Number } };
65
+ return { id: { required: false, type: () => String }, name: { required: true, type: () => String }, configurationType: { required: false, type: () => String }, displayName: { required: true, type: () => String }, displayDescription: { required: true, type: () => String }, required: { required: true, type: () => Boolean }, isMainBundle: { required: true, type: () => Boolean }, displayOrder: { required: true, type: () => Number } };
66
66
  }
67
67
  }
68
68
  exports.ShoppingCartBundleExtraGroupsAndExtrasDto = ShoppingCartBundleExtraGroupsAndExtrasDto;
@@ -16,7 +16,7 @@ const class_transformer_1 = require("class-transformer");
16
16
  const class_validator_1 = require("class-validator");
17
17
  class PaginationQueryDto {
18
18
  static _OPENAPI_METADATA_FACTORY() {
19
- return { page: { required: false, type: () => Number, minimum: 1 }, limit: { required: false, type: () => Number, minimum: 1, maximum: 250 } };
19
+ return { page: { required: false, type: () => Number, minimum: 1 }, limit: { required: false, type: () => Number, minimum: -1, maximum: 250 } };
20
20
  }
21
21
  }
22
22
  exports.PaginationQueryDto = PaginationQueryDto;
@@ -29,7 +29,7 @@ __decorate([
29
29
  ], PaginationQueryDto.prototype, "page", void 0);
30
30
  __decorate([
31
31
  (0, class_validator_1.IsInt)(),
32
- (0, class_validator_1.Min)(1),
32
+ (0, class_validator_1.Min)(-1),
33
33
  (0, class_validator_1.Max)(250),
34
34
  (0, class_validator_1.IsOptional)(),
35
35
  (0, class_transformer_1.Transform)(({ value }) => Number(value)),
@@ -0,0 +1,20 @@
1
+ export declare const E_EXTRA_BUNDLE_CONFIGURATION_HAS_MULTIPLE_CHOICES = "E_EXTRA_BUNDLE_CONFIGURATION_HAS_MULTIPLE_CHOICES";
2
+ export declare const E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_EXTRA_MOBILE_BUNDLE = "E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_EXTRA_MOBILE_BUNDLE";
3
+ export declare const E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_IS_EXTRA_MOBILE_BUNDLE_DEPENDANT = "E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_IS_EXTRA_MOBILE_BUNDLE_DEPENDANT";
4
+ export declare const E_EXTRA_BUNDLE_CONFIGURATION_EXTRA_MOBILE_BUNDLE = "E_EXTRA_BUNDLE_CONFIGURATION_EXTRA_MOBILE_BUNDLE";
5
+ export declare const E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_BUNDLE = "E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_BUNDLE";
6
+ export declare const E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE = "E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE";
7
+ export declare const E_MAIN_BUNDLE_CONFIGURATION_IS_MOBILE_EXTRA_BUNDLE = "E_MAIN_BUNDLE_CONFIGURATION_IS_MOBILE_EXTRA_BUNDLE";
8
+ export declare const E_MAIN_BUNDLE_CONFIGURATION_IS_EXTRA_MOBILE_DEPENDANT_WITHOUT_MOBILE_EXTRA_BUNDLE = "E_MAIN_BUNDLE_CONFIGURATION_IS_EXTRA_MOBILE_DEPENDANT_WITHOUT_MOBILE_EXTRA_BUNDLE";
9
+ export declare const E_BUNDLE_CONFIGURATION_INVALID_MOBILE_EXTRA_BUNDLE_ID = "E_BUNDLE_CONFIGURATION_INVALID_MOBILE_EXTRA_BUNDLE_ID";
10
+ export declare const E_BUNDLE_CONFIGURATION_INVALID_SAME_MOBILE_EXTRA_BUNDLE_ID = "E_BUNDLE_CONFIGURATION_INVALID_SAME_MOBILE_EXTRA_BUNDLE_ID";
11
+ export declare const E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_BUNDLE_ID = "E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_BUNDLE_ID";
12
+ export declare const E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_BUNDLE_ID = "E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_BUNDLE_ID";
13
+ export declare const E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID = "E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID";
14
+ export declare const E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID = "E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID";
15
+ export declare const E_BUNDLE_CONFIGURATION_INVALID_IS_DEFAULT_FOR_TYPE = "E_BUNDLE_CONFIGURATION_INVALID_IS_DEFAULT_FOR_TYPE";
16
+ export declare const E_BUNDLE_CONFIGURATION_IS_DEFAULT_WITHOUT_TYPE = "E_BUNDLE_CONFIGURATION_IS_DEFAULT_WITHOUT_TYPE";
17
+ export declare const E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_EXTRA = "E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_EXTRA";
18
+ export declare const E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_MOBILE_EXTRA = "E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_MOBILE_EXTRA";
19
+ export declare const E_DEFAULT_MAIN_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND = "E_DEFAULT_MAIN_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND";
20
+ export declare const E_DEFAULT_EXTRA_MOBILE_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND = "E_DEFAULT_EXTRA_MOBILE_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND";
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.E_DEFAULT_EXTRA_MOBILE_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND = exports.E_DEFAULT_MAIN_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND = exports.E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_MOBILE_EXTRA = exports.E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_EXTRA = exports.E_BUNDLE_CONFIGURATION_IS_DEFAULT_WITHOUT_TYPE = exports.E_BUNDLE_CONFIGURATION_INVALID_IS_DEFAULT_FOR_TYPE = exports.E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID = exports.E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID = exports.E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_BUNDLE_ID = exports.E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_BUNDLE_ID = exports.E_BUNDLE_CONFIGURATION_INVALID_SAME_MOBILE_EXTRA_BUNDLE_ID = exports.E_BUNDLE_CONFIGURATION_INVALID_MOBILE_EXTRA_BUNDLE_ID = exports.E_MAIN_BUNDLE_CONFIGURATION_IS_EXTRA_MOBILE_DEPENDANT_WITHOUT_MOBILE_EXTRA_BUNDLE = exports.E_MAIN_BUNDLE_CONFIGURATION_IS_MOBILE_EXTRA_BUNDLE = exports.E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE = exports.E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_BUNDLE = exports.E_EXTRA_BUNDLE_CONFIGURATION_EXTRA_MOBILE_BUNDLE = exports.E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_IS_EXTRA_MOBILE_BUNDLE_DEPENDANT = exports.E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_EXTRA_MOBILE_BUNDLE = exports.E_EXTRA_BUNDLE_CONFIGURATION_HAS_MULTIPLE_CHOICES = void 0;
4
+ exports.E_EXTRA_BUNDLE_CONFIGURATION_HAS_MULTIPLE_CHOICES = 'E_EXTRA_BUNDLE_CONFIGURATION_HAS_MULTIPLE_CHOICES';
5
+ exports.E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_EXTRA_MOBILE_BUNDLE = 'E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_EXTRA_MOBILE_BUNDLE';
6
+ exports.E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_IS_EXTRA_MOBILE_BUNDLE_DEPENDANT = 'E_EXTRA_BUNDLE_CONFIGURATION_WITHOUT_IS_EXTRA_MOBILE_BUNDLE_DEPENDANT';
7
+ exports.E_EXTRA_BUNDLE_CONFIGURATION_EXTRA_MOBILE_BUNDLE = 'E_EXTRA_BUNDLE_CONFIGURATION_EXTRA_MOBILE_BUNDLE';
8
+ exports.E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_BUNDLE = 'E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_BUNDLE';
9
+ exports.E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE = 'E_EXTRA_BUNDLE_CONFIGURATION_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE';
10
+ exports.E_MAIN_BUNDLE_CONFIGURATION_IS_MOBILE_EXTRA_BUNDLE = 'E_MAIN_BUNDLE_CONFIGURATION_IS_MOBILE_EXTRA_BUNDLE';
11
+ exports.E_MAIN_BUNDLE_CONFIGURATION_IS_EXTRA_MOBILE_DEPENDANT_WITHOUT_MOBILE_EXTRA_BUNDLE = 'E_MAIN_BUNDLE_CONFIGURATION_IS_EXTRA_MOBILE_DEPENDANT_WITHOUT_MOBILE_EXTRA_BUNDLE';
12
+ exports.E_BUNDLE_CONFIGURATION_INVALID_MOBILE_EXTRA_BUNDLE_ID = 'E_BUNDLE_CONFIGURATION_INVALID_MOBILE_EXTRA_BUNDLE_ID';
13
+ exports.E_BUNDLE_CONFIGURATION_INVALID_SAME_MOBILE_EXTRA_BUNDLE_ID = 'E_BUNDLE_CONFIGURATION_INVALID_SAME_MOBILE_EXTRA_BUNDLE_ID';
14
+ exports.E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_BUNDLE_ID = 'E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_BUNDLE_ID';
15
+ exports.E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_BUNDLE_ID = 'E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_BUNDLE_ID';
16
+ exports.E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID = 'E_BUNDLE_CONFIGURATION_INVALID_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID';
17
+ exports.E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID = 'E_BUNDLE_CONFIGURATION_INVALID_SAME_NOT_COMPATIBLE_WITH_EXTRA_BUNDLE_ID';
18
+ exports.E_BUNDLE_CONFIGURATION_INVALID_IS_DEFAULT_FOR_TYPE = 'E_BUNDLE_CONFIGURATION_INVALID_IS_DEFAULT_FOR_TYPE';
19
+ exports.E_BUNDLE_CONFIGURATION_IS_DEFAULT_WITHOUT_TYPE = 'E_BUNDLE_CONFIGURATION_IS_DEFAULT_WITHOUT_TYPE';
20
+ exports.E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_EXTRA = 'E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_EXTRA';
21
+ exports.E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_MOBILE_EXTRA = 'E_BUNDLE_CONFIGURATION_TYPE_SHOULD_BE_MOBILE_EXTRA';
22
+ exports.E_DEFAULT_MAIN_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND = 'E_DEFAULT_MAIN_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND';
23
+ exports.E_DEFAULT_EXTRA_MOBILE_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND = 'E_DEFAULT_EXTRA_MOBILE_BUNDLE_CONFIGURATION_BY_TYPE_NOT_FOUND';
@@ -134,3 +134,7 @@ export declare enum FeatureGroupType {
134
134
  INSTALLATION_COST = "INSTALLATION_COST"
135
135
  }
136
136
  export declare const KNOWN_ERRORS: Record<string, string>;
137
+ export declare enum PaginateSortType {
138
+ ASC = "ASC",
139
+ DESC = "DESC"
140
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KNOWN_ERRORS = exports.FeatureGroupType = exports.CoverageSearchType = exports.StorageDropdown = exports.Templates = exports.MicroserviceType = exports.BssLookupKeys = exports.BssDropDownKeys = exports.StorageConfiguration = exports.ShoppingCartProductTypeDisplayOrder = exports.ShoppingCartProductType = exports.BusinessCustomerType = exports.CustomerType = exports.ClientType = exports.ArsTenant = void 0;
3
+ exports.PaginateSortType = exports.KNOWN_ERRORS = exports.FeatureGroupType = exports.CoverageSearchType = exports.StorageDropdown = exports.Templates = exports.MicroserviceType = exports.BssLookupKeys = exports.BssDropDownKeys = exports.StorageConfiguration = exports.ShoppingCartProductTypeDisplayOrder = exports.ShoppingCartProductType = exports.BusinessCustomerType = exports.CustomerType = exports.ClientType = exports.ArsTenant = void 0;
4
4
  const error_constants_1 = require("./error.constants");
5
5
  var ArsTenant;
6
6
  (function (ArsTenant) {
@@ -150,5 +150,11 @@ var FeatureGroupType;
150
150
  })(FeatureGroupType || (exports.FeatureGroupType = FeatureGroupType = {}));
151
151
  exports.KNOWN_ERRORS = {
152
152
  ECONNREFUSED: error_constants_1.E_CONNECTION_REFUSED,
153
- ER_DUP_ENTRY: error_constants_1.E_DUPLICATE_ENTRY
153
+ ER_DUP_ENTRY: error_constants_1.E_DUPLICATE_ENTRY,
154
+ ER_NO_REFERENCED_ROW_2: error_constants_1.E_ENTRY_FOREIGN_KEY_CONSTRAINT
154
155
  };
156
+ var PaginateSortType;
157
+ (function (PaginateSortType) {
158
+ PaginateSortType["ASC"] = "ASC";
159
+ PaginateSortType["DESC"] = "DESC";
160
+ })(PaginateSortType || (exports.PaginateSortType = PaginateSortType = {}));
@@ -111,6 +111,7 @@ export declare const E_TOO_MANY_REQUESTS = "E_TOO_MANY_REQUESTS";
111
111
  export declare const E_LOGIN_MAX_ATTEMPTS_REACHED = "E_LOGIN_MAX_ATTEMPTS_REACHED";
112
112
  export declare const E_UNHANDLED_KEY = "E_UNHANDLED_KEY";
113
113
  export declare const E_DUPLICATE_ENTRY = "E_DUPLICATE_ENTRY";
114
+ export declare const E_ENTRY_FOREIGN_KEY_CONSTRAINT = "E_ENTRY_FOREIGN_KEY_CONSTRAINT";
114
115
  export declare const E_UPDATE_PRODUCT_CATALOG_CACHE = "E_UPDATE_PRODUCT_CATALOG_CACHE";
115
116
  export declare const E_ADDRESS_BREACHES_RETAIL_EXCLUSIVITY_RULES = "E_ADDRESS_BREACHES_RETAIL_EXCLUSIVITY_RULES";
116
117
  export declare const E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES = "E_APARTMENT_BREACHES_RETAIL_EXCLUSIVITY_RULES";
@@ -186,3 +187,6 @@ export declare const E_PRODUCT_ACTION_DISABLED_CHANGE_OF_ADDRESS_2ND_PHASE_IN_PR
186
187
  export declare const E_CHANGE_OF_ADDRESS_INTERMEDIATE_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING = "E_CHANGE_OF_ADDRESS_INTERMEDIATE_BUNDLE_CONFIGURATION_ATTRIBUTE_MISMATCHING";
187
188
  export declare const E_SALE_PROCESS_CREDIT_BUREAU_VALIDATION_REJECTED = "E_SALE_PROCESS_CREDIT_BUREAU_VALIDATION_REJECTED";
188
189
  export declare const E_SHOPPING_CART_CONFIGURATION_FEATURE_GROUP_INCONSISTENT_MIN_MAX = "E_SHOPPING_CART_CONFIGURATION_FEATURE_GROUP_INCONSISTENT_MIN_MAX";
190
+ export declare const E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING = "E_DROPDOWN_BY_FIELD_VALUE_TYPE_MISMATCHING";
191
+ export declare const E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT = "E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_CONFLICT";
192
+ export declare const E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE = "E_PRODUCT_TRANSITION_GROUP_AGGRUPATION_BUNDLE_TYPE_CONFIGURATION_NOT_MAIN_BUNDLE";