@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.
Files changed (87) hide show
  1. package/package.json +1 -1
  2. package/unstable-preview-types/-private.d.ts +3 -29
  3. package/unstable-preview-types/configure.d.ts +14 -14
  4. package/unstable-preview-types/index.d.ts +4 -225
  5. package/unstable-preview-types/types.d.ts +3 -6
  6. package/unstable-preview-types/-private/cache-handler/handler.d.ts +0 -59
  7. package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +0 -1
  8. package/unstable-preview-types/-private/cache-handler/types.d.ts +0 -101
  9. package/unstable-preview-types/-private/cache-handler/types.d.ts.map +0 -1
  10. package/unstable-preview-types/-private/cache-handler/utils.d.ts +0 -34
  11. package/unstable-preview-types/-private/cache-handler/utils.d.ts.map +0 -1
  12. package/unstable-preview-types/-private/caches/cache-utils.d.ts +0 -11
  13. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +0 -1
  14. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +0 -171
  15. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +0 -1
  16. package/unstable-preview-types/-private/caches/instance-cache.d.ts +0 -63
  17. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +0 -1
  18. package/unstable-preview-types/-private/caches/resource-utils.d.ts +0 -12
  19. package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +0 -1
  20. package/unstable-preview-types/-private/debug/utils.d.ts +0 -9
  21. package/unstable-preview-types/-private/debug/utils.d.ts.map +0 -1
  22. package/unstable-preview-types/-private/document.d.ts +0 -149
  23. package/unstable-preview-types/-private/document.d.ts.map +0 -1
  24. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +0 -166
  25. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +0 -1
  26. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +0 -19
  27. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +0 -1
  28. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +0 -28
  29. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +0 -1
  30. package/unstable-preview-types/-private/managers/cache-manager.d.ts +0 -430
  31. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +0 -1
  32. package/unstable-preview-types/-private/managers/notification-manager.d.ts +0 -95
  33. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +0 -1
  34. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +0 -100
  35. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +0 -1
  36. package/unstable-preview-types/-private/network/request-cache.d.ts +0 -106
  37. package/unstable-preview-types/-private/network/request-cache.d.ts.map +0 -1
  38. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +0 -257
  39. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +0 -1
  40. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +0 -91
  41. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +0 -1
  42. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts +0 -172
  43. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts.map +0 -1
  44. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts +0 -32
  45. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts.map +0 -1
  46. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +0 -256
  47. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +0 -1
  48. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +0 -143
  49. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +0 -1
  50. package/unstable-preview-types/-private/record-arrays/many-array.d.ts +0 -202
  51. package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +0 -1
  52. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +0 -118
  53. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +0 -1
  54. package/unstable-preview-types/-private/store-service.d.ts +0 -1597
  55. package/unstable-preview-types/-private/store-service.d.ts.map +0 -1
  56. package/unstable-preview-types/-private/store-service.type-test.d.ts +0 -4
  57. package/unstable-preview-types/-private/store-service.type-test.d.ts.map +0 -1
  58. package/unstable-preview-types/-private/utils/coerce-id.d.ts +0 -7
  59. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +0 -1
  60. package/unstable-preview-types/-private/utils/construct-resource.d.ts +0 -9
  61. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +0 -1
  62. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +0 -4
  63. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +0 -1
  64. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +0 -4
  65. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +0 -1
  66. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +0 -4
  67. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +0 -1
  68. package/unstable-preview-types/-private.d.ts.map +0 -1
  69. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +0 -102
  70. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +0 -1
  71. package/unstable-preview-types/-types/q/ds-model.d.ts +0 -24
  72. package/unstable-preview-types/-types/q/ds-model.d.ts.map +0 -1
  73. package/unstable-preview-types/-types/q/identifier.d.ts +0 -175
  74. package/unstable-preview-types/-types/q/identifier.d.ts.map +0 -1
  75. package/unstable-preview-types/-types/q/promise-proxies.d.ts +0 -4
  76. package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +0 -1
  77. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +0 -33
  78. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +0 -1
  79. package/unstable-preview-types/-types/q/record-instance.d.ts +0 -24
  80. package/unstable-preview-types/-types/q/record-instance.d.ts.map +0 -1
  81. package/unstable-preview-types/-types/q/schema-service.d.ts +0 -334
  82. package/unstable-preview-types/-types/q/schema-service.d.ts.map +0 -1
  83. package/unstable-preview-types/-types/q/store.d.ts +0 -37
  84. package/unstable-preview-types/-types/q/store.d.ts.map +0 -1
  85. package/unstable-preview-types/configure.d.ts.map +0 -1
  86. package/unstable-preview-types/index.d.ts.map +0 -1
  87. package/unstable-preview-types/types.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache-capabilities-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/cache-capabilities-manager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE1G,OAAO,KAAK,EAAE,wBAAwB,IAAI,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,WAAW,wBAAwB;IACvC,0BAA0B,IAAI,aAAa,CAAC;CAC7C;AACD,qBAAa,wBAAyB,YAAW,YAAY;IACnD,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,GAAG,CAAC,sBAAsB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3D,MAAM,EAAE,KAAK,CAAC;gBAEV,MAAM,EAAE,KAAK;IAMzB,IAAI,eAAe,IAAI,eAAe,CAErC;IAED,qBAAqB,CAAC,UAAU,EAAE,sBAAsB,EAAE,GAAG,EAAE,MAAM;IAyBrE,mBAAmB,IAAI,IAAI;IAgB3B,YAAY,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI;IACjG,YAAY,CAAC,UAAU,EAAE,wBAAwB,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI;IAC/G,YAAY,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAkBvG,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,430 +0,0 @@
