adamo-types 2.0.105-sit → 2.0.106-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.
@@ -1,8 +1,8 @@
1
1
  export * from './apartment-whitelist.entity';
2
2
  export * from './approval.entity';
3
+ export * from './lead-additional-contact.entity';
3
4
  export * from './lead-credit-bureau-validation.entity';
4
- export * from './lead-transactions.entity';
5
+ export * from './lead-file.entity';
6
+ export * from './lead-transaction.entity';
5
7
  export * from './lead.entity';
6
- export * from './leads-additional-contact.entity';
7
8
  export * from './leads-consent-data.entity';
8
- export * from './lead-file.entity';
@@ -16,9 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./apartment-whitelist.entity"), exports);
18
18
  __exportStar(require("./approval.entity"), exports);
19
+ __exportStar(require("./lead-additional-contact.entity"), exports);
19
20
  __exportStar(require("./lead-credit-bureau-validation.entity"), exports);
20
- __exportStar(require("./lead-transactions.entity"), exports);
21
+ __exportStar(require("./lead-file.entity"), exports);
22
+ __exportStar(require("./lead-transaction.entity"), exports);
21
23
  __exportStar(require("./lead.entity"), exports);
22
- __exportStar(require("./leads-additional-contact.entity"), exports);
23
24
  __exportStar(require("./leads-consent-data.entity"), exports);
24
- __exportStar(require("./lead-file.entity"), exports);
@@ -1,16 +1,16 @@
1
1
  import { LeadEntity } from './lead.entity';
