@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
package/dist/types/request.js
CHANGED
|
@@ -8,19 +8,22 @@ const IS_FUTURE = getOrSetGlobal('IS_FUTURE', Symbol('IS_FUTURE'));
|
|
|
8
8
|
const STRUCTURED = getOrSetGlobal('DOC', Symbol('DOC'));
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Use these options to adjust CacheHandler behavior for a request
|
|
11
|
+
* Use these options to adjust {@link CacheHandler} behavior for a request
|
|
12
|
+
* via {@link RequestInfo.cacheOptions}.
|
|
12
13
|
*
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
|
-
* When a
|
|
17
|
-
* containing the original
|
|
18
|
-
* chain (if any), and
|
|
17
|
+
* When a {@link Future} resolves, it returns an object
|
|
18
|
+
* containing the original {@link RequestInfo | request},
|
|
19
|
+
* the {@link Response | response} set by the handler chain (if any), and
|
|
20
|
+
* the processed content.
|
|
19
21
|
*/
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
|
-
* When a
|
|
23
|
-
*
|
|
24
|
+
* When a {@link Future} rejects, it throws either an {@link Error}
|
|
25
|
+
* an {@link AggregateError} or a {@link DOMException} that maintains
|
|
26
|
+
* the `{ request, response, content }` shape but is also an Error instance
|
|
24
27
|
* itself.
|
|
25
28
|
*
|
|
26
29
|
* If using the error originates from the {@link Fetch | Fetch Handler}
|
|
@@ -28,10 +31,12 @@ const STRUCTURED = getOrSetGlobal('DOC', Symbol('DOC'));
|
|
|
28
31
|
*/
|
|
29
32
|
|
|
30
33
|
/**
|
|
31
|
-
* A union of the resolve/reject data types for
|
|
34
|
+
* A union of the resolve/reject data types for the {@link Future}
|
|
35
|
+
* returned by {@link Store.request | request}
|
|
32
36
|
*
|
|
33
|
-
* See the docs for:
|
|
37
|
+
* See also the docs for:
|
|
34
38
|
*
|
|
39
|
+
* - {@link Future}
|
|
35
40
|
* - {@link StructuredDataDocument} (resolved/successful requests)
|
|
36
41
|
* - {@link StructuredErrorDocument} (rejected/failed requests)
|
|
37
42
|
*/
|
|
@@ -69,7 +74,4 @@ const STRUCTURED = getOrSetGlobal('DOC', Symbol('DOC'));
|
|
|
69
74
|
*
|
|
70
75
|
*/
|
|
71
76
|
|
|
72
|
-
|
|
73
|
-
return obj;
|
|
74
|
-
}
|
|
75
|
-
export { EnableHydration, IS_FUTURE, STRUCTURED, SkipCache, withBrand };
|
|
77
|
+
export { EnableHydration, IS_FUTURE, STRUCTURED, SkipCache };
|
|
@@ -443,6 +443,20 @@
|
|
|
443
443
|
* @public
|
|
444
444
|
*/
|
|
445
445
|
|
|
446
|
+
/**
|
|
447
|
+
* A trait for use on a PolarisMode record
|
|
448
|
+
*/
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* A trait for use on a LegacyMode record
|
|
452
|
+
*/
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* A union of
|
|
456
|
+
* - {@link LegacyTrait}
|
|
457
|
+
* - {@link PolarisTrait}
|
|
458
|
+
*/
|
|
459
|
+
|
|
446
460
|
/**
|
|
447
461
|
* A no-op type utility that enables type-checking resource schema
|
|
448
462
|
* definitions.
|
|
File without changes
|
package/dist/types/symbols.js
CHANGED
|
@@ -11,7 +11,7 @@ const RecordStore = getOrSetGlobal('Store', Symbol('Store'));
|
|
|
11
11
|
* record implementations to provide a typescript
|
|
12
12
|
* hint for the type of the resource.
|
|
13
13
|
*
|
|
14
|
-
* When used,
|
|
14
|
+
* When used, WarpDrive APIs can
|
|
15
15
|
* take advantage of this to provide better type
|
|
16
16
|
* safety and intellisense.
|
|
17
17
|
*
|
|
@@ -48,7 +48,7 @@ const Type = getOrSetGlobal('$type', Symbol('$type'));
|
|
|
48
48
|
* record implementations to provide a typescript
|
|
49
49
|
* hint for the type of the resource.
|
|
50
50
|
*
|
|
51
|
-
* When used,
|
|
51
|
+
* When used, WarpDrive APIs can
|
|
52
52
|
* take advantage of this to provide better type
|
|
53
53
|
* safety and intellisense.
|
|
54
54
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { macros } from '@warp-drive/build-config/babel-macros';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@warp-drive/build-config/canary-features';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@warp-drive/build-config/debugging';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@warp-drive/build-config/deprecations';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEBUG, IS_CI, IS_RECORDING, PRODUCTION, SHOULD_RECORD, TESTING } from '@warp-drive/build-config/env';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { assert } from '@warp-drive/build-config/macros';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { babelPlugin, setConfig } from '@warp-drive/build-config';
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { getOrSetGlobal, peekTransient, setTransient } from './types/-private.js';
|
|
2
|
+
import { macroCondition, getGlobalConfig } from '@embroider/macros';
|
|
3
|
+
const ARRAY_SIGNAL = getOrSetGlobal('#[]', Symbol('#[]'));
|
|
4
|
+
const OBJECT_SIGNAL = getOrSetGlobal('#{}', Symbol('#{}'));
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Requirements:
|
|
8
|
+
*
|
|
9
|
+
* Signal:
|
|
10
|
+
*
|
|
11
|
+
* - signal: a way of creating a reference that we can dirty when we desire to notify
|
|
12
|
+
* - @signal: a way of creating an accessor on an object that subscribes to a signal on access
|
|
13
|
+
* and notifies the signal on set, or of upgrading a descriptor to be such an accessor
|
|
14
|
+
* - defineSignal: a way of creating a signal on an object
|
|
15
|
+
* - notifySignal: a way of notifying the underlying signal that it has been dirtied
|
|
16
|
+
* - peekSignal: a way of inspecting the signal without notifying it
|
|
17
|
+
*
|
|
18
|
+
* - gate: a memoized getter function that re-runs when on access if its signal is dirty
|
|
19
|
+
* conceptually, a gate is a tightly coupled signal and memo
|
|
20
|
+
* - @gate: a way of creating a gate on an object or upgrading a descriptor with a getter
|
|
21
|
+
* to be a gate
|
|
22
|
+
* - defineGate: a way of creating a gate on an object
|
|
23
|
+
* - notifySignal: a way of notifying the signal for a gate that it has been dirtied
|
|
24
|
+
*
|
|
25
|
+
* - memo:
|
|
26
|
+
* - @memo: a way of creating a memoized getter on an object or upgrading a descriptor with a getter
|
|
27
|
+
* to be a memo
|
|
28
|
+
* - defineMemo: a way of creating a memo on an object
|
|
29
|
+
*
|
|
30
|
+
* - signalStore: storage bucket for signals associated to an object
|
|
31
|
+
* - withSignalStore: a way of pre-creating a signal store on an object
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* An Opaque type that represents a framework specific or TC39 signal.
|
|
39
|
+
*
|
|
40
|
+
* It may be an array of signals or a single signal.
|
|
41
|
+
*
|
|
42
|
+
* @private
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The hooks which MUST be configured in order to use reactive arrays,
|
|
47
|
+
* resources and documents with framework specfic signals or TC39 signals.
|
|
48
|
+
*
|
|
49
|
+
* Support for multiple frameworks simultaneously can be done via
|
|
50
|
+
* this abstraction by returning multiple signals from the `createSignal`
|
|
51
|
+
* method, and consuming the correct one via the correct framework via
|
|
52
|
+
* the `consumeSignal` and `notifySignal` methods.
|
|
53
|
+
*
|
|
54
|
+
* Unlike many signals implementations, WarpDrive does not wrap values as
|
|
55
|
+
* signals directly, but instead uses signals to alert the reactive layer
|
|
56
|
+
* to changes in the underlying cache. E.g. a signal is associated to a value,
|
|
57
|
+
* but does not serve as the cache for that value directly. We refer to this as
|
|
58
|
+
* a "gate", the pattern has also been called "side-signals".
|
|
59
|
+
*
|
|
60
|
+
* A no-op implementation is allowed, though it may lead to performance issues
|
|
61
|
+
* in locations that use createMemo as no memoization would be done. This is
|
|
62
|
+
* typically desirable only when integrating with a framework that does its own
|
|
63
|
+
* memoization and does not integrate with any signals-like primitive. For these
|
|
64
|
+
* scenarios you may also be interested in integrating with the {@link NotificationManager}
|
|
65
|
+
* more directly.
|
|
66
|
+
*
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Contains information a {@link SignalHooks} implementation may want
|
|
72
|
+
* to use, such as the specialized key used for the signal
|
|
73
|
+
* representing an array's contents / length.
|
|
74
|
+
*
|
|
75
|
+
* ```ts
|
|
76
|
+
* interface HooksOptions {
|
|
77
|
+
* wellknown: {
|
|
78
|
+
* Array: symbol | string;
|
|
79
|
+
* }
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Configures the signals implementation to use. Supports multiple
|
|
88
|
+
* implementations simultaneously.
|
|
89
|
+
*
|
|
90
|
+
* See {@link HooksOptions} for the options passed to the provided function
|
|
91
|
+
* when called.
|
|
92
|
+
*
|
|
93
|
+
* See {@link SignalHooks} for the implementation the callback function should
|
|
94
|
+
* return.
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
* @param buildConfig - a function that takes options and returns a configuration object
|
|
98
|
+
*/
|
|
99
|
+
function setupSignals(buildConfig) {
|
|
100
|
+
// We want to assert this but can't because too many package manager
|
|
101
|
+
// and bundler bugs exist that cause this to be called multiple times
|
|
102
|
+
// for what should be a single call.
|
|
103
|
+
// assert(`Cannot override configured signal hooks`, peekTransient('signalHooks') === null);
|
|
104
|
+
const hooks = buildConfig({
|
|
105
|
+
wellknown: {
|
|
106
|
+
Array: ARRAY_SIGNAL
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
setTransient('signalHooks', hooks);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Internal method for consuming the configured `createSignal` hook
|
|
114
|
+
*
|
|
115
|
+
* @private
|
|
116
|
+
*/
|
|
117
|
+
function createSignal(obj, key) {
|
|
118
|
+
const signalHooks = peekTransient('signalHooks');
|
|
119
|
+
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
120
|
+
if (!test) {
|
|
121
|
+
throw new Error(`Signal hooks not configured`);
|
|
122
|
+
}
|
|
123
|
+
})(signalHooks) : {};
|
|
124
|
+
return signalHooks.createSignal(obj, key);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Internal method for consuming the configured `consumeSignal` hook
|
|
129
|
+
*
|
|
130
|
+
* @private
|
|
131
|
+
*/
|
|
132
|
+
function consumeSignal(signal) {
|
|
133
|
+
const signalHooks = peekTransient('signalHooks');
|
|
134
|
+
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
135
|
+
if (!test) {
|
|
136
|
+
throw new Error(`Signal hooks not configured`);
|
|
137
|
+
}
|
|
138
|
+
})(signalHooks) : {};
|
|
139
|
+
return signalHooks.consumeSignal(signal);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Internal method for consuming the configured `notifySignal` hook
|
|
144
|
+
*
|
|
145
|
+
* @private
|
|
146
|
+
*/
|
|
147
|
+
function notifySignal(signal) {
|
|
148
|
+
const signalHooks = peekTransient('signalHooks');
|
|
149
|
+
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
150
|
+
if (!test) {
|
|
151
|
+
throw new Error(`Signal hooks not configured`);
|
|
152
|
+
}
|
|
153
|
+
})(signalHooks) : {};
|
|
154
|
+
return signalHooks.notifySignal(signal);
|
|
155
|
+
}
|
|
156
|
+
function createMemo(object, key, fn) {
|
|
157
|
+
const signalHooks = peekTransient('signalHooks');
|
|
158
|
+
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
159
|
+
if (!test) {
|
|
160
|
+
throw new Error(`Signal hooks not configured`);
|
|
161
|
+
}
|
|
162
|
+
})(signalHooks) : {};
|
|
163
|
+
return signalHooks.createMemo(object, key, fn);
|
|
164
|
+
}
|
|
165
|
+
function willSyncFlushWatchers() {
|
|
166
|
+
const signalHooks = peekTransient('signalHooks');
|
|
167
|
+
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
168
|
+
if (!test) {
|
|
169
|
+
throw new Error(`Signal hooks not configured`);
|
|
170
|
+
}
|
|
171
|
+
})(signalHooks) : {};
|
|
172
|
+
return signalHooks.willSyncFlushWatchers();
|
|
173
|
+
}
|
|
174
|
+
function waitFor(promise) {
|
|
175
|
+
const signalHooks = peekTransient('signalHooks');
|
|
176
|
+
if (signalHooks?.waitFor) {
|
|
177
|
+
return signalHooks.waitFor(promise);
|
|
178
|
+
}
|
|
179
|
+
return promise;
|
|
180
|
+
}
|
|
181
|
+
export { ARRAY_SIGNAL as A, OBJECT_SIGNAL as O, consumeSignal as a, createMemo as b, createSignal as c, willSyncFlushWatchers as d, notifySignal as n, setupSignals as s, waitFor as w };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as setupSignals } from "./configure-C3x8YXzL.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { macros } from "@warp-drive/build-config/babel-macros";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@warp-drive/build-config/canary-features";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@warp-drive/build-config/debugging";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@warp-drive/build-config/deprecations";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEBUG, PRODUCTION, IS_CI, IS_RECORDING, SHOULD_RECORD, TESTING } from "@warp-drive/build-config/env";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { assert } from "@warp-drive/build-config/macros";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module provides a build-plugin that enables configuration of deprecations,
|
|
3
|
+
* optional features, development/testing support and debug logging.
|
|
4
|
+
*
|
|
5
|
+
* Available settings include:
|
|
6
|
+
*
|
|
7
|
+
* - {@link LOGGING | debugging}
|
|
8
|
+
* - {@link DEPRECATIONS | deprecations}
|
|
9
|
+
* - {@link FEATURES | features}
|
|
10
|
+
* - {@link WarpDriveConfig.polyfillUUID | polyfillUUID}
|
|
11
|
+
* - {@link WarpDriveConfig.includeDataAdapterInProduction | includeDataAdapterInProduction}
|
|
12
|
+
* - {@link WarpDriveConfig.compatWith | compatWith}
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
import type { WarpDriveConfig } from "@warp-drive/build-config";
|
|
17
|
+
export { setConfig, babelPlugin } from "@warp-drive/build-config";
|
|
18
|
+
export type { WarpDriveConfig };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ResourceKey } from "../../types/identifier.js";
|
|
2
|
+
import type { CollectionEdge } from "./edges/collection.js";
|
|
3
|
+
import type { ResourceEdge } from "./edges/resource.js";
|
|
4
|
+
import type { Graph } from "./graph.js";
|
|
5
|
+
type Diff<T> = {
|
|
6
|
+
add: Set<T>;
|
|
7
|
+
del: Set<T>;
|
|
8
|
+
finalState: T[];
|
|
9
|
+
finalSet: Set<T>;
|
|
10
|
+
changed: boolean;
|
|
11
|
+
remoteOrderChanged: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function diffCollection(finalState: ResourceKey[], relationship: CollectionEdge, onAdd: (v: ResourceKey) => void, onDel: (v: ResourceKey) => void): Diff<ResourceKey>;
|
|
14
|
+
export declare function computeLocalState(storage: CollectionEdge): ResourceKey[];
|
|
15
|
+
export declare function _remove(graph: Graph, record: ResourceKey, relationship: CollectionEdge, value: ResourceKey, index: number | null, isRemote: boolean): boolean;
|
|
16
|
+
export declare function _removeLocal(relationship: CollectionEdge, value: ResourceKey): boolean;
|
|
17
|
+
export declare function _removeRemote(relationship: CollectionEdge, value: ResourceKey): boolean;
|
|
18
|
+
export declare function rollbackRelationship(graph: Graph, key: ResourceKey, field: string, relationship: CollectionEdge | ResourceEdge): void;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { ResourceKey } from "../../types.js";
|
|
2
|
+
import type { CollectionField, FieldSchema, LegacyBelongsToField, LegacyHasManyField, ResourceField } from "../../types/schema/fields.js";
|
|
3
|
+
import type { Graph } from "./graph.js";
|
|
4
|
+
export type EdgeCache = Record<string, Record<string, EdgeDefinition | null>>;
|
|
5
|
+
export type RelationshipField = LegacyBelongsToField | LegacyHasManyField | ResourceField | CollectionField;
|
|
6
|
+
export type RelationshipFieldKind = RelationshipField["kind"];
|
|
7
|
+
export type CollectionKind = "hasMany" | "collection";
|
|
8
|
+
export type ResourceKind = "belongsTo" | "resource";
|
|
9
|
+
export declare const RELATIONSHIP_KINDS: string[];
|
|
10
|
+
export declare function isLegacyField(field: FieldSchema): field is LegacyBelongsToField | LegacyHasManyField;
|
|
11
|
+
export declare function isRelationshipField(field: FieldSchema): field is RelationshipField;
|
|
12
|
+
export declare function temporaryConvertToLegacy(field: ResourceField | CollectionField): LegacyBelongsToField | LegacyHasManyField;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Given RHS (Right Hand Side)
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* class User extends Model {
|
|
19
|
+
* @hasMany('animal', { async: false, inverse: 'owner' }) pets;
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Given LHS (Left Hand Side)
|
|
24
|
+
*
|
|
25
|
+
* ```ts
|
|
26
|
+
* class Animal extends Model {
|
|
27
|
+
* @belongsTo('user', { async: false, inverse: 'pets' }) owner;
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* The UpgradedMeta for the RHS would be:
|
|
32
|
+
*
|
|
33
|
+
* ```ts
|
|
34
|
+
* {
|
|
35
|
+
* kind: 'hasMany',
|
|
36
|
+
* key: 'pets',
|
|
37
|
+
* type: 'animal',
|
|
38
|
+
* isAsync: false,
|
|
39
|
+
* isImplicit: false,
|
|
40
|
+
* isCollection: true,
|
|
41
|
+
* isPolymorphic: false,
|
|
42
|
+
* inverseKind: 'belongsTo',
|
|
43
|
+
* inverseKey: 'owner',
|
|
44
|
+
* inverseType: 'user',
|
|
45
|
+
* inverseIsAsync: false,
|
|
46
|
+
* inverseIsImplicit: false,
|
|
47
|
+
* inverseIsCollection: false,
|
|
48
|
+
* inverseIsPolymorphic: false,
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* The UpgradeMeta for the LHS would be:
|
|
53
|
+
*
|
|
54
|
+
* ```ts
|
|
55
|
+
* {
|
|
56
|
+
* kind: 'belongsTo',
|
|
57
|
+
* key: 'owner',
|
|
58
|
+
* type: 'user',
|
|
59
|
+
* isAsync: false,
|
|
60
|
+
* isImplicit: false,
|
|
61
|
+
* isCollection: false,
|
|
62
|
+
* isPolymorphic: false,
|
|
63
|
+
* inverseKind: 'hasMany',
|
|
64
|
+
* inverseKey: 'pets',
|
|
65
|
+
* inverseType: 'animal',
|
|
66
|
+
* inverseIsAsync: false,
|
|
67
|
+
* inverseIsImplicit: false,
|
|
68
|
+
* inverseIsCollection: true,
|
|
69
|
+
* inverseIsPolymorphic: false,
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @private
|
|
74
|
+
*/
|
|
75
|
+
export interface UpgradedMeta {
|
|
76
|
+
kind: "implicit" | RelationshipFieldKind;
|
|
77
|
+
/**
|
|
78
|
+
* The field sourceKey on `this` record,
|
|
79
|
+
* name if sourceKey is not set.
|
|
80
|
+
*/
|
|
81
|
+
key: string;
|
|
82
|
+
/**
|
|
83
|
+
* The field name on `this` record
|
|
84
|
+
*/
|
|
85
|
+
name: string;
|
|
86
|
+
/**
|
|
87
|
+
* The `type` of the related record
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
type: string;
|
|
91
|
+
isAsync: boolean;
|
|
92
|
+
isImplicit: boolean;
|
|
93
|
+
isCollection: boolean;
|
|
94
|
+
isPolymorphic: boolean;
|
|
95
|
+
resetOnRemoteUpdate: boolean;
|
|
96
|
+
isLinksMode: boolean;
|
|
97
|
+
inverseKind: "implicit" | RelationshipFieldKind;
|
|
98
|
+
/**
|
|
99
|
+
* The field sourceKey on the opposing record,
|
|
100
|
+
* name if sourceKey is not set.
|
|
101
|
+
*/
|
|
102
|
+
inverseKey: string;
|
|
103
|
+
/**
|
|
104
|
+
* The field name on the opposing record,
|
|
105
|
+
*/
|
|
106
|
+
inverseName: string;
|
|
107
|
+
/**
|
|
108
|
+
* The `type` of `this` record
|
|
109
|
+
*/
|
|
110
|
+
inverseType: string;
|
|
111
|
+
inverseIsAsync: boolean;
|
|
112
|
+
inverseIsImplicit: boolean;
|
|
113
|
+
inverseIsCollection: boolean;
|
|
114
|
+
inverseIsPolymorphic: boolean;
|
|
115
|
+
inverseIsLinksMode: boolean;
|
|
116
|
+
}
|
|
117
|
+
export interface EdgeDefinition {
|
|
118
|
+
lhs_key: string;
|
|
119
|
+
lhs_modelNames: string[];
|
|
120
|
+
lhs_baseModelName: string;
|
|
121
|
+
lhs_relationshipName: string;
|
|
122
|
+
lhs_definition: UpgradedMeta;
|
|
123
|
+
lhs_isPolymorphic: boolean;
|
|
124
|
+
rhs_key: string;
|
|
125
|
+
rhs_modelNames: string[];
|
|
126
|
+
rhs_baseModelName: string;
|
|
127
|
+
rhs_relationshipName: string;
|
|
128
|
+
rhs_definition: UpgradedMeta | null;
|
|
129
|
+
rhs_isPolymorphic: boolean;
|
|
130
|
+
hasInverse: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Whether this relationship points back at the same type.
|
|
133
|
+
*
|
|
134
|
+
* If the relationship is polymorphic, this will be true if
|
|
135
|
+
* it points back at the same abstract type.
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
isSelfReferential: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* If this is a reflexive relationship, this is true
|
|
141
|
+
* if the relationship also points back at the same
|
|
142
|
+
* field.
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
isReflexive: boolean;
|
|
146
|
+
}
|
|
147
|
+
export declare function isLHS(info: EdgeDefinition, type: string, key: string): boolean;
|
|
148
|
+
export declare function isRHS(info: EdgeDefinition, type: string, key: string): boolean;
|
|
149
|
+
export declare function upgradeDefinition(graph: Graph, key: ResourceKey, propertyName: string, isImplicit?: boolean): EdgeDefinition | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface RelationshipState {
|
|
2
|
+
hasReceivedData: boolean;
|
|
3
|
+
isEmpty: boolean;
|
|
4
|
+
isStale: boolean;
|
|
5
|
+
hasFailedLoadAttempt: boolean;
|
|
6
|
+
shouldForceReload: boolean;
|
|
7
|
+
hasDematerializedInverse: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function createState(): RelationshipState;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Store } from "../../store/-private.js";
|
|
2
|
+
import type { CacheCapabilitiesManager } from "../../types.js";
|
|
3
|
+
import type { UpdateResourceRelationshipOperation } from "../../types/cache/operations.js";
|
|
4
|
+
import type { UpdateRelationshipOperation } from "../../types/graph.js";
|
|
5
|
+
import type { ResourceKey } from "../../types/identifier.js";
|
|
6
|
+
import type { ResourceIdentifierObject } from "../../types/spec/json-api-raw.js";
|
|
7
|
+
import type { UpgradedMeta } from "./-edge-definition.js";
|
|
8
|
+
import type { CollectionEdge } from "./edges/collection.js";
|
|
9
|
+
import type { ImplicitEdge } from "./edges/implicit.js";
|
|
10
|
+
import type { ResourceEdge } from "./edges/resource.js";
|
|
11
|
+
import type { Graph, GraphEdge } from "./graph.js";
|
|
12
|
+
export declare function getStore(wrapper: CacheCapabilitiesManager | {
|
|
13
|
+
_store: Store;
|
|
14
|
+
}): Store;
|
|
15
|
+
export declare function expandingGet<T>(cache: Record<string, Record<string, T>>, key1: string, key2: string): T | undefined;
|
|
16
|
+
export declare function expandingSet<T>(cache: Record<string, Record<string, T>>, key1: string, key2: string, value: T): void;
|
|
17
|
+
export declare function assertValidRelationshipPayload(graph: Graph, op: UpdateRelationshipOperation | UpdateResourceRelationshipOperation): void;
|
|
18
|
+
export declare function checkIfNew(store: Store, resourceKey: ResourceKey): boolean;
|
|
19
|
+
export declare function isBelongsTo(relationship: GraphEdge): relationship is ResourceEdge;
|
|
20
|
+
export declare function isImplicit(relationship: GraphEdge): relationship is ImplicitEdge;
|
|
21
|
+
export declare function isHasMany(relationship: GraphEdge): relationship is CollectionEdge;
|
|
22
|
+
export declare function forAllRelatedIdentifiers(rel: GraphEdge, cb: (resourceKey: ResourceKey) => void): void;
|
|
23
|
+
export declare function removeIdentifierCompletelyFromRelationship(graph: Graph, relationship: GraphEdge, value: ResourceKey, silenceNotifications?: boolean): void;
|
|
24
|
+
export declare function notifyChange(graph: Graph, relationship: CollectionEdge | ResourceEdge): void;
|
|
25
|
+
export declare function assertRelationshipData(store: Store, resourceKey: ResourceKey, data: ResourceIdentifierObject, meta: UpgradedMeta): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CacheCapabilitiesManager } from "../../../types.js";
|
|
2
|
+
import type { ResourceKey } from "../../../types/identifier.js";
|
|
3
|
+
import { type UpgradedMeta } from "../-edge-definition.js";
|
|
4
|
+
declare let assertPolymorphicType: (parentIdentifier: ResourceKey, parentDefinition: UpgradedMeta, addedIdentifier: ResourceKey, store: CacheCapabilitiesManager) => void;
|
|
5
|
+
declare let assertInheritedSchema: (definition: UpgradedMeta, type: string) => void;
|
|
6
|
+
export { assertPolymorphicType, assertInheritedSchema };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { CollectionRelationship } from "../../../types/cache/relationship.js";
|
|
2
|
+
import type { ResourceKey } from "../../../types/identifier.js";
|
|
3
|
+
import type { Links, Meta, PaginationLinks } from "../../../types/spec/json-api-raw.js";
|
|
4
|
+
import type { UpgradedMeta } from "../-edge-definition.js";
|
|
5
|
+
import type { RelationshipState } from "../-state.js";
|
|
6
|
+
export interface CollectionEdge {
|
|
7
|
+
definition: UpgradedMeta;
|
|
8
|
+
identifier: ResourceKey;
|
|
9
|
+
state: RelationshipState;
|
|
10
|
+
remoteMembers: Set<ResourceKey>;
|
|
11
|
+
remoteState: ResourceKey[];
|
|
12
|
+
additions: Set<ResourceKey> | null;
|
|
13
|
+
removals: Set<ResourceKey> | null;
|
|
14
|
+
meta: Meta | null;
|
|
15
|
+
links: Links | PaginationLinks | null;
|
|
16
|
+
localState: ResourceKey[] | null;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the localState for this edge is out-of-sync
|
|
19
|
+
* with the remoteState.
|
|
20
|
+
*
|
|
21
|
+
* if state.hasReceivedData=false we are also
|
|
22
|
+
* not dirty since there is nothing to sync with.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
isDirty: boolean;
|
|
26
|
+
transactionRef: number;
|
|
27
|
+
/**
|
|
28
|
+
* Whether data for this edge has been accessed at least once
|
|
29
|
+
* via `graph.getData`
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
accessed: boolean;
|
|
33
|
+
_diff?: {
|
|
34
|
+
add: Set<ResourceKey>;
|
|
35
|
+
del: Set<ResourceKey>;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export declare function createCollectionEdge(definition: UpgradedMeta, identifier: ResourceKey): CollectionEdge;
|
|
39
|
+
export declare function legacyGetCollectionRelationshipData(source: CollectionEdge, getRemoteState: boolean): CollectionRelationship;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ResourceKey } from "../../../types/identifier.js";
|
|
2
|
+
import type { UpgradedMeta } from "../-edge-definition.js";
|
|
3
|
+
export type ImplicitMeta = UpgradedMeta & {
|
|
4
|
+
kind: "implicit";
|
|
5
|
+
isImplicit: true;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
Implicit relationships are relationships which have not been declared but the inverse side exists on
|
|
9
|
+
another record somewhere
|
|
10
|
+
|
|
11
|
+
For example consider the following two models
|
|
12
|
+
|
|
13
|
+
::: code-group
|
|
14
|
+
|
|
15
|
+
```js [./models/comment.js]
|
|
16
|
+
import { Model, attr } from '@warp-drive/legacy/model';
|
|
17
|
+
|
|
18
|
+
export default class Comment extends Model {
|
|
19
|
+
@attr text;
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```js [./models/post.js]
|
|
24
|
+
import { Model, attr, hasMany } from '@warp-drive/legacy/model';
|
|
25
|
+
|
|
26
|
+
export default class Post extends Model {
|
|
27
|
+
@attr title;
|
|
28
|
+
@hasMany('comment', { async: true, inverse: null }) comments;
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
:::
|
|
33
|
+
|
|
34
|
+
Then we would have a implicit 'post' relationship for the comment record in order
|
|
35
|
+
to be do things like remove the comment from the post if the comment were to be deleted.
|
|
36
|
+
*/
|
|
37
|
+
export interface ImplicitEdge {
|
|
38
|
+
definition: ImplicitMeta;
|
|
39
|
+
identifier: ResourceKey;
|
|
40
|
+
localMembers: Set<ResourceKey>;
|
|
41
|
+
remoteMembers: Set<ResourceKey>;
|
|
42
|
+
}
|
|
43
|
+
export declare function createImplicitEdge(definition: ImplicitMeta, identifier: ResourceKey): ImplicitEdge;
|