@ember-data/store 5.4.0-alpha.30 → 5.4.0-alpha.31

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 (70) hide show
  1. package/addon/cache-handler-oB00-31L.js.map +1 -1
  2. package/package.json +11 -10
  3. package/unstable-preview-types/-private/cache-handler.d.ts +99 -0
  4. package/unstable-preview-types/-private/cache-handler.d.ts.map +1 -0
  5. package/unstable-preview-types/-private/caches/cache-utils.d.ts +9 -0
  6. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +1 -0
  7. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +180 -0
  8. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +1 -0
  9. package/unstable-preview-types/-private/caches/instance-cache.d.ts +61 -0
  10. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +1 -0
  11. package/unstable-preview-types/-private/caches/resource-utils.d.ts +10 -0
  12. package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +1 -0
  13. package/unstable-preview-types/-private/document.d.ts +144 -0
  14. package/unstable-preview-types/-private/document.d.ts.map +1 -0
  15. package/unstable-preview-types/-private/index.d.ts +16 -0
  16. package/unstable-preview-types/-private/index.d.ts.map +1 -0
  17. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +177 -0
  18. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +1 -0
  19. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +17 -0
  20. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +1 -0
  21. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +27 -0
  22. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +1 -0
  23. package/unstable-preview-types/-private/managers/cache-manager.d.ts +440 -0
  24. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +1 -0
  25. package/unstable-preview-types/-private/managers/notification-manager.d.ts +96 -0
  26. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +1 -0
  27. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +95 -0
  28. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +1 -0
  29. package/unstable-preview-types/-private/network/request-cache.d.ts +107 -0
  30. package/unstable-preview-types/-private/network/request-cache.d.ts.map +1 -0
  31. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +135 -0
  32. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +1 -0
  33. package/unstable-preview-types/-private/store-service.d.ts +1552 -0
  34. package/unstable-preview-types/-private/store-service.d.ts.map +1 -0
  35. package/unstable-preview-types/-private/utils/coerce-id.d.ts +8 -0
  36. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +1 -0
  37. package/unstable-preview-types/-private/utils/construct-resource.d.ts +8 -0
  38. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +1 -0
  39. package/unstable-preview-types/-private/utils/identifier-debug-consts.d.ts +5 -0
  40. package/unstable-preview-types/-private/utils/identifier-debug-consts.d.ts.map +1 -0
  41. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +2 -0
  42. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +1 -0
  43. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +2 -0
  44. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +1 -0
  45. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +2 -0
  46. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +1 -0
  47. package/unstable-preview-types/-private.d.ts +2 -0
  48. package/unstable-preview-types/-private.d.ts.map +1 -0
  49. package/unstable-preview-types/-types/overview.d.ts +19 -0
  50. package/unstable-preview-types/-types/overview.d.ts.map +1 -0
  51. package/unstable-preview-types/-types/q/cache-store-wrapper.d.ts +105 -0
  52. package/unstable-preview-types/-types/q/cache-store-wrapper.d.ts.map +1 -0
  53. package/unstable-preview-types/-types/q/cache.d.ts +45 -0
  54. package/unstable-preview-types/-types/q/cache.d.ts.map +1 -0
  55. package/unstable-preview-types/-types/q/ds-model.d.ts +13 -0
  56. package/unstable-preview-types/-types/q/ds-model.d.ts.map +1 -0
  57. package/unstable-preview-types/-types/q/identifier.d.ts +169 -0
  58. package/unstable-preview-types/-types/q/identifier.d.ts.map +1 -0
  59. package/unstable-preview-types/-types/q/promise-proxies.d.ts +2 -0
  60. package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +1 -0
  61. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +34 -0
  62. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +1 -0
  63. package/unstable-preview-types/-types/q/record-instance.d.ts +27 -0
  64. package/unstable-preview-types/-types/q/record-instance.d.ts.map +1 -0
  65. package/unstable-preview-types/-types/q/schema-service.d.ts +212 -0
  66. package/unstable-preview-types/-types/q/schema-service.d.ts.map +1 -0
  67. package/unstable-preview-types/-types/q/store.d.ts +15 -0
  68. package/unstable-preview-types/-types/q/store.d.ts.map +1 -0
  69. package/unstable-preview-types/index.d.ts +185 -0
  70. package/unstable-preview-types/index.d.ts.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-service.d.ts","sourceRoot":"","sources":["../../src/-private/store-service.ts"],"names":[],"mappings":";AAKA,OAAO,WAAW,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAG3F,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,iC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AAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG7C;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ @module @ember-data/store