2
- export declare class LeadsAdditionalContact {
2
+ export declare class LeadAdditionalContactEntity {
3
3
  id?: number;
4
4
  lead?: LeadEntity;
5
5
  partyId?: string;
6
6
  firstName?: string;
7
7
  lastName?: string;
8
8
  role?: string;
9
- contactMediums?: LeadsAdditionalContactMedium[];
9
+ contactMediums?: LeadAdditionalContactMediumEntity[];
10
10
  }
11
- export declare class LeadsAdditionalContactMedium {
11
+ export declare class LeadAdditionalContactMediumEntity {
12
12
  id?: number;
13
- leadAdditionalContact: LeadsAdditionalContact;
13
+ leadAdditionalContact: LeadAdditionalContactEntity;
14
14
  type: string;
15
15
  value: string;
16
16
  preferred: boolean;
@@ -9,73 +9,73 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LeadsAdditionalContactMedium = exports.LeadsAdditionalContact = void 0;
12
+ exports.LeadAdditionalContactMediumEntity = exports.LeadAdditionalContactEntity = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const lead_entity_1 = require("./lead.entity");
16
- let LeadsAdditionalContact = class LeadsAdditionalContact {
16
+ let LeadAdditionalContactEntity = class LeadAdditionalContactEntity {
17
17
  static _OPENAPI_METADATA_FACTORY() {
18
- return { id: { required: false, type: () => Number }, lead: { required: false, type: () => require("./lead.entity").LeadEntity }, partyId: { required: false, type: () => String }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, role: { required: false, type: () => String }, contactMediums: { required: false, type: () => [require("./leads-additional-contact.entity").LeadsAdditionalContactMedium] } };
18
+ return { id: { required: false, type: () => Number }, lead: { required: false, type: () => require("./lead.entity").LeadEntity }, partyId: { required: false, type: () => String }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, role: { required: false, type: () => String }, contactMediums: { required: false, type: () => [require("./lead-additional-contact.entity").LeadAdditionalContactMediumEntity] } };
19
19
  }
20
20
  };
21
- exports.LeadsAdditionalContact = LeadsAdditionalContact;
21
+ exports.LeadAdditionalContactEntity = LeadAdditionalContactEntity;
22
22
  __decorate([
23
23
  (0, typeorm_1.PrimaryGeneratedColumn)(),
24
24
  __metadata("design:type", Number)
25
- ], LeadsAdditionalContact.prototype, "id", void 0);
25
+ ], LeadAdditionalContactEntity.prototype, "id", void 0);
26
26
  __decorate([
27
27
  (0, typeorm_1.ManyToOne)(() => lead_entity_1.LeadEntity),
28
28
  (0, typeorm_1.JoinColumn)({ name: 'lead', referencedColumnName: 'id' }),
29
29
  __metadata("design:type", lead_entity_1.LeadEntity)
30
- ], LeadsAdditionalContact.prototype, "lead", void 0);
30
+ ], LeadAdditionalContactEntity.prototype, "lead", void 0);
31
31
  __decorate([
32
32
  (0, typeorm_1.Column)({ nullable: true }),
33
33
  __metadata("design:type", String)
34
- ], LeadsAdditionalContact.prototype, "partyId", void 0);
34
+ ], LeadAdditionalContactEntity.prototype, "partyId", void 0);
35
35
  __decorate([
36
36
  (0, typeorm_1.Column)({ nullable: false }),
37
37
  __metadata("design:type", String)
38
- ], LeadsAdditionalContact.prototype, "firstName", void 0);
38
+ ], LeadAdditionalContactEntity.prototype, "firstName", void 0);
39
39
  __decorate([
40
40
  (0, typeorm_1.Column)({ nullable: false }),
41
41
  __metadata("design:type", String)
42
- ], LeadsAdditionalContact.prototype, "lastName", void 0);
42
+ ], LeadAdditionalContactEntity.prototype, "lastName", void 0);
43
43
  __decorate([
44
44
  (0, typeorm_1.Column)({ nullable: false }),
45
45
  __metadata("design:type", String)
46
- ], LeadsAdditionalContact.prototype, "role", void 0);
46
+ ], LeadAdditionalContactEntity.prototype, "role", void 0);
47
47
  __decorate([
48
- (0, typeorm_1.OneToMany)(() => LeadsAdditionalContactMedium, (data) => data.leadAdditionalContact, {
48
+ (0, typeorm_1.OneToMany)(() => LeadAdditionalContactMediumEntity, (data) => data.leadAdditionalContact, {
49
49
  cascade: ['insert', 'update']
50
50
  }),
51
51
  __metadata("design:type", Array)
52
- ], LeadsAdditionalContact.prototype, "contactMediums", void 0);
53
- exports.LeadsAdditionalContact = LeadsAdditionalContact = __decorate([
52
+ ], LeadAdditionalContactEntity.prototype, "contactMediums", void 0);
53
+ exports.LeadAdditionalContactEntity = LeadAdditionalContactEntity = __decorate([
54
54
  (0, typeorm_1.Entity)({ name: 'leads-additional-contact' })
55
- ], LeadsAdditionalContact);
56
- let LeadsAdditionalContactMedium = class LeadsAdditionalContactMedium {
55
+ ], LeadAdditionalContactEntity);
56
+ let LeadAdditionalContactMediumEntity = class LeadAdditionalContactMediumEntity {
57
57
  static _OPENAPI_METADATA_FACTORY() {
58
- return { id: { required: false, type: () => Number }, leadAdditionalContact: { required: true, type: () => require("./leads-additional-contact.entity").LeadsAdditionalContact }, type: { required: true, type: () => String }, value: { required: true, type: () => String }, preferred: { required: true, type: () => Boolean } };
58
+ return { id: { required: false, type: () => Number }, leadAdditionalContact: { required: true, type: () => require("./lead-additional-contact.entity").LeadAdditionalContactEntity }, type: { required: true, type: () => String }, value: { required: true, type: () => String }, preferred: { required: true, type: () => Boolean } };
59
59
  }
60
60
  };
61
- exports.LeadsAdditionalContactMedium = LeadsAdditionalContactMedium;
61
+ exports.LeadAdditionalContactMediumEntity = LeadAdditionalContactMediumEntity;
62
62
  __decorate([
63
63
  (0, typeorm_1.PrimaryGeneratedColumn)(),
64
64
  __metadata("design:type", Number)
65
- ], LeadsAdditionalContactMedium.prototype, "id", void 0);
65
+ ], LeadAdditionalContactMediumEntity.prototype, "id", void 0);
66
66
  __decorate([
67
- (0, typeorm_1.ManyToOne)(() => LeadsAdditionalContact),
67
+ (0, typeorm_1.ManyToOne)(() => LeadAdditionalContactEntity),
68
68
  (0, typeorm_1.JoinColumn)({ name: 'leadAdditionalContact', referencedColumnName: 'id' }),
69
- __metadata("design:type", LeadsAdditionalContact)
70
- ], LeadsAdditionalContactMedium.prototype, "leadAdditionalContact", void 0);
69
+ __metadata("design:type", LeadAdditionalContactEntity)
70
+ ], LeadAdditionalContactMediumEntity.prototype, "leadAdditionalContact", void 0);
71
71
  __decorate([
72
72
  (0, typeorm_1.Column)({ nullable: false }),
73
73
  __metadata("design:type", String)
74
- ], LeadsAdditionalContactMedium.prototype, "type", void 0);
74
+ ], LeadAdditionalContactMediumEntity.prototype, "type", void 0);
75
75
  __decorate([
76
76
  (0, typeorm_1.Column)({ nullable: false }),
77
77
  __metadata("design:type", String)
78
- ], LeadsAdditionalContactMedium.prototype, "value", void 0);
78
+ ], LeadAdditionalContactMediumEntity.prototype, "value", void 0);
79
79
  __decorate([
80
80
  (0, typeorm_1.Column)({
81
81
  default: 0,
@@ -90,7 +90,7 @@ __decorate([
90
90
  }
91
91
  }),
92
92
  __metadata("design:type", Boolean)
93
- ], LeadsAdditionalContactMedium.prototype, "preferred", void 0);
94
- exports.LeadsAdditionalContactMedium = LeadsAdditionalContactMedium = __decorate([
93
+ ], LeadAdditionalContactMediumEntity.prototype, "preferred", void 0);
94
+ exports.LeadAdditionalContactMediumEntity = LeadAdditionalContactMediumEntity = __decorate([
95
95
  (0, typeorm_1.Entity)({ name: 'leads-additional-contact-medium' })
96
- ], LeadsAdditionalContactMedium);
96
+ ], LeadAdditionalContactMediumEntity);
@@ -1,5 +1,5 @@
1
1
  import { LeadEntity } from './lead.entity';
