adamo-types 2.0.95-uat → 2.0.95

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 (31) hide show
  1. package/dist/admin/email/email.entity.d.ts +10 -0
  2. package/dist/admin/email/email.entity.js +16 -0
  3. package/dist/admin/email/index.d.ts +1 -4
  4. package/dist/admin/email/index.js +15 -4
  5. package/dist/bss/constants/bp.constants.d.ts +5 -5
  6. package/dist/bss/constants/bp.constants.js +4 -4
  7. package/dist/common/constants/common.constants.d.ts +0 -2
  8. package/dist/common/constants/common.constants.js +0 -2
  9. package/dist/common/constants/not-found.error.constants.d.ts +1 -0
  10. package/dist/common/constants/not-found.error.constants.js +2 -1
  11. package/dist/common/edge-zoho/sale-process/req/create.entity.d.ts +4 -3
  12. package/dist/common/edge-zoho/sale-process/req/create.entity.js +5 -4
  13. package/dist/common/helpers/helpers.d.ts +1 -0
  14. package/dist/common/helpers/helpers.js +4 -0
  15. package/dist/database/ars/batch-process-definition.entity.d.ts +7 -0
  16. package/dist/database/ars/batch-process-definition.entity.js +43 -0
  17. package/dist/database/ars/index.d.ts +1 -0
  18. package/dist/database/ars/index.js +1 -0
  19. package/dist/sys03/batch-process-definition/batch-process-definition.entity.d.ts +8 -0
  20. package/dist/sys03/batch-process-definition/batch-process-definition.entity.js +10 -0
  21. package/dist/sys03/batch-process-definition/index.d.ts +1 -0
  22. package/dist/sys03/batch-process-definition/index.js +17 -0
  23. package/dist/sys03/customer/customer-account.entitty.d.ts +4 -4
  24. package/dist/sys03/customer/customer.constants.d.ts +36 -6
  25. package/dist/sys03/customer/customer.constants.js +26 -8
  26. package/dist/tsconfig.build.tsbuildinfo +1 -1
  27. package/dist/zoho/sale-process/additonal-contact-medium.entity.d.ts +2 -2
  28. package/dist/zoho/sale-process/additonal-contact-medium.entity.js +1 -1
  29. package/dist/zoho/sale-process/additonal-contact.entity.d.ts +2 -2
  30. package/dist/zoho/sale-process/additonal-contact.entity.js +1 -1
  31. package/package.json +2 -2
@@ -0,0 +1,10 @@
1
+ export declare class AdminNotificationPayloadDto {
2
+ subtitle: string;
3
+ jsonContent: string;
4
+ }
5
+ export declare class BatchProcessNotificationPayloadDto {
6
+ env?: string;
7
+ subtitle: string;
8
+ body?: string;
9
+ message: string;
10
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchProcessNotificationPayloadDto = exports.AdminNotificationPayloadDto = void 0;
4
+ const openapi = require("@nestjs/swagger");
5
+ class AdminNotificationPayloadDto {
6
+ static _OPENAPI_METADATA_FACTORY() {
7
+ return { subtitle: { required: true, type: () => String }, jsonContent: { required: true, type: () => String } };
8
+ }
9
+ }
10
+ exports.AdminNotificationPayloadDto = AdminNotificationPayloadDto;
11
+ class BatchProcessNotificationPayloadDto {
12
+ static _OPENAPI_METADATA_FACTORY() {
13
+ return { env: { required: false, type: () => String }, subtitle: { required: true, type: () => String }, body: { required: false, type: () => String }, message: { required: true, type: () => String } };
14
+ }
15
+ }
16
+ exports.BatchProcessNotificationPayloadDto = BatchProcessNotificationPayloadDto;
@@ -1,4 +1 @@
1
- export declare class AdminNotificationPayloadDto {
2
- subtitle: string;
3
- jsonContent: string;
4
- }
1
+ export * from './email.entity';
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdminNotificationPayloadDto = void 0;
4
- class AdminNotificationPayloadDto {
5
- }
6
- exports.AdminNotificationPayloadDto = AdminNotificationPayloadDto;
17
+ __exportStar(require("./email.entity"), exports);
@@ -217,13 +217,13 @@ export declare enum BpCustomerAccountOrganizationIndustryType {
217
217
  OTHER = "OTHER"
218
218
  }
219
219
  export declare enum BpRelatedPartyRoleType {
220
- CUSTOMER_ACCOUNT_OWNER = "CUSTOMER_ACCOUNT_OWNER",
221
220
  CUSTOMER_ACCOUNT_CONTACT = "CUSTOMER_ACCOUNT_CONTACT",
222
- ORGANIZATION_CONTACT = "ORGANIZATION_CONTACT",
223
- LEGAL_REPRESENTATIVE = "LEGAL_REPRESENTATIVE",
221
+ CUSTOMER_ACCOUNT_OWNER = "CUSTOMER_ACCOUNT_OWNER",
224
222
  INVOICE = "INVOICE",
225
- TECH = "TECH",
226
- OTHERS = "OTHERS"
223
+ LEGAL_REPRESENTATIVE = "LEGAL_REPRESENTATIVE",
224
+ ORGANIZATION_CONTACT = "ORGANIZATION_CONTACT",
225
+ OTHERS = "OTHERS",
226
+ TECH = "TECH"
227
227
  }
228
228
  export declare enum BpPartyStateType {
229
229
  INITIALIZED = "Initialized",
@@ -267,13 +267,13 @@ var BpCustomerAccountOrganizationIndustryType;
267
267
  })(BpCustomerAccountOrganizationIndustryType || (exports.BpCustomerAccountOrganizationIndustryType = BpCustomerAccountOrganizationIndustryType = {}));
