@ember-data-types/store 5.4.0-alpha.49

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 (73) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +193 -0
  3. package/ember-data-logo-dark.svg +12 -0
  4. package/ember-data-logo-light.svg +12 -0
  5. package/package.json +20 -0
  6. package/unstable-preview-types/-private/cache-handler.d.ts +100 -0
  7. package/unstable-preview-types/-private/cache-handler.d.ts.map +1 -0
  8. package/unstable-preview-types/-private/caches/cache-utils.d.ts +11 -0
  9. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +1 -0
  10. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +182 -0
  11. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +1 -0
  12. package/unstable-preview-types/-private/caches/instance-cache.d.ts +63 -0
  13. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +1 -0
  14. package/unstable-preview-types/-private/caches/resource-utils.d.ts +12 -0
  15. package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +1 -0
  16. package/unstable-preview-types/-private/document.d.ts +146 -0
  17. package/unstable-preview-types/-private/document.d.ts.map +1 -0
  18. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +179 -0
  19. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +1 -0
  20. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +19 -0
  21. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +1 -0
  22. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +29 -0
  23. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +1 -0
  24. package/unstable-preview-types/-private/managers/cache-manager.d.ts +442 -0
  25. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +1 -0
  26. package/unstable-preview-types/-private/managers/notification-manager.d.ts +98 -0
  27. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +1 -0
  28. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +97 -0
  29. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +1 -0
  30. package/unstable-preview-types/-private/network/request-cache.d.ts +109 -0
  31. package/unstable-preview-types/-private/network/request-cache.d.ts.map +1 -0
  32. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +133 -0
  33. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +1 -0
  34. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +118 -0
  35. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +1 -0
  36. package/unstable-preview-types/-private/store-service.d.ts +1554 -0
  37. package/unstable-preview-types/-private/store-service.d.ts.map +1 -0
  38. package/unstable-preview-types/-private/utils/coerce-id.d.ts +10 -0
  39. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +1 -0
  40. package/unstable-preview-types/-private/utils/construct-resource.d.ts +10 -0
  41. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +1 -0
  42. package/unstable-preview-types/-private/utils/identifier-debug-consts.d.ts +7 -0
  43. package/unstable-preview-types/-private/utils/identifier-debug-consts.d.ts.map +1 -0
  44. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +4 -0
  45. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +1 -0
  46. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +4 -0
  47. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +1 -0
  48. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +4 -0
  49. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +1 -0
  50. package/unstable-preview-types/-private.d.ts +20 -0
  51. package/unstable-preview-types/-private.d.ts.map +1 -0
  52. package/unstable-preview-types/-types/overview.d.ts +21 -0
  53. package/unstable-preview-types/-types/overview.d.ts.map +1 -0
  54. package/unstable-preview-types/-types/q/cache-store-wrapper.d.ts +107 -0
  55. package/unstable-preview-types/-types/q/cache-store-wrapper.d.ts.map +1 -0
  56. package/unstable-preview-types/-types/q/cache.d.ts +47 -0
  57. package/unstable-preview-types/-types/q/cache.d.ts.map +1 -0
  58. package/unstable-preview-types/-types/q/ds-model.d.ts +15 -0
  59. package/unstable-preview-types/-types/q/ds-model.d.ts.map +1 -0
  60. package/unstable-preview-types/-types/q/identifier.d.ts +171 -0
  61. package/unstable-preview-types/-types/q/identifier.d.ts.map +1 -0
  62. package/unstable-preview-types/-types/q/promise-proxies.d.ts +4 -0
  63. package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +1 -0
  64. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +36 -0
  65. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +1 -0
  66. package/unstable-preview-types/-types/q/record-instance.d.ts +29 -0
  67. package/unstable-preview-types/-types/q/record-instance.d.ts.map +1 -0
  68. package/unstable-preview-types/-types/q/schema-service.d.ts +214 -0
  69. package/unstable-preview-types/-types/q/schema-service.d.ts.map +1 -0
  70. package/unstable-preview-types/-types/q/store.d.ts +17 -0
  71. package/unstable-preview-types/-types/q/store.d.ts.map +1 -0
  72. package/unstable-preview-types/index.d.ts +220 -0
  73. 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,EAC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;IACH,IAAI,KAAK,IAAI,KAAK,CASjB;IAGD,OAAO,IAAI,IAAI;IAkBf,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG7C;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,10 @@
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
+ function coerceId(id: unknown): string | null;
7
+ export function ensureStringId(id: Coercable): string;
8
+ export default coerceId;
9
+ }
10
+ //# 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,10 @@
1
+ declare module '@ember-data/store/-private/utils/construct-resource' {
2
+ import type { ExistingResourceIdentifierObject, ResourceIdentifierObject } from '@warp-drive/core-types/spec/raw';
3
+ function constructResource(type: ResourceIdentifierObject): ResourceIdentifierObject;
4
+ function constructResource(type: string, id: string, lid: string): ExistingResourceIdentifierObject;
5
+ function constructResource(type: string | undefined, id: null | undefined, lid: string): ExistingResourceIdentifierObject;
6
+ function constructResource(type: string, id: string, lid?: string | null): ExistingResourceIdentifierObject;
7
+ function constructResource(type: string, id?: string | number | null, lid?: string | null): ResourceIdentifierObject;
8
+ export default constructResource;
9
+ }
10
+ //# 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,7 @@
1
+ declare module '@ember-data/store/-private/utils/identifier-debug-consts' {
2
+ export const DEBUG_CLIENT_ORIGINATED: unique symbol;
3
+ export const DEBUG_IDENTIFIER_BUCKET: unique symbol;
4
+ export const DEBUG_STALE_CACHE_OWNER: unique symbol;
5
+ export const CACHE_OWNER: unique symbol;
6
+ }
7
+ //# 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,4 @@
1
+ declare module '@ember-data/store/-private/utils/is-non-empty-string' {
2
+ export default function isNonEmptyString(str: unknown): str is string;
3
+ }
4
+ //# 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,4 @@
1
+ declare module '@ember-data/store/-private/utils/normalize-model-name' {
2
+ export default function normalizeModelName(type: string): string;
3
+ }
4
+ //# 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,4 @@
1
+ declare module '@ember-data/store/-private/utils/uuid-polyfill' {
2
+ export default function installPolyfill(): void;
3
+ }
4
+ //# 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,20 @@
1
+ declare module '@ember-data/store/-private' {
2
+ /**
3
+ @module @ember-data/store
4
+ */
5
+ export { default as Store, storeFor } from '@ember-data/store/-private/store-service';
6
+ export { recordIdentifierFor } from '@ember-data/store/-private/caches/instance-cache';
7
+ export { CacheHandler, type LifetimesService } from '@ember-data/store/-private/cache-handler';
8
+ export { setIdentifierGenerationMethod, setIdentifierUpdateMethod, setIdentifierForgetMethod, setIdentifierResetMethod, isStableIdentifier, } from '@ember-data/store/-private/caches/identifier-cache';
9
+ export { default as coerceId } from '@ember-data/store/-private/utils/coerce-id';
10
+ export type { NativeProxy } from '@ember-data/store/-private/record-arrays/native-proxy-type-fix';
11
+ export { default as RecordArray, default as IdentifierArray, Collection as AdapterPopulatedRecordArray, notifyArray, SOURCE, MUTATE, ARRAY_SIGNAL, } from '@ember-data/store/-private/record-arrays/identifier-array';
12
+ export { default as RecordArrayManager, fastPush } from '@ember-data/store/-private/managers/record-array-manager';
13
+ export { _clearCaches } from '@ember-data/store/-private/caches/instance-cache';
14
+ export { default as peekCache, removeRecordDataFor } from '@ember-data/store/-private/caches/cache-utils';
15
+ export { setRecordIdentifier, StoreMap } from '@ember-data/store/-private/caches/instance-cache';
16
+ export { setCacheFor } from '@ember-data/store/-private/caches/cache-utils';
17
+ export { default as _deprecatingNormalize } from '@ember-data/store/-private/utils/normalize-model-name';
18
+ export type { StoreRequestInput } from '@ember-data/store/-private/cache-handler';
19
+ }
20
+ //# sourceMappingURL=-private.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA;;EAEE;AAEF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE/E,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,oCAAoC,CAAC;AAI5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,OAAO,IAAI,eAAe,EAC1B,UAAU,IAAI,2BAA2B,EACzC,WAAW,EACX,MAAM,EACN,MAAM,EACN,YAAY,GACb,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAGnG,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAG1F,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AACzF,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,21 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overview.d.ts","sourceRoot":"","sources":["../../src/-types/overview.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -0,0 +1,107 @@
1
+ declare module '@ember-data/store/-types/q/cache-store-wrapper' {
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 `createRecordDataFor`
13
+ * and `createCache` hooks.
14
+ *
15
+ * Cache implementations should not need more than this API provides.
16
+ *
17
+ * This class cannot be directly instantiated.
18
+ *
19
+ * @class CacheCapabilitiesManager
20
+ * @public
21
+ */
22
+ export interface CacheCapabilitiesManager {
23
+ /**
24
+ * Provides access to the IdentifierCache instance
25
+ * for this Store instance.
26
+ *
27
+ * The IdentifierCache can be used to peek, generate or
28
+ * retrieve a stable unique identifier for any resource.
29
+ *
30
+ * @property {IdentifierCache} identifierCache
31
+ * @public
32
+ */
33
+ identifierCache: IdentifierCache;
34
+ /**
35
+ * Provides access to the SchemaService instance
36
+ * for this Store instance.
37
+ *
38
+ * The SchemaService can be used to query for
39
+ * information about the schema of a resource.
40
+ *
41
+ * @method getSchemaDefinitionService
42
+ * @public
43
+ */
44
+ getSchemaDefinitionService(): SchemaService;
45
+ /**
46
+ * Provides access to the SchemaService instance
47
+ * for this Store instance.
48
+ *
49
+ * The SchemaService can be used to query for
50
+ * information about the schema of a resource.
51
+ *
52
+ * @property schema
53
+ * @public
54
+ */
55
+ schema: SchemaService;
56
+ /**
57
+ * Update the `id` for the record corresponding to the identifier
58
+ * This operation can only be done for records whose `id` is `null`.
59
+ *
60
+ * @method setRecordId
61
+ * @param {StableRecordIdentifier} identifier;
62
+ * @param {string} id;
63
+ * @public
64
+ */
65
+ setRecordId(identifier: StableRecordIdentifier, id: string): void;
66
+ /**
67
+ * Signal to the store that the specified record may be considered fully
68
+ * removed from the cache. Generally this means that not only does no
69
+ * data exist for the identified resource, no known relationships still
70
+ * point to it either.
71
+ *
72
+ * @method disconnectRecord
73
+ * @param {StableRecordIdentifier} identifier
74
+ * @public
75
+ */
76
+ disconnectRecord(identifier: StableRecordIdentifier): void;
77
+ /**
78
+ * Use this method to determine if the Store has an instantiated record associated
79
+ * with an identifier.
80
+ *
81
+ * @method hasRecord
82
+ * @param identifier
83
+ * @return {boolean}
84
+ * @public
85
+ */
86
+ hasRecord(identifier: StableRecordIdentifier): boolean;
87
+ /**
88
+ * Notify subscribers of the NotificationManager that cache state has changed.
89
+ *
90
+ * `attributes` and `relationships` do not require a key, but if one is specified it
91
+ * is assumed to be the name of the attribute or relationship that has been updated.
92
+ *
93
+ * No other namespaces currently expect the `key` argument.
94
+ *
95
+ * @method notifyChange
96
+ * @param {StableRecordIdentifier} identifier
97
+ * @param {'attributes' | 'relationships' | 'identity' | 'errors' | 'meta' | 'state'} namespace
98
+ * @param {string|undefined} key
99
+ * @public
100
+ */
101
+ notifyChange(identifier: StableRecordIdentifier, namespace: 'added' | 'removed'): void;
102
+ notifyChange(identifier: StableDocumentIdentifier, namespace: 'added' | 'updated' | 'removed'): void;
103
+ notifyChange(identifier: StableRecordIdentifier, namespace: NotificationType, key?: string): void;
104
+ notifyChange(identifier: StableRecordIdentifier | StableDocumentIdentifier, namespace: NotificationType | 'added' | 'removed' | 'updated', key?: string): void;
105
+ }
106
+ }
107
+ //# 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":"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;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;;;;;OASG;IACH,eAAe,EAAE,eAAe,CAAC;IAEjC;;;;;;;;;OASG;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,GAAG,IAAI,CAAC;IACvF,YAAY,CAAC,UAAU,EAAE,wBAAwB,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC;IACrG,YAAY,CAAC,UAAU,EAAE,sBAAsB,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClG,YAAY,CACV,UAAU,EAAE,sBAAsB,GAAG,wBAAwB,EAC7D,SAAS,EAAE,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,EAC7D,GAAG,CAAC,EAAE,MAAM,GACX,IAAI,CAAC;CACT"}
@@ -0,0 +1,47 @@
1
+ declare module '@ember-data/store/-types/q/cache' {
2
+ import type { Cache, ChangedAttributesHash } from '@warp-drive/core-types/cache';
3
+ import type { RecordIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
4
+ import type { ApiError } from '@warp-drive/core-types/spec/error';
5
+ import type { CollectionResourceRelationship, SingleResourceRelationship } from '@warp-drive/core-types/spec/raw';
6
+ import type { JsonApiResource } from '@ember-data/store/-types/q/record-data-json-api';
7
+ /**
8
+ @module @ember-data/store
9
+ */
10
+ export interface MergeOperation {
11
+ op: 'mergeIdentifiers';
12
+ record: StableRecordIdentifier;
13
+ value: StableRecordIdentifier;
14
+ }
15
+ export interface CacheV1 {
16
+ version?: '1';
17
+ getResourceIdentifier(): RecordIdentifier | undefined;
18
+ pushData(data: JsonApiResource, calculateChange: true): string[];
19
+ pushData(data: JsonApiResource, calculateChange?: false): void;
20
+ pushData(data: JsonApiResource, calculateChange?: boolean): string[] | void;
21
+ clientDidCreate(): void;
22
+ _initRecordCreateOptions(options?: Record<string, unknown>): Record<string, unknown>;
23
+ willCommit(): void;
24
+ didCommit(data: JsonApiResource | null): void;
25
+ commitWasRejected(recordIdentifier?: RecordIdentifier, errors?: ApiError[]): void;
26
+ unloadRecord(): void;
27
+ getAttr(key: string): unknown;
28
+ setDirtyAttribute(key: string, value: unknown): void;
29
+ changedAttributes(): ChangedAttributesHash;
30
+ hasChangedAttributes(): boolean;
31
+ rollbackAttributes(): string[];
32
+ getBelongsTo(key: string): SingleResourceRelationship;
33
+ getHasMany(key: string): CollectionResourceRelationship;
34
+ setDirtyBelongsTo(name: string, recordData: Cache | null): void;
35
+ setDirtyHasMany(key: string, recordDatas: Cache[]): void;
36
+ addToHasMany(key: string, recordDatas: Cache[], idx?: number): void;
37
+ removeFromHasMany(key: string, recordDatas: Cache[]): void;
38
+ setIsDeleted(isDeleted: boolean): void;
39
+ getErrors(identifier: StableRecordIdentifier): ApiError[];
40
+ isEmpty?(identifier: StableRecordIdentifier): boolean;
41
+ isNew(identifier: StableRecordIdentifier): boolean;
42
+ isDeleted(identifier: StableRecordIdentifier): boolean;
43
+ isDeletionCommitted(identifier: StableRecordIdentifier): boolean;
44
+ }
45
+ export type { Cache };
46
+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AClE;AAED,YAAY,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ declare module '@ember-data/store/-types/q/ds-model' {
2
+ import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
3
+ import type { AttributeSchema, RelationshipSchema } from '@warp-drive/core-types/schema';
4
+ export type KeyOrString<T> = keyof T & string extends never ? string : keyof T & string;
5
+ export interface ModelSchema<T = unknown> {
6
+ modelName: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
7
+ fields: Map<KeyOrString<T>, 'attribute' | 'belongsTo' | 'hasMany'>;
8
+ attributes: Map<KeyOrString<T>, AttributeSchema>;
9
+ relationshipsByName: Map<KeyOrString<T>, RelationshipSchema>;
10
+ eachAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, attribute: AttributeSchema) => void, binding?: T): void;
11
+ eachRelationship<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, relationship: RelationshipSchema) => void, binding?: T): void;
12
+ eachTransformedAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, type: string | null) => void, binding?: T): void;
13
+ }
14
+ }
15
+ //# 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,171 @@
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
+ import type { ExistingResourceObject, ResourceIdentifierObject } from '@warp-drive/core-types/spec/raw';
8
+ export type ResourceData = ResourceIdentifierObject | ExistingResourceObject;
9
+ /**
10
+ Configures how unique identifier lid strings are generated by @ember-data/store.
11
+
12
+ This configuration MUST occur prior to the store instance being created.
13
+
14
+ Takes a method which can expect to receive various data as its first argument
15
+ and the name of a bucket as its second argument.
16
+
17
+ Currently there are two buckets, 'record' and 'document'.
18
+
19
+ ### Resource (`Record`) Identity
20
+
21
+ If the bucket is `record` the method must return a unique (to at-least
22
+ the given bucket) string identifier for the given data as a string to be
23
+ used as the `lid` of an `Identifier` token.
24
+
25
+ This method will only be called by either `getOrCreateRecordIdentifier` or
26
+ `createIdentifierForNewRecord` when an identifier for the supplied data
27
+ is not already known via `lid` or `type + id` combo and one needs to be
28
+ generated or retrieved from a proprietary cache.
29
+
30
+ `data` will be the same data argument provided to `getOrCreateRecordIdentifier`
31
+ and in the `createIdentifierForNewRecord` case will be an object with
32
+ only `type` as a key.
33
+
34
+ ```ts
35
+ import { setIdentifierGenerationMethod } from '@ember-data/store';
36
+
37
+ export function initialize(applicationInstance) {
38
+ // note how `count` here is now scoped to the application instance
39
+ // for our generation method by being inside the closure provided
40
+ // by the initialize function
41
+ let count = 0;
42
+
43
+ setIdentifierGenerationMethod((resource, bucket) => {
44
+ return resource.lid || `my-key-${count++}`;
45
+ });
46
+ }
47
+
48
+ export default {
49
+ name: 'configure-ember-data-identifiers',
50
+ initialize
51
+ };
52
+ ```
53
+
54
+ ### Document Identity
55
+
56
+ If the bucket is `document` the method will receive the associated
57
+ immutable `request` passed to `store.request` as its first argument
58
+ and should return a unique string for the given request if the document
59
+ should be cached, and `null` if it should not be cached.
60
+
61
+ Note, the request result will still be passed to the cache via `Cache.put`,
62
+ but caches should take this as a signal that the document should not itself
63
+ be cached, while its contents may still be used to update other cache state.
64
+
65
+ The presence of `cacheOptions.key` on the request will take precedence
66
+ for the document cache key, and this method will not be called if it is
67
+ present.
68
+
69
+ The default method implementation for this bucket is to return `null`
70
+ for all requests whose method is not `GET`, and to return the `url` for
71
+ those where it is.
72
+
73
+ This means that queries via `POST` MUST provide `cacheOptions.key` or
74
+ implement this hook.
75
+
76
+ ⚠️ Caution: Requests that do not have a `method` assigned are assumed to be `GET`
77
+
78
+ @method setIdentifierGenerationMethod
79
+ @for @ember-data/store
80
+ @param method
81
+ @public
82
+ @static
83
+ */
84
+ export interface GenerationMethod {
85
+ (data: ImmutableRequestInfo, bucket: 'document'): string | null;
86
+ (data: unknown | {
87
+ type: string;
88
+ }, bucket: 'record'): string;
89
+ (data: unknown, bucket: IdentifierBucket): string | null;
90
+ }
91
+ /**
92
+ Configure a callback for when the identifier cache encounters new resource
93
+ data for an existing resource.
94
+
95
+ This configuration MUST occur prior to the store instance being created.
96
+
97
+ ```js
98
+ import { setIdentifierUpdateMethod } from '@ember-data/store';
99
+ ```
100
+
101
+ Takes a method which can expect to receive an existing `Identifier` alongside
102
+ some new data to consider as a second argument. This is an opportunity
103
+ for secondary lookup tables and caches associated with the identifier
104
+ to be amended.
105
+
106
+ This method is called everytime `updateRecordIdentifier` is called and
107
+ with the same arguments. It provides the opportunity to update secondary
108
+ lookup tables for existing identifiers.
109
+
110
+ It will always be called after an identifier created with `createIdentifierForNewRecord`
111
+ has been committed, or after an update to the `record` a `RecordIdentifier`
112
+ is assigned to has been committed. Committed here meaning that the server
113
+ has acknowledged the update (for instance after a call to `.save()`)
114
+
115
+ If `id` has not previously existed, it will be assigned to the `Identifier`
116
+ prior to this `UpdateMethod` being called; however, calls to the parent method
117
+ `updateRecordIdentifier` that attempt to change the `id` or calling update
118
+ without providing an `id` when one is missing will throw an error.
119
+
120
+ @method setIdentifierUpdateMethod
121
+ @for @ember-data/store
122
+ @param method
123
+ @public
124
+ @static
125
+ */
126
+ export type UpdateMethod = {
127
+ (identifier: StableRecordIdentifier, newData: unknown, bucket: 'record'): void;
128
+ (identifier: StableIdentifier, newData: unknown, bucket: never): void;
129
+ };
130
+ /**
131
+ Configure a callback for when the identifier cache is going to release an identifier.
132
+
133
+ This configuration MUST occur prior to the store instance being created.
134
+
135
+ ```js
136
+ import { setIdentifierForgetMethod } from '@ember-data/store';
137
+ ```
138
+
139
+ Takes method which can expect to receive an existing `Identifier` that should be eliminated
140
+ from any secondary lookup tables or caches that the user has populated for it.
141
+
142
+ @method setIdentifierForgetMethod
143
+ @for @ember-data/store
144
+ @param method
145
+ @public
146
+ @static
147
+ */
148
+ export type ForgetMethod = (identifier: StableIdentifier | StableRecordIdentifier, bucket: IdentifierBucket) => void;
149
+ /**
150
+ Configure a callback for when the identifier cache is being torn down.
151
+
152
+ This configuration MUST occur prior to the store instance being created.
153
+
154
+ ```js
155
+ import { setIdentifierResetMethod } from '@ember-data/store';
156
+ ```
157
+
158
+ Takes a method which can expect to be called when the parent application is destroyed.
159
+
160
+ If you have properly used a WeakMap to encapsulate the state of your customization
161
+ to the application instance, you may not need to implement the `resetMethod`.
162
+
163
+ @method setIdentifierResetMethod
164
+ @for @ember-data/store
165
+ @param method
166
+ @public
167
+ @static
168
+ */
169
+ export type ResetMethod = () => void;
170
+ }
171
+ //# 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,4 @@
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
@@ -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,36 @@
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/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
@@ -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,29 @@
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
@@ -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"}