2
- export declare class LeadTransaction {
2
+ export declare class LeadTransactionEntity {
3
3
  id?: number;
4
4
  lead?: LeadEntity;
5
5
  dtsTransactionId?: string;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LeadTransaction = void 0;
12
+ exports.LeadTransactionEntity = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
14
  const PrimaryGeneratedColumn_1 = require("typeorm/decorator/columns/PrimaryGeneratedColumn");
15
15
  const Entity_1 = require("typeorm/decorator/entity/Entity");
@@ -17,41 +17,41 @@ const lead_entity_1 = require("./lead.entity");
17
17
  const JoinColumn_1 = require("typeorm/decorator/relations/JoinColumn");
18
18
  const Column_1 = require("typeorm/decorator/columns/Column");
19
19
  const OneToOne_1 = require("typeorm/decorator/relations/OneToOne");
20
- let LeadTransaction = class LeadTransaction {
20
+ let LeadTransactionEntity = class LeadTransactionEntity {
21
21
  static _OPENAPI_METADATA_FACTORY() {
22
22
  return { id: { required: false, type: () => Number }, lead: { required: false, type: () => require("./lead.entity").LeadEntity }, dtsTransactionId: { required: false, type: () => String }, createdBy: { required: false, type: () => String }, createdAt: { required: false, type: () => Date }, updatedBy: { required: false, type: () => String }, updatedAt: { required: false, type: () => Date } };
23
23
  }
24
24
  };
25
- exports.LeadTransaction = LeadTransaction;
25
+ exports.LeadTransactionEntity = LeadTransactionEntity;
26
26
  __decorate([
27
27
  (0, PrimaryGeneratedColumn_1.PrimaryGeneratedColumn)(),
28
28
  __metadata("design:type", Number)
29
- ], LeadTransaction.prototype, "id", void 0);
29
+ ], LeadTransactionEntity.prototype, "id", void 0);
30
30
  __decorate([
31
31
  (0, OneToOne_1.OneToOne)(() => lead_entity_1.LeadEntity),
32
32
  (0, JoinColumn_1.JoinColumn)({ name: 'lead', referencedColumnName: 'id' }),
33
33
  __metadata("design:type", lead_entity_1.LeadEntity)
34
- ], LeadTransaction.prototype, "lead", void 0);
34
+ ], LeadTransactionEntity.prototype, "lead", void 0);
35
35
  __decorate([
36
36
  (0, Column_1.Column)({ nullable: false }),
37
37
  __metadata("design:type", String)
38
- ], LeadTransaction.prototype, "dtsTransactionId", void 0);
38
+ ], LeadTransactionEntity.prototype, "dtsTransactionId", void 0);
39
39
  __decorate([
40
40
  (0, Column_1.Column)({ nullable: true }),
41
41
  __metadata("design:type", String)
42
- ], LeadTransaction.prototype, "createdBy", void 0);
42
+ ], LeadTransactionEntity.prototype, "createdBy", void 0);
43
43
  __decorate([
44
44
  (0, Column_1.Column)({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }),
45
45
  __metadata("design:type", Date)
46
- ], LeadTransaction.prototype, "createdAt", void 0);
46
+ ], LeadTransactionEntity.prototype, "createdAt", void 0);
47
47
  __decorate([
48
48
  (0, Column_1.Column)({ nullable: true }),
49
49
  __metadata("design:type", String)
50
- ], LeadTransaction.prototype, "updatedBy", void 0);
50
+ ], LeadTransactionEntity.prototype, "updatedBy", void 0);
51
51
  __decorate([
52
52
  (0, Column_1.Column)({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP', onUpdate: 'CURRENT_TIMESTAMP' }),
53
53
  __metadata("design:type", Date)
54
- ], LeadTransaction.prototype, "updatedAt", void 0);
55
- exports.LeadTransaction = LeadTransaction = __decorate([
54
+ ], LeadTransactionEntity.prototype, "updatedAt", void 0);
55
+ exports.LeadTransactionEntity = LeadTransactionEntity = __decorate([
56
56
  (0, Entity_1.Entity)({ name: 'leads-transactions' })
57
- ], LeadTransaction);
57
+ ], LeadTransactionEntity);
@@ -1,4 +1,4 @@
1
- import { LeadsAdditionalContact } from './leads-additional-contact.entity';
1
+ import { LeadAdditionalContactEntity } from './lead-additional-contact.entity';
2
2
  import { LeadFileEntity } from './lead-file.entity';
