@ember-data/store 5.4.0-beta.17 → 5.4.0-beta.19

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 (30) hide show
  1. package/dist/-private.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/{many-array-D-iDvWAq.js → many-array-BwVo-2vv.js} +406 -350
  4. package/dist/many-array-BwVo-2vv.js.map +1 -0
  5. package/package.json +21 -21
  6. package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +1 -1
  7. package/unstable-preview-types/-private/cache-handler/utils.d.ts +0 -5
  8. package/unstable-preview-types/-private/cache-handler/utils.d.ts.map +1 -1
  9. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +7 -3
  10. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +1 -1
  11. package/unstable-preview-types/-private/caches/instance-cache.d.ts +4 -1
  12. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +1 -1
  13. package/unstable-preview-types/-private/document.d.ts +23 -14
  14. package/unstable-preview-types/-private/document.d.ts.map +1 -1
  15. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +3 -3
  16. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +1 -1
  17. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +1 -1
  18. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +7 -5
  19. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +1 -1
  20. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +3 -1
  21. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +1 -1
  22. package/unstable-preview-types/-private/store-service.d.ts +1 -3
  23. package/unstable-preview-types/-private/store-service.d.ts.map +1 -1
  24. package/unstable-preview-types/-private.d.ts +2 -2
  25. package/unstable-preview-types/-private.d.ts.map +1 -1
  26. package/unstable-preview-types/-types/q/ds-model.d.ts +3 -3
  27. package/unstable-preview-types/-types/q/ds-model.d.ts.map +1 -1
  28. package/unstable-preview-types/-types/q/schema-service.d.ts +13 -5
  29. package/unstable-preview-types/-types/q/schema-service.d.ts.map +1 -1
  30. package/dist/many-array-D-iDvWAq.js.map +0 -1
@@ -6,9 +6,9 @@ declare module '@ember-data/store/-types/q/schema-service' {
6
6
  import type { RecordIdentifier } from '@warp-drive/core-types/identifier';
7
7
  import type { ObjectValue } from '@warp-drive/core-types/json/raw';
8
8
  import type { Derivation, HashFn, Transformation } from '@warp-drive/core-types/schema/concepts';
9
- import type { ArrayField, DerivedField, FieldSchema, GenericField, HashField, LegacyAttributeField, LegacyBelongsToField, LegacyHasManyField, ObjectField, ObjectSchema, ResourceSchema } from '@warp-drive/core-types/schema/fields';
9
+ import type { ArrayField, DerivedField, FieldSchema, GenericField, HashField, LegacyAttributeField, LegacyRelationshipField, ObjectField, Schema } from '@warp-drive/core-types/schema/fields';
10
10
  export type AttributesSchema = Record<string, LegacyAttributeField>;
11
- export type RelationshipsSchema = Record<string, LegacyBelongsToField | LegacyHasManyField>;
11
+ export type RelationshipsSchema = Record<string, LegacyRelationshipField>;
12
12
  /**
13
13
  * The SchemaService provides the ability to query for information about the structure
14
14
  * of any resource type.
@@ -164,7 +164,7 @@ declare module '@ember-data/store/-types/q/schema-service' {
164
164
  */
165
165
  resource(resource: {
166
166
  type: string;
167
- } | StableRecordIdentifier): ResourceSchema | ObjectSchema;
167
+ } | StableRecordIdentifier): Schema;
168
168
  /**
169
169
  * Enables registration of multiple ResourceSchemas at once.
170
170
  *
@@ -176,7 +176,7 @@ declare module '@ember-data/store/-types/q/schema-service' {
176
176
  * @public
177
177
  * @param schemas
178
178
  */
179
- registerResources(schemas: Array<ResourceSchema | ObjectSchema>): void;
179
+ registerResources(schemas: Schema[]): void;
180
180
  /**
181
181
  * Enables registration of a single ResourceSchema.
182
182
  *
@@ -188,7 +188,7 @@ declare module '@ember-data/store/-types/q/schema-service' {
188
188
  * @public
189
189
  * @param {ResourceSchema} schema
190
190
  */
191
- registerResource(schema: ResourceSchema | ObjectSchema): void;
191
+ registerResource(schema: Schema): void;
192
192
  /**
193
193
  * Enables registration of a transformation.
194
194
  *
@@ -353,6 +353,14 @@ declare module '@ember-data/store/-types/q/schema-service' {
353
353
  relationshipsDefinitionFor?(identifier: RecordIdentifier | {
354
354
  type: string;
355
355
  }): RelationshipsSchema;
356
+ /**
357
+ * Returns all known resource types
358
+ *
359
+ * @method resourceTypes
360
+ * @public
361
+ * @return {string[]}
362
+ */
363
+ resourceTypes(): Readonly<string[]>;
356
364
  }
357
365
  }
358
366
  //# sourceMappingURL=schema-service.d.ts.map
@@ -1 +1 @@
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,oBAAoB,EACpB,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,cAAc,EACf,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,kBAAkB,CAAC,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;;OAUG;IACH,aAAa,CAAC,CAAC,IAAI,EAAE,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