@overmap-ai/core 1.0.60-sdk-refactor.9 → 1.0.60-sdk-refactor.11

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.
@@ -14874,6 +14874,20 @@ function setClientSDK(sdkCtor) {
14874
14874
  function getClientSDK() {
14875
14875
  return clientSDK;
14876
14876
  }
14877
+ const CLASS_NAME_TO_SERVICE = {};
14878
+ class BaseService {
14879
+ constructor(sdk) {
14880
+ __publicField(this, "client");
14881
+ CLASS_NAME_TO_SERVICE[this.constructor.name] = this;
14882
+ this.client = sdk;
14883
+ }
14884
+ async enqueueRequest(requestDetails) {
14885
+ return this.client.enqueueRequest(requestDetails, this.host, this.constructor.name);
14886
+ }
14887
+ dispatch(action) {
14888
+ this.client.store.dispatch(action);
14889
+ }
14890
+ }
14877
14891
  const VERSION_REDUCER_KEY = "versioning";
14878
14892
  const overmapReducers = {
14879
14893
  // TODO: attachmentReducer,
@@ -15068,6 +15082,7 @@ function extractResponseFromError(error2) {
15068
15082
  }
15069
15083
  async function performRequest(action, client) {
15070
15084
  const serviceOfRequest = CLASS_NAME_TO_SERVICE[action.meta.offline.effect.serviceName];
15085
+ console.debug(CLASS_NAME_TO_SERVICE, action.meta.offline.effect.serviceName, serviceOfRequest);
15071
15086
  if (!serviceOfRequest) {
15072
15087
  throw new Error(`Service ${action.meta.offline.effect.serviceName} not found`);
15073
15088
  }
@@ -15410,20 +15425,6 @@ const initSDK = (store, sdk) => {
15410
15425
  setClientStore(store);
15411
15426
  return sdkInstance;
15412
15427
  };
15413
- const CLASS_NAME_TO_SERVICE$1 = {};
15414
- class BaseService {
15415
- constructor(sdk) {
15416
- __publicField(this, "client");
15417
- CLASS_NAME_TO_SERVICE$1[this.constructor.name] = this;
15418
- this.client = sdk;
15419
- }
15420
- async enqueueRequest(requestDetails) {
15421
- return this.client.enqueueRequest(requestDetails, this.host, this.constructor.name);
15422
- }
15423
- dispatch(action) {
15424
- this.client.store.dispatch(action);
15425
- }
15426
- }
15427
15428
  class BaseAuthService extends BaseService {
15428
15429
  constructor(sdk) {
15429
15430
  super(sdk);
@@ -15612,7 +15613,6 @@ class JWTService extends BaseAuthService {
15612
15613
  return Promise.race([timeoutPromise, successPromise]);
15613
15614
  }
15614
15615
  }
15615
- const CLASS_NAME_TO_SERVICE = {};
15616
15616
  class BaseApiService extends BaseService {
15617
15617
  constructor(sdk, auth) {
15618
15618
  super(sdk);
@@ -18687,7 +18687,6 @@ export {
18687
18687
  BaseSDK,
18688
18688
  BooleanField,
18689
18689
  BooleanInput,
18690
- CLASS_NAME_TO_SERVICE,
18691
18690
  CategoryService,
18692
18691
  ColorPicker,
18693
18692
  Colors,