3
3
  import { LeadsConsentData } from './leads-consent-data.entity';
4
4
  import { ApprovalEntity } from './approval.entity';
@@ -93,7 +93,7 @@ export declare class LeadEntity extends LeadColumns {
93
93
  data?: LeadDataEntity[];
94
94
  approvals?: ApprovalEntity[];
95
95
  files?: LeadFileEntity[];
96
- additionalContacts?: LeadsAdditionalContact[];
96
+ additionalContacts?: LeadAdditionalContactEntity[];
97
97
  consents?: LeadsConsentData[];
98
98
  }
99
99
  export type CreateLeadReferenceEntity = Pick<LeadEntity, 'id'>;
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.LeadDataZohoEntity = exports.SaleEntity = exports.LeadDataEntity = exports.LeadEntity = exports.LeadColumns = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
14
  const typeorm_1 = require("typeorm");
15
- const leads_additional_contact_entity_1 = require("./leads-additional-contact.entity");
15
+ const lead_additional_contact_entity_1 = require("./lead-additional-contact.entity");
16
16
  const lead_file_entity_1 = require("./lead-file.entity");
17
17
  const leads_consent_data_entity_1 = require("./leads-consent-data.entity");
18
18
  const approval_entity_1 = require("./approval.entity");
@@ -361,7 +361,7 @@ __decorate([
361
361
  ], LeadColumns.prototype, "updateByUserChannel", void 0);