3
+ */
4
+ type Coercable = string | number | boolean | null | undefined | symbol;
5
+ declare function coerceId(id: unknown): string | null;
6
+ export declare function ensureStringId(id: Coercable): string;
7
+ export default coerceId;
8
+ //# sourceMappingURL=coerce-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coerce-id.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/coerce-id.ts"],"names":[],"mappings":"AAAA;;EAEE;AAYF,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvE,iBAAS,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAkC5C;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAWpD;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ExistingResourceIdentifierObject, ResourceIdentifierObject } from '@warp-drive/core-types/spec/raw';
2
+ declare function constructResource(type: ResourceIdentifierObject): ResourceIdentifierObject;
3
+ declare function constructResource(type: string, id: string, lid: string): ExistingResourceIdentifierObject;
4
+ declare function constructResource(type: string | undefined, id: null | undefined, lid: string): ExistingResourceIdentifierObject;
5
+ declare function constructResource(type: string, id: string, lid?: string | null): ExistingResourceIdentifierObject;
6
+ declare function constructResource(type: string, id?: string | number | null, lid?: string | null): ResourceIdentifierObject;
7
+ export default constructResource;
8
+ //# sourceMappingURL=construct-resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"construct-resource.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/construct-resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gCAAgC,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAMlH,iBAAS,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,wBAAwB,CAAC;AACrF,iBAAS,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,gCAAgC,CAAC;AACpG,iBAAS,iBAAiB,CACxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,EAAE,EAAE,IAAI,GAAG,SAAS,EACpB,GAAG,EAAE,MAAM,GACV,gCAAgC,CAAC;AACpC,iBAAS,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,gCAAgC,CAAC;AAC5G,iBAAS,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,wBAAwB,CAAC;AAyCrH,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const DEBUG_CLIENT_ORIGINATED: unique symbol;
2
+ export declare const DEBUG_IDENTIFIER_BUCKET: unique symbol;
3
+ export declare const DEBUG_STALE_CACHE_OWNER: unique symbol;
4
+ export declare const CACHE_OWNER: unique symbol;
5
+ //# sourceMappingURL=identifier-debug-consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identifier-debug-consts.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/identifier-debug-consts.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB,EAAE,OAAO,MAA8C,CAAC;AAC5F,eAAO,MAAM,uBAAuB,EAAE,OAAO,MAAoC,CAAC;AAClF,eAAO,MAAM,uBAAuB,EAAE,OAAO,MAAsC,CAAC;AAGpF,eAAO,MAAM,WAAW,EAAE,OAAO,MAAiC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function isNonEmptyString(str: unknown): str is string;
2
+ //# sourceMappingURL=is-non-empty-string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-non-empty-string.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/is-non-empty-string.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEpE"}
@@ -0,0 +1,2 @@
1
+ export default function normalizeModelName(type: string): string;
2
+ //# sourceMappingURL=normalize-model-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-model-name.d.ts","sourceRoot":"","sources":["../../../src/-private/utils/normalize-model-name.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAsB/D"}
@@ -0,0 +1,2 @@
1
+ export default function installPolyfill(): void;
2
+ //# sourceMappingURL=uuid-polyfill.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export * from './-private/index';
2
+ //# sourceMappingURL=-private.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,19 @@
1
+ export {};
2
+ /**
3
+ * Many parts of EmberData are interface-driven,
4
+ * meaning that no specific base-class is necessary
5
+ * to implement an interopable module of your own
6
+ * utilizing only public APIs.
7
+ *
8
+ * Examples of primitives in EmberData that are interface-driven
9
+ * include Adapters, Serializers, Request Handlers, and the Cache.
10
+ *
11
+ * These **Not Yet Installable** Typescript Types
12
+ * Document key interfaces that libraries and
13
+ * applications interfacing with EmberData would need
14
+ * to conform to.
15
+ *
16
+ @module @ember-data/experimental-preview-types
17
+ @main @ember-data/experimental-preview-types
18
+ */
19
+ //# sourceMappingURL=overview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overview.d.ts","sourceRoot":"","sources":["../../src/-types/overview.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -0,0 +1,105 @@
1
+ import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
2
+ import type { IdentifierCache } from '../../-private/caches/identifier-cache';
3
+ import type { NotificationType } from '../../-private/managers/notification-manager';
4
+ import type { SchemaService } from './schema-service';
5
+ /**
6
+ @module @ember-data/store
7
+ */
8
+ /**
9
+ * CacheCapabilitiesManager provides encapsulated API access to the minimal
10
+ * subset of the Store's functionality that Cache implementations
11
+ * should interact with. It is provided to the Store's `createRecordDataFor`
12
+ * and `createCache` hooks.
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 interface 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} identifierCache
30
+ * @public
31
+ */
32
+ identifierCache: IdentifierCache;
33
+ /**
34
+ * Provides access to the SchemaService instance
35
+ * for this Store instance.
36
+ *
37
+ * The SchemaService can be used to query for
38
+ * information about the schema of a resource.
39
+ *
40
+ * @method getSchemaDefinitionService
41
+ * @public
42
+ */
43
+ getSchemaDefinitionService(): SchemaService;
44
+ /**
45
+ * Provides access to the SchemaService instance
46
+ * for this Store instance.
47
+ *
48
+ * The SchemaService can be used to query for
49
+ * information about the schema of a resource.
50
+ *
51
+ * @property schema
52
+ * @public
53
+ */
54
+ schema: SchemaService;
55
+ /**
56
+ * Update the `id` for the record corresponding to the identifier
57
+ * This operation can only be done for records whose `id` is `null`.
58
+ *
59
+ * @method setRecordId
60
+ * @param {StableRecordIdentifier} identifier;
61
+ * @param {string} id;
62
+ * @public
63
+ */
64
+ setRecordId(identifier: StableRecordIdentifier, id: string): void;
65
+ /**
66
+ * Signal to the store that the specified record may be considered fully
67
+ * removed from the cache. Generally this means that not only does no
68
+ * data exist for the identified resource, no known relationships still
69
+ * point to it either.
70
+ *
71
+ * @method disconnectRecord
72
+ * @param {StableRecordIdentifier} identifier
73
+ * @public
74
+ */
75
+ disconnectRecord(identifier: StableRecordIdentifier): void;
76
+ /**
77
+ * Use this method to determine if the Store has an instantiated record associated
78
+ * with an identifier.
79
+ *
80
+ * @method hasRecord
81
+ * @param identifier
82
+ * @return {boolean}
83
+ * @public
84
+ */
85
+ hasRecord(identifier: StableRecordIdentifier): boolean;
86
+ /**
87
+ * Notify subscribers of the NotificationManager that cache state has changed.
88
+ *
89
+ * `attributes` and `relationships` do not require a key, but if one is specified it
90
+ * is assumed to be the name of the attribute or relationship that has been updated.
91
+ *
92
+ * No other namespaces currently expect the `key` argument.
93
+ *
94
+ * @method notifyChange
95
+ * @param {StableRecordIdentifier} identifier
96
+ * @param {'attributes' | 'relationships' | 'identity' | 'errors' | 'meta' | 'state'} namespace
97
+ * @param {string|undefined} key
98
+ * @public
99
+ */
100
+ notifyChange(identifier: StableRecordIdentifier, namespace: 'added' | 'removed'): void;
101
+ notifyChange(identifier: StableDocumentIdentifier, namespace: 'added' | 'updated' | 'removed'): void;
102
+ notifyChange(identifier: StableRecordIdentifier, namespace: NotificationType, key?: string): void;
103
+ notifyChange(identifier: StableRecordIdentifier | StableDocumentIdentifier, namespace: NotificationType | 'added' | 'removed' | 'updated', key?: string): void;
104
+ }
105
+ //# sourceMappingURL=cache-store-wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-store-wrapper.d.ts","sourceRoot":"","sources":["../../../src/-types/q/cache-store-wrapper.ts"],"names":[],"mappings":"AAA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,0 +1,45 @@
1
+ import type { Cache, ChangedAttributesHash } from '@warp-drive/core-types/cache';
2
+ import type { RecordIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
3
+ import type { ApiError } from '@warp-drive/core-types/spec/error';
4
+ import type { CollectionResourceRelationship, SingleResourceRelationship } from '@warp-drive/core-types/spec/raw';
5
+ import type { JsonApiResource } from './record-data-json-api';
6
+ /**
7
+ @module @ember-data/store
8
+ */
9
+ export interface MergeOperation {
10
+ op: 'mergeIdentifiers';
11
+ record: StableRecordIdentifier;
12
+ value: StableRecordIdentifier;
13
+ }
14
+ export interface CacheV1 {
15
+ version?: '1';
16
+ getResourceIdentifier(): RecordIdentifier | undefined;
17
+ pushData(data: JsonApiResource, calculateChange: true): string[];
18
+ pushData(data: JsonApiResource, calculateChange?: false): void;
19
+ pushData(data: JsonApiResource, calculateChange?: boolean): string[] | void;
20
+ clientDidCreate(): void;
21
+ _initRecordCreateOptions(options?: Record<string, unknown>): Record<string, unknown>;
22
+ willCommit(): void;
23
+ didCommit(data: JsonApiResource | null): void;
24
+ commitWasRejected(recordIdentifier?: RecordIdentifier, errors?: ApiError[]): void;
25
+ unloadRecord(): void;
26
+ getAttr(key: string): unknown;
27
+ setDirtyAttribute(key: string, value: unknown): void;
28
+ changedAttributes(): ChangedAttributesHash;
29
+ hasChangedAttributes(): boolean;
30
+ rollbackAttributes(): string[];
31
+ getBelongsTo(key: string): SingleResourceRelationship;
32
+ getHasMany(key: string): CollectionResourceRelationship;
33
+ setDirtyBelongsTo(name: string, recordData: Cache | null): void;
34
+ setDirtyHasMany(key: string, recordDatas: Cache[]): void;
35
+ addToHasMany(key: string, recordDatas: Cache[], idx?: number): void;
36
+ removeFromHasMany(key: string, recordDatas: Cache[]): void;
37
+ setIsDeleted(isDeleted: boolean): void;
38
+ getErrors(identifier: StableRecordIdentifier): ApiError[];
39
+ isEmpty?(identifier: StableRecordIdentifier): boolean;
40
+ isNew(identifier: StableRecordIdentifier): boolean;
41
+ isDeleted(identifier: StableRecordIdentifier): boolean;
42
+ isDeletionCommitted(identifier: StableRecordIdentifier): boolean;
43
+ }
44
+ export type { Cache };
45
+ //# sourceMappingURL=cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/-types/q/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAClG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,8BAA8B,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAElH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D;;EAEE;AAEF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,kBAAkB,CAAC;IACvB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,KAAK,EAAE,sBAAsB,CAAC;CAC/B;AAED,MAAM,WAAW,OAAO;IACtB,OAAO,CAAC,EAAE,GAAG,CAAC;IAId,qBAAqB,IAAI,gBAAgB,GAAG,SAAS,CAAC;IAEtD,QAAQ,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,GAAG,MAAM,EAAE,CAAC;IACjE,QAAQ,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC/D,QAAQ,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;IAC5E,eAAe,IAAI,IAAI,CAAC;IACxB,wBAAwB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAErF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,sBAAsB,GAAG,OAAO,CAAC;IACvD,mBAAmB,CAAC,UAAU,EAAE,sBAAsB,GAAG,OAAO,CAAC;CAClE;AAED,YAAY,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
2
+ import type { AttributeSchema, RelationshipSchema } from '@warp-drive/core-types/schema';
3
+ export type KeyOrString<T> = keyof T & string extends never ? string : keyof T & string;
4
+ export interface ModelSchema<T = unknown> {
5
+ modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
6
+ fields: Map<KeyOrString<T>, 'attribute' | 'belongsTo' | 'hasMany'>;
7
+ attributes: Map<KeyOrString<T>, AttributeSchema>;
8
+ relationshipsByName: Map<KeyOrString<T>, RelationshipSchema>;
9
+ eachAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, attribute: AttributeSchema) => void, binding?: T): void;
10
+ eachRelationship<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, relationship: RelationshipSchema) => void, binding?: T): void;
11
+ eachTransformedAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, type: string | null) => void, binding?: T): void;
12
+ }
13
+ //# sourceMappingURL=ds-model.d.ts.map
@@ -0,0 +1 @@
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,eAAe,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEzF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,SAAS,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;AAExF,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,eAAe,CAAC,CAAC;IACjD,mBAAmB,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC;IAC7D,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,eAAe,KAAK,IAAI,EAC5E,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,kBAAkB,KAAK,IAAI,EAClF,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"}
@@ -0,0 +1,169 @@
1
+ /**
2
+ @module @ember-data/store
3
+ */
4
+ import type { ImmutableRequestInfo } from '@ember-data/request';
5
+ import type { IdentifierBucket, StableIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
6
+ import type { ExistingResourceObject, ResourceIdentifierObject } from '@warp-drive/core-types/spec/raw';
7
+ export type ResourceData = ResourceIdentifierObject | ExistingResourceObject;
8
+ /**
9
+ Configures how unique identifier lid strings are generated by @ember-data/store.
10
+
11
+ This configuration MUST occur prior to the store instance being created.
12
+
13
+ Takes a method which can expect to receive various data as its first argument
14
+ and the name of a bucket as its second argument.
15
+
16
+ Currently there are two buckets, 'record' and 'document'.
17
+
18
+ ### Resource (`Record`) Identity
19
+
20
+ If the bucket is `record` the method must return a unique (to at-least
21
+ the given bucket) string identifier for the given data as a string to be
22
+ used as the `lid` of an `Identifier` token.
23
+
24
+ This method will only be called by either `getOrCreateRecordIdentifier` or
25
+ `createIdentifierForNewRecord` when an identifier for the supplied data
26
+ is not already known via `lid` or `type + id` combo and one needs to be
27
+ generated or retrieved from a proprietary cache.
28
+
29
+ `data` will be the same data argument provided to `getOrCreateRecordIdentifier`
30
+ and in the `createIdentifierForNewRecord` case will be an object with
31
+ only `type` as a key.
32
+
33
+ ```ts
34
+ import { setIdentifierGenerationMethod } from '@ember-data/store';
35
+
36
+ export function initialize(applicationInstance) {
37
+ // note how `count` here is now scoped to the application instance
38
+ // for our generation method by being inside the closure provided
39
+ // by the initialize function
40
+ let count = 0;
41
+
42
+ setIdentifierGenerationMethod((resource, bucket) => {
43
+ return resource.lid || `my-key-${count++}`;
44
+ });
45
+ }
46
+
47
+ export default {
48
+ name: 'configure-ember-data-identifiers',
49
+ initialize
50
+ };
51
+ ```
52
+
53
+ ### Document Identity
54
+
55
+ If the bucket is `document` the method will receive the associated
56
+ immutable `request` passed to `store.request` as its first argument
57
+ and should return a unique string for the given request if the document
58
+ should be cached, and `null` if it should not be cached.
59
+
60
+ Note, the request result will still be passed to the cache via `Cache.put`,
61
+ but caches should take this as a signal that the document should not itself
62
+ be cached, while its contents may still be used to update other cache state.
63
+
64
+ The presence of `cacheOptions.key` on the request will take precedence
65
+ for the document cache key, and this method will not be called if it is
66
+ present.
67
+
68
+ The default method implementation for this bucket is to return `null`
69
+ for all requests whose method is not `GET`, and to return the `url` for
70
+ those where it is.
71
+
72
+ This means that queries via `POST` MUST provide `cacheOptions.key` or
73
+ implement this hook.
74
+
75
+ ⚠️ Caution: Requests that do not have a `method` assigned are assumed to be `GET`
76
+
77
+ @method setIdentifierGenerationMethod
78
+ @for @ember-data/store
79
+ @param method
80
+ @public
81
+ @static
82
+ */
83
+ export interface GenerationMethod {
84
+ (data: ImmutableRequestInfo, bucket: 'document'): string | null;
85
+ (data: unknown | {
86
+ type: string;
87
+ }, bucket: 'record'): string;
88
+ (data: unknown, bucket: IdentifierBucket): string | null;
89
+ }
90
+ /**
91
+ Configure a callback for when the identifier cache encounters new resource
92
+ data for an existing resource.
93
+
94
+ This configuration MUST occur prior to the store instance being created.
95
+
96
+ ```js
97
+ import { setIdentifierUpdateMethod } from '@ember-data/store';
98
+ ```
99
+
100
+ Takes a method which can expect to receive an existing `Identifier` alongside
101
+ some new data to consider as a second argument. This is an opportunity
102
+ for secondary lookup tables and caches associated with the identifier
103
+ to be amended.
104
+
105
+ This method is called everytime `updateRecordIdentifier` is called and
106
+ with the same arguments. It provides the opportunity to update secondary
107
+ lookup tables for existing identifiers.
108
+
109
+ It will always be called after an identifier created with `createIdentifierForNewRecord`
110
+ has been committed, or after an update to the `record` a `RecordIdentifier`
111
+ is assigned to has been committed. Committed here meaning that the server
112
+ has acknowledged the update (for instance after a call to `.save()`)
113
+
114
+ If `id` has not previously existed, it will be assigned to the `Identifier`
115
+ prior to this `UpdateMethod` being called; however, calls to the parent method
116
+ `updateRecordIdentifier` that attempt to change the `id` or calling update
117
+ without providing an `id` when one is missing will throw an error.
118
+
119
+ @method setIdentifierUpdateMethod
120
+ @for @ember-data/store
121
+ @param method
122
+ @public
123
+ @static
124
+ */
125
+ export type UpdateMethod = {
126
+ (identifier: StableRecordIdentifier, newData: unknown, bucket: 'record'): void;
127
+ (identifier: StableIdentifier, newData: unknown, bucket: never): void;
128
+ };
129
+ /**
130
+ Configure a callback for when the identifier cache is going to release an identifier.
131
+
132
+ This configuration MUST occur prior to the store instance being created.
133
+
134
+ ```js
135
+ import { setIdentifierForgetMethod } from '@ember-data/store';
136
+ ```
137
+
138
+ Takes method which can expect to receive an existing `Identifier` that should be eliminated
139
+ from any secondary lookup tables or caches that the user has populated for it.
140
+
141
+ @method setIdentifierForgetMethod
142
+ @for @ember-data/store
143
+ @param method
144
+ @public
145
+ @static
146
+ */
147
+ export type ForgetMethod = (identifier: StableIdentifier | StableRecordIdentifier, bucket: IdentifierBucket) => void;
148
+ /**
149
+ Configure a callback for when the identifier cache is being torn down.
150
+
151
+ This configuration MUST occur prior to the store instance being created.
152
+
153
+ ```js
154
+ import { setIdentifierResetMethod } from '@ember-data/store';
155
+ ```
156
+
157
+ Takes a method which can expect to be called when the parent application is destroyed.
158
+
159
+ If you have properly used a WeakMap to encapsulate the state of your customization
160
+ to the application instance, you may not need to implement the `resetMethod`.
161
+
162
+ @method setIdentifierResetMethod
163
+ @for @ember-data/store
164
+ @param method
165
+ @public
166
+ @static
167
+ */
168
+ export type ResetMethod = () => void;
169
+ //# sourceMappingURL=identifier.d.ts.map
@@ -0,0 +1 @@
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;AACpH,OAAO,KAAK,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAExG,MAAM,MAAM,YAAY,GAAG,wBAAwB,GAAG,sBAAsB,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -0,0 +1,2 @@
1
+ export type PromiseProxy<T> = Promise<T>;
2
+ //# sourceMappingURL=promise-proxies.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,34 @@
1
+ import type { Value } from '@warp-drive/core-types/json/raw';
2
+ import type { CollectionResourceRelationship, Link, Links, Meta, SingleResourceRelationship } from '@warp-drive/core-types/spec/raw';
3
+ /**
4
+ @module @ember-data/store
5
+ */
6
+ export type AttributesHash = Record<string, Value>;
7
+ export interface JsonApiResource {
8
+ id?: string | null;
9
+ type?: string;
10
+ lid?: string;
11
+ attributes?: AttributesHash;
12
+ relationships?: Record<string, SingleResourceRelationship | CollectionResourceRelationship>;
13
+ meta?: Meta;
14
+ links?: Links;
15
+ }
16
+ export interface JsonApiError {
17
+ id?: string;
18
+ title?: string;
19
+ detail?: string;
20
+ links?: {
21
+ about?: Link;
22
+ type?: Link;
23
+ };
24
+ status?: string;
25
+ code?: string;
26
+ source?: {
27
+ pointer: string;
28
+ parameter?: string;
29
+ header?: string;
30
+ };
31
+ meta?: Meta;
32
+ }
33
+ export type JsonApiRelationship = SingleResourceRelationship | CollectionResourceRelationship;
34
+ //# sourceMappingURL=record-data-json-api.d.ts.map
@@ -0,0 +1 @@
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,iCAAiC,CAAC;AAEzC;;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"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ @module @ember-data/store
3
+ */
4
+ /**
5
+ In EmberData, a "record instance" is a class instance used to present the data
6
+ for a single resource, transforming the resource's cached raw data into a form
7
+ that is useful for the application.
8
+
9
+ Since every application's needs are different, EmberData does not assume to know
10
+ what the shape of the record instance should be. Instead, it provides a way to
11
+ define the record instance's via the `instantiateRecord` hook on the store.
12
+
13
+ Thus for most purposes the `RecordInstance` type is "opaque" to EmberData, and
14
+ should be treated as "unknown" by the library.
15
+
16
+ Wherever possible, if typing an API that is consumer facing, instead of using
17
+ OpaqueRecordInstance, we should prefer to use a generic and check if the generic
18
+ extends `TypedRecordInstance`. This allows consumers to define their own record
19
+ instance types and not only have their types flow through EmberData APIs, but
20
+ also allows EmberData to provide typechecking and intellisense for the record
21
+ based on a special symbol prsent on record instances that implement the
22
+ `TypedRecordInstance` interface.
23
+
24
+ @typedoc
25
+ */
26
+ export type OpaqueRecordInstance = unknown;
27
+ //# sourceMappingURL=record-instance.d.ts.map
@@ -0,0 +1 @@
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"}