@spooky-sync/core 0.0.1-canary.92 → 0.0.1-canary.94
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/index.js +3 -2
- package/dist/types.d.ts +5 -0
- package/package.json +3 -3
- package/src/modules/data/index.ts +4 -0
- package/src/types.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -924,6 +924,7 @@ var DataModule = class {
|
|
|
924
924
|
retry_strategy: options?.retry_strategy ?? "linear"
|
|
925
925
|
};
|
|
926
926
|
if (options?.timeout != null) record.timeout = options.timeout;
|
|
927
|
+
if (options?.delay != null) record.delay = options.delay;
|
|
927
928
|
if (options?.assignedTo) record.assigned_to = options.assignedTo;
|
|
928
929
|
const recordId = `${tableName}:${generateId()}`;
|
|
929
930
|
await this.create(recordId, record);
|
|
@@ -3484,8 +3485,8 @@ function parseBackendInfo(raw) {
|
|
|
3484
3485
|
|
|
3485
3486
|
//#endregion
|
|
3486
3487
|
//#region src/modules/devtools/index.ts
|
|
3487
|
-
const CORE_VERSION = "0.0.1-canary.
|
|
3488
|
-
const WASM_VERSION = "0.0.1-canary.
|
|
3488
|
+
const CORE_VERSION = "0.0.1-canary.94";
|
|
3489
|
+
const WASM_VERSION = "0.0.1-canary.94";
|
|
3489
3490
|
const SURREAL_VERSION = "3.0.3";
|
|
3490
3491
|
var DevToolsService = class {
|
|
3491
3492
|
eventsHistory = [];
|
package/dist/types.d.ts
CHANGED
|
@@ -515,6 +515,11 @@ interface RunOptions {
|
|
|
515
515
|
retry_strategy?: 'linear' | 'exponential';
|
|
516
516
|
/** Timeout in seconds for the backend HTTP call. Only used if the backend allows timeout override. */
|
|
517
517
|
timeout?: number;
|
|
518
|
+
/**
|
|
519
|
+
* Minimum delay in milliseconds before the job is eligible to run. While
|
|
520
|
+
* delayed the job stays pending (enqueued) and can still be killed.
|
|
521
|
+
*/
|
|
522
|
+
delay?: number;
|
|
518
523
|
}
|
|
519
524
|
/**
|
|
520
525
|
* Options for update operations.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spooky-sync/core",
|
|
3
|
-
"version": "0.0.1-canary.
|
|
3
|
+
"version": "0.0.1-canary.94",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@spooky-sync/query-builder": "0.0.1-canary.
|
|
63
|
-
"@spooky-sync/ssp-wasm": "0.0.1-canary.
|
|
62
|
+
"@spooky-sync/query-builder": "0.0.1-canary.94",
|
|
63
|
+
"@spooky-sync/ssp-wasm": "0.0.1-canary.94",
|
|
64
64
|
"@surrealdb/wasm": "^3.0.3",
|
|
65
65
|
"fast-json-patch": "^3.1.1",
|
|
66
66
|
"loro-crdt": "^1.5.6",
|
|
@@ -871,6 +871,10 @@ export class DataModule<S extends SchemaStructure> {
|
|
|
871
871
|
record.timeout = options.timeout;
|
|
872
872
|
}
|
|
873
873
|
|
|
874
|
+
if (options?.delay != null) {
|
|
875
|
+
record.delay = options.delay;
|
|
876
|
+
}
|
|
877
|
+
|
|
874
878
|
if (options?.assignedTo) {
|
|
875
879
|
record.assigned_to = options.assignedTo;
|
|
876
880
|
}
|
package/src/types.ts
CHANGED
|
@@ -386,6 +386,11 @@ export interface RunOptions {
|
|
|
386
386
|
retry_strategy?: 'linear' | 'exponential';
|
|
387
387
|
/** Timeout in seconds for the backend HTTP call. Only used if the backend allows timeout override. */
|
|
388
388
|
timeout?: number;
|
|
389
|
+
/**
|
|
390
|
+
* Minimum delay in milliseconds before the job is eligible to run. While
|
|
391
|
+
* delayed the job stays pending (enqueued) and can still be killed.
|
|
392
|
+
*/
|
|
393
|
+
delay?: number;
|
|
389
394
|
}
|
|
390
395
|
|
|
391
396
|
/**
|