@wenex/sdk 1.0.55 → 1.0.56

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.
@@ -1,4 +1,4 @@
1
- export * from './nominatim.dto';
1
+ export * from './nominatim.interface';
2
2
  export * from './geometry.interface';
3
3
  export * from './location.interface';
4
- export * from './nominatim.serializer';
4
+ export * from './nominatim.interface';
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./nominatim.dto"), exports);
17
+ __exportStar(require("./nominatim.interface"), exports);
18
18
  __exportStar(require("./geometry.interface"), exports);
19
19
  __exportStar(require("./location.interface"), exports);
20
- __exportStar(require("./nominatim.serializer"), exports);
20
+ __exportStar(require("./nominatim.interface"), exports);
21
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,uDAAqC;AACrC,uDAAqC;AACrC,wDAAsC"}
@@ -1,4 +1,13 @@
1
1
  import type { BBox } from 'geojson';
2
+ export interface AddressLookup {
3
+ lat: number;
4
+ lon: number;
5
+ lang?: string;
6
+ }
7
+ export declare class GeocodeLookup {
8
+ query: string;
9
+ lang?: string;
10
+ }
2
11
  export declare class NominatimPlaceAddress {
3
12
  city: string;
4
13
  county: string;
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NominatimPlace = exports.NominatimPlaceAddress = void 0;
3
+ exports.NominatimPlace = exports.NominatimPlaceAddress = exports.GeocodeLookup = void 0;
4
+ class GeocodeLookup {
5
+ }
6
+ exports.GeocodeLookup = GeocodeLookup;
4
7
  class NominatimPlaceAddress {
5
8
  }
6
9
  exports.NominatimPlaceAddress = NominatimPlaceAddress;
7
10
  class NominatimPlace {
8
11
  }
9
12
  exports.NominatimPlace = NominatimPlace;
10
- //# sourceMappingURL=nominatim.serializer.js.map
13
+ //# sourceMappingURL=nominatim.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nominatim.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/nominatim.interface.ts"],"names":[],"mappings":";;;AAQA,MAAa,aAAa;CAGzB;AAHD,sCAGC;AAED,MAAa,qBAAqB;CAYjC;AAZD,sDAYC;AAED,MAAa,cAAc;CAQ1B;AARD,wCAQC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,10 +1,10 @@
1
1
  import type { AxiosInstance } from 'axios';
2
2
  import { RequestConfig, RestfulService } from '../../common/core/classes';
3
- import { AddressLookupDto, GeocodeLookupDto, Location, LocationDto, NominatimPlace } from '../../common/interfaces/logistic';
3
+ import { AddressLookup, GeocodeLookup, Location, LocationDto, NominatimPlace } from '../../common/interfaces/logistic';
4
4
  export declare class LocationsService<Properties extends object = object> extends RestfulService<Location<Properties>, LocationDto<Properties>> {
5
5
  protected axios: AxiosInstance;
6
6
  constructor(axios: AxiosInstance);
7
7
  static build<Properties extends object = object>(axios: AxiosInstance): LocationsService<Properties>;
8
- addressLookup(data: AddressLookupDto, config?: RequestConfig<NominatimPlace>): Promise<NominatimPlace>;
9
- geocodeLookup(data: GeocodeLookupDto, config?: RequestConfig<NominatimPlace>): Promise<NominatimPlace[]>;
8
+ addressLookup(data: AddressLookup, config?: RequestConfig<NominatimPlace>): Promise<NominatimPlace>;
9
+ geocodeLookup(data: GeocodeLookup, config?: RequestConfig<NominatimPlace>): Promise<NominatimPlace[]>;
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"locations.service.js","sourceRoot":"","sources":["../../src/services/logistic/locations.service.ts"],"names":[],"mappings":";;;AAGA,uDAA0E;AAG1E,MAAa,gBAAqD,SAAQ,wBAGzE;IACC,YAAsB,KAAoB;QACxC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QADN,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,gBAAgB,CAAa,KAAK,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,IAAsB,EAAE,MAAsC;QAChF,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAyC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IAClH,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,IAAsB,EAAE,MAAsC;QAChF,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAA0C,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IACpH,CAAC;CACF;AAnBD,4CAmBC"}
1
+ {"version":3,"file":"locations.service.js","sourceRoot":"","sources":["../../src/services/logistic/locations.service.ts"],"names":[],"mappings":";;;AAGA,uDAA0E;AAG1E,MAAa,gBAAqD,SAAQ,wBAGzE;IACC,YAAsB,KAAoB;QACxC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QADN,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,gBAAgB,CAAa,KAAK,CAAC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,IAAmB,EAAE,MAAsC;QAC7E,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAsC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/G,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,IAAmB,EAAE,MAAsC;QAC7E,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAuC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IACjH,CAAC;CACF;AAnBD,4CAmBC"}
@@ -1,9 +0,0 @@
1
- export interface AddressLookupDto {
2
- lat: number;
3
- lon: number;
4
- lang?: string;
5
- }
6
- export declare class GeocodeLookupDto {
7
- query: string;
8
- lang?: string;
9
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GeocodeLookupDto = void 0;
4
- class GeocodeLookupDto {
5
- }
6
- exports.GeocodeLookupDto = GeocodeLookupDto;
7
- //# sourceMappingURL=nominatim.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nominatim.dto.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/nominatim.dto.ts"],"names":[],"mappings":";;;AAMA,MAAa,gBAAgB;CAG5B;AAHD,4CAGC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"nominatim.serializer.js","sourceRoot":"","sources":["../../../../src/common/interfaces/logistic/locations/nominatim.serializer.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;CAYjC;AAZD,sDAYC;AAED,MAAa,cAAc;CAQ1B;AARD,wCAQC"}