@warp-drive/core 5.8.0-alpha.37 → 5.8.0-alpha.40
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 +0 -4
- package/dist/{index-D4si_DxB.js → index-BKcD4JZK.js} +12 -8
- 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/{prod-deprecated/symbols-sql1_mdx.js → dev/-private-3C1OkYtZ.js} +1 -1
- package/dist/unpkg/{dev-deprecated/configure-C3x8YXzL.js → dev/configure-BC66sfNO.js} +13 -11
- package/dist/unpkg/dev/configure.js +1 -1
- package/dist/unpkg/dev/graph/-private.js +206 -449
- package/dist/unpkg/dev/{index-D4si_DxB.js → index-DqhXrNZ_.js} +741 -1327
- package/dist/unpkg/dev/index.js +5 -7
- package/dist/unpkg/dev/reactive/-private.js +1 -1
- package/dist/unpkg/dev/reactive.js +4 -6
- package/dist/unpkg/{dev-deprecated/request-oqoLC9rz.js → dev/request-CA9K0gXq.js} +10 -16
- package/dist/unpkg/dev/request.js +1 -1
- package/dist/unpkg/dev/runtime-DGG4CvlW.js +135 -0
- package/dist/unpkg/dev/store/-private.js +56 -2
- package/dist/unpkg/dev/store.js +558 -1
- package/dist/unpkg/dev/types/-private.js +5 -15
- package/dist/unpkg/dev/types/identifier.js +1 -3
- package/dist/unpkg/dev/utils/string.js +5 -6
- package/dist/unpkg/dev-deprecated/{symbols-sql1_mdx.js → -private-3C1OkYtZ.js} +1 -1
- package/dist/unpkg/{prod-deprecated/configure-C3x8YXzL.js → dev-deprecated/configure-BC66sfNO.js} +13 -11
- package/dist/unpkg/dev-deprecated/configure.js +1 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js +216 -264
- package/dist/unpkg/dev-deprecated/{index-D4si_DxB.js → index-BBlq5is_.js} +834 -805
- package/dist/unpkg/dev-deprecated/index.js +4 -7
- package/dist/unpkg/dev-deprecated/reactive/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/reactive.js +4 -6
- package/dist/unpkg/{prod-deprecated/request-oqoLC9rz.js → dev-deprecated/request-CA9K0gXq.js} +10 -16
- package/dist/unpkg/dev-deprecated/request.js +1 -1
- package/dist/unpkg/dev-deprecated/runtime-DfhJzpZH.js +135 -0
- package/dist/unpkg/dev-deprecated/store/-private.js +2 -2
- package/dist/unpkg/dev-deprecated/store.js +558 -1
- package/dist/unpkg/dev-deprecated/types/-private.js +5 -15
- package/dist/unpkg/dev-deprecated/types/identifier.js +1 -3
- package/dist/unpkg/dev-deprecated/utils/string.js +5 -6
- package/dist/unpkg/{dev/symbols-sql1_mdx.js → prod/-private-3C1OkYtZ.js} +1 -1
- package/dist/unpkg/prod/{configure-C3x8YXzL.js → configure-C0C1LpG6.js} +5 -28
- package/dist/unpkg/prod/configure.js +1 -1
- package/dist/unpkg/prod/graph/-private.js +4 -1144
- package/dist/unpkg/prod/handler-LAyD1Y5l.js +1619 -0
- package/dist/unpkg/prod/hooks-BfiqDg3O.js +26 -0
- package/dist/unpkg/prod/index.js +481 -8
- package/dist/unpkg/prod/promise-state-ipG60SdD.js +6738 -0
- package/dist/unpkg/prod/reactive/-private.js +1 -1
- package/dist/unpkg/prod/reactive.js +5 -7
- package/dist/unpkg/prod/request-CN2LxbYX.js +437 -0
- package/dist/unpkg/prod/request.js +1 -1
- package/dist/unpkg/prod/store/-private.js +127 -2
- package/dist/unpkg/prod/store.js +437 -1
- package/dist/unpkg/prod/types/-private.js +4 -34
- package/dist/unpkg/prod/types/identifier.js +2 -4
- package/dist/unpkg/prod/utils/string.js +0 -20
- package/dist/unpkg/{prod/symbols-sql1_mdx.js → prod-deprecated/-private-3C1OkYtZ.js} +1 -1
- package/dist/unpkg/{dev/configure-C3x8YXzL.js → prod-deprecated/configure-BQ8CpIcW.js} +4 -27
- package/dist/unpkg/prod-deprecated/configure.js +1 -1
- package/dist/unpkg/prod-deprecated/graph/-private.js +12 -979
- package/dist/unpkg/prod-deprecated/handler-D639oFvl.js +334 -0
- package/dist/unpkg/prod-deprecated/hooks-DGvi9teJ.js +26 -0
- package/dist/unpkg/prod-deprecated/index.js +481 -8
- package/dist/unpkg/prod-deprecated/{index-D4si_DxB.js → promise-state-CYvoIPna.js} +278 -3566
- package/dist/unpkg/prod-deprecated/reactive/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/reactive.js +4 -7
- package/dist/unpkg/prod-deprecated/request-CN2LxbYX.js +437 -0
- package/dist/unpkg/prod-deprecated/request.js +1 -1
- package/dist/unpkg/prod-deprecated/store/-private.js +89 -2
- package/dist/unpkg/prod-deprecated/store.js +437 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +4 -34
- package/dist/unpkg/prod-deprecated/types/identifier.js +2 -4
- package/dist/unpkg/prod-deprecated/utils/string.js +0 -20
- package/package.json +11 -19
- package/dist/unpkg/dev/declarations/build-config/babel-macros.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/canary-features.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/debugging.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/deprecations.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/env.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config/macros.d.ts +0 -1
- package/dist/unpkg/dev/declarations/build-config.d.ts +0 -18
- package/dist/unpkg/dev/declarations/configure.d.ts +0 -7
- package/dist/unpkg/dev/declarations/graph/-private/-diff.d.ts +0 -19
- package/dist/unpkg/dev/declarations/graph/-private/-edge-definition.d.ts +0 -149
- package/dist/unpkg/dev/declarations/graph/-private/-state.d.ts +0 -9
- package/dist/unpkg/dev/declarations/graph/-private/-utils.d.ts +0 -25
- package/dist/unpkg/dev/declarations/graph/-private/coerce-id.d.ts +0 -4
- package/dist/unpkg/dev/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -6
- package/dist/unpkg/dev/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/dist/unpkg/dev/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/dist/unpkg/dev/declarations/graph/-private/edges/resource.d.ts +0 -23
- package/dist/unpkg/dev/declarations/graph/-private/graph.d.ts +0 -56
- package/dist/unpkg/dev/declarations/graph/-private/normalize-link.d.ts +0 -2
- package/dist/unpkg/dev/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/dist/unpkg/dev/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/dist/unpkg/dev/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/dist/unpkg/dev/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/dist/unpkg/dev/declarations/graph/-private/operations/replace-related-records.d.ts +0 -7
- package/dist/unpkg/dev/declarations/graph/-private/operations/update-relationship.d.ts +0 -9
- package/dist/unpkg/dev/declarations/graph/-private.d.ts +0 -13
- package/dist/unpkg/dev/declarations/index.d.ts +0 -100
- package/dist/unpkg/dev/declarations/reactive/-private/default-mode.d.ts +0 -73
- package/dist/unpkg/dev/declarations/reactive/-private/document.d.ts +0 -142
- package/dist/unpkg/dev/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/dist/unpkg/dev/declarations/reactive/-private/fields/get-field-key.d.ts +0 -8
- package/dist/unpkg/dev/declarations/reactive/-private/fields/managed-array.d.ts +0 -18
- package/dist/unpkg/dev/declarations/reactive/-private/fields/managed-object.d.ts +0 -17
- package/dist/unpkg/dev/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/dist/unpkg/dev/declarations/reactive/-private/hooks.d.ts +0 -5
- package/dist/unpkg/dev/declarations/reactive/-private/kind/alias-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/array-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/attribute-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/belongs-to-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/collection-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/derived-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/generic-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/has-many-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/hash-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/identity-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/local-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/object-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/resource-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/schema-array-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/kind/schema-object-field.d.ts +0 -4
- package/dist/unpkg/dev/declarations/reactive/-private/record.d.ts +0 -83
- package/dist/unpkg/dev/declarations/reactive/-private/schema.d.ts +0 -326
- package/dist/unpkg/dev/declarations/reactive/-private/symbols.d.ts +0 -5
- package/dist/unpkg/dev/declarations/reactive/-private.d.ts +0 -2
- package/dist/unpkg/dev/declarations/reactive.d.ts +0 -287
- package/dist/unpkg/dev/declarations/request/-private/context.d.ts +0 -39
- package/dist/unpkg/dev/declarations/request/-private/debug.d.ts +0 -4
- package/dist/unpkg/dev/declarations/request/-private/fetch.d.ts +0 -33
- package/dist/unpkg/dev/declarations/request/-private/future.d.ts +0 -7
- package/dist/unpkg/dev/declarations/request/-private/manager.d.ts +0 -158
- package/dist/unpkg/dev/declarations/request/-private/promise-cache.d.ts +0 -28
- package/dist/unpkg/dev/declarations/request/-private/types.d.ts +0 -234
- package/dist/unpkg/dev/declarations/request/-private/utils.d.ts +0 -57
- package/dist/unpkg/dev/declarations/request.d.ts +0 -52
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/handler.d.ts +0 -56
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/dist/unpkg/dev/declarations/store/-private/cache-handler/utils.d.ts +0 -31
- package/dist/unpkg/dev/declarations/store/-private/caches/instance-cache.d.ts +0 -58
- package/dist/unpkg/dev/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/dist/unpkg/dev/declarations/store/-private/debug/utils.d.ts +0 -7
- package/dist/unpkg/dev/declarations/store/-private/default-cache-policy.d.ts +0 -387
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -34
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-key-manager.d.ts +0 -304
- package/dist/unpkg/dev/declarations/store/-private/managers/cache-manager.d.ts +0 -380
- package/dist/unpkg/dev/declarations/store/-private/managers/notification-manager.d.ts +0 -83
- package/dist/unpkg/dev/declarations/store/-private/managers/record-array-manager.d.ts +0 -100
- package/dist/unpkg/dev/declarations/store/-private/network/request-cache.d.ts +0 -103
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +0 -24
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -264
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -138
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -154
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -56
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -372
- package/dist/unpkg/dev/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -177
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/-utils.d.ts +0 -80
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-live-array.d.ts +0 -81
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-many-array.d.ts +0 -133
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/legacy-query.d.ts +0 -81
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -3
- package/dist/unpkg/dev/declarations/store/-private/record-arrays/resource-array.d.ts +0 -67
- package/dist/unpkg/dev/declarations/store/-private/store-service.d.ts +0 -874
- package/dist/unpkg/dev/declarations/store/-private/utils/coerce-id.d.ts +0 -4
- package/dist/unpkg/dev/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/dist/unpkg/dev/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/dist/unpkg/dev/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/dist/unpkg/dev/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/dist/unpkg/dev/declarations/store/-private.d.ts +0 -29
- package/dist/unpkg/dev/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -90
- package/dist/unpkg/dev/declarations/store/-types/q/identifier.d.ts +0 -23
- package/dist/unpkg/dev/declarations/store/-types/q/record-instance.d.ts +0 -22
- package/dist/unpkg/dev/declarations/store/-types/q/store.d.ts +0 -31
- package/dist/unpkg/dev/declarations/store/deprecated/-private.d.ts +0 -223
- package/dist/unpkg/dev/declarations/store/deprecated/store.d.ts +0 -784
- package/dist/unpkg/dev/declarations/store.d.ts +0 -2
- package/dist/unpkg/dev/declarations/types/-private.d.ts +0 -22
- package/dist/unpkg/dev/declarations/types/cache/aliases.d.ts +0 -1
- package/dist/unpkg/dev/declarations/types/cache/change.d.ts +0 -6
- package/dist/unpkg/dev/declarations/types/cache/mutations.d.ts +0 -38
- package/dist/unpkg/dev/declarations/types/cache/operations.d.ts +0 -168
- package/dist/unpkg/dev/declarations/types/cache/relationship.d.ts +0 -13
- package/dist/unpkg/dev/declarations/types/cache.d.ts +0 -429
- package/dist/unpkg/dev/declarations/types/graph.d.ts +0 -47
- package/dist/unpkg/dev/declarations/types/identifier.d.ts +0 -86
- package/dist/unpkg/dev/declarations/types/json/raw.d.ts +0 -6
- package/dist/unpkg/dev/declarations/types/params.d.ts +0 -8
- package/dist/unpkg/dev/declarations/types/record.d.ts +0 -269
- package/dist/unpkg/dev/declarations/types/request.d.ts +0 -367
- package/dist/unpkg/dev/declarations/types/runtime.d.ts +0 -14
- package/dist/unpkg/dev/declarations/types/schema/concepts.d.ts +0 -23
- package/dist/unpkg/dev/declarations/types/schema/fields.d.ts +0 -2200
- package/dist/unpkg/dev/declarations/types/schema/fields.type-test.d.ts +0 -1
- package/dist/unpkg/dev/declarations/types/schema/schema-service.d.ts +0 -380
- package/dist/unpkg/dev/declarations/types/spec/document.d.ts +0 -67
- package/dist/unpkg/dev/declarations/types/spec/error.d.ts +0 -18
- package/dist/unpkg/dev/declarations/types/spec/json-api-raw.d.ts +0 -139
- package/dist/unpkg/dev/declarations/types/symbols.d.ts +0 -78
- package/dist/unpkg/dev/declarations/types/utils.d.ts +0 -5
- package/dist/unpkg/dev/declarations/types.d.ts +0 -11
- package/dist/unpkg/dev/declarations/utils/string.d.ts +0 -47
- package/dist/unpkg/dev/default-cache-policy-D7_u4YRH.js +0 -572
- package/dist/unpkg/dev/request-oqoLC9rz.js +0 -725
- package/dist/unpkg/dev-deprecated/declarations/build-config/babel-macros.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/canary-features.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/debugging.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/deprecations.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/env.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config/macros.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/build-config.d.ts +0 -18
- package/dist/unpkg/dev-deprecated/declarations/configure.d.ts +0 -7
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-diff.d.ts +0 -19
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-edge-definition.d.ts +0 -149
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-state.d.ts +0 -9
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/-utils.d.ts +0 -25
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/coerce-id.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -6
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/edges/resource.d.ts +0 -23
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/graph.d.ts +0 -56
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/normalize-link.d.ts +0 -2
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/replace-related-records.d.ts +0 -7
- package/dist/unpkg/dev-deprecated/declarations/graph/-private/operations/update-relationship.d.ts +0 -9
- package/dist/unpkg/dev-deprecated/declarations/graph/-private.d.ts +0 -13
- package/dist/unpkg/dev-deprecated/declarations/index.d.ts +0 -100
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/default-mode.d.ts +0 -73
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/document.d.ts +0 -142
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/get-field-key.d.ts +0 -8
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/managed-array.d.ts +0 -18
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/managed-object.d.ts +0 -17
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/hooks.d.ts +0 -5
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/alias-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/array-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/attribute-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/belongs-to-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/collection-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/derived-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/generic-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/has-many-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/hash-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/identity-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/local-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/object-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/resource-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/schema-array-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/kind/schema-object-field.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/record.d.ts +0 -83
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/schema.d.ts +0 -326
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private/symbols.d.ts +0 -5
- package/dist/unpkg/dev-deprecated/declarations/reactive/-private.d.ts +0 -2
- package/dist/unpkg/dev-deprecated/declarations/reactive.d.ts +0 -287
- package/dist/unpkg/dev-deprecated/declarations/request/-private/context.d.ts +0 -39
- package/dist/unpkg/dev-deprecated/declarations/request/-private/debug.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/request/-private/fetch.d.ts +0 -33
- package/dist/unpkg/dev-deprecated/declarations/request/-private/future.d.ts +0 -7
- package/dist/unpkg/dev-deprecated/declarations/request/-private/manager.d.ts +0 -158
- package/dist/unpkg/dev-deprecated/declarations/request/-private/promise-cache.d.ts +0 -28
- package/dist/unpkg/dev-deprecated/declarations/request/-private/types.d.ts +0 -234
- package/dist/unpkg/dev-deprecated/declarations/request/-private/utils.d.ts +0 -57
- package/dist/unpkg/dev-deprecated/declarations/request.d.ts +0 -52
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/handler.d.ts +0 -56
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/dist/unpkg/dev-deprecated/declarations/store/-private/cache-handler/utils.d.ts +0 -31
- package/dist/unpkg/dev-deprecated/declarations/store/-private/caches/instance-cache.d.ts +0 -58
- package/dist/unpkg/dev-deprecated/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/dist/unpkg/dev-deprecated/declarations/store/-private/debug/utils.d.ts +0 -7
- package/dist/unpkg/dev-deprecated/declarations/store/-private/default-cache-policy.d.ts +0 -387
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -34
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-key-manager.d.ts +0 -304
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/cache-manager.d.ts +0 -380
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/notification-manager.d.ts +0 -83
- package/dist/unpkg/dev-deprecated/declarations/store/-private/managers/record-array-manager.d.ts +0 -100
- package/dist/unpkg/dev-deprecated/declarations/store/-private/network/request-cache.d.ts +0 -103
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +0 -24
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -264
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -138
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -154
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -56
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -372
- package/dist/unpkg/dev-deprecated/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -177
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/-utils.d.ts +0 -80
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-live-array.d.ts +0 -81
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-many-array.d.ts +0 -133
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/legacy-query.d.ts +0 -81
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -3
- package/dist/unpkg/dev-deprecated/declarations/store/-private/record-arrays/resource-array.d.ts +0 -67
- package/dist/unpkg/dev-deprecated/declarations/store/-private/store-service.d.ts +0 -874
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/coerce-id.d.ts +0 -4
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/store/-private.d.ts +0 -29
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -90
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/identifier.d.ts +0 -23
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/record-instance.d.ts +0 -22
- package/dist/unpkg/dev-deprecated/declarations/store/-types/q/store.d.ts +0 -31
- package/dist/unpkg/dev-deprecated/declarations/store/deprecated/-private.d.ts +0 -223
- package/dist/unpkg/dev-deprecated/declarations/store/deprecated/store.d.ts +0 -784
- package/dist/unpkg/dev-deprecated/declarations/store.d.ts +0 -2
- package/dist/unpkg/dev-deprecated/declarations/types/-private.d.ts +0 -22
- package/dist/unpkg/dev-deprecated/declarations/types/cache/aliases.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/types/cache/change.d.ts +0 -6
- package/dist/unpkg/dev-deprecated/declarations/types/cache/mutations.d.ts +0 -38
- package/dist/unpkg/dev-deprecated/declarations/types/cache/operations.d.ts +0 -168
- package/dist/unpkg/dev-deprecated/declarations/types/cache/relationship.d.ts +0 -13
- package/dist/unpkg/dev-deprecated/declarations/types/cache.d.ts +0 -429
- package/dist/unpkg/dev-deprecated/declarations/types/graph.d.ts +0 -47
- package/dist/unpkg/dev-deprecated/declarations/types/identifier.d.ts +0 -86
- package/dist/unpkg/dev-deprecated/declarations/types/json/raw.d.ts +0 -6
- package/dist/unpkg/dev-deprecated/declarations/types/params.d.ts +0 -8
- package/dist/unpkg/dev-deprecated/declarations/types/record.d.ts +0 -269
- package/dist/unpkg/dev-deprecated/declarations/types/request.d.ts +0 -367
- package/dist/unpkg/dev-deprecated/declarations/types/runtime.d.ts +0 -14
- package/dist/unpkg/dev-deprecated/declarations/types/schema/concepts.d.ts +0 -23
- package/dist/unpkg/dev-deprecated/declarations/types/schema/fields.d.ts +0 -2200
- package/dist/unpkg/dev-deprecated/declarations/types/schema/fields.type-test.d.ts +0 -1
- package/dist/unpkg/dev-deprecated/declarations/types/schema/schema-service.d.ts +0 -380
- package/dist/unpkg/dev-deprecated/declarations/types/spec/document.d.ts +0 -67
- package/dist/unpkg/dev-deprecated/declarations/types/spec/error.d.ts +0 -18
- package/dist/unpkg/dev-deprecated/declarations/types/spec/json-api-raw.d.ts +0 -139
- package/dist/unpkg/dev-deprecated/declarations/types/symbols.d.ts +0 -78
- package/dist/unpkg/dev-deprecated/declarations/types/utils.d.ts +0 -5
- package/dist/unpkg/dev-deprecated/declarations/types.d.ts +0 -11
- package/dist/unpkg/dev-deprecated/declarations/utils/string.d.ts +0 -47
- package/dist/unpkg/dev-deprecated/default-cache-policy-D7_u4YRH.js +0 -572
- package/dist/unpkg/prod/declarations/build-config/babel-macros.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/canary-features.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/debugging.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/deprecations.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/env.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config/macros.d.ts +0 -1
- package/dist/unpkg/prod/declarations/build-config.d.ts +0 -18
- package/dist/unpkg/prod/declarations/configure.d.ts +0 -7
- package/dist/unpkg/prod/declarations/graph/-private/-diff.d.ts +0 -19
- package/dist/unpkg/prod/declarations/graph/-private/-edge-definition.d.ts +0 -149
- package/dist/unpkg/prod/declarations/graph/-private/-state.d.ts +0 -9
- package/dist/unpkg/prod/declarations/graph/-private/-utils.d.ts +0 -25
- package/dist/unpkg/prod/declarations/graph/-private/coerce-id.d.ts +0 -4
- package/dist/unpkg/prod/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -6
- package/dist/unpkg/prod/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/dist/unpkg/prod/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/dist/unpkg/prod/declarations/graph/-private/edges/resource.d.ts +0 -23
- package/dist/unpkg/prod/declarations/graph/-private/graph.d.ts +0 -56
- package/dist/unpkg/prod/declarations/graph/-private/normalize-link.d.ts +0 -2
- package/dist/unpkg/prod/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/dist/unpkg/prod/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/dist/unpkg/prod/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/dist/unpkg/prod/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/dist/unpkg/prod/declarations/graph/-private/operations/replace-related-records.d.ts +0 -7
- package/dist/unpkg/prod/declarations/graph/-private/operations/update-relationship.d.ts +0 -9
- package/dist/unpkg/prod/declarations/graph/-private.d.ts +0 -13
- package/dist/unpkg/prod/declarations/index.d.ts +0 -100
- package/dist/unpkg/prod/declarations/reactive/-private/default-mode.d.ts +0 -73
- package/dist/unpkg/prod/declarations/reactive/-private/document.d.ts +0 -142
- package/dist/unpkg/prod/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/dist/unpkg/prod/declarations/reactive/-private/fields/get-field-key.d.ts +0 -8
- package/dist/unpkg/prod/declarations/reactive/-private/fields/managed-array.d.ts +0 -18
- package/dist/unpkg/prod/declarations/reactive/-private/fields/managed-object.d.ts +0 -17
- package/dist/unpkg/prod/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/dist/unpkg/prod/declarations/reactive/-private/hooks.d.ts +0 -5
- package/dist/unpkg/prod/declarations/reactive/-private/kind/alias-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/array-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/attribute-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/belongs-to-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/collection-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/derived-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/generic-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/has-many-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/hash-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/identity-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/local-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/object-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/resource-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/schema-array-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/kind/schema-object-field.d.ts +0 -4
- package/dist/unpkg/prod/declarations/reactive/-private/record.d.ts +0 -83
- package/dist/unpkg/prod/declarations/reactive/-private/schema.d.ts +0 -326
- package/dist/unpkg/prod/declarations/reactive/-private/symbols.d.ts +0 -5
- package/dist/unpkg/prod/declarations/reactive/-private.d.ts +0 -2
- package/dist/unpkg/prod/declarations/reactive.d.ts +0 -287
- package/dist/unpkg/prod/declarations/request/-private/context.d.ts +0 -39
- package/dist/unpkg/prod/declarations/request/-private/debug.d.ts +0 -4
- package/dist/unpkg/prod/declarations/request/-private/fetch.d.ts +0 -33
- package/dist/unpkg/prod/declarations/request/-private/future.d.ts +0 -7
- package/dist/unpkg/prod/declarations/request/-private/manager.d.ts +0 -158
- package/dist/unpkg/prod/declarations/request/-private/promise-cache.d.ts +0 -28
- package/dist/unpkg/prod/declarations/request/-private/types.d.ts +0 -234
- package/dist/unpkg/prod/declarations/request/-private/utils.d.ts +0 -57
- package/dist/unpkg/prod/declarations/request.d.ts +0 -52
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/handler.d.ts +0 -56
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/dist/unpkg/prod/declarations/store/-private/cache-handler/utils.d.ts +0 -31
- package/dist/unpkg/prod/declarations/store/-private/caches/instance-cache.d.ts +0 -58
- package/dist/unpkg/prod/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/dist/unpkg/prod/declarations/store/-private/debug/utils.d.ts +0 -7
- package/dist/unpkg/prod/declarations/store/-private/default-cache-policy.d.ts +0 -387
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -34
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-key-manager.d.ts +0 -304
- package/dist/unpkg/prod/declarations/store/-private/managers/cache-manager.d.ts +0 -380
- package/dist/unpkg/prod/declarations/store/-private/managers/notification-manager.d.ts +0 -83
- package/dist/unpkg/prod/declarations/store/-private/managers/record-array-manager.d.ts +0 -100
- package/dist/unpkg/prod/declarations/store/-private/network/request-cache.d.ts +0 -103
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +0 -24
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -264
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -138
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -154
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -56
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -372
- package/dist/unpkg/prod/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -177
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/-utils.d.ts +0 -80
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-live-array.d.ts +0 -81
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-many-array.d.ts +0 -133
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/legacy-query.d.ts +0 -81
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -3
- package/dist/unpkg/prod/declarations/store/-private/record-arrays/resource-array.d.ts +0 -67
- package/dist/unpkg/prod/declarations/store/-private/store-service.d.ts +0 -874
- package/dist/unpkg/prod/declarations/store/-private/utils/coerce-id.d.ts +0 -4
- package/dist/unpkg/prod/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/dist/unpkg/prod/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/dist/unpkg/prod/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/dist/unpkg/prod/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/dist/unpkg/prod/declarations/store/-private.d.ts +0 -29
- package/dist/unpkg/prod/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -90
- package/dist/unpkg/prod/declarations/store/-types/q/identifier.d.ts +0 -23
- package/dist/unpkg/prod/declarations/store/-types/q/record-instance.d.ts +0 -22
- package/dist/unpkg/prod/declarations/store/-types/q/store.d.ts +0 -31
- package/dist/unpkg/prod/declarations/store/deprecated/-private.d.ts +0 -223
- package/dist/unpkg/prod/declarations/store/deprecated/store.d.ts +0 -784
- package/dist/unpkg/prod/declarations/store.d.ts +0 -2
- package/dist/unpkg/prod/declarations/types/-private.d.ts +0 -22
- package/dist/unpkg/prod/declarations/types/cache/aliases.d.ts +0 -1
- package/dist/unpkg/prod/declarations/types/cache/change.d.ts +0 -6
- package/dist/unpkg/prod/declarations/types/cache/mutations.d.ts +0 -38
- package/dist/unpkg/prod/declarations/types/cache/operations.d.ts +0 -168
- package/dist/unpkg/prod/declarations/types/cache/relationship.d.ts +0 -13
- package/dist/unpkg/prod/declarations/types/cache.d.ts +0 -429
- package/dist/unpkg/prod/declarations/types/graph.d.ts +0 -47
- package/dist/unpkg/prod/declarations/types/identifier.d.ts +0 -86
- package/dist/unpkg/prod/declarations/types/json/raw.d.ts +0 -6
- package/dist/unpkg/prod/declarations/types/params.d.ts +0 -8
- package/dist/unpkg/prod/declarations/types/record.d.ts +0 -269
- package/dist/unpkg/prod/declarations/types/request.d.ts +0 -367
- package/dist/unpkg/prod/declarations/types/runtime.d.ts +0 -14
- package/dist/unpkg/prod/declarations/types/schema/concepts.d.ts +0 -23
- package/dist/unpkg/prod/declarations/types/schema/fields.d.ts +0 -2200
- package/dist/unpkg/prod/declarations/types/schema/fields.type-test.d.ts +0 -1
- package/dist/unpkg/prod/declarations/types/schema/schema-service.d.ts +0 -380
- package/dist/unpkg/prod/declarations/types/spec/document.d.ts +0 -67
- package/dist/unpkg/prod/declarations/types/spec/error.d.ts +0 -18
- package/dist/unpkg/prod/declarations/types/spec/json-api-raw.d.ts +0 -139
- package/dist/unpkg/prod/declarations/types/symbols.d.ts +0 -78
- package/dist/unpkg/prod/declarations/types/utils.d.ts +0 -5
- package/dist/unpkg/prod/declarations/types.d.ts +0 -11
- package/dist/unpkg/prod/declarations/utils/string.d.ts +0 -47
- package/dist/unpkg/prod/default-cache-policy-D7_u4YRH.js +0 -572
- package/dist/unpkg/prod/index-D4si_DxB.js +0 -11746
- package/dist/unpkg/prod/request-oqoLC9rz.js +0 -725
- package/dist/unpkg/prod-deprecated/declarations/build-config/babel-macros.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/canary-features.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/debugging.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/deprecations.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/env.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config/macros.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/build-config.d.ts +0 -18
- package/dist/unpkg/prod-deprecated/declarations/configure.d.ts +0 -7
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-diff.d.ts +0 -19
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-edge-definition.d.ts +0 -149
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-state.d.ts +0 -9
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/-utils.d.ts +0 -25
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/coerce-id.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -6
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/edges/resource.d.ts +0 -23
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/graph.d.ts +0 -56
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/normalize-link.d.ts +0 -2
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/replace-related-records.d.ts +0 -7
- package/dist/unpkg/prod-deprecated/declarations/graph/-private/operations/update-relationship.d.ts +0 -9
- package/dist/unpkg/prod-deprecated/declarations/graph/-private.d.ts +0 -13
- package/dist/unpkg/prod-deprecated/declarations/index.d.ts +0 -100
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/default-mode.d.ts +0 -73
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/document.d.ts +0 -142
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/get-field-key.d.ts +0 -8
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/managed-array.d.ts +0 -18
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/managed-object.d.ts +0 -17
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/hooks.d.ts +0 -5
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/alias-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/array-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/attribute-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/belongs-to-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/collection-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/derived-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/generic-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/has-many-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/hash-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/identity-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/local-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/object-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/resource-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/schema-array-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/kind/schema-object-field.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/record.d.ts +0 -83
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/schema.d.ts +0 -326
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private/symbols.d.ts +0 -5
- package/dist/unpkg/prod-deprecated/declarations/reactive/-private.d.ts +0 -2
- package/dist/unpkg/prod-deprecated/declarations/reactive.d.ts +0 -287
- package/dist/unpkg/prod-deprecated/declarations/request/-private/context.d.ts +0 -39
- package/dist/unpkg/prod-deprecated/declarations/request/-private/debug.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/request/-private/fetch.d.ts +0 -33
- package/dist/unpkg/prod-deprecated/declarations/request/-private/future.d.ts +0 -7
- package/dist/unpkg/prod-deprecated/declarations/request/-private/manager.d.ts +0 -158
- package/dist/unpkg/prod-deprecated/declarations/request/-private/promise-cache.d.ts +0 -28
- package/dist/unpkg/prod-deprecated/declarations/request/-private/types.d.ts +0 -234
- package/dist/unpkg/prod-deprecated/declarations/request/-private/utils.d.ts +0 -57
- package/dist/unpkg/prod-deprecated/declarations/request.d.ts +0 -52
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/handler.d.ts +0 -56
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/dist/unpkg/prod-deprecated/declarations/store/-private/cache-handler/utils.d.ts +0 -31
- package/dist/unpkg/prod-deprecated/declarations/store/-private/caches/instance-cache.d.ts +0 -58
- package/dist/unpkg/prod-deprecated/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/dist/unpkg/prod-deprecated/declarations/store/-private/debug/utils.d.ts +0 -7
- package/dist/unpkg/prod-deprecated/declarations/store/-private/default-cache-policy.d.ts +0 -387
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -34
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-key-manager.d.ts +0 -304
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/cache-manager.d.ts +0 -380
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/notification-manager.d.ts +0 -83
- package/dist/unpkg/prod-deprecated/declarations/store/-private/managers/record-array-manager.d.ts +0 -100
- package/dist/unpkg/prod-deprecated/declarations/store/-private/network/request-cache.d.ts +0 -103
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/expensive-subscription.d.ts +0 -24
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -264
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -138
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -154
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -56
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -372
- package/dist/unpkg/prod-deprecated/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -177
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/-utils.d.ts +0 -80
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-live-array.d.ts +0 -81
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-many-array.d.ts +0 -133
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/legacy-query.d.ts +0 -81
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -3
- package/dist/unpkg/prod-deprecated/declarations/store/-private/record-arrays/resource-array.d.ts +0 -67
- package/dist/unpkg/prod-deprecated/declarations/store/-private/store-service.d.ts +0 -874
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/coerce-id.d.ts +0 -4
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/store/-private.d.ts +0 -29
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -90
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/identifier.d.ts +0 -23
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/record-instance.d.ts +0 -22
- package/dist/unpkg/prod-deprecated/declarations/store/-types/q/store.d.ts +0 -31
- package/dist/unpkg/prod-deprecated/declarations/store/deprecated/-private.d.ts +0 -223
- package/dist/unpkg/prod-deprecated/declarations/store/deprecated/store.d.ts +0 -784
- package/dist/unpkg/prod-deprecated/declarations/store.d.ts +0 -2
- package/dist/unpkg/prod-deprecated/declarations/types/-private.d.ts +0 -22
- package/dist/unpkg/prod-deprecated/declarations/types/cache/aliases.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/types/cache/change.d.ts +0 -6
- package/dist/unpkg/prod-deprecated/declarations/types/cache/mutations.d.ts +0 -38
- package/dist/unpkg/prod-deprecated/declarations/types/cache/operations.d.ts +0 -168
- package/dist/unpkg/prod-deprecated/declarations/types/cache/relationship.d.ts +0 -13
- package/dist/unpkg/prod-deprecated/declarations/types/cache.d.ts +0 -429
- package/dist/unpkg/prod-deprecated/declarations/types/graph.d.ts +0 -47
- package/dist/unpkg/prod-deprecated/declarations/types/identifier.d.ts +0 -86
- package/dist/unpkg/prod-deprecated/declarations/types/json/raw.d.ts +0 -6
- package/dist/unpkg/prod-deprecated/declarations/types/params.d.ts +0 -8
- package/dist/unpkg/prod-deprecated/declarations/types/record.d.ts +0 -269
- package/dist/unpkg/prod-deprecated/declarations/types/request.d.ts +0 -367
- package/dist/unpkg/prod-deprecated/declarations/types/runtime.d.ts +0 -14
- package/dist/unpkg/prod-deprecated/declarations/types/schema/concepts.d.ts +0 -23
- package/dist/unpkg/prod-deprecated/declarations/types/schema/fields.d.ts +0 -2200
- package/dist/unpkg/prod-deprecated/declarations/types/schema/fields.type-test.d.ts +0 -1
- package/dist/unpkg/prod-deprecated/declarations/types/schema/schema-service.d.ts +0 -380
- package/dist/unpkg/prod-deprecated/declarations/types/spec/document.d.ts +0 -67
- package/dist/unpkg/prod-deprecated/declarations/types/spec/error.d.ts +0 -18
- package/dist/unpkg/prod-deprecated/declarations/types/spec/json-api-raw.d.ts +0 -139
- package/dist/unpkg/prod-deprecated/declarations/types/symbols.d.ts +0 -78
- package/dist/unpkg/prod-deprecated/declarations/types/utils.d.ts +0 -5
- package/dist/unpkg/prod-deprecated/declarations/types.d.ts +0 -11
- package/dist/unpkg/prod-deprecated/declarations/utils/string.d.ts +0 -47
- package/dist/unpkg/prod-deprecated/default-cache-policy-D7_u4YRH.js +0 -572
|
@@ -1,19 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,149 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,25 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 };
|
|
@@ -1,39 +0,0 @@
|
|
|
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;
|
|
@@ -1,43 +0,0 @@
|
|
|
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;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ResourceRelationship } 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
|
-
/**
|
|
7
|
-
* Stores the data for one side of a "single" resource relationship.
|
|
8
|
-
*
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export interface ResourceEdge {
|
|
12
|
-
definition: UpgradedMeta;
|
|
13
|
-
identifier: ResourceKey;
|
|
14
|
-
state: RelationshipState;
|
|
15
|
-
localState: ResourceKey | null;
|
|
16
|
-
remoteState: ResourceKey | null;
|
|
17
|
-
meta: Meta | null;
|
|
18
|
-
links: Links | PaginationLinks | null;
|
|
19
|
-
transactionRef: number;
|
|
20
|
-
accessed: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare function createResourceEdge(definition: UpgradedMeta, identifier: ResourceKey): ResourceEdge;
|
|
23
|
-
export declare function legacyGetResourceRelationshipData(source: ResourceEdge, getRemoteState: boolean): ResourceRelationship;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { Store } from "../../store/-private.js";
|
|
2
|
-
import type { CacheCapabilitiesManager, ResourceKey } from "../../types.js";
|
|
3
|
-
import type { RelationshipDiff } from "../../types/cache.js";
|
|
4
|
-
import type { MergeOperation } from "../../types/cache/operations.js";
|
|
5
|
-
import type { CollectionRelationship, ResourceRelationship } from "../../types/cache/relationship.js";
|
|
6
|
-
import type { DeleteRecordOperation, LocalRelationshipOperation, RemoteRelationshipOperation } from "../../types/graph.js";
|
|
7
|
-
import type { EdgeCache, 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
|
-
export type GraphEdge = ImplicitEdge | CollectionEdge | ResourceEdge;
|
|
12
|
-
export declare const Graphs: Map<CacheCapabilitiesManager, Graph>;
|
|
13
|
-
type PendingOps = {
|
|
14
|
-
belongsTo?: Map<string, Map<string, RemoteRelationshipOperation[]>>;
|
|
15
|
-
hasMany?: Map<string, Map<string, RemoteRelationshipOperation[]>>;
|
|
16
|
-
deletions: DeleteRecordOperation[];
|
|
17
|
-
};
|
|
18
|
-
export declare class Graph {
|
|
19
|
-
_definitionCache: EdgeCache;
|
|
20
|
-
_metaCache: Record<string, Record<string, UpgradedMeta>>;
|
|
21
|
-
_potentialPolymorphicTypes: Record<string, Record<string, boolean>>;
|
|
22
|
-
identifiers: Map<ResourceKey, Record<string, GraphEdge>>;
|
|
23
|
-
store: CacheCapabilitiesManager;
|
|
24
|
-
_realStore: Store;
|
|
25
|
-
isDestroyed: boolean;
|
|
26
|
-
_willSyncRemote: boolean;
|
|
27
|
-
_willSyncLocal: boolean;
|
|
28
|
-
silenceNotifications: boolean;
|
|
29
|
-
_pushedUpdates: PendingOps;
|
|
30
|
-
_updatedRelationships: Set<CollectionEdge>;
|
|
31
|
-
_transaction: number | null;
|
|
32
|
-
_removing: ResourceKey | null;
|
|
33
|
-
constructor(store: CacheCapabilitiesManager);
|
|
34
|
-
has(resourceKey: ResourceKey, propertyName: string): boolean;
|
|
35
|
-
getDefinition(resourceKey: ResourceKey, propertyName: string): UpgradedMeta;
|
|
36
|
-
get(resourceKey: ResourceKey, propertyName: string): GraphEdge;
|
|
37
|
-
getData(resourceKey: ResourceKey, propertyName: string): ResourceRelationship | CollectionRelationship;
|
|
38
|
-
getRemoteData(resourceKey: ResourceKey, propertyName: string): ResourceRelationship | CollectionRelationship;
|
|
39
|
-
registerPolymorphicType(type1: string, type2: string): void;
|
|
40
|
-
isReleasable(resourceKey: ResourceKey): boolean;
|
|
41
|
-
unload(resourceKey: ResourceKey, silenceNotifications?: boolean): void;
|
|
42
|
-
_isDirty(resourceKey: ResourceKey, field: string): boolean;
|
|
43
|
-
getChanged(resourceKey: ResourceKey): Map<string, RelationshipDiff>;
|
|
44
|
-
hasChanged(resourceKey: ResourceKey): boolean;
|
|
45
|
-
rollback(resourceKey: ResourceKey): string[];
|
|
46
|
-
remove(resourceKey: ResourceKey): void;
|
|
47
|
-
push(op: RemoteRelationshipOperation): void;
|
|
48
|
-
update(op: RemoteRelationshipOperation | MergeOperation, isRemote: true): void;
|
|
49
|
-
update(op: LocalRelationshipOperation, isRemote?: false): void;
|
|
50
|
-
_scheduleLocalSync(relationship: CollectionEdge): void;
|
|
51
|
-
_flushRemoteQueue(): void;
|
|
52
|
-
_addToTransaction(relationship: CollectionEdge | ResourceEdge): void;
|
|
53
|
-
_flushLocalQueue(): void;
|
|
54
|
-
destroy(): void;
|
|
55
|
-
}
|
|
56
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AddToResourceRelationshipMutation } from "../../../types/cache/mutations.js";
|
|
2
|
-
import type { AddToResourceRelationshipOperation } from "../../../types/cache/operations.js";
|
|
3
|
-
import type { Graph } from "../graph.js";
|
|
4
|
-
export default function addToRelatedRecords(graph: Graph, op: AddToResourceRelationshipOperation | AddToResourceRelationshipMutation, isRemote: boolean): void;
|
package/dist/unpkg/dev/declarations/graph/-private/operations/remove-from-related-records.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { RemoveFromResourceRelationshipMutation } from "../../../types/cache/mutations.js";
|
|
2
|
-
import type { RemoveFromResourceRelationshipOperation } from "../../../types/cache/operations.js";
|
|
3
|
-
import type { Graph } from "../graph.js";
|
|
4
|
-
export default function removeFromRelatedRecords(graph: Graph, op: RemoveFromResourceRelationshipOperation | RemoveFromResourceRelationshipMutation, isRemote: boolean): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ResourceKey } from "../../../types.js";
|
|
2
|
-
import type { ReplaceRelatedRecordsOperation } from "../../../types/graph.js";
|
|
3
|
-
import type { Graph } from "../graph.js";
|
|
4
|
-
export default function replaceRelatedRecords(graph: Graph, op: ReplaceRelatedRecordsOperation, isRemote: boolean): void;
|
|
5
|
-
export declare function addToInverse(graph: Graph, resourceKey: ResourceKey, key: string, value: ResourceKey, isRemote: boolean): void;
|
|
6
|
-
export declare function notifyInverseOfPotentialMaterialization(graph: Graph, resourceKey: ResourceKey, key: string, value: ResourceKey, isRemote: boolean): void;
|
|
7
|
-
export declare function removeFromInverse(graph: Graph, resourceKey: ResourceKey, key: string, value: ResourceKey, isRemote: boolean): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Store } from "../../../index.js";
|
|
2
|
-
import type { ResourceKey } from "../../../types.js";
|
|
3
|
-
import type { UpdateResourceRelationshipOperation } from "../../../types/cache/operations.js";
|
|
4
|
-
import type { UpdateRelationshipOperation } from "../../../types/graph.js";
|
|
5
|
-
import type { ExistingResourceIdentifierObject, NewResourceIdentifierObject } from "../../../types/spec/json-api-raw.js";
|
|
6
|
-
import type { Graph } from "../graph.js";
|
|
7
|
-
type CacheKeyManager = Store["cacheKeyManager"];
|
|
8
|
-
export default function updateRelationshipOperation(graph: Graph, op: UpdateRelationshipOperation | UpdateResourceRelationshipOperation): void;
|
|
9
|
-
export declare function upgradeIdentifiers(arr: (ExistingResourceIdentifierObject | NewResourceIdentifierObject | ResourceKey)[], cache: CacheKeyManager): ResourceKey[];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Store } from "../index.js";
|
|
2
|
-
import type { CacheCapabilitiesManager } from "../types.js";
|
|
3
|
-
import { Graph } from "./-private/graph.js";
|
|
4
|
-
export { isBelongsTo } from "./-private/-utils.js";
|
|
5
|
-
export type { CollectionEdge } from "./-private/edges/collection.js";
|
|
6
|
-
export type { ResourceEdge } from "./-private/edges/resource.js";
|
|
7
|
-
export type { ImplicitEdge } from "./-private/edges/implicit.js";
|
|
8
|
-
export type { GraphEdge } from "./-private/graph.js";
|
|
9
|
-
export type { UpgradedMeta } from "./-private/-edge-definition.js";
|
|
10
|
-
export type { Graph };
|
|
11
|
-
export declare function peekGraph(store: CacheCapabilitiesManager | Store): Graph | undefined;
|
|
12
|
-
export type peekGraph = typeof peekGraph;
|
|
13
|
-
export declare function graphFor(store: CacheCapabilitiesManager | Store): Graph;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module
|
|
3
|
-
* @mergeModuleWith <project>
|
|
4
|
-
*/
|
|
5
|
-
import type { CAUTION_MEGA_DANGER_ZONE_Extension } from "./reactive.js";
|
|
6
|
-
import type { ReactiveDocument } from "./reactive/-private/document.js";
|
|
7
|
-
import type { Handler } from "./request.js";
|
|
8
|
-
import { Fetch } from "./request/-private/fetch.js";
|
|
9
|
-
import { RequestManager } from "./request/-private/manager.js";
|
|
10
|
-
import { CacheHandler, type CachePolicy, Store } from "./store/-private.js";
|
|
11
|
-
import { recordIdentifierFor } from "./store/-private.js";
|
|
12
|
-
import type { CacheCapabilitiesManager } from "./types.js";
|
|
13
|
-
import type { Cache } from "./types/cache.js";
|
|
14
|
-
import type { Derivation, HashFn, Transformation } from "./types/schema/concepts.js";
|
|
15
|
-
import type { ObjectSchema, PolarisResourceSchema, Trait } from "./types/schema/fields.js";
|
|
16
|
-
export { recordIdentifierFor, recordIdentifierFor as cacheKeyFor };
|
|
17
|
-
export { Fetch, RequestManager };
|
|
18
|
-
export { Store, CacheHandler, type CachePolicy };
|
|
19
|
-
export { type StoreRequestContext, type StoreRequestInput, storeFor } from "./store/-private.js";
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated use {@link ReactiveDocument} instead
|
|
22
|
-
*/
|
|
23
|
-
export type Document<T> = ReactiveDocument<T>;
|
|
24
|
-
export type { DocumentCacheOperation, CacheOperation, NotificationType } from "./store/-private/managers/notification-manager.js";
|
|
25
|
-
export { setIdentifierGenerationMethod, setIdentifierUpdateMethod, setIdentifierForgetMethod, setIdentifierResetMethod, setKeyInfoForResource } from "./store/-private/managers/cache-key-manager.js";
|
|
26
|
-
/**
|
|
27
|
-
* Options for setting up a Store instance with `useRecommendedStore`.
|
|
28
|
-
*/
|
|
29
|
-
export interface StoreSetupOptions<T extends Cache = Cache> {
|
|
30
|
-
/**
|
|
31
|
-
* The Cache implementation to use
|
|
32
|
-
*/
|
|
33
|
-
cache: new (capabilities: CacheCapabilitiesManager) => T;
|
|
34
|
-
/**
|
|
35
|
-
* The Cache policy to use.
|
|
36
|
-
*
|
|
37
|
-
* Defaults to {@link DefaultCachePolicy} configured to
|
|
38
|
-
* respect `Expires`, `X-WarpDrive-Expires`, and `Cache-Control` headers
|
|
39
|
-
* with a fallback to 30s soft expiration and 15m hard expiration.
|
|
40
|
-
*/
|
|
41
|
-
policy?: CachePolicy;
|
|
42
|
-
/**
|
|
43
|
-
* The request handlers to use. {@link Fetch} will automatically
|
|
44
|
-
* be added to the end of the handler chain and {@link CacheHandler}
|
|
45
|
-
* will automatically be added as the cache handler.
|
|
46
|
-
*/
|
|
47
|
-
handlers?: Handler[];
|
|
48
|
-
/**
|
|
49
|
-
* Schemas describing the structure of your resource data.
|
|
50
|
-
*
|
|
51
|
-
* See {@link PolarisResourceSchema,} and {@link ObjectSchema} for more information.
|
|
52
|
-
*/
|
|
53
|
-
schemas?: Array<PolarisResourceSchema | ObjectSchema>;
|
|
54
|
-
/**
|
|
55
|
-
* {@link Trait | Traits} to use with {@link PolarisResourceSchema, | Resource Schemas}
|
|
56
|
-
*/
|
|
57
|
-
traits?: Trait[];
|
|
58
|
-
/**
|
|
59
|
-
* {@link Derivation | Derivations} to use for derived fields.
|
|
60
|
-
*/
|
|
61
|
-
derivations?: Derivation[];
|
|
62
|
-
/**
|
|
63
|
-
* {@link Transformation | Transformations} to use for transforming fields.
|
|
64
|
-
*/
|
|
65
|
-
transformations?: Transformation[];
|
|
66
|
-
/**
|
|
67
|
-
* {@link HashFn | Hash Functions} to use for embedded object identity and polymorphic type calculations
|
|
68
|
-
*/
|
|
69
|
-
hashFns?: HashFn[];
|
|
70
|
-
/**
|
|
71
|
-
* {@link CAUTION_MEGA_DANGER_ZONE_Extension | Extensions} to use with resources, objects and arrays
|
|
72
|
-
* to provide custom behaviors and capabilities that are not described by Schema.
|
|
73
|
-
*
|
|
74
|
-
* This feature should only be used during a transition period to support migrating towards
|
|
75
|
-
* schemas from existing Model and ModelFragments implementations.
|
|
76
|
-
*/
|
|
77
|
-
CAUTION_MEGA_DANGER_ZONE_extensions?: CAUTION_MEGA_DANGER_ZONE_Extension[];
|
|
78
|
-
}
|
|
79
|
-
export declare class ConfiguredStore<T extends {
|
|
80
|
-
cache: Cache;
|
|
81
|
-
}> extends Store {
|
|
82
|
-
createCache(capabilities: CacheCapabilitiesManager): T["cache"];
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Creates a configured Store class with recommended defaults
|
|
86
|
-
* for schema handling, reactivity, caching, and request management.
|
|
87
|
-
*
|
|
88
|
-
* ```ts
|
|
89
|
-
* import { useRecommendedStore } from '@warp-drive/core';
|
|
90
|
-
* import { JSONAPICache } from '@warp-drive/json-api';
|
|
91
|
-
*
|
|
92
|
-
* export const Store = useRecommendedStore({
|
|
93
|
-
* cache: JSONAPICache,
|
|
94
|
-
* schemas: [],
|
|
95
|
-
* });
|
|
96
|
-
* ```
|
|
97
|
-
*/
|
|
98
|
-
export declare function useRecommendedStore<T extends Cache>(options: StoreSetupOptions<T>, StoreKlass?: typeof Store): typeof ConfiguredStore<{
|
|
99
|
-
cache: T;
|
|
100
|
-
}>;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { Store } from "../../store/-private.js";
|
|
2
|
-
import type { SignalStore } from "../../store/-private/new-core-tmp/reactivity/internal.js";
|
|
3
|
-
import type { ResourceKey } from "../../types.js";
|
|
4
|
-
import type { FieldSchema, HashField, IdentityField, SchemaArrayField, SchemaObjectField } from "../../types/schema/fields.js";
|
|
5
|
-
import type { ReactiveResource } from "./record.js";
|
|
6
|
-
export type PathLike = string | symbol | Array<string | symbol>;
|
|
7
|
-
export type ModeName = "polaris" | "legacy";
|
|
8
|
-
export interface ModeInfo {
|
|
9
|
-
name: ModeName;
|
|
10
|
-
legacy: boolean;
|
|
11
|
-
editable: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface BaseContext {
|
|
14
|
-
store: Store;
|
|
15
|
-
resourceKey: ResourceKey;
|
|
16
|
-
modeName: ModeName;
|
|
17
|
-
legacy: boolean;
|
|
18
|
-
editable: boolean;
|
|
19
|
-
}
|
|
20
|
-
export interface ResourceContext extends BaseContext {
|
|
21
|
-
path: null;
|
|
22
|
-
field: null;
|
|
23
|
-
value: null;
|
|
24
|
-
}
|
|
25
|
-
export interface ObjectContext extends BaseContext {
|
|
26
|
-
path: string[];
|
|
27
|
-
field: SchemaObjectField | SchemaArrayField;
|
|
28
|
-
value: string;
|
|
29
|
-
}
|
|
30
|
-
export interface KindContext<T extends FieldSchema | IdentityField | HashField> extends BaseContext {
|
|
31
|
-
path: string[];
|
|
32
|
-
field: T;
|
|
33
|
-
value: unknown;
|
|
34
|
-
record: ReactiveResource;
|
|
35
|
-
signals: SignalStore;
|
|
36
|
-
}
|
|
37
|
-
export interface KindImpl<T extends FieldSchema | IdentityField | HashField> {
|
|
38
|
-
/**
|
|
39
|
-
* A function which produces the value for the field when invoked.
|
|
40
|
-
*/
|
|
41
|
-
get: (context: KindContext<T>) => unknown;
|
|
42
|
-
/**
|
|
43
|
-
* A function which updates the value for the field when invoked.
|
|
44
|
-
*
|
|
45
|
-
* This will never be invoked when the record is in a non-editable mode.
|
|
46
|
-
*
|
|
47
|
-
* This should assert in dev and return false if mutation is not allowed.
|
|
48
|
-
*/
|
|
49
|
-
set: (context: KindContext<T>) => boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Whether this field is ever mutable (writable). This should be
|
|
52
|
-
* if there is ever a scenario in which the field can be written
|
|
53
|
-
* and false only if the field can never be written to.
|
|
54
|
-
*/
|
|
55
|
-
mutable: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Whether this field's of this kind should be included in the
|
|
58
|
-
* enumerated (iterable) keys of the record/object instance.
|
|
59
|
-
*
|
|
60
|
-
* This should generally be true except for fields that are not
|
|
61
|
-
* producing a value backed by the cache. For instance, locals
|
|
62
|
-
* should not be enumerable, as their value is not tied to the
|
|
63
|
-
* cache at all.
|
|
64
|
-
*/
|
|
65
|
-
enumerable: boolean;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
serializable: boolean;
|
|
70
|
-
}
|
|
71
|
-
type Mode = { [Field in FieldSchema | IdentityField | HashField as Field["kind"]] : KindImpl<Field> };
|
|
72
|
-
export declare const DefaultMode: Mode;
|
|
73
|
-
export {};
|