@ember-data-types/store 5.6.0-alpha.5 → 5.6.0-beta.1
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/package.json +1 -1
- package/unstable-preview-types/-private.d.ts +3 -29
- package/unstable-preview-types/configure.d.ts +14 -14
- package/unstable-preview-types/index.d.ts +4 -225
- package/unstable-preview-types/types.d.ts +3 -6
- package/unstable-preview-types/-private/cache-handler/handler.d.ts +0 -59
- package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +0 -1
- package/unstable-preview-types/-private/cache-handler/types.d.ts +0 -101
- package/unstable-preview-types/-private/cache-handler/types.d.ts.map +0 -1
- package/unstable-preview-types/-private/cache-handler/utils.d.ts +0 -34
- package/unstable-preview-types/-private/cache-handler/utils.d.ts.map +0 -1
- package/unstable-preview-types/-private/caches/cache-utils.d.ts +0 -11
- package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +0 -1
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts +0 -171
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +0 -1
- package/unstable-preview-types/-private/caches/instance-cache.d.ts +0 -63
- package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +0 -1
- package/unstable-preview-types/-private/caches/resource-utils.d.ts +0 -12
- package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +0 -1
- package/unstable-preview-types/-private/debug/utils.d.ts +0 -9
- package/unstable-preview-types/-private/debug/utils.d.ts.map +0 -1
- package/unstable-preview-types/-private/document.d.ts +0 -149
- package/unstable-preview-types/-private/document.d.ts.map +0 -1
- package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +0 -166
- package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +0 -1
- package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +0 -19
- package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +0 -1
- package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +0 -28
- package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +0 -1
- package/unstable-preview-types/-private/managers/cache-manager.d.ts +0 -430
- package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +0 -1
- package/unstable-preview-types/-private/managers/notification-manager.d.ts +0 -95
- package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +0 -1
- package/unstable-preview-types/-private/managers/record-array-manager.d.ts +0 -100
- package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +0 -1
- package/unstable-preview-types/-private/network/request-cache.d.ts +0 -106
- package/unstable-preview-types/-private/network/request-cache.d.ts.map +0 -1
- package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +0 -257
- package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +0 -1
- package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +0 -91
- package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +0 -1
- package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts +0 -172
- package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts.map +0 -1
- package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts +0 -32
- package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts.map +0 -1
- package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +0 -256
- package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +0 -1
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +0 -143
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +0 -1
- package/unstable-preview-types/-private/record-arrays/many-array.d.ts +0 -202
- package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +0 -1
- package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +0 -118
- package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +0 -1
- package/unstable-preview-types/-private/store-service.d.ts +0 -1597
- package/unstable-preview-types/-private/store-service.d.ts.map +0 -1
- package/unstable-preview-types/-private/store-service.type-test.d.ts +0 -4
- package/unstable-preview-types/-private/store-service.type-test.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/coerce-id.d.ts +0 -7
- package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/construct-resource.d.ts +0 -9
- package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +0 -4
- package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +0 -4
- package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +0 -4
- package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +0 -1
- package/unstable-preview-types/-private.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +0 -102
- package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/ds-model.d.ts +0 -24
- package/unstable-preview-types/-types/q/ds-model.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/identifier.d.ts +0 -175
- package/unstable-preview-types/-types/q/identifier.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/promise-proxies.d.ts +0 -4
- package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/record-data-json-api.d.ts +0 -33
- package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/record-instance.d.ts +0 -24
- package/unstable-preview-types/-types/q/record-instance.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/schema-service.d.ts +0 -334
- package/unstable-preview-types/-types/q/schema-service.d.ts.map +0 -1
- package/unstable-preview-types/-types/q/store.d.ts +0 -37
- package/unstable-preview-types/-types/q/store.d.ts.map +0 -1
- package/unstable-preview-types/configure.d.ts.map +0 -1
- package/unstable-preview-types/index.d.ts.map +0 -1
- package/unstable-preview-types/types.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store-service.d.ts","sourceRoot":"","sources":["../../src/-private/store-service.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAYlD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChH,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAI3F,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC9G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EACL,aAAa,EAKb,QA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|
1
|
-
declare module '@ember-data/store/-private/utils/coerce-id' {
|
|
2
|
-
type Coercable = string | number | boolean | null | undefined | symbol;
|
|
3
|
-
export function coerceId(id: unknown): string | null;
|
|
4
|
-
export function ensureStringId(id: Coercable): string;
|
|
5
|
-
export {};
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=coerce-id.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coerce-id.d.ts","sourceRoot":"","sources":["../../../src/-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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare module '@ember-data/store/-private/utils/construct-resource' {
|
|
2
|
-
import type { ExistingResourceIdentifierObject, ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
|
|
3
|
-
export function constructResource(type: ResourceIdentifierObject): ResourceIdentifierObject;
|
|
4
|
-
export function constructResource(type: string, id: string, lid: string): ExistingResourceIdentifierObject;
|
|
5
|
-
export function constructResource(type: string | undefined, id: null | undefined, lid: string): ExistingResourceIdentifierObject;
|
|
6
|
-
export function constructResource(type: string, id: string, lid?: string | null): ExistingResourceIdentifierObject;
|
|
7
|
-
export function constructResource(type: string, id?: string | number | null, lid?: string | null): ResourceIdentifierObject;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=construct-resource.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"construct-resource.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/construct-resource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gCAAgC,EAChC,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAMlD,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-non-empty-string.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/is-non-empty-string.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAE5D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-model-name.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/normalize-model-name.ts"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAsBvD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid-polyfill.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/uuid-polyfill.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,eAAe,SAiEtC"}
|
|
@@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W,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,IAAI,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AACpG,YAAY,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EACL,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,IAAI,YAAY,GAC9C,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,yBAAyB,GAC1B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,YAAY,EACZ,aAAa,EACb,OAAO,EACP,KAAK,eAAe,EACpB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,6CAA6C,CAAC"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
declare module '@ember-data/store/-types/q/cache-capabilities-manager' {
|
|
2
|
-
import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
|
-
import type { IdentifierCache } from '@ember-data/store/-private/caches/identifier-cache';
|
|
4
|
-
import type { NotificationType } from '@ember-data/store/-private/managers/notification-manager';
|
|
5
|
-
import type { SchemaService } from '@ember-data/store/-types/q/schema-service';
|
|
6
|
-
/**
|
|
7
|
-
* CacheCapabilitiesManager provides encapsulated API access to the minimal
|
|
8
|
-
* subset of the Store's functionality that Cache implementations
|
|
9
|
-
* should interact with. It is provided to the Store's `createCache` hook.
|
|
10
|
-
*
|
|
11
|
-
* Cache implementations should not need more than this API provides.
|
|
12
|
-
*
|
|
13
|
-
* This class cannot be directly instantiated.
|
|
14
|
-
*
|
|
15
|
-
* @class CacheCapabilitiesManager
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
export type CacheCapabilitiesManager = {
|
|
19
|
-
/**
|
|
20
|
-
* Provides access to the IdentifierCache instance
|
|
21
|
-
* for this Store instance.
|
|
22
|
-
*
|
|
23
|
-
* The IdentifierCache can be used to peek, generate or
|
|
24
|
-
* retrieve a stable unique identifier for any resource.
|
|
25
|
-
*
|
|
26
|
-
* @property identifierCache
|
|
27
|
-
* @type {IdentifierCache}
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
identifierCache: IdentifierCache;
|
|
31
|
-
/**
|
|
32
|
-
* DEPRECATED - use the schema property
|
|
33
|
-
*
|
|
34
|
-
* Provides access to the SchemaService instance
|
|
35
|
-
* for this Store instance.
|
|
36
|
-
*
|
|
37
|
-
* The SchemaService can be used to query for
|
|
38
|
-
* information about the schema of a resource.
|
|
39
|
-
*
|
|
40
|
-
* @deprecated
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
|
-
getSchemaDefinitionService(): SchemaService;
|
|
44
|
-
/**
|
|
45
|
-
* Provides access to the SchemaService instance
|
|
46
|
-
* for this Store instance.
|
|
47
|
-
*
|
|
48
|
-
* The SchemaService can be used to query for
|
|
49
|
-
* information about the schema of a resource.
|
|
50
|
-
*
|
|
51
|
-
* @property schema
|
|
52
|
-
* @public
|
|
53
|
-
*/
|
|
54
|
-
schema: SchemaService;
|
|
55
|
-
/**
|
|
56
|
-
* Update the `id` for the record corresponding to the identifier
|
|
57
|
-
* This operation can only be done for records whose `id` is `null`.
|
|
58
|
-
*
|
|
59
|
-
* @param {StableRecordIdentifier} identifier;
|
|
60
|
-
* @param {String} id;
|
|
61
|
-
* @public
|
|
62
|
-
*/
|
|
63
|
-
setRecordId(identifier: StableRecordIdentifier, id: string): void;
|
|
64
|
-
/**
|
|
65
|
-
* Signal to the store that the specified record may be considered fully
|
|
66
|
-
* removed from the cache. Generally this means that not only does no
|
|
67
|
-
* data exist for the identified resource, no known relationships still
|
|
68
|
-
* point to it either.
|
|
69
|
-
*
|
|
70
|
-
* @param {StableRecordIdentifier} identifier
|
|
71
|
-
* @public
|
|
72
|
-
*/
|
|
73
|
-
disconnectRecord(identifier: StableRecordIdentifier): void;
|
|
74
|
-
/**
|
|
75
|
-
* Use this method to determine if the Store has an instantiated record associated
|
|
76
|
-
* with an identifier.
|
|
77
|
-
*
|
|
78
|
-
* @param identifier
|
|
79
|
-
* @return {Boolean}
|
|
80
|
-
* @public
|
|
81
|
-
*/
|
|
82
|
-
hasRecord(identifier: StableRecordIdentifier): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Notify subscribers of the NotificationManager that cache state has changed.
|
|
85
|
-
*
|
|
86
|
-
* `attributes` and `relationships` do not require a key, but if one is specified it
|
|
87
|
-
* is assumed to be the name of the attribute or relationship that has been updated.
|
|
88
|
-
*
|
|
89
|
-
* No other namespaces currently expect the `key` argument.
|
|
90
|
-
*
|
|
91
|
-
* @param {StableRecordIdentifier} identifier
|
|
92
|
-
* @param {'attributes' | 'relationships' | 'identity' | 'errors' | 'meta' | 'state'} namespace
|
|
93
|
-
* @param {string|undefined} key
|
|
94
|
-
* @public
|
|
95
|
-
*/
|
|
96
|
-
notifyChange(identifier: StableRecordIdentifier, namespace: 'added' | 'removed', key: null): void;
|
|
97
|
-
notifyChange(identifier: StableDocumentIdentifier, namespace: 'added' | 'updated' | 'removed', key: null): void;
|
|
98
|
-
notifyChange(identifier: StableRecordIdentifier, namespace: NotificationType, key: string | null): void;
|
|
99
|
-
notifyChange(identifier: StableRecordIdentifier | StableDocumentIdentifier, namespace: NotificationType | 'added' | 'removed' | 'updated', key: string | null): void;
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=cache-capabilities-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|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AAsB,GAAG,wBAAwB,EAC7D,SAAS,EAAE,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,EAC7D,GAAG,EAAE,MAAM,GAAG,IAAI,GACjB,IAAI,CAAC;CACT,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare module '@ember-data/store/-types/q/ds-model' {
|
|
2
|
-
import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
|
|
3
|
-
import type { LegacyAttributeField, LegacyRelationshipField } from '@warp-drive/core-types/schema/fields';
|
|
4
|
-
export type KeyOrString<T> = keyof T & string extends never ? string : keyof T & string;
|
|
5
|
-
/**
|
|
6
|
-
* Minimum subset of static schema methods and properties on the
|
|
7
|
-
* "model" class.
|
|
8
|
-
*
|
|
9
|
-
* Only used when using the legacy schema-service implementation
|
|
10
|
-
* for @ember-data/model or when wrapping schema for legacy
|
|
11
|
-
* Adapters/Serializers.
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
export interface ModelSchema<T = unknown> {
|
|
15
|
-
modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
|
|
16
|
-
fields: Map<KeyOrString<T>, 'attribute' | 'belongsTo' | 'hasMany'>;
|
|
17
|
-
attributes: Map<KeyOrString<T>, LegacyAttributeField>;
|
|
18
|
-
relationshipsByName: Map<KeyOrString<T>, LegacyRelationshipField>;
|
|
19
|
-
eachAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, attribute: LegacyAttributeField) => void, binding?: T): void;
|
|
20
|
-
eachRelationship<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, relationship: LegacyRelationshipField) => void, binding?: T): void;
|
|
21
|
-
eachTransformedAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, type: string | null) => void, binding?: T): void;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=ds-model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|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,wBAAwB,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,EAC/C,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,EACrE,OAAO,CAAC,EAAE,CAAC,GACV,IAAI,CAAC;CACT"}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
declare module '@ember-data/store/-types/q/identifier' {
|
|
2
|
-
import type { ImmutableRequestInfo } from '@ember-data/request';
|
|
3
|
-
import type { IdentifierBucket, StableIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
4
|
-
/**
|
|
5
|
-
Configures how unique identifier lid strings are generated by @ember-data/store.
|
|
6
|
-
|
|
7
|
-
This configuration MUST occur prior to the store instance being created.
|
|
8
|
-
|
|
9
|
-
Takes a method which can expect to receive various data as its first argument
|
|
10
|
-
and the name of a bucket as its second argument.
|
|
11
|
-
|
|
12
|
-
Currently there are two buckets, 'record' and 'document'.
|
|
13
|
-
|
|
14
|
-
### Resource (`Record`) Identity
|
|
15
|
-
|
|
16
|
-
If the bucket is `record` the method must return a unique (to at-least
|
|
17
|
-
the given bucket) string identifier for the given data as a string to be
|
|
18
|
-
used as the `lid` of an `Identifier` token.
|
|
19
|
-
|
|
20
|
-
This method will only be called by either `getOrCreateRecordIdentifier` or
|
|
21
|
-
`createIdentifierForNewRecord` when an identifier for the supplied data
|
|
22
|
-
is not already known via `lid` or `type + id` combo and one needs to be
|
|
23
|
-
generated or retrieved from a proprietary cache.
|
|
24
|
-
|
|
25
|
-
`data` will be the same data argument provided to `getOrCreateRecordIdentifier`
|
|
26
|
-
and in the `createIdentifierForNewRecord` case will be an object with
|
|
27
|
-
only `type` as a key.
|
|
28
|
-
|
|
29
|
-
```ts
|
|
30
|
-
import { setIdentifierGenerationMethod } from '@ember-data/store';
|
|
31
|
-
|
|
32
|
-
export function initialize(applicationInstance) {
|
|
33
|
-
// note how `count` here is now scoped to the application instance
|
|
34
|
-
// for our generation method by being inside the closure provided
|
|
35
|
-
// by the initialize function
|
|
36
|
-
let count = 0;
|
|
37
|
-
|
|
38
|
-
setIdentifierGenerationMethod((resource, bucket) => {
|
|
39
|
-
return resource.lid || `my-key-${count++}`;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default {
|
|
44
|
-
name: 'configure-ember-data-identifiers',
|
|
45
|
-
initialize
|
|
46
|
-
};
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Document Identity
|
|
50
|
-
|
|
51
|
-
If the bucket is `document` the method will receive the associated
|
|
52
|
-
immutable `request` passed to `store.request` as its first argument
|
|
53
|
-
and should return a unique string for the given request if the document
|
|
54
|
-
should be cached, and `null` if it should not be cached.
|
|
55
|
-
|
|
56
|
-
Note, the request result will still be passed to the cache via `Cache.put`,
|
|
57
|
-
but caches should take this as a signal that the document should not itself
|
|
58
|
-
be cached, while its contents may still be used to update other cache state.
|
|
59
|
-
|
|
60
|
-
The presence of `cacheOptions.key` on the request will take precedence
|
|
61
|
-
for the document cache key, and this method will not be called if it is
|
|
62
|
-
present.
|
|
63
|
-
|
|
64
|
-
The default method implementation for this bucket is to return `null`
|
|
65
|
-
for all requests whose method is not `GET`, and to return the `url` for
|
|
66
|
-
those where it is.
|
|
67
|
-
|
|
68
|
-
This means that queries via `POST` MUST provide `cacheOptions.key` or
|
|
69
|
-
implement this hook.
|
|
70
|
-
|
|
71
|
-
⚠️ Caution: Requests that do not have a `method` assigned are assumed to be `GET`
|
|
72
|
-
|
|
73
|
-
@param method
|
|
74
|
-
@public
|
|
75
|
-
*/
|
|
76
|
-
export interface GenerationMethod {
|
|
77
|
-
(data: ImmutableRequestInfo, bucket: 'document'): string | null;
|
|
78
|
-
(data: unknown | {
|
|
79
|
-
type: string;
|
|
80
|
-
}, bucket: 'record'): string;
|
|
81
|
-
(data: unknown, bucket: IdentifierBucket): string | null;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
Configure a callback for when the identifier cache encounters new resource
|
|
85
|
-
data for an existing resource.
|
|
86
|
-
|
|
87
|
-
This configuration MUST occur prior to the store instance being created.
|
|
88
|
-
|
|
89
|
-
```js
|
|
90
|
-
import { setIdentifierUpdateMethod } from '@ember-data/store';
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
Takes a method which can expect to receive an existing `Identifier` alongside
|
|
94
|
-
some new data to consider as a second argument. This is an opportunity
|
|
95
|
-
for secondary lookup tables and caches associated with the identifier
|
|
96
|
-
to be amended.
|
|
97
|
-
|
|
98
|
-
This method is called everytime `updateRecordIdentifier` is called and
|
|
99
|
-
with the same arguments. It provides the opportunity to update secondary
|
|
100
|
-
lookup tables for existing identifiers.
|
|
101
|
-
|
|
102
|
-
It will always be called after an identifier created with `createIdentifierForNewRecord`
|
|
103
|
-
has been committed, or after an update to the `record` a `RecordIdentifier`
|
|
104
|
-
is assigned to has been committed. Committed here meaning that the server
|
|
105
|
-
has acknowledged the update (for instance after a call to `.save()`)
|
|
106
|
-
|
|
107
|
-
If `id` has not previously existed, it will be assigned to the `Identifier`
|
|
108
|
-
prior to this `UpdateMethod` being called; however, calls to the parent method
|
|
109
|
-
`updateRecordIdentifier` that attempt to change the `id` or calling update
|
|
110
|
-
without providing an `id` when one is missing will throw an error.
|
|
111
|
-
|
|
112
|
-
@param method
|
|
113
|
-
@public
|
|
114
|
-
*/
|
|
115
|
-
export type UpdateMethod = {
|
|
116
|
-
(identifier: StableRecordIdentifier, newData: unknown, bucket: 'record'): void;
|
|
117
|
-
(identifier: StableIdentifier, newData: unknown, bucket: never): void;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
Configure a callback for when the identifier cache is going to release an identifier.
|
|
121
|
-
|
|
122
|
-
This configuration MUST occur prior to the store instance being created.
|
|
123
|
-
|
|
124
|
-
```js
|
|
125
|
-
import { setIdentifierForgetMethod } from '@ember-data/store';
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
Takes method which can expect to receive an existing `Identifier` that should be eliminated
|
|
129
|
-
from any secondary lookup tables or caches that the user has populated for it.
|
|
130
|
-
|
|
131
|
-
@param method
|
|
132
|
-
@public
|
|
133
|
-
*/
|
|
134
|
-
export type ForgetMethod = (identifier: StableIdentifier | StableRecordIdentifier, bucket: IdentifierBucket) => void;
|
|
135
|
-
/**
|
|
136
|
-
Configure a callback for when the identifier cache is being torn down.
|
|
137
|
-
|
|
138
|
-
This configuration MUST occur prior to the store instance being created.
|
|
139
|
-
|
|
140
|
-
```js
|
|
141
|
-
import { setIdentifierResetMethod } from '@ember-data/store';
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
Takes a method which can expect to be called when the parent application is destroyed.
|
|
145
|
-
|
|
146
|
-
If you have properly used a WeakMap to encapsulate the state of your customization
|
|
147
|
-
to the application instance, you may not need to implement the `resetMethod`.
|
|
148
|
-
|
|
149
|
-
@param method
|
|
150
|
-
@public
|
|
151
|
-
*/
|
|
152
|
-
export type ResetMethod = () => void;
|
|
153
|
-
/**
|
|
154
|
-
Configure a callback for when the identifier cache is generating a new
|
|
155
|
-
StableRecordIdentifier for a resource.
|
|
156
|
-
|
|
157
|
-
This method controls the `type` and `id` that will be assigned to the
|
|
158
|
-
`StableRecordIdentifier` that is created.
|
|
159
|
-
|
|
160
|
-
This configuration MUST occur prior to the store instance being created.
|
|
161
|
-
|
|
162
|
-
```js
|
|
163
|
-
import { setKeyInfoForResource } from '@ember-data/store';
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
@param method
|
|
167
|
-
@public
|
|
168
|
-
*/
|
|
169
|
-
export type KeyInfo = {
|
|
170
|
-
id: string | null;
|
|
171
|
-
type: string;
|
|
172
|
-
};
|
|
173
|
-
export type KeyInfoMethod = (resource: unknown, known: StableRecordIdentifier | null) => KeyInfo;
|
|
174
|
-
}
|
|
175
|
-
//# sourceMappingURL=identifier.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|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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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"promise-proxies.d.ts","sourceRoot":"","sources":["../../../src/-types/q/promise-proxies.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
declare module '@ember-data/store/-types/q/record-data-json-api' {
|
|
2
|
-
import type { Value } from '@warp-drive/core-types/json/raw';
|
|
3
|
-
import type { CollectionResourceRelationship, Link, Links, Meta, SingleResourceRelationship } from '@warp-drive/core-types/spec/json-api-raw';
|
|
4
|
-
export type AttributesHash = Record<string, Value>;
|
|
5
|
-
export interface JsonApiResource {
|
|
6
|
-
id?: string | null;
|
|
7
|
-
type?: string;
|
|
8
|
-
lid?: string;
|
|
9
|
-
attributes?: AttributesHash;
|
|
10
|
-
relationships?: Record<string, SingleResourceRelationship | CollectionResourceRelationship>;
|
|
11
|
-
meta?: Meta;
|
|
12
|
-
links?: Links;
|
|
13
|
-
}
|
|
14
|
-
export interface JsonApiError {
|
|
15
|
-
id?: string;
|
|
16
|
-
title?: string;
|
|
17
|
-
detail?: string;
|
|
18
|
-
links?: {
|
|
19
|
-
about?: Link;
|
|
20
|
-
type?: Link;
|
|
21
|
-
};
|
|
22
|
-
status?: string;
|
|
23
|
-
code?: string;
|
|
24
|
-
source?: {
|
|
25
|
-
pointer: string;
|
|
26
|
-
parameter?: string;
|
|
27
|
-
header?: string;
|
|
28
|
-
};
|
|
29
|
-
meta?: Meta;
|
|
30
|
-
}
|
|
31
|
-
export type JsonApiRelationship = SingleResourceRelationship | CollectionResourceRelationship;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=record-data-json-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record-data-json-api.d.ts","sourceRoot":"","sources":["../../../src/-types/q/record-data-json-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EACV,8BAA8B,EAC9B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,0BAA0B,EAC3B,MAAM,0CAA0C,CAAC;AAElD,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"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare module '@ember-data/store/-types/q/record-instance' {
|
|
2
|
-
/**
|
|
3
|
-
In EmberData, a "record instance" is a class instance used to present the data
|
|
4
|
-
for a single resource, transforming the resource's cached raw data into a form
|
|
5
|
-
that is useful for the application.
|
|
6
|
-
|
|
7
|
-
Since every application's needs are different, EmberData does not assume to know
|
|
8
|
-
what the shape of the record instance should be. Instead, it provides a way to
|
|
9
|
-
define the record instance's via the `instantiateRecord` hook on the store.
|
|
10
|
-
|
|
11
|
-
Thus for most purposes the `RecordInstance` type is "opaque" to EmberData, and
|
|
12
|
-
should be treated as "unknown" by the library.
|
|
13
|
-
|
|
14
|
-
Wherever possible, if typing an API that is consumer facing, instead of using
|
|
15
|
-
OpaqueRecordInstance, we should prefer to use a generic and check if the generic
|
|
16
|
-
extends `TypedRecordInstance`. This allows consumers to define their own record
|
|
17
|
-
instance types and not only have their types flow through EmberData APIs, but
|
|
18
|
-
also allows EmberData to provide typechecking and intellisense for the record
|
|
19
|
-
based on a special symbol prsent on record instances that implement the
|
|
20
|
-
`TypedRecordInstance` interface.
|
|
21
|
-
*/
|
|
22
|
-
export type OpaqueRecordInstance = unknown;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=record-instance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record-instance.d.ts","sourceRoot":"","sources":["../../../src/-types/q/record-instance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;EAmBE;AACF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC"}
|