@wisemen/address 0.2.1 → 0.2.2

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,12 @@ 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
+ withCountry(country: string | null): this;
7
+ withCity(city: string | null): this;
8
+ withPostalCode(postalCode: string | null): this;
9
+ withStreetName(streetName: string | null): this;
10
+ withStreetNumber(streetNumber: string | null): this;
11
+ withUnit(unit: string | null): this;
12
+ withCoordinates(coordinates: CoordinatesCommand | null): this;
13
13
  build(): AddressCommand;
14
14
  }
@@ -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,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,43 @@ export class AddressCommandBuilder {
8
8
  this.command = new AddressCommand()
9
9
  }
10
10
 
11
- withCountry (country: string): this {
11
+ withCountry (country: string | null): this {
12
12
  this.command.country = country
13
13
 
14
14
  return this
15
15
  }
16
16
 
17
- withCity (city: string): this {
17
+ withCity (city: string | null): this {
18
18
  this.command.city = city
19
19
 
20
20
  return this
21
21
  }
22
22
 
23
- withPostalCode (postalCode: string): this {
23
+ withPostalCode (postalCode: string | null): this {
24
24
  this.command.postalCode = postalCode
25
25
 
26
26
  return this
27
27
  }
28
28
 
29
- withStreetName (streetName: string): this {
29
+ withStreetName (streetName: string | null): this {
30
30
  this.command.streetName = streetName
31
31
 
32
32
  return this
33
33
  }
34
34
 
35
- withStreetNumber (streetNumber: string): this {
35
+ withStreetNumber (streetNumber: string | null): this {
36
36
  this.command.streetNumber = streetNumber
37
37
 
38
38
  return this
39
39
  }
40
40
 
41
- withUnit (unit: string): this {
41
+ withUnit (unit: string | null): this {
42
42
  this.command.unit = unit
43
43
 
44
44
  return this
45
45
  }
46
46
 
47
- withCoordinates (coordinates: CoordinatesCommand): this {
47
+ withCoordinates (coordinates: CoordinatesCommand | null): this {
48
48
  this.command.coordinates = coordinates
49
49
 
50
50
  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.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"