@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.
|
@@ -14863,6 +14863,20 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
14863
14863
|
function getClientSDK() {
|
|
14864
14864
|
return clientSDK;
|
|
14865
14865
|
}
|
|
14866
|
+
const CLASS_NAME_TO_SERVICE = {};
|
|
14867
|
+
class BaseService {
|
|
14868
|
+
constructor(sdk) {
|
|
14869
|
+
__publicField(this, "client");
|
|
14870
|
+
CLASS_NAME_TO_SERVICE[this.constructor.name] = this;
|
|
14871
|
+
this.client = sdk;
|
|
14872
|
+
}
|
|
14873
|
+
async enqueueRequest(requestDetails) {
|
|
14874
|
+
return this.client.enqueueRequest(requestDetails, this.host, this.constructor.name);
|
|
14875
|
+
}
|
|
14876
|
+
dispatch(action) {
|
|
14877
|
+
this.client.store.dispatch(action);
|
|
14878
|
+
}
|
|
14879
|
+
}
|
|
14866
14880
|
const VERSION_REDUCER_KEY = "versioning";
|
|
14867
14881
|
const overmapReducers = {
|
|
14868
14882
|
// TODO: attachmentReducer,
|
|
@@ -15057,6 +15071,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
15057
15071
|
}
|
|
15058
15072
|
async function performRequest(action, client) {
|
|
15059
15073
|
const serviceOfRequest = CLASS_NAME_TO_SERVICE[action.meta.offline.effect.serviceName];
|
|
15074
|
+
console.debug(CLASS_NAME_TO_SERVICE, action.meta.offline.effect.serviceName, serviceOfRequest);
|
|
15060
15075
|
if (!serviceOfRequest) {
|
|
15061
15076
|
throw new Error(`Service ${action.meta.offline.effect.serviceName} not found`);
|
|
15062
15077
|
}
|
|
@@ -15399,20 +15414,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
15399
15414
|
setClientStore(store);
|
|
15400
15415
|
return sdkInstance;
|
|
15401
15416
|
};
|
|
15402
|
-
const CLASS_NAME_TO_SERVICE$1 = {};
|
|
15403
|
-
class BaseService {
|
|
15404
|
-
constructor(sdk) {
|
|
15405
|
-
__publicField(this, "client");
|
|
15406
|
-
CLASS_NAME_TO_SERVICE$1[this.constructor.name] = this;
|
|
15407
|
-
this.client = sdk;
|
|
15408
|
-
}
|
|
15409
|
-
async enqueueRequest(requestDetails) {
|
|
15410
|
-
return this.client.enqueueRequest(requestDetails, this.host, this.constructor.name);
|
|
15411
|
-
}
|
|
15412
|
-
dispatch(action) {
|
|
15413
|
-
this.client.store.dispatch(action);
|
|
15414
|
-
}
|
|
15415
|
-
}
|
|
15416
15417
|
class BaseAuthService extends BaseService {
|
|
15417
15418
|
constructor(sdk) {
|
|
15418
15419
|
super(sdk);
|
|
@@ -15601,7 +15602,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
15601
15602
|
return Promise.race([timeoutPromise, successPromise]);
|
|
15602
15603
|
}
|
|
15603
15604
|
}
|
|
15604
|
-
const CLASS_NAME_TO_SERVICE = {};
|
|
15605
15605
|
class BaseApiService extends BaseService {
|
|
15606
15606
|
constructor(sdk, auth) {
|
|
15607
15607
|
super(sdk);
|
|
@@ -18675,7 +18675,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
18675
18675
|
exports2.BaseSDK = BaseSDK;
|
|
18676
18676
|
exports2.BooleanField = BooleanField;
|
|
18677
18677
|
exports2.BooleanInput = BooleanInput;
|
|
18678
|
-
exports2.CLASS_NAME_TO_SERVICE = CLASS_NAME_TO_SERVICE;
|
|
18679
18678
|
exports2.CategoryService = CategoryService;
|
|
18680
18679
|
exports2.ColorPicker = ColorPicker;
|
|
18681
18680
|
exports2.Colors = Colors;
|