@warp-drive/core 5.8.0-alpha.30 → 5.8.0-alpha.34
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/declarations/index.d.ts +9 -2
- package/declarations/store/-private/caches/instance-cache.d.ts +1 -1
- package/declarations/store/deprecated/-private.d.ts +1 -1
- package/declarations/types/schema/fields.d.ts +3 -3
- package/declarations/types/schema/schema-service.d.ts +4 -4
- package/dist/{index-CHrZ1B2X.js → index-D4si_DxB.js} +19 -9
- package/dist/index.js +1 -1
- package/dist/reactive.js +1 -1
- package/dist/store/-private.js +1 -1
- package/dist/types/-private.js +1 -1
- 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/package.json +27 -3
package/declarations/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { Fetch, RequestManager };
|
|
|
18
18
|
export { Store, CacheHandler, type CachePolicy };
|
|
19
19
|
export { type StoreRequestContext, type StoreRequestInput, storeFor } from "./store/-private.js";
|
|
20
20
|
/**
|
|
21
|
-
* @deprecated use
|
|
21
|
+
* @deprecated use {@link ReactiveDocument} instead
|
|
22
22
|
*/
|
|
23
23
|
export type Document<T> = ReactiveDocument<T>;
|
|
24
24
|
export type { DocumentCacheOperation, CacheOperation, NotificationType } from "./store/-private/managers/notification-manager.js";
|
|
@@ -76,6 +76,11 @@ export interface StoreSetupOptions<T extends Cache = Cache> {
|
|
|
76
76
|
*/
|
|
77
77
|
CAUTION_MEGA_DANGER_ZONE_extensions?: CAUTION_MEGA_DANGER_ZONE_Extension[];
|
|
78
78
|
}
|
|
79
|
+
export declare class ConfiguredStore<T extends {
|
|
80
|
+
cache: Cache;
|
|
81
|
+
}> extends Store {
|
|
82
|
+
createCache(capabilities: CacheCapabilitiesManager): T["cache"];
|
|
83
|
+
}
|
|
79
84
|
/**
|
|
80
85
|
* Creates a configured Store class with recommended defaults
|
|
81
86
|
* for schema handling, reactivity, caching, and request management.
|
|
@@ -90,4 +95,6 @@ export interface StoreSetupOptions<T extends Cache = Cache> {
|
|
|
90
95
|
* });
|
|
91
96
|
* ```
|
|
92
97
|
*/
|
|
93
|
-
export declare function useRecommendedStore(options: StoreSetupOptions
|
|
98
|
+
export declare function useRecommendedStore<T extends Cache>(options: StoreSetupOptions<T>, StoreKlass?: typeof Store): typeof ConfiguredStore<{
|
|
99
|
+
cache: T;
|
|
100
|
+
}>;
|
|
@@ -12,7 +12,7 @@ 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)
|
|
@@ -42,7 +42,7 @@ export type KeyOrString<T> = keyof T & string extends never ? string : keyof T &
|
|
|
42
42
|
* "model" class.
|
|
43
43
|
*
|
|
44
44
|
* Only used when using the legacy schema-service implementation
|
|
45
|
-
* for @
|
|
45
|
+
* for @warp-drive/legacy/model or when wrapping schema for legacy
|
|
46
46
|
* Adapters/Serializers.
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
@@ -1463,7 +1463,7 @@ export interface LinksModeBelongsToField {
|
|
|
1463
1463
|
polymorphic?: boolean;
|
|
1464
1464
|
/**
|
|
1465
1465
|
* Whether this field should ever make use of the legacy support infra
|
|
1466
|
-
* from @
|
|
1466
|
+
* from @warp-drive/legacy/model and the LegacyNetworkMiddleware for adapters and serializers.
|
|
1467
1467
|
*
|
|
1468
1468
|
* MUST be true for PolarisMode + LinksMode
|
|
1469
1469
|
*
|
|
@@ -1637,7 +1637,7 @@ export interface LegacyHasManyField {
|
|
|
1637
1637
|
polymorphic?: boolean;
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Whether this field should ever make use of the legacy support infra
|
|
1640
|
-
* from @
|
|
1640
|
+
* from @warp-drive/legacy/model and the LegacyNetworkMiddleware for adapters and serializers.
|
|
1641
1641
|
*
|
|
1642
1642
|
* When true, none of the legacy support will be utilized. Sync relationships
|
|
1643
1643
|
* will be expected to already have all their data. When reloading a sync relationship
|
|
@@ -1813,7 +1813,7 @@ export interface LinksModeHasManyField {
|
|
|
1813
1813
|
polymorphic?: boolean;
|
|
1814
1814
|
/**
|
|
1815
1815
|
* Whether this field should ever make use of the legacy support infra
|
|
1816
|
-
* from @
|
|
1816
|
+
* from @warp-drive/legacy/model and the LegacyNetworkMiddleware for adapters and serializers.
|
|
1817
1817
|
*
|
|
1818
1818
|
* MUST be true for PolarisMode + LinksMode
|
|
1819
1819
|
*
|
|
@@ -21,7 +21,7 @@ interface ObjectWithStringTypeProperty {
|
|
|
21
21
|
* The primary requirement is merely that any information the service needs to correctly
|
|
22
22
|
* respond to an inquest is available by the time it is asked.
|
|
23
23
|
*
|
|
24
|
-
* The `@
|
|
24
|
+
* The `@warp-drive/legacy/model` package provides an implementation of this service which
|
|
25
25
|
* makes use of your model classes as the source of information to respond to queries
|
|
26
26
|
* about resource schema. While this is useful, this may not be ideal for your application.
|
|
27
27
|
* For instance, Schema information could be sideloaded or pre-flighted for API calls,
|
|
@@ -32,7 +32,7 @@ interface ObjectWithStringTypeProperty {
|
|
|
32
32
|
* hook to return an instance of your service.
|
|
33
33
|
*
|
|
34
34
|
* ```ts
|
|
35
|
-
* import Store from '@
|
|
35
|
+
* import { Store } from '@warp-drive/core';
|
|
36
36
|
* import CustomSchemas from './custom-schemas';
|
|
37
37
|
*
|
|
38
38
|
* export default class extends Store {
|
|
@@ -229,7 +229,7 @@ export interface SchemaService {
|
|
|
229
229
|
* be a string reference to a `transform`, and `options` which
|
|
230
230
|
* should be dictionary in which any key:value pairs are permissable.
|
|
231
231
|
*
|
|
232
|
-
* For instance, when using `@
|
|
232
|
+
* For instance, when using `@warp-drive/legacy/model`, the following attribute
|
|
233
233
|
* definition:
|
|
234
234
|
*
|
|
235
235
|
* ```ts
|
|
@@ -283,7 +283,7 @@ export interface SchemaService {
|
|
|
283
283
|
* - `options.as` a string representing the abstract type that the concrete side of
|
|
284
284
|
* a relationship must specify when fulfilling a polymorphic inverse.
|
|
285
285
|
*
|
|
286
|
-
* For example, the following Model using @
|
|
286
|
+
* For example, the following Model using @warp-drive/legacy/model would generate this relationships
|
|
287
287
|
* definition by default:
|
|
288
288
|
*
|
|
289
289
|
* ```js
|
|
@@ -1884,7 +1884,7 @@ function peekResourceKey(record) {
|
|
|
1884
1884
|
assigned to the given record instance.
|
|
1885
1885
|
|
|
1886
1886
|
```js
|
|
1887
|
-
import { recordIdentifierFor } from "@
|
|
1887
|
+
import { recordIdentifierFor } from "@warp-drive/core";
|
|
1888
1888
|
// ... gain access to a record, for instance with peekRecord or findRecord
|
|
1889
1889
|
const record = store.peekRecord("user", "1");
|
|
1890
1890
|
// get the identifier for the record (see docs for ResourceKey)
|
|
@@ -1900,7 +1900,7 @@ function peekResourceKey(record) {
|
|
|
1900
1900
|
function recordIdentifierFor(record) {
|
|
1901
1901
|
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
1902
1902
|
if (!test) {
|
|
1903
|
-
throw new Error(`${String(record)} is not a
|
|
1903
|
+
throw new Error(`${String(record)} is not a ReactiveResource or Model known to WarpDrive`);
|
|
1904
1904
|
}
|
|
1905
1905
|
})(RecordCache.has(record)) : {};
|
|
1906
1906
|
return RecordCache.get(record);
|
|
@@ -5798,7 +5798,7 @@ function _convertPreloadRelationshipToJSON(value, type) {
|
|
|
5798
5798
|
* "model" class.
|
|
5799
5799
|
*
|
|
5800
5800
|
* Only used when using the legacy schema-service implementation
|
|
5801
|
-
* for @
|
|
5801
|
+
* for @warp-drive/legacy/model or when wrapping schema for legacy
|
|
5802
5802
|
* Adapters/Serializers.
|
|
5803
5803
|
*
|
|
5804
5804
|
*/
|
|
@@ -6018,7 +6018,7 @@ function getShimClass(store, modelName) {
|
|
|
6018
6018
|
return shim;
|
|
6019
6019
|
}
|
|
6020
6020
|
|
|
6021
|
-
// Mimics the static apis of @
|
|
6021
|
+
// Mimics the static apis of @warp-drive/legacy/model
|
|
6022
6022
|
class ShimModelClass {
|
|
6023
6023
|
constructor(store, modelName) {
|
|
6024
6024
|
this.__store = store;
|
|
@@ -8629,7 +8629,7 @@ class ManagedArray {
|
|
|
8629
8629
|
if (fn === undefined) {
|
|
8630
8630
|
fn = function () {
|
|
8631
8631
|
if (!IS_EDITABLE) {
|
|
8632
|
-
throw new Error(`Mutating this array via ${String(prop)} is not allowed because the
|
|
8632
|
+
throw new Error(`Mutating this array via ${String(prop)} is not allowed because the ReactiveResource is not editable`);
|
|
8633
8633
|
}
|
|
8634
8634
|
consumeInternalSignal(_SIGNAL);
|
|
8635
8635
|
transaction = true;
|
|
@@ -8652,7 +8652,12 @@ class ManagedArray {
|
|
|
8652
8652
|
if (context.path) {
|
|
8653
8653
|
errorPath = context.path[context.path.length - 1];
|
|
8654
8654
|
}
|
|
8655
|
-
|
|
8655
|
+
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
8656
|
+
{
|
|
8657
|
+
throw new Error(`Cannot set ${String(prop)} on ${errorPath} because the ReactiveResource is not editable`);
|
|
8658
|
+
}
|
|
8659
|
+
})() : {};
|
|
8660
|
+
return false;
|
|
8656
8661
|
}
|
|
8657
8662
|
if (prop === 'identifier') {
|
|
8658
8663
|
self.identifier = value;
|
|
@@ -9586,7 +9591,12 @@ function setSchemaObjectField(context) {
|
|
|
9586
9591
|
});
|
|
9587
9592
|
for (const key of Object.keys(newValue)) {
|
|
9588
9593
|
if (!schemaFields.has(key)) {
|
|
9589
|
-
|
|
9594
|
+
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
9595
|
+
{
|
|
9596
|
+
throw new Error(`Field ${key} does not exist on schema object ${context.field.type}`);
|
|
9597
|
+
}
|
|
9598
|
+
})() : {};
|
|
9599
|
+
return false;
|
|
9590
9600
|
}
|
|
9591
9601
|
}
|
|
9592
9602
|
} else {
|
|
@@ -10139,7 +10149,7 @@ class ReactiveResource {
|
|
|
10139
10149
|
if (!context.editable) {
|
|
10140
10150
|
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
10141
10151
|
{
|
|
10142
|
-
throw new Error(`Cannot set ${String(prop)} on ${context.path !== null ? context.value : resourceKey.type} because the
|
|
10152
|
+
throw new Error(`Cannot set ${String(prop)} on ${context.path !== null ? context.value : resourceKey.type} because the ReactiveResource is not editable`);
|
|
10143
10153
|
}
|
|
10144
10154
|
})() : {};
|
|
10145
10155
|
return false;
|
|
@@ -11675,7 +11685,7 @@ globalThis.getWarpDriveRuntimeConfig = getRuntimeConfig;
|
|
|
11675
11685
|
* ```
|
|
11676
11686
|
*/
|
|
11677
11687
|
function useRecommendedStore(options, StoreKlass = Store) {
|
|
11678
|
-
return class
|
|
11688
|
+
return class AppStore extends StoreKlass {
|
|
11679
11689
|
requestManager = new RequestManager().use([...(options.handlers ?? []), Fetch]).useCache(CacheHandler);
|
|
11680
11690
|
lifetimes = options.policy ?? new DefaultCachePolicy({
|
|
11681
11691
|
apiCacheHardExpires: 15 * 60 * 1000,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CacheHandler, V as Fetch, W as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, $ as setIdentifierForgetMethod, Y as setIdentifierGenerationMethod, a0 as setIdentifierResetMethod, Z as setIdentifierUpdateMethod, a1 as setKeyInfoForResource, s as storeFor, X as useRecommendedStore } from "./index-
|
|
1
|
+
export { C as CacheHandler, V as Fetch, W as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, $ as setIdentifierForgetMethod, Y as setIdentifierGenerationMethod, a0 as setIdentifierResetMethod, Z as setIdentifierUpdateMethod, a1 as setKeyInfoForResource, s as storeFor, X as useRecommendedStore } from "./index-D4si_DxB.js";
|
|
2
2
|
import "./symbols-sql1_mdx.js";
|
|
3
3
|
import '@ember/debug';
|
|
4
4
|
import '@embroider/macros';
|
package/dist/reactive.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as SchemaService, K as checkout, T as commit, p as createRequestSubscription, P as fromIdentity, U as getPromiseState, q as getRequestState, L as instantiateRecord, Q as registerDerivations, M as teardownRecord, O as withDefaults } from "./index-
|
|
1
|
+
export { N as SchemaService, K as checkout, T as commit, p as createRequestSubscription, P as fromIdentity, U as getPromiseState, q as getRequestState, L as instantiateRecord, Q as registerDerivations, M as teardownRecord, O as withDefaults } from "./index-D4si_DxB.js";
|
|
2
2
|
export { a as Checkout } from "./symbols-sql1_mdx.js";
|
|
3
3
|
import './types/request.js';
|
|
4
4
|
import '@embroider/macros';
|
package/dist/store/-private.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CacheHandler, D as DISPOSE, R as RecordArrayManager, B as Signals, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, I as consumeInternalSignal, F as createInternalMemo, l as createLegacyManyArray, p as createRequestSubscription, z as defineGate, A as defineNonEnumerableSignal, y as defineSignal, e as ensureStringId, x as entangleInitiallyStaleSignal, w as entangleSignal, f as fastPush, v as gate, J as getOrCreateInternalSignal, q as getRequestState, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, u as memoized, H as notifyInternalSignal, E as peekInternalSignal, r as recordIdentifierFor, j as setRecordIdentifier, t as signal, s as storeFor, G as withSignalStore } from "../index-
|
|
1
|
+
export { C as CacheHandler, D as DISPOSE, R as RecordArrayManager, B as Signals, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, I as consumeInternalSignal, F as createInternalMemo, l as createLegacyManyArray, p as createRequestSubscription, z as defineGate, A as defineNonEnumerableSignal, y as defineSignal, e as ensureStringId, x as entangleInitiallyStaleSignal, w as entangleSignal, f as fastPush, v as gate, J as getOrCreateInternalSignal, q as getRequestState, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, u as memoized, H as notifyInternalSignal, E as peekInternalSignal, r as recordIdentifierFor, j as setRecordIdentifier, t as signal, s as storeFor, G as withSignalStore } from "../index-D4si_DxB.js";
|
|
2
2
|
export { A as ARRAY_SIGNAL, O as OBJECT_SIGNAL, w as waitFor } from "../configure-C3x8YXzL.js";
|
package/dist/types/-private.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { macroCondition, getGlobalConfig } from '@embroider/macros';
|
|
2
2
|
const name = "@warp-drive/core";
|
|
3
|
-
const version = "5.8.0-alpha.
|
|
3
|
+
const version = "5.8.0-alpha.34";
|
|
4
4
|
|
|
5
5
|
// in testing mode, we utilize globals to ensure only one copy exists of
|
|
6
6
|
// these maps, due to bugs in ember-auto-import
|
|
@@ -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;
|