@warp-drive-mirror/core 5.9.0-alpha.21 → 5.9.0-alpha.23
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/{unpkg/dev-deprecated/-private-B2Am6Oqc.js → -private-Dj8m5x4s.js} +2 -2
- package/dist/{-private-D4dQm2VC.js.map → -private-Dj8m5x4s.js.map} +1 -1
- package/dist/{-private-DDz7mWBO.js → -private-RGSJppJ1.js} +4 -34
- package/dist/-private-RGSJppJ1.js.map +1 -0
- package/dist/{-private-DYCb3vir.js → -private-_1kbGvX1.js} +2 -2
- package/dist/{-private-DYCb3vir.js.map → -private-_1kbGvX1.js.map} +1 -1
- package/{declarations/change-WybCP5W2.d.ts → dist/change-C7kqv2kW.d.ts} +2 -2
- package/dist/change-C7kqv2kW.d.ts.map +1 -0
- package/{declarations/concepts-CFfLCQr6.d.ts → dist/concepts-LHsLJZMl.d.ts} +3 -3
- package/{declarations/concepts-CFfLCQr6.d.ts.map → dist/concepts-LHsLJZMl.d.ts.map} +1 -1
- package/{declarations/configure-DI1HqQpX.d.ts → dist/configure-B_F639tN.d.ts} +1 -31
- package/dist/configure-B_F639tN.d.ts.map +1 -0
- package/dist/configure.d.ts +2 -0
- package/dist/configure.js +1 -1
- package/{declarations/document-CRPmGrsO.d.ts → dist/document-BEn91SwT.d.ts} +2 -2
- package/{declarations/document-CRPmGrsO.d.ts.map → dist/document-BEn91SwT.d.ts.map} +1 -1
- package/{declarations → dist}/graph/-private.d.ts +1 -1
- package/dist/graph/-private.js +1 -1
- package/{declarations/graph-Di3nFhg0.d.ts → dist/graph-DLqYXP2z.d.ts} +4 -4
- package/{declarations/graph-Di3nFhg0.d.ts.map → dist/graph-DLqYXP2z.d.ts.map} +1 -1
- package/{declarations/identifier-DyEvjMjb.d.ts → dist/identifier-DQnqOSJK.d.ts} +1 -9
- package/dist/identifier-DQnqOSJK.d.ts.map +1 -0
- package/{declarations → dist}/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/{declarations/internal-DMxLqCZa.d.ts → dist/internal-Cz-893zD.d.ts} +95 -794
- package/dist/internal-Cz-893zD.d.ts.map +1 -0
- package/{declarations/mutations-al42_Yzp.d.ts → dist/mutations-CqtoGB4t.d.ts} +2 -2
- package/{declarations/mutations-al42_Yzp.d.ts.map → dist/mutations-CqtoGB4t.d.ts.map} +1 -1
- package/{declarations/operations-Do63dgrL.d.ts → dist/operations-D1qA6r0_.d.ts} +3 -3
- package/{declarations/operations-Do63dgrL.d.ts.map → dist/operations-D1qA6r0_.d.ts.map} +1 -1
- package/{declarations → dist}/reactive/-private.d.ts +1 -1
- package/dist/reactive/-private.js +1 -1
- package/{declarations → dist}/reactive.d.ts +1 -1
- package/dist/reactive.js +3 -3
- package/{declarations/record-DCFv3y1J.d.ts → dist/record-D3QQcaIR.d.ts} +2 -6
- package/{declarations/record-DCFv3y1J.d.ts.map → dist/record-D3QQcaIR.d.ts.map} +1 -1
- package/{declarations/relationship-CT9mFtav.d.ts → dist/relationship-CmHzMPKf.d.ts} +2 -2
- package/{declarations/relationship-CT9mFtav.d.ts.map → dist/relationship-CmHzMPKf.d.ts.map} +1 -1
- package/dist/{request-CclbTH_w.js → request-OFvXk6jf.js} +2 -2
- package/dist/{request-CclbTH_w.js.map → request-OFvXk6jf.js.map} +1 -1
- package/{declarations → dist}/request.d.ts +1 -1
- package/dist/request.js +1 -1
- package/{declarations → dist}/signals/-leaked.d.ts +2 -2
- package/dist/signals/-leaked.js +1 -1
- package/dist/{src-DgZnLlik.js → src-Efcm2FAX.js} +5 -7
- package/dist/{src-DgZnLlik.js.map → src-Efcm2FAX.js.map} +1 -1
- package/{declarations → dist}/store/-private.d.ts +1 -1
- package/dist/store/-private.js +1 -1
- package/dist/store-DNF9Rgoh.js.map +1 -1
- package/dist/store.d.ts +401 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/types/-private.js +1 -1
- package/dist/types/cache/change.d.ts +2 -0
- package/{declarations → dist}/types/cache/mutations.d.ts +1 -1
- package/{declarations → dist}/types/cache/operations.d.ts +1 -1
- package/{declarations → dist}/types/cache/relationship.d.ts +1 -1
- package/dist/types/cache.d.ts +2 -0
- package/{declarations → dist}/types/graph.d.ts +1 -1
- package/{declarations → dist}/types/identifier.d.ts +1 -1
- package/dist/types/record.d.ts +2 -0
- package/{declarations → dist}/types/request.d.ts +1 -1
- package/dist/types/request.js +1 -1
- package/dist/types/runtime.js +1 -1
- package/dist/types/schema/concepts.d.ts +2 -0
- package/{declarations → dist}/types/schema/schema-service.d.ts +1 -1
- package/{declarations → dist}/types/spec/document.d.ts +1 -1
- package/dist/types/symbols.js +1 -1
- package/{declarations → dist}/types.d.ts +2 -2
- package/dist/unpkg/{dev-deprecated/-private-9CIgW-DA.js → dev/-private-DRE_3rF3.js} +2 -2
- package/dist/unpkg/dev/{-private-9CIgW-DA.js.map → -private-DRE_3rF3.js.map} +1 -1
- package/dist/unpkg/dev/{-private-C1QTxlMX.js → -private-DVcNXCUN.js} +4 -34
- package/dist/unpkg/dev/-private-DVcNXCUN.js.map +1 -0
- package/dist/{-private-D4dQm2VC.js → unpkg/dev/-private-uOSg0oor.js} +2 -2
- package/dist/unpkg/{dev-deprecated/-private-B2Am6Oqc.js.map → dev/-private-uOSg0oor.js.map} +1 -1
- package/dist/unpkg/dev/configure.js +1 -1
- package/dist/unpkg/dev/graph/-private.js +2 -2
- 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-4Qkr-Uqq.js → dev/request-nf8Ain5N.js} +2 -2
- package/dist/unpkg/{dev-deprecated/request-4Qkr-Uqq.js.map → dev/request-nf8Ain5N.js.map} +1 -1
- package/dist/unpkg/dev/request.js +1 -1
- package/dist/unpkg/dev/{runtime-DCk-f6iq.js → runtime-DvK0KPb9.js} +2 -2
- package/dist/unpkg/dev/{runtime-DCk-f6iq.js.map → runtime-DvK0KPb9.js.map} +1 -1
- package/dist/unpkg/dev/signals/-leaked.js +1 -1
- package/dist/unpkg/dev/{src-Dq17geGK.js → src-cnf1J-vC.js} +7 -9
- package/dist/unpkg/dev/{src-Dq17geGK.js.map → src-cnf1J-vC.js.map} +1 -1
- package/dist/unpkg/dev/store/-private.js +1 -1
- package/dist/unpkg/dev/{store-1Jt0pxEL.js → store-BxBC1dq7.js} +2 -2
- package/dist/unpkg/dev/store-BxBC1dq7.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/request.js +1 -1
- package/dist/unpkg/dev/types/runtime.js +1 -1
- package/dist/unpkg/dev/types/symbols.js +1 -1
- package/dist/unpkg/{dev/-private-9CIgW-DA.js → dev-deprecated/-private-DRE_3rF3.js} +2 -2
- package/dist/unpkg/dev-deprecated/{-private-9CIgW-DA.js.map → -private-DRE_3rF3.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/{-private-C1QTxlMX.js → -private-DVcNXCUN.js} +4 -34
- package/dist/unpkg/dev-deprecated/-private-DVcNXCUN.js.map +1 -0
- package/dist/unpkg/{dev/-private-B2Am6Oqc.js → dev-deprecated/-private-uOSg0oor.js} +2 -2
- package/dist/unpkg/{prod/-private-B2hz13Ei.js.map → dev-deprecated/-private-uOSg0oor.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/configure.js +1 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js +2 -2
- 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-4Qkr-Uqq.js → dev-deprecated/request-nf8Ain5N.js} +2 -2
- package/dist/unpkg/{dev/request-4Qkr-Uqq.js.map → dev-deprecated/request-nf8Ain5N.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/request.js +1 -1
- package/dist/unpkg/dev-deprecated/{runtime-BmPBYlvC.js → runtime-U4KcpxSO.js} +2 -2
- package/dist/unpkg/dev-deprecated/{runtime-BmPBYlvC.js.map → runtime-U4KcpxSO.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/signals/-leaked.js +1 -1
- package/dist/unpkg/dev-deprecated/{src-n5P9tTX4.js → src-Bw8M5LTu.js} +8 -10
- package/dist/unpkg/dev-deprecated/{src-n5P9tTX4.js.map → src-Bw8M5LTu.js.map} +1 -1
- package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/{store-GrkCubY2.js → store-BV9tvZmy.js} +2 -2
- package/dist/unpkg/dev-deprecated/store-BV9tvZmy.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/request.js +1 -1
- package/dist/unpkg/dev-deprecated/types/runtime.js +1 -1
- package/dist/unpkg/dev-deprecated/types/symbols.js +1 -1
- package/dist/unpkg/prod/-private-7FUQxD6x.js +22 -0
- package/dist/unpkg/{prod-deprecated/-private-B2hz13Ei.js.map → prod/-private-7FUQxD6x.js.map} +1 -1
- package/dist/unpkg/prod/{-private-CFXr06QP.js → -private-DMOn3H9i.js} +4 -34
- package/dist/unpkg/prod/-private-DMOn3H9i.js.map +1 -0
- package/dist/unpkg/prod/{-private-o67f3_hS.js → -private-DVU4vN6b.js} +2 -2
- package/dist/unpkg/{prod-deprecated/-private-o67f3_hS.js.map → prod/-private-DVU4vN6b.js.map} +1 -1
- package/dist/unpkg/prod/configure.js +1 -1
- package/dist/unpkg/prod/graph/-private.js +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-xXJYO0jK.js → request-C1ArecMb.js} +2 -2
- package/dist/unpkg/{prod-deprecated/request-xXJYO0jK.js.map → prod/request-C1ArecMb.js.map} +1 -1
- package/dist/unpkg/prod/request.js +1 -1
- package/dist/unpkg/prod/signals/-leaked.js +1 -1
- package/dist/unpkg/prod/{src-BXphJ7nX.js → src-Bw3mYpy3.js} +5 -7
- package/dist/unpkg/prod/{src-BXphJ7nX.js.map → src-Bw3mYpy3.js.map} +1 -1
- package/dist/unpkg/prod/store/-private.js +1 -1
- package/dist/unpkg/prod/store-BWhmb7Ob.js.map +1 -1
- package/dist/unpkg/prod/types/-private.js +1 -1
- package/dist/unpkg/prod/types/request.js +1 -1
- package/dist/unpkg/prod/types/runtime.js +1 -1
- package/dist/unpkg/prod/types/symbols.js +1 -1
- package/dist/unpkg/prod-deprecated/{-private-B2hz13Ei.js → -private-7FUQxD6x.js} +2 -2
- package/dist/unpkg/{dev/-private-B2Am6Oqc.js.map → prod-deprecated/-private-7FUQxD6x.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/{-private-CFXr06QP.js → -private-DMOn3H9i.js} +4 -34
- package/dist/unpkg/prod-deprecated/-private-DMOn3H9i.js.map +1 -0
- package/dist/unpkg/prod-deprecated/{-private-o67f3_hS.js → -private-DVU4vN6b.js} +2 -2
- package/dist/unpkg/{prod/-private-o67f3_hS.js.map → prod-deprecated/-private-DVU4vN6b.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/configure.js +1 -1
- package/dist/unpkg/prod-deprecated/graph/-private.js +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-xXJYO0jK.js → request-C1ArecMb.js} +2 -2
- package/dist/unpkg/{prod/request-xXJYO0jK.js.map → prod-deprecated/request-C1ArecMb.js.map} +1 -1
- 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-Bzk95Vdj.js → src-Byf-2odU.js} +6 -8
- package/dist/unpkg/prod-deprecated/{src-Bzk95Vdj.js.map → src-Byf-2odU.js.map} +1 -1
- package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/store-BWhmb7Ob.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/types/request.js +1 -1
- package/dist/unpkg/prod-deprecated/types/runtime.js +1 -1
- package/dist/unpkg/prod-deprecated/types/symbols.js +1 -1
- package/package.json +11 -11
- package/declarations/change-WybCP5W2.d.ts.map +0 -1
- package/declarations/configure-DI1HqQpX.d.ts.map +0 -1
- package/declarations/configure.d.ts +0 -2
- package/declarations/identifier-DyEvjMjb.d.ts.map +0 -1
- package/declarations/internal-DMxLqCZa.d.ts.map +0 -1
- package/declarations/store.d.ts +0 -10363
- package/declarations/store.d.ts.map +0 -1
- package/declarations/types/cache/change.d.ts +0 -2
- package/declarations/types/cache.d.ts +0 -2
- package/declarations/types/record.d.ts +0 -2
- package/declarations/types/schema/concepts.d.ts +0 -2
- package/dist/-private-DDz7mWBO.js.map +0 -1
- package/dist/unpkg/dev/-private-C1QTxlMX.js.map +0 -1
- package/dist/unpkg/dev/store-1Jt0pxEL.js.map +0 -1
- package/dist/unpkg/dev-deprecated/-private-C1QTxlMX.js.map +0 -1
- package/dist/unpkg/dev-deprecated/store-GrkCubY2.js.map +0 -1
- package/dist/unpkg/prod/-private-B2hz13Ei.js +0 -22
- package/dist/unpkg/prod/-private-CFXr06QP.js.map +0 -1
- package/dist/unpkg/prod-deprecated/-private-CFXr06QP.js.map +0 -1
- /package/{declarations → dist}/aliases-BWYW5EhX.d.ts +0 -0
- /package/{declarations → dist}/aliases-BWYW5EhX.d.ts.map +0 -0
- /package/{declarations → dist}/build-config/babel-macros.d.ts +0 -0
- /package/{declarations → dist}/build-config/canary-features.d.ts +0 -0
- /package/{declarations → dist}/build-config/debugging.d.ts +0 -0
- /package/{declarations → dist}/build-config/deprecations.d.ts +0 -0
- /package/{declarations → dist}/build-config/env.d.ts +0 -0
- /package/{declarations → dist}/build-config/macros.d.ts +0 -0
- /package/{declarations → dist}/build-config.d.ts +0 -0
- /package/{declarations → dist}/error-50OSEhsF.d.ts +0 -0
- /package/{declarations → dist}/error-50OSEhsF.d.ts.map +0 -0
- /package/{declarations → dist}/fields-FM7peCiM.d.ts +0 -0
- /package/{declarations → dist}/fields-FM7peCiM.d.ts.map +0 -0
- /package/{declarations → dist}/json-api-raw-C5APJHHB.d.ts +0 -0
- /package/{declarations → dist}/json-api-raw-C5APJHHB.d.ts.map +0 -0
- /package/{declarations → dist}/params-DrEx3bf8.d.ts +0 -0
- /package/{declarations → dist}/params-DrEx3bf8.d.ts.map +0 -0
- /package/{declarations → dist}/raw-D5hnjiq7.d.ts +0 -0
- /package/{declarations → dist}/raw-D5hnjiq7.d.ts.map +0 -0
- /package/{declarations → dist}/signals/-leaked.d.ts.map +0 -0
- /package/{declarations → dist}/symbols-DjRDCeX0.d.ts +0 -0
- /package/{declarations → dist}/symbols-DjRDCeX0.d.ts.map +0 -0
- /package/{declarations → dist}/types/-private.d.ts +0 -0
- /package/{declarations → dist}/types/-private.d.ts.map +0 -0
- /package/{declarations → dist}/types/cache/aliases.d.ts +0 -0
- /package/{declarations → dist}/types/json/raw.d.ts +0 -0
- /package/{declarations → dist}/types/params.d.ts +0 -0
- /package/{declarations → dist}/types/runtime.d.ts +0 -0
- /package/{declarations → dist}/types/runtime.d.ts.map +0 -0
- /package/{declarations → dist}/types/schema/fields.d.ts +0 -0
- /package/{declarations → dist}/types/schema/fields.type-test.d.ts +0 -0
- /package/{declarations → dist}/types/spec/error.d.ts +0 -0
- /package/{declarations → dist}/types/spec/json-api-raw.d.ts +0 -0
- /package/{declarations → dist}/types/symbols.d.ts +0 -0
- /package/{declarations → dist}/types/utils.d.ts +0 -0
- /package/{declarations → dist}/utils/string.d.ts +0 -0
- /package/{declarations → dist}/utils/string.d.ts.map +0 -0
- /package/{declarations → dist}/utils-BtURiy8l.d.ts +0 -0
- /package/{declarations → dist}/utils-BtURiy8l.d.ts.map +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { c as RequestKey, l as ResourceKey, n as CacheKeyType, s as PersistedResourceKey } from "./identifier-
|
|
1
|
+
import { c as RequestKey, l as ResourceKey, n as CacheKeyType, s as PersistedResourceKey } from "./identifier-DQnqOSJK.js";
|
|
2
2
|
import { i as Value, n as ObjectValue } from "./raw-D5hnjiq7.js";
|
|
3
|
-
import { a as Type, n as RequestSignature
|
|
4
|
-
import { c as TypedRecordInstance, i as OpaqueRecordInstance$1, o as TypeFromInstance, s as TypeFromInstanceOrString } from "./record-
|
|
5
|
-
import { n as HashFn, r as Transformation$1, t as Derivation } from "./concepts-
|
|
6
|
-
import { A as ResourceField, C as ObjectField, F as Trait, M as Schema, N as SchemaArrayField, O as PolarisResourceSchema, P as SchemaObjectField, T as ObjectSchema, a as DerivedField, b as LinksModeHasManyField, c as HashField, d as LegacyAttributeField, f as LegacyBelongsToField, g as LegacyRelationshipField, i as CollectionField, j as ResourceSchema, l as IdentityField, m as LegacyHasManyField, o as FieldSchema, r as CacheableFieldSchema, s as GenericField, t as ArrayField
|
|
3
|
+
import { a as Type, n as RequestSignature } from "./symbols-DjRDCeX0.js";
|
|
4
|
+
import { c as TypedRecordInstance, i as OpaqueRecordInstance$1, o as TypeFromInstance, s as TypeFromInstanceOrString } from "./record-D3QQcaIR.js";
|
|
5
|
+
import { n as HashFn, r as Transformation$1, t as Derivation } from "./concepts-LHsLJZMl.js";
|
|
6
|
+
import { A as ResourceField, C as ObjectField, F as Trait, M as Schema, N as SchemaArrayField, O as PolarisResourceSchema, P as SchemaObjectField, T as ObjectSchema, a as DerivedField, b as LinksModeHasManyField, c as HashField, d as LegacyAttributeField, f as LegacyBelongsToField, g as LegacyRelationshipField, i as CollectionField, j as ResourceSchema, l as IdentityField, m as LegacyHasManyField, o as FieldSchema, r as CacheableFieldSchema, s as GenericField, t as ArrayField } from "./fields-FM7peCiM.js";
|
|
7
7
|
import { n as WithPartial } from "./utils-BtURiy8l.js";
|
|
8
8
|
import { t as QueryParamsSerializationOptions } from "./params-DrEx3bf8.js";
|
|
9
9
|
import { d as Meta, g as ResourceIdentifierObject, i as ExistingResourceIdentifierObject, m as PaginationLinks, r as EmptyResourceDocument, s as JsonApiDocument, t as CollectionResourceDocument, u as Links, y as SingleResourceDocument } from "./json-api-raw-C5APJHHB.js";
|
|
10
10
|
import { t as ResourceBlob } from "./aliases-BWYW5EhX.js";
|
|
11
|
-
import { t as Change } from "./change-
|
|
12
|
-
import { n as Mutation } from "./mutations-
|
|
13
|
-
import { r as ResourceRelationship, t as CollectionRelationship } from "./relationship-
|
|
14
|
-
import { i as MergeOperation, o as Operation$1 } from "./operations-
|
|
11
|
+
import { t as Change } from "./change-C7kqv2kW.js";
|
|
12
|
+
import { n as Mutation } from "./mutations-CqtoGB4t.js";
|
|
13
|
+
import { r as ResourceRelationship, t as CollectionRelationship } from "./relationship-CmHzMPKf.js";
|
|
14
|
+
import { i as MergeOperation, o as Operation$1 } from "./operations-D1qA6r0_.js";
|
|
15
15
|
import { t as ApiError } from "./error-50OSEhsF.js";
|
|
16
|
-
import { o as SingleResourceDataDocument, r as ResourceDocument, t as CollectionResourceDataDocument } from "./document-
|
|
17
|
-
import { i as RemoteRelationshipOperation, n as LocalRelationshipOperation, t as DeleteRecordOperation } from "./graph-
|
|
18
|
-
import { i as SignalRef, t as ARRAY_SIGNAL } from "./configure-
|
|
16
|
+
import { o as SingleResourceDataDocument, r as ResourceDocument, t as CollectionResourceDataDocument } from "./document-BEn91SwT.js";
|
|
17
|
+
import { i as RemoteRelationshipOperation, n as LocalRelationshipOperation, t as DeleteRecordOperation } from "./graph-DLqYXP2z.js";
|
|
18
|
+
import { i as SignalRef, t as ARRAY_SIGNAL } from "./configure-B_F639tN.js";
|
|
19
19
|
//#region src/reactive/-private/schema.d.ts
|
|
20
20
|
/**
|
|
21
21
|
* Extensions allow providing non-schema driven behaviors to
|
|
@@ -251,21 +251,6 @@ declare const fromIdentity: FromIdentityDerivation;
|
|
|
251
251
|
* @public
|
|
252
252
|
*/
|
|
253
253
|
declare function registerDerivations(schema: SchemaService): void;
|
|
254
|
-
/**
|
|
255
|
-
* A relationship field capable of declaring `options.as`, marking it as a
|
|
256
|
-
* concrete implementation of an abstract polymorphic type.
|
|
257
|
-
*/
|
|
258
|
-
type AbstractTypeImplementerField = LegacyBelongsToField | LegacyHasManyField | LinksModeBelongsToField | LinksModeHasManyField;
|
|
259
|
-
/**
|
|
260
|
-
* A relationship field contributed to an abstract type's schema, along with
|
|
261
|
-
* the name of the type that contributed it (either a concrete implementer,
|
|
262
|
-
* via `options.as`, or the abstract type's own schema), for use in assertion
|
|
263
|
-
* messages when two contributions disagree on shape.
|
|
264
|
-
*/
|
|
265
|
-
interface AbstractFieldContribution {
|
|
266
|
-
field: AbstractTypeImplementerField;
|
|
267
|
-
source: string;
|
|
268
|
-
}
|
|
269
254
|
interface InternalSchema {
|
|
270
255
|
original: ResourceSchema | ObjectSchema;
|
|
271
256
|
finalized: boolean;
|
|
@@ -290,17 +275,6 @@ type Transformation<T extends Value = Value, PT = unknown> = {
|
|
|
290
275
|
/** The name under which this transformation is registered and looked up. */
|
|
291
276
|
[Type]: string;
|
|
292
277
|
};
|
|
293
|
-
interface KindFns {
|
|
294
|
-
belongsTo: {
|
|
295
|
-
get: (store: Store, record: object, resourceKey: ResourceKey, field: LegacyBelongsToField) => unknown;
|
|
296
|
-
set: (store: Store, record: object, cacheKey: ResourceKey, field: LegacyBelongsToField, value: unknown) => void;
|
|
297
|
-
};
|
|
298
|
-
hasMany: {
|
|
299
|
-
get: (store: Store, record: object, resourceKey: ResourceKey, field: LegacyHasManyField) => unknown;
|
|
300
|
-
set: (store: Store, record: object, cacheKey: ResourceKey, field: LegacyHasManyField, value: unknown) => void;
|
|
301
|
-
notify: (store: Store, record: object, cacheKey: ResourceKey, field: LegacyHasManyField) => boolean;
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
278
|
interface SchemaService$1 {
|
|
305
279
|
doesTypeExist(type: string): boolean;
|
|
306
280
|
attributesDefinitionFor(identifier: {
|
|
@@ -310,52 +284,12 @@ interface SchemaService$1 {
|
|
|
310
284
|
type: string;
|
|
311
285
|
}): InternalSchema["relationships"];
|
|
312
286
|
}
|
|
313
|
-
interface InternalTrait {
|
|
314
|
-
name: string;
|
|
315
|
-
mode: "legacy" | "polaris";
|
|
316
|
-
fields: Map<string, FieldSchema>;
|
|
317
|
-
traits: string[];
|
|
318
|
-
}
|
|
319
287
|
/**
|
|
320
288
|
* A SchemaService designed to work with dynamically registered schemas.
|
|
321
289
|
*
|
|
322
290
|
* @public
|
|
323
291
|
*/
|
|
324
292
|
declare class SchemaService$1 implements SchemaService {
|
|
325
|
-
/** @internal */
|
|
326
|
-
_schemas: Map<string, InternalSchema>;
|
|
327
|
-
/** @internal */
|
|
328
|
-
_transforms: Map<string, Transformation>;
|
|
329
|
-
/** @internal */
|
|
330
|
-
_hashFns: Map<string, HashFn>;
|
|
331
|
-
/** @internal */
|
|
332
|
-
_derivations: Map<string, Derivation<any, any, any>>;
|
|
333
|
-
/** @internal */
|
|
334
|
-
_traits: Map<string, InternalTrait>;
|
|
335
|
-
/** @internal */
|
|
336
|
-
_modes: Map<string, KindFns>;
|
|
337
|
-
/**
|
|
338
|
-
* Tracks, per abstract type, the relationship fields that concrete
|
|
339
|
-
* implementers have contributed via `options.as`, along with the type
|
|
340
|
-
* that contributed each one (for assertion messages). This is
|
|
341
|
-
* independent of whatever schema (synthesized or user-registered)
|
|
342
|
-
* currently occupies `_schemas` for that type, so that these fields
|
|
343
|
-
* survive regardless of the order in which the abstract type's
|
|
344
|
-
* implementers and its own (optional) concrete schema are registered.
|
|
345
|
-
*
|
|
346
|
-
* @internal
|
|
347
|
-
*/
|
|
348
|
-
_abstractImplementerFields: Map<string, Map<string, AbstractFieldContribution>>;
|
|
349
|
-
/** @internal */
|
|
350
|
-
_extensions: {
|
|
351
|
-
object: Map<string, ProcessedExtension>;
|
|
352
|
-
array: Map<string, ProcessedExtension>;
|
|
353
|
-
};
|
|
354
|
-
/** @internal */
|
|
355
|
-
_cachedFieldExtensionsByField: {
|
|
356
|
-
object: Map<object, ProcessedExtension["features"] | null>;
|
|
357
|
-
array: Map<object, ProcessedExtension["features"] | null>;
|
|
358
|
-
};
|
|
359
293
|
constructor();
|
|
360
294
|
resourceTypes(): Readonly<string[]>;
|
|
361
295
|
hasTrait(type: string): boolean;
|
|
@@ -376,8 +310,6 @@ declare class SchemaService$1 implements SchemaService {
|
|
|
376
310
|
}): ResourceSchema | ObjectSchema;
|
|
377
311
|
registerResources(schemas: Array<ResourceSchema | ObjectSchema>): void;
|
|
378
312
|
registerResource(schema: ResourceSchema | ObjectSchema): void;
|
|
379
|
-
/** @internal */
|
|
380
|
-
private _registerAbstractTypeImplementation;
|
|
381
313
|
/**
|
|
382
314
|
* Registers a {@link Trait} for use by resource schemas.
|
|
383
315
|
*
|
|
@@ -419,30 +351,6 @@ declare class SchemaService$1 implements SchemaService {
|
|
|
419
351
|
kind: "object" | "array";
|
|
420
352
|
name: string;
|
|
421
353
|
}): boolean;
|
|
422
|
-
/**
|
|
423
|
-
* This is an internal method used to register behaviors for legacy mode.
|
|
424
|
-
* It is not intended for public use.
|
|
425
|
-
*
|
|
426
|
-
* We do think a generalized `kind` registration system would be useful,
|
|
427
|
-
* but we have not yet designed it.
|
|
428
|
-
*
|
|
429
|
-
* See https://github.com/warp-drive-data/warp-drive/issues/9534
|
|
430
|
-
*
|
|
431
|
-
* @internal
|
|
432
|
-
*/
|
|
433
|
-
_registerMode(mode: string, kinds: KindFns): void;
|
|
434
|
-
/**
|
|
435
|
-
* This is an internal method used to enable legacy behaviors for legacy mode.
|
|
436
|
-
* It is not intended for public use.
|
|
437
|
-
*
|
|
438
|
-
* We do think a generalized `kind` registration system would be useful,
|
|
439
|
-
* but we have not yet designed it.
|
|
440
|
-
*
|
|
441
|
-
* See https://github.com/warp-drive-data/warp-drive/issues/9534
|
|
442
|
-
*
|
|
443
|
-
* @internal
|
|
444
|
-
*/
|
|
445
|
-
_kind<T extends keyof KindFns>(mode: string, kind: T): KindFns[T];
|
|
446
354
|
/**
|
|
447
355
|
* Registers a {@link HashFn} for use with a {@link HashField} for
|
|
448
356
|
* either {@link ObjectSchema} identity or polymorphic type calculation.
|
|
@@ -938,24 +846,6 @@ interface SchemaService {
|
|
|
938
846
|
* @public
|
|
939
847
|
*/
|
|
940
848
|
declare class RequestManager {
|
|
941
|
-
/** @internal */
|
|
942
|
-
private _handlers;
|
|
943
|
-
/** @internal */
|
|
944
|
-
private _hasCacheHandler;
|
|
945
|
-
/**
|
|
946
|
-
* A map of pending requests from request.id to their
|
|
947
|
-
* associated CacheHandler promise.
|
|
948
|
-
*
|
|
949
|
-
* This queue is managed by the CacheHandler
|
|
950
|
-
*
|
|
951
|
-
* @internal
|
|
952
|
-
*/
|
|
953
|
-
_pending: Map<number, Promise<unknown>>;
|
|
954
|
-
/** @internal */
|
|
955
|
-
_deduped: Map<RequestKey, {
|
|
956
|
-
priority: ManagedRequestPriority;
|
|
957
|
-
promise: Promise<unknown>;
|
|
958
|
-
}>;
|
|
959
849
|
constructor(options?: GenericCreateArgs);
|
|
960
850
|
/**
|
|
961
851
|
* Register a handler to use for primary cache intercept.
|
|
@@ -1072,8 +962,6 @@ type DeferredStream = {
|
|
|
1072
962
|
* @public
|
|
1073
963
|
*/
|
|
1074
964
|
interface Future<T> extends Promise<StructuredDataDocument<T>> {
|
|
1075
|
-
/** @internal */
|
|
1076
|
-
[IS_FUTURE]: true;
|
|
1077
965
|
/**
|
|
1078
966
|
* Cancel this request by firing the {@link AbortController}'s signal.
|
|
1079
967
|
*
|
|
@@ -1305,8 +1193,6 @@ declare class ContextOwner {
|
|
|
1305
1193
|
* @public
|
|
1306
1194
|
*/
|
|
1307
1195
|
declare class Context$1 {
|
|
1308
|
-
/** @internal */
|
|
1309
|
-
private ___owner;
|
|
1310
1196
|
/**
|
|
1311
1197
|
* A readonly, immutable version of the request being handled, including
|
|
1312
1198
|
* any defaults or enhancements applied by the {@link RequestManager}.
|
|
@@ -1321,10 +1207,6 @@ declare class Context$1 {
|
|
|
1321
1207
|
* @public
|
|
1322
1208
|
*/
|
|
1323
1209
|
id: number;
|
|
1324
|
-
/** @internal */
|
|
1325
|
-
private _isCacheHandler;
|
|
1326
|
-
/** @internal */
|
|
1327
|
-
private _finalized;
|
|
1328
1210
|
constructor(owner: ContextOwner, isCacheHandler: boolean);
|
|
1329
1211
|
/**
|
|
1330
1212
|
* Set the response stream for this request. May be called at most once,
|
|
@@ -2347,44 +2229,7 @@ declare function setKeyInfoForResource(method: KeyInfoMethod | null): void;
|
|
|
2347
2229
|
* @public
|
|
2348
2230
|
*/
|
|
2349
2231
|
declare class CacheKeyManager {
|
|
2350
|
-
/** @internal */
|
|
2351
|
-
_cache: StableCache;
|
|
2352
|
-
/** @internal */
|
|
2353
|
-
private _generate;
|
|
2354
|
-
/** @internal */
|
|
2355
|
-
private _update;
|
|
2356
|
-
/** @internal */
|
|
2357
|
-
private _forget;
|
|
2358
|
-
/** @internal */
|
|
2359
|
-
private _reset;
|
|
2360
|
-
/** @internal */
|
|
2361
|
-
private _merge;
|
|
2362
|
-
/** @internal */
|
|
2363
|
-
private _keyInfoForResource;
|
|
2364
|
-
/** @internal */
|
|
2365
|
-
private _id;
|
|
2366
2232
|
constructor();
|
|
2367
|
-
/**
|
|
2368
|
-
* Internal hook to allow management of merge conflicts with identifiers.
|
|
2369
|
-
*
|
|
2370
|
-
* we allow late binding of this private internal merge so that
|
|
2371
|
-
* the cache can insert itself here to handle elimination of duplicates
|
|
2372
|
-
*
|
|
2373
|
-
* @internal
|
|
2374
|
-
*/
|
|
2375
|
-
__configureMerge(method: MergeMethod | null): void;
|
|
2376
|
-
/** @internal */
|
|
2377
|
-
upgradeIdentifier(resource: {
|
|
2378
|
-
type: string;
|
|
2379
|
-
id: string | null;
|
|
2380
|
-
lid?: string;
|
|
2381
|
-
}): ResourceKey;
|
|
2382
|
-
/** @internal */
|
|
2383
|
-
private _getRecordIdentifier;
|
|
2384
|
-
/** @internal */
|
|
2385
|
-
private _getRecordIdentifier;
|
|
2386
|
-
/** @internal */
|
|
2387
|
-
private _getRecordIdentifier;
|
|
2388
2233
|
/**
|
|
2389
2234
|
* allows us to peek without generating when needed
|
|
2390
2235
|
* useful for the "create" case when we need to see if
|
|
@@ -2465,10 +2310,6 @@ declare class CacheKeyManager {
|
|
|
2465
2310
|
@public
|
|
2466
2311
|
*/
|
|
2467
2312
|
updateRecordIdentifier(identifierObject: ResourceKey, data: unknown): ResourceKey;
|
|
2468
|
-
/**
|
|
2469
|
-
* @internal
|
|
2470
|
-
*/
|
|
2471
|
-
_mergeRecordIdentifiers(keyInfo: KeyInfo, identifier: ResourceKey, existingIdentifier: ResourceKey, data: unknown): ResourceKey;
|
|
2472
2313
|
/**
|
|
2473
2314
|
Provides the opportunity to eliminate an identifier from secondary lookup tables
|
|
2474
2315
|
as well as eliminates it from ember-data's own lookup tables and book keeping.
|
|
@@ -2480,8 +2321,6 @@ declare class CacheKeyManager {
|
|
|
2480
2321
|
@public
|
|
2481
2322
|
*/
|
|
2482
2323
|
forgetRecordIdentifier(identifierObject: ResourceKey): void;
|
|
2483
|
-
/** @internal */
|
|
2484
|
-
destroy(): void;
|
|
2485
2324
|
}
|
|
2486
2325
|
/**
|
|
2487
2326
|
* This type exists for internal use only for
|
|
@@ -2550,18 +2389,6 @@ interface DocumentOperationCallback {
|
|
|
2550
2389
|
* @public
|
|
2551
2390
|
*/
|
|
2552
2391
|
declare class NotificationManager {
|
|
2553
|
-
/** @internal */
|
|
2554
|
-
private store;
|
|
2555
|
-
/** @internal */
|
|
2556
|
-
private isDestroyed;
|
|
2557
|
-
/** @internal */
|
|
2558
|
-
private _buffered;
|
|
2559
|
-
/** @internal */
|
|
2560
|
-
private _cache;
|
|
2561
|
-
/** @internal */
|
|
2562
|
-
private _hasFlush;
|
|
2563
|
-
/** @internal */
|
|
2564
|
-
private _onFlushCB?;
|
|
2565
2392
|
constructor(store: Store);
|
|
2566
2393
|
/**
|
|
2567
2394
|
* Subscribe to changes for a given ResourceKey, RequestKey, or addition/removal of any resource
|
|
@@ -2617,14 +2444,6 @@ declare class NotificationManager {
|
|
|
2617
2444
|
notify(cacheKey: ResourceKey, value: "errors" | "meta" | "identity" | "state", key?: null): boolean;
|
|
2618
2445
|
notify(cacheKey: ResourceKey, value: CacheOperation, key?: null): boolean;
|
|
2619
2446
|
notify(cacheKey: RequestKey, value: DocumentCacheOperation, key?: null): boolean;
|
|
2620
|
-
/** @internal */
|
|
2621
|
-
_onNextFlush(cb: () => void): void;
|
|
2622
|
-
/** @internal */
|
|
2623
|
-
private _scheduleNotify;
|
|
2624
|
-
/** @internal */
|
|
2625
|
-
_flush(): void;
|
|
2626
|
-
/** @internal */
|
|
2627
|
-
destroy(): void;
|
|
2628
2447
|
}
|
|
2629
2448
|
/**
|
|
2630
2449
|
* This type exists for internal use only for
|
|
@@ -2846,17 +2665,7 @@ addon authors to perform meta-operations on a record.
|
|
|
2846
2665
|
@public
|
|
2847
2666
|
*/
|
|
2848
2667
|
declare class RecordReference {
|
|
2849
|
-
/** @internal */
|
|
2850
|
-
private store;
|
|
2851
|
-
/** @internal */
|
|
2852
|
-
private ___token;
|
|
2853
|
-
/** @internal */
|
|
2854
|
-
private ___identifier;
|
|
2855
|
-
/** @internal */
|
|
2856
|
-
private _ref;
|
|
2857
2668
|
constructor(store: Store, identifier: ResourceKey);
|
|
2858
|
-
/** @internal */
|
|
2859
|
-
destroy(): void;
|
|
2860
2669
|
get type(): string;
|
|
2861
2670
|
/**
|
|
2862
2671
|
The `id` of the record that this reference refers to.
|
|
@@ -4492,20 +4301,10 @@ interface CacheCapabilitiesManager {
|
|
|
4492
4301
|
getSchemaDefinitionService(): SchemaService;
|
|
4493
4302
|
}
|
|
4494
4303
|
declare class CacheCapabilitiesManager implements CacheCapabilitiesManager$1 {
|
|
4495
|
-
/** @internal */
|
|
4496
|
-
private _willNotify;
|
|
4497
|
-
/** @internal */
|
|
4498
|
-
private _pendingNotifies;
|
|
4499
|
-
/** @internal */
|
|
4500
|
-
_store: Store;
|
|
4501
4304
|
constructor(_store: Store);
|
|
4502
4305
|
get cacheKeyManager(): CacheKeyManager;
|
|
4503
4306
|
/** @deprecated use {@link CacheCapabilitiesManager.cacheKeyManager} */
|
|
4504
4307
|
get identifierCache(): CacheKeyManager;
|
|
4505
|
-
/** @internal */
|
|
4506
|
-
private _scheduleNotification;
|
|
4507
|
-
/** @internal */
|
|
4508
|
-
private _flushNotifications;
|
|
4509
4308
|
notifyChange(identifier: ResourceKey, namespace: "added" | "removed", key: null): void;
|
|
4510
4309
|
notifyChange(identifier: RequestKey, namespace: "added" | "updated" | "removed", key: null): void;
|
|
4511
4310
|
notifyChange(identifier: ResourceKey, namespace: "attributes", key: string | NotifyKeys | null): void;
|
|
@@ -4553,8 +4352,6 @@ declare function assertPrivateCapabilities(manager: unknown): asserts manager is
|
|
|
4553
4352
|
*/
|
|
4554
4353
|
declare class CacheManager implements Cache {
|
|
4555
4354
|
version: "2";
|
|
4556
|
-
/** @internal */
|
|
4557
|
-
private ___cache;
|
|
4558
4355
|
constructor(cache: Cache);
|
|
4559
4356
|
/**
|
|
4560
4357
|
* Cache the response to a request
|
|
@@ -5008,119 +4805,7 @@ declare class InstanceCache {
|
|
|
5008
4805
|
declare function _clearCaches(): void;
|
|
5009
4806
|
//#endregion
|
|
5010
4807
|
//#region src/store/-private/record-arrays/native-proxy-type-fix.d.ts
|
|
5011
|
-
interface
|
|
5012
|
-
/**
|
|
5013
|
-
* A trap method for a function call.
|
|
5014
|
-
* @param target The original callable object which is being proxied.
|
|
5015
|
-
* @internal
|
|
5016
|
-
*/
|
|
5017
|
-
apply?(target: T, thisArg: any, argArray: any[]): any;
|
|
5018
|
-
/**
|
|
5019
|
-
* A trap for the `new` operator.
|
|
5020
|
-
* @param target The original object which is being proxied.
|
|
5021
|
-
* @param newTarget The constructor that was originally called.
|
|
5022
|
-
* @internal
|
|
5023
|
-
*/
|
|
5024
|
-
construct?(target: T, argArray: any[], newTarget: Function): object;
|
|
5025
|
-
/**
|
|
5026
|
-
* A trap for `Object.defineProperty()`.
|
|
5027
|
-
* @param target The original object which is being proxied.
|
|
5028
|
-
* @return A `Boolean` indicating whether or not the property has been defined.
|
|
5029
|
-
* @internal
|
|
5030
|
-
*/
|
|
5031
|
-
defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;
|
|
5032
|
-
/**
|
|
5033
|
-
* A trap for the `delete` operator.
|
|
5034
|
-
* @param target The original object which is being proxied.
|
|
5035
|
-
* @param p The name or `Symbol` of the property to delete.
|
|
5036
|
-
* @return A `Boolean` indicating whether or not the property was deleted.
|
|
5037
|
-
* @internal
|
|
5038
|
-
*/
|
|
5039
|
-
deleteProperty?(target: T, p: string | symbol): boolean;
|
|
5040
|
-
/**
|
|
5041
|
-
* A trap for getting a property value.
|
|
5042
|
-
* @param target The original object which is being proxied.
|
|
5043
|
-
* @param p The name or `Symbol` of the property to get.
|
|
5044
|
-
* @param receiver The proxy or an object that inherits from the proxy.
|
|
5045
|
-
* @internal
|
|
5046
|
-
*/
|
|
5047
|
-
get?(target: T, p: string | symbol, receiver: any): any;
|
|
5048
|
-
/**
|
|
5049
|
-
* A trap for `Object.getOwnPropertyDescriptor()`.
|
|
5050
|
-
* @param target The original object which is being proxied.
|
|
5051
|
-
* @param p The name of the property whose description should be retrieved.
|
|
5052
|
-
* @internal
|
|
5053
|
-
*/
|
|
5054
|
-
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
|
|
5055
|
-
/**
|
|
5056
|
-
* A trap for the `[[GetPrototypeOf]]` internal method.
|
|
5057
|
-
* @param target The original object which is being proxied.
|
|
5058
|
-
* @internal
|
|
5059
|
-
*/
|
|
5060
|
-
getPrototypeOf?(target: T): object | null;
|
|
5061
|
-
/**
|
|
5062
|
-
* A trap for the `in` operator.
|
|
5063
|
-
* @param target The original object which is being proxied.
|
|
5064
|
-
* @param p The name or `Symbol` of the property to check for existence.
|
|
5065
|
-
* @internal
|
|
5066
|
-
*/
|
|
5067
|
-
has?(target: T, p: string | symbol): boolean;
|
|
5068
|
-
/**
|
|
5069
|
-
* A trap for `Object.isExtensible()`.
|
|
5070
|
-
* @param target The original object which is being proxied.
|
|
5071
|
-
* @internal
|
|
5072
|
-
*/
|
|
5073
|
-
isExtensible?(target: T): boolean;
|
|
5074
|
-
/**
|
|
5075
|
-
* A trap for `Reflect.ownKeys()`.
|
|
5076
|
-
* @param target The original object which is being proxied.
|
|
5077
|
-
* @internal
|
|
5078
|
-
*/
|
|
5079
|
-
ownKeys?(target: T): ArrayLike<string | symbol>;
|
|
5080
|
-
/**
|
|
5081
|
-
* A trap for `Object.preventExtensions()`.
|
|
5082
|
-
* @param target The original object which is being proxied.
|
|
5083
|
-
* @internal
|
|
5084
|
-
*/
|
|
5085
|
-
preventExtensions?(target: T): boolean;
|
|
5086
|
-
/**
|
|
5087
|
-
* A trap for setting a property value.
|
|
5088
|
-
* @param target The original object which is being proxied.
|
|
5089
|
-
* @param p The name or `Symbol` of the property to set.
|
|
5090
|
-
* @param receiver The object to which the assignment was originally directed.
|
|
5091
|
-
* @return A `Boolean` indicating whether or not the property was set.
|
|
5092
|
-
* @internal
|
|
5093
|
-
*/
|
|
5094
|
-
set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;
|
|
5095
|
-
/**
|
|
5096
|
-
* A trap for `Object.setPrototypeOf()`.
|
|
5097
|
-
* @param target The original object which is being proxied.
|
|
5098
|
-
* @param newPrototype The object's new prototype or `null`.
|
|
5099
|
-
* @internal
|
|
5100
|
-
*/
|
|
5101
|
-
setPrototypeOf?(target: T, v: object | null): boolean;
|
|
5102
|
-
}
|
|
5103
|
-
interface ProxyConstructor {
|
|
5104
|
-
/**
|
|
5105
|
-
* Creates a revocable Proxy object.
|
|
5106
|
-
* @param target A target object to wrap with Proxy.
|
|
5107
|
-
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
|
|
5108
|
-
* @internal
|
|
5109
|
-
*/
|
|
5110
|
-
revocable<T extends object>(target: T, handler: ProxyHandler<T>): {
|
|
5111
|
-
proxy: T;
|
|
5112
|
-
revoke: () => void;
|
|
5113
|
-
};
|
|
5114
|
-
/**
|
|
5115
|
-
* Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the
|
|
5116
|
-
* original object, but which may redefine fundamental Object operations like getting, setting, and defining
|
|
5117
|
-
* properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.
|
|
5118
|
-
* @param target A target object to wrap with Proxy.
|
|
5119
|
-
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
|
|
5120
|
-
* @internal
|
|
5121
|
-
*/
|
|
5122
|
-
new <TSource extends object, TTarget extends object>(target: TSource, handler: ProxyHandler<TSource>): TTarget;
|
|
5123
|
-
}
|
|
4808
|
+
interface ProxyConstructor {}
|
|
5124
4809
|
/**
|
|
5125
4810
|
* The global `Proxy` constructor, retyped with the corrected
|
|
5126
4811
|
* {@link ProxyConstructor} signature above so that `target` and `receiver`
|
|
@@ -5132,7 +4817,6 @@ declare const NativeProxy: ProxyConstructor;
|
|
|
5132
4817
|
//#endregion
|
|
5133
4818
|
//#region src/reactive/-private/symbols.d.ts
|
|
5134
4819
|
declare const SOURCE: "___(unique) Symbol(SOURCE)";
|
|
5135
|
-
declare const Destroy: "___(unique) Symbol(Destroy)";
|
|
5136
4820
|
/**
|
|
5137
4821
|
* Symbol for the method used to request a mutable copy of an otherwise
|
|
5138
4822
|
* immutable {@link ReactiveResource}.
|
|
@@ -5140,95 +4824,12 @@ declare const Destroy: "___(unique) Symbol(Destroy)";
|
|
|
5140
4824
|
* @deprecated use the {@link checkout} utility function instead.
|
|
5141
4825
|
*/
|
|
5142
4826
|
declare const Checkout: "___(unique) Symbol(Checkout)";
|
|
5143
|
-
declare const Commit: "___(unique) Symbol(Commit)";
|
|
5144
4827
|
/**
|
|
5145
4828
|
* Symbol used to stash the internal field/resource context (schema, store,
|
|
5146
4829
|
* mutability, etc.) on a {@link ReactiveResource} or reactive field instance.
|
|
5147
4830
|
*/
|
|
5148
4831
|
declare const Context: "___(unique) Symbol(Context)";
|
|
5149
4832
|
//#endregion
|
|
5150
|
-
//#region src/reactive/-private/default-mode.d.ts
|
|
5151
|
-
type ModeName = "polaris" | "legacy";
|
|
5152
|
-
interface BaseContext {
|
|
5153
|
-
/**
|
|
5154
|
-
* The {@link Store} instance that owns
|
|
5155
|
-
* the reactive context we are within.
|
|
5156
|
-
*/
|
|
5157
|
-
store: Store;
|
|
5158
|
-
/**
|
|
5159
|
-
* The {@link ResourceKey} of the resource that
|
|
5160
|
-
* the reactive context we are within is for.
|
|
5161
|
-
*/
|
|
5162
|
-
resourceKey: ResourceKey;
|
|
5163
|
-
/**
|
|
5164
|
-
* The name of the {@link ModeName | mode} that the
|
|
5165
|
-
* reactive context we are within is operating in.
|
|
5166
|
-
*/
|
|
5167
|
-
modeName: ModeName;
|
|
5168
|
-
/**
|
|
5169
|
-
* Whether we are in legacy {@link ModeName | mode}
|
|
5170
|
-
* or not.
|
|
5171
|
-
*/
|
|
5172
|
-
legacy: boolean;
|
|
5173
|
-
/**
|
|
5174
|
-
* Whether the ReactiveResource instance we are operating
|
|
5175
|
-
* in is currently editable or not. This should be true if the
|
|
5176
|
-
* record is currently checked out for editing or is in legacy mode
|
|
5177
|
-
* and false if the record is currently in a read-only state.
|
|
5178
|
-
*/
|
|
5179
|
-
editable: boolean;
|
|
5180
|
-
}
|
|
5181
|
-
interface ResourceContext extends BaseContext {
|
|
5182
|
-
path: null;
|
|
5183
|
-
field: null;
|
|
5184
|
-
value: null;
|
|
5185
|
-
}
|
|
5186
|
-
interface ObjectContext extends BaseContext {
|
|
5187
|
-
path: string[];
|
|
5188
|
-
field: SchemaObjectField | SchemaArrayField;
|
|
5189
|
-
value: string;
|
|
5190
|
-
}
|
|
5191
|
-
/**
|
|
5192
|
-
* A ReactiveResource context object passed to
|
|
5193
|
-
* the get/set functions of a field kind implementation.
|
|
5194
|
-
*
|
|
5195
|
-
* This provides all the necessary information for
|
|
5196
|
-
* the field kind to perform its operations.
|
|
5197
|
-
*
|
|
5198
|
-
* @internal
|
|
5199
|
-
*/
|
|
5200
|
-
interface KindContext<T extends FieldSchema | IdentityField | HashField> extends BaseContext {
|
|
5201
|
-
/**
|
|
5202
|
-
* The "cache" path to the field within the resource.
|
|
5203
|
-
*
|
|
5204
|
-
* This is the path that should be used to access the
|
|
5205
|
-
* field's value in the cache.
|
|
5206
|
-
*
|
|
5207
|
-
* It differs from the "ui path" in that it will be
|
|
5208
|
-
* both unaliased and account for source keys.
|
|
5209
|
-
*/
|
|
5210
|
-
path: string[];
|
|
5211
|
-
/**
|
|
5212
|
-
* The raw schema field definition
|
|
5213
|
-
*/
|
|
5214
|
-
field: T;
|
|
5215
|
-
/**
|
|
5216
|
-
* The value being set in a set operation. This will be null in a get operation.
|
|
5217
|
-
*/
|
|
5218
|
-
value: unknown;
|
|
5219
|
-
/**
|
|
5220
|
-
* The object (a ReactiveResource) that the field is being directly accessed on.
|
|
5221
|
-
* This is not necessarily the same as the instance that {@link BaseContext.resourceKey | resourceKey}
|
|
5222
|
-
* points to, as the field being accessed may be on an embedded schema-object
|
|
5223
|
-
* or similar.
|
|
5224
|
-
*/
|
|
5225
|
-
record: ReactiveResource;
|
|
5226
|
-
/**
|
|
5227
|
-
* The signals object for the record, used to entangle signals for reactivity.
|
|
5228
|
-
*/
|
|
5229
|
-
signals: SignalStore;
|
|
5230
|
-
}
|
|
5231
|
-
//#endregion
|
|
5232
4833
|
//#region src/reactive/-private/fields/managed-array.d.ts
|
|
5233
4834
|
interface ManagedArray extends Omit<Array<unknown>, "[]"> {
|
|
5234
4835
|
[SOURCE]: unknown[];
|
|
@@ -5279,18 +4880,7 @@ interface ReactiveResourceArrayContext extends ReactiveResourceArrayCreateOption
|
|
|
5279
4880
|
*
|
|
5280
4881
|
* @public
|
|
5281
4882
|
*/
|
|
5282
|
-
interface ReactiveResourceArray<T = unknown> extends Omit<Array<T>, "[]"> {
|
|
5283
|
-
/** @internal */
|
|
5284
|
-
isDestroying: boolean;
|
|
5285
|
-
/** @internal */
|
|
5286
|
-
isDestroyed: boolean;
|
|
5287
|
-
/** @internal */
|
|
5288
|
-
destroy: (this: ReactiveResourceArray, clear: boolean) => void;
|
|
5289
|
-
/** @internal */
|
|
5290
|
-
[IS_COLLECTION]: boolean;
|
|
5291
|
-
/** @internal */
|
|
5292
|
-
[Context]: ReactiveResourceArrayContext;
|
|
5293
|
-
}
|
|
4883
|
+
interface ReactiveResourceArray<T = unknown> extends Omit<Array<T>, "[]"> {}
|
|
5294
4884
|
/**
|
|
5295
4885
|
* A variant of {@link ReactiveResourceArray} that exposes its otherwise
|
|
5296
4886
|
* internal-only members (including the `Context` symbol used to reach the
|
|
@@ -5329,8 +4919,6 @@ interface LegacyArray<T = unknown> extends ReactiveResourceArray<T> {
|
|
|
5329
4919
|
```
|
|
5330
4920
|
*/
|
|
5331
4921
|
isUpdating: boolean;
|
|
5332
|
-
/** @internal */
|
|
5333
|
-
_updatingPromise: Promise<LegacyArray<T>> | null;
|
|
5334
4922
|
/**
|
|
5335
4923
|
Used to get the latest version of all of the records in this array
|
|
5336
4924
|
from the adapter.
|
|
@@ -5450,8 +5038,6 @@ interface LegacyLiveArray<T = unknown> extends LegacyArray<T> {
|
|
|
5450
5038
|
* loaded once created.
|
|
5451
5039
|
*/
|
|
5452
5040
|
isLoaded: boolean;
|
|
5453
|
-
/** @internal */
|
|
5454
|
-
DEPRECATED_CLASS_NAME: string;
|
|
5455
5041
|
/**
|
|
5456
5042
|
* The resource type (`ResourceType`) whose records this LiveArray contains.
|
|
5457
5043
|
*/
|
|
@@ -5617,77 +5203,9 @@ type ChangeSet = Map<ResourceKey, "add" | "del">;
|
|
|
5617
5203
|
@private
|
|
5618
5204
|
*/
|
|
5619
5205
|
declare class RecordArrayManager {
|
|
5620
|
-
/** @internal */
|
|
5621
|
-
private store;
|
|
5622
|
-
/** @internal */
|
|
5623
|
-
private isDestroying;
|
|
5624
|
-
/** @internal */
|
|
5625
|
-
private isDestroyed;
|
|
5626
|
-
/** @internal */
|
|
5627
|
-
private _set;
|
|
5628
|
-
/**
|
|
5629
|
-
* LiveArray (peekAll/findAll) array instances
|
|
5630
|
-
* keyed by their ResourceType.
|
|
5631
|
-
*
|
|
5632
|
-
* @internal
|
|
5633
|
-
*/
|
|
5634
|
-
_live: Map<string, LegacyLiveArray>;
|
|
5635
|
-
/** @internal */
|
|
5636
|
-
_managed: Set<ReactiveResourceArray>;
|
|
5637
|
-
/**
|
|
5638
|
-
* Buffered changes to apply keyed by the array to
|
|
5639
|
-
* which to apply them to.
|
|
5640
|
-
*
|
|
5641
|
-
* @internal
|
|
5642
|
-
*/
|
|
5643
|
-
_pending: Map<ReactiveResourceArray, ChangeSet>;
|
|
5644
|
-
/**
|
|
5645
|
-
* An inverse map from ResourceKey to the list
|
|
5646
|
-
* of arrays it can be found in, useful for fast updates
|
|
5647
|
-
* when state changes to a resource occur.
|
|
5648
|
-
*
|
|
5649
|
-
* @internal
|
|
5650
|
-
*/
|
|
5651
|
-
private _identifiers;
|
|
5652
|
-
/**
|
|
5653
|
-
* When we do not yet have a LiveArray, this keeps track of
|
|
5654
|
-
* the added/removed identifiers to enable us to more efficiently
|
|
5655
|
-
* produce the LiveArray later.
|
|
5656
|
-
*
|
|
5657
|
-
* It's possible that using a Set and only storing additions instead of
|
|
5658
|
-
* additions and deletes would be more efficient.
|
|
5659
|
-
*
|
|
5660
|
-
* @internal
|
|
5661
|
-
*/
|
|
5662
|
-
private _staged;
|
|
5663
|
-
/** @internal */
|
|
5664
|
-
private _subscription;
|
|
5665
|
-
/** @internal */
|
|
5666
|
-
private _documentSubscription;
|
|
5667
|
-
/**
|
|
5668
|
-
* KeyedArrays are arrays associated to a specific RequestKey.
|
|
5669
|
-
* @internal
|
|
5670
|
-
*/
|
|
5671
|
-
private _keyedArrays;
|
|
5672
|
-
/**
|
|
5673
|
-
* The visibility set tracks whether a given identifier should
|
|
5674
|
-
* be shown in RecordArrays. It is used to dedupe added/removed
|
|
5675
|
-
* and state change events.
|
|
5676
|
-
*
|
|
5677
|
-
* As a Map, it grows to be very large - there may be ways to
|
|
5678
|
-
* reduce its size by instead migrating to it functioning as
|
|
5679
|
-
* an exclusion list. Any entry not in the list would be considered
|
|
5680
|
-
* visible.
|
|
5681
|
-
* @internal
|
|
5682
|
-
*/
|
|
5683
|
-
private _visibilitySet;
|
|
5684
5206
|
constructor(options: {
|
|
5685
5207
|
store: Store;
|
|
5686
5208
|
});
|
|
5687
|
-
/** @internal */
|
|
5688
|
-
private _subscribeToResourceChanges;
|
|
5689
|
-
/** @internal */
|
|
5690
|
-
_syncArray(array: ReactiveResourceArray): void;
|
|
5691
5209
|
mutate(mutation: LocalRelationshipOperation): void;
|
|
5692
5210
|
/**
|
|
5693
5211
|
Get the `RecordArray` for a modelName, which contains all loaded records of
|
|
@@ -5699,26 +5217,12 @@ declare class RecordArrayManager {
|
|
|
5699
5217
|
getCollection(config: LegacyQueryInit): LegacyQueryArray;
|
|
5700
5218
|
getCollection(config: AnonymousRequestCollectionInit): ReactiveResourceArray;
|
|
5701
5219
|
getCollection(config: RequestCollectionInit): ReactiveResourceArray;
|
|
5702
|
-
/** @internal */
|
|
5703
|
-
private dirtyArray;
|
|
5704
|
-
/** @internal */
|
|
5705
|
-
private _getPendingFor;
|
|
5706
5220
|
/**
|
|
5707
5221
|
* @private
|
|
5708
5222
|
*/
|
|
5709
5223
|
populateManagedArray(array: ReactiveResourceArray, identifiers: ResourceKey[], payload: CollectionResourceDocument | null): void;
|
|
5710
|
-
/** @internal */
|
|
5711
|
-
private identifierAdded;
|
|
5712
|
-
/** @internal */
|
|
5713
|
-
private identifierRemoved;
|
|
5714
|
-
/** @internal */
|
|
5715
|
-
private identifierChanged;
|
|
5716
5224
|
pause(): void;
|
|
5717
5225
|
resume(): void;
|
|
5718
|
-
/**
|
|
5719
|
-
* @internal
|
|
5720
|
-
*/
|
|
5721
|
-
clear(isClear?: boolean): void;
|
|
5722
5226
|
destroy(): void;
|
|
5723
5227
|
}
|
|
5724
5228
|
/**
|
|
@@ -5808,31 +5312,7 @@ type RequestSubscription$1 = (requestState: RequestCacheRequestState) => void;
|
|
|
5808
5312
|
* @public
|
|
5809
5313
|
*/
|
|
5810
5314
|
declare class RequestStateService {
|
|
5811
|
-
/** @internal */
|
|
5812
|
-
_pending: Map<ResourceKey, InternalRequest[]>;
|
|
5813
|
-
/** @internal */
|
|
5814
|
-
private _done;
|
|
5815
|
-
/** @internal */
|
|
5816
|
-
private _subscriptions;
|
|
5817
|
-
/** @internal */
|
|
5818
|
-
private _toFlush;
|
|
5819
|
-
/** @internal */
|
|
5820
|
-
private _store;
|
|
5821
5315
|
constructor(store: Store);
|
|
5822
|
-
/** @internal */
|
|
5823
|
-
_clearEntries(identifier: ResourceKey): void;
|
|
5824
|
-
/** @internal */
|
|
5825
|
-
_enqueue<T>(promise: Promise<T>, queryRequest: Request$1): Promise<T>;
|
|
5826
|
-
/** @internal */
|
|
5827
|
-
private _triggerSubscriptions;
|
|
5828
|
-
/** @internal */
|
|
5829
|
-
private _flush;
|
|
5830
|
-
/** @internal */
|
|
5831
|
-
private _flushRequest;
|
|
5832
|
-
/** @internal */
|
|
5833
|
-
private _dequeue;
|
|
5834
|
-
/** @internal */
|
|
5835
|
-
private _addDone;
|
|
5836
5316
|
/**
|
|
5837
5317
|
* Subscribe to requests for a given resource identity.
|
|
5838
5318
|
*
|
|
@@ -6934,8 +6414,6 @@ interface Store {
|
|
|
6934
6414
|
* @hideconstructor
|
|
6935
6415
|
*/
|
|
6936
6416
|
declare class Store extends BaseClass {
|
|
6937
|
-
/** @internal */
|
|
6938
|
-
readonly recordArrayManager: RecordArrayManager;
|
|
6939
6417
|
/**
|
|
6940
6418
|
* Provides access to the {@link NotificationManager} associated
|
|
6941
6419
|
* with this Store instance.
|
|
@@ -6956,8 +6434,6 @@ declare class Store extends BaseClass {
|
|
|
6956
6434
|
* @public
|
|
6957
6435
|
*/
|
|
6958
6436
|
get schema(): ReturnType<this["createSchemaService"]>;
|
|
6959
|
-
/** @internal */
|
|
6960
|
-
_schema: SchemaService;
|
|
6961
6437
|
/**
|
|
6962
6438
|
* Provides access to the CacheKeyManager
|
|
6963
6439
|
* for this store.
|
|
@@ -7020,68 +6496,16 @@ declare class Store extends BaseClass {
|
|
|
7020
6496
|
* @public
|
|
7021
6497
|
*/
|
|
7022
6498
|
lifetimes?: CachePolicy;
|
|
7023
|
-
/** @internal */
|
|
7024
|
-
_graph?: Graph;
|
|
7025
|
-
/** @internal */
|
|
7026
|
-
_requestCache: RequestStateService;
|
|
7027
|
-
/** @internal */
|
|
7028
|
-
_instanceCache: InstanceCache;
|
|
7029
|
-
/** @internal */
|
|
7030
|
-
_cbs: {
|
|
7031
|
-
coalesce?: () => void;
|
|
7032
|
-
sync?: () => void;
|
|
7033
|
-
notify?: () => void;
|
|
7034
|
-
} | null;
|
|
7035
|
-
/** @internal */
|
|
7036
|
-
_forceShim: boolean;
|
|
7037
|
-
/**
|
|
7038
|
-
* Async flush buffers notifications until flushed
|
|
7039
|
-
* by finalization of a future configured by store.request
|
|
7040
|
-
*
|
|
7041
|
-
* This is useful for ensuring that notifications are delivered
|
|
7042
|
-
* prior to the promise resolving but without risk of promise
|
|
7043
|
-
* interleaving.
|
|
7044
|
-
*
|
|
7045
|
-
* @internal
|
|
7046
|
-
*/
|
|
7047
|
-
_enableAsyncFlush: boolean | null;
|
|
7048
|
-
/**
|
|
7049
|
-
* Available in DEBUG Only
|
|
7050
|
-
* @internal
|
|
7051
|
-
*/
|
|
7052
|
-
DISABLE_WAITER?: boolean;
|
|
7053
|
-
/** @internal */
|
|
7054
|
-
_isDestroying: boolean;
|
|
7055
|
-
/** @internal */
|
|
7056
|
-
_isDestroyed: boolean;
|
|
7057
6499
|
/** @private */
|
|
7058
6500
|
get isDestroying(): boolean;
|
|
7059
|
-
/** @internal */
|
|
7060
|
-
set isDestroying(value: boolean);
|
|
7061
6501
|
/** @private */
|
|
7062
6502
|
get isDestroyed(): boolean;
|
|
7063
|
-
/** @internal */
|
|
7064
|
-
set isDestroyed(value: boolean);
|
|
7065
6503
|
/** @deprecated use {@link Store.cacheKeyManager} */
|
|
7066
6504
|
get identifierCache(): CacheKeyManager;
|
|
7067
6505
|
/**
|
|
7068
6506
|
@private
|
|
7069
6507
|
*/
|
|
7070
6508
|
constructor(createArgs?: unknown);
|
|
7071
|
-
/** @internal */
|
|
7072
|
-
_run(cb: () => void): void;
|
|
7073
|
-
/**
|
|
7074
|
-
* Executes the callback, ensurng that any work that calls
|
|
7075
|
-
* store._schedule is executed after in the right order.
|
|
7076
|
-
*
|
|
7077
|
-
* When queues already exist, scheduled callbacks will
|
|
7078
|
-
* join the existing queue.
|
|
7079
|
-
*
|
|
7080
|
-
* @internal
|
|
7081
|
-
*/
|
|
7082
|
-
_join(cb: () => void): void;
|
|
7083
|
-
/** @internal */
|
|
7084
|
-
_schedule(name: "coalesce" | "sync" | "notify", cb: () => void): void;
|
|
7085
6509
|
/**
|
|
7086
6510
|
* Retrieve the RequestStateService instance
|
|
7087
6511
|
* associated with this Store.
|
|
@@ -7093,10 +6517,6 @@ declare class Store extends BaseClass {
|
|
|
7093
6517
|
* @public
|
|
7094
6518
|
*/
|
|
7095
6519
|
getRequestStateService(): RequestStateService;
|
|
7096
|
-
/** @internal */
|
|
7097
|
-
_getAllPending(): (Promise<unknown[]> & {
|
|
7098
|
-
length: number;
|
|
7099
|
-
}) | void;
|
|
7100
6520
|
/**
|
|
7101
6521
|
* ::: tip 💡 For a more complete overview see the [Request Guide](/guides/2-requests/1-overview)
|
|
7102
6522
|
* :::
|
|
@@ -7712,10 +7132,6 @@ interface LegacyManyArray<T = unknown> extends ReactiveResourceArray<T> {
|
|
|
7712
7132
|
@public
|
|
7713
7133
|
*/
|
|
7714
7134
|
links: Links | PaginationLinks | null;
|
|
7715
|
-
/** @internal */
|
|
7716
|
-
isPolymorphic: boolean;
|
|
7717
|
-
/** @internal */
|
|
7718
|
-
isAsync: boolean;
|
|
7719
7135
|
/** @private */
|
|
7720
7136
|
key: string;
|
|
7721
7137
|
/** @private */
|
|
@@ -7725,8 +7141,6 @@ interface LegacyManyArray<T = unknown> extends ReactiveResourceArray<T> {
|
|
|
7725
7141
|
@public
|
|
7726
7142
|
*/
|
|
7727
7143
|
isLoaded: boolean;
|
|
7728
|
-
/** @internal */
|
|
7729
|
-
notify(): void;
|
|
7730
7144
|
/**
|
|
7731
7145
|
Reloads all of the records in the manyArray. If the manyArray
|
|
7732
7146
|
holds a relationship that was originally fetched using a links url
|
|
@@ -7851,20 +7265,88 @@ declare function log(scope: "reactive-ui", prefix: string, type: string, lid: st
|
|
|
7851
7265
|
*/
|
|
7852
7266
|
declare function log(scope: "notify", prefix: string, type: string, lid: string, bucket: string, key: string): void;
|
|
7853
7267
|
//#endregion
|
|
7268
|
+
//#region src/reactive/-private/default-mode.d.ts
|
|
7269
|
+
type ModeName = "polaris" | "legacy";
|
|
7270
|
+
interface BaseContext {
|
|
7271
|
+
/**
|
|
7272
|
+
* The {@link Store} instance that owns
|
|
7273
|
+
* the reactive context we are within.
|
|
7274
|
+
*/
|
|
7275
|
+
store: Store;
|
|
7276
|
+
/**
|
|
7277
|
+
* The {@link ResourceKey} of the resource that
|
|
7278
|
+
* the reactive context we are within is for.
|
|
7279
|
+
*/
|
|
7280
|
+
resourceKey: ResourceKey;
|
|
7281
|
+
/**
|
|
7282
|
+
* The name of the {@link ModeName | mode} that the
|
|
7283
|
+
* reactive context we are within is operating in.
|
|
7284
|
+
*/
|
|
7285
|
+
modeName: ModeName;
|
|
7286
|
+
/**
|
|
7287
|
+
* Whether we are in legacy {@link ModeName | mode}
|
|
7288
|
+
* or not.
|
|
7289
|
+
*/
|
|
7290
|
+
legacy: boolean;
|
|
7291
|
+
/**
|
|
7292
|
+
* Whether the ReactiveResource instance we are operating
|
|
7293
|
+
* in is currently editable or not. This should be true if the
|
|
7294
|
+
* record is currently checked out for editing or is in legacy mode
|
|
7295
|
+
* and false if the record is currently in a read-only state.
|
|
7296
|
+
*/
|
|
7297
|
+
editable: boolean;
|
|
7298
|
+
}
|
|
7299
|
+
interface ResourceContext extends BaseContext {
|
|
7300
|
+
path: null;
|
|
7301
|
+
field: null;
|
|
7302
|
+
value: null;
|
|
7303
|
+
}
|
|
7304
|
+
interface ObjectContext extends BaseContext {
|
|
7305
|
+
path: string[];
|
|
7306
|
+
field: SchemaObjectField | SchemaArrayField;
|
|
7307
|
+
value: string;
|
|
7308
|
+
}
|
|
7309
|
+
/**
|
|
7310
|
+
* A ReactiveResource context object passed to
|
|
7311
|
+
* the get/set functions of a field kind implementation.
|
|
7312
|
+
*
|
|
7313
|
+
* This provides all the necessary information for
|
|
7314
|
+
* the field kind to perform its operations.
|
|
7315
|
+
*/
|
|
7316
|
+
interface KindContext<T extends FieldSchema | IdentityField | HashField> extends BaseContext {
|
|
7317
|
+
/**
|
|
7318
|
+
* The "cache" path to the field within the resource.
|
|
7319
|
+
*
|
|
7320
|
+
* This is the path that should be used to access the
|
|
7321
|
+
* field's value in the cache.
|
|
7322
|
+
*
|
|
7323
|
+
* It differs from the "ui path" in that it will be
|
|
7324
|
+
* both unaliased and account for source keys.
|
|
7325
|
+
*/
|
|
7326
|
+
path: string[];
|
|
7327
|
+
/**
|
|
7328
|
+
* The raw schema field definition
|
|
7329
|
+
*/
|
|
7330
|
+
field: T;
|
|
7331
|
+
/**
|
|
7332
|
+
* The value being set in a set operation. This will be null in a get operation.
|
|
7333
|
+
*/
|
|
7334
|
+
value: unknown;
|
|
7335
|
+
/**
|
|
7336
|
+
* The object (a ReactiveResource) that the field is being directly accessed on.
|
|
7337
|
+
* This is not necessarily the same as the instance that {@link BaseContext.resourceKey | resourceKey}
|
|
7338
|
+
* points to, as the field being accessed may be on an embedded schema-object
|
|
7339
|
+
* or similar.
|
|
7340
|
+
*/
|
|
7341
|
+
record: ReactiveResource;
|
|
7342
|
+
/**
|
|
7343
|
+
* The signals object for the record, used to entangle signals for reactivity.
|
|
7344
|
+
*/
|
|
7345
|
+
signals: SignalStore;
|
|
7346
|
+
}
|
|
7347
|
+
//#endregion
|
|
7854
7348
|
//#region src/reactive/-private/record.d.ts
|
|
7855
7349
|
interface ReactiveResource {
|
|
7856
|
-
/** @internal */
|
|
7857
|
-
[Symbol.toStringTag]: `ReactiveResource<${string}>`;
|
|
7858
|
-
/** @internal */
|
|
7859
|
-
[Context]: ObjectContext | ResourceContext;
|
|
7860
|
-
/** @internal */
|
|
7861
|
-
[RecordStore]: Store;
|
|
7862
|
-
/** @internal */
|
|
7863
|
-
___notifications: object;
|
|
7864
|
-
/** @internal */
|
|
7865
|
-
[Destroy](): void;
|
|
7866
|
-
/** @internal */
|
|
7867
|
-
[Commit](): Promise<void>;
|
|
7868
7350
|
/**
|
|
7869
7351
|
* Create an editable copy of the record
|
|
7870
7352
|
*
|
|
@@ -8457,36 +7939,6 @@ declare function getPromiseState<T = unknown, E = unknown>(promise: Promise<T> |
|
|
|
8457
7939
|
* @hideconstructor
|
|
8458
7940
|
*/
|
|
8459
7941
|
declare class RequestLoadingState {
|
|
8460
|
-
/** @internal */
|
|
8461
|
-
private _sizeHint;
|
|
8462
|
-
/** @internal */
|
|
8463
|
-
private _bytesLoaded;
|
|
8464
|
-
/** @internal */
|
|
8465
|
-
private _startTime;
|
|
8466
|
-
/** @internal */
|
|
8467
|
-
private _endTime;
|
|
8468
|
-
/** @internal */
|
|
8469
|
-
private _lastPacketTime;
|
|
8470
|
-
/** @internal */
|
|
8471
|
-
private _isPending;
|
|
8472
|
-
/** @internal */
|
|
8473
|
-
private _isStarted;
|
|
8474
|
-
/** @internal */
|
|
8475
|
-
private _isComplete;
|
|
8476
|
-
/** @internal */
|
|
8477
|
-
private _isCancelled;
|
|
8478
|
-
/** @internal */
|
|
8479
|
-
private _isErrored;
|
|
8480
|
-
/** @internal */
|
|
8481
|
-
private _error;
|
|
8482
|
-
/** @internal */
|
|
8483
|
-
private _stream;
|
|
8484
|
-
/** @internal */
|
|
8485
|
-
private _future;
|
|
8486
|
-
/** @internal */
|
|
8487
|
-
private _triggered;
|
|
8488
|
-
/** @internal */
|
|
8489
|
-
private _trigger;
|
|
8490
7942
|
/**
|
|
8491
7943
|
* Resolves once the stream has finished being consumed, or rejects
|
|
8492
7944
|
* if the request errors. `null` until first accessed.
|
|
@@ -9059,96 +8511,12 @@ declare class RequestSubscription<RT, E> {
|
|
|
9059
8511
|
* Whether the component is currently refreshing the request.
|
|
9060
8512
|
*/
|
|
9061
8513
|
isRefreshing: boolean;
|
|
9062
|
-
/**
|
|
9063
|
-
* The most recent blocking request that was made, typically
|
|
9064
|
-
* the result of a reload.
|
|
9065
|
-
*
|
|
9066
|
-
* This will never be the original request passed as an arg to
|
|
9067
|
-
* the component.
|
|
9068
|
-
*
|
|
9069
|
-
* @internal
|
|
9070
|
-
*/
|
|
9071
|
-
private _localRequest;
|
|
9072
|
-
/**
|
|
9073
|
-
* The most recent request that was made, typically due to either a
|
|
9074
|
-
* reload or a refresh.
|
|
9075
|
-
*
|
|
9076
|
-
* This will never be the original request passed as an arg to
|
|
9077
|
-
* the component.
|
|
9078
|
-
*
|
|
9079
|
-
* @internal
|
|
9080
|
-
*/
|
|
9081
|
-
private _latestRequest;
|
|
9082
|
-
/**
|
|
9083
|
-
* The time at which the network was reported as offline.
|
|
9084
|
-
*
|
|
9085
|
-
* @internal
|
|
9086
|
-
*/
|
|
9087
|
-
private _unavailableStart;
|
|
9088
|
-
/** @internal */
|
|
9089
|
-
private _intervalStart;
|
|
9090
|
-
/** @internal */
|
|
9091
|
-
private _nextInterval;
|
|
9092
|
-
/** @internal */
|
|
9093
|
-
private _invalidated;
|
|
9094
|
-
/** @internal */
|
|
9095
|
-
private _isUpdating;
|
|
9096
|
-
/** @internal */
|
|
9097
|
-
private isDestroyed;
|
|
9098
|
-
/**
|
|
9099
|
-
* The event listener for network status changes,
|
|
9100
|
-
* cached to use the reference for removal.
|
|
9101
|
-
*
|
|
9102
|
-
* @internal
|
|
9103
|
-
*/
|
|
9104
|
-
private _onlineChanged;
|
|
9105
|
-
/**
|
|
9106
|
-
* The event listener for visibility status changes,
|
|
9107
|
-
* cached to use the reference for removal.
|
|
9108
|
-
*
|
|
9109
|
-
* @internal
|
|
9110
|
-
*/
|
|
9111
|
-
private _backgroundChanged;
|
|
9112
|
-
/**
|
|
9113
|
-
* The last request passed as an arg to the component,
|
|
9114
|
-
* cached for comparison.
|
|
9115
|
-
*
|
|
9116
|
-
* @internal
|
|
9117
|
-
*/
|
|
9118
|
-
private _originalRequest;
|
|
9119
|
-
/**
|
|
9120
|
-
* The last query passed as an arg to the component,
|
|
9121
|
-
* cached for comparison.
|
|
9122
|
-
*
|
|
9123
|
-
* @internal
|
|
9124
|
-
*/
|
|
9125
|
-
private _originalQuery;
|
|
9126
|
-
/** @internal */
|
|
9127
|
-
private _subscription;
|
|
9128
|
-
/** @internal */
|
|
9129
|
-
private _subscribedTo;
|
|
9130
|
-
/** @internal */
|
|
9131
|
-
private _args;
|
|
9132
8514
|
/**
|
|
9133
8515
|
* The Store this subscription subscribes to or the RequestManager
|
|
9134
8516
|
* which issues this request.
|
|
9135
8517
|
*/
|
|
9136
8518
|
store: Store | RequestManager;
|
|
9137
|
-
/**
|
|
9138
|
-
* The Store or RequestManager that the last subscription is attached to.
|
|
9139
|
-
*
|
|
9140
|
-
* This differs from 'store' because a <Request /> may be passed a
|
|
9141
|
-
* request originating from a different store than the <Request />
|
|
9142
|
-
* component would use if it were to issue the request itself.
|
|
9143
|
-
*
|
|
9144
|
-
* @internal
|
|
9145
|
-
*/
|
|
9146
|
-
private _requester;
|
|
9147
8519
|
constructor(store: Store | RequestManager, args: SubscriptionArgs<RT, E>);
|
|
9148
|
-
/**
|
|
9149
|
-
* @internal
|
|
9150
|
-
*/
|
|
9151
|
-
private _beginPolling;
|
|
9152
8520
|
/**
|
|
9153
8521
|
* Whether neither a `request` nor a `query` arg was provided, and so
|
|
9154
8522
|
* this subscription has nothing to fetch or monitor.
|
|
@@ -9159,48 +8527,6 @@ declare class RequestSubscription<RT, E> {
|
|
|
9159
8527
|
* configured to autorefresh for, derived from {@link SubscriptionArgs.autorefresh}.
|
|
9160
8528
|
*/
|
|
9161
8529
|
get autorefreshTypes(): Set<AutorefreshBehaviorType>;
|
|
9162
|
-
/** @internal */
|
|
9163
|
-
private _scheduleInterval;
|
|
9164
|
-
/** @internal */
|
|
9165
|
-
private _clearInterval;
|
|
9166
|
-
/**
|
|
9167
|
-
* @internal
|
|
9168
|
-
*/
|
|
9169
|
-
private _updateSubscriptions;
|
|
9170
|
-
/**
|
|
9171
|
-
* @internal
|
|
9172
|
-
*/
|
|
9173
|
-
private _removeSubscriptions;
|
|
9174
|
-
/**
|
|
9175
|
-
* Install the event listeners for network and visibility changes.
|
|
9176
|
-
*
|
|
9177
|
-
* This is only done in environments that provide a fully-featured global
|
|
9178
|
-
* `window` and/or `document`. Some non-DOM environments (e.g. React Native,
|
|
9179
|
-
* SSR/Node, workers) may provide a `window` global without the APIs we
|
|
9180
|
-
* rely on here (or no `window`/`document` at all), in which case we skip
|
|
9181
|
-
* attaching the corresponding listeners rather than throwing.
|
|
9182
|
-
*
|
|
9183
|
-
* @internal
|
|
9184
|
-
*/
|
|
9185
|
-
private _installListeners;
|
|
9186
|
-
/**
|
|
9187
|
-
* If the network is online and the tab is visible, either reload or refresh the request
|
|
9188
|
-
* based on the component's configuration and the requested update mode.
|
|
9189
|
-
*
|
|
9190
|
-
* Valid modes are:
|
|
9191
|
-
*
|
|
9192
|
-
* - `'reload'`: Force a reload of the request.
|
|
9193
|
-
* - `'refresh'`: Refresh the request in the background.
|
|
9194
|
-
* - `'policy'`: Make the request, letting the store's configured CachePolicy decide whether to reload, refresh, or do nothing.
|
|
9195
|
-
* - `undefined`: Make the request using the component's autorefreshBehavior setting if the autorefreshThreshold has passed.
|
|
9196
|
-
*
|
|
9197
|
-
* @internal
|
|
9198
|
-
*/
|
|
9199
|
-
private _maybeUpdate;
|
|
9200
|
-
/**
|
|
9201
|
-
* @internal
|
|
9202
|
-
*/
|
|
9203
|
-
private _getRequester;
|
|
9204
8530
|
/**
|
|
9205
8531
|
* Retry the request, reloading it from the server.
|
|
9206
8532
|
*/
|
|
@@ -9217,10 +8543,6 @@ declare class RequestSubscription<RT, E> {
|
|
|
9217
8543
|
* features to yield to the content slot of a component
|
|
9218
8544
|
*/
|
|
9219
8545
|
get contentFeatures(): ContentFeatures<RT>;
|
|
9220
|
-
/**
|
|
9221
|
-
* @internal
|
|
9222
|
-
*/
|
|
9223
|
-
get _request(): Future<RT>;
|
|
9224
8546
|
/**
|
|
9225
8547
|
* The {@link Future} this subscription is currently monitoring, and
|
|
9226
8548
|
* (re-)subscribes to notifications for as a side effect of access.
|
|
@@ -9280,27 +8602,6 @@ declare function makeInitializer(fn: () => unknown): Initializer;
|
|
|
9280
8602
|
* @private
|
|
9281
8603
|
*/
|
|
9282
8604
|
interface WarpDriveSignal {
|
|
9283
|
-
/**
|
|
9284
|
-
* The "key" or "name" of the signal.
|
|
9285
|
-
* This is usually (but not always) the name of a property
|
|
9286
|
-
* on the object to which the signal is attached.
|
|
9287
|
-
*
|
|
9288
|
-
* This is used for debugging purposes.
|
|
9289
|
-
* It is not used for any other purpose.
|
|
9290
|
-
*
|
|
9291
|
-
* @internal
|
|
9292
|
-
*/
|
|
9293
|
-
key: string | symbol;
|
|
9294
|
-
/**
|
|
9295
|
-
* The "object identity" or "context" to which the
|
|
9296
|
-
* signal is attached.
|
|
9297
|
-
*
|
|
9298
|
-
* This is used for debugging purposes.
|
|
9299
|
-
* It is not used for any other purpose.
|
|
9300
|
-
*
|
|
9301
|
-
* @internal
|
|
9302
|
-
*/
|
|
9303
|
-
context: object;
|
|
9304
8605
|
/**
|
|
9305
8606
|
* The underlying signal(s) in-use.
|
|
9306
8607
|
*
|
|
@@ -9386,4 +8687,4 @@ declare function peekInternalSignal(signals: SignalStore | undefined, key: strin
|
|
|
9386
8687
|
declare function notifyInternalSignal(signal: WarpDriveSignal | undefined): void;
|
|
9387
8688
|
//#endregion
|
|
9388
8689
|
export { SaveRecordMutation as $, fromIdentity as $n, NotificationManager as $t, teardownRecord as A, SkipCache as An, setPromiseResult as At, coerceId as B, Handler as Bn, UpgradedMeta as Bt, getPromiseState as C, PostQueryRequestOptions as Cn, StoreRequestContext as Ct, useRecommendedStore as D, RequestInfo as Dn, withResponseType as Dt, StoreSetupOptions as E, RequestContext as En, withReactiveResponse as Et, log as F, FetchError as Fn, Graph as Ft, Store as G, RelationshipsSchema as Gn, FindAllOptions as Gt, constructResource as H, NextFn as Hn, ChangedAttributesHash as Ht, logGroup as I, Context$1 as In, GraphEdge as It, FindRecordQuery as J, ExtensibleField as Jn, QueryOptions as Jt, assertPrivateStore as K, SchemaService as Kn, FindRecordOptions as Kt, LegacyManyArray as L, CacheHandler$1 as Ln, ResourceEdge as Lt, ReactiveResource as M, StructuredDocument as Mn, graphFor as Mt, checkout as N, StructuredErrorDocument as Nn, peekGraph as Nt, Fetch as O, ResponseInfo as On, Awaitable as Ot, commit as P, UpdateRequestOptions as Pn, isBelongsTo as Pt, RequestStateService as Q, Transformation as Qn, DocumentCacheOperation as Qt, createLegacyManyArray as R, Deferred as Rn, ImplicitEdge as Rt, ResolvedPromise as S, ImmutableUpdateRequestOptions as Sn, CacheHandler as St, Document as T, RemotelyAccessibleIdentifier as Tn, withBrand as Tt, CreateRecordProperties as U, RequestManager as Un, RelationshipDiff as Ut, ensureStringId as V, ManagedRequestPriority as Vn, Cache as Vt, PrivateStore as W, AttributesSchema as Wn, BaseFinderOptions as Wt, Request$1 as X, ProcessedExtension as Xn, CacheCapabilitiesManager$1 as Xt, PrivateRequestStateService as Y, ExtensionDef as Yn, ModelSchema as Yt, RequestCacheRequestState as Z, SchemaService$1 as Zn, CacheOperation as Zt, RequestState as _, IS_FUTURE as _n, assertPrivateCapabilities as _t, notifyInternalSignal as a, setIdentifierGenerationMethod as an, ReactiveResourceArray as at, PromiseState as b, ImmutableHeaders as bn, ReactiveErrorDocument as bt, AutorefreshBehaviorCombos as c, setKeyInfoForResource as cn, Context as ct, RecoveryFeatures as d, CreateRequestOptions as dn, StoreMap as dt, NotificationType as en, registerDerivations as er, RecordArrayManager as et, RequestArgs as f, DeleteRequestOptions as fn, _clearCaches as ft, RequestLoadingState as g, HTTPMethod as gn, PrivateCacheCapabilitiesManager as gt, createRequestSubscription as h, FindRecordRequestOptions as hn, storeFor as ht, makeInitializer as i, setIdentifierForgetMethod as in, PrivateReactiveResourceArray as it, PrivateReactiveResource as j, StructuredDataDocument as jn, createDeferred as jt, instantiateRecord as k, STRUCTURED as kn, getPromiseResult as kt, ContentFeatures as l, CacheOptions as ln, NativeProxy as lt, SubscriptionArgs as m, FindRecordOptions$2 as mn, setRecordIdentifier as mt, WarpDriveSignal as n, isRequestKey as nn, LegacyQueryArray as nt, peekInternalSignal as o, setIdentifierResetMethod as on, ManagedArray as ot, RequestSubscription as p, EnableHydration as pn, recordIdentifierFor as pt, isPrivateStore as q, CAUTION_MEGA_DANGER_ZONE_Extension as qn, LegacyResourceQuery as qt, getOrCreateInternalSignal as r, isResourceKey as rn, LegacyLiveArray as rt, withSignalStore as s, setIdentifierUpdateMethod as sn, Checkout as st, SignalStore as t, NotifyKeys as tn, withDefaults as tr, fastPush as tt, DISPOSE as u, ConstrainedRequestOptions as un, InstanceCache as ut, getRequestState as v, ImmutableCreateRequestOptions as vn, ReactiveDataDocument as vt, ConfiguredStore as w, QueryRequestOptions as wn, StoreRequestInput as wt, RejectedPromise as x, ImmutableRequestInfo as xn, CachePolicy as xt, PendingPromise as y, ImmutableDeleteRequestOptions as yn, ReactiveDocument as yt, normalizeModelName as z, Future as zn, CollectionEdge as zt };
|
|
9389
|
-
//# sourceMappingURL=internal-
|
|
8690
|
+
//# sourceMappingURL=internal-Cz-893zD.d.ts.map
|