@ember-data-types/store 5.6.0-alpha.1 → 5.6.0-alpha.12

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 (90) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
  3. package/unstable-preview-types/-private.d.ts +1 -30
  4. package/unstable-preview-types/-private.d.ts.map +1 -1
  5. package/unstable-preview-types/configure.d.ts +2 -6
  6. package/unstable-preview-types/configure.d.ts.map +1 -1
  7. package/unstable-preview-types/index.d.ts +2 -224
  8. package/unstable-preview-types/index.d.ts.map +1 -1
  9. package/unstable-preview-types/types.d.ts +1 -4
  10. package/unstable-preview-types/types.d.ts.map +1 -1
  11. package/unstable-preview-types/-private/cache-handler/handler.d.ts +0 -62
  12. package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +0 -1
  13. package/unstable-preview-types/-private/cache-handler/types.d.ts +0 -107
  14. package/unstable-preview-types/-private/cache-handler/types.d.ts.map +0 -1
  15. package/unstable-preview-types/-private/cache-handler/utils.d.ts +0 -34
  16. package/unstable-preview-types/-private/cache-handler/utils.d.ts.map +0 -1
  17. package/unstable-preview-types/-private/caches/cache-utils.d.ts +0 -11
  18. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +0 -1
  19. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +0 -180
  20. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +0 -1
  21. package/unstable-preview-types/-private/caches/instance-cache.d.ts +0 -64
  22. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +0 -1
  23. package/unstable-preview-types/-private/caches/resource-utils.d.ts +0 -12
  24. package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +0 -1
  25. package/unstable-preview-types/-private/debug/utils.d.ts +0 -9
  26. package/unstable-preview-types/-private/debug/utils.d.ts.map +0 -1
  27. package/unstable-preview-types/-private/document.d.ts +0 -155
  28. package/unstable-preview-types/-private/document.d.ts.map +0 -1
  29. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +0 -179
  30. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +0 -1
  31. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +0 -19
  32. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +0 -1
  33. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +0 -31
  34. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +0 -1
  35. package/unstable-preview-types/-private/managers/cache-manager.d.ts +0 -463
  36. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +0 -1
  37. package/unstable-preview-types/-private/managers/notification-manager.d.ts +0 -101
  38. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +0 -1
  39. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +0 -101
  40. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +0 -1
  41. package/unstable-preview-types/-private/network/request-cache.d.ts +0 -109
  42. package/unstable-preview-types/-private/network/request-cache.d.ts.map +0 -1
  43. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +0 -289
  44. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +0 -1
  45. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +0 -92
  46. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +0 -1
  47. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts +0 -172
  48. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts.map +0 -1
  49. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts +0 -32
  50. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts.map +0 -1
  51. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +0 -276
  52. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +0 -1
  53. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +0 -145
  54. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +0 -1
  55. package/unstable-preview-types/-private/record-arrays/many-array.d.ts +0 -203
  56. package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +0 -1
  57. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +0 -118
  58. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +0 -1
  59. package/unstable-preview-types/-private/store-service.d.ts +0 -1601
  60. package/unstable-preview-types/-private/store-service.d.ts.map +0 -1
  61. package/unstable-preview-types/-private/store-service.type-test.d.ts +0 -4
  62. package/unstable-preview-types/-private/store-service.type-test.d.ts.map +0 -1
  63. package/unstable-preview-types/-private/utils/coerce-id.d.ts +0 -10
  64. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +0 -1
  65. package/unstable-preview-types/-private/utils/construct-resource.d.ts +0 -9
  66. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +0 -1
  67. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +0 -4
  68. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +0 -1
  69. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +0 -4
  70. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +0 -1
  71. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +0 -4
  72. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +0 -1
  73. package/unstable-preview-types/-types/overview.d.ts +0 -21
  74. package/unstable-preview-types/-types/overview.d.ts.map +0 -1
  75. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +0 -110
  76. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +0 -1
  77. package/unstable-preview-types/-types/q/ds-model.d.ts +0 -25
  78. package/unstable-preview-types/-types/q/ds-model.d.ts.map +0 -1
  79. package/unstable-preview-types/-types/q/identifier.d.ts +0 -193
  80. package/unstable-preview-types/-types/q/identifier.d.ts.map +0 -1
  81. package/unstable-preview-types/-types/q/promise-proxies.d.ts +0 -4
  82. package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +0 -1
  83. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +0 -36
  84. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +0 -1
  85. package/unstable-preview-types/-types/q/record-instance.d.ts +0 -29
  86. package/unstable-preview-types/-types/q/record-instance.d.ts.map +0 -1
  87. package/unstable-preview-types/-types/q/schema-service.d.ts +0 -354
  88. package/unstable-preview-types/-types/q/schema-service.d.ts.map +0 -1
  89. package/unstable-preview-types/-types/q/store.d.ts +0 -38
  90. package/unstable-preview-types/-types/q/store.d.ts.map +0 -1
