@warp-drive/core 5.8.0-alpha.3 → 5.8.0-alpha.32
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 +22 -38
- package/declarations/build-config.d.ts +18 -1
- package/declarations/graph/-private/-edge-definition.d.ts +12 -2
- package/declarations/index.d.ts +90 -4
- package/declarations/reactive/-private/document.d.ts +58 -46
- package/declarations/reactive/-private/record.d.ts +10 -1
- package/declarations/reactive/-private/schema.d.ts +77 -4
- package/declarations/reactive/-private.d.ts +1 -0
- package/declarations/reactive.d.ts +13 -7
- package/declarations/request/-private/types.d.ts +1 -1
- package/declarations/request.d.ts +47 -0
- package/declarations/store/-private/caches/instance-cache.d.ts +5 -6
- package/declarations/store/-private/default-cache-policy.d.ts +147 -129
- package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +1 -1
- package/declarations/store/-private/managers/cache-key-manager.d.ts +26 -8
- package/declarations/store/-private/managers/cache-manager.d.ts +6 -4
- package/declarations/store/-private/managers/notification-manager.d.ts +1 -1
- package/declarations/store/-private/new-core-tmp/promise-state.d.ts +1 -0
- package/declarations/store/-private/new-core-tmp/request-state.d.ts +1 -1
- package/declarations/store/-private/store-service.d.ts +43 -64
- package/declarations/store/-private.d.ts +0 -1
- package/declarations/store/-types/q/cache-capabilities-manager.d.ts +1 -1
- package/declarations/store/deprecated/-private.d.ts +1 -1
- package/declarations/store/deprecated/store.d.ts +33 -32
- package/declarations/store.d.ts +1 -0
- package/declarations/types/cache.d.ts +8 -6
- package/declarations/types/record.d.ts +132 -0
- package/declarations/types/request.d.ts +26 -14
- package/declarations/types/schema/fields.d.ts +33 -9
- package/declarations/{store/-types/q → types/schema}/schema-service.d.ts +15 -13
- package/declarations/types/spec/document.d.ts +34 -0
- package/declarations/types/symbols.d.ts +2 -2
- package/declarations/types.d.ts +1 -1
- package/dist/build-config.js +1 -1
- package/dist/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/graph/-private.js +13 -4
- package/dist/{request-state-CUuZzgvE.js → index-D4si_DxB.js} +10010 -8843
- package/dist/index.js +6 -382
- package/dist/reactive.js +4 -778
- package/dist/{context-C_7OLieY.js → request-oqoLC9rz.js} +219 -172
- package/dist/request.js +1 -1
- package/dist/store/-private.js +1 -1
- package/dist/store.js +1 -533
- package/dist/types/-private.js +1 -1
- package/dist/types/record.js +127 -0
- package/dist/types/request.js +14 -12
- package/dist/types/schema/fields.js +14 -0
- package/dist/types/schema/schema-service.js +0 -0
- package/dist/types/symbols.js +2 -2
- package/dist/unpkg/dev/build-config/babel-macros.js +1 -0
- package/dist/unpkg/dev/build-config/canary-features.js +1 -0
- package/dist/unpkg/dev/build-config/debugging.js +1 -0
- package/dist/unpkg/dev/build-config/deprecations.js +1 -0
- package/dist/unpkg/dev/build-config/env.js +1 -0
- package/dist/unpkg/dev/build-config/macros.js +1 -0
- package/dist/unpkg/dev/build-config.js +1 -0
- package/dist/unpkg/dev/configure-C3x8YXzL.js +181 -0
- package/dist/unpkg/dev/configure.js +1 -0
- package/dist/unpkg/dev/declarations/build-config/babel-macros.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/canary-features.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/debugging.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/deprecations.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/env.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config/macros.d.ts +1 -0
- package/dist/unpkg/dev/declarations/build-config.d.ts +18 -0
- package/dist/unpkg/dev/declarations/configure.d.ts +7 -0
- package/dist/unpkg/dev/declarations/graph/-private/-diff.d.ts +19 -0
- package/dist/unpkg/dev/declarations/graph/-private/-edge-definition.d.ts +149 -0
- package/dist/unpkg/dev/declarations/graph/-private/-state.d.ts +9 -0
- package/dist/unpkg/dev/declarations/graph/-private/-utils.d.ts +25 -0
- package/dist/unpkg/dev/declarations/graph/-private/coerce-id.d.ts +4 -0
- package/dist/unpkg/dev/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +6 -0
- package/dist/unpkg/dev/declarations/graph/-private/edges/collection.d.ts +39 -0
- package/dist/unpkg/dev/declarations/graph/-private/edges/implicit.d.ts +43 -0
- package/dist/unpkg/dev/declarations/graph/-private/edges/resource.d.ts +23 -0
- package/dist/unpkg/dev/declarations/graph/-private/graph.d.ts +56 -0
- package/dist/unpkg/dev/declarations/graph/-private/normalize-link.d.ts +2 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/add-to-related-records.d.ts +4 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/merge-identifier.d.ts +3 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/remove-from-related-records.d.ts +4 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/replace-related-record.d.ts +3 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/replace-related-records.d.ts +7 -0
- package/dist/unpkg/dev/declarations/graph/-private/operations/update-relationship.d.ts +9 -0
- package/dist/unpkg/dev/declarations/graph/-private.d.ts +13 -0
- package/dist/unpkg/dev/declarations/index.d.ts +100 -0
- package/dist/unpkg/dev/declarations/reactive/-private/default-mode.d.ts +73 -0
- package/dist/unpkg/dev/declarations/reactive/-private/document.d.ts +142 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/extension.d.ts +8 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/get-field-key.d.ts +8 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/managed-array.d.ts +18 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/managed-object.d.ts +17 -0
- package/dist/unpkg/dev/declarations/reactive/-private/fields/many-array-manager.d.ts +19 -0
- package/dist/unpkg/dev/declarations/reactive/-private/hooks.d.ts +5 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/alias-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/array-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/attribute-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/belongs-to-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/collection-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/derived-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/generic-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/has-many-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/hash-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/identity-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/local-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/object-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/resource-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/schema-array-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/kind/schema-object-field.d.ts +4 -0
- package/dist/unpkg/dev/declarations/reactive/-private/record.d.ts +83 -0
- package/dist/unpkg/dev/declarations/reactive/-private/schema.d.ts +326 -0
- package/dist/unpkg/dev/declarations/reactive/-private/symbols.d.ts +5 -0
- package/dist/unpkg/dev/declarations/reactive/-private.d.ts +2 -0
- package/dist/unpkg/dev/declarations/reactive.d.ts +287 -0
- package/dist/unpkg/dev/declarations/request/-private/context.d.ts +39 -0
- package/dist/unpkg/dev/declarations/request/-private/debug.d.ts +4 -0
- package/dist/unpkg/dev/declarations/request/-private/fetch.d.ts +33 -0
- package/dist/unpkg/dev/declarations/request/-private/future.d.ts +7 -0
- package/dist/unpkg/dev/declarations/request/-private/manager.d.ts +158 -0
- package/dist/unpkg/dev/declarations/request/-private/promise-cache.d.ts +28 -0
- package/dist/unpkg/dev/declarations/request/-private/types.d.ts +234 -0
- package/dist/unpkg/dev/declarations/request/-private/utils.d.ts +57 -0
- package/dist/unpkg/dev/declarations/request.d.ts +52 -0
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/handler.d.ts +56 -0
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/types.d.ts +98 -0
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/utils.d.ts +31 -0
- package/dist/unpkg/dev/declarations/store/-private/caches/instance-cache.d.ts +58 -0
- package/dist/unpkg/dev/declarations/store/-private/caches/resource-utils.d.ts +9 -0
- package/dist/unpkg/dev/declarations/store/-private/debug/utils.d.ts +7 -0
- package/dist/unpkg/dev/declarations/store/-private/default-cache-policy.d.ts +387 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-capabilities-manager.d.ts +34 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-key-manager.d.ts +304 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-manager.d.ts +380 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/notification-manager.d.ts +83 -0
- package/dist/unpkg/dev/declarations/store/-private/managers/record-array-manager.d.ts +100 -0
- package/dist/unpkg/dev/declarations/store/-private/network/request-cache.d.ts +103 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +24 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/promise-state.d.ts +264 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +138 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +154 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +56 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/request-state.d.ts +372 -0
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/request-subscription.d.ts +177 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/-utils.d.ts +80 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-live-array.d.ts +81 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-many-array.d.ts +133 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-query.d.ts +81 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +3 -0
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/resource-array.d.ts +67 -0
- package/dist/unpkg/dev/declarations/store/-private/store-service.d.ts +874 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/coerce-id.d.ts +4 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/construct-resource.d.ts +6 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/is-non-empty-string.d.ts +1 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/normalize-model-name.d.ts +1 -0
- package/dist/unpkg/dev/declarations/store/-private/utils/uuid-polyfill.d.ts +1 -0
- package/dist/unpkg/dev/declarations/store/-private.d.ts +29 -0
- package/dist/unpkg/dev/declarations/store/-types/q/cache-capabilities-manager.d.ts +90 -0
- package/dist/unpkg/dev/declarations/store/-types/q/identifier.d.ts +23 -0
- package/dist/unpkg/dev/declarations/store/-types/q/record-instance.d.ts +22 -0
- package/dist/unpkg/dev/declarations/store/-types/q/store.d.ts +31 -0
- package/dist/unpkg/dev/declarations/store/deprecated/-private.d.ts +223 -0
- package/dist/unpkg/dev/declarations/store/deprecated/store.d.ts +784 -0
- package/dist/unpkg/dev/declarations/store.d.ts +2 -0
- package/dist/unpkg/dev/declarations/types/-private.d.ts +22 -0
- package/dist/unpkg/dev/declarations/types/cache/aliases.d.ts +1 -0
- package/dist/unpkg/dev/declarations/types/cache/change.d.ts +6 -0
- package/dist/unpkg/dev/declarations/types/cache/mutations.d.ts +38 -0
- package/dist/unpkg/dev/declarations/types/cache/operations.d.ts +168 -0
- package/dist/unpkg/dev/declarations/types/cache/relationship.d.ts +13 -0
- package/dist/unpkg/dev/declarations/types/cache.d.ts +429 -0
- package/dist/unpkg/dev/declarations/types/graph.d.ts +47 -0
- package/dist/unpkg/dev/declarations/types/identifier.d.ts +86 -0
- package/dist/unpkg/dev/declarations/types/json/raw.d.ts +6 -0
- package/dist/unpkg/dev/declarations/types/params.d.ts +8 -0
- package/dist/unpkg/dev/declarations/types/record.d.ts +269 -0
- package/dist/unpkg/dev/declarations/types/request.d.ts +367 -0
- package/dist/unpkg/dev/declarations/types/runtime.d.ts +14 -0
- package/dist/unpkg/dev/declarations/types/schema/concepts.d.ts +23 -0
- package/dist/unpkg/dev/declarations/types/schema/fields.d.ts +2200 -0
- package/dist/unpkg/dev/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/dist/unpkg/dev/declarations/types/schema/schema-service.d.ts +380 -0
- package/dist/unpkg/dev/declarations/types/spec/document.d.ts +67 -0
- package/dist/unpkg/dev/declarations/types/spec/error.d.ts +18 -0
- package/dist/unpkg/dev/declarations/types/spec/json-api-raw.d.ts +139 -0
- package/dist/unpkg/dev/declarations/types/symbols.d.ts +78 -0
- package/dist/unpkg/dev/declarations/types/utils.d.ts +5 -0
- package/dist/unpkg/dev/declarations/types.d.ts +11 -0
- package/dist/unpkg/dev/declarations/utils/string.d.ts +47 -0
- package/dist/unpkg/dev/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/unpkg/dev/graph/-private.js +3374 -0
- package/dist/unpkg/dev/index-D4si_DxB.js +11746 -0
- package/dist/unpkg/dev/index.js +8 -0
- package/dist/unpkg/dev/reactive/-private.js +1 -0
- package/dist/unpkg/dev/reactive.js +129 -0
- package/dist/unpkg/dev/request-oqoLC9rz.js +725 -0
- package/dist/unpkg/dev/request.js +1 -0
- package/dist/unpkg/dev/store/-private.js +2 -0
- package/dist/unpkg/dev/store.js +1 -0
- package/dist/unpkg/dev/symbols-sql1_mdx.js +39 -0
- package/dist/unpkg/dev/types/-private.js +79 -0
- package/dist/unpkg/dev/types/cache/aliases.js +0 -0
- package/dist/unpkg/dev/types/cache/change.js +0 -0
- package/dist/unpkg/dev/types/cache/mutations.js +0 -0
- package/dist/unpkg/dev/types/cache/operations.js +0 -0
- package/dist/unpkg/dev/types/cache/relationship.js +0 -0
- package/dist/unpkg/dev/types/cache.js +0 -0
- package/dist/unpkg/dev/types/graph.js +0 -0
- package/dist/unpkg/dev/types/identifier.js +63 -0
- package/dist/unpkg/dev/types/json/raw.js +0 -0
- package/dist/unpkg/dev/types/params.js +0 -0
- package/dist/unpkg/dev/types/record.js +191 -0
- package/dist/unpkg/dev/types/request.js +77 -0
- package/dist/unpkg/dev/types/runtime.js +34 -0
- package/dist/unpkg/dev/types/schema/concepts.js +0 -0
- package/dist/unpkg/dev/types/schema/fields.js +505 -0
- package/dist/unpkg/dev/types/schema/fields.type-test.js +0 -0
- package/dist/unpkg/dev/types/schema/schema-service.js +0 -0
- package/dist/unpkg/dev/types/spec/document.js +0 -0
- package/dist/unpkg/dev/types/spec/error.js +0 -0
- package/dist/unpkg/dev/types/spec/json-api-raw.js +0 -0
- package/dist/unpkg/dev/types/symbols.js +84 -0
- package/dist/unpkg/dev/types/utils.js +0 -0
- package/dist/unpkg/dev/types.js +0 -0
- package/dist/unpkg/dev/utils/string.js +92 -0
- package/dist/unpkg/dev-deprecated/build-config/babel-macros.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/canary-features.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/debugging.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/deprecations.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/env.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config/macros.js +1 -0
- package/dist/unpkg/dev-deprecated/build-config.js +1 -0
- package/dist/unpkg/dev-deprecated/configure-C3x8YXzL.js +181 -0
- package/dist/unpkg/dev-deprecated/configure.js +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/babel-macros.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/canary-features.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/debugging.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/deprecations.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/env.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config/macros.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/build-config.d.ts +18 -0
- package/dist/unpkg/dev-deprecated/declarations/configure.d.ts +7 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-diff.d.ts +19 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-edge-definition.d.ts +149 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-state.d.ts +9 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-utils.d.ts +25 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/coerce-id.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +6 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/collection.d.ts +39 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/implicit.d.ts +43 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/resource.d.ts +23 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/graph.d.ts +56 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/normalize-link.d.ts +2 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/add-to-related-records.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/merge-identifier.d.ts +3 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/remove-from-related-records.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/replace-related-record.d.ts +3 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/replace-related-records.d.ts +7 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/update-relationship.d.ts +9 -0
- package/dist/unpkg/dev-deprecated/declarations/graph/-private.d.ts +13 -0
- package/dist/unpkg/dev-deprecated/declarations/index.d.ts +100 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/default-mode.d.ts +73 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/document.d.ts +142 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/extension.d.ts +8 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/get-field-key.d.ts +8 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/managed-array.d.ts +18 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/managed-object.d.ts +17 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/many-array-manager.d.ts +19 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/hooks.d.ts +5 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/alias-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/array-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/attribute-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/belongs-to-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/collection-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/derived-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/generic-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/has-many-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/hash-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/identity-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/local-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/object-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/resource-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/schema-array-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/schema-object-field.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/record.d.ts +83 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/schema.d.ts +326 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/symbols.d.ts +5 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private.d.ts +2 -0
- package/dist/unpkg/dev-deprecated/declarations/reactive.d.ts +287 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/context.d.ts +39 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/debug.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/fetch.d.ts +33 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/future.d.ts +7 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/manager.d.ts +158 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/promise-cache.d.ts +28 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/types.d.ts +234 -0
- package/dist/unpkg/dev-deprecated/declarations/request/-private/utils.d.ts +57 -0
- package/dist/unpkg/dev-deprecated/declarations/request.d.ts +52 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/handler.d.ts +56 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/types.d.ts +98 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/utils.d.ts +31 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/caches/instance-cache.d.ts +58 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/caches/resource-utils.d.ts +9 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/debug/utils.d.ts +7 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/default-cache-policy.d.ts +387 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-capabilities-manager.d.ts +34 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-key-manager.d.ts +304 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-manager.d.ts +380 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/notification-manager.d.ts +83 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/record-array-manager.d.ts +100 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/network/request-cache.d.ts +103 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +24 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/promise-state.d.ts +264 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +138 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +154 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +56 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/request-state.d.ts +372 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/request-subscription.d.ts +177 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/-utils.d.ts +80 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-live-array.d.ts +81 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-many-array.d.ts +133 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-query.d.ts +81 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +3 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/resource-array.d.ts +67 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/store-service.d.ts +874 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/coerce-id.d.ts +4 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/construct-resource.d.ts +6 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/is-non-empty-string.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/normalize-model-name.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/uuid-polyfill.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-private.d.ts +29 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/cache-capabilities-manager.d.ts +90 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/identifier.d.ts +23 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/record-instance.d.ts +22 -0
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/store.d.ts +31 -0
- package/dist/unpkg/dev-deprecated/declarations/store/deprecated/-private.d.ts +223 -0
- package/dist/unpkg/dev-deprecated/declarations/store/deprecated/store.d.ts +784 -0
- package/dist/unpkg/dev-deprecated/declarations/store.d.ts +2 -0
- package/dist/unpkg/dev-deprecated/declarations/types/-private.d.ts +22 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/aliases.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/change.d.ts +6 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/mutations.d.ts +38 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/operations.d.ts +168 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache/relationship.d.ts +13 -0
- package/dist/unpkg/dev-deprecated/declarations/types/cache.d.ts +429 -0
- package/dist/unpkg/dev-deprecated/declarations/types/graph.d.ts +47 -0
- package/dist/unpkg/dev-deprecated/declarations/types/identifier.d.ts +86 -0
- package/dist/unpkg/dev-deprecated/declarations/types/json/raw.d.ts +6 -0
- package/dist/unpkg/dev-deprecated/declarations/types/params.d.ts +8 -0
- package/dist/unpkg/dev-deprecated/declarations/types/record.d.ts +269 -0
- package/dist/unpkg/dev-deprecated/declarations/types/request.d.ts +367 -0
- package/dist/unpkg/dev-deprecated/declarations/types/runtime.d.ts +14 -0
- package/dist/unpkg/dev-deprecated/declarations/types/schema/concepts.d.ts +23 -0
- package/dist/unpkg/dev-deprecated/declarations/types/schema/fields.d.ts +2200 -0
- package/dist/unpkg/dev-deprecated/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/dist/unpkg/dev-deprecated/declarations/types/schema/schema-service.d.ts +380 -0
- package/dist/unpkg/dev-deprecated/declarations/types/spec/document.d.ts +67 -0
- package/dist/unpkg/dev-deprecated/declarations/types/spec/error.d.ts +18 -0
- package/dist/unpkg/dev-deprecated/declarations/types/spec/json-api-raw.d.ts +139 -0
- package/dist/unpkg/dev-deprecated/declarations/types/symbols.d.ts +78 -0
- package/dist/unpkg/dev-deprecated/declarations/types/utils.d.ts +5 -0
- package/dist/unpkg/dev-deprecated/declarations/types.d.ts +11 -0
- package/dist/unpkg/dev-deprecated/declarations/utils/string.d.ts +47 -0
- package/dist/unpkg/dev-deprecated/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/unpkg/dev-deprecated/graph/-private.js +3374 -0
- package/dist/unpkg/dev-deprecated/index-D4si_DxB.js +11746 -0
- package/dist/unpkg/dev-deprecated/index.js +8 -0
- package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -0
- package/dist/unpkg/dev-deprecated/reactive.js +129 -0
- package/dist/unpkg/dev-deprecated/request-oqoLC9rz.js +725 -0
- package/dist/unpkg/dev-deprecated/request.js +1 -0
- package/dist/unpkg/dev-deprecated/store/-private.js +2 -0
- package/dist/unpkg/dev-deprecated/store.js +1 -0
- package/dist/unpkg/dev-deprecated/symbols-sql1_mdx.js +39 -0
- package/dist/unpkg/dev-deprecated/types/-private.js +79 -0
- package/dist/unpkg/dev-deprecated/types/cache/aliases.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache/change.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache/mutations.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache/operations.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache/relationship.js +0 -0
- package/dist/unpkg/dev-deprecated/types/cache.js +0 -0
- package/dist/unpkg/dev-deprecated/types/graph.js +0 -0
- package/dist/unpkg/dev-deprecated/types/identifier.js +63 -0
- package/dist/unpkg/dev-deprecated/types/json/raw.js +0 -0
- package/dist/unpkg/dev-deprecated/types/params.js +0 -0
- package/dist/unpkg/dev-deprecated/types/record.js +191 -0
- package/dist/unpkg/dev-deprecated/types/request.js +77 -0
- package/dist/unpkg/dev-deprecated/types/runtime.js +34 -0
- package/dist/unpkg/dev-deprecated/types/schema/concepts.js +0 -0
- package/dist/unpkg/dev-deprecated/types/schema/fields.js +505 -0
- package/dist/unpkg/dev-deprecated/types/schema/fields.type-test.js +0 -0
- package/dist/unpkg/dev-deprecated/types/schema/schema-service.js +0 -0
- package/dist/unpkg/dev-deprecated/types/spec/document.js +0 -0
- package/dist/unpkg/dev-deprecated/types/spec/error.js +0 -0
- package/dist/unpkg/dev-deprecated/types/spec/json-api-raw.js +0 -0
- package/dist/unpkg/dev-deprecated/types/symbols.js +84 -0
- package/dist/unpkg/dev-deprecated/types/utils.js +0 -0
- package/dist/unpkg/dev-deprecated/types.js +0 -0
- package/dist/unpkg/dev-deprecated/utils/string.js +92 -0
- package/dist/unpkg/prod/build-config/babel-macros.js +1 -0
- package/dist/unpkg/prod/build-config/canary-features.js +1 -0
- package/dist/unpkg/prod/build-config/debugging.js +1 -0
- package/dist/unpkg/prod/build-config/deprecations.js +1 -0
- package/dist/unpkg/prod/build-config/env.js +1 -0
- package/dist/unpkg/prod/build-config/macros.js +1 -0
- package/dist/unpkg/prod/build-config.js +1 -0
- package/dist/unpkg/prod/configure-C3x8YXzL.js +181 -0
- package/dist/unpkg/prod/configure.js +1 -0
- package/dist/unpkg/prod/declarations/build-config/babel-macros.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/canary-features.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/debugging.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/deprecations.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/env.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config/macros.d.ts +1 -0
- package/dist/unpkg/prod/declarations/build-config.d.ts +18 -0
- package/dist/unpkg/prod/declarations/configure.d.ts +7 -0
- package/dist/unpkg/prod/declarations/graph/-private/-diff.d.ts +19 -0
- package/dist/unpkg/prod/declarations/graph/-private/-edge-definition.d.ts +149 -0
- package/dist/unpkg/prod/declarations/graph/-private/-state.d.ts +9 -0
- package/dist/unpkg/prod/declarations/graph/-private/-utils.d.ts +25 -0
- package/dist/unpkg/prod/declarations/graph/-private/coerce-id.d.ts +4 -0
- package/dist/unpkg/prod/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +6 -0
- package/dist/unpkg/prod/declarations/graph/-private/edges/collection.d.ts +39 -0
- package/dist/unpkg/prod/declarations/graph/-private/edges/implicit.d.ts +43 -0
- package/dist/unpkg/prod/declarations/graph/-private/edges/resource.d.ts +23 -0
- package/dist/unpkg/prod/declarations/graph/-private/graph.d.ts +56 -0
- package/dist/unpkg/prod/declarations/graph/-private/normalize-link.d.ts +2 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/add-to-related-records.d.ts +4 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/merge-identifier.d.ts +3 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/remove-from-related-records.d.ts +4 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/replace-related-record.d.ts +3 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/replace-related-records.d.ts +7 -0
- package/dist/unpkg/prod/declarations/graph/-private/operations/update-relationship.d.ts +9 -0
- package/dist/unpkg/prod/declarations/graph/-private.d.ts +13 -0
- package/dist/unpkg/prod/declarations/index.d.ts +100 -0
- package/dist/unpkg/prod/declarations/reactive/-private/default-mode.d.ts +73 -0
- package/dist/unpkg/prod/declarations/reactive/-private/document.d.ts +142 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/extension.d.ts +8 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/get-field-key.d.ts +8 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/managed-array.d.ts +18 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/managed-object.d.ts +17 -0
- package/dist/unpkg/prod/declarations/reactive/-private/fields/many-array-manager.d.ts +19 -0
- package/dist/unpkg/prod/declarations/reactive/-private/hooks.d.ts +5 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/alias-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/array-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/attribute-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/belongs-to-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/collection-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/derived-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/generic-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/has-many-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/hash-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/identity-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/local-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/object-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/resource-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/schema-array-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/kind/schema-object-field.d.ts +4 -0
- package/dist/unpkg/prod/declarations/reactive/-private/record.d.ts +83 -0
- package/dist/unpkg/prod/declarations/reactive/-private/schema.d.ts +326 -0
- package/dist/unpkg/prod/declarations/reactive/-private/symbols.d.ts +5 -0
- package/dist/unpkg/prod/declarations/reactive/-private.d.ts +2 -0
- package/dist/unpkg/prod/declarations/reactive.d.ts +287 -0
- package/dist/unpkg/prod/declarations/request/-private/context.d.ts +39 -0
- package/dist/unpkg/prod/declarations/request/-private/debug.d.ts +4 -0
- package/dist/unpkg/prod/declarations/request/-private/fetch.d.ts +33 -0
- package/dist/unpkg/prod/declarations/request/-private/future.d.ts +7 -0
- package/dist/unpkg/prod/declarations/request/-private/manager.d.ts +158 -0
- package/dist/unpkg/prod/declarations/request/-private/promise-cache.d.ts +28 -0
- package/dist/unpkg/prod/declarations/request/-private/types.d.ts +234 -0
- package/dist/unpkg/prod/declarations/request/-private/utils.d.ts +57 -0
- package/dist/unpkg/prod/declarations/request.d.ts +52 -0
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/handler.d.ts +56 -0
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/types.d.ts +98 -0
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/utils.d.ts +31 -0
- package/dist/unpkg/prod/declarations/store/-private/caches/instance-cache.d.ts +58 -0
- package/dist/unpkg/prod/declarations/store/-private/caches/resource-utils.d.ts +9 -0
- package/dist/unpkg/prod/declarations/store/-private/debug/utils.d.ts +7 -0
- package/dist/unpkg/prod/declarations/store/-private/default-cache-policy.d.ts +387 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-capabilities-manager.d.ts +34 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-key-manager.d.ts +304 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-manager.d.ts +380 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/notification-manager.d.ts +83 -0
- package/dist/unpkg/prod/declarations/store/-private/managers/record-array-manager.d.ts +100 -0
- package/dist/unpkg/prod/declarations/store/-private/network/request-cache.d.ts +103 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +24 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/promise-state.d.ts +264 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +138 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +154 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +56 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/request-state.d.ts +372 -0
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/request-subscription.d.ts +177 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/-utils.d.ts +80 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-live-array.d.ts +81 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-many-array.d.ts +133 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-query.d.ts +81 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +3 -0
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/resource-array.d.ts +67 -0
- package/dist/unpkg/prod/declarations/store/-private/store-service.d.ts +874 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/coerce-id.d.ts +4 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/construct-resource.d.ts +6 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/is-non-empty-string.d.ts +1 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/normalize-model-name.d.ts +1 -0
- package/dist/unpkg/prod/declarations/store/-private/utils/uuid-polyfill.d.ts +1 -0
- package/dist/unpkg/prod/declarations/store/-private.d.ts +29 -0
- package/dist/unpkg/prod/declarations/store/-types/q/cache-capabilities-manager.d.ts +90 -0
- package/dist/unpkg/prod/declarations/store/-types/q/identifier.d.ts +23 -0
- package/dist/unpkg/prod/declarations/store/-types/q/record-instance.d.ts +22 -0
- package/dist/unpkg/prod/declarations/store/-types/q/store.d.ts +31 -0
- package/dist/unpkg/prod/declarations/store/deprecated/-private.d.ts +223 -0
- package/dist/unpkg/prod/declarations/store/deprecated/store.d.ts +784 -0
- package/dist/unpkg/prod/declarations/store.d.ts +2 -0
- package/dist/unpkg/prod/declarations/types/-private.d.ts +22 -0
- package/dist/unpkg/prod/declarations/types/cache/aliases.d.ts +1 -0
- package/dist/unpkg/prod/declarations/types/cache/change.d.ts +6 -0
- package/dist/unpkg/prod/declarations/types/cache/mutations.d.ts +38 -0
- package/dist/unpkg/prod/declarations/types/cache/operations.d.ts +168 -0
- package/dist/unpkg/prod/declarations/types/cache/relationship.d.ts +13 -0
- package/dist/unpkg/prod/declarations/types/cache.d.ts +429 -0
- package/dist/unpkg/prod/declarations/types/graph.d.ts +47 -0
- package/dist/unpkg/prod/declarations/types/identifier.d.ts +86 -0
- package/dist/unpkg/prod/declarations/types/json/raw.d.ts +6 -0
- package/dist/unpkg/prod/declarations/types/params.d.ts +8 -0
- package/dist/unpkg/prod/declarations/types/record.d.ts +269 -0
- package/dist/unpkg/prod/declarations/types/request.d.ts +367 -0
- package/dist/unpkg/prod/declarations/types/runtime.d.ts +14 -0
- package/dist/unpkg/prod/declarations/types/schema/concepts.d.ts +23 -0
- package/dist/unpkg/prod/declarations/types/schema/fields.d.ts +2200 -0
- package/dist/unpkg/prod/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/dist/unpkg/prod/declarations/types/schema/schema-service.d.ts +380 -0
- package/dist/unpkg/prod/declarations/types/spec/document.d.ts +67 -0
- package/dist/unpkg/prod/declarations/types/spec/error.d.ts +18 -0
- package/dist/unpkg/prod/declarations/types/spec/json-api-raw.d.ts +139 -0
- package/dist/unpkg/prod/declarations/types/symbols.d.ts +78 -0
- package/dist/unpkg/prod/declarations/types/utils.d.ts +5 -0
- package/dist/unpkg/prod/declarations/types.d.ts +11 -0
- package/dist/unpkg/prod/declarations/utils/string.d.ts +47 -0
- package/dist/unpkg/prod/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/unpkg/prod/graph/-private.js +3374 -0
- package/dist/unpkg/prod/index-D4si_DxB.js +11746 -0
- package/dist/unpkg/prod/index.js +8 -0
- package/dist/unpkg/prod/reactive/-private.js +1 -0
- package/dist/unpkg/prod/reactive.js +129 -0
- package/dist/unpkg/prod/request-oqoLC9rz.js +725 -0
- package/dist/unpkg/prod/request.js +1 -0
- package/dist/unpkg/prod/store/-private.js +2 -0
- package/dist/unpkg/prod/store.js +1 -0
- package/dist/unpkg/prod/symbols-sql1_mdx.js +39 -0
- package/dist/unpkg/prod/types/-private.js +79 -0
- package/dist/unpkg/prod/types/cache/aliases.js +0 -0
- package/dist/unpkg/prod/types/cache/change.js +0 -0
- package/dist/unpkg/prod/types/cache/mutations.js +0 -0
- package/dist/unpkg/prod/types/cache/operations.js +0 -0
- package/dist/unpkg/prod/types/cache/relationship.js +0 -0
- package/dist/unpkg/prod/types/cache.js +0 -0
- package/dist/unpkg/prod/types/graph.js +0 -0
- package/dist/unpkg/prod/types/identifier.js +63 -0
- package/dist/unpkg/prod/types/json/raw.js +0 -0
- package/dist/unpkg/prod/types/params.js +0 -0
- package/dist/unpkg/prod/types/record.js +191 -0
- package/dist/unpkg/prod/types/request.js +77 -0
- package/dist/unpkg/prod/types/runtime.js +34 -0
- package/dist/unpkg/prod/types/schema/concepts.js +0 -0
- package/dist/unpkg/prod/types/schema/fields.js +505 -0
- package/dist/unpkg/prod/types/schema/fields.type-test.js +0 -0
- package/dist/unpkg/prod/types/schema/schema-service.js +0 -0
- package/dist/unpkg/prod/types/spec/document.js +0 -0
- package/dist/unpkg/prod/types/spec/error.js +0 -0
- package/dist/unpkg/prod/types/spec/json-api-raw.js +0 -0
- package/dist/unpkg/prod/types/symbols.js +84 -0
- package/dist/unpkg/prod/types/utils.js +0 -0
- package/dist/unpkg/prod/types.js +0 -0
- package/dist/unpkg/prod/utils/string.js +92 -0
- package/dist/unpkg/prod-deprecated/build-config/babel-macros.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/canary-features.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/debugging.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/deprecations.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/env.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config/macros.js +1 -0
- package/dist/unpkg/prod-deprecated/build-config.js +1 -0
- package/dist/unpkg/prod-deprecated/configure-C3x8YXzL.js +181 -0
- package/dist/unpkg/prod-deprecated/configure.js +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/babel-macros.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/canary-features.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/debugging.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/deprecations.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/env.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config/macros.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/build-config.d.ts +18 -0
- package/dist/unpkg/prod-deprecated/declarations/configure.d.ts +7 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-diff.d.ts +19 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-edge-definition.d.ts +149 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-state.d.ts +9 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-utils.d.ts +25 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/coerce-id.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +6 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/collection.d.ts +39 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/implicit.d.ts +43 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/resource.d.ts +23 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/graph.d.ts +56 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/normalize-link.d.ts +2 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/add-to-related-records.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/merge-identifier.d.ts +3 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/remove-from-related-records.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/replace-related-record.d.ts +3 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/replace-related-records.d.ts +7 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/update-relationship.d.ts +9 -0
- package/dist/unpkg/prod-deprecated/declarations/graph/-private.d.ts +13 -0
- package/dist/unpkg/prod-deprecated/declarations/index.d.ts +100 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/default-mode.d.ts +73 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/document.d.ts +142 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/extension.d.ts +8 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/get-field-key.d.ts +8 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/managed-array.d.ts +18 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/managed-object.d.ts +17 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/many-array-manager.d.ts +19 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/hooks.d.ts +5 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/alias-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/array-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/attribute-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/belongs-to-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/collection-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/derived-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/generic-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/has-many-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/hash-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/identity-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/local-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/object-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/resource-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/schema-array-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/schema-object-field.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/record.d.ts +83 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/schema.d.ts +326 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/symbols.d.ts +5 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private.d.ts +2 -0
- package/dist/unpkg/prod-deprecated/declarations/reactive.d.ts +287 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/context.d.ts +39 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/debug.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/fetch.d.ts +33 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/future.d.ts +7 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/manager.d.ts +158 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/promise-cache.d.ts +28 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/types.d.ts +234 -0
- package/dist/unpkg/prod-deprecated/declarations/request/-private/utils.d.ts +57 -0
- package/dist/unpkg/prod-deprecated/declarations/request.d.ts +52 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/handler.d.ts +56 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/types.d.ts +98 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/utils.d.ts +31 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/caches/instance-cache.d.ts +58 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/caches/resource-utils.d.ts +9 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/debug/utils.d.ts +7 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/default-cache-policy.d.ts +387 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-capabilities-manager.d.ts +34 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-key-manager.d.ts +304 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-manager.d.ts +380 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/notification-manager.d.ts +83 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/record-array-manager.d.ts +100 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/network/request-cache.d.ts +103 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +24 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/promise-state.d.ts +264 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +138 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +154 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +56 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/request-state.d.ts +372 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/request-subscription.d.ts +177 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/-utils.d.ts +80 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-live-array.d.ts +81 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-many-array.d.ts +133 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-query.d.ts +81 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +3 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/resource-array.d.ts +67 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/store-service.d.ts +874 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/coerce-id.d.ts +4 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/construct-resource.d.ts +6 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/is-non-empty-string.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/normalize-model-name.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/uuid-polyfill.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-private.d.ts +29 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/cache-capabilities-manager.d.ts +90 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/identifier.d.ts +23 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/record-instance.d.ts +22 -0
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/store.d.ts +31 -0
- package/dist/unpkg/prod-deprecated/declarations/store/deprecated/-private.d.ts +223 -0
- package/dist/unpkg/prod-deprecated/declarations/store/deprecated/store.d.ts +784 -0
- package/dist/unpkg/prod-deprecated/declarations/store.d.ts +2 -0
- package/dist/unpkg/prod-deprecated/declarations/types/-private.d.ts +22 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/aliases.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/change.d.ts +6 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/mutations.d.ts +38 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/operations.d.ts +168 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache/relationship.d.ts +13 -0
- package/dist/unpkg/prod-deprecated/declarations/types/cache.d.ts +429 -0
- package/dist/unpkg/prod-deprecated/declarations/types/graph.d.ts +47 -0
- package/dist/unpkg/prod-deprecated/declarations/types/identifier.d.ts +86 -0
- package/dist/unpkg/prod-deprecated/declarations/types/json/raw.d.ts +6 -0
- package/dist/unpkg/prod-deprecated/declarations/types/params.d.ts +8 -0
- package/dist/unpkg/prod-deprecated/declarations/types/record.d.ts +269 -0
- package/dist/unpkg/prod-deprecated/declarations/types/request.d.ts +367 -0
- package/dist/unpkg/prod-deprecated/declarations/types/runtime.d.ts +14 -0
- package/dist/unpkg/prod-deprecated/declarations/types/schema/concepts.d.ts +23 -0
- package/dist/unpkg/prod-deprecated/declarations/types/schema/fields.d.ts +2200 -0
- package/dist/unpkg/prod-deprecated/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/dist/unpkg/prod-deprecated/declarations/types/schema/schema-service.d.ts +380 -0
- package/dist/unpkg/prod-deprecated/declarations/types/spec/document.d.ts +67 -0
- package/dist/unpkg/prod-deprecated/declarations/types/spec/error.d.ts +18 -0
- package/dist/unpkg/prod-deprecated/declarations/types/spec/json-api-raw.d.ts +139 -0
- package/dist/unpkg/prod-deprecated/declarations/types/symbols.d.ts +78 -0
- package/dist/unpkg/prod-deprecated/declarations/types/utils.d.ts +5 -0
- package/dist/unpkg/prod-deprecated/declarations/types.d.ts +11 -0
- package/dist/unpkg/prod-deprecated/declarations/utils/string.d.ts +47 -0
- package/dist/unpkg/prod-deprecated/default-cache-policy-D7_u4YRH.js +572 -0
- package/dist/unpkg/prod-deprecated/graph/-private.js +3374 -0
- package/dist/unpkg/prod-deprecated/index-D4si_DxB.js +11746 -0
- package/dist/unpkg/prod-deprecated/index.js +8 -0
- package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -0
- package/dist/unpkg/prod-deprecated/reactive.js +129 -0
- package/dist/unpkg/prod-deprecated/request-oqoLC9rz.js +725 -0
- package/dist/unpkg/prod-deprecated/request.js +1 -0
- package/dist/unpkg/prod-deprecated/store/-private.js +2 -0
- package/dist/unpkg/prod-deprecated/store.js +1 -0
- package/dist/unpkg/prod-deprecated/symbols-sql1_mdx.js +39 -0
- package/dist/unpkg/prod-deprecated/types/-private.js +79 -0
- package/dist/unpkg/prod-deprecated/types/cache/aliases.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache/change.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache/mutations.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache/operations.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache/relationship.js +0 -0
- package/dist/unpkg/prod-deprecated/types/cache.js +0 -0
- package/dist/unpkg/prod-deprecated/types/graph.js +0 -0
- package/dist/unpkg/prod-deprecated/types/identifier.js +63 -0
- package/dist/unpkg/prod-deprecated/types/json/raw.js +0 -0
- package/dist/unpkg/prod-deprecated/types/params.js +0 -0
- package/dist/unpkg/prod-deprecated/types/record.js +191 -0
- package/dist/unpkg/prod-deprecated/types/request.js +77 -0
- package/dist/unpkg/prod-deprecated/types/runtime.js +34 -0
- package/dist/unpkg/prod-deprecated/types/schema/concepts.js +0 -0
- package/dist/unpkg/prod-deprecated/types/schema/fields.js +505 -0
- package/dist/unpkg/prod-deprecated/types/schema/fields.type-test.js +0 -0
- package/dist/unpkg/prod-deprecated/types/schema/schema-service.js +0 -0
- package/dist/unpkg/prod-deprecated/types/spec/document.js +0 -0
- package/dist/unpkg/prod-deprecated/types/spec/error.js +0 -0
- package/dist/unpkg/prod-deprecated/types/spec/json-api-raw.js +0 -0
- package/dist/unpkg/prod-deprecated/types/symbols.js +84 -0
- package/dist/unpkg/prod-deprecated/types/utils.js +0 -0
- package/dist/unpkg/prod-deprecated/types.js +0 -0
- package/dist/unpkg/prod-deprecated/utils/string.js +92 -0
- package/logos/README.md +2 -2
- package/logos/logo-yellow-slab.svg +1 -0
- package/logos/word-mark-black.svg +1 -0
- package/logos/word-mark-white.svg +1 -0
- package/package.json +3 -3
- package/logos/NCC-1701-a-blue.svg +0 -4
- package/logos/NCC-1701-a-gold.svg +0 -4
- package/logos/NCC-1701-a-gold_100.svg +0 -1
- package/logos/NCC-1701-a-gold_base-64.txt +0 -1
- package/logos/NCC-1701-a.svg +0 -4
- package/logos/docs-badge.svg +0 -2
- package/logos/ember-data-logo-dark.svg +0 -12
- package/logos/ember-data-logo-light.svg +0 -12
- package/logos/social1.png +0 -0
- package/logos/social2.png +0 -0
- package/logos/warp-drive-logo-dark.svg +0 -4
- package/logos/warp-drive-logo-gold.svg +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactiveDocument } from "../../../reactive/-private/document.js";
|
|
1
|
+
import { type ReactiveDocument } from "../../../reactive/-private/document.js";
|
|
2
2
|
import type { Cache } from "../../../types/cache.js";
|
|
3
3
|
import type { RequestKey, ResourceKey } from "../../../types/identifier.js";
|
|
4
4
|
import type { TypedRecordInstance, TypeFromInstance } from "../../../types/record.js";
|
|
@@ -6,13 +6,13 @@ import type { OpaqueRecordInstance } from "../../-types/q/record-instance.js";
|
|
|
6
6
|
import { CacheCapabilitiesManager } from "../managers/cache-capabilities-manager.js";
|
|
7
7
|
import type { CacheManager } from "../managers/cache-manager.js";
|
|
8
8
|
import type { CreateRecordProperties, Store } from "../store-service.js";
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function peekResourceKey(record: OpaqueRecordInstance): ResourceKey | undefined;
|
|
10
10
|
/**
|
|
11
|
-
Retrieves the unique referentially-stable
|
|
11
|
+
Retrieves the unique referentially-stable {@link ResourceKey}
|
|
12
12
|
assigned to the given record instance.
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import { recordIdentifierFor } from "@
|
|
15
|
+
import { recordIdentifierFor } from "@warp-drive/core";
|
|
16
16
|
// ... gain access to a record, for instance with peekRecord or findRecord
|
|
17
17
|
const record = store.peekRecord("user", "1");
|
|
18
18
|
// get the identifier for the record (see docs for ResourceKey)
|
|
@@ -22,8 +22,7 @@ const { id, type, lid } = identifier;
|
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
@public
|
|
25
|
-
@param
|
|
26
|
-
@return {ResourceKey}
|
|
25
|
+
@param record a record instance previously obstained from the store.
|
|
27
26
|
*/
|
|
28
27
|
export declare function recordIdentifierFor<T extends TypedRecordInstance>(record: T): ResourceKey<TypeFromInstance<T>>;
|
|
29
28
|
export declare function recordIdentifierFor(record: OpaqueRecordInstance): ResourceKey;
|
|
@@ -2,6 +2,7 @@ import type { Cache } from "@warp-drive/core/types/cache";
|
|
|
2
2
|
import type { RequestKey, ResourceKey } from "@warp-drive/core/types/identifier";
|
|
3
3
|
import type { ImmutableRequestInfo, ResponseInfo, StructuredDocument } from "@warp-drive/core/types/request";
|
|
4
4
|
import type { ResourceDocument } from "@warp-drive/core/types/spec/document";
|
|
5
|
+
import type { CachePolicy } from "../-private.js";
|
|
5
6
|
type UnsubscribeToken = object;
|
|
6
7
|
type CacheOperation = "added" | "removed" | "updated" | "state";
|
|
7
8
|
type DocumentCacheOperation = "invalidated" | "added" | "removed" | "updated" | "state";
|
|
@@ -28,6 +29,11 @@ type Store = {
|
|
|
28
29
|
cache: Cache;
|
|
29
30
|
notifications: NotificationManager;
|
|
30
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Interface of a parsed Cache-Control header value.
|
|
34
|
+
*
|
|
35
|
+
* - [MDN Cache-Control Reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control)
|
|
36
|
+
*/
|
|
31
37
|
export interface CacheControlValue {
|
|
32
38
|
immutable?: boolean;
|
|
33
39
|
"max-age"?: number;
|
|
@@ -66,24 +72,83 @@ export interface CacheControlValue {
|
|
|
66
72
|
* }
|
|
67
73
|
* ```
|
|
68
74
|
*
|
|
75
|
+
* See also {@link CacheControlValue} and [Response Directives](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control#response_directives)
|
|
76
|
+
*
|
|
69
77
|
* @public
|
|
70
|
-
* @param {String} header
|
|
71
|
-
* @return {CacheControlValue}
|
|
72
78
|
*/
|
|
73
79
|
export declare function parseCacheControl(header: string): CacheControlValue;
|
|
74
80
|
/**
|
|
81
|
+
* The constraint options for {@link PolicyConfig.constraints}
|
|
82
|
+
*/
|
|
83
|
+
export interface PolicyConfigConstraints {
|
|
84
|
+
/**
|
|
85
|
+
* Headers that should be checked for expiration.
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
headers?: {
|
|
89
|
+
/**
|
|
90
|
+
* Whether the `Cache-Control` header should be checked for expiration.
|
|
91
|
+
* If `true`, then the `max-age` and `s-maxage` directives are used alongside
|
|
92
|
+
* the `Age` and `Date` headers to determine if the expiration time has passed.
|
|
93
|
+
*
|
|
94
|
+
* Other directives are ignored.
|
|
95
|
+
*
|
|
96
|
+
* 'Cache-Control' will take precedence over 'Expires' if both are present
|
|
97
|
+
* and both configured to be checked.
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
"Cache-Control"?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Whether the `Expires` header should be checked for expiration.
|
|
103
|
+
*
|
|
104
|
+
* If `true`, then the `Expires` header is used to caclulate the expiration time
|
|
105
|
+
* and determine if the expiration time has passed.
|
|
106
|
+
*
|
|
107
|
+
* 'Cache-Control' will take precedence over 'Expires' if both are present.
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
Expires?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Whether the `X-WarpDrive-Expires` header should be checked for expiration.
|
|
113
|
+
*
|
|
114
|
+
* If `true`, then the `X-WarpDrive-Expires` header is used to caclulate the expiration time
|
|
115
|
+
* and determine if the expiration time has passed.
|
|
116
|
+
*
|
|
117
|
+
* This header will take precedence over 'Cache-Control' and 'Expires' if all three are present.
|
|
118
|
+
*
|
|
119
|
+
* The header's value should be a [UTC date string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString).
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
"X-WarpDrive-Expires"?: boolean;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* A function that should be called to determine if the request is expired.
|
|
126
|
+
*
|
|
127
|
+
* If present, this function will be called with the request and should return
|
|
128
|
+
* `true` if the request is expired, `false` if it is not expired, and
|
|
129
|
+
* `null` if the expiration status is unknown.
|
|
130
|
+
*
|
|
131
|
+
* If the function does not return `null`,
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
isExpired?: (request: StructuredDocument<ResourceDocument>) => boolean | null;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
75
137
|
* The configuration options for the {@link DefaultCachePolicy}
|
|
76
138
|
*
|
|
77
|
-
* ```ts
|
|
78
|
-
* import {
|
|
139
|
+
* ```ts [app/services/store.ts]
|
|
140
|
+
* import { Store } from '@warp-drive/core';
|
|
141
|
+
* import { DefaultCachePolicy } from '@warp-drive/core/store'; // [!code focus]
|
|
79
142
|
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
143
|
+
* export default class AppStore extends Store {
|
|
144
|
+
* lifetimes = new DefaultCachePolicy({ // [!code focus:3]
|
|
145
|
+
* // ... PolicyConfig Settings ... //
|
|
146
|
+
* });
|
|
147
|
+
* }
|
|
83
148
|
* ```
|
|
84
149
|
*
|
|
85
150
|
*/
|
|
86
|
-
export
|
|
151
|
+
export interface PolicyConfig {
|
|
87
152
|
/**
|
|
88
153
|
* the number of milliseconds after which a request is considered
|
|
89
154
|
* stale. If a request is issued again after this time, the request
|
|
@@ -92,10 +157,9 @@ export type PolicyConfig = {
|
|
|
92
157
|
*
|
|
93
158
|
* This is calculated against the `date` header of the response.
|
|
94
159
|
*
|
|
95
|
-
* If your API does not provide a `date` header, the
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* header will be considered stale immediately.
|
|
160
|
+
* If your API does not provide a `date` header, the {@link Fetch} handler
|
|
161
|
+
* will automatically add it to responses if it is not present. Responses
|
|
162
|
+
* without a `date` header will be considered stale immediately.
|
|
99
163
|
*
|
|
100
164
|
*/
|
|
101
165
|
apiCacheSoftExpires: number;
|
|
@@ -107,10 +171,9 @@ export type PolicyConfig = {
|
|
|
107
171
|
*
|
|
108
172
|
* This is calculated against the `date` header of the response.
|
|
109
173
|
*
|
|
110
|
-
* If your API does not provide a `date` header, the
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* header will be considered hard expired immediately.
|
|
174
|
+
* If your API does not provide a `date` header, the {@link Fetch} handler
|
|
175
|
+
* will automatically add it to responses if it is not present. Responses
|
|
176
|
+
* without a `date` header will be considered hard expired immediately.
|
|
114
177
|
*
|
|
115
178
|
*/
|
|
116
179
|
apiCacheHardExpires: number;
|
|
@@ -120,8 +183,8 @@ export type PolicyConfig = {
|
|
|
120
183
|
*
|
|
121
184
|
* This helps reduce flakiness and produce predictably rendered results in test suites.
|
|
122
185
|
*
|
|
123
|
-
* Requests that specifically set
|
|
124
|
-
* still be background reloaded in tests.
|
|
186
|
+
* Requests that specifically set {@link RequestInfo.cacheOptions.backgroundReload | cacheOptions.backgroundReload }
|
|
187
|
+
* will still be background reloaded in tests.
|
|
125
188
|
*
|
|
126
189
|
* This behavior can be opted out of by setting this value to `true`.
|
|
127
190
|
*
|
|
@@ -130,7 +193,7 @@ export type PolicyConfig = {
|
|
|
130
193
|
/**
|
|
131
194
|
* In addition to the simple time-based expiration strategy, CachePolicy
|
|
132
195
|
* supports various common server-supplied expiration strategies via
|
|
133
|
-
* headers, as well as custom expiration strategies via the
|
|
196
|
+
* headers, as well as custom expiration strategies via the {@link PolicyConfigConstraints.isExpired | isExpired}
|
|
134
197
|
* function.
|
|
135
198
|
*
|
|
136
199
|
* Requests will be validated for expiration against these constraints.
|
|
@@ -157,118 +220,82 @@ export type PolicyConfig = {
|
|
|
157
220
|
* - ↳ (if null) Cache-Control header
|
|
158
221
|
* - ↳ (if null) Expires header
|
|
159
222
|
*
|
|
223
|
+
* See {@link PolicyConfigConstraints} for configuration options.
|
|
160
224
|
*/
|
|
161
|
-
constraints?:
|
|
162
|
-
|
|
163
|
-
* Headers that should be checked for expiration.
|
|
164
|
-
*
|
|
165
|
-
*/
|
|
166
|
-
headers?: {
|
|
167
|
-
/**
|
|
168
|
-
* Whether the `Cache-Control` header should be checked for expiration.
|
|
169
|
-
* If `true`, then the `max-age` and `s-maxage` directives are used alongside
|
|
170
|
-
* the `Age` and `Date` headers to determine if the expiration time has passed.
|
|
171
|
-
*
|
|
172
|
-
* Other directives are ignored.
|
|
173
|
-
*
|
|
174
|
-
* 'Cache-Control' will take precedence over 'Expires' if both are present
|
|
175
|
-
* and both configured to be checked.
|
|
176
|
-
*
|
|
177
|
-
*/
|
|
178
|
-
"Cache-Control"?: boolean;
|
|
179
|
-
/**
|
|
180
|
-
* Whether the `Expires` header should be checked for expiration.
|
|
181
|
-
*
|
|
182
|
-
* If `true`, then the `Expires` header is used to caclulate the expiration time
|
|
183
|
-
* and determine if the expiration time has passed.
|
|
184
|
-
*
|
|
185
|
-
* 'Cache-Control' will take precedence over 'Expires' if both are present.
|
|
186
|
-
*
|
|
187
|
-
*/
|
|
188
|
-
Expires?: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* Whether the `X-WarpDrive-Expires` header should be checked for expiration.
|
|
191
|
-
*
|
|
192
|
-
* If `true`, then the `X-WarpDrive-Expires` header is used to caclulate the expiration time
|
|
193
|
-
* and determine if the expiration time has passed.
|
|
194
|
-
*
|
|
195
|
-
* This header will take precedence over 'Cache-Control' and 'Expires' if all three are present.
|
|
196
|
-
*
|
|
197
|
-
* The header's value should be a [UTC date string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString).
|
|
198
|
-
*
|
|
199
|
-
*/
|
|
200
|
-
"X-WarpDrive-Expires"?: boolean;
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* A function that should be called to determine if the request is expired.
|
|
204
|
-
*
|
|
205
|
-
* If present, this function will be called with the request and should return
|
|
206
|
-
* `true` if the request is expired, `false` if it is not expired, and
|
|
207
|
-
* `null` if the expiration status is unknown.
|
|
208
|
-
*
|
|
209
|
-
* If the function does not return `null`,
|
|
210
|
-
*
|
|
211
|
-
*/
|
|
212
|
-
isExpired?: (request: StructuredDocument<ResourceDocument>) => boolean | null;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
225
|
+
constraints?: PolicyConfigConstraints;
|
|
226
|
+
}
|
|
215
227
|
/**
|
|
216
|
-
* A basic CachePolicy that can be added to the Store service.
|
|
217
|
-
*
|
|
218
|
-
* Determines staleness based on time since the request was last received from the API
|
|
219
|
-
* using the `date` header.
|
|
228
|
+
* A basic {@link CachePolicy} that can be added to the Store service.
|
|
220
229
|
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* In order expiration is determined by:
|
|
230
|
+
* ```ts [app/services/store.ts]
|
|
231
|
+
* import { Store } from '@warp-drive/core';
|
|
232
|
+
* import { DefaultCachePolicy } from '@warp-drive/core/store'; // [!code focus]
|
|
225
233
|
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
234
|
+
* export default class AppStore extends Store {
|
|
235
|
+
* lifetimes = new DefaultCachePolicy({ // [!code focus:5]
|
|
236
|
+
* apiCacheSoftExpires: 30_000,
|
|
237
|
+
* apiCacheHardExpires: 60_000,
|
|
238
|
+
* // ... Other PolicyConfig Settings ... //
|
|
239
|
+
* });
|
|
240
|
+
* }
|
|
241
|
+
* ```
|
|
232
242
|
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
243
|
+
* :::tip 💡 TIP
|
|
244
|
+
* Date headers do not have millisecond precision, so expiration times should
|
|
245
|
+
* generally be larger than 1000ms.
|
|
246
|
+
* :::
|
|
235
247
|
*
|
|
236
|
-
*
|
|
237
|
-
* with the types that should be invalidated, or its request should specify the ResourceKeys
|
|
238
|
-
* of the records that are being created via `records`. Providing both is valid.
|
|
248
|
+
* See also {@link PolicyConfig} for configuration options.
|
|
239
249
|
*
|
|
240
|
-
*
|
|
241
|
-
* > only requests that had specified `cacheOptions.types` and occurred prior to the
|
|
242
|
-
* > createRecord request will be invalidated. This means that a given request should always
|
|
243
|
-
* > specify the types that would invalidate it to opt into this behavior. Abstracting this
|
|
244
|
-
* > behavior via builders is recommended to ensure consistency.
|
|
250
|
+
* ### The Mechanics
|
|
245
251
|
*
|
|
246
|
-
* This
|
|
247
|
-
*
|
|
252
|
+
* This policy determines staleness based on various configurable constraints falling back to a simple
|
|
253
|
+
* check of the time elapsed since the request was last received from the API using the `date` header
|
|
254
|
+
* from the last response.
|
|
248
255
|
*
|
|
249
|
-
*
|
|
256
|
+
* :::tip 💡 TIP
|
|
257
|
+
* The {@link Fetch} handler provided by `@warp-drive/core` will automatically
|
|
250
258
|
* add the `date` header to responses if it is not present.
|
|
259
|
+
* :::
|
|
251
260
|
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
* > generally be larger than 1000ms.
|
|
261
|
+
* - For manual override of reload see {@link CacheOptions.reload | cacheOptions.reload}
|
|
262
|
+
* - For manual override of background reload see {@link CacheOptions.backgroundReload | cacheOptions.backgroundReload}
|
|
255
263
|
*
|
|
256
|
-
*
|
|
264
|
+
* In order expiration is determined by:
|
|
257
265
|
*
|
|
258
|
-
* ```
|
|
259
|
-
*
|
|
260
|
-
*
|
|
266
|
+
* ```md
|
|
267
|
+
* Is explicitly invalidated by `cacheOptions.reload`
|
|
268
|
+
* ↳ (if falsey) if the request has been explicitly invalidated
|
|
269
|
+
* since the last request (see Automatic Invalidation below)
|
|
270
|
+
* ↳ (if false) (If Active) isExpired function
|
|
271
|
+
* ↳ (if null) (If Active) X-WarpDrive-Expires header
|
|
272
|
+
* ↳ (if null) (If Active) Cache-Control header
|
|
273
|
+
* ↳ (if null) (If Active) Expires header
|
|
274
|
+
* ↳ (if null) Date header + apiCacheHardExpires < current time
|
|
261
275
|
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* });
|
|
267
|
-
* }
|
|
276
|
+
* -- <if above is false, a background request is issued if> --
|
|
277
|
+
*
|
|
278
|
+
* ↳ is invalidated by `cacheOptions.backgroundReload`
|
|
279
|
+
* ↳ (if falsey) Date header + apiCacheSoftExpires < current time
|
|
268
280
|
* ```
|
|
269
281
|
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
282
|
+
* ### Automatic Invalidation / Entanglement
|
|
283
|
+
*
|
|
284
|
+
* It also invalidates any request with an {@link RequestInfo.op | OpCode} of `"query"`
|
|
285
|
+
* for which {@link CacheOptions.types | cacheOptions.types} was provided
|
|
286
|
+
* when a request with an `OpCode` of `"createRecord"` is successful and also includes
|
|
287
|
+
* a matching type in its own `cacheOptions.types` array.
|
|
288
|
+
|
|
289
|
+
* :::tip 💡 TIP
|
|
290
|
+
* Abstracting this behavior via builders is recommended to ensure consistency.
|
|
291
|
+
* :::
|
|
292
|
+
*
|
|
293
|
+
* ### Testing
|
|
294
|
+
*
|
|
295
|
+
* In Testing environments:
|
|
296
|
+
*
|
|
297
|
+
* - `apiCacheSoftExpires` will always be `false`
|
|
298
|
+
* - `apiCacheHardExpires` will use the `apiCacheSoftExpires` value.
|
|
272
299
|
*
|
|
273
300
|
* This helps reduce flakiness and produce predictably rendered results in test suites.
|
|
274
301
|
*
|
|
@@ -280,16 +307,7 @@ export type PolicyConfig = {
|
|
|
280
307
|
*
|
|
281
308
|
* @public
|
|
282
309
|
*/
|
|
283
|
-
export declare class DefaultCachePolicy {
|
|
284
|
-
config: PolicyConfig;
|
|
285
|
-
_stores: WeakMap<Store, {
|
|
286
|
-
invalidated: Set<RequestKey>;
|
|
287
|
-
types: Map<string, Set<RequestKey>>;
|
|
288
|
-
}>;
|
|
289
|
-
_getStore(store: Store): {
|
|
290
|
-
invalidated: Set<RequestKey>;
|
|
291
|
-
types: Map<string, Set<RequestKey>>;
|
|
292
|
-
};
|
|
310
|
+
export declare class DefaultCachePolicy implements CachePolicy {
|
|
293
311
|
constructor(config: PolicyConfig);
|
|
294
312
|
/**
|
|
295
313
|
* Invalidate a request by its CacheKey for the given store instance.
|
|
@@ -314,7 +332,7 @@ export declare class DefaultCachePolicy {
|
|
|
314
332
|
* of the store.
|
|
315
333
|
*
|
|
316
334
|
* This invalidation is done automatically when using this service
|
|
317
|
-
* for both the CacheHandler and the LegacyNetworkHandler.
|
|
335
|
+
* for both the {@link CacheHandler} and the [NetworkHandler](/api/@warp-drive/legacy/compat/variables/LegacyNetworkHandler).
|
|
318
336
|
*
|
|
319
337
|
* ```ts
|
|
320
338
|
* store.lifetimes.invalidateRequestsForType(store, 'person');
|
|
@@ -328,7 +346,7 @@ export declare class DefaultCachePolicy {
|
|
|
328
346
|
* This is invoked by the CacheHandler for both foreground and background requests
|
|
329
347
|
* once the cache has been updated.
|
|
330
348
|
*
|
|
331
|
-
* Note, this is invoked by the CacheHandler regardless of whether
|
|
349
|
+
* Note, this is invoked by the {@link CacheHandler} regardless of whether
|
|
332
350
|
* the request has a cache-key.
|
|
333
351
|
*
|
|
334
352
|
* This method should not be invoked directly by consumers.
|
|
@@ -340,7 +358,7 @@ export declare class DefaultCachePolicy {
|
|
|
340
358
|
* Invoked to determine if the request may be fulfilled from cache
|
|
341
359
|
* if possible.
|
|
342
360
|
*
|
|
343
|
-
* Note, this is only invoked by the CacheHandler if the request has
|
|
361
|
+
* Note, this is only invoked by the {@link CacheHandler} if the request has
|
|
344
362
|
* a cache-key.
|
|
345
363
|
*
|
|
346
364
|
* If no cache entry is found or the entry is hard expired,
|
|
@@ -355,7 +373,7 @@ export declare class DefaultCachePolicy {
|
|
|
355
373
|
* Invoked if `isHardExpired` is false to determine if the request
|
|
356
374
|
* should be update behind the scenes if cache data is already available.
|
|
357
375
|
*
|
|
358
|
-
* Note, this is only invoked by the CacheHandler if the request has
|
|
376
|
+
* Note, this is only invoked by the {@link CacheHandler} if the request has
|
|
359
377
|
* a cache-key.
|
|
360
378
|
*
|
|
361
379
|
* If true, the request will be fulfilled from cache while a backgrounded
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RequestKey, ResourceKey } from "../../../types/identifier.js";
|
|
2
|
+
import type { SchemaService } from "../../../types/schema/schema-service.js";
|
|
2
3
|
import type { CacheCapabilitiesManager as StoreWrapper } from "../../-types/q/cache-capabilities-manager.js";
|
|
3
|
-
import type { SchemaService } from "../../-types/q/schema-service.js";
|
|
4
4
|
import type { PrivateStore, Store } from "../store-service.js";
|
|
5
5
|
import type { CacheKeyManager } from "./cache-key-manager.js";
|
|
6
6
|
import type { NotificationType } from "./notification-manager.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PersistedResourceKey, type RequestKey, type ResourceKey } from "../../../types/identifier.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RequestInfo } from "../../../types/request.js";
|
|
3
3
|
import type { ExistingResourceIdentifierObject, ResourceIdentifierObject } from "../../../types/spec/json-api-raw.js";
|
|
4
4
|
import type { ForgetMethod, GenerationMethod, KeyInfo, KeyInfoMethod, ResetMethod, UpdateMethod } from "../../-types/q/identifier.js";
|
|
5
5
|
type TypeFromIdentifier<T> = T extends {
|
|
@@ -197,16 +197,34 @@ export declare class CacheKeyManager {
|
|
|
197
197
|
*
|
|
198
198
|
* @private
|
|
199
199
|
*/
|
|
200
|
-
|
|
200
|
+
peekResourceKey(resource: ResourceIdentifierObject): ResourceKey | undefined;
|
|
201
201
|
/**
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
@public
|
|
202
|
+
* Peeks the {@link RequestKey} for the given {@link RequestInfo}, but will not
|
|
203
|
+
* create one if none has been previously generated.
|
|
204
|
+
*
|
|
205
|
+
* @public
|
|
206
|
+
*/
|
|
207
|
+
peekRequestKey(request: RequestInfo): RequestKey | null;
|
|
208
|
+
/**
|
|
209
|
+
* Returns the {@link RequestKey} for the given {@link RequestInfo} if the request is
|
|
210
|
+
* considered cacheable. For cacheable requests, this method will create
|
|
211
|
+
* a RequestKey if none is found.
|
|
212
|
+
*
|
|
213
|
+
* A `null` response indicates the request cannot/will not be cached,
|
|
214
|
+
* generally this means either
|
|
215
|
+
*
|
|
216
|
+
* - {@link RequestInfo.cacheOptions.key} is not present on the `RequestInfo`
|
|
217
|
+
* - the request's method is `GET` but it has no `url`
|
|
218
|
+
*
|
|
219
|
+
* Generally you should not seek to cache requests that are not idempotent
|
|
220
|
+
* or have side effects, such as mutations that create, update or delete
|
|
221
|
+
* a resource.
|
|
222
|
+
*
|
|
223
|
+
* @public
|
|
206
224
|
*/
|
|
207
|
-
getOrCreateDocumentIdentifier(request:
|
|
225
|
+
getOrCreateDocumentIdentifier(request: RequestInfo): RequestKey | null;
|
|
208
226
|
/**
|
|
209
|
-
Returns the
|
|
227
|
+
Returns the {@link ResourceKey} for the given Resource, creates one if it does not yet exist.
|
|
210
228
|
|
|
211
229
|
Specifically this means that we:
|
|
212
230
|
|
|
@@ -6,7 +6,7 @@ import type { LocalRelationshipOperation } from "../../../types/graph.js";
|
|
|
6
6
|
import type { RequestKey, ResourceKey } from "../../../types/identifier.js";
|
|
7
7
|
import type { Value } from "../../../types/json/raw.js";
|
|
8
8
|
import type { StructuredDataDocument, StructuredDocument } from "../../../types/request.js";
|
|
9
|
-
import type { ResourceDocument, SingleResourceDataDocument } from "../../../types/spec/document.js";
|
|
9
|
+
import type { CollectionResourceDataDocument, ResourceDocument, SingleResourceDataDocument } from "../../../types/spec/document.js";
|
|
10
10
|
import type { ApiError } from "../../../types/spec/error.js";
|
|
11
11
|
import type { StoreRequestContext } from "../cache-handler/handler.js";
|
|
12
12
|
/**
|
|
@@ -220,21 +220,23 @@ export declare class CacheManager implements Cache {
|
|
|
220
220
|
* @public
|
|
221
221
|
* @param key
|
|
222
222
|
*/
|
|
223
|
-
willCommit(key: ResourceKey, context: StoreRequestContext): void;
|
|
223
|
+
willCommit(key: ResourceKey | ResourceKey[], context: StoreRequestContext): void;
|
|
224
224
|
/**
|
|
225
225
|
* [LIFECYCLE] Signals to the cache that a resource
|
|
226
226
|
* was successfully updated as part of a save transaction.
|
|
227
227
|
*
|
|
228
228
|
* @public
|
|
229
229
|
*/
|
|
230
|
-
didCommit(key: ResourceKey, result: StructuredDataDocument<
|
|
230
|
+
didCommit(key: ResourceKey, result: StructuredDataDocument<SingleResourceDataDocument> | null): SingleResourceDataDocument;
|
|
231
|
+
didCommit(key: ResourceKey[], result: StructuredDataDocument<SingleResourceDataDocument> | null): SingleResourceDataDocument;
|
|
232
|
+
didCommit(key: ResourceKey[], result: StructuredDataDocument<CollectionResourceDataDocument> | null): CollectionResourceDataDocument;
|
|
231
233
|
/**
|
|
232
234
|
* [LIFECYCLE] Signals to the cache that a resource
|
|
233
235
|
* was update via a save transaction failed.
|
|
234
236
|
*
|
|
235
237
|
* @public
|
|
236
238
|
*/
|
|
237
|
-
commitWasRejected(key: ResourceKey, errors?: ApiError[]): void;
|
|
239
|
+
commitWasRejected(key: ResourceKey | ResourceKey[], errors?: ApiError[]): void;
|
|
238
240
|
/**
|
|
239
241
|
* [LIFECYCLE] Signals to the cache that all data for a resource
|
|
240
242
|
* should be cleared.
|
|
@@ -25,7 +25,7 @@ export interface DocumentOperationCallback {
|
|
|
25
25
|
* @hideconstructor
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export declare class NotificationManager {
|
|
29
29
|
constructor(store: Store);
|
|
30
30
|
/**
|
|
31
31
|
* Subscribe to changes for a given ResourceKey, RequestKey, or addition/removal of any resource
|
|
@@ -362,7 +362,7 @@ export declare function createRequestState<
|
|
|
362
362
|
* ```
|
|
363
363
|
*
|
|
364
364
|
* If looking to use in a template, consider also the `<Request />` component
|
|
365
|
-
* which offers a
|
|
365
|
+
* which offers a number of additional capabilities for requests *beyond* what
|
|
366
366
|
* `RequestState` provides.
|
|
367
367
|
*
|
|
368
368
|
*/
|