@merkaly/api 0.4.3 → 0.4.4

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.
@@ -0,0 +1,12 @@
1
+ export declare class AddressValidator {
2
+ line1: string;
3
+ line2?: string;
4
+ name: string;
5
+ city: string;
6
+ state: string;
7
+ locality?: string;
8
+ country: string;
9
+ code: string;
10
+ latitude?: number;
11
+ longitude?: number;
12
+ }
@@ -0,0 +1,66 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ 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;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import * as class_validator_1 from "class-validator";
11
+ export class AddressValidator {
12
+ line1;
13
+ line2;
14
+ name;
15
+ city;
16
+ state;
17
+ locality;
18
+ country;
19
+ code;
20
+ latitude;
21
+ longitude;
22
+ }
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], AddressValidator.prototype, "line1", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", String)
31
+ ], AddressValidator.prototype, "line2", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], AddressValidator.prototype, "name", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsString)(),
38
+ __metadata("design:type", String)
39
+ ], AddressValidator.prototype, "city", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsString)(),
42
+ __metadata("design:type", String)
43
+ ], AddressValidator.prototype, "state", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsString)(),
46
+ (0, class_validator_1.IsOptional)(),
47
+ __metadata("design:type", String)
48
+ ], AddressValidator.prototype, "locality", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsString)(),
51
+ __metadata("design:type", String)
52
+ ], AddressValidator.prototype, "country", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsString)(),
55
+ __metadata("design:type", String)
56
+ ], AddressValidator.prototype, "code", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsLatitude)(),
59
+ (0, class_validator_1.IsOptional)(),
60
+ __metadata("design:type", Number)
61
+ ], AddressValidator.prototype, "latitude", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsLongitude)(),
64
+ (0, class_validator_1.IsOptional)(),
65
+ __metadata("design:type", Number)
66
+ ], AddressValidator.prototype, "longitude", void 0);
package/dist/index.d.ts CHANGED
@@ -2,4 +2,5 @@ export * from './abstract.entity';
2
2
  export * from './abstract.validator';
3
3
  export * from './abstract.repository';
4
4
  export * from './address.entity';
5
+ export * from './address.validator';
5
6
  export type { CreateEntityArgs } from './repository.types';
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export * from './abstract.validator.js';
2
+ export * from './address.validator.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkaly/api",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "description": "Shared TypeScript interfaces and enums for Merkaly API",
6
6
  "exports": {