@cadenza.io/service 2.17.28 → 2.17.30
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/browser/index.js +66 -54
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +25 -13
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.js +66 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -248,6 +248,9 @@ var DatabaseTask = class extends DeputyTask {
|
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
+
// src/registry/ServiceRegistry.ts
|
|
252
|
+
import { GraphContext as GraphContext2 } from "@cadenza.io/core";
|
|
253
|
+
|
|
251
254
|
// src/utils/environment.ts
|
|
252
255
|
var isNode = typeof process !== "undefined" && process.versions?.node != null;
|
|
253
256
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
@@ -777,11 +780,15 @@ function resolveServiceRegistryInsertTask(tableName, queryData = {}, options = {
|
|
|
777
780
|
delegationContext.__metadata.__skipRemoteExecution = delegationContext.__metadata.__skipRemoteExecution ?? delegationContext.__skipRemoteExecution ?? false;
|
|
778
781
|
delegationContext.__metadata.__blockRemoteExecution = delegationContext.__metadata.__blockRemoteExecution ?? delegationContext.__blockRemoteExecution ?? false;
|
|
779
782
|
return Promise.resolve(
|
|
780
|
-
targetTask.
|
|
781
|
-
delegationContext,
|
|
783
|
+
targetTask.execute(
|
|
784
|
+
new GraphContext2(delegationContext),
|
|
782
785
|
emit,
|
|
783
786
|
inquire,
|
|
784
|
-
progressCallback
|
|
787
|
+
progressCallback,
|
|
788
|
+
{
|
|
789
|
+
nodeId: delegationContext.__previousTaskExecutionId ?? delegationContext.__metadata?.__previousTaskExecutionId ?? `service-registry-${tableName}`,
|
|
790
|
+
routineExecId: delegationContext.__routineExecId ?? delegationContext.__metadata?.__routineExecId ?? delegationContext.__metadata?.__localRoutineExecId ?? "service-registry"
|
|
791
|
+
}
|
|
785
792
|
)
|
|
786
793
|
).then(
|
|
787
794
|
(result) => normalizeServiceRegistryInsertResult(
|
|
@@ -3374,9 +3381,9 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
3374
3381
|
};
|
|
3375
3382
|
|
|
3376
3383
|
// src/graph/definition/SignalTransmissionTask.ts
|
|
3377
|
-
import { Task as
|
|
3384
|
+
import { Task as Task3 } from "@cadenza.io/core";
|
|
3378
3385
|
import { v4 as uuid3 } from "uuid";
|
|
3379
|
-
var SignalTransmissionTask = class extends
|
|
3386
|
+
var SignalTransmissionTask = class extends Task3 {
|
|
3380
3387
|
/**
|
|
3381
3388
|
* Constructs a new instance of the class and initializes it with the provided parameters.
|
|
3382
3389
|
*
|
|
@@ -8289,6 +8296,7 @@ function tableFieldTypeToSchemaType(type) {
|
|
|
8289
8296
|
import { v4 as uuid5 } from "uuid";
|
|
8290
8297
|
|
|
8291
8298
|
// src/graph/controllers/GraphSyncController.ts
|
|
8299
|
+
import { GraphContext as GraphContext4 } from "@cadenza.io/core";
|
|
8292
8300
|
var ACTOR_TASK_METADATA = /* @__PURE__ */ Symbol.for("@cadenza.io/core/actor-task-meta");
|
|
8293
8301
|
function getActorTaskRuntimeMetadata(taskFunction) {
|
|
8294
8302
|
if (typeof taskFunction !== "function") {
|
|
@@ -8426,17 +8434,21 @@ function resolveSyncInsertTask(isCadenzaDBReady, tableName, queryData = {}, opti
|
|
|
8426
8434
|
if (!targetTask) {
|
|
8427
8435
|
return false;
|
|
8428
8436
|
}
|
|
8429
|
-
return targetTask.
|
|
8430
|
-
{
|
|
8437
|
+
return targetTask.execute(
|
|
8438
|
+
new GraphContext4({
|
|
8431
8439
|
...ctx,
|
|
8432
8440
|
queryData: buildSyncInsertQueryData(
|
|
8433
8441
|
ctx,
|
|
8434
8442
|
queryData
|
|
8435
8443
|
)
|
|
8436
|
-
},
|
|
8444
|
+
}),
|
|
8437
8445
|
emit,
|
|
8438
8446
|
inquire,
|
|
8439
|
-
progressCallback
|
|
8447
|
+
progressCallback,
|
|
8448
|
+
{
|
|
8449
|
+
nodeId: ctx.__previousTaskExecutionId ?? ctx.__metadata?.__previousTaskExecutionId ?? `graph-sync-${tableName}`,
|
|
8450
|
+
routineExecId: ctx.__routineExecId ?? ctx.__metadata?.__routineExecId ?? ctx.__metadata?.__localRoutineExecId ?? "graph-sync"
|
|
8451
|
+
}
|
|
8440
8452
|
);
|
|
8441
8453
|
},
|
|
8442
8454
|
`Routes graph sync inserts for ${tableName} through the local authority task when available.`,
|
|
@@ -11392,8 +11404,8 @@ import {
|
|
|
11392
11404
|
Actor as Actor2,
|
|
11393
11405
|
DebounceTask as DebounceTask2,
|
|
11394
11406
|
EphemeralTask as EphemeralTask2,
|
|
11395
|
-
GraphRoutine as
|
|
11396
|
-
Task as
|
|
11407
|
+
GraphRoutine as GraphRoutine3,
|
|
11408
|
+
Task as Task6
|
|
11397
11409
|
} from "@cadenza.io/core";
|
|
11398
11410
|
|
|
11399
11411
|
// src/ssr/createSSRInquiryBridge.ts
|
|
@@ -11676,13 +11688,13 @@ export {
|
|
|
11676
11688
|
DeputyTask,
|
|
11677
11689
|
EphemeralTask2 as EphemeralTask,
|
|
11678
11690
|
GraphMetadataController,
|
|
11679
|
-
|
|
11691
|
+
GraphRoutine3 as GraphRoutine,
|
|
11680
11692
|
RestController,
|
|
11681
11693
|
ServiceRegistry,
|
|
11682
11694
|
SignalController,
|
|
11683
11695
|
SignalTransmissionTask,
|
|
11684
11696
|
SocketController,
|
|
11685
|
-
|
|
11697
|
+
Task6 as Task,
|
|
11686
11698
|
createSSRInquiryBridge,
|
|
11687
11699
|
index_default as default
|
|
11688
11700
|
};
|