grm-shared-library 1.1.96 → 1.1.97
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.
|
@@ -12,45 +12,78 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.MapAddressDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
16
|
const map_location_dto_1 = require("./map-location.dto");
|
|
16
17
|
class MapAddressDto {
|
|
17
18
|
}
|
|
18
19
|
exports.MapAddressDto = MapAddressDto;
|
|
19
20
|
__decorate([
|
|
21
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
22
|
+
description: 'Google Place ID for the address',
|
|
23
|
+
example: 'ChIJN1t_tDeuEmsRUsoyG83frY4'
|
|
24
|
+
}),
|
|
20
25
|
(0, class_validator_1.IsString)(),
|
|
21
26
|
(0, class_validator_1.IsOptional)(),
|
|
22
27
|
__metadata("design:type", String)
|
|
23
28
|
], MapAddressDto.prototype, "placeId", void 0);
|
|
24
29
|
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({
|
|
31
|
+
description: 'Physical address of the location',
|
|
32
|
+
example: '123 Main Street, New York, NY 10001'
|
|
33
|
+
}),
|
|
25
34
|
(0, class_validator_1.IsString)(),
|
|
26
35
|
__metadata("design:type", String)
|
|
27
36
|
], MapAddressDto.prototype, "physicalAddress", void 0);
|
|
28
37
|
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({
|
|
39
|
+
description: 'Geographic coordinates of the location',
|
|
40
|
+
type: map_location_dto_1.MapLocationDto
|
|
41
|
+
}),
|
|
29
42
|
(0, class_validator_1.ValidateNested)(),
|
|
30
43
|
(0, class_transformer_1.Type)(() => map_location_dto_1.MapLocationDto),
|
|
31
44
|
__metadata("design:type", map_location_dto_1.MapLocationDto)
|
|
32
45
|
], MapAddressDto.prototype, "location", void 0);
|
|
33
46
|
__decorate([
|
|
47
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
48
|
+
description: 'Plus code for the location',
|
|
49
|
+
example: '87G8Q2J8+Q2'
|
|
50
|
+
}),
|
|
34
51
|
(0, class_validator_1.IsString)(),
|
|
35
52
|
(0, class_validator_1.IsOptional)(),
|
|
36
53
|
__metadata("design:type", String)
|
|
37
54
|
], MapAddressDto.prototype, "plusCode", void 0);
|
|
38
55
|
__decorate([
|
|
56
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
57
|
+
description: 'Name of the building',
|
|
58
|
+
example: 'Empire State Building'
|
|
59
|
+
}),
|
|
39
60
|
(0, class_validator_1.IsString)(),
|
|
40
61
|
(0, class_validator_1.IsOptional)(),
|
|
41
62
|
__metadata("design:type", String)
|
|
42
63
|
], MapAddressDto.prototype, "buildingName", void 0);
|
|
43
64
|
__decorate([
|
|
65
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
66
|
+
description: 'Contact phone number for the location',
|
|
67
|
+
example: '+1234567890'
|
|
68
|
+
}),
|
|
44
69
|
(0, class_validator_1.IsString)(),
|
|
45
70
|
(0, class_validator_1.IsOptional)(),
|
|
46
71
|
__metadata("design:type", String)
|
|
47
72
|
], MapAddressDto.prototype, "phone", void 0);
|
|
48
73
|
__decorate([
|
|
74
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
75
|
+
description: 'URL to a photo of the location',
|
|
76
|
+
example: 'https://example.com/photo.jpg'
|
|
77
|
+
}),
|
|
49
78
|
(0, class_validator_1.IsString)(),
|
|
50
79
|
(0, class_validator_1.IsOptional)(),
|
|
51
80
|
__metadata("design:type", String)
|
|
52
81
|
], MapAddressDto.prototype, "photo", void 0);
|
|
53
82
|
__decorate([
|
|
83
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
84
|
+
description: 'Indicates whether the address has been validated',
|
|
85
|
+
example: true
|
|
86
|
+
}),
|
|
54
87
|
(0, class_validator_1.IsBoolean)(),
|
|
55
88
|
(0, class_validator_1.IsOptional)(),
|
|
56
89
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-address.dto.js","sourceRoot":"","sources":["../../../../../src/modules/common/dtos/map-address.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,yDAAyC;AACzC,yDAAoD;AAEpD,MAAa,aAAa;CA+
|
|
1
|
+
{"version":3,"file":"map-address.dto.js","sourceRoot":"","sources":["../../../../../src/modules/common/dtos/map-address.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAClF,yDAAyC;AACzC,6CAAmE;AACnE,yDAAoD;AAEpD,MAAa,aAAa;CA+DzB;AA/DD,sCA+DC;AAxDG;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,6BAA6B;KACzC,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACI;AAOjB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE,qCAAqC;KACjD,CAAC;IACD,IAAA,0BAAQ,GAAE;;sDACc;AAQzB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,iCAAc;KACvB,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iCAAc,CAAC;8BAChB,iCAAc;+CAAC;AAQ1B;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,4BAA4B;QACzC,OAAO,EAAE,aAAa;KACzB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACK;AAQlB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE,uBAAuB;KACnC,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACS;AAQtB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,aAAa;KACzB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACE;AAQf;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,gCAAgC;QAC7C,OAAO,EAAE,+BAA+B;KAC3C,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACE;AAQf;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,IAAI;KAChB,CAAC;IACD,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8CACK"}
|
|
@@ -9,44 +9,77 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { IsBoolean, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
11
11
|
import { Type } from "class-transformer";
|
|
12
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
12
13
|
import { MapLocationDto } from "./map-location.dto";
|
|
13
14
|
export class MapAddressDto {
|
|
14
15
|
}
|
|
15
16
|
__decorate([
|
|
17
|
+
ApiPropertyOptional({
|
|
18
|
+
description: 'Google Place ID for the address',
|
|
19
|
+
example: 'ChIJN1t_tDeuEmsRUsoyG83frY4'
|
|
20
|
+
}),
|
|
16
21
|
IsString(),
|
|
17
22
|
IsOptional(),
|
|
18
23
|
__metadata("design:type", String)
|
|
19
24
|
], MapAddressDto.prototype, "placeId", void 0);
|
|
20
25
|
__decorate([
|
|
26
|
+
ApiProperty({
|
|
27
|
+
description: 'Physical address of the location',
|
|
28
|
+
example: '123 Main Street, New York, NY 10001'
|
|
29
|
+
}),
|
|
21
30
|
IsString(),
|
|
22
31
|
__metadata("design:type", String)
|
|
23
32
|
], MapAddressDto.prototype, "physicalAddress", void 0);
|
|
24
33
|
__decorate([
|
|
34
|
+
ApiProperty({
|
|
35
|
+
description: 'Geographic coordinates of the location',
|
|
36
|
+
type: MapLocationDto
|
|
37
|
+
}),
|
|
25
38
|
ValidateNested(),
|
|
26
39
|
Type(() => MapLocationDto),
|
|
27
40
|
__metadata("design:type", MapLocationDto)
|
|
28
41
|
], MapAddressDto.prototype, "location", void 0);
|
|
29
42
|
__decorate([
|
|
43
|
+
ApiPropertyOptional({
|
|
44
|
+
description: 'Plus code for the location',
|
|
45
|
+
example: '87G8Q2J8+Q2'
|
|
46
|
+
}),
|
|
30
47
|
IsString(),
|
|
31
48
|
IsOptional(),
|
|
32
49
|
__metadata("design:type", String)
|
|
33
50
|
], MapAddressDto.prototype, "plusCode", void 0);
|
|
34
51
|
__decorate([
|
|
52
|
+
ApiPropertyOptional({
|
|
53
|
+
description: 'Name of the building',
|
|
54
|
+
example: 'Empire State Building'
|
|
55
|
+
}),
|
|
35
56
|
IsString(),
|
|
36
57
|
IsOptional(),
|
|
37
58
|
__metadata("design:type", String)
|
|
38
59
|
], MapAddressDto.prototype, "buildingName", void 0);
|
|
39
60
|
__decorate([
|
|
61
|
+
ApiPropertyOptional({
|
|
62
|
+
description: 'Contact phone number for the location',
|
|
63
|
+
example: '+1234567890'
|
|
64
|
+
}),
|
|
40
65
|
IsString(),
|
|
41
66
|
IsOptional(),
|
|
42
67
|
__metadata("design:type", String)
|
|
43
68
|
], MapAddressDto.prototype, "phone", void 0);
|
|
44
69
|
__decorate([
|
|
70
|
+
ApiPropertyOptional({
|
|
71
|
+
description: 'URL to a photo of the location',
|
|
72
|
+
example: 'https://example.com/photo.jpg'
|
|
73
|
+
}),
|
|
45
74
|
IsString(),
|
|
46
75
|
IsOptional(),
|
|
47
76
|
__metadata("design:type", String)
|
|
48
77
|
], MapAddressDto.prototype, "photo", void 0);
|
|
49
78
|
__decorate([
|
|
79
|
+
ApiPropertyOptional({
|
|
80
|
+
description: 'Indicates whether the address has been validated',
|
|
81
|
+
example: true
|
|
82
|
+
}),
|
|
50
83
|
IsBoolean(),
|
|
51
84
|
IsOptional(),
|
|
52
85
|
__metadata("design:type", Boolean)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-address.dto.js","sourceRoot":"","sources":["../../../../../src/modules/common/dtos/map-address.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,OAAO,aAAa;CA+
|
|
1
|
+
{"version":3,"file":"map-address.dto.js","sourceRoot":"","sources":["../../../../../src/modules/common/dtos/map-address.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,OAAO,aAAa;CA+DzB;AAxDG;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,6BAA6B;KACzC,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACI;AAOjB;IALC,WAAW,CAAC;QACT,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE,qCAAqC;KACjD,CAAC;IACD,QAAQ,EAAE;;sDACc;AAQzB;IANC,WAAW,CAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,cAAc;KACvB,CAAC;IACD,cAAc,EAAE;IAChB,IAAI,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC;8BAChB,cAAc;+CAAC;AAQ1B;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,4BAA4B;QACzC,OAAO,EAAE,aAAa;KACzB,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACK;AAQlB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE,uBAAuB;KACnC,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;mDACS;AAQtB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,aAAa;KACzB,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;4CACE;AAQf;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,gCAAgC;QAC7C,OAAO,EAAE,+BAA+B;KAC3C,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;4CACE;AAQf;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,IAAI;KAChB,CAAC;IACD,SAAS,EAAE;IACX,UAAU,EAAE;;8CACK"}
|