convex-ents 0.10.0 → 0.11.0
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/deletion.d.ts +1 -1
- package/dist/functions.d.ts +1 -1
- package/dist/functions.js +18 -491
- package/dist/functions.js.map +1 -1
- package/dist/{index-olos0Rx-.d.ts → index-kwzjMMHy.d.ts} +6 -375
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -657
- package/dist/index.js.map +1 -1
- package/dist/writer.d.ts +2 -2
- package/dist/writer.js +8 -11
- package/dist/writer.js.map +1 -1
- package/package.json +1 -1
- package/dist/actions.d.ts +0 -6
- package/dist/actions.js +0 -662
- package/dist/actions.js.map +0 -1
package/dist/writer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'convex/server';
|
|
2
2
|
import 'convex/values';
|
|
3
|
-
export { E as EdgeChanges, a as WithEdgeInserts, c as WithEdgePatches, b as WithEdges, W as WriterImplBase } from './index-
|
|
3
|
+
export { E as EdgeChanges, a as WithEdgeInserts, c as WithEdgePatches, b as WithEdges, W as WriterImplBase } from './index-kwzjMMHy.js';
|
|
4
4
|
import './schema.js';
|
|
5
|
-
import './shared.js';
|
|
6
5
|
import './deletion.js';
|
|
6
|
+
import './shared.js';
|
package/dist/writer.js
CHANGED
|
@@ -23,18 +23,10 @@ __export(writer_exports, {
|
|
|
23
23
|
WriterImplBase: () => WriterImplBase
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(writer_exports);
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
// src/actions.ts
|
|
29
|
-
var import_server = require("convex/server");
|
|
30
|
-
|
|
31
|
-
// src/shared.ts
|
|
32
|
-
function getEdgeDefinitions(entDefinitions, table) {
|
|
33
|
-
return entDefinitions[table].edges;
|
|
34
|
-
}
|
|
26
|
+
var import_server2 = require("convex/server");
|
|
35
27
|
|
|
36
28
|
// src/schema.ts
|
|
37
|
-
var
|
|
29
|
+
var import_server = require("convex/server");
|
|
38
30
|
var import_values = require("convex/values");
|
|
39
31
|
function edgeCompoundIndexName(edgeDefinition) {
|
|
40
32
|
return edgeCompoundIndexNameRaw(edgeDefinition.field, edgeDefinition.ref);
|
|
@@ -43,6 +35,11 @@ function edgeCompoundIndexNameRaw(idA, idB) {
|
|
|
43
35
|
return `${idA}_${idB}`;
|
|
44
36
|
}
|
|
45
37
|
|
|
38
|
+
// src/shared.ts
|
|
39
|
+
function getEdgeDefinitions(entDefinitions, table) {
|
|
40
|
+
return entDefinitions[table].edges;
|
|
41
|
+
}
|
|
42
|
+
|
|
46
43
|
// src/functions.ts
|
|
47
44
|
var PromiseQueryOrNullImpl = class _PromiseQueryOrNullImpl extends Promise {
|
|
48
45
|
constructor(ctx, entDefinitions, table, retrieve) {
|
|
@@ -1095,7 +1092,7 @@ var WriterImplBase = class _WriterImplBase {
|
|
|
1095
1092
|
}
|
|
1096
1093
|
await this.writeEdges(id, edges, isDeletingSoftly);
|
|
1097
1094
|
if (deletionConfig !== void 0 && deletionConfig.type === "scheduled") {
|
|
1098
|
-
const fnRef = this.ctx.scheduledDelete ?? (0,
|
|
1095
|
+
const fnRef = this.ctx.scheduledDelete ?? (0, import_server2.makeFunctionReference)(
|
|
1099
1096
|
"functions:scheduledDelete"
|
|
1100
1097
|
);
|
|
1101
1098
|
await this.ctx.scheduler.runAfter(deletionConfig.delayMs ?? 0, fnRef, {
|