@@ -1,354 +0,0 @@
1
- declare module '@ember-data/store/-types/q/schema-service' {
2
- /**
3
- @module @ember-data/store
4
- */
5
- import type { StableRecordIdentifier } from '@warp-drive/core-types';
6
- import type { RecordIdentifier } from '@warp-drive/core-types/identifier';
7
- import type { ObjectValue } from '@warp-drive/core-types/json/raw';
8
- import type { Derivation, HashFn, Transformation } from '@warp-drive/core-types/schema/concepts';
9
- import type { ArrayField, DerivedField, FieldSchema, GenericField, HashField, LegacyAttributeField, LegacyRelationshipField, ObjectField, Schema } from '@warp-drive/core-types/schema/fields';
10
- export type AttributesSchema = Record<string, LegacyAttributeField>;
11
- export type RelationshipsSchema = Record<string, LegacyRelationshipField>;
12
- interface ObjectWithStringTypeProperty {
13
- type: string;
14
- }
15
- /**
16
- * The SchemaService provides the ability to query for information about the structure
17
- * of any resource type.
18
- *
19
- * Applications can provide any implementation of the SchemaService they please so long
20
- * as it conforms to this interface.
21
- *
22
- * The design of the service means that schema information could be lazily populated,
23
- * derived-on-demand, or progressively enhanced during the course of an application's runtime.
24
- * The primary requirement is merely that any information the service needs to correctly
25
- * respond to an inquest is available by the time it is asked.
26
- *
27
- * The `@ember-data/model` package provides an implementation of this service which
28
- * makes use of your model classes as the source of information to respond to queries
29
- * about resource schema. While this is useful, this may not be ideal for your application.
30
- * For instance, Schema information could be sideloaded or pre-flighted for API calls,
31
- * resulting in no need to bundle and ship potentially large and expensive JSON
32
- * or large Javascript based Models to pull information from.
33
- *
34
- * To register a custom schema implementation, implement the store's `createSchemaService`
35
- * hook to return an instance of your service.
36
- *
37
- * ```ts
38
- * import Store from '@ember-data/store';
39
- * import CustomSchemas from './custom-schemas';
40
- *
41
- * export default class extends Store {
42
- * createSchemaService() {
43
- * return new CustomSchemas();
44
- * }
45
- * }
46
- * ```
47
- *
48
- * At runtime, both the `Store` and the `CacheCapabilitiesManager` provide
49
- * access to this service via the `schema` property.
50
- *
51
- * ```ts
52
- * export default class extends Component {
53
- * @service store;
54
- *
55
- * get fields() {
56
- * return this.store
57
- * .schema
58
- * .fields(this.args.dataType);
59
- * }
60
- * }
61
- * ```
62
- *
63
- * @class <Interface> SchemaService
64
- * @public
65
- */
66
- export interface SchemaService {
67
- /**
68
- * DEPRECATED - use `hasResource` instead
69
- *
70
- * Queries whether the SchemaService recognizes `type` as a resource type
71
- *
72
- * @method doesTypeExist
73
- * @public
74
- * @deprecated
75
- * @param {String} type
76
- * @return {Boolean}
77
- */
78
- doesTypeExist?(type: string): boolean;
79
- /**
80
- * Queries whether the SchemaService recognizes `type` as a resource type
81
- *
82
- * @method hasResource
83
- * @public
84
- * @param {StableRecordIdentifier|ObjectWithStringTypeProperty} resource
85
- * @return {Boolean}
86
- */
87
- hasResource(resource: ObjectWithStringTypeProperty | StableRecordIdentifier): boolean;
88
- /**
89
- * Queries whether the SchemaService recognizes `type` as a resource trait
90
- *
91
- * @method hasTrait
92
- * @public
93
- * @param {String} type
94
- * @return {Boolean}
95
- */
96
- hasTrait(type: string): boolean;
97
- /**
98
- * Queries whether the given resource has the given trait
99
- *
100
- * @method resourceHasTrait
101
- * @public
102
- * @param {StableRecordIdentifier|ObjectWithStringTypeProperty} resource
103
- * @param {String} trait
104
- * @return {Boolean}
105
- */
106
- resourceHasTrait(resource: ObjectWithStringTypeProperty | StableRecordIdentifier, trait: string): boolean;
107
- /**
108
- * Queries for the fields of a given resource type or resource identity.
109
- *
110
- * Should error if the resource type is not recognized.
111
- *
112
- * @method fields
113
- * @public
114
- * @param {StableRecordIdentifier|ObjectWithStringTypeProperty} resource
115
- * @return {Map<string, FieldSchema>}
116
- */
117
- fields(resource: ObjectWithStringTypeProperty | StableRecordIdentifier): Map<string, FieldSchema>;
118
- /**
119
- * Returns the transformation registered with the name provided
120
- * by `field.type`. Validates that the field is a valid transformable.
121
- *
122
- * @method transformation
123
- * @public
124
- * @param {TransformableField|ObjectWithStringTypeProperty} field
125
- * @return {Transformation}
126
- */
127
- transformation(field: GenericField | ObjectField | ArrayField | ObjectWithStringTypeProperty): Transformation;
128
- /**
129
- * Returns the hash function registered with the name provided
130
- * by `field.type`. Validates that the field is a valid HashField.
131
- *
132
- * @method hashFn
133
- * @public
134
- * @param {HashField|ObjectWithStringTypeProperty} field
135
- * @return {HashFn}
136
- */
137
- hashFn(field: HashField | ObjectWithStringTypeProperty): HashFn;
138
- /**
139
- * Returns the derivation registered with the name provided
140
- * by `field.type`. Validates that the field is a valid DerivedField.
141
- *
142
- * @method derivation
143
- * @public
144
- * @param {DerivedField|ObjectWithStringTypeProperty} field
145
- * @return {Derivation}
146
- */
147
- derivation(field: DerivedField | ObjectWithStringTypeProperty): Derivation;
148
- /**
149
- * Returns the schema for the provided resource type.
150
- *
151
- * @method resource
152
- * @public
153
- * @param {StableRecordIdentifier|ObjectWithStringTypeProperty} resource
154
- * @return {ResourceSchema}
155
- */
156
- resource(resource: ObjectWithStringTypeProperty | StableRecordIdentifier): Schema;
157
- /**
158
- * Enables registration of multiple Schemas at once.
159
- *
160
- * This can be useful for either pre-loading schema information
161
- * or for registering schema information delivered by API calls
162
- * or other sources just-in-time.
163
- *
164
- * @method registerResources
165
- * @public
166
- * @param {Schema[]} schemas
167
- */
168
- registerResources(schemas: Schema[]): void;
169
- /**
170
- * Enables registration of a single Schema representing either
171
- * a resource in PolarisMode or LegacyMode or an ObjectSchema
172
- * representing an embedded structure in other schemas.
173
- *
174
- * This can be useful for either pre-loading schema information
175
- * or for registering schema information delivered by API calls
176
- * or other sources just-in-time.
177
- *
178
- * @method registerResource
179
- * @public
180
- * @param {Schema} schema
181
- */
182
- registerResource(schema: Schema): void;
183
- /**
184
- * Enables registration of a transformation.
185
- *
186
- * The transformation can later be retrieved by the name
187
- * attached to it's `[Type]` property.
188
- *
189
- * @method registerTransformations
190
- * @public
191
- * @param {Transformation} transform
192
- */
193
- registerTransformation(transform: Transformation): void;
194
- /**
195
- * Enables registration of a derivation.
196
- *
197
- * The derivation can later be retrieved by the name
198
- * attached to it's `[Type]` property.
199
- *
200
- * @method registerDerivations
201
- * @public
202
- * @param {Derivation} derivation
203
- */
204
- registerDerivation<R, T, FM extends ObjectValue | null>(derivation: Derivation<R, T, FM>): void;
205
- /**
206
- * Enables registration of a hashing function
207
- *
208
- * The hashing function can later be retrieved by the name
209
- * attached to it's `[Type]` property.
210
- *
211
- * @method registerHashFn
212
- * @public
213
- * @param {HashFn} hashfn
214
- */
215
- registerHashFn(hashFn: HashFn): void;
216
- /**
217
- * DEPRECATED - use `fields` instead
218
- *
219
- * Returns definitions for all properties of the specified resource
220
- * that are considered "attributes". Generally these are properties
221
- * that are not related to book-keeping state on the client and do
222
- * not represent a linkage to another resource.
223
- *
224
- * The return value should be a dictionary of key:value pairs
225
- * where the `key` is the attribute or property's name and `value`
226
- * is an object with at least the property `name` which should also
227
- * match `key`.
228
- *
229
- * Optionally, this object may also specify `type`, which should
230
- * be a string reference to a `transform`, and `options` which
231
- * should be dictionary in which any key:value pairs are permissable.
232
- *
233
- * For instance, when using `@ember-data/model`, the following attribute
234
- * definition:
235
- *
236
- * ```ts
237
- * class extends Model {
238
- * @attr('string', { defaultValue: 'hello' }) greeting;
239
- * @attr('date') birthday;
240
- * @attr firstName;
241
- * }
242
- * ```
243
- *
244
- * Would be returned as:
245
- *
246
- * ```js
247
- * {
248
- * greeting: { name: 'greeting', type: 'string', options: { defaultValue: 'hello' } },
249
- * birthday: { name: 'birthday', type: 'date' },
250
- * firstName: { name: 'firstName' }
251
- * }
252
- * ```
253
- *
254
- * @method attributesDefinitionFor
255
- * @public
256
- * @deprecated
257
- * @param {RecordIdentifier|ObjectWithStringTypeProperty} identifier
258
- * @return {AttributesSchema}
259
- */
260
- attributesDefinitionFor?(identifier: RecordIdentifier | ObjectWithStringTypeProperty): AttributesSchema;
261
- /**
262
- * DEPRECATED - use `fields` instead
263
- *
264
- * Returns definitions for all properties of the specified resource
265
- * that are considered "relationships". Generally these are properties
266
- * that represent a linkage to another resource.
267
- *
268
- * The return value should be a dictionary of key:value pairs
269
- * where the `key` is the relationship or property's name and `value`
270
- * is an object with at least the following properties:
271
- *
272
- * - `name` which should also match the `key` used in the dictionary.
273
- * - `kind` which should be either `belongsTo` or `hasMany`
274
- * - `type` which should be the related resource's string "type"
275
- * - `options` which should be a dictionary allowing any key but with
276
- * at least the below keys present.
277
- *
278
- * - `options.async` a boolean representing whether data for this relationship is
279
- * typically loaded on-demand.
280
- * - `options.inverse` a string or null representing the field name / key of the
281
- * corresponding relationship on the inverse resource.
282
- *
283
- * Additionally the following options properties are optional. See [Polymorphic Relationships](https://rfcs.emberjs.com/id/0793-polymporphic-relations-without-inheritance)
284
- *
285
- * - `options.polymorphic` a boolean representing whether multiple resource types
286
- * can be used to satisfy this relationship.
287
- * - `options.as` a string representing the abstract type that the concrete side of
288
- * a relationship must specify when fulfilling a polymorphic inverse.
289
- *
290
- * For example, the following Model using @ember-data/model would generate this relationships
291
- * definition by default:
292
- *
293
- * ```js
294
- * class User extends Model {
295
- * @belongsTo('user', { async: false, inverse: null }) bestFriend;
296
- * @hasMany('user', { async: true, inverse: 'friends' }) friends;
297
- * @hasMany('pet', { async: false, polymorphic: true, inverse: 'owner' }) pets;
298
- * }
299
- * ```
300
- *
301
- * Which would be returned as
302
- *
303
- * ```js
304
- * {
305
- * bestFriend: {
306
- * name: 'bestFriend',
307
- * kind: 'belongsTo',
308
- * type: 'user',
309
- * options: {
310
- * async: false,
311
- * inverse: null
312
- * }
313
- * },
314
- * friends: {
315
- * name: 'friends',
316
- * kind: 'hasMany',
317
- * type: 'user',
318
- * options: {
319
- * async: true,
320
- * inverse: 'friends'
321
- * }
322
- * },
323
- * pets: {
324
- * name: 'pets',
325
- * kind: 'hasMany',
326
- * type: 'pet',
327
- * options: {
328
- * async: false,
329
- * polymorphic: true,
330
- * inverse: 'owner'
331
- * }
332
- * },
333
- * }
334
- * ```
335
- *
336
- * @method relationshipsDefinitionFor
337
- * @public
338
- * @deprecated
339
- * @param {RecordIdentifier|ObjectWithStringTypeProperty} identifier
340
- * @return {RelationshipsSchema}
341
- */
342
- relationshipsDefinitionFor?(identifier: RecordIdentifier | ObjectWithStringTypeProperty): RelationshipsSchema;
343
- /**
344
- * Returns all known resource types
345
- *
346
- * @method resourceTypes
347
- * @public
348
- * @return {String[]}
349
- */
350
- resourceTypes(): Readonly<string[]>;
351
- }
352
- export {};
353
- }
354
- //# sourceMappingURL=schema-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-service.d.ts","sourceRoot":"","sources":["../../../src/-types/q/schema-service.ts"],"names":[],"mappings":"AAAA;;EAEE;AAEF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,WAAW,EACX,MAAM,EACP,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,M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;;;;;OASG;IACH,sBAAsB,CAAC,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC;IAExD;;;;;;;;;OASG;IACH,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,WAAW,GAAG,IAAI,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC;IAEhG;;;;;;;;;OASG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,uBAAuB,CAAC,CAAC,UAAU,EAAE,gBAAgB,GAAG,4BAA4B,GAAG,gBAAgB,CAAC;IAExG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgFG;IACH,0BAA0B,CAAC,CAAC,UAAU,EAAE,gBAAgB,GAAG,4BAA4B,GAAG,mBAAmB,CAAC;IAE9G;;;;;;OAMG;IACH,aAAa,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;CACrC"}
@@ -1,38 +0,0 @@
1
- declare module '@ember-data/store/-types/q/store' {
2
- import type { Value } from '@warp-drive/core-types/json/raw';
3
- import type { Includes, TypedRecordInstance } from '@warp-drive/core-types/record';
4
- export interface BaseFinderOptions<T = unknown> {
5
- reload?: boolean;
6
- backgroundReload?: boolean;
7
- include?: T extends TypedRecordInstance ? Includes<T>[] : string | string[];
8
- adapterOptions?: Record<string, unknown>;
9
- }
10
- export interface FindRecordOptions<T = unknown> extends BaseFinderOptions<T> {
11
- /**
12
- * Data to preload into the store before the request is made.
13
- * This feature is *highly* discouraged and has no corresponding
14
- * feature when using builders and handlers.
15
- *
16
- * Excepting relationships: the data should be in the form of a
17
- * JSON object where the keys are fields on the record and the value
18
- * is the raw value to be added to the cache.
19
- *
20
- * Relationships can either be provided as string IDs from which
21
- * an identifier will be built base upon the relationship's expected
22
- * resource type, or be record instances from which the identifier
23
- * will be extracted.
24
- *
25
- * @typedoc
26
- */
27
- preload?: Record<string, Value>;
28
- }
29
- export type QueryOptions = {
30
- [K in string | 'adapterOptions']?: K extends 'adapterOptions' ? Record<string, unknown> : unknown;
31
- };
32
- export type FindAllOptions<T = unknown> = BaseFinderOptions<T>;
33
- export type LegacyResourceQuery<T = unknown> = {
34
- include?: T extends TypedRecordInstance ? Includes<T>[] : string | string[];
35
- [key: string]: Value | undefined;
36
- };
37
- }
38
- //# sourceMappingURL=store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/-types/q/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEnF,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,SAAS,mBAAmB,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;AACD,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,iBAAiB,CAAC,CAAC,CAAC;IAC1E;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CACjC;AAED,MAAM,MAAM,YAAY,GAAG;KACxB,CAAC,IAAI,MAAM,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE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