@warp-drive/core 5.6.0-alpha.11
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/CHANGELOG.md +1 -0
- package/LICENSE.md +23 -0
- package/README.md +70 -0
- package/addon-main.cjs +5 -0
- package/cjs-dist/addon-shim.cjs +1 -0
- package/cjs-dist/cjs-set-config.cjs +1 -0
- package/declarations/build-config/babel-macros.d.ts +2 -0
- package/declarations/build-config/babel-macros.d.ts.map +1 -0
- package/declarations/build-config/canary-features.d.ts +2 -0
- package/declarations/build-config/canary-features.d.ts.map +1 -0
- package/declarations/build-config/debugging.d.ts +2 -0
- package/declarations/build-config/debugging.d.ts.map +1 -0
- package/declarations/build-config/deprecations.d.ts +2 -0
- package/declarations/build-config/deprecations.d.ts.map +1 -0
- package/declarations/build-config/env.d.ts +2 -0
- package/declarations/build-config/env.d.ts.map +1 -0
- package/declarations/build-config/macros.d.ts +2 -0
- package/declarations/build-config/macros.d.ts.map +1 -0
- package/declarations/build-config.d.ts +2 -0
- package/declarations/build-config.d.ts.map +1 -0
- package/declarations/configure.d.ts +8 -0
- package/declarations/configure.d.ts.map +1 -0
- package/declarations/graph/-private/-diff.d.ts +33 -0
- package/declarations/graph/-private/-diff.d.ts.map +1 -0
- package/declarations/graph/-private/-edge-definition.d.ts +149 -0
- package/declarations/graph/-private/-edge-definition.d.ts.map +1 -0
- package/declarations/graph/-private/-state.d.ts +10 -0
- package/declarations/graph/-private/-state.d.ts.map +1 -0
- package/declarations/graph/-private/-utils.d.ts +26 -0
- package/declarations/graph/-private/-utils.d.ts.map +1 -0
- package/declarations/graph/-private/coerce-id.d.ts +5 -0
- package/declarations/graph/-private/coerce-id.d.ts.map +1 -0
- package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +7 -0
- package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts.map +1 -0
- package/declarations/graph/-private/edges/collection.d.ts +40 -0
- package/declarations/graph/-private/edges/collection.d.ts.map +1 -0
- package/declarations/graph/-private/edges/implicit.d.ts +14 -0
- package/declarations/graph/-private/edges/implicit.d.ts.map +1 -0
- package/declarations/graph/-private/edges/resource.d.ts +25 -0
- package/declarations/graph/-private/edges/resource.d.ts.map +1 -0
- package/declarations/graph/-private/graph.d.ts +55 -0
- package/declarations/graph/-private/graph.d.ts.map +1 -0
- package/declarations/graph/-private/normalize-link.d.ts +3 -0
- package/declarations/graph/-private/normalize-link.d.ts.map +1 -0
- package/declarations/graph/-private/operations/add-to-related-records.d.ts +5 -0
- package/declarations/graph/-private/operations/add-to-related-records.d.ts.map +1 -0
- package/declarations/graph/-private/operations/merge-identifier.d.ts +4 -0
- package/declarations/graph/-private/operations/merge-identifier.d.ts.map +1 -0
- package/declarations/graph/-private/operations/remove-from-related-records.d.ts +5 -0
- package/declarations/graph/-private/operations/remove-from-related-records.d.ts.map +1 -0
- package/declarations/graph/-private/operations/replace-related-record.d.ts +4 -0
- package/declarations/graph/-private/operations/replace-related-record.d.ts.map +1 -0
- package/declarations/graph/-private/operations/replace-related-records.d.ts +8 -0
- package/declarations/graph/-private/operations/replace-related-records.d.ts.map +1 -0
- package/declarations/graph/-private/operations/update-relationship.d.ts +11 -0
- package/declarations/graph/-private/operations/update-relationship.d.ts.map +1 -0
- package/declarations/graph/-private.d.ts +14 -0
- package/declarations/graph/-private.d.ts.map +1 -0
- package/declarations/index.d.ts +15 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/reactive/-private/document.d.ts +147 -0
- package/declarations/reactive/-private/document.d.ts.map +1 -0
- package/declarations/reactive/-private/fields/compute.d.ts +40 -0
- package/declarations/reactive/-private/fields/compute.d.ts.map +1 -0
- package/declarations/reactive/-private/fields/managed-array.d.ts +23 -0
- package/declarations/reactive/-private/fields/managed-array.d.ts.map +1 -0
- package/declarations/reactive/-private/fields/managed-object.d.ts +21 -0
- package/declarations/reactive/-private/fields/managed-object.d.ts.map +1 -0
- package/declarations/reactive/-private/fields/many-array-manager.d.ts +20 -0
- package/declarations/reactive/-private/fields/many-array-manager.d.ts.map +1 -0
- package/declarations/reactive/-private/hooks.d.ts +6 -0
- package/declarations/reactive/-private/hooks.d.ts.map +1 -0
- package/declarations/reactive/-private/record.d.ts +61 -0
- package/declarations/reactive/-private/record.d.ts.map +1 -0
- package/declarations/reactive/-private/schema.d.ts +180 -0
- package/declarations/reactive/-private/schema.d.ts.map +1 -0
- package/declarations/reactive/-private/symbols.d.ts +11 -0
- package/declarations/reactive/-private/symbols.d.ts.map +1 -0
- package/declarations/reactive/-private.d.ts +2 -0
- package/declarations/reactive/-private.d.ts.map +1 -0
- package/declarations/reactive.d.ts +5 -0
- package/declarations/reactive.d.ts.map +1 -0
- package/declarations/request/-private/context.d.ts +42 -0
- package/declarations/request/-private/context.d.ts.map +1 -0
- package/declarations/request/-private/debug.d.ts +5 -0
- package/declarations/request/-private/debug.d.ts.map +1 -0
- package/declarations/request/-private/fetch.d.ts +40 -0
- package/declarations/request/-private/fetch.d.ts.map +1 -0
- package/declarations/request/-private/future.d.ts +8 -0
- package/declarations/request/-private/future.d.ts.map +1 -0
- package/declarations/request/-private/manager.d.ts +160 -0
- package/declarations/request/-private/manager.d.ts.map +1 -0
- package/declarations/request/-private/promise-cache.d.ts +20 -0
- package/declarations/request/-private/promise-cache.d.ts.map +1 -0
- package/declarations/request/-private/types.d.ts +236 -0
- package/declarations/request/-private/types.d.ts.map +1 -0
- package/declarations/request/-private/utils.d.ts +16 -0
- package/declarations/request/-private/utils.d.ts.map +1 -0
- package/declarations/request.d.ts +6 -0
- package/declarations/request.d.ts.map +1 -0
- package/declarations/store/-private/cache-handler/handler.d.ts +57 -0
- package/declarations/store/-private/cache-handler/handler.d.ts.map +1 -0
- package/declarations/store/-private/cache-handler/types.d.ts +99 -0
- package/declarations/store/-private/cache-handler/types.d.ts.map +1 -0
- package/declarations/store/-private/cache-handler/utils.d.ts +32 -0
- package/declarations/store/-private/cache-handler/utils.d.ts.map +1 -0
- package/declarations/store/-private/caches/cache-utils.d.ts +9 -0
- package/declarations/store/-private/caches/cache-utils.d.ts.map +1 -0
- package/declarations/store/-private/caches/identifier-cache.d.ts +316 -0
- package/declarations/store/-private/caches/identifier-cache.d.ts.map +1 -0
- package/declarations/store/-private/caches/instance-cache.d.ts +65 -0
- package/declarations/store/-private/caches/instance-cache.d.ts.map +1 -0
- package/declarations/store/-private/caches/resource-utils.d.ts +10 -0
- package/declarations/store/-private/caches/resource-utils.d.ts.map +1 -0
- package/declarations/store/-private/debug/utils.d.ts +7 -0
- package/declarations/store/-private/debug/utils.d.ts.map +1 -0
- package/declarations/store/-private/default-cache-policy.d.ts +383 -0
- package/declarations/store/-private/default-cache-policy.d.ts.map +1 -0
- package/declarations/store/-private/legacy-model-support/record-reference.d.ts +164 -0
- package/declarations/store/-private/legacy-model-support/record-reference.d.ts.map +1 -0
- package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts +17 -0
- package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts.map +1 -0
- package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +26 -0
- package/declarations/store/-private/managers/cache-capabilities-manager.d.ts.map +1 -0
- package/declarations/store/-private/managers/cache-manager.d.ts +428 -0
- package/declarations/store/-private/managers/cache-manager.d.ts.map +1 -0
- package/declarations/store/-private/managers/notification-manager.d.ts +93 -0
- package/declarations/store/-private/managers/notification-manager.d.ts.map +1 -0
- package/declarations/store/-private/managers/record-array-manager.d.ts +98 -0
- package/declarations/store/-private/managers/record-array-manager.d.ts.map +1 -0
- package/declarations/store/-private/network/request-cache.d.ts +104 -0
- package/declarations/store/-private/network/request-cache.d.ts.map +1 -0
- package/declarations/store/-private/new-core-tmp/promise-state.d.ts +255 -0
- package/declarations/store/-private/new-core-tmp/promise-state.d.ts.map +1 -0
- package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +93 -0
- package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts.map +1 -0
- package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +170 -0
- package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts.map +1 -0
- package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +30 -0
- package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts.map +1 -0
- package/declarations/store/-private/new-core-tmp/request-state.d.ts +255 -0
- package/declarations/store/-private/new-core-tmp/request-state.d.ts.map +1 -0
- package/declarations/store/-private/record-arrays/identifier-array.d.ts +141 -0
- package/declarations/store/-private/record-arrays/identifier-array.d.ts.map +1 -0
- package/declarations/store/-private/record-arrays/many-array.d.ts +199 -0
- package/declarations/store/-private/record-arrays/many-array.d.ts.map +1 -0
- package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +116 -0
- package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts.map +1 -0
- package/declarations/store/-private/store-service.d.ts +1597 -0
- package/declarations/store/-private/store-service.d.ts.map +1 -0
- package/declarations/store/-private/store-service.type-test.d.ts +2 -0
- package/declarations/store/-private/store-service.type-test.d.ts.map +1 -0
- package/declarations/store/-private/utils/coerce-id.d.ts +5 -0
- package/declarations/store/-private/utils/coerce-id.d.ts.map +1 -0
- package/declarations/store/-private/utils/construct-resource.d.ts +7 -0
- package/declarations/store/-private/utils/construct-resource.d.ts.map +1 -0
- package/declarations/store/-private/utils/is-non-empty-string.d.ts +2 -0
- package/declarations/store/-private/utils/is-non-empty-string.d.ts.map +1 -0
- package/declarations/store/-private/utils/normalize-model-name.d.ts +2 -0
- package/declarations/store/-private/utils/normalize-model-name.d.ts.map +1 -0
- package/declarations/store/-private/utils/uuid-polyfill.d.ts +2 -0
- package/declarations/store/-private/utils/uuid-polyfill.d.ts.map +1 -0
- package/declarations/store/-private.d.ts +27 -0
- package/declarations/store/-private.d.ts.map +1 -0
- package/declarations/store/-types/q/cache-capabilities-manager.d.ts +100 -0
- package/declarations/store/-types/q/cache-capabilities-manager.d.ts.map +1 -0
- package/declarations/store/-types/q/ds-model.d.ts +22 -0
- package/declarations/store/-types/q/ds-model.d.ts.map +1 -0
- package/declarations/store/-types/q/identifier.d.ts +21 -0
- package/declarations/store/-types/q/identifier.d.ts.map +1 -0
- package/declarations/store/-types/q/promise-proxies.d.ts +2 -0
- package/declarations/store/-types/q/promise-proxies.d.ts.map +1 -0
- package/declarations/store/-types/q/record-data-json-api.d.ts +31 -0
- package/declarations/store/-types/q/record-data-json-api.d.ts.map +1 -0
- package/declarations/store/-types/q/record-instance.d.ts +24 -0
- package/declarations/store/-types/q/record-instance.d.ts.map +1 -0
- package/declarations/store/-types/q/schema-service.d.ts +331 -0
- package/declarations/store/-types/q/schema-service.d.ts.map +1 -0
- package/declarations/store/-types/q/store.d.ts +35 -0
- package/declarations/store/-types/q/store.d.ts.map +1 -0
- package/declarations/store.d.ts +2 -0
- package/declarations/store.d.ts.map +1 -0
- package/declarations/types/-private.d.ts +14 -0
- package/declarations/types/-private.d.ts.map +1 -0
- package/declarations/types/cache/aliases.d.ts +2 -0
- package/declarations/types/cache/aliases.d.ts.map +1 -0
- package/declarations/types/cache/change.d.ts +7 -0
- package/declarations/types/cache/change.d.ts.map +1 -0
- package/declarations/types/cache/mutations.d.ts +39 -0
- package/declarations/types/cache/mutations.d.ts.map +1 -0
- package/declarations/types/cache/operations.d.ts +72 -0
- package/declarations/types/cache/operations.d.ts.map +1 -0
- package/declarations/types/cache/relationship.d.ts +14 -0
- package/declarations/types/cache/relationship.d.ts.map +1 -0
- package/declarations/types/cache.d.ts +492 -0
- package/declarations/types/cache.d.ts.map +1 -0
- package/declarations/types/graph.d.ts +48 -0
- package/declarations/types/graph.d.ts.map +1 -0
- package/declarations/types/identifier.d.ts +111 -0
- package/declarations/types/identifier.d.ts.map +1 -0
- package/declarations/types/json/raw.d.ts +7 -0
- package/declarations/types/json/raw.d.ts.map +1 -0
- package/declarations/types/params.d.ts +10 -0
- package/declarations/types/params.d.ts.map +1 -0
- package/declarations/types/record.d.ts +96 -0
- package/declarations/types/record.d.ts.map +1 -0
- package/declarations/types/record.type-test.d.ts +2 -0
- package/declarations/types/record.type-test.d.ts.map +1 -0
- package/declarations/types/request.d.ts +308 -0
- package/declarations/types/request.d.ts.map +1 -0
- package/declarations/types/request.type-test.d.ts +2 -0
- package/declarations/types/request.type-test.d.ts.map +1 -0
- package/declarations/types/runtime.d.ts +15 -0
- package/declarations/types/runtime.d.ts.map +1 -0
- package/declarations/types/schema/concepts.d.ts +17 -0
- package/declarations/types/schema/concepts.d.ts.map +1 -0
- package/declarations/types/schema/fields.d.ts +1674 -0
- package/declarations/types/schema/fields.d.ts.map +1 -0
- package/declarations/types/schema/fields.type-test.d.ts +2 -0
- package/declarations/types/schema/fields.type-test.d.ts.map +1 -0
- package/declarations/types/spec/document.d.ts +31 -0
- package/declarations/types/spec/document.d.ts.map +1 -0
- package/declarations/types/spec/error.d.ts +19 -0
- package/declarations/types/spec/error.d.ts.map +1 -0
- package/declarations/types/spec/json-api-raw.d.ts +142 -0
- package/declarations/types/spec/json-api-raw.d.ts.map +1 -0
- package/declarations/types/symbols.d.ts +79 -0
- package/declarations/types/symbols.d.ts.map +1 -0
- package/declarations/types/utils.d.ts +5 -0
- package/declarations/types/utils.d.ts.map +1 -0
- package/declarations/types.d.ts +12 -0
- package/declarations/types.d.ts.map +1 -0
- package/declarations/utils/string.d.ts +45 -0
- package/declarations/utils/string.d.ts.map +1 -0
- package/dist/build-config/babel-macros.js +1 -0
- package/dist/build-config/babel-macros.js.map +1 -0
- package/dist/build-config/canary-features.js +1 -0
- package/dist/build-config/canary-features.js.map +1 -0
- package/dist/build-config/debugging.js +1 -0
- package/dist/build-config/debugging.js.map +1 -0
- package/dist/build-config/deprecations.js +1 -0
- package/dist/build-config/deprecations.js.map +1 -0
- package/dist/build-config/env.js +1 -0
- package/dist/build-config/env.js.map +1 -0
- package/dist/build-config/macros.js +1 -0
- package/dist/build-config/macros.js.map +1 -0
- package/dist/build-config.js +1 -0
- package/dist/build-config.js.map +1 -0
- package/dist/configure-Bz49BEZQ.js +145 -0
- package/dist/configure-Bz49BEZQ.js.map +1 -0
- package/dist/configure.js +1 -0
- package/dist/configure.js.map +1 -0
- package/dist/context-DE5sFezZ.js +636 -0
- package/dist/context-DE5sFezZ.js.map +1 -0
- package/dist/graph/-private.js +3364 -0
- package/dist/graph/-private.js.map +1 -0
- package/dist/handler-DYUefHNU.js +339 -0
- package/dist/handler-DYUefHNU.js.map +1 -0
- package/dist/index.js +382 -0
- package/dist/index.js.map +1 -0
- package/dist/reactive/-private.js +1 -0
- package/dist/reactive/-private.js.map +1 -0
- package/dist/reactive.js +1802 -0
- package/dist/reactive.js.map +1 -0
- package/dist/request-state-Bv5CY_H0.js +7358 -0
- package/dist/request-state-Bv5CY_H0.js.map +1 -0
- package/dist/request.js +1 -0
- package/dist/request.js.map +1 -0
- package/dist/store/-private.js +3 -0
- package/dist/store/-private.js.map +1 -0
- package/dist/store.js +545 -0
- package/dist/store.js.map +1 -0
- package/dist/symbols-DyqeYQTe.js +44 -0
- package/dist/symbols-DyqeYQTe.js.map +1 -0
- package/dist/types/-private.js +79 -0
- package/dist/types/-private.js.map +1 -0
- package/dist/types/cache/aliases.js +0 -0
- package/dist/types/cache/aliases.js.map +1 -0
- package/dist/types/cache/change.js +0 -0
- package/dist/types/cache/change.js.map +1 -0
- package/dist/types/cache/mutations.js +0 -0
- package/dist/types/cache/mutations.js.map +1 -0
- package/dist/types/cache/operations.js +0 -0
- package/dist/types/cache/operations.js.map +1 -0
- package/dist/types/cache/relationship.js +0 -0
- package/dist/types/cache/relationship.js.map +1 -0
- package/dist/types/cache.js +0 -0
- package/dist/types/cache.js.map +1 -0
- package/dist/types/graph.js +0 -0
- package/dist/types/graph.js.map +1 -0
- package/dist/types/identifier.js +89 -0
- package/dist/types/identifier.js.map +1 -0
- package/dist/types/json/raw.js +0 -0
- package/dist/types/json/raw.js.map +1 -0
- package/dist/types/params.js +0 -0
- package/dist/types/params.js.map +1 -0
- package/dist/types/record.js +64 -0
- package/dist/types/record.js.map +1 -0
- package/dist/types/request.js +33 -0
- package/dist/types/request.js.map +1 -0
- package/dist/types/runtime.js +34 -0
- package/dist/types/runtime.js.map +1 -0
- package/dist/types/schema/concepts.js +0 -0
- package/dist/types/schema/concepts.js.map +1 -0
- package/dist/types/schema/fields.js +470 -0
- package/dist/types/schema/fields.js.map +1 -0
- package/dist/types/schema/fields.type-test.js +0 -0
- package/dist/types/schema/fields.type-test.js.map +1 -0
- package/dist/types/spec/document.js +0 -0
- package/dist/types/spec/document.js.map +1 -0
- package/dist/types/spec/error.js +0 -0
- package/dist/types/spec/error.js.map +1 -0
- package/dist/types/spec/json-api-raw.js +0 -0
- package/dist/types/spec/json-api-raw.js.map +1 -0
- package/dist/types/symbols.js +84 -0
- package/dist/types/symbols.js.map +1 -0
- package/dist/types/utils.js +0 -0
- package/dist/types/utils.js.map +1 -0
- package/dist/types.js +0 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/string.js +92 -0
- package/dist/utils/string.js.map +1 -0
- package/logos/NCC-1701-a-blue.svg +4 -0
- package/logos/NCC-1701-a-gold.svg +4 -0
- package/logos/NCC-1701-a-gold_100.svg +1 -0
- package/logos/NCC-1701-a-gold_base-64.txt +1 -0
- package/logos/NCC-1701-a.svg +4 -0
- package/logos/README.md +4 -0
- package/logos/docs-badge.svg +2 -0
- package/logos/ember-data-logo-dark.svg +12 -0
- package/logos/ember-data-logo-light.svg +12 -0
- package/logos/github-header.svg +444 -0
- package/logos/social1.png +0 -0
- package/logos/social2.png +0 -0
- package/logos/warp-drive-logo-dark.svg +4 -0
- package/logos/warp-drive-logo-gold.svg +4 -0
- package/package.json +70 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-service.d.ts","sourceRoot":"","sources":["../../../src/store/-private/store-service.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE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,EAAE,IAAI,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IAC7D,IAAI,CAAC,IAAI,EAAE,sBAAsB,GAAG,oBAAoB;IACxD,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,0BAA0B,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;IACnE,IAAI,CAAC,IAAI,EAAE,0BAA0B,GAAG,oBAAoB,EAAE;IAkB9D;;;;;;;MAOE;IACF,KAAK,CACH,UAAU,EAAE,eAAe,EAC3B,UAAU,CAAC,EAAE,OAAO,GACnB,8BAA8B,GAAG,8BAA8B,EAAE,GAAG,IAAI;IAkB3E;;;;;;;;;OASG;IACH,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IA6C3E;;;;;;;;;;OAUG;IAEH;;;;;;;OAOG;IACH,IAAI,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAU3C;IAED,OAAO,IAAI,IAAI;IAkBf,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-service.type-test.d.ts","sourceRoot":"","sources":["../../../src/store/-private/store-service.type-test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-id.d.ts","sourceRoot":"","sources":["../../../../src/store/-private/utils/coerce-id.ts"],"names":[],"mappings":"AAWA,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvE,wBAAgB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAkCnD;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAWpD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ExistingResourceIdentifierObject, ResourceIdentifierObject } from '../../../types/spec/json-api-raw.ts';
|
|
2
|
+
export declare function constructResource(type: ResourceIdentifierObject): ResourceIdentifierObject;
|
|
3
|
+
export declare function constructResource(type: string, id: string, lid: string): ExistingResourceIdentifierObject;
|
|
4
|
+
export declare function constructResource(type: string | undefined, id: null | undefined, lid: string): ExistingResourceIdentifierObject;
|
|
5
|
+
export declare function constructResource(type: string, id: string, lid?: string | null): ExistingResourceIdentifierObject;
|
|
6
|
+
export declare function constructResource(type: string, id?: string | number | null, lid?: string | null): ResourceIdentifierObject;
|
|
7
|
+
//# sourceMappingURL=construct-resource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"construct-resource.d.ts","sourceRoot":"","sources":["../../../../src/store/-private/utils/construct-resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gCAAgC,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAKtH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB,CAAC;AAC5F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,gCAAgC,CAAC;AAC3G,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,EAAE,EAAE,IAAI,GAAG,SAAS,EACpB,GAAG,EAAE,MAAM,GACV,gCAAgC,CAAC;AACpC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,gCAAgC,CAAC;AACnH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAClB,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-non-empty-string.d.ts","sourceRoot":"","sources":["../../../../src/store/-private/utils/is-non-empty-string.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAE5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-model-name.d.ts","sourceRoot":"","sources":["../../../../src/store/-private/utils/normalize-model-name.ts"],"names":[],"mappings":"AAMA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAsBvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uuid-polyfill.d.ts","sourceRoot":"","sources":["../../../../src/store/-private/utils/uuid-polyfill.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,eAAe,SAiEtC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { Store, storeFor } from './-private/store-service.ts';
|
|
2
|
+
export { recordIdentifierFor } from './-private/caches/instance-cache.ts';
|
|
3
|
+
export { CacheHandler, type StoreRequestContext } from './-private/cache-handler/handler.ts';
|
|
4
|
+
export { type CachePolicy } from './-private/cache-handler/types.ts';
|
|
5
|
+
export { isStableIdentifier, isDocumentIdentifier } from './-private/caches/identifier-cache.ts';
|
|
6
|
+
export { constructResource } from './-private/utils/construct-resource.ts';
|
|
7
|
+
export type { InstanceCache } from './-private/caches/instance-cache.ts';
|
|
8
|
+
export type { FindRecordQuery, Request, SaveRecordMutation, RequestCacheRequestState, RequestStateService, } from './-private/network/request-cache.ts';
|
|
9
|
+
export type { CreateRecordProperties } from './-private/store-service.ts';
|
|
10
|
+
export { coerceId, ensureStringId } from './-private/utils/coerce-id.ts';
|
|
11
|
+
export type { NativeProxy } from './-private/record-arrays/native-proxy-type-fix.ts';
|
|
12
|
+
export { IdentifierArray as LiveArray, Collection as CollectionRecordArray, SOURCE, MUTATE, } from './-private/record-arrays/identifier-array.ts';
|
|
13
|
+
export { RecordArrayManager, fastPush } from './-private/managers/record-array-manager.ts';
|
|
14
|
+
export { _clearCaches } from './-private/caches/instance-cache.ts';
|
|
15
|
+
export { peekCache, removeRecordDataFor } from './-private/caches/cache-utils.ts';
|
|
16
|
+
export { setRecordIdentifier, StoreMap } from './-private/caches/instance-cache.ts';
|
|
17
|
+
export { setCacheFor } from './-private/caches/cache-utils';
|
|
18
|
+
export { normalizeModelName as _deprecatingNormalize } from './-private/utils/normalize-model-name.ts';
|
|
19
|
+
export type { StoreRequestInput } from './-private/cache-handler/handler.ts';
|
|
20
|
+
export { RelatedCollection } from './-private/record-arrays/many-array.ts';
|
|
21
|
+
export { log, logGroup } from './-private/debug/utils';
|
|
22
|
+
export { getPromiseState, type PromiseState } from './-private/new-core-tmp/promise-state.ts';
|
|
23
|
+
export { getRequestState, type RequestLoadingState, type RequestCacheRequestState as RequestState, } from './-private/new-core-tmp/request-state.ts';
|
|
24
|
+
export { createMemo, type SignalHooks, waitFor } from './-private/new-core-tmp/reactivity/configure.ts';
|
|
25
|
+
export { memoized, gate, entangleSignal, defineSignal, defineNonEnumerableSignal, } from './-private/new-core-tmp/reactivity/signal.ts';
|
|
26
|
+
export { ARRAY_SIGNAL, OBJECT_SIGNAL, Signals, type WarpDriveSignal, peekInternalSignal, withSignalStore, notifyInternalSignal, consumeInternalSignal, getOrCreateInternalSignal, } from './-private/new-core-tmp/reactivity/internal.ts';
|
|
27
|
+
//# sourceMappingURL=-private.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../../src/store/-private.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE9D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AAG,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EACL,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,IAAI,YAAY,GAC9C,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,KAAK,WAAW,EAAE,OAAO,EAAE,MAAM,iDAAiD,CAAC;AACxG,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,yBAAyB,GAC1B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,YAAY,EACZ,aAAa,EACb,OAAO,EACP,KAAK,eAAe,EACpB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,gDAAgD,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { StableDocumentIdentifier, StableRecordIdentifier } from '../../../types/identifier.ts';
|
|
2
|
+
import type { IdentifierCache } from '../../-private/caches/identifier-cache.ts';
|
|
3
|
+
import type { NotificationType } from '../../-private/managers/notification-manager.ts';
|
|
4
|
+
import type { SchemaService } from './schema-service.ts';
|
|
5
|
+
/**
|
|
6
|
+
* CacheCapabilitiesManager provides encapsulated API access to the minimal
|
|
7
|
+
* subset of the Store's functionality that Cache implementations
|
|
8
|
+
* should interact with. It is provided to the Store's `createCache` hook.
|
|
9
|
+
*
|
|
10
|
+
* Cache implementations should not need more than this API provides.
|
|
11
|
+
*
|
|
12
|
+
* This class cannot be directly instantiated.
|
|
13
|
+
*
|
|
14
|
+
* @class CacheCapabilitiesManager
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type CacheCapabilitiesManager = {
|
|
18
|
+
/**
|
|
19
|
+
* Provides access to the IdentifierCache instance
|
|
20
|
+
* for this Store instance.
|
|
21
|
+
*
|
|
22
|
+
* The IdentifierCache can be used to peek, generate or
|
|
23
|
+
* retrieve a stable unique identifier for any resource.
|
|
24
|
+
*
|
|
25
|
+
* @property identifierCache
|
|
26
|
+
* @type {IdentifierCache}
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
identifierCache: IdentifierCache;
|
|
30
|
+
/**
|
|
31
|
+
* DEPRECATED - use the schema property
|
|
32
|
+
*
|
|
33
|
+
* Provides access to the SchemaService instance
|
|
34
|
+
* for this Store instance.
|
|
35
|
+
*
|
|
36
|
+
* The SchemaService can be used to query for
|
|
37
|
+
* information about the schema of a resource.
|
|
38
|
+
*
|
|
39
|
+
* @deprecated
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
getSchemaDefinitionService(): SchemaService;
|
|
43
|
+
/**
|
|
44
|
+
* Provides access to the SchemaService instance
|
|
45
|
+
* for this Store instance.
|
|
46
|
+
*
|
|
47
|
+
* The SchemaService can be used to query for
|
|
48
|
+
* information about the schema of a resource.
|
|
49
|
+
*
|
|
50
|
+
* @property schema
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
schema: SchemaService;
|
|
54
|
+
/**
|
|
55
|
+
* Update the `id` for the record corresponding to the identifier
|
|
56
|
+
* This operation can only be done for records whose `id` is `null`.
|
|
57
|
+
*
|
|
58
|
+
* @param {StableRecordIdentifier} identifier;
|
|
59
|
+
* @param {String} id;
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
setRecordId(identifier: StableRecordIdentifier, id: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* Signal to the store that the specified record may be considered fully
|
|
65
|
+
* removed from the cache. Generally this means that not only does no
|
|
66
|
+
* data exist for the identified resource, no known relationships still
|
|
67
|
+
* point to it either.
|
|
68
|
+
*
|
|
69
|
+
* @param {StableRecordIdentifier} identifier
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
disconnectRecord(identifier: StableRecordIdentifier): void;
|
|
73
|
+
/**
|
|
74
|
+
* Use this method to determine if the Store has an instantiated record associated
|
|
75
|
+
* with an identifier.
|
|
76
|
+
*
|
|
77
|
+
* @param identifier
|
|
78
|
+
* @return {Boolean}
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
hasRecord(identifier: StableRecordIdentifier): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Notify subscribers of the NotificationManager that cache state has changed.
|
|
84
|
+
*
|
|
85
|
+
* `attributes` and `relationships` do not require a key, but if one is specified it
|
|
86
|
+
* is assumed to be the name of the attribute or relationship that has been updated.
|
|
87
|
+
*
|
|
88
|
+
* No other namespaces currently expect the `key` argument.
|
|
89
|
+
*
|
|
90
|
+
* @param {StableRecordIdentifier} identifier
|
|
91
|
+
* @param {'attributes' | 'relationships' | 'identity' | 'errors' | 'meta' | 'state'} namespace
|
|
92
|
+
* @param {string|undefined} key
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
notifyChange(identifier: StableRecordIdentifier, namespace: 'added' | 'removed', key: null): void;
|
|
96
|
+
notifyChange(identifier: StableDocumentIdentifier, namespace: 'added' | 'updated' | 'removed', key: null): void;
|
|
97
|
+
notifyChange(identifier: StableRecordIdentifier, namespace: NotificationType, key: string | null): void;
|
|
98
|
+
notifyChange(identifier: StableRecordIdentifier | StableDocumentIdentifier, namespace: NotificationType | 'added' | 'removed' | 'updated', key: string | null): void;
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=cache-capabilities-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-capabilities-manager.d.ts","sourceRoot":"","sources":["../../../../src/store/-types/q/cache-capabilities-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACrG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;;;;;;;OAUG;IACH,eAAe,EAAE,eAAe,CAAC;IAEjC;;;;;;;;;;;OAWG;IACH,0BAA0B,IAAI,aAAa,CAAC;IAE5C;;;;;;;;;OASG;IACH,MAAM,EAAE,aAAa,CAAC;IAEtB;;;;;;;OAOG;IACH,WAAW,CAAC,UAAU,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAElE;;;;;;;;OAQG;IACH,gBAAgB,CAAC,UAAU,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAE3D;;;;;;;OAOG;IACH,SAAS,CAAC,UAAU,EAAE,sBAAsB,GAAG,OAAO,CAAC;IAEvD;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IAClG,YAAY,CAAC,UAAU,EAAE,wBAAwB,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IAChH,YAAY,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACxG,YAAY,CACV,UAAU,EAAE,sBAAsB,GAAG,wBAAwB,EAC7D,SAAS,EAAE,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,EAC7D,GAAG,EAAE,MAAM,GAAG,IAAI,GACjB,IAAI,CAAC;CACT,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TypedRecordInstance, TypeFromInstance } from '../../../types/record.ts';
|
|
2
|
+
import type { LegacyAttributeField, LegacyRelationshipField } from '../../../types/schema/fields.ts';
|
|
3
|
+
export type KeyOrString<T> = keyof T & string extends never ? string : keyof T & string;
|
|
4
|
+
/**
|
|
5
|
+
* Minimum subset of static schema methods and properties on the
|
|
6
|
+
* "model" class.
|
|
7
|
+
*
|
|
8
|
+
* Only used when using the legacy schema-service implementation
|
|
9
|
+
* for @ember-data/model or when wrapping schema for legacy
|
|
10
|
+
* Adapters/Serializers.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export interface ModelSchema<T = unknown> {
|
|
14
|
+
modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
|
|
15
|
+
fields: Map<KeyOrString<T>, 'attribute' | 'belongsTo' | 'hasMany'>;
|
|
16
|
+
attributes: Map<KeyOrString<T>, LegacyAttributeField>;
|
|
17
|
+
relationshipsByName: Map<KeyOrString<T>, LegacyRelationshipField>;
|
|
18
|
+
eachAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, attribute: LegacyAttributeField) => void, binding?: T): void;
|
|
19
|
+
eachRelationship<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, relationship: LegacyRelationshipField) => void, binding?: T): void;
|
|
20
|
+
eachTransformedAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, type: string | null) => void, binding?: T): void;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ds-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-model.d.ts","sourceRoot":"","sources":["../../../../src/store/-types/q/ds-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAErG,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,SAAS,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;AAExF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Info } from '../../../types/request.ts';
|
|
3
|
+
export interface GenerationMethod {
|
|
4
|
+
(data: ImmutableRequestInfo, bucket: 'document'): string | null;
|
|
5
|
+
(data: unknown | {
|
|
6
|
+
type: string;
|
|
7
|
+
}, bucket: 'record'): string;
|
|
8
|
+
(data: unknown, bucket: IdentifierBucket): string | null;
|
|
9
|
+
}
|
|
10
|
+
export type UpdateMethod = {
|
|
11
|
+
(identifier: StableRecordIdentifier, newData: unknown, bucket: 'record'): void;
|
|
12
|
+
(identifier: StableIdentifier, newData: unknown, bucket: never): void;
|
|
13
|
+
};
|
|
14
|
+
export type ForgetMethod = (identifier: StableIdentifier | StableRecordIdentifier, bucket: IdentifierBucket) => void;
|
|
15
|
+
export type ResetMethod = () => void;
|
|
16
|
+
export type KeyInfo = {
|
|
17
|
+
id: string | null;
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
export type KeyInfoMethod = (resource: unknown, known: StableRecordIdentifier | null) => KeyInfo;
|
|
21
|
+
//# sourceMappingURL=identifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identifier.d.ts","sourceRoot":"","sources":["../../../../src/store/-types/q/identifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC/G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,MAAM,WAAW,gBAAgB;IAC/B,CAAC,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC;IAChE,CAAC,IAAI,EAAE,OAAO,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC7D,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAAC;CAC1D;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,UAAU,EAAE,sBAAsB,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC/E,CAAC,UAAU,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,IAAI,CAAC;CACvE,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,gBAAgB,GAAG,sBAAsB,EAAE,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAErH,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC;AAErC,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,sBAAsB,GAAG,IAAI,KAAK,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promise-proxies.d.ts","sourceRoot":"","sources":["../../../../src/store/-types/q/promise-proxies.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Value } from '../../../types/json/raw.ts';
|
|
2
|
+
import type { CollectionResourceRelationship, Link, Links, Meta, SingleResourceRelationship } from '../../../types/spec/json-api-raw.ts';
|
|
3
|
+
export type AttributesHash = Record<string, Value>;
|
|
4
|
+
export interface JsonApiResource {
|
|
5
|
+
id?: string | null;
|
|
6
|
+
type?: string;
|
|
7
|
+
lid?: string;
|
|
8
|
+
attributes?: AttributesHash;
|
|
9
|
+
relationships?: Record<string, SingleResourceRelationship | CollectionResourceRelationship>;
|
|
10
|
+
meta?: Meta;
|
|
11
|
+
links?: Links;
|
|
12
|
+
}
|
|
13
|
+
export interface JsonApiError {
|
|
14
|
+
id?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
detail?: string;
|
|
17
|
+
links?: {
|
|
18
|
+
about?: Link;
|
|
19
|
+
type?: Link;
|
|
20
|
+
};
|
|
21
|
+
status?: string;
|
|
22
|
+
code?: string;
|
|
23
|
+
source?: {
|
|
24
|
+
pointer: string;
|
|
25
|
+
parameter?: string;
|
|
26
|
+
header?: string;
|
|
27
|
+
};
|
|
28
|
+
meta?: Meta;
|
|
29
|
+
}
|
|
30
|
+
export type JsonApiRelationship = SingleResourceRelationship | CollectionResourceRelationship;
|
|
31
|
+
//# sourceMappingURL=record-data-json-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-data-json-api.d.ts","sourceRoot":"","sources":["../../../../src/store/-types/q/record-data-json-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,KAAK,EACV,8BAA8B,EAC9B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,0BAA0B,EAC3B,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,GAAG,8BAA8B,CAAC,CAAC;IAC5F,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,IAAI,CAAC;QACb,IAAI,CAAC,EAAE,IAAI,CAAC;KACb,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
In WarpDrive, a "record instance" is a class instance used to present the data
|
|
3
|
+
for a single resource, transforming the resource's cached raw data into a form
|
|
4
|
+
that is useful for the application.
|
|
5
|
+
|
|
6
|
+
Since every application's needs are different, WarpDrive does not assume to know
|
|
7
|
+
what the shape of the record instance should be. Instead, it provides a way to
|
|
8
|
+
define the record instance's via the `instantiateRecord` hook on the store.
|
|
9
|
+
|
|
10
|
+
Thus for most purposes the `RecordInstance` type is "opaque" to WarpDrive, and
|
|
11
|
+
should be treated as "unknown" by the library.
|
|
12
|
+
|
|
13
|
+
Wherever possible, if typing an API that is consumer facing, instead of using
|
|
14
|
+
OpaqueRecordInstance, we should prefer to use a generic and check if the generic
|
|
15
|
+
extends `TypedRecordInstance`. This allows consumers to define their own record
|
|
16
|
+
instance types and not only have their types flow through WarpDrive APIs, but
|
|
17
|
+
also allows WarpDrive to provide typechecking and intellisense for the record
|
|
18
|
+
based on a special symbol prsent on record instances that implement the
|
|
19
|
+
`TypedRecordInstance` interface.
|
|
20
|
+
|
|
21
|
+
@internal
|
|
22
|
+
*/
|
|
23
|
+
export type OpaqueRecordInstance = unknown;
|
|
24
|
+
//# sourceMappingURL=record-instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-instance.d.ts","sourceRoot":"","sources":["../../../../src/store/-types/q/record-instance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;AACF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC"}
|