@overmap-ai/core 1.0.60-sdk-refactor.10 → 1.0.60-sdk-refactor.12
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/overmap-core.js
CHANGED
|
@@ -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,
|
|
@@ -15411,20 +15425,6 @@ const initSDK = (store, sdk) => {
|
|
|
15411
15425
|
setClientStore(store);
|
|
15412
15426
|
return sdkInstance;
|
|
15413
15427
|
};
|
|
15414
|
-
const CLASS_NAME_TO_SERVICE$1 = {};
|
|
15415
|
-
class BaseService {
|
|
15416
|
-
constructor(sdk) {
|
|
15417
|
-
__publicField(this, "client");
|
|
15418
|
-
CLASS_NAME_TO_SERVICE$1[this.constructor.name] = this;
|
|
15419
|
-
this.client = sdk;
|
|
15420
|
-
}
|
|
15421
|
-
async enqueueRequest(requestDetails) {
|
|
15422
|
-
return this.client.enqueueRequest(requestDetails, this.host, this.constructor.name);
|
|
15423
|
-
}
|
|
15424
|
-
dispatch(action) {
|
|
15425
|
-
this.client.store.dispatch(action);
|
|
15426
|
-
}
|
|
15427
|
-
}
|
|
15428
15428
|
class BaseAuthService extends BaseService {
|
|
15429
15429
|
constructor(sdk) {
|
|
15430
15430
|
super(sdk);
|
|
@@ -15607,13 +15607,10 @@ class JWTService extends BaseAuthService {
|
|
|
15607
15607
|
return void 0;
|
|
15608
15608
|
}
|
|
15609
15609
|
this.setTokens(tokens);
|
|
15610
|
-
this.dispatch(setLoggedIn(true));
|
|
15611
|
-
this.dispatch({ type: "rehydrated/setRehydrated", payload: true });
|
|
15612
15610
|
});
|
|
15613
15611
|
return Promise.race([timeoutPromise, successPromise]);
|
|
15614
15612
|
}
|
|
15615
15613
|
}
|
|
15616
|
-
const CLASS_NAME_TO_SERVICE = {};
|
|
15617
15614
|
class BaseApiService extends BaseService {
|
|
15618
15615
|
constructor(sdk, auth) {
|
|
15619
15616
|
super(sdk);
|
|
@@ -18688,7 +18685,6 @@ export {
|
|
|
18688
18685
|
BaseSDK,
|
|
18689
18686
|
BooleanField,
|
|
18690
18687
|
BooleanInput,
|
|
18691
|
-
CLASS_NAME_TO_SERVICE,
|
|
18692
18688
|
CategoryService,
|
|
18693
18689
|
ColorPicker,
|
|
18694
18690
|
Colors,
|