@bringg/dashboard-sdk 9.50.14-pre.0 → 9.50.14-pre.1
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.
- package/dist/Geocoding/GeocodingApi.d.ts +3 -0
- package/dist/Geocoding/GeocodingApi.js +7 -3
- package/dist/Geocoding/GeocodingApi.js.map +1 -1
- package/dist/Services/ServiceRequest.js +1 -1
- package/dist/bringg-dashboard-sdk-cjs2.js +8 -4
- package/dist/bringg-dashboard-sdk-cjs2.js.map +1 -1
- package/dist/bringg-dashboard-sdk.js +2 -2
- package/dist/bringg-dashboard-sdk.min.js +1 -1
- package/dist/bringg-dashboard-sdk.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { AutoCompleteResponse, BringgReverseGeocodedAddress, GetPlaceDetailsResponse } from '@bringg/types';
|
|
2
2
|
import Session from '../Services/Identity/Session';
|
|
3
|
+
export declare enum RealTimeGeocodingEvents {
|
|
4
|
+
GEOCODING_CHANGED = "geocoding status changed"
|
|
5
|
+
}
|
|
3
6
|
export default class GeocodingApi {
|
|
4
7
|
private geocodingEntity;
|
|
5
8
|
private realTime;
|
|
@@ -3,9 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
6
|
+
exports.RealTimeGeocodingEvents = void 0;
|
|
7
7
|
var StoreEntity_1 = require("../Core/StoreEntity");
|
|
8
8
|
var Geocoding_1 = __importDefault(require("./Entity/Geocoding"));
|
|
9
|
+
var RealTimeGeocodingEvents;
|
|
10
|
+
(function (RealTimeGeocodingEvents) {
|
|
11
|
+
RealTimeGeocodingEvents["GEOCODING_CHANGED"] = "geocoding status changed";
|
|
12
|
+
})(RealTimeGeocodingEvents = exports.RealTimeGeocodingEvents || (exports.RealTimeGeocodingEvents = {}));
|
|
9
13
|
var GeocodingApi = /** @class */ (function () {
|
|
10
14
|
function GeocodingApi(session) {
|
|
11
15
|
this.geocodingEntity = new Geocoding_1.default(session);
|
|
@@ -21,10 +25,10 @@ var GeocodingApi = /** @class */ (function () {
|
|
|
21
25
|
return this.geocodingEntity.reverseGeocode(lat, lng);
|
|
22
26
|
};
|
|
23
27
|
GeocodingApi.prototype.subscribeToEvent = function (eventHandle) {
|
|
24
|
-
return this.realTime.on(
|
|
28
|
+
return this.realTime.on(RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);
|
|
25
29
|
};
|
|
26
30
|
GeocodingApi.prototype.unsubscribeToEvent = function (eventHandle) {
|
|
27
|
-
this.realTime.off(
|
|
31
|
+
this.realTime.off(RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);
|
|
28
32
|
};
|
|
29
33
|
return GeocodingApi;
|
|
30
34
|
}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeocodingApi.js","sourceRoot":"","sources":["../../src/Geocoding/GeocodingApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GeocodingApi.js","sourceRoot":"","sources":["../../src/Geocoding/GeocodingApi.ts"],"names":[],"mappings":";;;;;;AASA,mDAAsD;AAItD,iEAA2C;AAE3C,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,yEAA8C,CAAA;AAC/C,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAED;IAIC,sBAAY,OAAgB;QAC3B,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAS,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAAe,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnE,CAAC;IAEM,mCAAY,GAAnB,UAAoB,OAAe;QAClC,OAAO,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;IAEM,sCAAe,GAAtB,UAAuB,OAAe;QACrC,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;IAEM,qCAAc,GAArB,UAAsB,GAAW,EAAE,GAAW;QAC7C,OAAO,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACtD,CAAC;IAEM,uCAAgB,GAAvB,UAAwB,WAAgB;QACvC,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;IACjF,CAAC;IAEM,yCAAkB,GAAzB,UAA0B,WAAgB;QACzC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;IAC3E,CAAC;IACF,mBAAC;AAAD,CAAC,AA5BD,IA4BC"}
|
|
@@ -56,7 +56,7 @@ var lodash_1 = require("lodash");
|
|
|
56
56
|
var BringgException_1 = require("../Core/BringgException");
|
|
57
57
|
var Logger_1 = __importDefault(require("../Core/Logger"));
|
|
58
58
|
var abort_1 = require("../utils/abort");
|
|
59
|
-
var version = '9.50.14-pre.
|
|
59
|
+
var version = '9.50.14-pre.1';
|
|
60
60
|
function logErrorResponse(response) {
|
|
61
61
|
var data = response.data, status = response.status;
|
|
62
62
|
try {
|
|
@@ -10802,9 +10802,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10802
10802
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10803
10803
|
};
|
|
10804
10804
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10805
|
-
|
|
10805
|
+
exports.RealTimeGeocodingEvents = void 0;
|
|
10806
10806
|
var StoreEntity_1 = __webpack_require__(95574);
|
|
10807
10807
|
var Geocoding_1 = __importDefault(__webpack_require__(84431));
|
|
10808
|
+
var RealTimeGeocodingEvents;
|
|
10809
|
+
(function (RealTimeGeocodingEvents) {
|
|
10810
|
+
RealTimeGeocodingEvents["GEOCODING_CHANGED"] = "geocoding status changed";
|
|
10811
|
+
})(RealTimeGeocodingEvents = exports.RealTimeGeocodingEvents || (exports.RealTimeGeocodingEvents = {}));
|
|
10808
10812
|
var GeocodingApi = /** @class */ (function () {
|
|
10809
10813
|
function GeocodingApi(session) {
|
|
10810
10814
|
this.geocodingEntity = new Geocoding_1.default(session);
|
|
@@ -10820,10 +10824,10 @@ var GeocodingApi = /** @class */ (function () {
|
|
|
10820
10824
|
return this.geocodingEntity.reverseGeocode(lat, lng);
|
|
10821
10825
|
};
|
|
10822
10826
|
GeocodingApi.prototype.subscribeToEvent = function (eventHandle) {
|
|
10823
|
-
return this.realTime.on(
|
|
10827
|
+
return this.realTime.on(RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);
|
|
10824
10828
|
};
|
|
10825
10829
|
GeocodingApi.prototype.unsubscribeToEvent = function (eventHandle) {
|
|
10826
|
-
this.realTime.off(
|
|
10830
|
+
this.realTime.off(RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);
|
|
10827
10831
|
};
|
|
10828
10832
|
return GeocodingApi;
|
|
10829
10833
|
}());
|
|
@@ -22410,7 +22414,7 @@ var lodash_1 = __webpack_require__(96486);
|
|
|
22410
22414
|
var BringgException_1 = __webpack_require__(43605);
|
|
22411
22415
|
var Logger_1 = __importDefault(__webpack_require__(55860));
|
|
22412
22416
|
var abort_1 = __webpack_require__(34179);
|
|
22413
|
-
var version = '9.50.14-pre.
|
|
22417
|
+
var version = '9.50.14-pre.1';
|
|
22414
22418
|
function logErrorResponse(response) {
|
|
22415
22419
|
var data = response.data, status = response.status;
|
|
22416
22420
|
try {
|