362
362
  let LeadEntity = class LeadEntity extends LeadColumns {
363
363
  static _OPENAPI_METADATA_FACTORY() {
364
- return { data: { required: false, type: () => [require("./lead.entity").LeadDataEntity] }, approvals: { required: false, type: () => [require("./approval.entity").ApprovalEntity] }, files: { required: false, type: () => [require("./lead-file.entity").LeadFileEntity] }, additionalContacts: { required: false, type: () => [require("./leads-additional-contact.entity").LeadsAdditionalContact] }, consents: { required: false, type: () => [require("./leads-consent-data.entity").LeadsConsentData] } };
364
+ return { data: { required: false, type: () => [require("./lead.entity").LeadDataEntity] }, approvals: { required: false, type: () => [require("./approval.entity").ApprovalEntity] }, files: { required: false, type: () => [require("./lead-file.entity").LeadFileEntity] }, additionalContacts: { required: false, type: () => [require("./lead-additional-contact.entity").LeadAdditionalContactEntity] }, consents: { required: false, type: () => [require("./leads-consent-data.entity").LeadsConsentData] } };
365
365
  }
366
366
  };
367
367
  exports.LeadEntity = LeadEntity;
@@ -378,7 +378,7 @@ __decorate([
378
378
  __metadata("design:type", Array)
379
379
  ], LeadEntity.prototype, "files", void 0);
380
380
  __decorate([
381
- (0, typeorm_1.OneToMany)(() => leads_additional_contact_entity_1.LeadsAdditionalContact, (data) => data.lead),
381
+ (0, typeorm_1.OneToMany)(() => lead_additional_contact_entity_1.LeadAdditionalContactEntity, (data) => data.lead),
382
382
  __metadata("design:type", Array)
383
383
  ], LeadEntity.prototype, "additionalContacts", void 0);
384
384
  __decorate([
@@ -76,3 +76,7 @@ export declare class SearchByAreaParamsDto {
76
76
  lng: string;
77
77
  lat: string;
78
78
  }
79
+ export declare class WholesaleApartmentDto {
80
+ apartmentId: string;
81
+ blacklisted: boolean;
82
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SearchByAreaParamsDto = exports.AreaAddressesQueryDto = exports.BaseAreaAddressesQueryDto = exports.ApartmentDto = exports.AreaAddressDto = exports.AddressApartmentDto = exports.AddressDto = void 0;
12
+ exports.WholesaleApartmentDto = exports.SearchByAreaParamsDto = exports.AreaAddressesQueryDto = exports.BaseAreaAddressesQueryDto = exports.ApartmentDto = exports.AreaAddressDto = exports.AddressApartmentDto = exports.AddressDto = void 0;
13
13
  const openapi = require("@nestjs/swagger");
14
14
  const _validators_1 = require("../../validators/index");
15
15
  const class_validator_1 = require("class-validator");
@@ -73,3 +73,9 @@ class SearchByAreaParamsDto {
73
73
  }
74
74
  }
75
75
  exports.SearchByAreaParamsDto = SearchByAreaParamsDto;
76
+ class WholesaleApartmentDto {
77
+ static _OPENAPI_METADATA_FACTORY() {
78
+ return { apartmentId: { required: true, type: () => String }, blacklisted: { required: true, type: () => Boolean } };
79
+ }
80
+ }
81
+ exports.WholesaleApartmentDto = WholesaleApartmentDto;