adamo-types 1.1.47 → 1.1.49
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.
- package/README.md +18 -3
- package/dist/ams/res/ams.entity.d.ts +4 -4
- package/dist/ams/res/ams.entity.js +3 -3
- package/dist/bss/constants/bp.constants.d.ts +2 -2
- package/dist/bss/constants/bp.constants.js +1 -1
- package/dist/common/address/address.entity.d.ts +1 -1
- package/dist/common/address/address.entity.js +1 -1
- package/dist/common/edge-ams/res/index.entity.d.ts +4 -4
- package/dist/common/edge-ams/res/index.entity.js +3 -3
- package/dist/common/edge-zoho/sale-process/req/patch.entity.d.ts +3 -3
- package/dist/common/edge-zoho/sale-process/req/patch.entity.js +8 -8
- package/dist/database/leads-data.entity.d.ts +8 -8
- package/dist/database/leads-data.entity.js +6 -6
- package/dist/database/provision-db.entity.d.ts +2 -2
- package/dist/database/provision-db.entity.js +3 -3
- package/dist/sys03/address/res/address.entity.d.ts +2 -2
- package/dist/sys03/address/res/address.entity.js +1 -1
- package/dist/sys03/shopping-cart/req/req.entity.d.ts +1 -1
- package/dist/sys03/shopping-cart/req/req.entity.js +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/zoho/sale-process/address-search.entity.d.ts +2 -2
- package/dist/zoho/sale-process/address-search.entity.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,9 +96,24 @@ try {
|
|
|
96
96
|
// do something incase of error
|
|
97
97
|
}
|
|
98
98
|
```
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
<br/><br/>
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## How to publish to `npm`
|
|
103
|
+
### Use `npm run push` instead of `git push`
|
|
104
|
+
|
|
105
|
+
This will execute these cmds `git push && git push --no-verify && git push --tags --no-verify`
|
|
106
|
+
* `git push`: will push changes to the repository and will execute `pre-push` trigger. Trigger:
|
|
107
|
+
local_branch_name="$(git rev-parse --abbrev-ref HEAD)"
|
|
108
|
+
|
|
109
|
+
if [ "$local_branch_name" = "master" ]; then
|
|
110
|
+
npm version patch // will update package.json version and git tags -> they have to be pushed to repository
|
|
111
|
+
npm publish // will publish package to npm registry
|
|
112
|
+
fi
|
|
113
|
+
* `git push --no-verify`: will push `package.json` to repository **without executing the trigger**
|
|
114
|
+
* `git push --tags --no-verify`: will push git tags to repository **without executing the trigger**
|
|
115
|
+
|
|
116
|
+
<br/><br/>
|
|
102
117
|
|
|
103
118
|
## Use `yalc` for local develoment
|
|
104
119
|
There are some issues when ussig `class-transformer` and `class-validator` with `npm link` or `npm install file:../adamo-types`.
|
|
@@ -17,14 +17,14 @@ export declare class FetchAddressByIdRes {
|
|
|
17
17
|
apartments: Apartment[];
|
|
18
18
|
}
|
|
19
19
|
export declare class Apartment {
|
|
20
|
-
id:
|
|
20
|
+
id: string;
|
|
21
21
|
stair?: string;
|
|
22
22
|
floor?: string;
|
|
23
23
|
door: string;
|
|
24
24
|
client?: number;
|
|
25
25
|
}
|
|
26
26
|
export declare class FetchAddressByAreaRes {
|
|
27
|
-
id:
|
|
27
|
+
id: string;
|
|
28
28
|
address: string;
|
|
29
29
|
status: string;
|
|
30
30
|
salesArea: string;
|
|
@@ -32,8 +32,8 @@ export declare class FetchAddressByAreaRes {
|
|
|
32
32
|
lat: string;
|
|
33
33
|
}
|
|
34
34
|
export declare class FetchAddressByApartmentIdRes {
|
|
35
|
-
apartmentId:
|
|
36
|
-
streetAddressId:
|
|
35
|
+
apartmentId: string;
|
|
36
|
+
streetAddressId: string;
|
|
37
37
|
salesAreaId: number;
|
|
38
38
|
salesAreaName: string;
|
|
39
39
|
projectId: number;
|
|
@@ -10,19 +10,19 @@ class FetchAddressByIdRes {
|
|
|
10
10
|
exports.FetchAddressByIdRes = FetchAddressByIdRes;
|
|
11
11
|
class Apartment {
|
|
12
12
|
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
-
return { id: { required: true, type: () =>
|
|
13
|
+
return { id: { required: true, type: () => String }, stair: { required: false, type: () => String }, floor: { required: false, type: () => String }, door: { required: true, type: () => String }, client: { required: false, type: () => Number } };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
exports.Apartment = Apartment;
|
|
17
17
|
class FetchAddressByAreaRes {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { id: { required: true, type: () =>
|
|
19
|
+
return { id: { required: true, type: () => String }, address: { required: true, type: () => String }, status: { required: true, type: () => String }, salesArea: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.FetchAddressByAreaRes = FetchAddressByAreaRes;
|
|
23
23
|
class FetchAddressByApartmentIdRes {
|
|
24
24
|
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
-
return { apartmentId: { required: true, type: () =>
|
|
25
|
+
return { apartmentId: { required: true, type: () => String }, streetAddressId: { required: true, type: () => String }, salesAreaId: { required: true, type: () => Number }, salesAreaName: { required: true, type: () => String }, projectId: { required: true, type: () => Number }, projectCode: { required: true, type: () => String }, competition: { required: true, type: () => String }, serviceableStatus: { required: true, type: () => String }, serviceable: { required: true, type: () => String }, technology: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, country: { required: true, type: () => String }, province: { required: true, type: () => String }, municipality: { required: true, type: () => String }, city: { required: true, type: () => String }, postcode: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, block: { required: true, type: () => String }, entrance: { required: true, type: () => String }, floor: { required: true, type: () => String }, door: { required: true, type: () => String }, serviceableAge: { required: true, type: () => Number }, network: { required: true, type: () => String }, fiberhood: { required: true, type: () => String } };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
exports.FetchAddressByApartmentIdRes = FetchAddressByApartmentIdRes;
|
|
@@ -8,13 +8,13 @@ export declare enum ConfigurationAttributeType {
|
|
|
8
8
|
MOBILE_VISIBILITY = "MOBILE_VISIBILITY",
|
|
9
9
|
NETWORK = "NETWORK",
|
|
10
10
|
PROJECT_CODE = "PROJECT_CODE",
|
|
11
|
+
PROJECT_CODE_REGEX = "PROJECT_CODE_REGEX",
|
|
11
12
|
PROMOTION = "PROMOTION",
|
|
12
13
|
PROMOTION_GROUP = "PROMOTION_GROUP",
|
|
13
14
|
SALES_AREA_NAME = "SALES_AREA_NAME",
|
|
14
15
|
SERVICABLE_STATUS = "SERVICABLE_STATUS",
|
|
15
16
|
SERVICEABLE_AGE = "SERVICEABLE_AGE",
|
|
16
|
-
SYS02 = "SYS02"
|
|
17
|
-
PROJECT_CODE_REGEX = "PROJECT_CODE_REGEX"
|
|
17
|
+
SYS02 = "SYS02"
|
|
18
18
|
}
|
|
19
19
|
export declare enum MobileVisibilityType {
|
|
20
20
|
ONLY_MOBILE = "ONLY_MOBILE",
|
|
@@ -12,13 +12,13 @@ var ConfigurationAttributeType;
|
|
|
12
12
|
ConfigurationAttributeType["MOBILE_VISIBILITY"] = "MOBILE_VISIBILITY";
|
|
13
13
|
ConfigurationAttributeType["NETWORK"] = "NETWORK";
|
|
14
14
|
ConfigurationAttributeType["PROJECT_CODE"] = "PROJECT_CODE";
|
|
15
|
+
ConfigurationAttributeType["PROJECT_CODE_REGEX"] = "PROJECT_CODE_REGEX";
|
|
15
16
|
ConfigurationAttributeType["PROMOTION"] = "PROMOTION";
|
|
16
17
|
ConfigurationAttributeType["PROMOTION_GROUP"] = "PROMOTION_GROUP";
|
|
17
18
|
ConfigurationAttributeType["SALES_AREA_NAME"] = "SALES_AREA_NAME";
|
|
18
19
|
ConfigurationAttributeType["SERVICABLE_STATUS"] = "SERVICABLE_STATUS";
|
|
19
20
|
ConfigurationAttributeType["SERVICEABLE_AGE"] = "SERVICEABLE_AGE";
|
|
20
21
|
ConfigurationAttributeType["SYS02"] = "SYS02";
|
|
21
|
-
ConfigurationAttributeType["PROJECT_CODE_REGEX"] = "PROJECT_CODE_REGEX";
|
|
22
22
|
})(ConfigurationAttributeType = exports.ConfigurationAttributeType || (exports.ConfigurationAttributeType = {}));
|
|
23
23
|
var MobileVisibilityType;
|
|
24
24
|
(function (MobileVisibilityType) {
|
|
@@ -4,7 +4,7 @@ exports.ServiceableStatus = exports.CreateAddressDto = void 0;
|
|
|
4
4
|
const openapi = require("@nestjs/swagger");
|
|
5
5
|
class CreateAddressDto {
|
|
6
6
|
static _OPENAPI_METADATA_FACTORY() {
|
|
7
|
-
return { id: { required: true, type: () => Number }, piso: { required: true, type: () => String, nullable: true }, puerta: { required: true, type: () => String, nullable: true }, streetAddressId: { required: true, type: () =>
|
|
7
|
+
return { id: { required: true, type: () => Number }, piso: { required: true, type: () => String, nullable: true }, puerta: { required: true, type: () => String, nullable: true }, streetAddressId: { required: true, type: () => String }, salesAreaName: { required: true, type: () => String }, projectCode: { required: true, type: () => String }, competition: { required: true, type: () => String }, serviceableStatus: { required: true, enum: require("./address.entity").ServiceableStatus }, province: { required: true, type: () => String }, city: { required: true, type: () => String }, zip: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, projectId: { required: true, type: () => String } };
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.CreateAddressDto = CreateAddressDto;
|
|
@@ -7,8 +7,8 @@ export declare class FetchAddressByZipRes {
|
|
|
7
7
|
lat: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class FetchAddressByApartmentIdAmsRes {
|
|
10
|
-
apartment_id:
|
|
11
|
-
street_address_id:
|
|
10
|
+
apartment_id: string;
|
|
11
|
+
street_address_id: string;
|
|
12
12
|
sales_area_id: number;
|
|
13
13
|
sales_area_name: string;
|
|
14
14
|
project_id: number;
|
|
@@ -55,14 +55,14 @@ export declare class FetchAddressByIdAmsRes {
|
|
|
55
55
|
apartments: Apartment[];
|
|
56
56
|
}
|
|
57
57
|
export declare class Apartment {
|
|
58
|
-
id:
|
|
58
|
+
id: string;
|
|
59
59
|
escalera: string;
|
|
60
60
|
piso: string;
|
|
61
61
|
porta: string;
|
|
62
62
|
client: string | number;
|
|
63
63
|
}
|
|
64
64
|
export declare class FetchAddressByAreaAmsRes {
|
|
65
|
-
id:
|
|
65
|
+
id: string;
|
|
66
66
|
address: string;
|
|
67
67
|
status: string;
|
|
68
68
|
sales_area: string;
|
|
@@ -10,7 +10,7 @@ class FetchAddressByZipRes {
|
|
|
10
10
|
exports.FetchAddressByZipRes = FetchAddressByZipRes;
|
|
11
11
|
class FetchAddressByApartmentIdAmsRes {
|
|
12
12
|
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
-
return { apartment_id: { required: true, type: () =>
|
|
13
|
+
return { apartment_id: { required: true, type: () => String }, street_address_id: { required: true, type: () => String }, sales_area_id: { required: true, type: () => Number }, sales_area_name: { required: true, type: () => String }, project_id: { required: true, type: () => Number }, project_code: { required: true, type: () => String }, competition: { required: true, type: () => String }, serviceable_status: { required: true, type: () => String }, serviceable: { required: true, type: () => String }, technology: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String }, country: { required: true, type: () => String }, province: { required: true, type: () => String }, municipality: { required: true, type: () => String }, city: { required: true, type: () => String }, postcode: { required: true, type: () => String }, street_name: { required: true, type: () => String }, street_type: { required: true, type: () => String }, street_number: { required: true, type: () => String }, block: { required: true, type: () => String }, entrance: { required: true, type: () => String }, floor: { required: true, type: () => String }, door: { required: true, type: () => String }, serviceable_age: { required: true, type: () => Number }, network: { required: true, type: () => String }, fiberhood_status: { required: true, type: () => String } };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
exports.FetchAddressByApartmentIdAmsRes = FetchAddressByApartmentIdAmsRes;
|
|
@@ -22,13 +22,13 @@ class FetchAddressByIdAmsRes {
|
|
|
22
22
|
exports.FetchAddressByIdAmsRes = FetchAddressByIdAmsRes;
|
|
23
23
|
class Apartment {
|
|
24
24
|
static _OPENAPI_METADATA_FACTORY() {
|
|
25
|
-
return { id: { required: true, type: () =>
|
|
25
|
+
return { id: { required: true, type: () => String }, escalera: { required: true, type: () => String }, piso: { required: true, type: () => String }, porta: { required: true, type: () => String }, client: { required: true, type: () => Object } };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
exports.Apartment = Apartment;
|
|
29
29
|
class FetchAddressByAreaAmsRes {
|
|
30
30
|
static _OPENAPI_METADATA_FACTORY() {
|
|
31
|
-
return { id: { required: true, type: () =>
|
|
31
|
+
return { id: { required: true, type: () => String }, address: { required: true, type: () => String }, status: { required: true, type: () => String }, sales_area: { required: true, type: () => String }, lng: { required: true, type: () => String }, lat: { required: true, type: () => String } };
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
exports.FetchAddressByAreaAmsRes = FetchAddressByAreaAmsRes;
|
|
@@ -74,13 +74,13 @@ export declare class PartialAddressSearchDto {
|
|
|
74
74
|
googleCity: string;
|
|
75
75
|
}
|
|
76
76
|
export declare class PartialAddressSelectedDto {
|
|
77
|
-
coberturaId:
|
|
77
|
+
coberturaId: string;
|
|
78
78
|
}
|
|
79
79
|
export declare class PartialApartmentSelectedDto {
|
|
80
80
|
searchType?: AddressSearchType;
|
|
81
81
|
search?: string;
|
|
82
|
-
coberturaId?:
|
|
83
|
-
coberturaPisoPortaId:
|
|
82
|
+
coberturaId?: string;
|
|
83
|
+
coberturaPisoPortaId: string;
|
|
84
84
|
}
|
|
85
85
|
export declare class PartialApartmentSelectedCustomerDto {
|
|
86
86
|
serviceAddress: string | number;
|
|
@@ -336,18 +336,18 @@ __decorate([
|
|
|
336
336
|
exports.PartialAddressSearchDto = PartialAddressSearchDto;
|
|
337
337
|
class PartialAddressSelectedDto {
|
|
338
338
|
static _OPENAPI_METADATA_FACTORY() {
|
|
339
|
-
return { coberturaId: { required: true, type: () =>
|
|
339
|
+
return { coberturaId: { required: true, type: () => String } };
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
__decorate([
|
|
343
|
-
(0, class_validator_1.
|
|
343
|
+
(0, class_validator_1.IsString)(),
|
|
344
344
|
(0, class_validator_1.IsNotEmpty)(),
|
|
345
|
-
__metadata("design:type",
|
|
345
|
+
__metadata("design:type", String)
|
|
346
346
|
], PartialAddressSelectedDto.prototype, "coberturaId", void 0);
|
|
347
347
|
exports.PartialAddressSelectedDto = PartialAddressSelectedDto;
|
|
348
348
|
class PartialApartmentSelectedDto {
|
|
349
349
|
static _OPENAPI_METADATA_FACTORY() {
|
|
350
|
-
return { searchType: { required: false, enum: require("../../../../zoho/constants/zoho.constants").AddressSearchType }, search: { required: false, type: () => String }, coberturaId: { required: false, type: () =>
|
|
350
|
+
return { searchType: { required: false, enum: require("../../../../zoho/constants/zoho.constants").AddressSearchType }, search: { required: false, type: () => String }, coberturaId: { required: false, type: () => String }, coberturaPisoPortaId: { required: true, type: () => String } };
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
__decorate([
|
|
@@ -362,15 +362,15 @@ __decorate([
|
|
|
362
362
|
__metadata("design:type", String)
|
|
363
363
|
], PartialApartmentSelectedDto.prototype, "search", void 0);
|
|
364
364
|
__decorate([
|
|
365
|
-
(0, class_validator_1.
|
|
365
|
+
(0, class_validator_1.IsString)(),
|
|
366
366
|
(0, class_validator_1.IsNotEmpty)(),
|
|
367
367
|
(0, class_validator_1.IsOptional)(),
|
|
368
|
-
__metadata("design:type",
|
|
368
|
+
__metadata("design:type", String)
|
|
369
369
|
], PartialApartmentSelectedDto.prototype, "coberturaId", void 0);
|
|
370
370
|
__decorate([
|
|
371
|
-
(0, class_validator_1.
|
|
371
|
+
(0, class_validator_1.IsString)(),
|
|
372
372
|
(0, class_validator_1.IsNotEmpty)(),
|
|
373
|
-
__metadata("design:type",
|
|
373
|
+
__metadata("design:type", String)
|
|
374
374
|
], PartialApartmentSelectedDto.prototype, "coberturaPisoPortaId", void 0);
|
|
375
375
|
exports.PartialApartmentSelectedDto = PartialApartmentSelectedDto;
|
|
376
376
|
class PartialApartmentSelectedCustomerDto {
|
|
@@ -13,10 +13,10 @@ export declare class LeadsData {
|
|
|
13
13
|
shoppingCartId?: string;
|
|
14
14
|
customerId?: number;
|
|
15
15
|
billingAccountId?: number;
|
|
16
|
-
coberturaId?:
|
|
17
|
-
addressId?:
|
|
18
|
-
coberturaPisoPortaId?:
|
|
19
|
-
apartmentId?:
|
|
16
|
+
coberturaId?: string;
|
|
17
|
+
addressId?: string;
|
|
18
|
+
coberturaPisoPortaId?: string;
|
|
19
|
+
apartmentId?: string;
|
|
20
20
|
email?: string;
|
|
21
21
|
cifNumber?: string;
|
|
22
22
|
cifType?: string;
|
|
@@ -89,10 +89,10 @@ export declare class CreateNewLeadDto {
|
|
|
89
89
|
shoppingCartId?: string;
|
|
90
90
|
customerId?: number;
|
|
91
91
|
billingAccountId?: number;
|
|
92
|
-
coberturaId?:
|
|
93
|
-
addressId?:
|
|
94
|
-
coberturaPisoPortaId?:
|
|
95
|
-
apartmentId?:
|
|
92
|
+
coberturaId?: string;
|
|
93
|
+
addressId?: string;
|
|
94
|
+
coberturaPisoPortaId?: string;
|
|
95
|
+
apartmentId?: string;
|
|
96
96
|
email?: string;
|
|
97
97
|
cifNumber?: string;
|
|
98
98
|
cifType?: string;
|
|
@@ -15,7 +15,7 @@ const typeorm_1 = require("typeorm");
|
|
|
15
15
|
const lead_entity_1 = require("./lead.entity");
|
|
16
16
|
let LeadsData = class LeadsData {
|
|
17
17
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
return { id: { required: true, type: () => Number }, lead: { required: true, type: () => require("./lead.entity").Lead }, user: { required: true, type: () => String }, userIp: { required: false, type: () => String }, channel: { required: true, type: () => String }, scoring: { required: false, type: () => Number }, status: { required: true, type: () => String }, contactPhone: { required: false, type: () => String }, campaign: { required: false, type: () => String }, intent: { required: false, type: () => String }, shoppingCartId: { required: false, type: () => String }, customerId: { required: false, type: () => Number }, billingAccountId: { required: false, type: () => Number }, coberturaId: { required: false, type: () =>
|
|
18
|
+
return { id: { required: true, type: () => Number }, lead: { required: true, type: () => require("./lead.entity").Lead }, user: { required: true, type: () => String }, userIp: { required: false, type: () => String }, channel: { required: true, type: () => String }, scoring: { required: false, type: () => Number }, status: { required: true, type: () => String }, contactPhone: { required: false, type: () => String }, campaign: { required: false, type: () => String }, intent: { required: false, type: () => String }, shoppingCartId: { required: false, type: () => String }, customerId: { required: false, type: () => Number }, billingAccountId: { required: false, type: () => Number }, coberturaId: { required: false, type: () => String }, addressId: { required: false, type: () => String }, coberturaPisoPortaId: { required: false, type: () => String }, apartmentId: { required: false, type: () => String }, email: { required: false, type: () => String }, cifNumber: { required: false, type: () => String }, cifType: { required: false, type: () => String }, cifCountry: { required: false, type: () => String }, birthDate: { required: false, type: () => String }, title: { required: false, type: () => String }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, token: { required: false, type: () => String }, googleStreet: { required: false, type: () => String }, googleLatitude: { required: false, type: () => String }, googleLongitude: { required: false, type: () => String }, search: { required: false, type: () => String }, searchType: { required: false, type: () => String }, createdAt: { required: true, type: () => String }, notes: { required: false, type: () => String }, internalNotes: { required: false, type: () => String }, callbackLeadId: { required: false, type: () => String }, tradingName: { required: false, type: () => String }, legalName: { required: false, type: () => String }, industryType: { required: false, type: () => String }, customerType: { required: false, type: () => String }, companyType: { required: false, type: () => String }, legalEntity: { required: false, type: () => Boolean }, deliveryMethod: { required: false, type: () => String }, contactType: { required: false, type: () => String }, billingAddress: { required: false, type: () => String }, postalAddress: { required: false, type: () => String }, serviceAddress: { required: false, type: () => String }, selectedBundle: { required: false, type: () => String }, businessSize: { required: false, type: () => String }, iban: { required: false, type: () => String }, identificationType: { required: false, type: () => String }, identificationCountry: { required: false, type: () => String }, identificationNumber: { required: false, type: () => String }, billingFirstName: { required: false, type: () => String }, billingLastName: { required: false, type: () => String }, utmContent: { required: false, type: () => String }, utmCampaign: { required: false, type: () => String }, utmMedium: { required: false, type: () => String }, utmSource: { required: false, type: () => String }, callType: { required: false, type: () => String }, ambassador: { required: false, type: () => Number }, fiberhoodId: { required: false, type: () => Number }, paymentMethodAdded: { required: false, type: () => String }, smsResponse: { required: false, type: () => String }, smsVerified: { required: false, type: () => Boolean }, smsPDF: { required: false, type: () => String }, smsSentAt: { required: false, type: () => String }, smsPhone: { required: false, type: () => String }, fiberhoodStatus: { required: false, type: () => String }, nearestCoverageDistance: { required: false, type: () => String }, nearestCoverageId: { required: false, type: () => String }, googleProvince: { required: false, type: () => String }, googleZip: { required: false, type: () => String }, googleCity: { required: false, type: () => String }, customerAccountBehaviour: { required: false, type: () => String } };
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
__decorate([
|
|
@@ -73,19 +73,19 @@ __decorate([
|
|
|
73
73
|
], LeadsData.prototype, "billingAccountId", void 0);
|
|
74
74
|
__decorate([
|
|
75
75
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
76
|
-
__metadata("design:type",
|
|
76
|
+
__metadata("design:type", String)
|
|
77
77
|
], LeadsData.prototype, "coberturaId", void 0);
|
|
78
78
|
__decorate([
|
|
79
79
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
80
|
-
__metadata("design:type",
|
|
80
|
+
__metadata("design:type", String)
|
|
81
81
|
], LeadsData.prototype, "addressId", void 0);
|
|
82
82
|
__decorate([
|
|
83
83
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
84
|
-
__metadata("design:type",
|
|
84
|
+
__metadata("design:type", String)
|
|
85
85
|
], LeadsData.prototype, "coberturaPisoPortaId", void 0);
|
|
86
86
|
__decorate([
|
|
87
87
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
88
|
-
__metadata("design:type",
|
|
88
|
+
__metadata("design:type", String)
|
|
89
89
|
], LeadsData.prototype, "apartmentId", void 0);
|
|
90
90
|
__decorate([
|
|
91
91
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
@@ -321,7 +321,7 @@ LeadsData = __decorate([
|
|
|
321
321
|
exports.LeadsData = LeadsData;
|
|
322
322
|
class CreateNewLeadDto {
|
|
323
323
|
static _OPENAPI_METADATA_FACTORY() {
|
|
324
|
-
return { id: { required: false, type: () => Number }, lead: { required: false, type: () => require("./lead.entity").Lead }, user: { required: false, type: () => String }, userIp: { required: false, type: () => String }, channel: { required: true, type: () => String }, scoring: { required: false, type: () => Number }, status: { required: true, type: () => String }, contactPhone: { required: false, type: () => String }, campaign: { required: false, type: () => String }, intent: { required: false, type: () => String }, shoppingCartId: { required: false, type: () => String }, customerId: { required: false, type: () => Number }, billingAccountId: { required: false, type: () => Number }, coberturaId: { required: false, type: () =>
|
|
324
|
+
return { id: { required: false, type: () => Number }, lead: { required: false, type: () => require("./lead.entity").Lead }, user: { required: false, type: () => String }, userIp: { required: false, type: () => String }, channel: { required: true, type: () => String }, scoring: { required: false, type: () => Number }, status: { required: true, type: () => String }, contactPhone: { required: false, type: () => String }, campaign: { required: false, type: () => String }, intent: { required: false, type: () => String }, shoppingCartId: { required: false, type: () => String }, customerId: { required: false, type: () => Number }, billingAccountId: { required: false, type: () => Number }, coberturaId: { required: false, type: () => String }, addressId: { required: false, type: () => String }, coberturaPisoPortaId: { required: false, type: () => String }, apartmentId: { required: false, type: () => String }, email: { required: false, type: () => String }, cifNumber: { required: false, type: () => String }, cifType: { required: false, type: () => String }, cifCountry: { required: false, type: () => String }, birthDate: { required: false, type: () => String }, title: { required: false, type: () => String }, firstName: { required: false, type: () => String }, lastName: { required: false, type: () => String }, token: { required: false, type: () => String }, googleStreet: { required: false, type: () => String }, googleLatitude: { required: false, type: () => String }, googleLongitude: { required: false, type: () => String }, search: { required: false, type: () => String }, createdAt: { required: true, type: () => String }, notes: { required: false, type: () => String }, internalNotes: { required: false, type: () => String }, callbackLeadId: { required: false, type: () => String }, tradingName: { required: false, type: () => String }, legalName: { required: false, type: () => String }, industryType: { required: false, type: () => String }, customerType: { required: false, type: () => String }, companyType: { required: false, type: () => String }, legalEntity: { required: false, type: () => Boolean }, deliveryMethod: { required: false, type: () => String }, contactType: { required: false, type: () => String }, billingAddress: { required: false, type: () => String }, postalAddress: { required: false, type: () => String }, serviceAddress: { required: false, type: () => String }, selectedBundle: { required: false, type: () => String }, businessSize: { required: false, type: () => String }, iban: { required: false, type: () => String }, identificationType: { required: false, type: () => String }, identificationCountry: { required: false, type: () => String }, identificationNumber: { required: false, type: () => String }, billingFirstName: { required: false, type: () => String }, billingLastName: { required: false, type: () => String }, utmContent: { required: false, type: () => String }, utmCampaign: { required: false, type: () => String }, utmMedium: { required: false, type: () => String }, utmSource: { required: false, type: () => String }, callType: { required: false, type: () => String }, ambassador: { required: false, type: () => Number }, fiberhoodId: { required: false, type: () => Number }, paymentMethodAdded: { required: false, type: () => String }, smsResponse: { required: false, type: () => String }, smsVerified: { required: false, type: () => Boolean }, smsPDF: { required: false, type: () => String }, smsSentAt: { required: false, type: () => String }, smsPhone: { required: false, type: () => String }, fiberhoodStatus: { required: false, type: () => String }, nearestCoverageDistance: { required: false, type: () => String }, nearestCoverageId: { required: false, type: () => String }, googleProvince: { required: false, type: () => String }, googleZip: { required: false, type: () => String }, googleCity: { required: false, type: () => String }, customerAccountBehaviour: { required: false, type: () => String } };
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
exports.CreateNewLeadDto = CreateNewLeadDto;
|
|
@@ -19,7 +19,7 @@ export declare class BlacklistWholesalePonProvision {
|
|
|
19
19
|
blocked: boolean;
|
|
20
20
|
address_id: number;
|
|
21
21
|
operator_id: number;
|
|
22
|
-
apartment_id:
|
|
22
|
+
apartment_id: string;
|
|
23
23
|
password: string;
|
|
24
24
|
origin: string;
|
|
25
25
|
vlan_631: boolean;
|
|
@@ -27,6 +27,6 @@ export declare class BlacklistWholesalePonProvision {
|
|
|
27
27
|
}
|
|
28
28
|
export declare class BlacklistWholesalePonProvisionResponse {
|
|
29
29
|
sids: number[];
|
|
30
|
-
apartmentId:
|
|
30
|
+
apartmentId: string;
|
|
31
31
|
blacklisted: boolean;
|
|
32
32
|
}
|
|
@@ -14,7 +14,7 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
let BlacklistWholesalePonProvision = class BlacklistWholesalePonProvision {
|
|
16
16
|
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
-
return { sid: { required: true, type: () => Number }, he: { required: true, type: () => String }, gponport: { required: true, type: () => String }, regid: { required: true, type: () => String }, service: { required: true, type: () => Number }, ipaddr: { required: true, type: () => Number }, created_at: { required: true, type: () => String }, ssid: { required: true, type: () => String }, wifipasswd: { required: true, type: () => String }, mac: { required: true, type: () => String }, modified: { required: true, type: () => String }, oltbrand: { required: true, type: () => String }, ontmodel: { required: true, type: () => String }, cpemodel: { required: true, type: () => String }, cpeserrial: { required: true, type: () => String }, snmp_index: { required: true, type: () => Number }, state: { required: true, type: () => String }, blocked: { required: true, type: () => Boolean }, address_id: { required: true, type: () => Number }, operator_id: { required: true, type: () => Number }, apartment_id: { required: true, type: () =>
|
|
17
|
+
return { sid: { required: true, type: () => Number }, he: { required: true, type: () => String }, gponport: { required: true, type: () => String }, regid: { required: true, type: () => String }, service: { required: true, type: () => Number }, ipaddr: { required: true, type: () => Number }, created_at: { required: true, type: () => String }, ssid: { required: true, type: () => String }, wifipasswd: { required: true, type: () => String }, mac: { required: true, type: () => String }, modified: { required: true, type: () => String }, oltbrand: { required: true, type: () => String }, ontmodel: { required: true, type: () => String }, cpemodel: { required: true, type: () => String }, cpeserrial: { required: true, type: () => String }, snmp_index: { required: true, type: () => Number }, state: { required: true, type: () => String }, blocked: { required: true, type: () => Boolean }, address_id: { required: true, type: () => Number }, operator_id: { required: true, type: () => Number }, apartment_id: { required: true, type: () => String }, password: { required: true, type: () => String }, origin: { required: true, type: () => String }, vlan_631: { required: true, type: () => Boolean }, vlan_604: { required: true, type: () => Boolean } };
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
__decorate([
|
|
@@ -99,7 +99,7 @@ __decorate([
|
|
|
99
99
|
], BlacklistWholesalePonProvision.prototype, "operator_id", void 0);
|
|
100
100
|
__decorate([
|
|
101
101
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
102
|
-
__metadata("design:type",
|
|
102
|
+
__metadata("design:type", String)
|
|
103
103
|
], BlacklistWholesalePonProvision.prototype, "apartment_id", void 0);
|
|
104
104
|
__decorate([
|
|
105
105
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
@@ -123,7 +123,7 @@ BlacklistWholesalePonProvision = __decorate([
|
|
|
123
123
|
exports.BlacklistWholesalePonProvision = BlacklistWholesalePonProvision;
|
|
124
124
|
class BlacklistWholesalePonProvisionResponse {
|
|
125
125
|
static _OPENAPI_METADATA_FACTORY() {
|
|
126
|
-
return { sids: { required: true, type: () => [Number] }, apartmentId: { required: true, type: () =>
|
|
126
|
+
return { sids: { required: true, type: () => [Number] }, apartmentId: { required: true, type: () => String }, blacklisted: { required: true, type: () => Boolean } };
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
exports.BlacklistWholesalePonProvisionResponse = BlacklistWholesalePonProvisionResponse;
|
|
@@ -2,11 +2,11 @@ export declare class SearchApartmentByIdRes {
|
|
|
2
2
|
apartment: Apartment;
|
|
3
3
|
}
|
|
4
4
|
declare class Apartment {
|
|
5
|
-
id:
|
|
5
|
+
id: string;
|
|
6
6
|
entrance: string;
|
|
7
7
|
floor: string;
|
|
8
8
|
door: string;
|
|
9
|
-
streetAddressId:
|
|
9
|
+
streetAddressId: string;
|
|
10
10
|
salesAreaId: number;
|
|
11
11
|
salesAreaName: string;
|
|
12
12
|
projectId: number;
|
|
@@ -10,6 +10,6 @@ class SearchApartmentByIdRes {
|
|
|
10
10
|
exports.SearchApartmentByIdRes = SearchApartmentByIdRes;
|
|
11
11
|
class Apartment {
|
|
12
12
|
static _OPENAPI_METADATA_FACTORY() {
|
|
13
|
-
return { id: { required: true, type: () =>
|
|
13
|
+
return { id: { required: true, type: () => String }, entrance: { required: true, type: () => String }, floor: { required: true, type: () => String }, door: { required: true, type: () => String }, streetAddressId: { required: true, type: () => String }, salesAreaId: { required: true, type: () => Number }, salesAreaName: { required: true, type: () => String }, projectId: { required: true, type: () => Number }, projectCode: { required: true, type: () => String }, competition: { required: true, type: () => String }, serviceableStatus: { required: true, type: () => String }, serviceable: { required: true, type: () => String }, technology: { required: true, type: () => String }, longitude: { required: true, type: () => String }, latitude: { required: true, type: () => String }, country: { required: true, type: () => String }, province: { required: true, type: () => String }, municipality: { required: true, type: () => String }, city: { required: true, type: () => String }, zip: { required: true, type: () => String }, streetType: { required: true, type: () => String }, streetName: { required: true, type: () => String }, streetNumber: { required: true, type: () => String }, formattedName: { required: true, type: () => String }, block: { required: true, type: () => String } };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -34,12 +34,12 @@ class ShoppingCartEdge {
|
|
|
34
34
|
exports.ShoppingCartEdge = ShoppingCartEdge;
|
|
35
35
|
class ShoppingCartCreateDto {
|
|
36
36
|
static _OPENAPI_METADATA_FACTORY() {
|
|
37
|
-
return { apartmentId: { required: true, type: () =>
|
|
37
|
+
return { apartmentId: { required: true, type: () => String }, customerType: { required: true, enum: require("./req.entity").CustomerType }, products: { required: false, type: () => [require("./req.entity").ShoppingCartBundleDto] } };
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, class_validator_1.
|
|
42
|
-
__metadata("design:type",
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
43
|
], ShoppingCartCreateDto.prototype, "apartmentId", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, class_validator_1.IsEnum)(CustomerType),
|