adamo-types 2.0.96-sit → 2.0.97-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.
@@ -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) {
@@ -1,4 +1,5 @@
1
- import { AdditionalContactMediumType, PaginateSortType } from './constants';
1
+ import { PaginateSortType } from './constants';
2
+ import { CustomerAccountAdditionalContactContactMediumType } from '../sys03/customer';
2
3
  export interface AuthTokenData {
3
4
  access_token: string;
4
5
  expires_in: number;
@@ -14,7 +15,7 @@ export declare class PaginationQueryDto {
14
15
  limit?: number;
15
16
  }
16
17
  export interface AdditionalContactMediumTypeProp {
17
- type: AdditionalContactMediumType;
18
+ type: CustomerAccountAdditionalContactContactMediumType;
18
19
  }
19
20
  export interface AdditionalContactMediumValueProp {
20
21
  value: string;
@@ -126,18 +126,6 @@ export declare enum FeatureGroupType {
126
126
  INSTALLATION_COST = "INSTALLATION_COST"
127
127
  }
128
128
  export declare const KNOWN_ERRORS: Record<string, string>;
129
- export declare enum AdditionalContactRoleType {
130
- CUSTOMER_ACCOUNT_CONTACT = "CUSTOMER_ACCOUNT_CONTACT",
131
- LEGAL_REPRESENTATIVE = "LEGAL_REPRESENTATIVE",
132
- INVOICE = "INVOICE",
133
- TECH = "TECH",
134
- OTHERS = "OTHERS"
135
- }
136
- export declare enum AdditionalContactMediumType {
137
- FIXED_LINE = "FIXED_LINE",
138
- MOBILE = "MOBILE",
139
- EMAIL = "EMAIL"
140
- }
141
129
  export declare enum PaginateSortType {
142
130
  ASC = "ASC",
143
131
  DESC = "DESC"
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaginateSortType = exports.AdditionalContactMediumType = exports.AdditionalContactRoleType = 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) {
@@ -156,20 +156,6 @@ exports.KNOWN_ERRORS = {
156
156
  ER_DUP_ENTRY: error_constants_1.E_DUPLICATE_ENTRY,
157
157
  ER_NO_REFERENCED_ROW_2: error_constants_1.E_ENTRY_FOREIGN_KEY_CONSTRAINT
158
158
  };
159
- var AdditionalContactRoleType;
160
- (function (AdditionalContactRoleType) {
161
- AdditionalContactRoleType["CUSTOMER_ACCOUNT_CONTACT"] = "CUSTOMER_ACCOUNT_CONTACT";
162
- AdditionalContactRoleType["LEGAL_REPRESENTATIVE"] = "LEGAL_REPRESENTATIVE";
163
- AdditionalContactRoleType["INVOICE"] = "INVOICE";
164
- AdditionalContactRoleType["TECH"] = "TECH";
165
- AdditionalContactRoleType["OTHERS"] = "OTHERS";
166
- })(AdditionalContactRoleType || (exports.AdditionalContactRoleType = AdditionalContactRoleType = {}));
167
- var AdditionalContactMediumType;
168
- (function (AdditionalContactMediumType) {
169
- AdditionalContactMediumType["FIXED_LINE"] = "FIXED_LINE";
170
- AdditionalContactMediumType["MOBILE"] = "MOBILE";
171
- AdditionalContactMediumType["EMAIL"] = "EMAIL";
172
- })(AdditionalContactMediumType || (exports.AdditionalContactMediumType = AdditionalContactMediumType = {}));
173
159
  var PaginateSortType;
174
160
  (function (PaginateSortType) {
175
161
  PaginateSortType["ASC"] = "ASC";
@@ -1,17 +1,17 @@
1
1
  import { SaleProcessCallType } from '../../../../zoho/constants';
2
2
  import { UtmDto } from '../../../../zoho/sale-process';
3
- import { AdditionalContactMediumType, AdditionalContactRoleType } from '../../../constants';
4
3
  import { AdditionalContactMediumPreferredProp, AdditionalContactMediumTypeProp, AdditionalContactMediumValueProp } from '../../../common.entity';
4
+ import { CustomerAccountAdditionalContactContactMediumType, CustomerAccountAdditionalContactRelatedPartyRoleType } from '../../../../sys03/customer';
5
5
  export declare class ArsSaleProcessAdditionalContactDto {
6
6
  partyId?: string;
7
7
  firstName: string;
8
8
  lastName: string;
9
- role: AdditionalContactRoleType;
9
+ role: CustomerAccountAdditionalContactRelatedPartyRoleType;
10
10
  contactMediums: ArsSaleProcessAdditionalContactMediumDto[];
11
11
  }
12
12
  export declare class ArsSaleProcessAdditionalContactMediumDto implements AdditionalContactMediumTypeProp, AdditionalContactMediumValueProp, AdditionalContactMediumPreferredProp {
13
13
  id?: string;
14
- type: AdditionalContactMediumType;
14
+ type: CustomerAccountAdditionalContactContactMediumType;
15
15
  value: string;
16
16
  preferred: boolean;
17
17
  }
@@ -15,10 +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 constants_2 = require("../../../constants");
18
+ const customer_1 = require("../../../../sys03/customer");
19
19
  class ArsSaleProcessAdditionalContactDto {
20
20
  static _OPENAPI_METADATA_FACTORY() {
21
- return { partyId: { required: false, type: () => String }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, enum: require("../../../constants/common.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 } };
22
22
  }
23
23
  }
24
24
  exports.ArsSaleProcessAdditionalContactDto = ArsSaleProcessAdditionalContactDto;
@@ -39,7 +39,7 @@ __decorate([
39
39
  __metadata("design:type", String)
40
40
  ], ArsSaleProcessAdditionalContactDto.prototype, "lastName", void 0);
41
41
  __decorate([
42
- (0, class_validator_1.IsEnum)(constants_2.AdditionalContactRoleType),
42
+ (0, class_validator_1.IsEnum)(customer_1.CustomerAccountAdditionalContactRelatedPartyRoleType),
43
43
  __metadata("design:type", String)
44
44
  ], ArsSaleProcessAdditionalContactDto.prototype, "role", void 0);
45
45
  __decorate([
@@ -53,7 +53,7 @@ __decorate([
53
53
  ], ArsSaleProcessAdditionalContactDto.prototype, "contactMediums", void 0);
54
54
  class ArsSaleProcessAdditionalContactMediumDto {
55
55
  static _OPENAPI_METADATA_FACTORY() {
56
- return { id: { required: false, type: () => String }, type: { required: true, enum: require("../../../constants/common.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 } };
57
57
  }
58
58
  }
59
59
  exports.ArsSaleProcessAdditionalContactMediumDto = ArsSaleProcessAdditionalContactMediumDto;
@@ -63,7 +63,7 @@ __decorate([
63
63
  __metadata("design:type", String)
64
64
  ], ArsSaleProcessAdditionalContactMediumDto.prototype, "id", void 0);
65
65
  __decorate([
66
- (0, class_validator_1.IsEnum)(constants_2.AdditionalContactMediumType),
66
+ (0, class_validator_1.IsEnum)(customer_1.CustomerAccountAdditionalContactContactMediumType),
67
67
  __metadata("design:type", String)
68
68
  ], ArsSaleProcessAdditionalContactMediumDto.prototype, "type", void 0);
69
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
+ }
@@ -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']);
@@ -1,11 +1,11 @@
1
1
  import { AdditionalContactMediumPreferredProp, AdditionalContactMediumTypeProp, AdditionalContactMediumValueProp } from '../../common/common.entity';
2
- import { AdditionalContactMediumType, AdditionalContactRoleType } from '../../common/constants';
3
2
  import { AuditFieldsDto } from '../common';
3
+ import { CustomerAccountAdditionalContactContactMediumType, CustomerAccountAdditionalContactRelatedPartyRoleType } from '../customer/customer.constants';
4
4
  export declare class CustomerHandoverProcessAdditionalContactMediumDto implements AdditionalContactMediumTypeProp, AdditionalContactMediumValueProp, AdditionalContactMediumPreferredProp {
5
5
  id: number;
6
6
  customerHandoverProcessAdditionalContactId: number;
7
7
  preferred: boolean;
8
- type: AdditionalContactMediumType;
8
+ type: CustomerAccountAdditionalContactContactMediumType;
9
9
  value: string;
10
10
  created?: AuditFieldsDto;
11
11
  updated?: AuditFieldsDto;
@@ -16,7 +16,7 @@ export declare class CustomerHandoverProcessAdditionalContactDto {
16
16
  partyId?: string;
17
17
  firstName: string;
18
18
  lastName: string;
19
- role: AdditionalContactRoleType;
19
+ role: CustomerAccountAdditionalContactRelatedPartyRoleType;
20
20
  contactMediums?: CustomerHandoverProcessAdditionalContactMediumDto[];
21
21
  created?: AuditFieldsDto;
22
22
  updated?: AuditFieldsDto;
@@ -29,7 +29,7 @@ export declare class CreateCustomerHandoverProcessAdditionalContactDto extends C
29
29
  contactMediums: CreateCustomerHandoverProcessAdditionalContactMediumDto[];
30
30
  }
31
31
  export declare class CreateCustomerHandoverProducessAddicionalContactMediumReqDto implements AdditionalContactMediumTypeProp, AdditionalContactMediumValueProp, AdditionalContactMediumPreferredProp {
32
- type: AdditionalContactMediumType;
32
+ type: CustomerAccountAdditionalContactContactMediumType;
33
33
  value: string;
34
34
  preferred: boolean;
35
35
  }
@@ -37,7 +37,7 @@ export declare class CreateCustomerHandoverProcessAdditionalContactReqDto {
37
37
  customerHandoverProcessId: number;
38
38
  firstName: string;
39
39
  lastName: string;
40
- role: AdditionalContactRoleType;
40
+ role: CustomerAccountAdditionalContactRelatedPartyRoleType;
41
41
  contactMediums: CreateCustomerHandoverProducessAddicionalContactMediumReqDto[];
42
42
  }
43
43
  declare const PatchCustomerHandoverProcessAdditionalContactMediumDto_base: import("@nestjs/common").Type<Partial<Omit<CustomerHandoverProcessAdditionalContactMediumDto, "created" | "customerHandoverProcessAdditionalContactId">>>;
@@ -49,14 +49,14 @@ export declare class PatchCustomerHandoverProcessAdditionalContactDto extends Pa
49
49
  }
50
50
  export declare class PutCustomerHandoverProducessAddicionalContactMediumReqDto implements AdditionalContactMediumTypeProp, AdditionalContactMediumValueProp {
51
51
  id?: number;
52
- type: AdditionalContactMediumType;
52
+ type: CustomerAccountAdditionalContactContactMediumType;
53
53
  value: string;
54
54
  preferred: boolean;
55
55
  }
56
56
  export declare class PutCustomerHandoverProcessAdditionalContactReqDto {
57
57
  firstName: string;
58
58
  lastName: string;
59
- role: AdditionalContactRoleType;
59
+ role: CustomerAccountAdditionalContactRelatedPartyRoleType;
60
60
  contactMediums: PutCustomerHandoverProducessAddicionalContactMediumReqDto[];
61
61
  }
62
62
  export {};
@@ -11,20 +11,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PutCustomerHandoverProcessAdditionalContactReqDto = exports.PutCustomerHandoverProducessAddicionalContactMediumReqDto = exports.PatchCustomerHandoverProcessAdditionalContactDto = exports.PatchCustomerHandoverProcessAdditionalContactMediumDto = exports.CreateCustomerHandoverProcessAdditionalContactReqDto = exports.CreateCustomerHandoverProducessAddicionalContactMediumReqDto = exports.CreateCustomerHandoverProcessAdditionalContactDto = exports.CreateCustomerHandoverProcessAdditionalContactMediumDto = exports.CustomerHandoverProcessAdditionalContactDto = exports.CustomerHandoverProcessAdditionalContactMediumDto = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
- const constants_1 = require("../../common/constants");
15
14
  const swagger_1 = require("@nestjs/swagger");
15
+ const customer_constants_1 = require("../customer/customer.constants");
16
16
  const _validators_1 = require("../../validators/index");
17
17
  const class_transformer_1 = require("class-transformer");
18
18
  const class_validator_1 = require("class-validator");
19
19
  class CustomerHandoverProcessAdditionalContactMediumDto {
20
20
  static _OPENAPI_METADATA_FACTORY() {
21
- return { id: { required: true, type: () => Number }, customerHandoverProcessAdditionalContactId: { required: true, type: () => Number }, preferred: { required: true, type: () => Boolean }, type: { required: true, enum: require("../../common/constants/common.constants").AdditionalContactMediumType }, value: { required: true, type: () => String }, created: { required: false, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: false, type: () => require("../common/common.entity").AuditFieldsDto } };
21
+ return { id: { required: true, type: () => Number }, customerHandoverProcessAdditionalContactId: { required: true, type: () => Number }, preferred: { required: true, type: () => Boolean }, type: { required: true, type: () => Object }, value: { required: true, type: () => String }, created: { required: false, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: false, type: () => require("../common/common.entity").AuditFieldsDto } };
22
22
  }
23
23
  }
24
24
  exports.CustomerHandoverProcessAdditionalContactMediumDto = CustomerHandoverProcessAdditionalContactMediumDto;
25
25
  class CustomerHandoverProcessAdditionalContactDto {
26
26
  static _OPENAPI_METADATA_FACTORY() {
27
- return { id: { required: true, type: () => Number }, customerHandoverProcessId: { required: true, type: () => Number }, partyId: { required: false, type: () => String }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, enum: require("../../common/constants/common.constants").AdditionalContactRoleType }, contactMediums: { required: false, type: () => [require("./customer-handover-process-additional-contact.entity").CustomerHandoverProcessAdditionalContactMediumDto] }, created: { required: false, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: false, type: () => require("../common/common.entity").AuditFieldsDto } };
27
+ return { id: { required: true, type: () => Number }, customerHandoverProcessId: { required: true, type: () => Number }, partyId: { required: false, type: () => String }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, type: () => Object }, contactMediums: { required: false, type: () => [require("./customer-handover-process-additional-contact.entity").CustomerHandoverProcessAdditionalContactMediumDto] }, created: { required: false, type: () => require("../common/common.entity").AuditFieldsDto }, updated: { required: false, type: () => require("../common/common.entity").AuditFieldsDto } };
28
28
  }
29
29
  }
30
30
  exports.CustomerHandoverProcessAdditionalContactDto = CustomerHandoverProcessAdditionalContactDto;
@@ -52,12 +52,12 @@ class CreateCustomerHandoverProcessAdditionalContactDto extends (0, swagger_1.Om
52
52
  exports.CreateCustomerHandoverProcessAdditionalContactDto = CreateCustomerHandoverProcessAdditionalContactDto;
53
53
  class CreateCustomerHandoverProducessAddicionalContactMediumReqDto {
54
54
  static _OPENAPI_METADATA_FACTORY() {
55
- return { type: { required: true, enum: require("../../common/constants/common.constants").AdditionalContactMediumType }, value: { required: true, type: () => String }, preferred: { required: true, type: () => Boolean } };
55
+ return { type: { required: true, type: () => Object }, value: { required: true, type: () => String }, preferred: { required: true, type: () => Boolean } };
56
56
  }
57
57
  }
58
58
  exports.CreateCustomerHandoverProducessAddicionalContactMediumReqDto = CreateCustomerHandoverProducessAddicionalContactMediumReqDto;
59
59
  __decorate([
60
- (0, class_validator_1.IsEnum)(constants_1.AdditionalContactMediumType),
60
+ (0, class_validator_1.IsEnum)(customer_constants_1.CustomerAccountAdditionalContactContactMediumType),
61
61
  __metadata("design:type", String)
62
62
  ], CreateCustomerHandoverProducessAddicionalContactMediumReqDto.prototype, "type", void 0);
63
63
  __decorate([
@@ -72,7 +72,7 @@ __decorate([
72
72
  ], CreateCustomerHandoverProducessAddicionalContactMediumReqDto.prototype, "preferred", void 0);
73
73
  class CreateCustomerHandoverProcessAdditionalContactReqDto {
74
74
  static _OPENAPI_METADATA_FACTORY() {
75
- return { customerHandoverProcessId: { required: true, type: () => Number }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, enum: require("../../common/constants/common.constants").AdditionalContactRoleType }, contactMediums: { required: true, type: () => [require("./customer-handover-process-additional-contact.entity").CreateCustomerHandoverProducessAddicionalContactMediumReqDto], minItems: 1, maxItems: 6 } };
75
+ return { customerHandoverProcessId: { required: true, type: () => Number }, firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, type: () => Object }, contactMediums: { required: true, type: () => [require("./customer-handover-process-additional-contact.entity").CreateCustomerHandoverProducessAddicionalContactMediumReqDto], minItems: 1, maxItems: 6 } };
76
76
  }
77
77
  }
78
78
  exports.CreateCustomerHandoverProcessAdditionalContactReqDto = CreateCustomerHandoverProcessAdditionalContactReqDto;
@@ -93,7 +93,7 @@ __decorate([
93
93
  __metadata("design:type", String)
94
94
  ], CreateCustomerHandoverProcessAdditionalContactReqDto.prototype, "lastName", void 0);
95
95
  __decorate([
96
- (0, class_validator_1.IsEnum)(constants_1.AdditionalContactRoleType),
96
+ (0, class_validator_1.IsEnum)(customer_constants_1.CustomerAccountAdditionalContactRelatedPartyRoleType),
97
97
  __metadata("design:type", String)
98
98
  ], CreateCustomerHandoverProcessAdditionalContactReqDto.prototype, "role", void 0);
99
99
  __decorate([
@@ -118,7 +118,7 @@ class PatchCustomerHandoverProcessAdditionalContactDto extends (0, swagger_1.Par
118
118
  exports.PatchCustomerHandoverProcessAdditionalContactDto = PatchCustomerHandoverProcessAdditionalContactDto;
119
119
  class PutCustomerHandoverProducessAddicionalContactMediumReqDto {
120
120
  static _OPENAPI_METADATA_FACTORY() {
121
- return { id: { required: false, type: () => Number }, type: { required: true, enum: require("../../common/constants/common.constants").AdditionalContactMediumType }, value: { required: true, type: () => String }, preferred: { required: true, type: () => Boolean } };
121
+ return { id: { required: false, type: () => Number }, type: { required: true, type: () => Object }, value: { required: true, type: () => String }, preferred: { required: true, type: () => Boolean } };
122
122
  }
123
123
  }
124
124
  exports.PutCustomerHandoverProducessAddicionalContactMediumReqDto = PutCustomerHandoverProducessAddicionalContactMediumReqDto;
@@ -128,7 +128,7 @@ __decorate([
128
128
  __metadata("design:type", Number)
129
129
  ], PutCustomerHandoverProducessAddicionalContactMediumReqDto.prototype, "id", void 0);
130
130
  __decorate([
131
- (0, class_validator_1.IsEnum)(constants_1.AdditionalContactMediumType),
131
+ (0, class_validator_1.IsEnum)(customer_constants_1.CustomerAccountAdditionalContactContactMediumType),
132
132
  __metadata("design:type", String)
133
133
  ], PutCustomerHandoverProducessAddicionalContactMediumReqDto.prototype, "type", void 0);
134
134
  __decorate([
@@ -143,7 +143,7 @@ __decorate([
143
143
  ], PutCustomerHandoverProducessAddicionalContactMediumReqDto.prototype, "preferred", void 0);
144
144
  class PutCustomerHandoverProcessAdditionalContactReqDto {
145
145
  static _OPENAPI_METADATA_FACTORY() {
146
- return { firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, enum: require("../../common/constants/common.constants").AdditionalContactRoleType }, contactMediums: { required: true, type: () => [require("./customer-handover-process-additional-contact.entity").PutCustomerHandoverProducessAddicionalContactMediumReqDto], minItems: 1, maxItems: 6 } };
146
+ return { firstName: { required: true, type: () => String }, lastName: { required: true, type: () => String }, role: { required: true, type: () => Object }, contactMediums: { required: true, type: () => [require("./customer-handover-process-additional-contact.entity").PutCustomerHandoverProducessAddicionalContactMediumReqDto], minItems: 1, maxItems: 6 } };
147
147
  }
148
148
  }
149
149
  exports.PutCustomerHandoverProcessAdditionalContactReqDto = PutCustomerHandoverProcessAdditionalContactReqDto;
@@ -160,7 +160,7 @@ __decorate([
160
160
  __metadata("design:type", String)
161
161
  ], PutCustomerHandoverProcessAdditionalContactReqDto.prototype, "lastName", void 0);
162
162
  __decorate([
163
- (0, class_validator_1.IsEnum)(constants_1.AdditionalContactRoleType),
163
+ (0, class_validator_1.IsEnum)(customer_constants_1.CustomerAccountAdditionalContactRelatedPartyRoleType),
164
164
  __metadata("design:type", String)
165
165
  ], PutCustomerHandoverProcessAdditionalContactReqDto.prototype, "role", void 0);
166
166
  __decorate([