268
268
  var BpRelatedPartyRoleType;
269
269
  (function (BpRelatedPartyRoleType) {
270
- BpRelatedPartyRoleType["CUSTOMER_ACCOUNT_OWNER"] = "CUSTOMER_ACCOUNT_OWNER";
271
270
  BpRelatedPartyRoleType["CUSTOMER_ACCOUNT_CONTACT"] = "CUSTOMER_ACCOUNT_CONTACT";
272
- BpRelatedPartyRoleType["ORGANIZATION_CONTACT"] = "ORGANIZATION_CONTACT";
273
- BpRelatedPartyRoleType["LEGAL_REPRESENTATIVE"] = "LEGAL_REPRESENTATIVE";
271
+ BpRelatedPartyRoleType["CUSTOMER_ACCOUNT_OWNER"] = "CUSTOMER_ACCOUNT_OWNER";
274
272
  BpRelatedPartyRoleType["INVOICE"] = "INVOICE";
275
- BpRelatedPartyRoleType["TECH"] = "TECH";
273
+ BpRelatedPartyRoleType["LEGAL_REPRESENTATIVE"] = "LEGAL_REPRESENTATIVE";
274
+ BpRelatedPartyRoleType["ORGANIZATION_CONTACT"] = "ORGANIZATION_CONTACT";
276
275
  BpRelatedPartyRoleType["OTHERS"] = "OTHERS";
276
+ BpRelatedPartyRoleType["TECH"] = "TECH";
277
277
  })(BpRelatedPartyRoleType || (exports.BpRelatedPartyRoleType = BpRelatedPartyRoleType = {}));
278
278
  var BpPartyStateType;
