@bringg/dashboard-sdk 9.52.0 → 9.53.0

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,3 @@
1
+ export declare enum RealTimeGeocodingEvents {
2
+ GEOCODING_CHANGED = "geocoding status changed"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RealTimeGeocodingEvents = void 0;
4
+ var RealTimeGeocodingEvents;
5
+ (function (RealTimeGeocodingEvents) {
6
+ RealTimeGeocodingEvents["GEOCODING_CHANGED"] = "geocoding status changed";
7
+ })(RealTimeGeocodingEvents = exports.RealTimeGeocodingEvents || (exports.RealTimeGeocodingEvents = {}));
8
+ //# sourceMappingURL=Geocoding.consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Geocoding.consts.js","sourceRoot":"","sources":["../../src/Geocoding/Geocoding.consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,yEAA8C,CAAA;AAC/C,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC"}
@@ -2,8 +2,11 @@ import { AutoCompleteResponse, BringgReverseGeocodedAddress, GetPlaceDetailsResp
2
2
  import Session from '../Services/Identity/Session';
3
3
  export default class GeocodingApi {
4
4
  private geocodingEntity;
5
+ private realTime;
5
6
  constructor(session: Session);
6
7
  autoComplete(address: string): Promise<AutoCompleteResponse>;
7
8
  getPlaceDetails(placeId: string): Promise<GetPlaceDetailsResponse>;
8
9
  reverseGeocode(lat: number, lng: number): Promise<BringgReverseGeocodedAddress>;
10
+ subscribeToEvent(eventHandle: any): void;
11
+ unsubscribeToEvent(eventHandle: any): void;
9
12
  }
@@ -3,10 +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
+ var StoreEntity_1 = require("../Core/StoreEntity");
6
7
  var Geocoding_1 = __importDefault(require("./Entity/Geocoding"));
8
+ var Geocoding_consts_1 = require("./Geocoding.consts");
7
9
  var GeocodingApi = /** @class */ (function () {
8
10
  function GeocodingApi(session) {
9
11
  this.geocodingEntity = new Geocoding_1.default(session);
12
+ this.realTime = new StoreEntity_1.RealTimeHandler(session.persistentConnection);
10
13
  }
11
14
  GeocodingApi.prototype.autoComplete = function (address) {
12
15
  return this.geocodingEntity.autoComplete(address);
@@ -17,6 +20,12 @@ var GeocodingApi = /** @class */ (function () {
17
20
  GeocodingApi.prototype.reverseGeocode = function (lat, lng) {
18
21
  return this.geocodingEntity.reverseGeocode(lat, lng);
19
22
  };
23
+ GeocodingApi.prototype.subscribeToEvent = function (eventHandle) {
24
+ return this.realTime.on(Geocoding_consts_1.RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);
25
+ };
26
+ GeocodingApi.prototype.unsubscribeToEvent = function (eventHandle) {
27
+ this.realTime.off(Geocoding_consts_1.RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);
28
+ };
20
29
  return GeocodingApi;
21
30
  }());
22
31
  exports.default = GeocodingApi;
@@ -1 +1 @@
1
- {"version":3,"file":"GeocodingApi.js","sourceRoot":"","sources":["../../src/Geocoding/GeocodingApi.ts"],"names":[],"mappings":";;;;;AAGA,iEAA2C;AAE3C;IAGC,sBAAY,OAAgB;QAC3B,IAAI,CAAC,eAAe,GAAG,IAAI,mBAAS,CAAC,OAAO,CAAC,CAAC;IAC/C,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;IACF,mBAAC;AAAD,CAAC,AAlBD,IAkBC"}
1
+ {"version":3,"file":"GeocodingApi.js","sourceRoot":"","sources":["../../src/Geocoding/GeocodingApi.ts"],"names":[],"mappings":";;;;;AAEA,mDAAsD;AAEtD,iEAA2C;AAC3C,uDAA6D;AAE7D;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,0CAAuB,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;IACjF,CAAC;IAEM,yCAAkB,GAAzB,UAA0B,WAAgB;QACzC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,0CAAuB,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.52.0';
59
+ var version = '9.53.0';
60
60
  function logErrorResponse(response) {
61
61
  var data = response.data, status = response.status;
62
62
  try {
@@ -10793,6 +10793,21 @@ exports["default"] = GeocodingEntity;
10793
10793
 
10794
10794
  /***/ }),
10795
10795
 
10796
+ /***/ 29091:
10797
+ /***/ ((__unused_webpack_module, exports) => {
10798
+
10799
+ "use strict";
10800
+
10801
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
10802
+ exports.RealTimeGeocodingEvents = void 0;
10803
+ var RealTimeGeocodingEvents;
10804
+ (function (RealTimeGeocodingEvents) {
10805
+ RealTimeGeocodingEvents["GEOCODING_CHANGED"] = "geocoding status changed";
10806
+ })(RealTimeGeocodingEvents = exports.RealTimeGeocodingEvents || (exports.RealTimeGeocodingEvents = {}));
10807
+ //# sourceMappingURL=Geocoding.consts.js.map
10808
+
10809
+ /***/ }),
10810
+
10796
10811
  /***/ 87206:
10797
10812
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
10798
10813
 
@@ -10802,10 +10817,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10802
10817
  return (mod && mod.__esModule) ? mod : { "default": mod };
10803
10818
  };
10804
10819
  Object.defineProperty(exports, "__esModule", ({ value: true }));
10820
+ var StoreEntity_1 = __webpack_require__(95574);
10805
10821
  var Geocoding_1 = __importDefault(__webpack_require__(84431));
10822
+ var Geocoding_consts_1 = __webpack_require__(29091);
10806
10823
  var GeocodingApi = /** @class */ (function () {
10807
10824
  function GeocodingApi(session) {
10808
10825
  this.geocodingEntity = new Geocoding_1.default(session);
10826
+ this.realTime = new StoreEntity_1.RealTimeHandler(session.persistentConnection);
10809
10827
  }
10810
10828
  GeocodingApi.prototype.autoComplete = function (address) {
10811
10829
  return this.geocodingEntity.autoComplete(address);
@@ -10816,6 +10834,12 @@ var GeocodingApi = /** @class */ (function () {
10816
10834
  GeocodingApi.prototype.reverseGeocode = function (lat, lng) {
10817
10835
  return this.geocodingEntity.reverseGeocode(lat, lng);
10818
10836
  };
10837
+ GeocodingApi.prototype.subscribeToEvent = function (eventHandle) {
10838
+ return this.realTime.on(Geocoding_consts_1.RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);
10839
+ };
10840
+ GeocodingApi.prototype.unsubscribeToEvent = function (eventHandle) {
10841
+ this.realTime.off(Geocoding_consts_1.RealTimeGeocodingEvents.GEOCODING_CHANGED, eventHandle);
10842
+ };
10819
10843
  return GeocodingApi;
10820
10844
  }());
10821
10845
  exports["default"] = GeocodingApi;
@@ -22401,7 +22425,7 @@ var lodash_1 = __webpack_require__(96486);
22401
22425
  var BringgException_1 = __webpack_require__(43605);
22402
22426
  var Logger_1 = __importDefault(__webpack_require__(55860));
22403
22427
  var abort_1 = __webpack_require__(34179);
22404
- var version = '9.52.0';
22428
+ var version = '9.53.0';
22405
22429
  function logErrorResponse(response) {
22406
22430
  var data = response.data, status = response.status;
22407
22431
  try {
@@ -39290,6 +39314,7 @@ var PrivilegeTypes;
39290
39314
  PrivilegeTypes["ALLOW_DISPATCHERS_TO_ADD_DISPATCHER"] = "allow_dispatchers_to_add_dispatcher";
39291
39315
  PrivilegeTypes["CHANGE_SKILLS"] = "change_skills";
39292
39316
  PrivilegeTypes["CREATE_SKILLS"] = "create_skills";
39317
+ PrivilegeTypes["ALLOW_USING_ROUTE_SIMULATOR"] = "allow_using_route_simulator";
39293
39318
  })(PrivilegeTypes || (exports.PrivilegeTypes = PrivilegeTypes = {}));
39294
39319
  exports.PRIVILEGES_DEFAULTS = (_a = {},
39295
39320
  _a[PrivilegeTypes.CANCEL_TASK] = true,
@@ -39478,6 +39503,7 @@ var RealtimeEvent;
39478
39503
  RealtimeEvent["ZipCodesImportDone"] = "zip_codes_import:done";
39479
39504
  RealtimeEvent["ServiceAreasImportDone"] = "service_areas_import:done";
39480
39505
  RealtimeEvent["AsyncOperationStatus"] = "async_operation_status";
39506
+ RealtimeEvent["WaypointGeocodingStatusChanged"] = "waypoint_geocoding:status_changed";
39481
39507
  })(RealtimeEvent || (exports.RealtimeEvent = RealtimeEvent = {}));
39482
39508
  //# sourceMappingURL=realtime_event.js.map
39483
39509