@escapenavigator/types 2.0.13 → 2.0.14
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/dist/google-places/apply-google-places-match.dto.d.ts +4 -0
- package/dist/google-places/apply-google-places-match.dto.js +25 -0
- package/dist/google-places/google-places-country-stats.ro.d.ts +10 -0
- package/dist/google-places/google-places-country-stats.ro.js +45 -0
- package/dist/google-places/google-places-match-preview.ro.d.ts +19 -0
- package/dist/google-places/google-places-match-preview.ro.js +67 -0
- package/dist/google-places/google-places.ro.d.ts +7 -0
- package/dist/google-places/google-places.ro.js +25 -1
- package/dist/google-places/update-google-places.dto.d.ts +2 -2
- package/dist/google-places/update-google-places.dto.js +2 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,25 @@
|
|
|
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.ApplyGooglePlacesMatchDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ApplyGooglePlacesMatchDto {
|
|
15
|
+
}
|
|
16
|
+
exports.ApplyGooglePlacesMatchDto = ApplyGooglePlacesMatchDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], ApplyGooglePlacesMatchDto.prototype, "profileId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ApplyGooglePlacesMatchDto.prototype, "locationId", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
+
export declare class GooglePlacesCountryStatsRO {
|
|
3
|
+
country: CountriesEnum;
|
|
4
|
+
total: number;
|
|
5
|
+
resolved: number;
|
|
6
|
+
conflict: number;
|
|
7
|
+
newLocation: number;
|
|
8
|
+
noLocation: number;
|
|
9
|
+
needsReview: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.GooglePlacesCountryStatsRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
15
|
+
class GooglePlacesCountryStatsRO {
|
|
16
|
+
}
|
|
17
|
+
exports.GooglePlacesCountryStatsRO = GooglePlacesCountryStatsRO;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GooglePlacesCountryStatsRO.prototype, "country", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], GooglePlacesCountryStatsRO.prototype, "total", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], GooglePlacesCountryStatsRO.prototype, "resolved", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], GooglePlacesCountryStatsRO.prototype, "conflict", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], GooglePlacesCountryStatsRO.prototype, "newLocation", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], GooglePlacesCountryStatsRO.prototype, "noLocation", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], GooglePlacesCountryStatsRO.prototype, "needsReview", void 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GooglePlacesStatusEnum } from './google-places-status.enum';
|
|
2
|
+
export type GooglePlacesMatchType = 'location' | 'domain' | 'name' | 'address' | 'none';
|
|
3
|
+
export declare class GooglePlacesMatchProfile {
|
|
4
|
+
id: number;
|
|
5
|
+
title: string;
|
|
6
|
+
site: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class GooglePlacesMatchLocation {
|
|
9
|
+
id: number;
|
|
10
|
+
title: string;
|
|
11
|
+
address: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class GooglePlacesMatchPreviewRO {
|
|
14
|
+
found: boolean;
|
|
15
|
+
matchType: GooglePlacesMatchType;
|
|
16
|
+
profile: GooglePlacesMatchProfile | null;
|
|
17
|
+
location: GooglePlacesMatchLocation | null;
|
|
18
|
+
status: GooglePlacesStatusEnum | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.GooglePlacesMatchPreviewRO = exports.GooglePlacesMatchLocation = exports.GooglePlacesMatchProfile = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const google_places_status_enum_1 = require("./google-places-status.enum");
|
|
15
|
+
class GooglePlacesMatchProfile {
|
|
16
|
+
}
|
|
17
|
+
exports.GooglePlacesMatchProfile = GooglePlacesMatchProfile;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], GooglePlacesMatchProfile.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], GooglePlacesMatchProfile.prototype, "title", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], GooglePlacesMatchProfile.prototype, "site", void 0);
|
|
30
|
+
class GooglePlacesMatchLocation {
|
|
31
|
+
}
|
|
32
|
+
exports.GooglePlacesMatchLocation = GooglePlacesMatchLocation;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], GooglePlacesMatchLocation.prototype, "id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GooglePlacesMatchLocation.prototype, "title", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], GooglePlacesMatchLocation.prototype, "address", void 0);
|
|
45
|
+
class GooglePlacesMatchPreviewRO {
|
|
46
|
+
}
|
|
47
|
+
exports.GooglePlacesMatchPreviewRO = GooglePlacesMatchPreviewRO;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], GooglePlacesMatchPreviewRO.prototype, "found", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], GooglePlacesMatchPreviewRO.prototype, "matchType", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", GooglePlacesMatchProfile)
|
|
59
|
+
], GooglePlacesMatchPreviewRO.prototype, "profile", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
__metadata("design:type", GooglePlacesMatchLocation)
|
|
63
|
+
], GooglePlacesMatchPreviewRO.prototype, "location", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], GooglePlacesMatchPreviewRO.prototype, "status", void 0);
|
|
@@ -6,6 +6,11 @@ export declare class Profile {
|
|
|
6
6
|
title: string;
|
|
7
7
|
status: ProfileStatusEnum;
|
|
8
8
|
}
|
|
9
|
+
export declare class Location {
|
|
10
|
+
id: number;
|
|
11
|
+
title: string;
|
|
12
|
+
address: string;
|
|
13
|
+
}
|
|
9
14
|
export declare class GooglePlacesRO {
|
|
10
15
|
id: number;
|
|
11
16
|
placeId: string;
|
|
@@ -22,9 +27,11 @@ export declare class GooglePlacesRO {
|
|
|
22
27
|
country: CountriesEnum;
|
|
23
28
|
profile: Profile;
|
|
24
29
|
profileId: number;
|
|
30
|
+
location: Location;
|
|
25
31
|
locationId: number;
|
|
26
32
|
lat: number;
|
|
27
33
|
lng: number;
|
|
34
|
+
types: string[];
|
|
28
35
|
lastCheckedAt: Date;
|
|
29
36
|
createdAt: Date;
|
|
30
37
|
updatedAt: Date;
|
|
@@ -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.GooglePlacesRO = exports.Profile = void 0;
|
|
12
|
+
exports.GooglePlacesRO = exports.Location = exports.Profile = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
|
|
@@ -30,6 +30,21 @@ __decorate([
|
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], Profile.prototype, "status", void 0);
|
|
33
|
+
class Location {
|
|
34
|
+
}
|
|
35
|
+
exports.Location = Location;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], Location.prototype, "id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Location.prototype, "title", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Location.prototype, "address", void 0);
|
|
33
48
|
class GooglePlacesRO {
|
|
34
49
|
}
|
|
35
50
|
exports.GooglePlacesRO = GooglePlacesRO;
|
|
@@ -94,6 +109,11 @@ __decorate([
|
|
|
94
109
|
(0, class_transformer_1.Expose)(),
|
|
95
110
|
__metadata("design:type", Number)
|
|
96
111
|
], GooglePlacesRO.prototype, "profileId", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_transformer_1.Expose)(),
|
|
114
|
+
(0, class_transformer_1.Type)(() => Location),
|
|
115
|
+
__metadata("design:type", Location)
|
|
116
|
+
], GooglePlacesRO.prototype, "location", void 0);
|
|
97
117
|
__decorate([
|
|
98
118
|
(0, class_transformer_1.Expose)(),
|
|
99
119
|
__metadata("design:type", Number)
|
|
@@ -106,6 +126,10 @@ __decorate([
|
|
|
106
126
|
(0, class_transformer_1.Expose)(),
|
|
107
127
|
__metadata("design:type", Number)
|
|
108
128
|
], GooglePlacesRO.prototype, "lng", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, class_transformer_1.Expose)(),
|
|
131
|
+
__metadata("design:type", Array)
|
|
132
|
+
], GooglePlacesRO.prototype, "types", void 0);
|
|
109
133
|
__decorate([
|
|
110
134
|
(0, class_transformer_1.Expose)(),
|
|
111
135
|
__metadata("design:type", Date)
|
|
@@ -31,11 +31,13 @@ __decorate([
|
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], UpdateGooglePlacesDto.prototype, "website", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
+
(0, class_validator_1.ValidateIf)((_, value) => value !== null),
|
|
34
35
|
(0, class_validator_1.IsNumber)(),
|
|
35
36
|
(0, class_validator_1.IsOptional)(),
|
|
36
37
|
__metadata("design:type", Number)
|
|
37
38
|
], UpdateGooglePlacesDto.prototype, "profileId", void 0);
|
|
38
39
|
__decorate([
|
|
40
|
+
(0, class_validator_1.ValidateIf)((_, value) => value !== null),
|
|
39
41
|
(0, class_validator_1.IsNumber)(),
|
|
40
42
|
(0, class_validator_1.IsOptional)(),
|
|
41
43
|
__metadata("design:type", Number)
|