@wisemen/address 0.2.1 → 0.2.3

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.
@@ -3,12 +3,13 @@ import { AddressCommand } from './address-command.js';
3
3
  export declare class AddressCommandBuilder {
4
4
  private command;
5
5
  constructor();
6
- withCountry(country: string): this;
7
- withCity(city: string): this;
8
- withPostalCode(postalCode: string): this;
9
- withStreetName(streetName: string): this;
10
- withStreetNumber(streetNumber: string): this;
11
- withUnit(unit: string): this;
12
- withCoordinates(coordinates: CoordinatesCommand): this;
6
+ withPlaceId(placeId: string | null): this;
7
+ withCountry(country: string | null): this;
8
+ withCity(city: string | null): this;
9
+ withPostalCode(postalCode: string | null): this;
10
+ withStreetName(streetName: string | null): this;
11
+ withStreetNumber(streetNumber: string | null): this;
12
+ withUnit(unit: string | null): this;
13
+ withCoordinates(coordinates: CoordinatesCommand | null): this;
13
14
  build(): AddressCommand;
14
15
  }
@@ -4,6 +4,10 @@ export class AddressCommandBuilder {
4
4
  constructor() {
5
5
  this.command = new AddressCommand();
6
6
  }
7
+ withPlaceId(placeId) {
8
+ this.command.placeId = placeId;
9
+ return this;
10
+ }
7
11
  withCountry(country) {
8
12
  this.command.country = country;
9
13
  return this;
@@ -1 +1 @@
1
- {"version":3,"file":"address-command.builder.js","sourceRoot":"","sources":["../lib/address-command.builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,OAAO,qBAAqB;IACxB,OAAO,CAAgB;IAE/B;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,EAAE,CAAA;IACrC,CAAC;IAED,WAAW,CAAE,OAAe;QAC1B,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAA;QAE9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,CAAE,IAAY;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAA;QAExB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,cAAc,CAAE,UAAkB;QAChC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;QAEpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,cAAc,CAAE,UAAkB;QAChC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;QAEpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,gBAAgB,CAAE,YAAoB;QACpC,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;QAExC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,CAAE,IAAY;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAA;QAExB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,eAAe,CAAE,WAA+B;QAC9C,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,WAAW,CAAA;QAEtC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF"}
1
+ {"version":3,"file":"address-command.builder.js","sourceRoot":"","sources":["../lib/address-command.builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,OAAO,qBAAqB;IACxB,OAAO,CAAgB;IAE/B;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,EAAE,CAAA;IACrC,CAAC;IAED,WAAW,CAAE,OAAsB;QACjC,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAA;QAE9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,WAAW,CAAE,OAAsB;QACjC,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAA;QAE9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,CAAE,IAAmB;QAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAA;QAExB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,cAAc,CAAE,UAAyB;QACvC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;QAEpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,cAAc,CAAE,UAAyB;QACvC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;QAEpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,gBAAgB,CAAE,YAA2B;QAC3C,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;QAExC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,CAAE,IAAmB;QAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAA;QAExB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,eAAe,CAAE,WAAsC;QACrD,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,WAAW,CAAA;QAEtC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF"}
@@ -8,43 +8,49 @@ export class AddressCommandBuilder {
8
8
  this.command = new AddressCommand()
9
9
  }
10
10
 
11
- withCountry (country: string): this {
11
+ withPlaceId (placeId: string | null): this {
12
+ this.command.placeId = placeId
13
+
14
+ return this
15
+ }
16
+
17
+ withCountry (country: string | null): this {
12
18
  this.command.country = country
13
19
 
14
20
  return this
15
21
  }
16
22
 
17
- withCity (city: string): this {
23
+ withCity (city: string | null): this {
18
24
  this.command.city = city
19
25
 
20
26
  return this
21
27
  }
22
28
 
23
- withPostalCode (postalCode: string): this {
29
+ withPostalCode (postalCode: string | null): this {
24
30
  this.command.postalCode = postalCode
25
31
 
26
32
  return this
27
33
  }
28
34
 
29
- withStreetName (streetName: string): this {
35
+ withStreetName (streetName: string | null): this {
30
36
  this.command.streetName = streetName
31
37
 
32
38
  return this
33
39
  }
34
40
 
35
- withStreetNumber (streetNumber: string): this {
41
+ withStreetNumber (streetNumber: string | null): this {
36
42
  this.command.streetNumber = streetNumber
37
43
 
38
44
  return this
39
45
  }
40
46
 
41
- withUnit (unit: string): this {
47
+ withUnit (unit: string | null): this {
42
48
  this.command.unit = unit
43
49
 
44
50
  return this
45
51
  }
46
52
 
47
- withCoordinates (coordinates: CoordinatesCommand): this {
53
+ withCoordinates (coordinates: CoordinatesCommand | null): this {
48
54
  this.command.coordinates = coordinates
49
55
 
50
56
  return this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wisemen/address",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"