@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 +0,0 @@
1
- {"version":3,"file":"store-service.d.ts","sourceRoot":"","sources":["../../src/-private/store-service.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAYlD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChH,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAI3F,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,C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private/store-service.type-test' {
2
- export {};
3
- }
4
- //# sourceMappingURL=store-service.type-test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store-service.type-test.d.ts","sourceRoot":"","sources":["../../src/-private/store-service.type-test.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- declare module '@ember-data/store/-private/utils/coerce-id' {
2
- /**
3
- @module @ember-data/store
4
- */
5
- type Coercable = string | number | boolean | null | undefined | symbol;
6
- export function coerceId(id: unknown): string | null;
7
- export function ensureStringId(id: Coercable): string;
8
- export {};
9
- }
10
- //# sourceMappingURL=coerce-id.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coerce-id.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/coerce-id.ts"],"names":[],"mappings":"AAAA;;EAEE;AAaF,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvE,wBAAgB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAkCnD;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAWpD"}
@@ -1,9 +0,0 @@
1
- declare module '@ember-data/store/-private/utils/construct-resource' {
2
- import type { ExistingResourceIdentifierObject, ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
3
- export function constructResource(type: ResourceIdentifierObject): ResourceIdentifierObject;
4
- export function constructResource(type: string, id: string, lid: string): ExistingResourceIdentifierObject;
5
- export function constructResource(type: string | undefined, id: null | undefined, lid: string): ExistingResourceIdentifierObject;
6
- export function constructResource(type: string, id: string, lid?: string | null): ExistingResourceIdentifierObject;
7
- export function constructResource(type: string, id?: string | number | null, lid?: string | null): ResourceIdentifierObject;
8
- }
9
- //# sourceMappingURL=construct-resource.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"construct-resource.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/construct-resource.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gCAAgC,EAChC,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAMlD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB,CAAC;AAC5F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,gCAAgC,CAAC;AAC3G,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,EAAE,EAAE,IAAI,GAAG,SAAS,EACpB,GAAG,EAAE,MAAM,GACV,gCAAgC,CAAC;AACpC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,gCAAgC,CAAC;AACnH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAClB,wBAAwB,CAAC"}
@@ -1,4 +0,0 @@
1
- declare module '@ember-data/store/-private/utils/is-non-empty-string' {
2
- export function isNonEmptyString(str: unknown): str is string;
3
- }
4
- //# sourceMappingURL=is-non-empty-string.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-non-empty-string.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/is-non-empty-string.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAE5D"}
@@ -1,4 +0,0 @@
1
- declare module '@ember-data/store/-private/utils/normalize-model-name' {
2
- export function normalizeModelName(type: string): string;
3
- }
4
- //# sourceMappingURL=normalize-model-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize-model-name.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/normalize-model-name.ts"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAsBvD"}
@@ -1,4 +0,0 @@
1
- declare module '@ember-data/store/-private/utils/uuid-polyfill' {
2
- export default function installPolyfill(): void;
3
- }
4
- //# sourceMappingURL=uuid-polyfill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uuid-polyfill.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/uuid-polyfill.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,eAAe,SAiEtC"}
@@ -1,21 +0,0 @@
1
- declare module '@ember-data/store/-types/overview' {
2
- export {};
3
- /**
4
- * Many parts of EmberData are interface-driven,
5
- * meaning that no specific base-class is necessary
6
- * to implement an interopable module of your own
7
- * utilizing only public APIs.
8
- *
9
- * Examples of primitives in EmberData that are interface-driven
10
- * include Adapters, Serializers, Request Handlers, and the Cache.
11
- *
12
- * These **Not Yet Installable** Typescript Types
13
- * Document key interfaces that libraries and
14
- * applications interfacing with EmberData would need
15
- * to conform to.
16
- *
17
- @module @ember-data/experimental-preview-types
18
- @main @ember-data/experimental-preview-types
19
- */
20
- }
21
- //# sourceMappingURL=overview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"overview.d.ts","sourceRoot":"","sources":["../../src/-types/overview.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -1,110 +0,0 @@
1
- declare module '@ember-data/store/-types/q/cache-capabilities-manager' {
2
- import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
3
- import type { IdentifierCache } from '@ember-data/store/-private/caches/identifier-cache';
4
- import type { NotificationType } from '@ember-data/store/-private/managers/notification-manager';
5
- import type { SchemaService } from '@ember-data/store/-types/q/schema-service';
6
- /**
7
- @module @ember-data/store
8
- */
9
- /**
10
- * CacheCapabilitiesManager provides encapsulated API access to the minimal
11
- * subset of the Store's functionality that Cache implementations
12
- * should interact with. It is provided to the Store's `createCache` hook.
13
- *
14
- * Cache implementations should not need more than this API provides.
15
- *
16
- * This class cannot be directly instantiated.
17
- *
18
- * @class CacheCapabilitiesManager
19
- * @public
20
- */
21
- export type CacheCapabilitiesManager = {
22
- /**
23
- * Provides access to the IdentifierCache instance
24
- * for this Store instance.
25
- *
26
- * The IdentifierCache can be used to peek, generate or
27
- * retrieve a stable unique identifier for any resource.
28
- *
29
- * @property identifierCache
30
- * @type {IdentifierCache}
31
- * @public
32
- */
33
- identifierCache: IdentifierCache;
34
- /**
35
- * DEPRECATED - use the schema property
36
- *
37
- * Provides access to the SchemaService instance
38
- * for this Store instance.
39
- *
40
- * The SchemaService can be used to query for
41
- * information about the schema of a resource.
42
- *
43
- * @method getSchemaDefinitionService
44
- * @deprecated
45
- * @public
46
- */
47
- getSchemaDefinitionService(): SchemaService;
48
- /**
49
- * Provides access to the SchemaService instance
50
- * for this Store instance.
51
- *
52
- * The SchemaService can be used to query for
53
- * information about the schema of a resource.
54
- *
55
- * @property schema
56
- * @public
57
- */
58
- schema: SchemaService;
59
- /**
60
- * Update the `id` for the record corresponding to the identifier
61
- * This operation can only be done for records whose `id` is `null`.
62
- *
63
- * @method setRecordId
64
- * @param {StableRecordIdentifier} identifier;
65
- * @param {String} id;
66
- * @public
67
- */
68
- setRecordId(identifier: StableRecordIdentifier, id: string): void;
69
- /**
70
- * Signal to the store that the specified record may be considered fully
71
- * removed from the cache. Generally this means that not only does no
72
- * data exist for the identified resource, no known relationships still
73
- * point to it either.
74
- *
75
- * @method disconnectRecord
76
- * @param {StableRecordIdentifier} identifier
77
- * @public
78
- */
79
- disconnectRecord(identifier: StableRecordIdentifier): void;
80
- /**
81
- * Use this method to determine if the Store has an instantiated record associated
82
- * with an identifier.
83
- *
84
- * @method hasRecord
85
- * @param identifier
86
- * @return {Boolean}
87
- * @public
88
- */
89
- hasRecord(identifier: StableRecordIdentifier): boolean;
90
- /**
91
- * Notify subscribers of the NotificationManager that cache state has changed.
92
- *
93
- * `attributes` and `relationships` do not require a key, but if one is specified it
94
- * is assumed to be the name of the attribute or relationship that has been updated.
95
- *
96
- * No other namespaces currently expect the `key` argument.
97
- *
98
- * @method notifyChange
99
- * @param {StableRecordIdentifier} identifier
100
- * @param {'attributes' | 'relationships' | 'identity' | 'errors' | 'meta' | 'state'} namespace
101
- * @param {string|undefined} key
102
- * @public
103
- */
104
- notifyChange(identifier: StableRecordIdentifier, namespace: 'added' | 'removed', key: null): void;
105
- notifyChange(identifier: StableDocumentIdentifier, namespace: 'added' | 'updated' | 'removed', key: null): void;
106
- notifyChange(identifier: StableRecordIdentifier, namespace: NotificationType, key: string | null): void;
107
- notifyChange(identifier: StableRecordIdentifier | StableDocumentIdentifier, namespace: NotificationType | 'added' | 'removed' | 'updated', key: string | null): void;
108
- };
109
- }
110
- //# sourceMappingURL=cache-capabilities-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache-capabilities-manager.d.ts","sourceRoot":"","sources":["../../../src/-types/q/cache-capabilities-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE1G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;EAEE;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;;;;;;;OAUG;IACH,eAAe,EAAE,eAAe,CAAC;IAEjC;;;;;;;;;;;;OAYG;IACH,0BAA0B,IAAI,aAAa,CAAC;IAE5C;;;;;;;;;OASG;IACH,MAAM,EAAE,aAAa,CAAC;IAEtB;;;;;;;;OAQG;IACH,WAAW,CAAC,UAAU,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAElE;;;;;;;;;OASG;IACH,gBAAgB,CAAC,UAAU,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAE3D;;;;;;;;OAQG;IACH,SAAS,CAAC,UAAU,EAAE,sBAAsB,GAAG,OAAO,CAAC;IAEvD;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IAClG,YAAY,CAAC,UAAU,EAAE,wBAAwB,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;IAChH,YAAY,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACxG,YAAY,CACV,UAAU,EAAE,sBAAsB,GAAG,wBAAwB,EAC7D,SAAS,EAAE,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,EAC7D,GAAG,EAAE,MAAM,GAAG,IAAI,GACjB,IAAI,CAAC;CACT,CAAC"}
@@ -1,25 +0,0 @@
1
- declare module '@ember-data/store/-types/q/ds-model' {
2
- import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
3
- import type { LegacyAttributeField, LegacyRelationshipField } from '@warp-drive/core-types/schema/fields';
4
- export type KeyOrString<T> = keyof T & string extends never ? string : keyof T & string;
5
- /**
6
- * Minimum subset of static schema methods and properties on the
7
- * "model" class.
8
- *
9
- * Only used when using the legacy schema-service implementation
10
- * for @ember-data/model or when wrapping schema for legacy
11
- * Adapters/Serializers.
12
- *
13
- * @typedoc
14
- */
15
- export interface ModelSchema<T = unknown> {
16
- modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
17
- fields: Map<KeyOrString<T>, 'attribute' | 'belongsTo' | 'hasMany'>;
18
- attributes: Map<KeyOrString<T>, LegacyAttributeField>;
19
- relationshipsByName: Map<KeyOrString<T>, LegacyRelationshipField>;
20
- eachAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, attribute: LegacyAttributeField) => void, binding?: T): void;
21
- eachRelationship<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, relationship: LegacyRelationshipField) => void, binding?: T): void;
22
- eachTransformedAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, type: string | null) => void, binding?: T): void;
23
- }
24
- }
25
- //# sourceMappingURL=ds-model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ds-model.d.ts","sourceRoot":"","sources":["../../../src/-types/q/ds-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE1G,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,SAAS,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;AAExF;;;;;;;;;GASG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,OAAO;IACtC,SAAS,EAAE,CAAC,SAAS,mBAAmB,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;IACxE,MAAM,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC,CAAC;IACnE,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAAC;IACtD,mBAAmB,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,uBAAuB,CAAC,CAAC;IAClE,aAAa,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,EACpC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,oBAAoB,KAAK,IAAI,EACjF,OAAO,CAAC,EAAE,CAAC,GACV,IAAI,CAAC;IACR,gBAAgB,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,EACvC,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,YAAY,EAAE,uBAAuB,KAAK,IAAI,EACvF,OAAO,CAAC,EAAE,CAAC,GACV,IAAI,CAAC;IACR,wBAAwB,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,EAC/C,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,EACrE,OAAO,CAAC,EAAE,CAAC,GACV,IAAI,CAAC;CACT"}
@@ -1,193 +0,0 @@
1
- declare module '@ember-data/store/-types/q/identifier' {
2
- /**
3
- @module @ember-data/store
4
- */
5
- import type { ImmutableRequestInfo } from '@ember-data/request';
6
- import type { IdentifierBucket, StableIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
7
- /**
8
- Configures how unique identifier lid strings are generated by @ember-data/store.
9
-
10
- This configuration MUST occur prior to the store instance being created.
11
-
12
- Takes a method which can expect to receive various data as its first argument
13
- and the name of a bucket as its second argument.
14
-
15
- Currently there are two buckets, 'record' and 'document'.
16
-
17
- ### Resource (`Record`) Identity
18
-
19
- If the bucket is `record` the method must return a unique (to at-least
20
- the given bucket) string identifier for the given data as a string to be
21
- used as the `lid` of an `Identifier` token.
22
-
23
- This method will only be called by either `getOrCreateRecordIdentifier` or
24
- `createIdentifierForNewRecord` when an identifier for the supplied data
25
- is not already known via `lid` or `type + id` combo and one needs to be
26
- generated or retrieved from a proprietary cache.
27
-
28
- `data` will be the same data argument provided to `getOrCreateRecordIdentifier`
29
- and in the `createIdentifierForNewRecord` case will be an object with
30
- only `type` as a key.
31
-
32
- ```ts
33
- import { setIdentifierGenerationMethod } from '@ember-data/store';
34
-
35
- export function initialize(applicationInstance) {
36
- // note how `count` here is now scoped to the application instance
37
- // for our generation method by being inside the closure provided
38
- // by the initialize function
39
- let count = 0;
40
-
41
- setIdentifierGenerationMethod((resource, bucket) => {
42
- return resource.lid || `my-key-${count++}`;
43
- });
44
- }
45
-
46
- export default {
47
- name: 'configure-ember-data-identifiers',
48
- initialize
49
- };
50
- ```
51
-
52
- ### Document Identity
53
-
54
- If the bucket is `document` the method will receive the associated
55
- immutable `request` passed to `store.request` as its first argument
56
- and should return a unique string for the given request if the document
57
- should be cached, and `null` if it should not be cached.
58
-
59
- Note, the request result will still be passed to the cache via `Cache.put`,
60
- but caches should take this as a signal that the document should not itself
61
- be cached, while its contents may still be used to update other cache state.
62
-
63
- The presence of `cacheOptions.key` on the request will take precedence
64
- for the document cache key, and this method will not be called if it is
65
- present.
66
-
67
- The default method implementation for this bucket is to return `null`
68
- for all requests whose method is not `GET`, and to return the `url` for
69
- those where it is.
70
-
71
- This means that queries via `POST` MUST provide `cacheOptions.key` or
72
- implement this hook.
73
-
74
- ⚠️ Caution: Requests that do not have a `method` assigned are assumed to be `GET`
75
-
76
- @method setIdentifierGenerationMethod
77
- @for @ember-data/store
78
- @param method
79
- @public
80
- @static
81
- */
82
- export interface GenerationMethod {
83
- (data: ImmutableRequestInfo, bucket: 'document'): string | null;
84
- (data: unknown | {
85
- type: string;
86
- }, bucket: 'record'): string;
87
- (data: unknown, bucket: IdentifierBucket): string | null;
88
- }
89
- /**
90
- Configure a callback for when the identifier cache encounters new resource
91
- data for an existing resource.
92
-
93
- This configuration MUST occur prior to the store instance being created.
94
-
95
- ```js
96
- import { setIdentifierUpdateMethod } from '@ember-data/store';
97
- ```
98
-
99
- Takes a method which can expect to receive an existing `Identifier` alongside
100
- some new data to consider as a second argument. This is an opportunity
101
- for secondary lookup tables and caches associated with the identifier
102
- to be amended.
103
-
104
- This method is called everytime `updateRecordIdentifier` is called and
105
- with the same arguments. It provides the opportunity to update secondary
106
- lookup tables for existing identifiers.
107
-
108
- It will always be called after an identifier created with `createIdentifierForNewRecord`
109
- has been committed, or after an update to the `record` a `RecordIdentifier`
110
- is assigned to has been committed. Committed here meaning that the server
111
- has acknowledged the update (for instance after a call to `.save()`)
112
-
113
- If `id` has not previously existed, it will be assigned to the `Identifier`
114
- prior to this `UpdateMethod` being called; however, calls to the parent method
115
- `updateRecordIdentifier` that attempt to change the `id` or calling update
116
- without providing an `id` when one is missing will throw an error.
117
-
118
- @method setIdentifierUpdateMethod
119
- @for @ember-data/store
120
- @param method
121
- @public
122
- @static
123
- */
124
- export type UpdateMethod = {
125
- (identifier: StableRecordIdentifier, newData: unknown, bucket: 'record'): void;
126
- (identifier: StableIdentifier, newData: unknown, bucket: never): void;
127
- };
128
- /**
129
- Configure a callback for when the identifier cache is going to release an identifier.
130
-
131
- This configuration MUST occur prior to the store instance being created.
132
-
133
- ```js
134
- import { setIdentifierForgetMethod } from '@ember-data/store';
135
- ```
136
-
137
- Takes method which can expect to receive an existing `Identifier` that should be eliminated
138
- from any secondary lookup tables or caches that the user has populated for it.
139
-
140
- @method setIdentifierForgetMethod
141
- @for @ember-data/store
142
- @param method
143
- @public
144
- @static
145
- */
146
- export type ForgetMethod = (identifier: StableIdentifier | StableRecordIdentifier, bucket: IdentifierBucket) => void;
147
- /**
148
- Configure a callback for when the identifier cache is being torn down.
149
-
150
- This configuration MUST occur prior to the store instance being created.
151
-
152
- ```js
153
- import { setIdentifierResetMethod } from '@ember-data/store';
154
- ```
155
-
156
- Takes a method which can expect to be called when the parent application is destroyed.
157
-
158
- If you have properly used a WeakMap to encapsulate the state of your customization
159
- to the application instance, you may not need to implement the `resetMethod`.
160
-
161
- @method setIdentifierResetMethod
162
- @for @ember-data/store
163
- @param method
164
- @public
165
- @static
166
- */
167
- export type ResetMethod = () => void;
168
- /**
169
- Configure a callback for when the identifier cache is generating a new
170
- StableRecordIdentifier for a resource.
171
-
172
- This method controls the `type` and `id` that will be assigned to the
173
- `StableRecordIdentifier` that is created.
174
-
175
- This configuration MUST occur prior to the store instance being created.
176
-
177
- ```js
178
- import { setKeyInfoForResource } from '@ember-data/store';
179
- ```
180
-
181
- @method setKeyInfoForResource
182
- @for @ember-data/store
183
- @param method
184
- @public
185
- @static
186
- */
187
- export type KeyInfo = {
188
- id: string | null;
189
- type: string;
190
- };
191
- export type KeyInfoMethod = (resource: unknown, known: StableRecordIdentifier | null) => KeyInfo;
192
- }
193
- //# sourceMappingURL=identifier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identifier.d.ts","sourceRoot":"","sources":["../../../src/-types/q/identifier.ts"],"names":[],"mappings":"AAAA;;EAEE;AAEF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEpH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EE;AACF,MAAM,WAAW,gBAAgB;IAC/B,CAAC,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC;IAChE,CAAC,IAAI,EAAE,OAAO,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC7D,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAAC;CAC1D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCE;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,UAAU,EAAE,sBAAsB,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC/E,CAAC,UAAU,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,IAAI,CAAC;CACvE,CAAC;AAEF;;;;;;;;;;;;;;;;;EAiBE;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,gBAAgB,GAAG,sBAAsB,EAAE,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAErH;;;;;;;;;;;;;;;;;;;EAmBE;AACF,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC;AAErC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,sBAAsB,GAAG,IAAI,KAAK,OAAO,CAAC"}
@@ -1,4 +0,0 @@
1
- declare module '@ember-data/store/-types/q/promise-proxies' {
2
- export type PromiseProxy<T> = Promise<T>;
3
- }
4
- //# sourceMappingURL=promise-proxies.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promise-proxies.d.ts","sourceRoot":"","sources":["../../../src/-types/q/promise-proxies.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -1,36 +0,0 @@
1
- declare module '@ember-data/store/-types/q/record-data-json-api' {
2
- import type { Value } from '@warp-drive/core-types/json/raw';
3
- import type { CollectionResourceRelationship, Link, Links, Meta, SingleResourceRelationship } from '@warp-drive/core-types/spec/json-api-raw';
4
- /**
5
- @module @ember-data/store
6
- */
7
- export type AttributesHash = Record<string, Value>;
8
- export interface JsonApiResource {
9
- id?: string | null;
10
- type?: string;
11
- lid?: string;
12
- attributes?: AttributesHash;
13
- relationships?: Record<string, SingleResourceRelationship | CollectionResourceRelationship>;
14
- meta?: Meta;
15
- links?: Links;
16
- }
17
- export interface JsonApiError {
18
- id?: string;
19
- title?: string;
20
- detail?: string;
21
- links?: {
22
- about?: Link;
23
- type?: Link;
24
- };
25
- status?: string;
26
- code?: string;
27
- source?: {
28
- pointer: string;
29
- parameter?: string;
30
- header?: string;
31
- };
32
- meta?: Meta;
33
- }
34
- export type JsonApiRelationship = SingleResourceRelationship | CollectionResourceRelationship;
35
- }
36
- //# sourceMappingURL=record-data-json-api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record-data-json-api.d.ts","sourceRoot":"","sources":["../../../src/-types/q/record-data-json-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EACV,8BAA8B,EAC9B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,0BAA0B,EAC3B,MAAM,0CAA0C,CAAC;AAElD;;EAEE;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,GAAG,8BAA8B,CAAC,CAAC;IAC5F,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,IAAI,CAAC;QACb,IAAI,CAAC,EAAE,IAAI,CAAC;KACb,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,GAAG,8BAA8B,CAAC"}
@@ -1,29 +0,0 @@
1
- declare module '@ember-data/store/-types/q/record-instance' {
2
- /**
3
- @module @ember-data/store
4
- */
5
- /**
6
- In EmberData, a "record instance" is a class instance used to present the data
7
- for a single resource, transforming the resource's cached raw data into a form
8
- that is useful for the application.
9
-
10
- Since every application's needs are different, EmberData does not assume to know
11
- what the shape of the record instance should be. Instead, it provides a way to
12
- define the record instance's via the `instantiateRecord` hook on the store.
13
-
14
- Thus for most purposes the `RecordInstance` type is "opaque" to EmberData, and
15
- should be treated as "unknown" by the library.
16
-
17
- Wherever possible, if typing an API that is consumer facing, instead of using
18
- OpaqueRecordInstance, we should prefer to use a generic and check if the generic
19
- extends `TypedRecordInstance`. This allows consumers to define their own record
20
- instance types and not only have their types flow through EmberData APIs, but
21
- also allows EmberData to provide typechecking and intellisense for the record
22
- based on a special symbol prsent on record instances that implement the
23
- `TypedRecordInstance` interface.
24
-
25
- @typedoc
26
- */
27
- export type OpaqueRecordInstance = unknown;
28
- }
29
- //# sourceMappingURL=record-instance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"record-instance.d.ts","sourceRoot":"","sources":["../../../src/-types/q/record-instance.ts"],"names":[],"mappings":"AAAA;;EAEE;AAEF;;;;;;;;;;;;;;;;;;;;;EAqBE;AACF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC"}