1
- declare module '@ember-data/store/-private/managers/cache-manager' {
2
- import type { Cache, ChangedAttributesHash, RelationshipDiff } from '@warp-drive/core-types/cache';
3
- import type { Change } from '@warp-drive/core-types/cache/change';
4
- import type { MergeOperation } from '@warp-drive/core-types/cache/operations';
5
- import type { CollectionRelationship, ResourceRelationship } from '@warp-drive/core-types/cache/relationship';
6
- import type { LocalRelationshipOperation } from '@warp-drive/core-types/graph';
7
- import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
8
- import type { Value } from '@warp-drive/core-types/json/raw';
9
- import type { StructuredDataDocument, StructuredDocument } from '@warp-drive/core-types/request';
10
- import type { ResourceDocument, SingleResourceDataDocument } from '@warp-drive/core-types/spec/document';
11
- import type { ApiError } from '@warp-drive/core-types/spec/error';
12
- import type { StoreRequestContext } from '@ember-data/store/-private/cache-handler/handler';
13
- /**
14
- * The CacheManager wraps a Cache enforcing that only
15
- * the public API surface area is exposed.
16
- *
17
- * Hence, it is the value of `Store.cache`, wrapping
18
- * the cache instance returned by `Store.createCache`.
19
- *
20
- * It handles translating between cache versions when
21
- * necessary, for instance when a Store is configured
22
- * to use both a v1 and a v2 cache depending on some
23
- * heuristic.
24
- *
25
- * Starting with the v2 spec, the cache is designed such
26
- * that it must be implemented as a singleton.
27
- *
28
- * @class CacheManager
29
- * @public
30
- */
31
- export class CacheManager implements Cache {
32
- #private;
33
- version: "2";
34
- constructor(cache: Cache);
35
- /**
36
- * Cache the response to a request
37
- *
38
- * Unlike `store.push` which has UPSERT
39
- * semantics, `put` has `replace` semantics similar to
40
- * the `http` method `PUT`
41
- *
42
- * the individually cacheable
43
- * e resource data it may contain
44
- * should upsert, but the document data surrounding it should
45
- * fully replace any existing information
46
- *
47
- * Note that in order to support inserting arbitrary data
48
- * to the cache that did not originate from a request `put`
49
- * should expect to sometimes encounter a document with only
50
- * a `content` member and therefor must not assume the existence
51
- * of `request` and `response` on the document.
52
- *
53
- * @param {StructuredDocument} doc
54
- * @return {ResourceDocument}
55
- * @public
56
- */
57
- put<T>(doc: StructuredDocument<T> | {
58
- content: T;
59
- }): ResourceDocument;
60
- /**
61
- * Perform an operation on the cache to update the remote state.
62
- *
63
- * Note: currently the only valid operation is a MergeOperation
64
- * which occurs when a collision of identifiers is detected.
65
- *
66
- * @public
67
- * @param op the operation to perform
68
- * @return {void}
69
- */
70
- patch(op: MergeOperation): void;
71
- /**
72
- * Update resource data with a local mutation. Currently supports operations
73
- * on relationships only.
74
- *
75
- * @public
76
- * @param mutation
77
- */
78
- mutate(mutation: LocalRelationshipOperation): void;
79
- /**
80
- * Peek resource data from the Cache.
81
- *
82
- * In development, if the return value
83
- * is JSON the return value
84
- * will be deep-cloned and deep-frozen
85
- * to prevent mutation thereby enforcing cache
86
- * Immutability.
87
- *
88
- * This form of peek is useful for implementations
89
- * that want to feed raw-data from cache to the UI
90
- * or which want to interact with a blob of data
91
- * directly from the presentation cache.
92
- *
93
- * An implementation might want to do this because
94
- * de-referencing records which read from their own
95
- * blob is generally safer because the record does
96
- * not require retaining connections to the Store
97
- * and Cache to present data on a per-field basis.
98
- *
99
- * This generally takes the place of `getAttr` as
100
- * an API and may even take the place of `getRelationship`
101
- * depending on implementation specifics, though this
102
- * latter usage is less recommended due to the advantages
103
- * of the Graph handling necessary entanglements and
104
- * notifications for relational data.
105
- *
106
- * @public
107
- * @param {StableRecordIdentifier | StableDocumentIdentifier} identifier
108
- * @return {ResourceDocument | ResourceBlob | null} the known resource data
109
- */
110
- peek(identifier: StableRecordIdentifier): unknown;
111
- peek(identifier: StableDocumentIdentifier): ResourceDocument | null;
112
- peekRemoteState(identifier: StableRecordIdentifier): unknown;
113
- peekRemoteState(identifier: StableDocumentIdentifier): ResourceDocument | null;
114
- /**
115
- * Peek the Cache for the existing request data associated with
116
- * a cacheable request
117
- *
118
- * @param {StableDocumentIdentifier}
119
- * @return {StableDocumentIdentifier | null}
120
- * @public
121
- */
122
- peekRequest(identifier: StableDocumentIdentifier): StructuredDocument<ResourceDocument> | null;
123
- /**
124
- * Push resource data from a remote source into the cache for this identifier
125
- *
126
- * @public
127
- * @param identifier
128
- * @param data
129
- * @param hasRecord
130
- * @return {void | string[]} if `hasRecord` is true then calculated key changes should be returned
131
- */
132
- upsert(identifier: StableRecordIdentifier, data: unknown, hasRecord: boolean): void | string[];
133
- /**
134
- * Create a fork of the cache from the current state.
135
- *
136
- * Applications should typically not call this method themselves,
137
- * preferring instead to fork at the Store level, which will
138
- * utilize this method to fork the cache.
139
- *
140
- * @public
141
- * @return {Promise<Cache>}
142
- */
143
- fork(): Promise<Cache>;
144
- /**
145
- * Merge a fork back into a parent Cache.
146
- *
147
- * Applications should typically not call this method themselves,
148
- * preferring instead to merge at the Store level, which will
149
- * utilize this method to merge the caches.
150
- *
151
- * @param {Cache} cache
152
- * @public
153
- * @return {Promise<void>}
154
- */
155
- merge(cache: Cache): Promise<void>;
156
- /**
157
- * Generate the list of changes applied to all
158
- * record in the store.
159
- *
160
- * Each individual resource or document that has
161
- * been mutated should be described as an individual
162
- * `Change` entry in the returned array.
163
- *
164
- * A `Change` is described by an object containing up to
165
- * three properties: (1) the `identifier` of the entity that
166
- * changed; (2) the `op` code of that change being one of
167
- * `upsert` or `remove`, and if the op is `upsert` a `patch`
168
- * containing the data to merge into the cache for the given
169
- * entity.
170
- *
171
- * This `patch` is opaque to the Store but should be understood
172
- * by the Cache and may expect to be utilized by an Adapter
173
- * when generating data during a `save` operation.
174
- *
175
- * It is generally recommended that the `patch` contain only
176
- * the updated state, ignoring fields that are unchanged
177
- *
178
- * ```ts
179
- * interface Change {
180
- * identifier: StableRecordIdentifier | StableDocumentIdentifier;
181
- * op: 'upsert' | 'remove';
182
- * patch?: unknown;
183
- * }
184
- * ```
185
- *
186
- * @public
187
- */
188
- diff(): Promise<Change[]>;
189
- /**
190
- * Serialize the entire contents of the Cache into a Stream
191
- * which may be fed back into a new instance of the same Cache
192
- * via `cache.hydrate`.
193
- *
194
- * @return {Promise<ReadableStream>}
195
- * @public
196
- */
197
- dump(): Promise<ReadableStream<unknown>>;
198
- /**
199
- * hydrate a Cache from a Stream with content previously serialized
200
- * from another instance of the same Cache, resolving when hydration
201
- * is complete.
202
- *
203
- * This method should expect to be called both in the context of restoring
204
- * the Cache during application rehydration after SSR **AND** at unknown
205
- * times during the lifetime of an already booted application when it is
206
- * desired to bulk-load additional information into the cache. This latter
207
- * behavior supports optimizing pre/fetching of data for route transitions
208
- * via data-only SSR modes.
209
- *
210
- * @param {ReadableStream} stream
211
- * @return {Promise<void>}
212
- * @public
213
- */
214
- hydrate(stream: ReadableStream<unknown>): Promise<void>;
215
- /**
216
- * [LIFECYCLE] Signal to the cache that a new record has been instantiated on the client
217
- *
218
- * It returns properties from options that should be set on the record during the create
219
- * process. This return value behavior is deprecated.
220
- *
221
- * @public
222
- * @param identifier
223
- * @param options
224
- */
225
- clientDidCreate(identifier: StableRecordIdentifier, options?: Record<string, unknown>): Record<string, unknown>;
226
- /**
227
- * [LIFECYCLE] Signals to the cache that a resource
228
- * will be part of a save transaction.
229
- *
230
- * @public
231
- * @param identifier
232
- */
233
- willCommit(identifier: StableRecordIdentifier, context: StoreRequestContext): void;
234
- /**
235
- * [LIFECYCLE] Signals to the cache that a resource
236
- * was successfully updated as part of a save transaction.
237
- *
238
- * @public
239
- * @param identifier
240
- * @param data
241
- */
242
- didCommit(identifier: StableRecordIdentifier, result: StructuredDataDocument<unknown>): SingleResourceDataDocument;
243
- /**
244
- * [LIFECYCLE] Signals to the cache that a resource
245
- * was update via a save transaction failed.
246
- *
247
- * @public
248
- * @param identifier
249
- * @param errors
250
- */
251
- commitWasRejected(identifier: StableRecordIdentifier, errors?: ApiError[]): void;
252
- /**
253
- * [LIFECYCLE] Signals to the cache that all data for a resource
254
- * should be cleared.
255
- *
256
- * @public
257
- * @param identifier
258
- */
259
- unloadRecord(identifier: StableRecordIdentifier): void;
260
- /**
261
- * Retrieve the data for an attribute from the cache
262
- *
263
- * @public
264
- * @param identifier
265
- * @param propertyName
266
- * @return {unknown}
267
- */
268
- getAttr(identifier: StableRecordIdentifier, propertyName: string): Value | undefined;
269
- /**
270
- * Retrieve the remote state for an attribute from the cache
271
- *
272
- * @public
273
- * @param identifier
274
- * @param propertyName
275
- * @return {unknown}
276
- */
277
- getRemoteAttr(identifier: StableRecordIdentifier, propertyName: string): Value | undefined;
278
- /**
279
- * Mutate the data for an attribute in the cache
280
- *
281
- * @public
282
- * @param identifier
283
- * @param propertyName
284
- * @param value
285
- */
286
- setAttr(identifier: StableRecordIdentifier, propertyName: string, value: Value): void;
287
- /**
288
- * Query the cache for the changed attributes of a resource.
289
- *
290
- * @public
291
- * @param identifier
292
- * @return
293
- */
294
- changedAttrs(identifier: StableRecordIdentifier): ChangedAttributesHash;
295
- /**
296
- * Query the cache for whether any mutated attributes exist
297
- *
298
- * @public
299
- * @param identifier
300
- * @return {Boolean}
301
- */
302
- hasChangedAttrs(identifier: StableRecordIdentifier): boolean;
303
- /**
304
- * Tell the cache to discard any uncommitted mutations to attributes
305
- *
306
- * @public
307
- * @param identifier
308
- * @return the names of attributes that were restored
309
- */
310
- rollbackAttrs(identifier: StableRecordIdentifier): string[];
311
- /**
312
- * Query the cache for the changes to relationships of a resource.
313
- *
314
- * Returns a map of relationship names to RelationshipDiff objects.
315
- *
316
- * ```ts
317
- * type RelationshipDiff =
318
- | {
319
- kind: 'collection';
320
- remoteState: StableRecordIdentifier[];
321
- additions: Set<StableRecordIdentifier>;
322
- removals: Set<StableRecordIdentifier>;
323
- localState: StableRecordIdentifier[];
324
- reordered: boolean;
325
- }
326
- | {
327
- kind: 'resource';
328
- remoteState: StableRecordIdentifier | null;
329
- localState: StableRecordIdentifier | null;
330
- };
331
- ```
332
- *
333
- * @public
334
- * @param {StableRecordIdentifier} identifier
335
- * @return {Map<string, RelationshipDiff>}
336
- */
337
- changedRelationships(identifier: StableRecordIdentifier): Map<string, RelationshipDiff>;
338
- /**
339
- * Query the cache for whether any mutated attributes exist
340
- *
341
- * @public
342
- * @param {StableRecordIdentifier} identifier
343
- * @return {Boolean}
344
- */
345
- hasChangedRelationships(identifier: StableRecordIdentifier): boolean;
346
- /**
347
- * Tell the cache to discard any uncommitted mutations to relationships.
348
- *
349
- * This will also discard the change on any appropriate inverses.
350
- *
351
- * This method is a candidate to become a mutation
352
- *
353
- * @public
354
- * @param {StableRecordIdentifier} identifier
355
- * @return {String[]} the names of relationships that were restored
356
- */
357
- rollbackRelationships(identifier: StableRecordIdentifier): string[];
358
- /**
359
- * Query the cache for the current state of a relationship property
360
- *
361
- * @public
362
- * @param identifier
363
- * @param propertyName
364
- * @return resource relationship object
365
- */
366
- getRelationship(identifier: StableRecordIdentifier, propertyName: string): ResourceRelationship | CollectionRelationship;
367
- /**
368
- * Query the cache for the remote state of a relationship property
369
- *
370
- * @public
371
- * @param identifier
372
- * @param propertyName
373
- * @return resource relationship object
374
- */
375
- getRemoteRelationship(identifier: StableRecordIdentifier, propertyName: string): ResourceRelationship | CollectionRelationship;
376
- /**
377
- * Update the cache state for the given resource to be marked as locally deleted,
378
- * or remove such a mark.
379
- *
380
- * @public
381
- * @param identifier
382
- * @param isDeleted
383
- */
384
- setIsDeleted(identifier: StableRecordIdentifier, isDeleted: boolean): void;
385
- /**
386
- * Query the cache for any validation errors applicable to the given resource.
387
- *
388
- * @public
389
- * @param identifier
390
- * @return
391
- */
392
- getErrors(identifier: StableRecordIdentifier): ApiError[];
393
- /**
394
- * Query the cache for whether a given resource has any available data
395
- *
396
- * @public
397
- * @param identifier
398
- * @return {Boolean}
399
- */
400
- isEmpty(identifier: StableRecordIdentifier): boolean;
401
- /**
402
- * Query the cache for whether a given resource was created locally and not
403
- * yet persisted.
404
- *
405
- * @public
406
- * @param identifier
407
- * @return {Boolean}
408
- */
409
- isNew(identifier: StableRecordIdentifier): boolean;
410
- /**
411
- * Query the cache for whether a given resource is marked as deleted (but not
412
- * necessarily persisted yet).
413
- *
414
- * @public
415
- * @param identifier
416
- * @return {Boolean}
417
- */
418
- isDeleted(identifier: StableRecordIdentifier): boolean;
419
- /**
420
- * Query the cache for whether a given resource has been deleted and that deletion
421
- * has also been persisted.
422
- *
423
- * @public
424
- * @param identifier
425
- * @return {Boolean}
426
- */
427
- isDeletionCommitted(identifier: StableRecordIdentifier): boolean;
428
- }
429
- }
430
- //# sourceMappingURL=cache-manager.d.ts.map
@@ -1 +0,0 @@
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;AAC9E,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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AAmB,CAAC,UAAU,EAAE,sBAAsB,GAAG,OAAO;CAGjE"}
@@ -1,95 +0,0 @@
1
- declare module '@ember-data/store/-private/managers/notification-manager' {
2
- import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
3
- import type { Store } from '@ember-data/store/-private/store-service';
4
- export type UnsubscribeToken = object;
5
- export type CacheOperation = 'added' | 'removed' | 'updated' | 'state';
6
- export type DocumentCacheOperation = 'invalidated' | 'added' | 'removed' | 'updated' | 'state';
7
- export type NotificationType = 'attributes' | 'relationships' | 'identity' | 'errors' | 'meta' | CacheOperation;
8
- export interface NotificationCallback {
9
- (identifier: StableRecordIdentifier, notificationType: 'attributes' | 'relationships', key?: string): void;
10
- (identifier: StableRecordIdentifier, notificationType: 'errors' | 'meta' | 'identity' | 'state'): void;
11
- (identifier: StableRecordIdentifier, notificationType: CacheOperation): void;
12
- }
13
- export interface ResourceOperationCallback {
14
- (identifier: StableRecordIdentifier, notificationType: CacheOperation): void;
15
- }
16
- export interface DocumentOperationCallback {
17
- (identifier: StableDocumentIdentifier, notificationType: DocumentCacheOperation): void;
18
- }
19
- /**
20
- * The NotificationManager provides the ability to subscribe to
21
- * changes to Cache state.
22
- *
23
- * This Feature is what allows EmberData to create subscriptions that
24
- * work with any framework or change-notification system.
25
- *
26
- * @class NotificationManager
27
- * @public
28
- */
29
- export default class NotificationManager {
30
- store: Store;
31
- isDestroyed: boolean;
32
- _buffered: Map<StableDocumentIdentifier | StableRecordIdentifier, [string, string | undefined][]>;
33
- _cache: Map<StableDocumentIdentifier | StableRecordIdentifier | 'resource' | 'document', Array<NotificationCallback | ResourceOperationCallback | DocumentOperationCallback>>;
34
- _hasFlush: boolean;
35
- _onFlushCB?: () => void;
36
- constructor(store: Store);
37
- /**
38
- * Subscribe to changes for a given resource identifier, resource addition/removal, or document addition/removal.
39
- *
40
- * ```ts
41
- * export type CacheOperation = 'added' | 'removed' | 'updated' | 'state';
42
- *
43
- * export interface NotificationCallback {
44
- * (identifier: StableRecordIdentifier, notificationType: 'attributes' | 'relationships', key?: string): void;
45
- * (identifier: StableRecordIdentifier, notificationType: 'errors' | 'meta' | 'identity' | 'state'): void;
46
- * (identifier: StableRecordIdentifier, notificationType: NotificationType, key?: string): void;
47
- * }
48
- * export interface ResourceOperationCallback {
49
- * // resource updates
50
- * (identifier: StableRecordIdentifier, notificationType: CacheOperation): void;
51
- * }
52
- * export interface DocumentOperationCallback {
53
- * // document updates
54
- * (identifier: StableDocumentIdentifier, notificationType: CacheOperation): void;
55
- * }
56
- * ```
57
- *
58
- * @public
59
- * @param {StableDocumentIdentifier | StableRecordIdentifier | 'resource' | 'document'} identifier
60
- * @param {NotificationCallback | ResourceOperationCallback | DocumentOperationCallback} callback
61
- * @return {UnsubscribeToken} an opaque token to be used with unsubscribe
62
- */
63
- subscribe(identifier: StableRecordIdentifier, callback: NotificationCallback): UnsubscribeToken;
64
- subscribe(identifier: 'resource', callback: ResourceOperationCallback): UnsubscribeToken;
65
- subscribe(identifier: 'document' | StableDocumentIdentifier, callback: DocumentOperationCallback): UnsubscribeToken;
66
- /**
67
- * remove a previous subscription
68
- *
69
- * @public
70
- * @param {UnsubscribeToken} token
71
- */
72
- unsubscribe(token: UnsubscribeToken): void;
73
- /**
74
- * Custom Caches and Application Code should not call this method directly.
75
- *
76
- * @param identifier
77
- * @param value
78
- * @param key
79
- * @return {Boolean} whether a notification was delivered to any subscribers
80
- * @private
81
- */
82
- notify(identifier: StableRecordIdentifier, value: 'attributes' | 'relationships', key?: string): boolean;
83
- notify(identifier: StableRecordIdentifier, value: 'errors' | 'meta' | 'identity' | 'state'): boolean;
84
- notify(identifier: StableRecordIdentifier, value: CacheOperation): boolean;
85
- notify(identifier: StableDocumentIdentifier, value: DocumentCacheOperation): boolean;
86
- _onNextFlush(cb: () => void): void;
87
- _scheduleNotify(): boolean;
88
- _flush(): void;
89
- _flushNotification(identifier: StableRecordIdentifier, value: 'attributes' | 'relationships', key?: string): boolean;
90
- _flushNotification(identifier: StableRecordIdentifier, value: 'errors' | 'meta' | 'identity' | 'state'): boolean;
91
- _flushNotification(identifier: StableRecordIdentifier | StableDocumentIdentifier, value: CacheOperation): boolean;
92
- destroy(): void;
93
- }
94
- }
95
- //# sourceMappingURL=notification-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/notification-manager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAK1G,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEtC,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AACvE,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAQ/F,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,eAAe,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,cAAc,CAAC;AAEhH,MAAM,WAAW,oBAAoB;IACnC,CAAC,UAAU,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,YAAY,GAAG,eAAe,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3G,CAAC,UAAU,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,CAAC;IACvG,CAAC,UAAU,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,cAAc,GAAG,IAAI,CAAC;CAE9E;AAED,MAAM,WAAW,yBAAyB;IAExC,CAAC,UAAU,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9E;AAED,MAAM,WAAW,yBAAyB;IAExC,CAAC,UAAU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AC1E,MAAM,CAAC,UAAU,EAAE,wBAAwB,EAAE,KAAK,EAAE,sBAAsB,GAAG,OAAO;IAmEpF,YAAY,CAAC,EAAE,EAAE,MAAM,IAAI;IAI3B,eAAe,IAAI,OAAO;IAkB1B,MAAM;IAiBN,kBAAkB,CAAC,UAAU,EAAE,sBAAsB,EAAE,KAAK,EAAE,YAAY,GAAG,eAAe,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;IAyCjH,OAAO;CAIR"}
@@ -1,100 +0,0 @@
1
- declare module '@ember-data/store/-private/managers/record-array-manager' {
2
- import type { LocalRelationshipOperation } from '@warp-drive/core-types/graph';
3
- import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
4
- import type { ImmutableRequestInfo } from '@warp-drive/core-types/request';
5
- import type { CollectionResourceDocument } from '@warp-drive/core-types/spec/json-api-raw';
6
- import { Collection, IdentifierArray } from '@ember-data/store/-private/record-arrays/identifier-array';
7
- import type { Store } from '@ember-data/store/-private/store-service';
8
- import type { UnsubscribeToken } from '@ember-data/store/-private/managers/notification-manager';
9
- /**
10
- * This is a clever optimization.
11
- *
12
- * clever optimizations rarely stand the test of time, so if you're
13
- * ever curious or think something better is possible please benchmark
14
- * and discuss. The benchmark for this at the time of writing is in
15
- * `scripts/benchmark-push.js`
16
- *
17
- * This approach turns out to be 150x faster in Chrome and node than
18
- * simply using push or concat. It's highly susceptible to the specifics
19
- * of the batch size, and may require tuning.
20
- *
21
- * Clever optimizations should always come with a `why`. This optimization
22
- * exists for two reasons.
23
- *
24
- * 1) array.push(...objects) and Array.prototype.push.apply(arr, objects)
25
- * are susceptible to stack overflows. The size of objects at which this
26
- * occurs varies by environment, browser, and current stack depth and memory
27
- * pressure; however, it occurs in all browsers in fairly pristine conditions
28
- * somewhere around 125k to 200k elements. Since EmberData regularly encounters
29
- * arrays larger than this in size, we cannot use push.
30
- *
31
- * 2) `array.concat` or simply setting the array to a new reference is often an
32
- * easier approach; however, native Proxy to an array cannot swap it's target array
33
- * and attempts at juggling multiple array sources have proven to be victim to a number
34
- * of browser implementation bugs. Should these bugs be addressed then we could
35
- * simplify to using `concat`, however, do note this is currently 150x faster
36
- * than concat, and due to the overloaded signature of concat will likely always
37
- * be faster.
38
- *
39
- * Sincerely,
40
- * - runspired (Chris Thoburn) 08/21/2022
41
- *
42
- * @function fastPush
43
- * @internal
44
- * @param target the array to push into
45
- * @param source the items to push into target
46
- */
47
- export function fastPush<T>(target: T[], source: T[]): void;
48
- type ChangeSet = Map<StableRecordIdentifier, 'add' | 'del'>;
49
- /**
50
- @class RecordArrayManager
51
- @internal
52
- */
53
- export class RecordArrayManager {
54
- store: Store;
55
- isDestroying: boolean;
56
- isDestroyed: boolean;
57
- _set: Map<IdentifierArray, Set<StableRecordIdentifier>>;
58
- _live: Map<string, IdentifierArray>;
59
- _managed: Set<IdentifierArray>;
60
- _pending: Map<IdentifierArray, ChangeSet>;
61
- _identifiers: Map<StableRecordIdentifier, Set<Collection>>;
62
- _staged: Map<string, ChangeSet>;
63
- _subscription: UnsubscribeToken;
64
- _documentSubscription: UnsubscribeToken;
65
- _keyedArrays: Map<string, Collection>;
66
- _visibilitySet: Map<StableRecordIdentifier, boolean>;
67
- constructor(options: {
68
- store: Store;
69
- });
70
- _syncArray(array: IdentifierArray | Collection): void;
71
- mutate(mutation: LocalRelationshipOperation): void;
72
- /**
73
- Get the `RecordArray` for a modelName, which contains all loaded records of
74
- given modelName.
75
-
76
- @internal
77
- @param {String} modelName
78
- @return {RecordArray}
79
- */
80
- liveArrayFor(type: string): IdentifierArray;
81
- getCollection(config: {
82
- type?: string;
83
- query?: ImmutableRequestInfo | Record<string, unknown>;
84
- identifiers?: StableRecordIdentifier[];
85
- doc?: CollectionResourceDocument;
86
- identifier?: StableDocumentIdentifier | null;
87
- }): Collection;
88
- dirtyArray(array: IdentifierArray, delta: number, shouldSyncFromCache: boolean): void;
89
- _getPendingFor(identifier: StableRecordIdentifier, includeManaged: boolean, isRemove?: boolean): Map<IdentifierArray, ChangeSet> | void;
90
- populateManagedArray(array: Collection, identifiers: StableRecordIdentifier[], payload: CollectionResourceDocument | null): void;
91
- identifierAdded(identifier: StableRecordIdentifier): void;
92
- identifierRemoved(identifier: StableRecordIdentifier): void;
93
- identifierChanged(identifier: StableRecordIdentifier): void;
94
- clear(isClear?: boolean): void;
95
- destroy(): void;
96
- }
97
- export function disassociateIdentifier(ArraysCache: Map<StableRecordIdentifier, Set<Collection>>, array: Collection, identifier: StableRecordIdentifier): void;
98
- export {};
99
- }
100
- //# sourceMappingURL=record-array-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record-array-manager.d.ts","sourceRoot":"","sources":["../../../src/-private/managers/record-array-manager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC1G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAI3F,OAAO,EAAE,UAAU,EAAE,eAAe,EAAU,MAAM,mCAAmC,CAAC;AACxF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAA0C,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAIvG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE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