@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,256 +0,0 @@
1
- declare module '@ember-data/store/-private/new-core-tmp/request-state' {
2
- import type { Future, ImmutableRequestInfo, ResponseInfo, StructuredErrorDocument } from '@ember-data/request';
3
- import type { PendingPromise, RejectedPromise, ResolvedPromise } from '@ember-data/store/-private/new-core-tmp/promise-state';
4
- /**
5
- * Lazily consumes the stream of a request, providing a number of
6
- * reactive properties that can be used to build UIs that respond
7
- * to the progress of a request.
8
- *
9
- */
10
- export class RequestLoadingState {
11
- _sizeHint: number;
12
- _bytesLoaded: number;
13
- _startTime: number;
14
- _endTime: number;
15
- _lastPacketTime: number;
16
- _isPending: boolean;
17
- _isStarted: boolean;
18
- _isComplete: boolean;
19
- _isCancelled: boolean;
20
- _isErrored: boolean;
21
- _error: Error | null;
22
- _stream: TransformStream | null;
23
- _future: Future<unknown>;
24
- _triggered: boolean;
25
- _trigger(): void;
26
- promise: Promise<void> | null;
27
- get isPending(): boolean;
28
- get sizeHint(): number;
29
- get stream(): ReadableStream | null;
30
- get isStarted(): boolean;
31
- get bytesLoaded(): number;
32
- get startTime(): number;
33
- get endTime(): number;
34
- get lastPacketTime(): number;
35
- get isComplete(): boolean;
36
- get isCancelled(): boolean;
37
- get isErrored(): boolean;
38
- get error(): Error | null;
39
- get elapsedTime(): number;
40
- get completedRatio(): number;
41
- get remainingRatio(): number;
42
- get duration(): number;
43
- get speed(): number;
44
- constructor(future: Future<unknown>);
45
- abort: () => void;
46
- }
47
- /**
48
- * The state of a request in the "pending"
49
- * state. This is the default initial state.
50
- *
51
- * Extends the {@link PendingPromise} interface.
52
- *
53
- */
54
- export interface PendingRequest extends PendingPromise {
55
- /**
56
- * Whether the request is cancelled.
57
- *
58
- */
59
- isCancelled: false;
60
- loadingState: RequestLoadingState;
61
- request: null;
62
- response: null;
63
- }
64
- /**
65
- * The state of a request in the "fulfilled" state.
66
- * This is the state of a request that has resolved
67
- * successfully.
68
- *
69
- * Extends the {@link ResolvedPromise} interface.
70
- *
71
- */
72
- export interface ResolvedRequest<RT, T> extends ResolvedPromise<RT> {
73
- /**
74
- * Whether the request is cancelled.
75
- *
76
- */
77
- isCancelled: false;
78
- loadingState: RequestLoadingState;
79
- request: ImmutableRequestInfo<RT, T> | null;
80
- response: Response | ResponseInfo | null;
81
- }
82
- /**
83
- * The state of a request in the "rejected" state.
84
- * This is the state of a request that has rejected
85
- * with an error.
86
- *
87
- * Extends the {@link RejectedPromise} interface.
88
- *
89
- */
90
- export interface RejectedRequest<RT, T, E extends StructuredErrorDocument = StructuredErrorDocument> extends RejectedPromise<E> {
91
- /**
92
- * Whether the request is cancelled.
93
- *
94
- */
95
- isCancelled: false;
96
- loadingState: RequestLoadingState;
97
- request: ImmutableRequestInfo<RT, T> | null;
98
- response: Response | ResponseInfo | null;
99
- }
100
- /**
101
- * The state of a request in the "cancelled" state.
102
- * This is the state of a promise that has been
103
- * cancelled.
104
- *
105
- */
106
- export interface CancelledRequest<RT, T, E extends StructuredErrorDocument = StructuredErrorDocument> {
107
- /**
108
- * The status of the request.
109
- *
110
- */
111
- status: 'cancelled';
112
- /**
113
- * Whether the request is pending.
114
- *
115
- */
116
- isPending: false;
117
- /**
118
- * Whether the request is pending.
119
- *
120
- */
121
- isLoading: false;
122
- /**
123
- * Whether the request has resolved
124
- * successfully.
125
- *
126
- */
127
- isSuccess: false;
128
- /**
129
- * Whether the request has rejected
130
- * with an error.
131
- *
132
- */
133
- isError: true;
134
- /**
135
- * Once the request has resolved, this will
136
- * be the value the request resolved to.
137
- *
138
- */
139
- value: null;
140
- /**
141
- * Once the request has resolved, this will
142
- * be the value the request resolved to.
143
- *
144
- * @deprecated use `value` instead
145
- */
146
- result: null;
147
- /**
148
- * Once the request has rejected, this will
149
- * be the error the request rejected with.
150
- *
151
- *
152
- * @deprecated use `reason` instead
153
- */
154
- error: E;
155
- /**
156
- * Once the request has rejected, this will
157
- * be the error the request rejected with.
158
- *
159
- */
160
- reason: E;
161
- /**
162
- * Whether the request is cancelled.
163
- *
164
- */
165
- isCancelled: true;
166
- loadingState: RequestLoadingState;
167
- request: ImmutableRequestInfo<RT, T> | null;
168
- response: Response | ResponseInfo | null;
169
- }
170
- /**
171
- * RequestState extends the concept of PromiseState to provide a reactive
172
- * wrapper for a request `Future` which allows you write declarative code
173
- * around a Future's control flow.
174
- *
175
- * It is useful in both Template and JavaScript contexts, allowing you
176
- * to quickly derive behaviors and data from pending, error and success
177
- * states.
178
- *
179
- * The key difference between a Promise and a Future is that Futures provide
180
- * access to a stream of their content, the identity of the request (if any)
181
- * as well as the ability to attempt to abort the request.
182
- *
183
- * ```ts
184
- * interface Future<T> extends Promise<T>> {
185
- * getStream(): Promise<ReadableStream>;
186
- * abort(): void;
187
- * lid: StableDocumentIdentifier | null;
188
- * }
189
- * ```
190
- *
191
- * These additional APIs allow us to craft even richer state experiences.
192
- *
193
- * To get the state of a request, use `getRequestState`.
194
- *
195
- * See also:
196
- * - {@link PendingRequest}
197
- * - {@link ResolvedRequest}
198
- * - {@link RejectedRequest}
199
- * - {@link CancelledRequest}
200
- *
201
- */
202
- export type RequestCacheRequestState<RT = unknown, T = unknown, E extends StructuredErrorDocument = StructuredErrorDocument> = PendingRequest | ResolvedRequest<RT, T> | RejectedRequest<RT, T, E> | CancelledRequest<RT, T, E>;
203
- export function createRequestState<RT, T, E>(future: Future<RT>): Readonly<RequestCacheRequestState<RT, T, StructuredErrorDocument<E>>>;
204
- /**
205
- * `getRequestState` can be used in both JavaScript and Template contexts.
206
- *
207
- * ```ts
208
- * import { getRequestState } from '@warp-drive/ember';
209
- *
210
- * const state = getRequestState(future);
211
- * ```
212
- *
213
- * For instance, we could write a getter on a component that updates whenever
214
- * the request state advances or the future changes, by combining the function
215
- * with the use of `@cached`
216
- *
217
- * ```ts
218
- * class Component {
219
- * @cached
220
- * get title() {
221
- * const state = getRequestState(this.args.request);
222
- * if (state.isPending) {
223
- * return 'loading...';
224
- * }
225
- * if (state.isError) { return null; }
226
- * return state.result.title;
227
- * }
228
- * }
229
- * ```
230
- *
231
- * Or in a template as a helper:
232
- *
233
- * ```gjs
234
- * import { getRequestState } from '@warp-drive/ember';
235
- *
236
- * <template>
237
- * {{#let (getRequestState @request) as |state|}}
238
- * {{#if state.isPending}}
239
- * <Spinner />
240
- * {{else if state.isError}}
241
- * <ErrorForm @error={{state.error}} />
242
- * {{else}}
243
- * <h1>{{state.result.title}}</h1>
244
- * {{/if}}
245
- * {{/let}}
246
- * </template>
247
- * ```
248
- *
249
- * If looking to use in a template, consider also the `<Request />` component
250
- * which offers a numbe of additional capabilities for requests *beyond* what
251
- * `RequestState` provides.
252
- *
253
- */
254
- export function getRequestState<RT, T, E>(future: Future<RT>): Readonly<RequestCacheRequestState<RT, T, StructuredErrorDocument<E>>>;
255
- }
256
- //# sourceMappingURL=request-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-state.d.ts","sourceRoot":"","sources":["../../../src/-private/new-core-tmp/request-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,oBAAoB,EACpB,YAAY,EAEZ,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAiExF;;;;;GAKG;AACH,qBAAa,mBAAmB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CA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AM,EAAE,CAAC,CAAC;IAEV;;;OAGG;IACH,WAAW,EAAE,IAAI,CAAC;IAElB,YAAY,EAAE,mBAAmB,CAAC;IAClC,OAAO,EAAE,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IAC5C,QAAQ,EAAE,QAAQ,GAAG,YAAY,GAAG,IAAI,CAAC;CAC1C;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,MAAM,wBAAwB,CAClC,EAAE,GAAG,OAAO,EACZ,CAAC,GAAG,OAAO,EACX,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,IACzD,cAAc,GAAG,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,eAAe,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,gBAAgB,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAiCrG,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EACzC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GACjB,QAAQ,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAwDvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GACjB,QAAQ,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CASvE"}
@@ -1,143 +0,0 @@
1
- declare module '@ember-data/store/-private/record-arrays/identifier-array' {
2
- import type { LocalRelationshipOperation } from '@warp-drive/core-types/graph';
3
- import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
4
- import type { TypeFromInstanceOrString } from '@warp-drive/core-types/record';
5
- import type { ImmutableRequestInfo } from '@warp-drive/core-types/request';
6
- import type { Links, PaginationLinks } from '@warp-drive/core-types/spec/json-api-raw';
7
- import type { BaseFinderOptions } from '@ember-data/store/types';
8
- import type { RecordArrayManager } from '@ember-data/store/-private/managers/record-array-manager';
9
- import type { WarpDriveSignal } from '@ember-data/store/-private/new-core-tmp/reactivity/internal';
10
- import { ARRAY_SIGNAL } from '@ember-data/store/-private/new-core-tmp/reactivity/internal';
11
- import type { Store } from '@ember-data/store/-private/store-service';
12
- import { NativeProxy } from '@ember-data/store/-private/record-arrays/native-proxy-type-fix';
13
- export const SOURCE: "___(unique) Symbol(#source)";
14
- export const MUTATE: "___(unique) Symbol(#update)";
15
- const IS_COLLECTION: "___(unique) Symbol(IS_COLLECTION)";
16
- export type IdentifierArrayCreateOptions<T = unknown> = {
17
- identifiers: StableRecordIdentifier<TypeFromInstanceOrString<T>>[];
18
- type?: TypeFromInstanceOrString<T>;
19
- store: Store;
20
- allowMutation: boolean;
21
- manager: MinimumManager;
22
- links?: Links | PaginationLinks | null;
23
- meta?: Record<string, unknown> | null;
24
- identifier?: StableDocumentIdentifier | null;
25
- };
26
- type PromiseTo<T> = Omit<Promise<T>, typeof Symbol.toStringTag>;
27
- type PromiseManyArray<T> = {
28
- length: number;
29
- content: IdentifierArray<T> | null;
30
- promise: Promise<IdentifierArray<T>> | null;
31
- } & PromiseTo<IdentifierArray<T>>;
32
- export type MinimumManager = {
33
- _syncArray: (array: IdentifierArray) => void;
34
- mutate?(mutation: LocalRelationshipOperation): void;
35
- reloadHasMany?<T>(key: string, options?: BaseFinderOptions): Promise<IdentifierArray<T>> | PromiseManyArray<T>;
36
- };
37
- /**
38
- A record array is an array that contains records of a certain type (or modelName).
39
- The record array materializes records as needed when they are retrieved for the first
40
- time. You should not create record arrays yourself. Instead, an instance of
41
- `RecordArray` or its subclasses will be returned by your application's store
42
- in response to queries.
43
-
44
- This class should not be imported and instantiated by consuming applications.
45
-
46
- @class RecordArray
47
- @public
48
- */
49
- export interface IdentifierArray<T = unknown> extends Omit<Array<T>, '[]'> {
50
- [MUTATE]?(target: StableRecordIdentifier[], receiver: typeof NativeProxy<StableRecordIdentifier[], T[]>, prop: string, args: unknown[], _SIGNAL: WarpDriveSignal): unknown;
51
- }
52
- export class IdentifierArray<T = unknown> {
53
- DEPRECATED_CLASS_NAME: string;
54
- /**
55
- The flag to signal a `RecordArray` is currently loading data.
56
- Example
57
- ```javascript
58
- let people = store.peekAll('person');
59
- people.isUpdating; // false
60
- people.update();
61
- people.isUpdating; // true
62
- ```
63
- @property isUpdating
64
- @public
65
- @type Boolean
66
- */
67
- isUpdating: boolean;
68
- isLoaded: boolean;
69
- isDestroying: boolean;
70
- isDestroyed: boolean;
71
- _updatingPromise: Promise<IdentifierArray<T>> | null;
72
- readonly identifier: StableDocumentIdentifier | null;
73
- [IS_COLLECTION]: boolean;
74
- [ARRAY_SIGNAL]: WarpDriveSignal;
75
- [SOURCE]: StableRecordIdentifier[];
76
- links: Links | PaginationLinks | null;
77
- meta: Record<string, unknown> | null;
78
- modelName?: TypeFromInstanceOrString<T>;
79
- /**
80
- The store that created this record array.
81
-
82
- @property store
83
- @private
84
- @type Store
85
- */
86
- store: Store;
87
- _manager: MinimumManager;
88
- destroy(clear: boolean): void;
89
- constructor(options: IdentifierArrayCreateOptions<T>);
90
- /**
91
- Used to get the latest version of all of the records in this array
92
- from the adapter.
93
-
94
- Example
95
-
96
- ```javascript
97
- let people = store.peekAll('person');
98
- people.isUpdating; // false
99
-
100
- people.update().then(function() {
101
- people.isUpdating; // false
102
- });
103
-
104
- people.isUpdating; // true
105
- ```
106
-
107
- @public
108
- */
109
- update(): Promise<IdentifierArray<T>>;
110
- _update(): Promise<IdentifierArray<T>>;
111
- /**
112
- Saves all of the records in the `RecordArray`.
113
-
114
- Example
115
-
116
- ```javascript
117
- let messages = store.peekAll('message');
118
- messages.forEach(function(message) {
119
- message.hasBeenSeen = true;
120
- });
121
- messages.save();
122
- ```
123
-
124
- @public
125
- @return {Promise<IdentifierArray>} promise
126
- */
127
- save(): Promise<IdentifierArray>;
128
- }
129
- export type CollectionCreateOptions = IdentifierArrayCreateOptions & {
130
- manager: RecordArrayManager;
131
- query: ImmutableRequestInfo | Record<string, unknown> | null;
132
- isLoaded: boolean;
133
- };
134
- export class Collection<T = unknown> extends IdentifierArray<T> {
135
- query: ImmutableRequestInfo | Record<string, unknown> | null;
136
- _manager: RecordArrayManager;
137
- constructor(options: CollectionCreateOptions);
138
- _update(): Promise<Collection<T>>;
139
- destroy(clear: boolean): void;
140
- }
141
- export {};
142
- }
143
- //# sourceMappingURL=identifier-array.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identifier-array.d.ts","sourceRoot":"","sources":["../../../src/-private/record-arrays/identifier-array.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC1G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACL,YAAY,EAIb,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAuCtD,eAAO,MAAM,MAAM,+BAA+C,CAAC;AACnE,eAAO,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;;;;;;;;;;;;;;;;;;MAkBE;IACF,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAyBrC,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAUtC;;;;;;;;;;;;;;;MAeE;IACF,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC;CAKjC;AAsBD,MAAM,MAAM,uBAAuB,GAAG,4BAA4B,GAAG;IACnE,OAAO,EAAE,kBAAkB,CAAC;IAC5B,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7D,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,qBAAa,UAAU,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IAC7D,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAQ;IAC5D,QAAQ,EAAE,kBAAkB,CAAC;gBAEzB,OAAO,EAAE,uBAAuB;IAM5C,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAejC,OAAO,CAAC,KAAK,EAAE,OAAO;CAKvB"}
@@ -1,202 +0,0 @@
1
- declare module '@ember-data/store/-private/record-arrays/many-array' {
2
- import type { StableRecordIdentifier } from '@warp-drive/core-types';
3
- import type { Cache } from '@warp-drive/core-types/cache';
4
- import type { TypedRecordInstance, TypeFromInstance, TypeFromInstanceOrString } from '@warp-drive/core-types/record';
5
- import type { Links, PaginationLinks } from '@warp-drive/core-types/spec/json-api-raw';
6
- import type { BaseFinderOptions, ModelSchema } from '@ember-data/store/types';
7
- import { type WarpDriveSignal } from '@ember-data/store/-private/new-core-tmp/reactivity/internal';
8
- import type { CreateRecordProperties, Store } from '@ember-data/store/-private/store-service';
9
- import type { MinimumManager } from '@ember-data/store/-private/record-arrays/identifier-array';
10
- import { IdentifierArray, MUTATE } from '@ember-data/store/-private/record-arrays/identifier-array';
11
- import type { NativeProxy } from '@ember-data/store/-private/record-arrays/native-proxy-type-fix';
12
- export interface ManyArrayCreateArgs<T> {
13
- identifiers: StableRecordIdentifier<TypeFromInstanceOrString<T>>[];
14
- type: TypeFromInstanceOrString<T>;
15
- store: Store;
16
- allowMutation: boolean;
17
- manager: MinimumManager;
18
- identifier: StableRecordIdentifier;
19
- cache: Cache;
20
- meta: Record<string, unknown> | null;
21
- links: Links | PaginationLinks | null;
22
- key: string;
23
- isPolymorphic: boolean;
24
- isAsync: boolean;
25
- _inverseIsAsync: boolean;
26
- isLoaded: boolean;
27
- }
28
- /**
29
- A `ManyArray` is a `MutableArray` that represents the contents of a has-many
30
- relationship.
31
-
32
- The `ManyArray` is instantiated lazily the first time the relationship is
33
- requested.
34
-
35
- This class is not intended to be directly instantiated by consuming applications.
36
-
37
- ### Inverses
38
-
39
- Often, the relationships in Ember Data applications will have
40
- an inverse. For example, imagine the following models are
41
- defined:
42
-
43
- ```js [app/models/post.js]
44
- import Model, { hasMany } from '@ember-data/model';
45
-
46
- export default class PostModel extends Model {
47
- @hasMany('comment') comments;
48
- }
49
- ```
50
-
51
- ```js [app/models/comment.js]
52
- import Model, { belongsTo } from '@ember-data/model';
53
-
54
- export default class CommentModel extends Model {
55
- @belongsTo('post') post;
56
- }
57
- ```
58
-
59
- If you created a new instance of `Post` and added
60
- a `Comment` record to its `comments` has-many
61
- relationship, you would expect the comment's `post`
62
- property to be set to the post that contained
63
- the has-many.
64
-
65
- We call the record to which a relationship belongs-to the
66
- relationship's _owner_.
67
-
68
- @class ManyArray
69
- @public
70
- */
71
- export class RelatedCollection<T = unknown> extends IdentifierArray<T> {
72
- isAsync: boolean;
73
- /**
74
- The loading state of this array
75
-
76
- @property isLoaded
77
- @type {Boolean}
78
- @public
79
- */
80
- isLoaded: boolean;
81
- /**
82
- `true` if the relationship is polymorphic, `false` otherwise.
83
-
84
- @property isPolymorphic
85
- @type {Boolean}
86
- @private
87
- */
88
- isPolymorphic: boolean;
89
- _inverseIsAsync: boolean;
90
- /**
91
- Metadata associated with the request for async hasMany relationships.
92
-
93
- Example
94
-
95
- Given that the server returns the following JSON payload when fetching a
96
- hasMany relationship:
97
-
98
- ```js
99
- {
100
- "comments": [{
101
- "id": 1,
102
- "comment": "This is the first comment",
103
- }, {
104
- // ...
105
- }],
106
-
107
- "meta": {
108
- "page": 1,
109
- "total": 5
110
- }
111
- }
112
- ```
113
-
114
- You can then access the meta data via the `meta` property:
115
-
116
- ```js
117
- let comments = await post.comments;
118
- let meta = comments.meta;
119
-
120
- // meta.page => 1
121
- // meta.total => 5
122
- ```
123
-
124
- @property meta
125
- @type {Object | null}
126
- @public
127
- */
128
- meta: Record<string, unknown> | null;
129
- /**
130
- * Retrieve the links for this relationship
131
- *
132
- @property links
133
- @type {Object | null}
134
- @public
135
- */
136
- links: Links | PaginationLinks | null;
137
- identifier: StableRecordIdentifier;
138
- cache: Cache;
139
- _manager: MinimumManager;
140
- store: Store;
141
- key: string;
142
- type: ModelSchema;
143
- modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
144
- constructor(options: ManyArrayCreateArgs<T>);
145
- [MUTATE](target: StableRecordIdentifier[], receiver: typeof NativeProxy<StableRecordIdentifier[], T[]>, prop: string, args: unknown[], _SIGNAL: WarpDriveSignal): unknown;
146
- notify(): void;
147
- /**
148
- Reloads all of the records in the manyArray. If the manyArray
149
- holds a relationship that was originally fetched using a links url
150
- EmberData will revisit the original links url to repopulate the
151
- relationship.
152
-
153
- If the ManyArray holds the result of a `store.query()` reload will
154
- re-run the original query.
155
-
156
- Example
157
-
158
- ```javascript
159
- let user = store.peekRecord('user', '1')
160
- await login(user);
161
-
162
- let permissions = await user.permissions;
163
- await permissions.reload();
164
- ```
165
-
166
- @public
167
- */
168
- reload(options?: BaseFinderOptions): Promise<this>;
169
- /**
170
- Create a child record within the owner
171
-
172
- @public
173
- @param {Object} hash
174
- @return {Model} record
175
- */
176
- createRecord(hash: CreateRecordProperties<T>): T;
177
- /**
178
- Saves all of the records in the `ManyArray`.
179
-
180
- Note: this API can only be used in legacy mode with a configured Adapter.
181
-
182
- Example
183
-
184
- ```javascript
185
- const { content: { data: inbox } } = await store.request(findRecord({ type: 'inbox', id: '1' }));
186
-
187
- let messages = await inbox.messages;
188
- messages.forEach((message) => {
189
- message.isRead = true;
190
- });
191
- messages.save();
192
- ```
193
-
194
- @public
195
- @return {PromiseArray} promise
196
- */
197
- save: () => Promise<IdentifierArray<T>>;
198
- /** @internal */
199
- destroy(): void;
200
- }
201
- }
202
- //# sourceMappingURL=many-array.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"many-array.d.ts","sourceRoot":"","sources":["../../../src/-private/record-arrays/many-array.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAEV,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAEvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAGlE,OAAO,EAAsC,KAAK,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC/G,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,EAAU,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3D,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,WAAW,EAAE,sBAAsB,CAAC,wBAAwB,CAAC,CAAC,CA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