@warp-drive-mirror/core 5.10.0-alpha.10 → 5.10.0-alpha.13
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/README.md +116 -6
- package/dist/{-private-CjK1Dmuh.js → -private-BpyvBYFj.js} +508 -144
- package/dist/-private-BpyvBYFj.js.map +1 -0
- package/dist/{unpkg/dev/-private-Dtj8O5W7.js → -private-CmNOwhK0.js} +3 -1
- package/dist/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/{aliases-BWYW5EhX.d.ts → aliases-BQmAxXmb.d.ts} +4 -1
- package/dist/aliases-BQmAxXmb.d.ts.map +1 -0
- package/dist/{change-C7kqv2kW.d.ts → change-DClXcHvr.d.ts} +4 -2
- package/dist/change-DClXcHvr.d.ts.map +1 -0
- package/dist/{concepts-DFldVwEM.d.ts → concepts-DzuY5M1K.d.ts} +14 -5
- package/dist/concepts-DzuY5M1K.d.ts.map +1 -0
- package/dist/{configure-B_F639tN.d.ts → configure-CjsojjiI.d.ts} +7 -1
- package/dist/configure-CjsojjiI.d.ts.map +1 -0
- package/dist/configure.d.ts +1 -1
- package/dist/configure.js +1 -1
- package/dist/{document-Ca4ZZBd9.d.ts → document-Ni8Ns26t.d.ts} +22 -4
- package/dist/document-Ni8Ns26t.d.ts.map +1 -0
- package/dist/{error-0uD6GkNX.d.ts → error-APuUdUGk.d.ts} +4 -2
- package/dist/error-APuUdUGk.d.ts.map +1 -0
- package/dist/{fields-FM7peCiM.d.ts → fields-D6173Q_a.d.ts} +134 -7
- package/dist/fields-D6173Q_a.d.ts.map +1 -0
- package/dist/graph/-private.d.ts +1 -1
- package/dist/graph/-private.js +2 -0
- package/dist/graph/-private.js.map +1 -1
- package/dist/{graph-DLqYXP2z.d.ts → graph-rjTyJ-gd.d.ts} +25 -5
- package/dist/graph-rjTyJ-gd.d.ts.map +1 -0
- package/dist/{identifier-DQnqOSJK.d.ts → identifier-B_tK3FUw.d.ts} +29 -4
- package/dist/identifier-B_tK3FUw.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{internal-9XuWZdDv.d.ts → internal-CgOlgOt3.d.ts} +497 -31
- package/dist/internal-CgOlgOt3.d.ts.map +1 -0
- package/dist/{json-api-raw-C5APJHHB.d.ts → json-api-raw-BxzNsCg0.d.ts} +44 -2
- package/dist/json-api-raw-BxzNsCg0.d.ts.map +1 -0
- package/dist/{mutations-CqtoGB4t.d.ts → mutations-C81gbYjB.d.ts} +18 -2
- package/dist/mutations-C81gbYjB.d.ts.map +1 -0
- package/dist/{operations-D1qA6r0_.d.ts → operations-B4pQM7D6.d.ts} +39 -5
- package/dist/operations-B4pQM7D6.d.ts.map +1 -0
- package/dist/{params-DrEx3bf8.d.ts → params-dbHiSOMF.d.ts} +11 -1
- package/dist/params-dbHiSOMF.d.ts.map +1 -0
- package/dist/{raw-D5hnjiq7.d.ts → raw-CiC64nCY.d.ts} +10 -1
- package/dist/raw-CiC64nCY.d.ts.map +1 -0
- package/dist/reactive/-private.d.ts +1 -1
- package/dist/reactive/-private.js +1 -1
- package/dist/reactive.d.ts +2 -2
- package/dist/reactive.js +3 -3
- package/dist/{record-D3QQcaIR.d.ts → record-DDxPtzcY.d.ts} +22 -2
- package/dist/record-DDxPtzcY.d.ts.map +1 -0
- package/dist/{relationship-CmHzMPKf.d.ts → relationship-BlGIXgj4.d.ts} +10 -3
- package/dist/relationship-BlGIXgj4.d.ts.map +1 -0
- package/dist/{request-Di274pQz.js → request-MiwUbGdT.js} +26 -1
- package/dist/request-MiwUbGdT.js.map +1 -0
- package/dist/request.d.ts +1 -1
- package/dist/request.js +1 -1
- package/dist/signals/-leaked.d.ts +86 -4
- package/dist/signals/-leaked.d.ts.map +1 -1
- package/dist/signals/-leaked.js +1 -1
- package/dist/{src-TlQlgL5V.js → src-DlNeupkA.js} +222 -20
- package/dist/src-DlNeupkA.js.map +1 -0
- package/dist/store/-private.d.ts +1 -1
- package/dist/store/-private.js +1 -1
- package/dist/{store-DNF9Rgoh.js → store-lcyaxrpj.js} +16 -1
- package/dist/store-lcyaxrpj.js.map +1 -0
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/{symbols-DjRDCeX0.d.ts → symbols-Cu9un1NR.d.ts} +10 -1
- package/dist/symbols-Cu9un1NR.d.ts.map +1 -0
- package/dist/types/-private.js +1 -1
- package/dist/types/cache/aliases.d.ts +1 -1
- package/dist/types/cache/change.d.ts +1 -1
- package/dist/types/cache/mutations.d.ts +1 -1
- package/dist/types/cache/operations.d.ts +1 -1
- package/dist/types/cache/relationship.d.ts +1 -1
- package/dist/types/cache.d.ts +1 -1
- package/dist/types/graph.d.ts +1 -1
- package/dist/types/identifier.d.ts +1 -1
- package/dist/types/identifier.js +33 -3
- package/dist/types/identifier.js.map +1 -1
- package/dist/types/json/raw.d.ts +1 -1
- package/dist/types/params.d.ts +1 -1
- package/dist/types/record.d.ts +1 -1
- package/dist/types/record.js +25 -0
- package/dist/types/record.js.map +1 -1
- package/dist/types/request.d.ts +1 -1
- package/dist/types/request.js +80 -0
- package/dist/types/request.js.map +1 -1
- package/dist/types/runtime.d.ts.map +1 -1
- package/dist/types/schema/concepts.d.ts +1 -1
- package/dist/types/schema/fields.d.ts +1 -1
- package/dist/types/schema/fields.js +132 -3
- package/dist/types/schema/fields.js.map +1 -1
- package/dist/types/schema/schema-service.d.ts +1 -1
- package/dist/types/spec/document.d.ts +1 -1
- package/dist/types/spec/error.d.ts +1 -1
- package/dist/types/spec/json-api-raw.d.ts +1 -1
- package/dist/types/symbols.d.ts +1 -1
- package/dist/types/symbols.js +14 -0
- package/dist/types/symbols.js.map +1 -1
- package/dist/types/utils.d.ts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/unpkg/{dev-deprecated/-private-DrQgwtNS.js → dev/-private-BH4O810v.js} +508 -144
- package/dist/unpkg/dev/-private-BH4O810v.js.map +1 -0
- package/dist/{-private-Dtj8O5W7.js → unpkg/dev/-private-CmNOwhK0.js} +3 -1
- package/dist/unpkg/dev/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/unpkg/dev/configure.js +1 -1
- package/dist/unpkg/dev/graph/-private.js +2 -0
- package/dist/unpkg/dev/graph/-private.js.map +1 -1
- package/dist/unpkg/dev/index.js +1 -1
- package/dist/unpkg/dev/reactive/-private.js +1 -1
- package/dist/unpkg/dev/reactive.js +3 -3
- package/dist/unpkg/{dev-deprecated/request-nAaeDlS9.js → dev/request-Fe-vpe-u.js} +26 -1
- package/dist/unpkg/dev/request-Fe-vpe-u.js.map +1 -0
- package/dist/unpkg/dev/request.js +1 -1
- package/dist/unpkg/dev/signals/-leaked.js +1 -1
- package/dist/unpkg/dev/{src-D8uKAIUN.js → src-FSk0Z_Lp.js} +213 -13
- package/dist/unpkg/dev/src-FSk0Z_Lp.js.map +1 -0
- package/dist/unpkg/dev/store/-private.js +1 -1
- package/dist/unpkg/dev/{store-BIFNM_fB.js → store-BUV8Pfi7.js} +16 -1
- package/dist/unpkg/dev/store-BUV8Pfi7.js.map +1 -0
- package/dist/unpkg/dev/store.js +1 -1
- package/dist/unpkg/dev/types/-private.js +1 -1
- package/dist/unpkg/dev/types/identifier.js +33 -3
- package/dist/unpkg/dev/types/identifier.js.map +1 -1
- package/dist/unpkg/dev/types/record.js +25 -0
- package/dist/unpkg/dev/types/record.js.map +1 -1
- package/dist/unpkg/dev/types/request.js +80 -0
- package/dist/unpkg/dev/types/request.js.map +1 -1
- package/dist/unpkg/dev/types/schema/fields.js +132 -3
- package/dist/unpkg/dev/types/schema/fields.js.map +1 -1
- package/dist/unpkg/dev/types/symbols.js +14 -0
- package/dist/unpkg/dev/types/symbols.js.map +1 -1
- package/dist/unpkg/{dev/-private-DrQgwtNS.js → dev-deprecated/-private-BH4O810v.js} +508 -144
- package/dist/unpkg/dev-deprecated/-private-BH4O810v.js.map +1 -0
- package/dist/unpkg/{prod-deprecated/-private-Dtj8O5W7.js → dev-deprecated/-private-CmNOwhK0.js} +3 -1
- package/dist/unpkg/dev-deprecated/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/configure.js +1 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js +2 -0
- package/dist/unpkg/dev-deprecated/graph/-private.js.map +1 -1
- package/dist/unpkg/dev-deprecated/index.js +1 -1
- package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/reactive.js +3 -3
- package/dist/unpkg/{dev/request-nAaeDlS9.js → dev-deprecated/request-Fe-vpe-u.js} +26 -1
- package/dist/unpkg/dev-deprecated/request-Fe-vpe-u.js.map +1 -0
- package/dist/unpkg/dev-deprecated/request.js +1 -1
- package/dist/unpkg/dev-deprecated/signals/-leaked.js +1 -1
- package/dist/unpkg/dev-deprecated/{src-BlewXGbB.js → src-Isk_Je7q.js} +215 -13
- package/dist/unpkg/dev-deprecated/src-Isk_Je7q.js.map +1 -0
- package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/{store-X1WN7P_O.js → store-CCZBSe0p.js} +16 -1
- package/dist/unpkg/dev-deprecated/store-CCZBSe0p.js.map +1 -0
- package/dist/unpkg/dev-deprecated/store.js +1 -1
- package/dist/unpkg/dev-deprecated/types/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/types/identifier.js +33 -3
- package/dist/unpkg/dev-deprecated/types/identifier.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/record.js +25 -0
- package/dist/unpkg/dev-deprecated/types/record.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/request.js +80 -0
- package/dist/unpkg/dev-deprecated/types/request.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/schema/fields.js +132 -3
- package/dist/unpkg/dev-deprecated/types/schema/fields.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/symbols.js +14 -0
- package/dist/unpkg/dev-deprecated/types/symbols.js.map +1 -1
- package/dist/unpkg/prod/-private-CmNOwhK0.js +24 -0
- package/dist/unpkg/prod/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/unpkg/prod/{-private-Dg1vsF-H.js → -private-DKVDMUfT.js} +481 -138
- package/dist/unpkg/prod/-private-DKVDMUfT.js.map +1 -0
- package/dist/unpkg/prod/configure.js +1 -1
- package/dist/unpkg/prod/graph/-private.js +2 -0
- package/dist/unpkg/prod/graph/-private.js.map +1 -1
- package/dist/unpkg/prod/index.js +1 -1
- package/dist/unpkg/prod/reactive/-private.js +1 -1
- package/dist/unpkg/prod/reactive.js +3 -3
- package/dist/unpkg/prod/{request-DK7nNaAf.js → request-ndw2Fy91.js} +26 -1
- package/dist/unpkg/prod/request-ndw2Fy91.js.map +1 -0
- package/dist/unpkg/prod/request.js +1 -1
- package/dist/unpkg/prod/signals/-leaked.js +1 -1
- package/dist/unpkg/prod/{src-DGB6WvXW.js → src-CoSpuocQ.js} +213 -13
- package/dist/unpkg/prod/src-CoSpuocQ.js.map +1 -0
- package/dist/unpkg/prod/store/-private.js +1 -1
- package/dist/unpkg/{prod-deprecated/store-BWhmb7Ob.js → prod/store-CQOsqdST.js} +16 -1
- package/dist/unpkg/prod/store-CQOsqdST.js.map +1 -0
- package/dist/unpkg/prod/store.js +1 -1
- package/dist/unpkg/prod/types/-private.js +1 -1
- package/dist/unpkg/prod/types/identifier.js +33 -3
- package/dist/unpkg/prod/types/identifier.js.map +1 -1
- package/dist/unpkg/prod/types/record.js +25 -0
- package/dist/unpkg/prod/types/record.js.map +1 -1
- package/dist/unpkg/prod/types/request.js +80 -0
- package/dist/unpkg/prod/types/request.js.map +1 -1
- package/dist/unpkg/prod/types/schema/fields.js +132 -3
- package/dist/unpkg/prod/types/schema/fields.js.map +1 -1
- package/dist/unpkg/prod/types/symbols.js +14 -0
- package/dist/unpkg/prod/types/symbols.js.map +1 -1
- package/dist/unpkg/{dev-deprecated/-private-Dtj8O5W7.js → prod-deprecated/-private-CmNOwhK0.js} +3 -1
- package/dist/unpkg/prod-deprecated/{-private-Dtj8O5W7.js.map → -private-CmNOwhK0.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/{-private-Dg1vsF-H.js → -private-DKVDMUfT.js} +481 -138
- package/dist/unpkg/prod-deprecated/-private-DKVDMUfT.js.map +1 -0
- package/dist/unpkg/prod-deprecated/configure.js +1 -1
- package/dist/unpkg/prod-deprecated/graph/-private.js +2 -0
- package/dist/unpkg/prod-deprecated/graph/-private.js.map +1 -1
- package/dist/unpkg/prod-deprecated/index.js +1 -1
- package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/reactive.js +3 -3
- package/dist/unpkg/prod-deprecated/{request-DK7nNaAf.js → request-ndw2Fy91.js} +26 -1
- package/dist/unpkg/prod-deprecated/request-ndw2Fy91.js.map +1 -0
- package/dist/unpkg/prod-deprecated/request.js +1 -1
- package/dist/unpkg/prod-deprecated/signals/-leaked.js +1 -1
- package/dist/unpkg/prod-deprecated/{src-B9AnmJPz.js → src-FK_rMde5.js} +215 -13
- package/dist/unpkg/prod-deprecated/src-FK_rMde5.js.map +1 -0
- package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
- package/dist/unpkg/{prod/store-BWhmb7Ob.js → prod-deprecated/store-CQOsqdST.js} +16 -1
- package/dist/unpkg/prod-deprecated/store-CQOsqdST.js.map +1 -0
- package/dist/unpkg/prod-deprecated/store.js +1 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/types/identifier.js +33 -3
- package/dist/unpkg/prod-deprecated/types/identifier.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/record.js +25 -0
- package/dist/unpkg/prod-deprecated/types/record.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/request.js +80 -0
- package/dist/unpkg/prod-deprecated/types/request.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/schema/fields.js +132 -3
- package/dist/unpkg/prod-deprecated/types/schema/fields.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/symbols.js +14 -0
- package/dist/unpkg/prod-deprecated/types/symbols.js.map +1 -1
- package/dist/{utils-BtURiy8l.d.ts → utils-CNmQoKm8.d.ts} +8 -1
- package/dist/utils-CNmQoKm8.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/-private-CjK1Dmuh.js.map +0 -1
- package/dist/aliases-BWYW5EhX.d.ts.map +0 -1
- package/dist/change-C7kqv2kW.d.ts.map +0 -1
- package/dist/concepts-DFldVwEM.d.ts.map +0 -1
- package/dist/configure-B_F639tN.d.ts.map +0 -1
- package/dist/document-Ca4ZZBd9.d.ts.map +0 -1
- package/dist/error-0uD6GkNX.d.ts.map +0 -1
- package/dist/fields-FM7peCiM.d.ts.map +0 -1
- package/dist/graph-DLqYXP2z.d.ts.map +0 -1
- package/dist/identifier-DQnqOSJK.d.ts.map +0 -1
- package/dist/internal-9XuWZdDv.d.ts.map +0 -1
- package/dist/json-api-raw-C5APJHHB.d.ts.map +0 -1
- package/dist/mutations-CqtoGB4t.d.ts.map +0 -1
- package/dist/operations-D1qA6r0_.d.ts.map +0 -1
- package/dist/params-DrEx3bf8.d.ts.map +0 -1
- package/dist/raw-D5hnjiq7.d.ts.map +0 -1
- package/dist/record-D3QQcaIR.d.ts.map +0 -1
- package/dist/relationship-CmHzMPKf.d.ts.map +0 -1
- package/dist/request-Di274pQz.js.map +0 -1
- package/dist/src-TlQlgL5V.js.map +0 -1
- package/dist/store-DNF9Rgoh.js.map +0 -1
- package/dist/symbols-DjRDCeX0.d.ts.map +0 -1
- package/dist/types/schema/fields.type-test.d.ts +0 -1
- package/dist/types/schema/fields.type-test.js +0 -79
- package/dist/types/schema/fields.type-test.js.map +0 -1
- package/dist/unpkg/dev/-private-DrQgwtNS.js.map +0 -1
- package/dist/unpkg/dev/request-nAaeDlS9.js.map +0 -1
- package/dist/unpkg/dev/src-D8uKAIUN.js.map +0 -1
- package/dist/unpkg/dev/store-BIFNM_fB.js.map +0 -1
- package/dist/unpkg/dev/types/schema/fields.type-test.js +0 -79
- package/dist/unpkg/dev/types/schema/fields.type-test.js.map +0 -1
- package/dist/unpkg/dev-deprecated/-private-DrQgwtNS.js.map +0 -1
- package/dist/unpkg/dev-deprecated/request-nAaeDlS9.js.map +0 -1
- package/dist/unpkg/dev-deprecated/src-BlewXGbB.js.map +0 -1
- package/dist/unpkg/dev-deprecated/store-X1WN7P_O.js.map +0 -1
- package/dist/unpkg/dev-deprecated/types/schema/fields.type-test.js +0 -79
- package/dist/unpkg/dev-deprecated/types/schema/fields.type-test.js.map +0 -1
- package/dist/unpkg/prod/-private-Dg1vsF-H.js.map +0 -1
- package/dist/unpkg/prod/-private-Dtj8O5W7.js +0 -22
- package/dist/unpkg/prod/request-DK7nNaAf.js.map +0 -1
- package/dist/unpkg/prod/src-DGB6WvXW.js.map +0 -1
- package/dist/unpkg/prod/store-BWhmb7Ob.js.map +0 -1
- package/dist/unpkg/prod/types/schema/fields.type-test.js +0 -79
- package/dist/unpkg/prod/types/schema/fields.type-test.js.map +0 -1
- package/dist/unpkg/prod-deprecated/-private-Dg1vsF-H.js.map +0 -1
- package/dist/unpkg/prod-deprecated/request-DK7nNaAf.js.map +0 -1
- package/dist/unpkg/prod-deprecated/src-B9AnmJPz.js.map +0 -1
- package/dist/unpkg/prod-deprecated/store-BWhmb7Ob.js.map +0 -1
- package/dist/unpkg/prod-deprecated/types/schema/fields.type-test.js +0 -79
- package/dist/unpkg/prod-deprecated/types/schema/fields.type-test.js.map +0 -1
- package/dist/utils-BtURiy8l.d.ts.map +0 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { l as ResourceKey } from "./identifier-
|
|
2
|
-
import { b as SingleResourceRelationship, n as CollectionResourceRelationship } from "./json-api-raw-
|
|
3
|
-
import { r as RemoveFromResourceRelationshipMutation, t as AddToResourceRelationshipMutation } from "./mutations-
|
|
4
|
-
import { l as RemoveFromResourceRelationshipOperation, p as UpdateResourceRelationshipOperation, r as AddToResourceRelationshipOperation } from "./operations-
|
|
1
|
+
import { l as ResourceKey } from "./identifier-B_tK3FUw.js";
|
|
2
|
+
import { b as SingleResourceRelationship, n as CollectionResourceRelationship } from "./json-api-raw-BxzNsCg0.js";
|
|
3
|
+
import { r as RemoveFromResourceRelationshipMutation, t as AddToResourceRelationshipMutation } from "./mutations-C81gbYjB.js";
|
|
4
|
+
import { l as RemoveFromResourceRelationshipOperation, p as UpdateResourceRelationshipOperation, r as AddToResourceRelationshipOperation } from "./operations-B4pQM7D6.js";
|
|
5
5
|
//#region src/types/graph.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* All Graph operations are objects with at least one property,
|
|
8
8
|
* `op`, which contains a string with the name of the operation
|
|
9
9
|
* to perform.
|
|
10
|
+
*
|
|
11
|
+
* @summary Base shape of every relationship Graph operation, carrying the operation's name in `op`.
|
|
10
12
|
*/
|
|
11
13
|
interface Operation {
|
|
12
14
|
/**
|
|
@@ -16,6 +18,8 @@ interface Operation {
|
|
|
16
18
|
}
|
|
17
19
|
/**
|
|
18
20
|
* Replaces the state of a relationship on the Graph with a new state.
|
|
21
|
+
*
|
|
22
|
+
* @summary Graph operation that replaces a relationship's remote state with a raw JSON:API relationship object.
|
|
19
23
|
*/
|
|
20
24
|
interface UpdateRelationshipOperation {
|
|
21
25
|
/**
|
|
@@ -38,6 +42,9 @@ interface UpdateRelationshipOperation {
|
|
|
38
42
|
/**
|
|
39
43
|
* Signals to the Graph that a resource has been deleted, so that
|
|
40
44
|
* it can be removed from any relationships that reference it.
|
|
45
|
+
*
|
|
46
|
+
* @summary Graph operation signaling that a resource was deleted so it is removed from every relationship that
|
|
47
|
+
* references it.
|
|
41
48
|
*/
|
|
42
49
|
interface DeleteRecordOperation {
|
|
43
50
|
/**
|
|
@@ -56,6 +63,9 @@ interface DeleteRecordOperation {
|
|
|
56
63
|
/**
|
|
57
64
|
* A placeholder operation for a relationship whose kind (`to-one` vs
|
|
58
65
|
* `to-many`) is not yet known to the Graph.
|
|
66
|
+
*
|
|
67
|
+
* @summary Placeholder Graph operation, with `op: 'never'`, for a relationship whose to-one or to-many kind is not
|
|
68
|
+
* yet known.
|
|
59
69
|
*/
|
|
60
70
|
interface UnknownOperation {
|
|
61
71
|
/**
|
|
@@ -73,6 +83,8 @@ interface UnknownOperation {
|
|
|
73
83
|
}
|
|
74
84
|
/**
|
|
75
85
|
* Replaces the state of a `to-one` relationship on the Graph with a new value.
|
|
86
|
+
*
|
|
87
|
+
* @summary Graph operation that sets a to-one relationship's value, or swaps a single member of a to-many.
|
|
76
88
|
*/
|
|
77
89
|
interface ReplaceRelatedRecordOperation {
|
|
78
90
|
/**
|
|
@@ -103,6 +115,8 @@ interface ReplaceRelatedRecordOperation {
|
|
|
103
115
|
}
|
|
104
116
|
/**
|
|
105
117
|
* Reorders the state of a `to-many` relationship on the Graph.
|
|
118
|
+
*
|
|
119
|
+
* @summary Graph operation that reorders the members of a to-many relationship.
|
|
106
120
|
*/
|
|
107
121
|
interface SortRelatedRecords {
|
|
108
122
|
/**
|
|
@@ -125,6 +139,8 @@ interface SortRelatedRecords {
|
|
|
125
139
|
/**
|
|
126
140
|
* Replaces the state of a `to-many` relationship on the Graph with a
|
|
127
141
|
* new set of values.
|
|
142
|
+
*
|
|
143
|
+
* @summary Graph operation that replaces or splices the members of a to-many relationship.
|
|
128
144
|
*/
|
|
129
145
|
interface ReplaceRelatedRecordsOperation {
|
|
130
146
|
/**
|
|
@@ -167,6 +183,8 @@ interface ReplaceRelatedRecordsOperation {
|
|
|
167
183
|
* - {@link AddResourceOperation}
|
|
168
184
|
* - {@link DeleteRecordOperation}
|
|
169
185
|
* - {@link SortRelatedRecords}
|
|
186
|
+
*
|
|
187
|
+
* @summary Union of the Graph operations that update a relationship's remote (persisted) state.
|
|
170
188
|
*/
|
|
171
189
|
type RemoteRelationshipOperation = UpdateResourceRelationshipOperation | UpdateRelationshipOperation | ReplaceRelatedRecordOperation | ReplaceRelatedRecordsOperation | RemoveFromResourceRelationshipOperation | AddToResourceRelationshipOperation | DeleteRecordOperation | SortRelatedRecords;
|
|
172
190
|
/**
|
|
@@ -179,8 +197,10 @@ type RemoteRelationshipOperation = UpdateResourceRelationshipOperation | UpdateR
|
|
|
179
197
|
* - {@link AddResourceMutation}
|
|
180
198
|
* - {@link RemoveResourceMutation}
|
|
181
199
|
* - {@link SortRelatedRecords}
|
|
200
|
+
*
|
|
201
|
+
* @summary Union of the Graph operations that update a relationship's local (uncommitted) state.
|
|
182
202
|
*/
|
|
183
203
|
type LocalRelationshipOperation = ReplaceRelatedRecordsOperation | ReplaceRelatedRecordOperation | AddToResourceRelationshipMutation | RemoveFromResourceRelationshipMutation | SortRelatedRecords;
|
|
184
204
|
//#endregion
|
|
185
205
|
export { ReplaceRelatedRecordOperation as a, UnknownOperation as c, RemoteRelationshipOperation as i, UpdateRelationshipOperation as l, LocalRelationshipOperation as n, ReplaceRelatedRecordsOperation as o, Operation as r, SortRelatedRecords as s, DeleteRecordOperation as t };
|
|
186
|
-
//# sourceMappingURL=graph-
|
|
206
|
+
//# sourceMappingURL=graph-rjTyJ-gd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-rjTyJ-gd.d.ts","names":["RemoveResourceOperation","AddResourceOperation","AddResourceMutation","RemoveResourceMutation"],"sources":["../src/types/graph.ts"],"mappings":";;;;;;;;;;;;UAyBiB;;;;EAIf;;;;;;;UAQe;;;;EAIf;;;;EAIA,QAAQ;;;;EAIR;;;;EAIA,OAAO,6BAA6B;;;;;;;;;UAUrB;;;;EAIf;;;;EAIA,QAAQ;;;;EAIR;;;;;;;;;UAUe;;;;EAIf;;;;EAIA,QAAQ;;;;EAIR;;;;;;;UAQe;;;;EAIf;;;;EAIA,QAAQ;;;;EAIR;;;;;EAKA,OAAO;;;;EAIP,QAAQ;;;;EAIR;;;;;;;UAQe;;;;EAIf;;;;EAIA,QAAQ;;;;EAIR;;;;EAIA,OAAO;;;;;;;;UASQ;;;;EAIf;;;;EAIA,QAAQ;;;;EAIR;;;;;;EAMA,OAAO;;;;EAIP,QAAQ;;;;EAIR;;;;;;;;;;;;;;;;;;KAmBU,8BACR,sCACA,8BACA,gCACA,iCACAA,0CACAC,qCACA,wBACA;;;;;;;;;;;;;;KAeQ,6BACR,iCACA,gCACAC,oCACAC,yCACA"}
|
|
@@ -19,6 +19,8 @@ declare const CACHE_OWNER: "__$co";
|
|
|
19
19
|
* Identifies which "bucket" of the cache a key belongs to: resources
|
|
20
20
|
* (`'record'`, see {@link ResourceKey}) or request documents
|
|
21
21
|
* (`'document'`, see {@link RequestKey}).
|
|
22
|
+
*
|
|
23
|
+
* @summary Which cache bucket a key belongs to: `'record'` for resource keys or `'document'` for request keys.
|
|
22
24
|
*/
|
|
23
25
|
type CacheKeyType = "record" | "document";
|
|
24
26
|
/**
|
|
@@ -28,6 +30,11 @@ type CacheKeyType = "record" | "document";
|
|
|
28
30
|
* Only requests that are assigned a RequestKey are retrievable/replayable from
|
|
29
31
|
* the cache, though requests without RequestKeys may still update cache state.
|
|
30
32
|
*
|
|
33
|
+
* The [Key Terminology](/guides/the-manual/caching/key-terms#documents) guide explains
|
|
34
|
+
* the documents it identifies.
|
|
35
|
+
*
|
|
36
|
+
* @summary Stable object with a unique `lid` that references a cached request document, letting that request's
|
|
37
|
+
* result be retrieved or replayed.
|
|
31
38
|
* @public
|
|
32
39
|
*/
|
|
33
40
|
interface RequestKey {
|
|
@@ -40,7 +47,10 @@ interface RequestKey {
|
|
|
40
47
|
*/
|
|
41
48
|
type: "@document";
|
|
42
49
|
}
|
|
43
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* @summary Deprecated alias for `RequestKey`, the stable cache reference to a request document.
|
|
52
|
+
* @deprecated use {@link RequestKey}
|
|
53
|
+
*/
|
|
44
54
|
type StableDocumentIdentifier = RequestKey;
|
|
45
55
|
/**
|
|
46
56
|
* Used when an ResourceKey is known to be the stable version
|
|
@@ -66,6 +76,8 @@ interface ResourceKeyBase<T extends string = string> {
|
|
|
66
76
|
* Distinguishing between this ResourceKey and one for a client created
|
|
67
77
|
* resource that was created with an ID is generally speaking not possible
|
|
68
78
|
* at runtime, so anything with an ID typically narrows to this.
|
|
79
|
+
*
|
|
80
|
+
* @summary Resource key whose `id` is a known string, the form keys for server-loaded resources take.
|
|
69
81
|
*/
|
|
70
82
|
interface PersistedResourceKey<T extends string = string> extends ResourceKeyBase<T> {
|
|
71
83
|
/**
|
|
@@ -75,7 +87,10 @@ interface PersistedResourceKey<T extends string = string> extends ResourceKeyBas
|
|
|
75
87
|
*/
|
|
76
88
|
id: string;
|
|
77
89
|
}
|
|
78
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* @summary Deprecated alias for `PersistedResourceKey`, a resource key whose `id` is known.
|
|
92
|
+
* @deprecated use {@link PersistedResourceKey}
|
|
93
|
+
*/
|
|
79
94
|
type StableExistingRecordIdentifier<T extends string = string> = PersistedResourceKey<T>;
|
|
80
95
|
/**
|
|
81
96
|
* Used when a ResourceKey was created locally
|
|
@@ -85,6 +100,8 @@ type StableExistingRecordIdentifier<T extends string = string> = PersistedResour
|
|
|
85
100
|
* that is not for a new record but does not have an ID. This would
|
|
86
101
|
* happen if a user intentionally created one for use with a secondary-index
|
|
87
102
|
* prior to the record having been fully loaded.
|
|
103
|
+
*
|
|
104
|
+
* @summary Resource key for a record created locally with `store.createRecord`, whose `id` may still be `null`.
|
|
88
105
|
*/
|
|
89
106
|
interface NewResourceKey<T extends string = string> extends ResourceKeyBase<T> {
|
|
90
107
|
/**
|
|
@@ -102,11 +119,19 @@ interface NewResourceKey<T extends string = string> extends ResourceKeyBase<T> {
|
|
|
102
119
|
* Every resource has a unique ResourceKey, and ResourceKeys may refer
|
|
103
120
|
* to data that has never been loaded (for instance, in an async relationship).
|
|
104
121
|
*
|
|
122
|
+
* The [Key Terminology](/guides/the-manual/caching/key-terms#resources) guide explains
|
|
123
|
+
* the resources it identifies.
|
|
124
|
+
*
|
|
125
|
+
* @summary Stable object with a unique `lid` plus `type` and `id` that uniquely references one resource's data in
|
|
126
|
+
* the cache, loaded or not.
|
|
105
127
|
* @public
|
|
106
128
|
*/
|
|
107
129
|
type ResourceKey<T extends string = string> = PersistedResourceKey<T> | NewResourceKey<T>;
|
|
108
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* @summary Deprecated alias for `ResourceKey`, the stable cache reference to a single resource.
|
|
132
|
+
* @deprecated use {@link ResourceKey}
|
|
133
|
+
*/
|
|
109
134
|
type StableRecordIdentifier<T extends string = string> = ResourceKey<T>;
|
|
110
135
|
//#endregion
|
|
111
136
|
export { DEBUG_STALE_CACHE_OWNER as a, RequestKey as c, StableExistingRecordIdentifier as d, StableRecordIdentifier as f, DEBUG_KEY_TYPE as i, ResourceKey as l, CacheKeyType as n, NewResourceKey as o, DEBUG_CLIENT_ORIGINATED as r, PersistedResourceKey as s, CACHE_OWNER as t, StableDocumentIdentifier as u };
|
|
112
|
-
//# sourceMappingURL=identifier-
|
|
137
|
+
//# sourceMappingURL=identifier-B_tK3FUw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identifier-B_tK3FUw.d.ts","names":[],"sources":["../src/types/identifier.ts"],"mappings":";;;;cAYa;;;;cAIA;;;;cAIA;;;;cAUA;;;;;;;;KASD;;;;;;;;;;;;;;;UAgBK;;;;EAIf;;;;EAIA;;;;;;KASU,2BAA2B;;;;UAK7B,gBAAgB;;;;;;EAMxB;;;;;;EAOA,MAAM;;;;;;;;;;;;UAqBS,qBAAqB,mCAAmC,gBAAgB;;;;;;EAMvF;;;;;;KAOU,+BAA+B,6BAA6B,qBAAqB;;;;;;;;;;;;UAa5E,eAAe,mCAAmC,gBAAgB;;;;;;;EAOjF;;;;;;;;;;;;;;;;KAiBU,YAAY,6BAA6B,qBAAqB,KAAK,eAAe;;;;;KAMlF,uBAAuB,6BAA6B,YAAY"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as Document, At as CachePolicy, L as Fetch, M as useRecommendedStore, Mt as StoreRequestContext, Nt as StoreRequestInput, St as recordIdentifierFor, an as NotifyKeys, dn as setIdentifierGenerationMethod, en as CacheOperation, et as Store, fn as setIdentifierResetMethod, in as NotificationType, j as StoreSetupOptions, jt as CacheHandler, k as ConfiguredStore, mn as setKeyInfoForResource, nn as NotificationChannel, pn as setIdentifierUpdateMethod, pr as RequestManager, tn as DocumentCacheOperation, un as setIdentifierForgetMethod, wt as storeFor } from "./internal-CgOlgOt3.js";
|
|
2
2
|
export { CacheHandler, type CacheOperation, type CachePolicy, ConfiguredStore, Document, type DocumentCacheOperation, Fetch, type NotificationChannel, type NotificationType, type NotifyKeys, RequestManager, Store, type StoreRequestContext, type StoreRequestInput, StoreSetupOptions, recordIdentifierFor as cacheKeyFor, recordIdentifierFor, setIdentifierForgetMethod, setIdentifierGenerationMethod, setIdentifierResetMethod, setIdentifierUpdateMethod, setKeyInfoForResource, storeFor, useRecommendedStore };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as setIdentifierGenerationMethod, M as setIdentifierUpdateMethod, N as setKeyInfoForResource, S as recordIdentifierFor, h as Store, j as setIdentifierResetMethod, k as setIdentifierForgetMethod, m as CacheHandler, n as RequestManager, r as Fetch, t as useRecommendedStore, w as storeFor } from "./src-
|
|
1
|
+
import { A as setIdentifierGenerationMethod, M as setIdentifierUpdateMethod, N as setKeyInfoForResource, S as recordIdentifierFor, h as Store, j as setIdentifierResetMethod, k as setIdentifierForgetMethod, m as CacheHandler, n as RequestManager, r as Fetch, t as useRecommendedStore, w as storeFor } from "./src-DlNeupkA.js";
|
|
2
2
|
|
|
3
3
|
export { CacheHandler, Fetch, RequestManager, Store, recordIdentifierFor as cacheKeyFor, recordIdentifierFor, setIdentifierForgetMethod, setIdentifierGenerationMethod, setIdentifierResetMethod, setIdentifierUpdateMethod, setKeyInfoForResource, storeFor, useRecommendedStore };
|