@ember-data/store 5.4.0-alpha.64 → 5.4.0-alpha.70
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/addon-main.cjs +5 -0
- package/dist/-private.js +1 -0
- package/{addon/cache-handler-Dl0DS1Iq.js → dist/cache-handler-BCWOzbbB.js} +954 -598
- package/dist/cache-handler-BCWOzbbB.js.map +1 -0
- package/dist/index.js +4 -0
- package/{addon → dist}/index.js.map +1 -1
- package/dist/types.js +0 -0
- package/dist/types.js.map +1 -0
- package/package.json +31 -43
- package/unstable-preview-types/-private/cache-handler.d.ts +7 -4
- package/unstable-preview-types/-private/cache-handler.d.ts.map +1 -1
- package/unstable-preview-types/-private/caches/cache-utils.d.ts +3 -3
- package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +1 -1
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts +1 -2
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private/caches/instance-cache.d.ts +3 -5
- package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private/document.d.ts +7 -7
- package/unstable-preview-types/-private/document.d.ts.map +1 -1
- package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +2 -2
- package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +1 -1
- package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +6 -6
- package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +5 -3
- package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/cache-manager.d.ts +2 -3
- package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/notification-manager.d.ts +2 -4
- package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/managers/record-array-manager.d.ts +5 -5
- package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +1 -1
- package/unstable-preview-types/-private/network/request-cache.d.ts +4 -4
- package/unstable-preview-types/-private/network/request-cache.d.ts.map +1 -1
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +22 -17
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +1 -1
- package/unstable-preview-types/-private/store-service.d.ts +158 -196
- package/unstable-preview-types/-private/store-service.d.ts.map +1 -1
- package/unstable-preview-types/-private/utils/coerce-id.d.ts +2 -2
- package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +1 -1
- package/unstable-preview-types/-private/utils/construct-resource.d.ts +6 -7
- package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +1 -1
- package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +1 -1
- package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +1 -1
- package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +1 -1
- package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +1 -1
- package/unstable-preview-types/-private.d.ts +12 -8
- package/unstable-preview-types/-private.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/{cache-store-wrapper.d.ts → cache-capabilities-manager.d.ts} +8 -6
- package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +1 -0
- package/unstable-preview-types/-types/q/ds-model.d.ts +15 -5
- package/unstable-preview-types/-types/q/ds-model.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/identifier.d.ts +0 -2
- package/unstable-preview-types/-types/q/identifier.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/record-data-json-api.d.ts +1 -1
- package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +1 -1
- package/unstable-preview-types/-types/q/schema-service.d.ts +164 -29
- package/unstable-preview-types/-types/q/schema-service.d.ts.map +1 -1
- package/unstable-preview-types/index.d.ts +26 -27
- package/unstable-preview-types/index.d.ts.map +1 -1
- package/unstable-preview-types/types.d.ts +7 -0
- package/unstable-preview-types/types.d.ts.map +1 -0
- package/addon/-private.js +0 -1
- package/addon/cache-handler-Dl0DS1Iq.js.map +0 -1
- package/addon/index.js +0 -1
- package/addon-main.js +0 -94
- package/unstable-preview-types/-private/utils/identifier-debug-consts.d.ts +0 -7
- package/unstable-preview-types/-private/utils/identifier-debug-consts.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/cache-store-wrapper.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/cache.d.ts +0 -47
- package/unstable-preview-types/-types/q/cache.d.ts.map +0 -1
- /package/{addon → dist}/-private.js.map +0 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { C as CacheHandler, S as default, r as recordIdentifierFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, e as setKeyInfoForResource, s as storeFor } from "./cache-handler-BCWOzbbB";
|
|
2
|
+
import '@ember/debug';
|
|
3
|
+
import '@embroider/macros';
|
|
4
|
+
import '@ember/string';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/dist/types.js
ADDED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/store",
|
|
3
|
-
"version": "5.4.0-alpha.
|
|
3
|
+
"version": "5.4.0-alpha.70",
|
|
4
4
|
"description": "The core of EmberData. Provides the Store service which coordinates the cache with the network and presentation layers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -14,29 +14,19 @@
|
|
|
14
14
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
15
15
|
"files": [
|
|
16
16
|
"unstable-preview-types",
|
|
17
|
-
"addon-main.
|
|
18
|
-
"
|
|
17
|
+
"addon-main.cjs",
|
|
18
|
+
"dist",
|
|
19
19
|
"README.md",
|
|
20
20
|
"LICENSE.md",
|
|
21
21
|
"ember-data-logo-dark.svg",
|
|
22
22
|
"ember-data-logo-light.svg"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
-
"lint": "eslint . --quiet --cache --cache-strategy=content --
|
|
26
|
-
"build:
|
|
27
|
-
"
|
|
28
|
-
"_build": "bun run build:runtime && bun run build:types",
|
|
29
|
-
"_syncPnpm": "bun run sync-dependencies-meta-injected"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@ember-data/private-build-infra": "5.4.0-alpha.64",
|
|
33
|
-
"@embroider/macros": "^1.15.1",
|
|
34
|
-
"ember-cli-babel": "^8.2.0"
|
|
25
|
+
"lint": "eslint . --quiet --cache --cache-strategy=content --report-unused-disable-directives",
|
|
26
|
+
"build:pkg": "vite build;",
|
|
27
|
+
"sync-hardlinks": "bun run sync-dependencies-meta-injected"
|
|
35
28
|
},
|
|
36
29
|
"dependenciesMeta": {
|
|
37
|
-
"@ember-data/private-build-infra": {
|
|
38
|
-
"injected": true
|
|
39
|
-
},
|
|
40
30
|
"@ember-data/tracking": {
|
|
41
31
|
"injected": true
|
|
42
32
|
},
|
|
@@ -48,51 +38,49 @@
|
|
|
48
38
|
},
|
|
49
39
|
"@ember/string": {
|
|
50
40
|
"injected": true
|
|
41
|
+
},
|
|
42
|
+
"@warp-drive/build-config": {
|
|
43
|
+
"injected": true
|
|
51
44
|
}
|
|
52
45
|
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@embroider/macros": "^1.16.1",
|
|
48
|
+
"@warp-drive/build-config": "0.0.0-alpha.7",
|
|
49
|
+
"ember-cli-babel": "^8.2.0"
|
|
50
|
+
},
|
|
53
51
|
"peerDependencies": {
|
|
54
|
-
"@ember-data/request": "5.4.0-alpha.
|
|
55
|
-
"@ember-data/tracking": "5.4.0-alpha.
|
|
52
|
+
"@ember-data/request": "5.4.0-alpha.70",
|
|
53
|
+
"@ember-data/tracking": "5.4.0-alpha.70",
|
|
56
54
|
"@ember/string": "^3.1.1",
|
|
57
|
-
"@warp-drive/core-types": "0.0.0-alpha.
|
|
55
|
+
"@warp-drive/core-types": "0.0.0-alpha.56"
|
|
58
56
|
},
|
|
59
57
|
"devDependencies": {
|
|
60
|
-
"@babel/
|
|
61
|
-
"@babel/
|
|
62
|
-
"@babel/
|
|
63
|
-
"@babel/plugin-transform-class-properties": "^7.24.1",
|
|
64
|
-
"@babel/plugin-transform-private-methods": "^7.24.1",
|
|
65
|
-
"@babel/plugin-transform-runtime": "^7.24.3",
|
|
66
|
-
"@babel/plugin-transform-typescript": "^7.24.4",
|
|
67
|
-
"@babel/preset-env": "^7.24.4",
|
|
58
|
+
"@babel/core": "^7.24.5",
|
|
59
|
+
"@babel/plugin-transform-typescript": "^7.24.5",
|
|
60
|
+
"@babel/preset-env": "^7.24.5",
|
|
68
61
|
"@babel/preset-typescript": "^7.24.1",
|
|
69
|
-
"@
|
|
70
|
-
"@ember-data/
|
|
71
|
-
"@ember-data/tracking": "5.4.0-alpha.64",
|
|
62
|
+
"@ember-data/request": "5.4.0-alpha.70",
|
|
63
|
+
"@ember-data/tracking": "5.4.0-alpha.70",
|
|
72
64
|
"@ember/string": "^3.1.1",
|
|
73
|
-
"@embroider/addon-dev": "^4.3.1",
|
|
74
65
|
"@glimmer/component": "^1.1.2",
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"ember-source": "~5.7.0",
|
|
66
|
+
"@warp-drive/core-types": "0.0.0-alpha.56",
|
|
67
|
+
"@warp-drive/internal-config": "5.4.0-alpha.70",
|
|
68
|
+
"decorator-transforms": "^2.0.0",
|
|
69
|
+
"ember-source": "~5.8.0",
|
|
80
70
|
"expect-type": "^0.19.0",
|
|
81
|
-
"pnpm-sync-dependencies-meta-injected": "0.0.
|
|
82
|
-
"rollup": "^4.14.3",
|
|
71
|
+
"pnpm-sync-dependencies-meta-injected": "0.0.14",
|
|
83
72
|
"typescript": "^5.4.5",
|
|
84
|
-
"
|
|
85
|
-
"webpack": "^5.91.0"
|
|
73
|
+
"vite": "^5.2.11"
|
|
86
74
|
},
|
|
87
75
|
"engines": {
|
|
88
|
-
"node": ">=
|
|
76
|
+
"node": ">= 22.1.0"
|
|
89
77
|
},
|
|
90
78
|
"volta": {
|
|
91
79
|
"extends": "../../package.json"
|
|
92
80
|
},
|
|
93
|
-
"packageManager": "pnpm@8.15.
|
|
81
|
+
"packageManager": "pnpm@8.15.8",
|
|
94
82
|
"ember-addon": {
|
|
95
|
-
"main": "addon-main.
|
|
83
|
+
"main": "addon-main.cjs",
|
|
96
84
|
"type": "addon",
|
|
97
85
|
"version": 1
|
|
98
86
|
},
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/cache-handler' {
|
|
2
|
+
/**
|
|
3
|
+
* @module @ember-data/store
|
|
4
|
+
*/
|
|
2
5
|
import type { CacheHandler as CacheHandlerType } from '@ember-data/request';
|
|
3
6
|
import type { StableDocumentIdentifier } from '@warp-drive/core-types/identifier';
|
|
4
7
|
import type { ImmutableRequestInfo, RequestContext, ResponseInfo } from '@warp-drive/core-types/request';
|
|
5
8
|
import { EnableHydration } from '@warp-drive/core-types/request';
|
|
6
|
-
import type { ResourceIdentifierObject } from '@warp-drive/core-types/spec/raw';
|
|
7
|
-
import type Store from '@ember-data/store/-private/store-service';
|
|
9
|
+
import type { ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
|
|
10
|
+
import type { Store } from '@ember-data/store/-private/store-service';
|
|
8
11
|
/**
|
|
9
12
|
* A service which an application may provide to the store via
|
|
10
13
|
* the store's `lifetimes` property to configure the behavior
|
|
@@ -16,10 +19,10 @@ declare module '@ember-data/store/-private/cache-handler' {
|
|
|
16
19
|
* Implementing this service allows you to programatically define
|
|
17
20
|
* when a request should be considered expired.
|
|
18
21
|
*
|
|
19
|
-
* @class <Interface>
|
|
22
|
+
* @class <Interface> CachePolicy
|
|
20
23
|
* @public
|
|
21
24
|
*/
|
|
22
|
-
export interface
|
|
25
|
+
export interface CachePolicy {
|
|
23
26
|
/**
|
|
24
27
|
* Invoked to determine if the request may be fulfilled from cache
|
|
25
28
|
* if possible.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-handler.d.ts","sourceRoot":"","sources":["../../src/-private/cache-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache-handler.d.ts","sourceRoot":"","sources":["../../src/-private/cache-handler.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAkB,MAAM,qBAAqB,CAAC;AAE5F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAGV,oBAAoB,EAEpB,cAAc,EACd,YAAY,EAGb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAa,MAAM,gCAAgC,CAAC;AAO5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAIzF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;;;;OAeG;IACH,aAAa,CAAC,UAAU,EAAE,wBAAwB,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC;IAC3E;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,UAAU,EAAE,wBAAwB,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC;IAE3E;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,CAAC,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,wBAAwB,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAE7G;;;;;;;;;;;;;;OAcG;IACH,UAAU,CAAC,CACT,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,QAAQ,GAAG,YAAY,GAAG,IAAI,EACxC,UAAU,EAAE,wBAAwB,GAAG,IAAI,EAC3C,KAAK,EAAE,KAAK,GACX,IAAI,CAAC;CACT;AAED,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,GAAG,OAAO,IAAI,IAAI,CACjE,oBAAoB,CAAC,CAAC,EAAE,EAAE,CAAC,EAC3B,SAAS,GAAG,SAAS,CACtB,GAAG;IACF,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,GAAG,OAAO,IAAI,oBAAoB,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,qBAAqB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAEtH,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,OAAO,EAAE,oBAAoB,GAAG;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,CAAC,eAAe,CAAC,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAC/E;AA6TD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,YAAY,EAAE,gBAoD1B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/caches/cache-utils' {
|
|
2
|
+
import type { Cache } from '@warp-drive/core-types/cache';
|
|
2
3
|
import type { StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
|
-
import type { Cache } from '@ember-data/store/-types/q/cache';
|
|
4
4
|
import type { OpaqueRecordInstance } from '@ember-data/store/-types/q/record-instance';
|
|
5
5
|
export const CacheForIdentifierCache: Map<unknown, Cache>;
|
|
6
6
|
export function setCacheFor(identifier: StableRecordIdentifier | OpaqueRecordInstance, cache: Cache): void;
|
|
7
7
|
export function removeRecordDataFor(identifier: StableRecordIdentifier | OpaqueRecordInstance): void;
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export function peekCache(instance: StableRecordIdentifier): Cache | null;
|
|
9
|
+
export function peekCache(instance: OpaqueRecordInstance): Cache;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=cache-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-utils.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/cache-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"cache-utils.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/cache-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAO3E,eAAO,MAAM,uBAAuB,qBAGnC,CAAC;AAEF,wBAAgB,WAAW,CAAC,UAAU,EAAE,sBAAsB,GAAG,oBAAoB,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAMzG;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,sBAAsB,GAAG,oBAAoB,GAAG,IAAI,CAEnG;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,sBAAsB,GAAG,KAAK,GAAG,IAAI,CAAC;AAC1E,wBAAgB,SAAS,CAAC,QAAQ,EAAE,oBAAoB,GAAG,KAAK,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/caches/identifier-cache' {
|
|
2
2
|
import { type Identifier, type RecordIdentifier, type StableDocumentIdentifier, type StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
3
|
import type { ImmutableRequestInfo } from '@warp-drive/core-types/request';
|
|
4
|
-
import type { ResourceIdentifierObject } from '@warp-drive/core-types/spec/raw';
|
|
4
|
+
import type { ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
|
|
5
5
|
import type { ForgetMethod, GenerationMethod, KeyInfo, KeyInfoMethod, ResetMethod, UpdateMethod } from '@ember-data/store/-types/q/identifier';
|
|
6
6
|
export function isStableIdentifier(identifier: unknown): identifier is StableRecordIdentifier;
|
|
7
7
|
export function isDocumentIdentifier(identifier: unknown): identifier is StableDocumentIdentifier;
|
|
@@ -46,7 +46,6 @@ declare module '@ember-data/store/-private/caches/identifier-cache' {
|
|
|
46
46
|
_reset: ResetMethod;
|
|
47
47
|
_merge: MergeMethod;
|
|
48
48
|
_keyInfoForResource: KeyInfoMethod;
|
|
49
|
-
_isDefaultConfig: boolean;
|
|
50
49
|
_id: number;
|
|
51
50
|
constructor();
|
|
52
51
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identifier-cache.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/identifier-cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"identifier-cache.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/identifier-cache.ts"],"names":[],"mappings":"AAWA,OAAO,EAKL,KAAK,UAAU,EAEf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAE7B,KAAK,sBAAsB,EAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAA0B,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEjH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACb,MA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AI,CAAA;KAAE,GAAG,sBAAsB;IAyBhG;;;;;;;;;;;;;;;;;;;;;MAqBE;IACF,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,GAAG,sBAAsB;IAoEjG;;;OAGG;IACH,uBAAuB,CACrB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,sBAAsB,EAClC,kBAAkB,EAAE,sBAAsB,EAC1C,IAAI,EAAE,OAAO,GACZ,sBAAsB;IAoCzB;;;;;;;;;;;MAWE;IACF,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI;IA+BhE,OAAO;CAOR"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/caches/instance-cache' {
|
|
2
|
-
import type {
|
|
2
|
+
import type { Cache } from '@warp-drive/core-types/cache';
|
|
3
|
+
import type { StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
4
|
import type { Value } from '@warp-drive/core-types/json/raw';
|
|
4
5
|
import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
|
|
5
|
-
import type { Cache } from '@ember-data/store/-types/q/cache';
|
|
6
6
|
import type { OpaqueRecordInstance } from '@ember-data/store/-types/q/record-instance';
|
|
7
7
|
import RecordReference from '@ember-data/store/-private/legacy-model-support/record-reference';
|
|
8
8
|
import { CacheCapabilitiesManager } from '@ember-data/store/-private/managers/cache-capabilities-manager';
|
|
9
9
|
import type { CacheManager } from '@ember-data/store/-private/managers/cache-manager';
|
|
10
|
-
import type { CreateRecordProperties } from '@ember-data/store/-private/store-service';
|
|
11
|
-
import type Store from '@ember-data/store/-private/store-service';
|
|
10
|
+
import type { CreateRecordProperties, Store } from '@ember-data/store/-private/store-service';
|
|
12
11
|
export function peekRecordIdentifier(record: OpaqueRecordInstance): StableRecordIdentifier | undefined;
|
|
13
12
|
/**
|
|
14
13
|
Retrieves the unique referentially-stable [RecordIdentifier](/ember-data/release/classes/StableRecordIdentifier)
|
|
@@ -42,7 +41,6 @@ declare module '@ember-data/store/-private/caches/instance-cache' {
|
|
|
42
41
|
store: Store;
|
|
43
42
|
cache: Cache;
|
|
44
43
|
_storeWrapper: CacheCapabilitiesManager;
|
|
45
|
-
__cacheFor: (resource: RecordIdentifier) => Cache;
|
|
46
44
|
__cacheManager: CacheManager;
|
|
47
45
|
__instances: Caches;
|
|
48
46
|
constructor(store: Store);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance-cache.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/instance-cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instance-cache.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/instance-cache.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAA4B,MAAM,+BAA+B,CAAC;AAQrH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,eAAe,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAoBtE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,GAAG,sBAAsB,GAAG,SAAS,CAErG;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,mBAAmB,EAC/D,MAAM,EAAE,CAAC,GACR,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,C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AAW,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,QAwB3G;AAiCD,wBAAgB,YAAY,SAI3B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/document' {
|
|
2
2
|
import type { StableDocumentIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
3
|
import type { RequestInfo } from '@warp-drive/core-types/request';
|
|
4
|
-
import type { Meta, PaginationLinks } from '@warp-drive/core-types/spec/raw';
|
|
5
|
-
import type Store from '@ember-data/store/-private/store-service';
|
|
4
|
+
import type { Meta, PaginationLinks } from '@warp-drive/core-types/spec/json-api-raw';
|
|
5
|
+
import type { Store } from '@ember-data/store/-private/store-service';
|
|
6
6
|
/**
|
|
7
7
|
* A Document is a class that wraps the response content from a request to the API
|
|
8
8
|
* returned by `Cache.put` or `Cache.peek`, converting resource-identifiers into
|
|
@@ -82,7 +82,7 @@ declare module '@ember-data/store/-private/document' {
|
|
|
82
82
|
* @param {object} options
|
|
83
83
|
* @return Promise<Document>
|
|
84
84
|
*/
|
|
85
|
-
fetch(options?: Partial<RequestInfo
|
|
85
|
+
fetch(options?: Partial<RequestInfo<T, Document<T>>>): Promise<Document<T>>;
|
|
86
86
|
/**
|
|
87
87
|
* Fetches the next link for this document, returning a promise that resolves
|
|
88
88
|
* with the new document when the request completes, or null if there is no
|
|
@@ -93,7 +93,7 @@ declare module '@ember-data/store/-private/document' {
|
|
|
93
93
|
* @param {object} options
|
|
94
94
|
* @return Promise<Document | null>
|
|
95
95
|
*/
|
|
96
|
-
next(options?: Partial<RequestInfo
|
|
96
|
+
next(options?: Partial<RequestInfo<T, Document<T>>>): Promise<Document<T> | null>;
|
|
97
97
|
/**
|
|
98
98
|
* Fetches the prev link for this document, returning a promise that resolves
|
|
99
99
|
* with the new document when the request completes, or null if there is no
|
|
@@ -104,7 +104,7 @@ declare module '@ember-data/store/-private/document' {
|
|
|
104
104
|
* @param {object} options
|
|
105
105
|
* @return Promise<Document | null>
|
|
106
106
|
*/
|
|
107
|
-
prev(options?: Partial<RequestInfo
|
|
107
|
+
prev(options?: Partial<RequestInfo<T, Document<T>>>): Promise<Document<T> | null>;
|
|
108
108
|
/**
|
|
109
109
|
* Fetches the first link for this document, returning a promise that resolves
|
|
110
110
|
* with the new document when the request completes, or null if there is no
|
|
@@ -115,7 +115,7 @@ declare module '@ember-data/store/-private/document' {
|
|
|
115
115
|
* @param {object} options
|
|
116
116
|
* @return Promise<Document | null>
|
|
117
117
|
*/
|
|
118
|
-
first(options?: Partial<RequestInfo
|
|
118
|
+
first(options?: Partial<RequestInfo<T, Document<T>>>): Promise<Document<T> | null>;
|
|
119
119
|
/**
|
|
120
120
|
* Fetches the last link for this document, returning a promise that resolves
|
|
121
121
|
* with the new document when the request completes, or null if there is no
|
|
@@ -126,7 +126,7 @@ declare module '@ember-data/store/-private/document' {
|
|
|
126
126
|
* @param {object} options
|
|
127
127
|
* @return Promise<Document | null>
|
|
128
128
|
*/
|
|
129
|
-
last(options?: Partial<RequestInfo
|
|
129
|
+
last(options?: Partial<RequestInfo<T, Document<T>>>): Promise<Document<T> | null>;
|
|
130
130
|
/**
|
|
131
131
|
* Implemented for `JSON.stringify` support.
|
|
132
132
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/-private/document.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/-private/document.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAQ,IAAI,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,C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AAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAIrF;;;;;;;;;;;;OAYG;IACH,MAAM,IAAI,MAAM;CAiBjB"}
|
|
@@ -3,9 +3,9 @@ declare module '@ember-data/store/-private/legacy-model-support/record-reference
|
|
|
3
3
|
/**
|
|
4
4
|
@module @ember-data/store
|
|
5
5
|
*/
|
|
6
|
-
import type { SingleResourceDocument } from '@warp-drive/core-types/spec/raw';
|
|
6
|
+
import type { SingleResourceDocument } from '@warp-drive/core-types/spec/json-api-raw';
|
|
7
7
|
import type { OpaqueRecordInstance } from '@ember-data/store/-types/q/record-instance';
|
|
8
|
-
import type Store from '@ember-data/store/-private/store-service';
|
|
8
|
+
import type { Store } from '@ember-data/store/-private/store-service';
|
|
9
9
|
/**
|
|
10
10
|
@module @ember-data/store
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-reference.d.ts","sourceRoot":"","sources":["../../../src/-private/legacy-model-support/record-reference.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"record-reference.d.ts","sourceRoot":"","sources":["../../../src/-private/legacy-model-support/record-reference.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF;;EAEE;AACF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAEvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;EAEE;AAEF;;;;;;EAME;AACF,MAAM,CAAC,OAAO,OAAO,eAAe;IAC1B,KAAK,EAAE,KAAK,CAAC;IAErB,QAAQ,EAAG,MAAM,CAAC;IAClB,aAAa,EAAE,sBAAsB,CAAC;IAE9B,IAAI,EAAE,MAAM,CAAC;gBAET,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,sBAAsB;IAa5D,OAAO;IAIP,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;;;;;;;;;;;;;MAiBE;IACF,EAAE;IAKF;;;;;;;;;;;;;;;;;MAiBE;IACF,UAAU,IAAI,sBAAsB;IAIpC;;;;;;;;;;;;;;;;MAgBE;IACF,UAAU,IAAI,UAAU;IAIxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCE;IACF,IAAI,CAAC,eAAe,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAO9G;;;;;;;;;;;;;;;;MAgBE;IACF,KAAK,IAAI,oBAAoB,GAAG,IAAI;IAIpC;;;;;;;;;;;;;;;;MAgBE;IACF,IAAI;IAQJ;;;;;;;;;;;;;;;;MAgBE;IACF,MAAM;CAOP"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/legacy-model-support/shim-model-class' {
|
|
2
2
|
import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
|
|
3
|
-
import type {
|
|
3
|
+
import type { LegacyAttributeField, LegacyRelationshipSchema } from '@warp-drive/core-types/schema/fields';
|
|
4
4
|
import type { KeyOrString, ModelSchema } from '@ember-data/store/-types/q/ds-model';
|
|
5
|
-
import type Store from '@ember-data/store/-private/store-service';
|
|
5
|
+
import type { Store } from '@ember-data/store/-private/store-service';
|
|
6
6
|
export function getShimClass<T>(store: Store, modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string): ShimModelClass<T>;
|
|
7
7
|
export default class ShimModelClass<T = unknown> implements ModelSchema<T> {
|
|
8
8
|
__store: Store;
|
|
9
9
|
modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
|
|
10
10
|
constructor(store: Store, modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string);
|
|
11
11
|
get fields(): Map<KeyOrString<T>, 'attribute' | 'belongsTo' | 'hasMany'>;
|
|
12
|
-
get attributes(): Map<KeyOrString<T>,
|
|
13
|
-
get relationshipsByName(): Map<KeyOrString<T>,
|
|
14
|
-
eachAttribute<K extends KeyOrString<T>>(callback: (key: K, attribute:
|
|
15
|
-
eachRelationship<K extends KeyOrString<T>>(callback: (key: K, relationship:
|
|
12
|
+
get attributes(): Map<KeyOrString<T>, LegacyAttributeField>;
|
|
13
|
+
get relationshipsByName(): Map<KeyOrString<T>, LegacyRelationshipSchema>;
|
|
14
|
+
eachAttribute<K extends KeyOrString<T>>(callback: (key: K, attribute: LegacyAttributeField) => void, binding?: T): void;
|
|
15
|
+
eachRelationship<K extends KeyOrString<T>>(callback: (key: K, relationship: LegacyRelationshipSchema) => void, binding?: T): void;
|
|
16
16
|
eachTransformedAttribute<K extends KeyOrString<T>>(callback: (key: K, type: string | null) => void, binding?: T): void;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim-model-class.d.ts","sourceRoot":"","sources":["../../../src/-private/legacy-model-support/shim-model-class.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shim-model-class.d.ts","sourceRoot":"","sources":["../../../src/-private/legacy-model-support/shim-model-class.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAE3G,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAM9C,wBAAgB,YAAY,CAAC,CAAC,EAC5B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,CAAC,SAAS,mBAAmB,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,MAAM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capabilities-manager' {
|
|
2
2
|
import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
|
-
import type { CacheCapabilitiesManager as StoreWrapper } from '@ember-data/store/-types/q/cache-
|
|
3
|
+
import type { CacheCapabilitiesManager as StoreWrapper } from '@ember-data/store/-types/q/cache-capabilities-manager';
|
|
4
4
|
import type { SchemaService } from '@ember-data/store/-types/q/schema-service';
|
|
5
5
|
import type { IdentifierCache } from '@ember-data/store/-private/caches/identifier-cache';
|
|
6
|
-
import type Store from '@ember-data/store/-private/store-service';
|
|
6
|
+
import type { Store } from '@ember-data/store/-private/store-service';
|
|
7
7
|
import type { NotificationType } from '@ember-data/store/-private/managers/notification-manager';
|
|
8
8
|
/**
|
|
9
9
|
@module @ember-data/store
|
|
10
10
|
*/
|
|
11
|
+
export interface CacheCapabilitiesManager {
|
|
12
|
+
getSchemaDefinitionService(): SchemaService;
|
|
13
|
+
}
|
|
11
14
|
export class CacheCapabilitiesManager implements StoreWrapper {
|
|
12
15
|
_willNotify: boolean;
|
|
13
16
|
_pendingNotifies: Map<StableRecordIdentifier, Set<string>>;
|
|
@@ -19,7 +22,6 @@ declare module '@ember-data/store/-private/managers/cache-capabilities-manager'
|
|
|
19
22
|
notifyChange(identifier: StableRecordIdentifier, namespace: 'added' | 'removed'): void;
|
|
20
23
|
notifyChange(identifier: StableDocumentIdentifier, namespace: 'added' | 'updated' | 'removed'): void;
|
|
21
24
|
notifyChange(identifier: StableRecordIdentifier, namespace: NotificationType, key?: string): void;
|
|
22
|
-
getSchemaDefinitionService(): SchemaService;
|
|
23
25
|
get schema(): SchemaService;
|
|
24
26
|
setRecordId(identifier: StableRecordIdentifier, id: string): void;
|
|
25
27
|
hasRecord(identifier: StableRecordIdentifier): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-capabilities-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/cache-capabilities-manager.ts"],"names":[],"mappings":"AAEA,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AAE,sBAAsB,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAkBjG,IAAI,MAAM,kBAET;IAED,WAAW,CAAC,UAAU,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM;IAK1D,SAAS,CAAC,UAAU,EAAE,sBAAsB,GAAG,OAAO;IAItD,gBAAgB,CAAC,UAAU,EAAE,sBAAsB,GAAG,IAAI;CAK3D"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/managers/cache-manager' {
|
|
2
2
|
import type { Cache, ChangedAttributesHash, RelationshipDiff } from '@warp-drive/core-types/cache';
|
|
3
3
|
import type { Change } from '@warp-drive/core-types/cache/change';
|
|
4
|
+
import type { MergeOperation } from '@warp-drive/core-types/cache/operations';
|
|
4
5
|
import type { CollectionRelationship, ResourceRelationship } from '@warp-drive/core-types/cache/relationship';
|
|
5
6
|
import type { LocalRelationshipOperation } from '@warp-drive/core-types/graph';
|
|
6
7
|
import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
@@ -8,8 +9,6 @@ declare module '@ember-data/store/-private/managers/cache-manager' {
|
|
|
8
9
|
import type { StructuredDataDocument, StructuredDocument } from '@warp-drive/core-types/request';
|
|
9
10
|
import type { ResourceDocument, SingleResourceDataDocument } from '@warp-drive/core-types/spec/document';
|
|
10
11
|
import type { ApiError } from '@warp-drive/core-types/spec/error';
|
|
11
|
-
import type { MergeOperation } from '@ember-data/store/-types/q/cache';
|
|
12
|
-
import type { JsonApiResource } from '@ember-data/store/-types/q/record-data-json-api';
|
|
13
12
|
import type { StoreRequestContext } from '@ember-data/store/-private/cache-handler';
|
|
14
13
|
/**
|
|
15
14
|
* The CacheManager wraps a Cache enforcing that only
|
|
@@ -134,7 +133,7 @@ declare module '@ember-data/store/-private/managers/cache-manager' {
|
|
|
134
133
|
* @param hasRecord
|
|
135
134
|
* @return {void | string[]} if `hasRecord` is true then calculated key changes should be returned
|
|
136
135
|
*/
|
|
137
|
-
upsert(identifier: StableRecordIdentifier, data:
|
|
136
|
+
upsert(identifier: StableRecordIdentifier, data: unknown, hasRecord: boolean): void | string[];
|
|
138
137
|
/**
|
|
139
138
|
* Create a fork of the cache from the current state.
|
|
140
139
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/cache-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACnG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAC9G,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC1G,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AACzG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"cache-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/cache-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACnG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;A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
1
|
declare module '@ember-data/store/-private/managers/notification-manager' {
|
|
2
2
|
import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
|
-
import type Store from '@ember-data/store/-private/store-service';
|
|
3
|
+
import type { Store } from '@ember-data/store/-private/store-service';
|
|
4
4
|
export type UnsubscribeToken = object;
|
|
5
5
|
export type CacheOperation = 'added' | 'removed' | 'updated' | 'state';
|
|
6
6
|
export type NotificationType = 'attributes' | 'relationships' | 'identity' | 'errors' | 'meta' | 'state';
|
|
7
7
|
export interface NotificationCallback {
|
|
8
8
|
(identifier: StableRecordIdentifier, notificationType: 'attributes' | 'relationships', key?: string): void;
|
|
9
9
|
(identifier: StableRecordIdentifier, notificationType: 'errors' | 'meta' | 'identity' | 'state'): void;
|
|
10
|
-
(identifier: StableRecordIdentifier, notificationType: NotificationType, key?: string): void;
|
|
11
10
|
}
|
|
12
11
|
export interface ResourceOperationCallback {
|
|
13
12
|
(identifier: StableRecordIdentifier, notificationType: CacheOperation): void;
|
|
@@ -63,8 +62,7 @@ declare module '@ember-data/store/-private/managers/notification-manager' {
|
|
|
63
62
|
*/
|
|
64
63
|
subscribe(identifier: StableRecordIdentifier, callback: NotificationCallback): UnsubscribeToken;
|
|
65
64
|
subscribe(identifier: 'resource', callback: ResourceOperationCallback): UnsubscribeToken;
|
|
66
|
-
subscribe(identifier: StableDocumentIdentifier, callback: DocumentOperationCallback): UnsubscribeToken;
|
|
67
|
-
subscribe(identifier: 'document', callback: DocumentOperationCallback): UnsubscribeToken;
|
|
65
|
+
subscribe(identifier: 'document' | StableDocumentIdentifier, callback: DocumentOperationCallback): UnsubscribeToken;
|
|
68
66
|
/**
|
|
69
67
|
* remove a previous subscription
|
|
70
68
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/notification-manager.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,wBAAwB,EAAE,s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,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO;IACpH,kBAAkB,CAAC,UAAU,EAAE,sBAAsB,EAAE,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO;IAChH,kBAAkB,CAAC,UAAU,EAAE,sBAAsB,GAAG,wBAAwB,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO;IAoCjH,OAAO;CAKR"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/managers/record-array-manager' {
|
|
2
2
|
import type { StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
3
|
import type { ImmutableRequestInfo } from '@warp-drive/core-types/request';
|
|
4
|
-
import type { CollectionResourceDocument } from '@warp-drive/core-types/spec/raw';
|
|
5
|
-
import
|
|
6
|
-
import type Store from '@ember-data/store/-private/store-service';
|
|
4
|
+
import type { CollectionResourceDocument } from '@warp-drive/core-types/spec/json-api-raw';
|
|
5
|
+
import { Collection, IdentifierArray } from '@ember-data/store/-private/record-arrays/identifier-array';
|
|
6
|
+
import type { Store } from '@ember-data/store/-private/store-service';
|
|
7
7
|
import type { UnsubscribeToken } from '@ember-data/store/-private/managers/notification-manager';
|
|
8
8
|
/**
|
|
9
9
|
* This is a clever optimization.
|
|
@@ -49,7 +49,7 @@ declare module '@ember-data/store/-private/managers/record-array-manager' {
|
|
|
49
49
|
@class RecordArrayManager
|
|
50
50
|
@internal
|
|
51
51
|
*/
|
|
52
|
-
class RecordArrayManager {
|
|
52
|
+
export class RecordArrayManager {
|
|
53
53
|
store: Store;
|
|
54
54
|
isDestroying: boolean;
|
|
55
55
|
isDestroyed: boolean;
|
|
@@ -92,6 +92,6 @@ declare module '@ember-data/store/-private/managers/record-array-manager' {
|
|
|
92
92
|
destroy(): void;
|
|
93
93
|
}
|
|
94
94
|
export function disassociateIdentifier(ArraysCache: Map<StableRecordIdentifier, Set<Collection>>, array: Collection, identifier: StableRecordIdentifier): void;
|
|
95
|
-
export
|
|
95
|
+
export {};
|
|
96
96
|
}
|
|
97
97
|
//# sourceMappingURL=record-array-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-array-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/record-array-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"record-array-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/record-array-manager.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAG3F,OAAO,EAEL,UAAU,EACV,eAAe,EAIhB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAkB,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,QAUnD;AAED,KAAK,SAAS,GAAG,GAAG,CAAC,sBAAsB,EAAE,KAAK,GAAG,KAAK,CAAC,CAAC;AAE5D;;;EAGE;AACF,qBAAa,kBAAkB;IACrB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACxD,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACpC,QAAQ,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IAC/B,QAAQ,EAAE,GA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AI;IAgB3D,KAAK,CAAC,OAAO,UAAO;IAUpB,OAAO;CAOR;AA4BD,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,GAAG,CAAC,sBAAsB,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,EACzD,KAAK,EAAE,UAAU,EACjB,UAAU,EAAE,sBAAsB,QAMnC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private/network/request-cache' {
|
|
2
2
|
import type { StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
3
|
import type { FindRecordOptions } from '@ember-data/store/-types/q/store';
|
|
4
|
-
import type Store from '@ember-data/store/-private/store-service';
|
|
5
|
-
const Touching: unique
|
|
6
|
-
export const RequestPromise: unique
|
|
4
|
+
import type { Store } from '@ember-data/store/-private/store-service';
|
|
5
|
+
const Touching: "___(unique) Symbol(Touching)";
|
|
6
|
+
export const RequestPromise: "___(unique) Symbol(RequestPromise)";
|
|
7
7
|
export interface Operation {
|
|
8
8
|
op: string;
|
|
9
9
|
options: FindRecordOptions | undefined;
|
|
@@ -41,7 +41,7 @@ declare module '@ember-data/store/-private/network/request-cache' {
|
|
|
41
41
|
* @class RequestStateService
|
|
42
42
|
* @public
|
|
43
43
|
*/
|
|
44
|
-
export
|
|
44
|
+
export class RequestStateService {
|
|
45
45
|
_pending: Map<StableRecordIdentifier, InternalRequest[]>;
|
|
46
46
|
_done: Map<StableRecordIdentifier, InternalRequest[]>;
|
|
47
47
|
_subscriptions: Map<StableRecordIdentifier, RequestSubscription[]>;
|