279
279
  (function (BpPartyStateType) {
@@ -45,7 +45,6 @@ export declare enum StorageConfiguration {
45
45
  DIGITEL_CONTRACT_CHANNELS_B2B = "DIGITEL_CONTRACT_CHANNELS_B2B",
46
46
  DIGITEL_CONTRACT_CHANNELS_B2C = "DIGITEL_CONTRACT_CHANNELS_B2C",
47
47
  DIGITEL_DEFAULT_USERS_PHONE = "DIGITEL_DEFAULT_USERS_PHONE",
48
- DIGITEL_WEB_REMINDER_STATUS = "DIGITEL_WEB_REMINDER_STATUS",
49
48
  FORBIDDEN_SALE_PROCESS_STATUSES = "FORBIDDEN_SALE_PROCESS_STATUSES",
50
49
  GDPR_CLAUSES = "GDPR_CLAUSES",
51
50
  IBAN_SUPPORTED_COUNTRIES = "IBAN_SUPPORTED_COUNTRIES",
@@ -100,7 +99,6 @@ export declare enum Templates {
100
99
  ADMIN_NOTIFICATION_TEMPLATE = "ADMIN_NOTIFICATION_TEMPLATE",
101
100
  B2B_SMS_TEMPLATE = "B2B_SMS_TEMPLATE",
102
101
  B2C_SMS_TEMPLATE = "B2C_SMS_TEMPLATE",
103
- DIGITEL_WEB_REMINDER_TEMPLATE = "DIGITEL_WEB_REMINDER_TEMPLATE",
104
102
  INVOICE_B2B_CORPORATE_TEMPLATE = "INVOICE_B2B_CORPORATE_TEMPLATE",
105
103
  INVOICE_B2B_PYMES_TEMPLATE = "INVOICE_B2B_PYMES_TEMPLATE",
106
104
  INVOICE_B2B_TEMPLATE = "INVOICE_B2B_TEMPLATE",
@@ -64,7 +64,6 @@ var StorageConfiguration;
64
64
  StorageConfiguration["DIGITEL_CONTRACT_CHANNELS_B2B"] = "DIGITEL_CONTRACT_CHANNELS_B2B";
65
65
  StorageConfiguration["DIGITEL_CONTRACT_CHANNELS_B2C"] = "DIGITEL_CONTRACT_CHANNELS_B2C";
66
66
  StorageConfiguration["DIGITEL_DEFAULT_USERS_PHONE"] = "DIGITEL_DEFAULT_USERS_PHONE";
67
- StorageConfiguration["DIGITEL_WEB_REMINDER_STATUS"] = "DIGITEL_WEB_REMINDER_STATUS";
68
67
  StorageConfiguration["FORBIDDEN_SALE_PROCESS_STATUSES"] = "FORBIDDEN_SALE_PROCESS_STATUSES";
69
68
  StorageConfiguration["GDPR_CLAUSES"] = "GDPR_CLAUSES";
70
69
  StorageConfiguration["IBAN_SUPPORTED_COUNTRIES"] = "IBAN_SUPPORTED_COUNTRIES";
@@ -123,7 +122,6 @@ var Templates;
123
122
  Templates["ADMIN_NOTIFICATION_TEMPLATE"] = "ADMIN_NOTIFICATION_TEMPLATE";
124
123
  Templates["B2B_SMS_TEMPLATE"] = "B2B_SMS_TEMPLATE";
125
124
  Templates["B2C_SMS_TEMPLATE"] = "B2C_SMS_TEMPLATE";
126
- Templates["DIGITEL_WEB_REMINDER_TEMPLATE"] = "DIGITEL_WEB_REMINDER_TEMPLATE";
127
125
  Templates["INVOICE_B2B_CORPORATE_TEMPLATE"] = "INVOICE_B2B_CORPORATE_TEMPLATE";
128
126
  Templates["INVOICE_B2B_PYMES_TEMPLATE"] = "INVOICE_B2B_PYMES_TEMPLATE";
129
127
  Templates["INVOICE_B2B_TEMPLATE"] = "INVOICE_B2B_TEMPLATE";
@@ -5,6 +5,7 @@ export declare const E_APPROVAL_DATA_TO_APPROVE_NOT_FOUND = "E_APPROVAL_DATA_TO_
5
5
  export declare const E_APPROVAL_NOT_FOUND = "E_APPROVAL_NOT_FOUND";
6
6
  export declare const E_AREA_ADDRESSES_NOT_FOUND = "E_AREA_ADDRESSES_NOT_FOUND";
7
7
  export declare const E_AUTH_NOT_FOUND = "E_AUTH_NOT_FOUND";
8
+ export declare const E_BATCH_PROCESS_DEFINITION_NOT_FOUND = "E_BATCH_PROCESS_DEFINITION_NOT_FOUND";
8
9
  export declare const E_BUNDLE_PRODUCTS_NOT_FOUND = "E_BUNDLE_PRODUCTS_NOT_FOUND";
9
10
  export declare const E_CUSTOMER_NOT_FOUND = "E_CUSTOMER_NOT_FOUND";
10
11
  export declare const E_CUSTOMER_AGGRUPATION_NOT_FOUND = "E_CUSTOMER_AGGRUPATION_NOT_FOUND";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.E_WORK_ORDER_NOT_FOUND = exports.E_TASK_NOT_FOUND = exports.E_CUSTOMER_BILLING_DIRECT_DEBIT_MANDATE_NOT_FOUND = exports.E_CUSTOMER_BILLING_DIRECT_DEBIT_PAYMENT_METHOD_NOT_FOUND = exports.E_CUSTOMER_BILLING_PAYMENT_METHODS_NOT_FOUND = exports.E_BUNDLE_TYPE_CONFIGURATION_NOT_FOUND = exports.E_NUMBER_FROM_POOL_NOT_FOUND = exports.E_ZIP_ADDRESSES_NOT_FOUND = exports.E_WORKGROUP_NOT_FOUND = exports.E_USER_NOT_FOUND = exports.E_PRODUCT_TRANSITION_CONFIGURATION_NOT_FOUND = exports.E_PRODUCT_TRANSITION_GROUP_NOT_FOUND = exports.E_PRODUCT_MOBILE_PROFILE_EQUIVALENCE_NOT_FOUND = exports.E_PRODUCT_CHARACTERISITC_EQUIVALENCE_NOT_FOUND = exports.E_SHOPPING_CART_NOT_FOUND = exports.E_NOT_FOUND = exports.E_SALE_PROCESS_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LEAD_FILE_NOT_FOUND = exports.E_CONFIGURATION_NOT_FOUND = exports.E_CHANGE_OF_ADDRESS_CHARACTERISTIC_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_INTERMEDIATE_BUNDLE_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_FIBER_PRODUCT_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_TRANSITION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_MODIFICATION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_DEACTIVATION_NOT_FOUND = exports.E_CUSTOMER_NEW_EXTRAS_NOT_FOUND = exports.E_CUSTOMER_AGGRUPATION_NOT_FOUND = exports.E_CUSTOMER_NOT_FOUND = exports.E_BUNDLE_PRODUCTS_NOT_FOUND = exports.E_AUTH_NOT_FOUND = exports.E_AREA_ADDRESSES_NOT_FOUND = exports.E_APPROVAL_NOT_FOUND = exports.E_APPROVAL_DATA_TO_APPROVE_NOT_FOUND = exports.E_APPROVAL_DATA_NOT_FOUND = exports.E_APARTMENT_NOT_FOUND = exports.E_ADDRESS_NOT_FOUND = void 0;
3
+ exports.E_WORK_ORDER_NOT_FOUND = exports.E_TASK_NOT_FOUND = exports.E_CUSTOMER_BILLING_DIRECT_DEBIT_MANDATE_NOT_FOUND = exports.E_CUSTOMER_BILLING_DIRECT_DEBIT_PAYMENT_METHOD_NOT_FOUND = exports.E_CUSTOMER_BILLING_PAYMENT_METHODS_NOT_FOUND = exports.E_BUNDLE_TYPE_CONFIGURATION_NOT_FOUND = exports.E_NUMBER_FROM_POOL_NOT_FOUND = exports.E_ZIP_ADDRESSES_NOT_FOUND = exports.E_WORKGROUP_NOT_FOUND = exports.E_USER_NOT_FOUND = exports.E_PRODUCT_TRANSITION_CONFIGURATION_NOT_FOUND = exports.E_PRODUCT_TRANSITION_GROUP_NOT_FOUND = exports.E_PRODUCT_MOBILE_PROFILE_EQUIVALENCE_NOT_FOUND = exports.E_PRODUCT_CHARACTERISITC_EQUIVALENCE_NOT_FOUND = exports.E_SHOPPING_CART_NOT_FOUND = exports.E_NOT_FOUND = exports.E_SALE_PROCESS_NOT_FOUND = exports.E_LEAD_NOT_FOUND = exports.E_LEAD_FILE_NOT_FOUND = exports.E_CONFIGURATION_NOT_FOUND = exports.E_CHANGE_OF_ADDRESS_CHARACTERISTIC_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_INTERMEDIATE_BUNDLE_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_PROCESS_FIBER_PRODUCT_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_CHANGE_OF_ADDRESS_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_MULTIPLE_TRANSITION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_TRANSITION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_MODIFICATION_NOT_FOUND = exports.E_CUSTOMER_PRODUCT_DEACTIVATION_NOT_FOUND = exports.E_CUSTOMER_NEW_EXTRAS_NOT_FOUND = exports.E_CUSTOMER_AGGRUPATION_NOT_FOUND = exports.E_CUSTOMER_NOT_FOUND = exports.E_BUNDLE_PRODUCTS_NOT_FOUND = exports.E_BATCH_PROCESS_DEFINITION_NOT_FOUND = exports.E_AUTH_NOT_FOUND = exports.E_AREA_ADDRESSES_NOT_FOUND = exports.E_APPROVAL_NOT_FOUND = exports.E_APPROVAL_DATA_TO_APPROVE_NOT_FOUND = exports.E_APPROVAL_DATA_NOT_FOUND = exports.E_APARTMENT_NOT_FOUND = exports.E_ADDRESS_NOT_FOUND = void 0;
4
4
  exports.E_ADDRESS_NOT_FOUND = 'E_ADDRESS_NOT_FOUND';
5
5
  exports.E_APARTMENT_NOT_FOUND = 'E_APARTMENT_NOT_FOUND';
6
6
  exports.E_APPROVAL_DATA_NOT_FOUND = 'E_APPROVAL_DATA_NOT_FOUND';
@@ -8,6 +8,7 @@ exports.E_APPROVAL_DATA_TO_APPROVE_NOT_FOUND = 'E_APPROVAL_DATA_TO_APPROVE_NOT_F
8
8
  exports.E_APPROVAL_NOT_FOUND = 'E_APPROVAL_NOT_FOUND';
9
9
  exports.E_AREA_ADDRESSES_NOT_FOUND = 'E_AREA_ADDRESSES_NOT_FOUND';
10
10
  exports.E_AUTH_NOT_FOUND = 'E_AUTH_NOT_FOUND';
11
+ exports.E_BATCH_PROCESS_DEFINITION_NOT_FOUND = 'E_BATCH_PROCESS_DEFINITION_NOT_FOUND';
11
12
  exports.E_BUNDLE_PRODUCTS_NOT_FOUND = 'E_BUNDLE_PRODUCTS_NOT_FOUND';
12
13
  exports.E_CUSTOMER_NOT_FOUND = 'E_CUSTOMER_NOT_FOUND';
13
14
  exports.E_CUSTOMER_AGGRUPATION_NOT_FOUND = 'E_CUSTOMER_AGGRUPATION_NOT_FOUND';
@@ -1,15 +1,16 @@
1
- import { AdditionalContactMediumType, AdditionalContactRoleType, SaleProcessCallType } from '../../../../zoho/constants';
1
+ import { SaleProcessCallType } from '../../../../zoho/constants';
2
2
  import { UtmDto } from '../../../../zoho/sale-process';
3
+ import { CustomerAccountAdditionalContactContactMediumType, CustomerAccountAdditionalContactRelatedPartyRoleType } from '../../../../sys03/customer';
3
4
  export declare class ArsSaleProcessAdditionalContactDto {
4
5
  partyId?: string;
5
6
  firstName: string;
6
7
  lastName: string;
7
- role: AdditionalContactRoleType;
8
+ role: CustomerAccountAdditionalContactRelatedPartyRoleType;
8
9
  contactMediums: ArsSaleProcessAdditionalContactMediumDto[];
9
10
  }
10
11
  export declare class ArsSaleProcessAdditionalContactMediumDto {
11
12
  id?: string;
12
- type: AdditionalContactMediumType;
13
+ type: CustomerAccountAdditionalContactContactMediumType;
13
14
  value: string;
14
15
  preferred: boolean;
15
16
  }
@@ -15,9 +15,10 @@ const constants_1 = require("../../../../zoho/constants");
15
15
  const class_transformer_1 = require("class-transformer");
16
16
  const class_validator_1 = require("class-validator");
17
17
  const sale_process_1 = require("../../../../zoho/sale-process");
18
+ const customer_1 = require("../../../../sys03/customer");
18
19
  class ArsSaleProcessAdditionalContactDto {
19
20
  static _OPENAPI_METADATA_FACTORY() {
20
- return { partyId: { required: false, type: () => String }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, enum: require("../../../../zoho/constants/zoho.constants").AdditionalContactRoleType }, contactMediums: { required: true, type: () => [require("./create.entity").ArsSaleProcessAdditionalContactMediumDto], minItems: 1, minItems: 1, maxItems: 6 } };
21
+ return { partyId: { required: false, type: () => String }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, type: () => Object }, contactMediums: { required: true, type: () => [require("./create.entity").ArsSaleProcessAdditionalContactMediumDto], minItems: 1, minItems: 1, maxItems: 6 } };
21
22
  }
22
23
  }
23
24
  exports.ArsSaleProcessAdditionalContactDto = ArsSaleProcessAdditionalContactDto;
@@ -38,7 +39,7 @@ __decorate([
38
39
  __metadata("design:type", String)
39
40
  ], ArsSaleProcessAdditionalContactDto.prototype, "lastName", void 0);
40
41
  __decorate([
41
- (0, class_validator_1.IsEnum)(constants_1.AdditionalContactRoleType),
42
+ (0, class_validator_1.IsEnum)(customer_1.CustomerAccountAdditionalContactRelatedPartyRoleType),
42
43
  __metadata("design:type", String)
43
44
  ], ArsSaleProcessAdditionalContactDto.prototype, "role", void 0);
44
45
  __decorate([
@@ -52,7 +53,7 @@ __decorate([
52
53
  ], ArsSaleProcessAdditionalContactDto.prototype, "contactMediums", void 0);
53
54
  class ArsSaleProcessAdditionalContactMediumDto {
54
55
  static _OPENAPI_METADATA_FACTORY() {
55
- return { id: { required: false, type: () => String }, type: { required: true, enum: require("../../../../zoho/constants/zoho.constants").AdditionalContactMediumType }, value: { required: true, type: () => String }, preferred: { required: true, type: () => Boolean } };
56
+ return { id: { required: false, type: () => String }, type: { required: true, type: () => Object }, value: { required: true, type: () => String }, preferred: { required: true, type: () => Boolean } };
56
57
  }
57
58
  }
58
59
  exports.ArsSaleProcessAdditionalContactMediumDto = ArsSaleProcessAdditionalContactMediumDto;
@@ -62,7 +63,7 @@ __decorate([
62
63
  __metadata("design:type", String)
63
64
  ], ArsSaleProcessAdditionalContactMediumDto.prototype, "id", void 0);
64
65
  __decorate([
65
- (0, class_validator_1.IsEnum)(constants_1.AdditionalContactMediumType),
66
+ (0, class_validator_1.IsEnum)(customer_1.CustomerAccountAdditionalContactContactMediumType),
66
67
  __metadata("design:type", String)
67
68
  ], ArsSaleProcessAdditionalContactMediumDto.prototype, "type", void 0);
68
69
  __decorate([
@@ -15,3 +15,4 @@ export declare function fakerCommerceProductNameAndKey(): {
15
15
  };
16
16
  export declare function fakerNumericStringLen(length: number): string;
17
17
  export declare function fakerCustomerId(): string;
18
+ export declare function pickConst<T extends Record<string, string>, K extends readonly (keyof T)[]>(obj: T, keys: K): Pick<T, K[number]>;
@@ -5,6 +5,7 @@ exports.invertEnum = invertEnum;
5
5
  exports.fakerCommerceProductNameAndKey = fakerCommerceProductNameAndKey;
6
6
  exports.fakerNumericStringLen = fakerNumericStringLen;
7
7
  exports.fakerCustomerId = fakerCustomerId;
8
+ exports.pickConst = pickConst;
8
9
  const faker_1 = require("@faker-js/faker");
9
10
  function invertEnum({ enumObject }) {
10
11
  const enumInvertdEntries = Object.entries(enumObject).reduce((acc, enumItem) => {
@@ -45,3 +46,6 @@ function fakerNumericStringLen(length) {
45
46
  function fakerCustomerId() {
46
47
  return fakerNumericStringLen(10);
47
48
  }
49
+ function pickConst(obj, keys) {
50
+ return Object.fromEntries(keys.map((k) => [k, obj[k]]));
51
+ }
@@ -0,0 +1,7 @@
1
+ export declare class BatchProcessDefinitionEntity {
2
+ id: number;
3
+ description: string;
4
+ config?: any;
5
+ emails: any;
6
+ createdAt: Date;
7
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BatchProcessDefinitionEntity = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const typeorm_1 = require("typeorm");
15
+ let BatchProcessDefinitionEntity = class BatchProcessDefinitionEntity {
16
+ static _OPENAPI_METADATA_FACTORY() {
17
+ return { id: { required: true, type: () => Number }, description: { required: true, type: () => String }, config: { required: false, type: () => Object }, emails: { required: true, type: () => Object }, createdAt: { required: true, type: () => Date } };
18
+ }
19
+ };
20
+ exports.BatchProcessDefinitionEntity = BatchProcessDefinitionEntity;
21
+ __decorate([
22
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
23
+ __metadata("design:type", Number)
24
+ ], BatchProcessDefinitionEntity.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
27
+ __metadata("design:type", String)
28
+ ], BatchProcessDefinitionEntity.prototype, "description", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'json', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], BatchProcessDefinitionEntity.prototype, "config", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'json', nullable: false }),
35
+ __metadata("design:type", Object)
36
+ ], BatchProcessDefinitionEntity.prototype, "emails", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }),
39
+ __metadata("design:type", Date)
40
+ ], BatchProcessDefinitionEntity.prototype, "createdAt", void 0);
41
+ exports.BatchProcessDefinitionEntity = BatchProcessDefinitionEntity = __decorate([
42
+ (0, typeorm_1.Entity)({ name: 'batch-process-definition' })
43
+ ], BatchProcessDefinitionEntity);
@@ -3,6 +3,7 @@ export * from './aggrupations-consent-data.entity';
3
3
  export * from './aggrupations-file.entity';
4
4
  export * from './aggrupations-transactions.entity';
5
5
  export * from './apartment-whitelist.entity';
6
+ export * from './batch-process-definition.entity';
6
7
  export * from './bundle-products.entity';
7
8
  export * from './bundle-type-configuration.entity';
8
9
  export * from './configuration.entity';
@@ -19,6 +19,7 @@ __exportStar(require("./aggrupations-consent-data.entity"), exports);
19
19
  __exportStar(require("./aggrupations-file.entity"), exports);
20
20
  __exportStar(require("./aggrupations-transactions.entity"), exports);
21
21
  __exportStar(require("./apartment-whitelist.entity"), exports);
22
+ __exportStar(require("./batch-process-definition.entity"), exports);
22
23
  __exportStar(require("./bundle-products.entity"), exports);
23
24
  __exportStar(require("./bundle-type-configuration.entity"), exports);
24
25
  __exportStar(require("./configuration.entity"), exports);
@@ -0,0 +1,8 @@
1
+ import { AuditFieldsDto } from '../common';
2
+ export declare class BatchProcessDefinitionDto {
3
+ id: number;
4
+ description: string;
5
+ config?: any;
6
+ emails: string[];
7
+ created?: AuditFieldsDto;
8
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchProcessDefinitionDto = void 0;
4
+ const openapi = require("@nestjs/swagger");
5
+ class BatchProcessDefinitionDto {
6
+ static _OPENAPI_METADATA_FACTORY() {
7
+ return { id: { required: true, type: () => Number }, description: { required: true, type: () => String }, config: { required: false, type: () => Object }, emails: { required: true, type: () => [String] }, created: { required: false, type: () => require("../common/common.entity").AuditFieldsDto } };
8
+ }
9
+ }
10
+ exports.BatchProcessDefinitionDto = BatchProcessDefinitionDto;
@@ -0,0 +1 @@
1
+ export * from './batch-process-definition.entity';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./batch-process-definition.entity"), exports);
@@ -1,10 +1,10 @@
1
- import { BpAccountPreferredLanguageType, BpAccountStateType, BpCustomerAccountBusinessSegmentType, BpCustomerAccountIdentificationType, BpCustomerAccountIndividualTitleType, BpCustomerAccountPreferredContactTimeType, BpPartyType, BpRelatedPartyRoleType, BpTimezoneType, BpCustomerAccountDocumentType } from '../../bss/constants';
1
+ import { BpAccountPreferredLanguageType, BpAccountStateType, BpCustomerAccountBusinessSegmentType, BpCustomerAccountIdentificationType, BpCustomerAccountIndividualTitleType, BpCustomerAccountPreferredContactTimeType, BpPartyType, BpTimezoneType, BpCustomerAccountDocumentType } from '../../bss/constants';
2
2
  import { Builder } from '../../common/helpers/helpers';
3
3
  import { BusinessCustomerType, CustomerType } from '../../common/constants';
4
- import { CustomerAccountContactMediumType } from './customer.constants';
4
+ import { CustomerAccountContactMediumType, CustomerAccountRelatedPartyRoleType } from './customer.constants';
5
5
  export declare class CustomerAccountPartyRelatedPartyRelationshipDto {
6
6
  party: string;
7
- role: BpRelatedPartyRoleType;
7
+ role: CustomerAccountRelatedPartyRoleType;
8
8
  type: BpPartyType;
9
9
  primary: boolean;
10
10
  }
@@ -52,7 +52,7 @@ export declare class CustomerAccountContactMediumDto {
52
52
  }
53
53
  export declare class CustomerAccountPartyRelatedEntityRelationshipDto {
54
54
  entity: string;
55
- role: BpRelatedPartyRoleType;
55
+ role: CustomerAccountRelatedPartyRoleType;
56
56
  }
57
57
  export declare class CustomerAccountIndividualDto {
58
58
  id: string;
@@ -5,9 +5,39 @@ export declare enum CustomerProductInstanceAction {
5
5
  SWAP = "SWAP",
6
6
  MAKE_PRINCIPAL = "MAKE_PRINCIPAL"
7
7
  }
8
- export declare enum CustomerAccountContactMediumType {
9
- MOBILE = "MOBILE",
10
- FIXED_LINE = "FIXED_LINE",
11
- EMAIL = "EMAIL",
12
- POSTAL_ADDRESS = "POSTAL_ADDRESS"
13
- }
8
+ export declare const CustomerAccountRelatedPartyRoleType: {
9
+ readonly CUSTOMER_ACCOUNT_OWNER: "CUSTOMER_ACCOUNT_OWNER";
10
+ readonly CUSTOMER_ACCOUNT_CONTACT: "CUSTOMER_ACCOUNT_CONTACT";
11
+ readonly ORGANIZATION_CONTACT: "ORGANIZATION_CONTACT";
12
+ readonly LEGAL_REPRESENTATIVE: "LEGAL_REPRESENTATIVE";
13
+ readonly INVOICE: "INVOICE";
14
+ readonly TECH: "TECH";
15
+ readonly OTHERS: "OTHERS";
16
+ readonly UNKNOWN: "UNKNOWN";
17
+ };
18
+ export type CustomerAccountRelatedPartyRoleType = (typeof CustomerAccountRelatedPartyRoleType)[keyof typeof CustomerAccountRelatedPartyRoleType];
19
+ export declare const CustomerAccountAdditionalContactRelatedPartyRoleType: Pick<{
20
+ readonly CUSTOMER_ACCOUNT_OWNER: "CUSTOMER_ACCOUNT_OWNER";
21
+ readonly CUSTOMER_ACCOUNT_CONTACT: "CUSTOMER_ACCOUNT_CONTACT";
22
+ readonly ORGANIZATION_CONTACT: "ORGANIZATION_CONTACT";
23
+ readonly LEGAL_REPRESENTATIVE: "LEGAL_REPRESENTATIVE";
24
+ readonly INVOICE: "INVOICE";
25
+ readonly TECH: "TECH";
26
+ readonly OTHERS: "OTHERS";
27
+ readonly UNKNOWN: "UNKNOWN";
28
+ }, "CUSTOMER_ACCOUNT_CONTACT" | "LEGAL_REPRESENTATIVE" | "INVOICE" | "TECH" | "OTHERS">;
29
+ export type CustomerAccountAdditionalContactRelatedPartyRoleType = (typeof CustomerAccountAdditionalContactRelatedPartyRoleType)[keyof typeof CustomerAccountAdditionalContactRelatedPartyRoleType];
30
+ export declare const CustomerAccountContactMediumType: {
31
+ readonly MOBILE: "MOBILE";
32
+ readonly FIXED_LINE: "FIXED_LINE";
33
+ readonly EMAIL: "EMAIL";
34
+ readonly POSTAL_ADDRESS: "POSTAL_ADDRESS";
35
+ };
36
+ export type CustomerAccountContactMediumType = (typeof CustomerAccountContactMediumType)[keyof typeof CustomerAccountContactMediumType];
37
+ export declare const CustomerAccountAdditionalContactContactMediumType: Pick<{
38
+ readonly MOBILE: "MOBILE";
39
+ readonly FIXED_LINE: "FIXED_LINE";
40
+ readonly EMAIL: "EMAIL";
41
+ readonly POSTAL_ADDRESS: "POSTAL_ADDRESS";
42
+ }, "MOBILE" | "FIXED_LINE" | "EMAIL">;
43
+ export type CustomerAccountAdditionalContactContactMediumType = (typeof CustomerAccountAdditionalContactContactMediumType)[keyof typeof CustomerAccountAdditionalContactContactMediumType];
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomerAccountContactMediumType = exports.CustomerProductInstanceAction = void 0;
3
+ exports.CustomerAccountAdditionalContactContactMediumType = exports.CustomerAccountContactMediumType = exports.CustomerAccountAdditionalContactRelatedPartyRoleType = exports.CustomerAccountRelatedPartyRoleType = exports.CustomerProductInstanceAction = void 0;
4
+ const helpers_1 = require("../../common/helpers/helpers");
4
5
  var CustomerProductInstanceAction;
5
6
  (function (CustomerProductInstanceAction) {
6
7
  CustomerProductInstanceAction["ADD"] = "ADD";
@@ -9,10 +10,27 @@ var CustomerProductInstanceAction;
9
10
  CustomerProductInstanceAction["SWAP"] = "SWAP";
10
11
  CustomerProductInstanceAction["MAKE_PRINCIPAL"] = "MAKE_PRINCIPAL";
11
12
  })(CustomerProductInstanceAction || (exports.CustomerProductInstanceAction = CustomerProductInstanceAction = {}));
12
- var CustomerAccountContactMediumType;
13
- (function (CustomerAccountContactMediumType) {
14
- CustomerAccountContactMediumType["MOBILE"] = "MOBILE";
15
- CustomerAccountContactMediumType["FIXED_LINE"] = "FIXED_LINE";
16
- CustomerAccountContactMediumType["EMAIL"] = "EMAIL";
17
- CustomerAccountContactMediumType["POSTAL_ADDRESS"] = "POSTAL_ADDRESS";
18
- })(CustomerAccountContactMediumType || (exports.CustomerAccountContactMediumType = CustomerAccountContactMediumType = {}));
13
+ exports.CustomerAccountRelatedPartyRoleType = {
14
+ CUSTOMER_ACCOUNT_OWNER: 'CUSTOMER_ACCOUNT_OWNER',
15
+ CUSTOMER_ACCOUNT_CONTACT: 'CUSTOMER_ACCOUNT_CONTACT',
16
+ ORGANIZATION_CONTACT: 'ORGANIZATION_CONTACT',
17
+ LEGAL_REPRESENTATIVE: 'LEGAL_REPRESENTATIVE',
18
+ INVOICE: 'INVOICE',
19
+ TECH: 'TECH',
20
+ OTHERS: 'OTHERS',
21
+ UNKNOWN: 'UNKNOWN'
22
+ };
23
+ exports.CustomerAccountAdditionalContactRelatedPartyRoleType = (0, helpers_1.pickConst)(exports.CustomerAccountRelatedPartyRoleType, [
24
+ 'CUSTOMER_ACCOUNT_CONTACT',
25
+ 'INVOICE',
26
+ 'LEGAL_REPRESENTATIVE',
27
+ 'OTHERS',
28
+ 'TECH'
29
+ ]);
30
+ exports.CustomerAccountContactMediumType = {
31
+ MOBILE: 'MOBILE',
32
+ FIXED_LINE: 'FIXED_LINE',
33
+ EMAIL: 'EMAIL',
34
+ POSTAL_ADDRESS: 'POSTAL_ADDRESS'
35
+ };
36
+ exports.CustomerAccountAdditionalContactContactMediumType = (0, helpers_1.pickConst)(exports.CustomerAccountContactMediumType, ['EMAIL', 'FIXED_LINE', 'MOBILE']);