@warp-drive/core 5.6.0-alpha.17 → 5.6.0-alpha.5

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 (219) hide show
  1. package/README.md +7 -8
  2. package/declarations/index.d.ts +3 -14
  3. package/declarations/index.d.ts.map +1 -0
  4. package/declarations/request/-private/context.d.ts +35 -34
  5. package/declarations/request/-private/context.d.ts.map +1 -0
  6. package/declarations/request/-private/debug.d.ts +3 -2
  7. package/declarations/request/-private/debug.d.ts.map +1 -0
  8. package/declarations/request/-private/fetch.d.ts +36 -24
  9. package/declarations/request/-private/fetch.d.ts.map +1 -0
  10. package/declarations/request/-private/future.d.ts +4 -3
  11. package/declarations/request/-private/future.d.ts.map +1 -0
  12. package/declarations/request/-private/manager.d.ts +132 -159
  13. package/declarations/request/-private/manager.d.ts.map +1 -0
  14. package/declarations/request/-private/promise-cache.d.ts +13 -21
  15. package/declarations/request/-private/promise-cache.d.ts.map +1 -0
  16. package/declarations/request/-private/types.d.ts +123 -124
  17. package/declarations/request/-private/types.d.ts.map +1 -0
  18. package/declarations/request/-private/utils.d.ts +9 -8
  19. package/declarations/request/-private/utils.d.ts.map +1 -0
  20. package/declarations/request.d.ts +433 -5
  21. package/declarations/request.d.ts.map +1 -0
  22. package/declarations/types/-private.d.ts +8 -16
  23. package/declarations/types/-private.d.ts.map +1 -0
  24. package/declarations/types/cache/aliases.d.ts +1 -11
  25. package/declarations/types/cache/aliases.d.ts.map +1 -0
  26. package/declarations/types/cache/change.d.ts +5 -4
  27. package/declarations/types/cache/change.d.ts.map +1 -0
  28. package/declarations/types/cache/mutations.d.ts +28 -51
  29. package/declarations/types/cache/mutations.d.ts.map +1 -0
  30. package/declarations/types/cache/operations.d.ts +47 -60
  31. package/declarations/types/cache/operations.d.ts.map +1 -0
  32. package/declarations/types/cache/relationship.d.ts +9 -11
  33. package/declarations/types/cache/relationship.d.ts.map +1 -0
  34. package/declarations/types/cache.d.ts +484 -495
  35. package/declarations/types/cache.d.ts.map +1 -0
  36. package/declarations/types/graph.d.ts +40 -31
  37. package/declarations/types/graph.d.ts.map +1 -0
  38. package/declarations/types/identifier.d.ts +82 -83
  39. package/declarations/types/identifier.d.ts.map +1 -0
  40. package/declarations/types/json/raw.d.ts +2 -1
  41. package/declarations/types/json/raw.d.ts.map +1 -0
  42. package/declarations/types/params.d.ts +5 -4
  43. package/declarations/types/params.d.ts.map +1 -0
  44. package/declarations/types/record.d.ts +76 -117
  45. package/declarations/types/record.d.ts.map +1 -0
  46. package/declarations/types/record.type-test.d.ts +2 -0
  47. package/declarations/types/record.type-test.d.ts.map +1 -0
  48. package/declarations/types/request.d.ts +266 -289
  49. package/declarations/types/request.d.ts.map +1 -0
  50. package/declarations/types/request.type-test.d.ts +2 -0
  51. package/declarations/types/request.type-test.d.ts.map +1 -0
  52. package/declarations/types/runtime.d.ts +9 -8
  53. package/declarations/types/runtime.d.ts.map +1 -0
  54. package/declarations/types/schema/concepts.d.ts +13 -19
  55. package/declarations/types/schema/concepts.d.ts.map +1 -0
  56. package/declarations/types/schema/fields.d.ts +1741 -1712
  57. package/declarations/types/schema/fields.d.ts.map +1 -0
  58. package/declarations/types/schema/fields.type-test.d.ts +1 -0
  59. package/declarations/types/schema/fields.type-test.d.ts.map +1 -0
  60. package/declarations/types/spec/document.d.ts +22 -28
  61. package/declarations/types/spec/document.d.ts.map +1 -0
  62. package/declarations/types/spec/error.d.ts +17 -16
  63. package/declarations/types/spec/error.d.ts.map +1 -0
  64. package/declarations/types/spec/json-api-raw.d.ts +102 -102
  65. package/declarations/types/spec/json-api-raw.d.ts.map +1 -0
  66. package/declarations/types/symbols.d.ts +75 -74
  67. package/declarations/types/symbols.d.ts.map +1 -0
  68. package/declarations/types/utils.d.ts +5 -5
  69. package/declarations/types/utils.d.ts.map +1 -0
  70. package/declarations/types.d.ts +7 -10
  71. package/declarations/types.d.ts.map +1 -0
  72. package/dist/{context-COmAnXUQ.js → context-DE5sFezZ.js} +2 -2
  73. package/dist/context-DE5sFezZ.js.map +1 -0
  74. package/dist/index.js +104 -37
  75. package/dist/index.js.map +1 -0
  76. package/dist/request.js +1 -1
  77. package/dist/request.js.map +1 -0
  78. package/dist/types/-private.js +3 -3
  79. package/dist/types/-private.js.map +1 -0
  80. package/dist/types/cache/aliases.js.map +1 -0
  81. package/dist/types/cache/change.js.map +1 -0
  82. package/dist/types/cache/mutations.js.map +1 -0
  83. package/dist/types/cache/operations.js.map +1 -0
  84. package/dist/types/cache/relationship.js.map +1 -0
  85. package/dist/types/cache.js.map +1 -0
  86. package/dist/types/graph.js.map +1 -0
  87. package/dist/types/identifier.js.map +1 -0
  88. package/dist/types/json/raw.js.map +1 -0
  89. package/dist/types/params.js.map +1 -0
  90. package/dist/types/record.js +1 -1
  91. package/dist/types/record.js.map +1 -0
  92. package/dist/types/request.js +2 -2
  93. package/dist/types/request.js.map +1 -0
  94. package/dist/types/runtime.js +1 -1
  95. package/dist/types/runtime.js.map +1 -0
  96. package/dist/types/schema/concepts.js.map +1 -0
  97. package/dist/types/schema/fields.js +41 -8
  98. package/dist/types/schema/fields.js.map +1 -0
  99. package/dist/types/schema/fields.type-test.js.map +1 -0
  100. package/dist/types/spec/document.js.map +1 -0
  101. package/dist/types/spec/error.js.map +1 -0
  102. package/dist/types/spec/json-api-raw.js.map +1 -0
  103. package/dist/types/symbols.js +3 -3
  104. package/dist/types/symbols.js.map +1 -0
  105. package/dist/types/utils.js.map +1 -0
  106. package/dist/types.js.map +1 -0
  107. package/package.json +8 -11
  108. package/cjs-dist/addon-shim.cjs +0 -1
  109. package/cjs-dist/cjs-set-config.cjs +0 -1
  110. package/declarations/build-config/babel-macros.d.ts +0 -1
  111. package/declarations/build-config/canary-features.d.ts +0 -1
  112. package/declarations/build-config/debugging.d.ts +0 -1
  113. package/declarations/build-config/deprecations.d.ts +0 -1
  114. package/declarations/build-config/env.d.ts +0 -1
  115. package/declarations/build-config/macros.d.ts +0 -1
  116. package/declarations/build-config.d.ts +0 -1
  117. package/declarations/configure.d.ts +0 -7
  118. package/declarations/graph/-private/-diff.d.ts +0 -32
  119. package/declarations/graph/-private/-edge-definition.d.ts +0 -148
  120. package/declarations/graph/-private/-state.d.ts +0 -96
  121. package/declarations/graph/-private/-utils.d.ts +0 -31
  122. package/declarations/graph/-private/coerce-id.d.ts +0 -10
  123. package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -18
  124. package/declarations/graph/-private/edges/collection.d.ts +0 -39
  125. package/declarations/graph/-private/edges/implicit.d.ts +0 -43
  126. package/declarations/graph/-private/edges/resource.d.ts +0 -24
  127. package/declarations/graph/-private/graph.d.ts +0 -90
  128. package/declarations/graph/-private/normalize-link.d.ts +0 -8
  129. package/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
  130. package/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
  131. package/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
  132. package/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
  133. package/declarations/graph/-private/operations/replace-related-records.d.ts +0 -62
  134. package/declarations/graph/-private/operations/update-relationship.d.ts +0 -13
  135. package/declarations/graph/-private.d.ts +0 -13
  136. package/declarations/reactive/-private/document.d.ts +0 -146
  137. package/declarations/reactive/-private/fields/compute.d.ts +0 -43
  138. package/declarations/reactive/-private/fields/extension.d.ts +0 -8
  139. package/declarations/reactive/-private/fields/managed-array.d.ts +0 -22
  140. package/declarations/reactive/-private/fields/managed-object.d.ts +0 -21
  141. package/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
  142. package/declarations/reactive/-private/hooks.d.ts +0 -5
  143. package/declarations/reactive/-private/record.d.ts +0 -64
  144. package/declarations/reactive/-private/schema.d.ts +0 -271
  145. package/declarations/reactive/-private/symbols.d.ts +0 -36
  146. package/declarations/reactive/-private.d.ts +0 -1
  147. package/declarations/reactive.d.ts +0 -4
  148. package/declarations/store/-private/cache-handler/handler.d.ts +0 -62
  149. package/declarations/store/-private/cache-handler/types.d.ts +0 -98
  150. package/declarations/store/-private/cache-handler/utils.d.ts +0 -32
  151. package/declarations/store/-private/caches/cache-utils.d.ts +0 -12
  152. package/declarations/store/-private/caches/identifier-cache.d.ts +0 -304
  153. package/declarations/store/-private/caches/instance-cache.d.ts +0 -65
  154. package/declarations/store/-private/caches/resource-utils.d.ts +0 -9
  155. package/declarations/store/-private/debug/utils.d.ts +0 -6
  156. package/declarations/store/-private/default-cache-policy.d.ts +0 -384
  157. package/declarations/store/-private/legacy-model-support/record-reference.d.ts +0 -159
  158. package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts +0 -17
  159. package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -25
  160. package/declarations/store/-private/managers/cache-manager.d.ts +0 -443
  161. package/declarations/store/-private/managers/notification-manager.d.ts +0 -98
  162. package/declarations/store/-private/managers/record-array-manager.d.ts +0 -97
  163. package/declarations/store/-private/network/request-cache.d.ts +0 -107
  164. package/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -263
  165. package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -176
  166. package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -169
  167. package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -35
  168. package/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -277
  169. package/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -261
  170. package/declarations/store/-private/record-arrays/identifier-array.d.ts +0 -147
  171. package/declarations/store/-private/record-arrays/many-array.d.ts +0 -197
  172. package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -126
  173. package/declarations/store/-private/store-service.d.ts +0 -1605
  174. package/declarations/store/-private/utils/coerce-id.d.ts +0 -10
  175. package/declarations/store/-private/utils/construct-resource.d.ts +0 -6
  176. package/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
  177. package/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
  178. package/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
  179. package/declarations/store/-private.d.ts +0 -31
  180. package/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -99
  181. package/declarations/store/-types/q/ds-model.d.ts +0 -21
  182. package/declarations/store/-types/q/identifier.d.ts +0 -20
  183. package/declarations/store/-types/q/record-instance.d.ts +0 -23
  184. package/declarations/store/-types/q/schema-service.d.ts +0 -354
  185. package/declarations/store/-types/q/store.d.ts +0 -32
  186. package/declarations/store.d.ts +0 -1
  187. package/declarations/utils/string.d.ts +0 -48
  188. package/dist/build-config/babel-macros.js +0 -1
  189. package/dist/build-config/canary-features.js +0 -1
  190. package/dist/build-config/debugging.js +0 -1
  191. package/dist/build-config/deprecations.js +0 -1
  192. package/dist/build-config/env.js +0 -1
  193. package/dist/build-config/macros.js +0 -1
  194. package/dist/build-config.js +0 -1
  195. package/dist/configure-B48bFHOl.js +0 -181
  196. package/dist/configure.js +0 -1
  197. package/dist/graph/-private.js +0 -3372
  198. package/dist/handler-C2T-IyJK.js +0 -339
  199. package/dist/reactive/-private.js +0 -1
  200. package/dist/reactive.js +0 -1988
  201. package/dist/request-state-CjLph1LP.js +0 -8139
  202. package/dist/store/-private.js +0 -3
  203. package/dist/store.js +0 -545
  204. package/dist/symbols-SIstXMLI.js +0 -44
  205. package/dist/utils/string.js +0 -92
  206. package/logos/NCC-1701-a-blue.svg +0 -4
  207. package/logos/NCC-1701-a-gold.svg +0 -4
  208. package/logos/NCC-1701-a-gold_100.svg +0 -1
  209. package/logos/NCC-1701-a-gold_base-64.txt +0 -1
  210. package/logos/NCC-1701-a.svg +0 -4
  211. package/logos/README.md +0 -4
  212. package/logos/docs-badge.svg +0 -2
  213. package/logos/ember-data-logo-dark.svg +0 -12
  214. package/logos/ember-data-logo-light.svg +0 -12
  215. package/logos/github-header.svg +0 -444
  216. package/logos/social1.png +0 -0
  217. package/logos/social2.png +0 -0
  218. package/logos/warp-drive-logo-dark.svg +0 -4
  219. package/logos/warp-drive-logo-gold.svg +0 -4
@@ -0,0 +1 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GACpB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,CAAC"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=fields.type-test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.type-test.d.ts","sourceRoot":"","sources":["../../../src/types/schema/fields.type-test.ts"],"names":[],"mappings":""}
@@ -1,37 +1,31 @@
1
- import type { StableExistingRecordIdentifier } from "../identifier.js";
2
- import type { ApiError } from "./error.js";
3
- import type { Links, Meta, PaginationLinks } from "./json-api-raw.js";
1
+ import type { StableExistingRecordIdentifier } from '../identifier.ts';
2
+ import type { ApiError } from './error.ts';
3
+ import type { Links, Meta, PaginationLinks } from './json-api-raw.ts';
4
4
  export interface ResourceMetaDocument {
5
- // the url or cache-key associated with the structured document
6
- lid?: string;
7
- meta: Meta;
8
- links?: Links | PaginationLinks;
5
+ lid?: string;
6
+ meta: Meta;
7
+ links?: Links | PaginationLinks;
9
8
  }
10
- export interface SingleResourceDataDocument<
11
- T = StableExistingRecordIdentifier,
12
- R = StableExistingRecordIdentifier
13
- > {
14
- // the url or cache-key associated with the structured document
15
- lid?: string;
16
- links?: Links | PaginationLinks;
17
- meta?: Meta;
18
- data: T | null;
19
- included?: R[];
9
+ export interface SingleResourceDataDocument<T = StableExistingRecordIdentifier, R = StableExistingRecordIdentifier> {
10
+ lid?: string;
11
+ links?: Links | PaginationLinks;
12
+ meta?: Meta;
13
+ data: T | null;
14
+ included?: R[];
20
15
  }
21
16
  export interface CollectionResourceDataDocument<T = StableExistingRecordIdentifier> {
22
- // the url or cache-key associated with the structured document
23
- lid?: string;
24
- links?: Links | PaginationLinks;
25
- meta?: Meta;
26
- data: T[];
27
- included?: T[];
17
+ lid?: string;
18
+ links?: Links | PaginationLinks;
19
+ meta?: Meta;
20
+ data: T[];
21
+ included?: T[];
28
22
  }
29
23
  export type ResourceDataDocument<T = StableExistingRecordIdentifier> = SingleResourceDataDocument<T> | CollectionResourceDataDocument<T>;
30
24
  export interface ResourceErrorDocument {
31
- // the url or cache-key associated with the structured document
32
- lid?: string;
33
- links?: Links | PaginationLinks;
34
- meta?: Meta;
35
- errors: ApiError[];
25
+ lid?: string;
26
+ links?: Links | PaginationLinks;
27
+ meta?: Meta;
28
+ errors: ApiError[];
36
29
  }
37
30
  export type ResourceDocument<T = StableExistingRecordIdentifier> = ResourceMetaDocument | SingleResourceDataDocument<T> | CollectionResourceDataDocument<T> | ResourceErrorDocument;
31
+ //# sourceMappingURL=document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/types/spec/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IAEnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC;CACjC;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC,GAAG,8BAA8B,EAAE,CAAC,GAAG,8BAA8B;IAEhH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC;IAChC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,8BAA8B,CAAC,CAAC,GAAG,8BAA8B;IAEhF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC;IAChC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;CAChB;AAED,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,8BAA8B,IAC/D,0BAA0B,CAAC,CAAC,CAAC,GAC7B,8BAA8B,CAAC,CAAC,CAAC,CAAC;AAEtC,MAAM,WAAW,qBAAqB;IAEpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC;IAChC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,EAAE,QAAQ,EAAE,CAAC;CACpB;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,8BAA8B,IAC3D,oBAAoB,GACpB,0BAA0B,CAAC,CAAC,CAAC,GAC7B,8BAA8B,CAAC,CAAC,CAAC,GACjC,qBAAqB,CAAC"}
@@ -1,18 +1,19 @@
1
- import type { Link, Meta } from "./json-api-raw.js";
1
+ import type { Link, Meta } from './json-api-raw.ts';
2
2
  export interface ApiError {
3
- id?: string;
4
- title?: string;
5
- detail?: string;
6
- links?: {
7
- about?: Link;
8
- type?: Link;
9
- };
10
- status?: string;
11
- code?: string;
12
- source?: {
13
- pointer: string;
14
- parameter?: string;
15
- header?: string;
16
- };
17
- meta?: Meta;
3
+ id?: string;
4
+ title?: string;
5
+ detail?: string;
6
+ links?: {
7
+ about?: Link;
8
+ type?: Link;
9
+ };
10
+ status?: string;
11
+ code?: string;
12
+ source?: {
13
+ pointer: string;
14
+ parameter?: string;
15
+ header?: string;
16
+ };
17
+ meta?: Meta;
18
18
  }
19
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/types/spec/error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,QAAQ;IACvB,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"}
@@ -1,142 +1,142 @@
1
- import type { ArrayValue, ObjectValue } from "../json/raw.js";
1
+ import type { ArrayValue, ObjectValue } from '../json/raw.ts';
2
2
  export type Meta = ObjectValue;
3
3
  export type LinkObject = {
4
- href: string;
5
- meta?: Meta;
4
+ href: string;
5
+ meta?: Meta;
6
6
  };
7
7
  export type Link = string | LinkObject;
8
8
  export interface Links {
9
- related?: Link | null;
10
- self?: Link | null;
9
+ related?: Link | null;
10
+ self?: Link | null;
11
11
  }
12
12
  export interface PaginationLinks extends Links {
13
- first?: Link | null;
14
- last?: Link | null;
15
- prev?: Link | null;
16
- next?: Link | null;
13
+ first?: Link | null;
14
+ last?: Link | null;
15
+ prev?: Link | null;
16
+ next?: Link | null;
17
17
  }
18
18
  /**
19
- * Serves as a reference to a `Resource` but does not contain
20
- * any data itself.
21
- *
22
- * Used to establish relationship linkages between `Resources` and
23
- * to address data that may not be available synchronously.
24
- *
25
- * [JSON:API Spec](https://jsonapi.org/format/#document-resource-identifier-objects)
26
- * @internal
27
- */
19
+ * Serves as a reference to a `Resource` but does not contain
20
+ * any data itself.
21
+ *
22
+ * Used to establish relationship linkages between `Resources` and
23
+ * to address data that may not be available synchronously.
24
+ *
25
+ * [JSON:API Spec](https://jsonapi.org/format/#document-resource-identifier-objects)
26
+ * @internal
27
+ */
28
28
  export interface ExistingResourceIdentifierObject<T extends string = string> {
29
- id: string;
30
- type: T;
31
- /**
32
- * While not officially part of the `JSON:API` spec,
33
- * `ember-data` allows the use of `lid` as a local
34
- * identifier for a `Resource`.
35
- *
36
- * @recommended It is best to include the lid used when creating
37
- * a new resource if this is the response to a new resource creation,
38
- * also recommended if this resource type uses secondary indexes.
39
- *
40
- * Once a `ResourceIdentifierObject` has been seen by the cache, `lid`
41
- * should always be present. Only when inbound from the an `API` response
42
- * is `lid` considered optional.
43
- *
44
- * [Identifiers RFC](https://github.com/emberjs/rfcs/blob/main/text/0403-ember-data-identifiers.md#ember-data--identifiers)
45
- * @internal
46
- */
47
- lid?: string;
48
- /**
49
- * While valid in the `JSON:API` spec,
50
- * `ember-data` ignores `meta` on `ResourceIdentifierObjects`
51
- *
52
- * @ignored this property goes un-utilized and will be lost
53
- * @internal
54
- */
55
- meta?: Meta;
29
+ id: string;
30
+ type: T;
31
+ /**
32
+ * While not officially part of the `JSON:API` spec,
33
+ * `ember-data` allows the use of `lid` as a local
34
+ * identifier for a `Resource`.
35
+ *
36
+ * @recommended It is best to include the lid used when creating
37
+ * a new resource if this is the response to a new resource creation,
38
+ * also recommended if this resource type uses secondary indexes.
39
+ *
40
+ * Once a `ResourceIdentifierObject` has been seen by the cache, `lid`
41
+ * should always be present. Only when inbound from the an `API` response
42
+ * is `lid` considered optional.
43
+ *
44
+ * [Identifiers RFC](https://github.com/emberjs/rfcs/blob/main/text/0403-ember-data-identifiers.md#ember-data--identifiers)
45
+ * @internal
46
+ */
47
+ lid?: string;
48
+ /**
49
+ * While valid in the `JSON:API` spec,
50
+ * `ember-data` ignores `meta` on `ResourceIdentifierObjects`
51
+ *
52
+ * @ignored this property goes un-utilized and will be lost
53
+ * @internal
54
+ */
55
+ meta?: Meta;
56
56
  }
57
57
  /**
58
- * Serves as a reference to a resource created on the client
59
- * but not yet persisted.
60
- *
61
- * @internal
62
- */
58
+ * Serves as a reference to a resource created on the client
59
+ * but not yet persisted.
60
+ *
61
+ * @internal
62
+ */
63
63
  export interface NewResourceIdentifierObject<T extends string = string> {
64
- /**
65
- * Resources newly created on the client _may_
66
- * not have an `id` available to them prior
67
- * to completion of their first successful `save`.
68
- *
69
- * `id` will be `null` in this case.
70
- *
71
- * @internal
72
- */
73
- id: string | null;
74
- type: T;
75
- /**
76
- * Resources newly created on the client _will always_
77
- * have an `lid` assigned immediately and available.
78
- * @internal
79
- */
80
- lid: string;
64
+ /**
65
+ * Resources newly created on the client _may_
66
+ * not have an `id` available to them prior
67
+ * to completion of their first successful `save`.
68
+ *
69
+ * `id` will be `null` in this case.
70
+ *
71
+ * @internal
72
+ */
73
+ id: string | null;
74
+ type: T;
75
+ /**
76
+ * Resources newly created on the client _will always_
77
+ * have an `lid` assigned immediately and available.
78
+ * @internal
79
+ */
80
+ lid: string;
81
81
  }
82
82
  export interface ResourceIdentifier {
83
- lid: string;
83
+ lid: string;
84
84
  }
85
85
  export type ResourceIdentifierObject<T extends string = string> = ResourceIdentifier | ExistingResourceIdentifierObject<T> | NewResourceIdentifierObject<T>;
86
- // TODO disallow NewResource, make narrowable
87
86
  export interface SingleResourceRelationship<T = ExistingResourceIdentifierObject | NewResourceIdentifierObject> {
88
- data?: T | null;
89
- meta?: Meta;
90
- links?: Links;
87
+ data?: T | null;
88
+ meta?: Meta;
89
+ links?: Links;
91
90
  }
92
91
  export interface CollectionResourceRelationship<T = ExistingResourceIdentifierObject | NewResourceIdentifierObject> {
93
- data?: T[];
94
- meta?: Meta;
95
- links?: PaginationLinks;
92
+ data?: T[];
93
+ meta?: Meta;
94
+ links?: PaginationLinks;
96
95
  }
97
96
  export type InnerRelationshipDocument<T = ExistingResourceIdentifierObject | NewResourceIdentifierObject> = SingleResourceRelationship<T> | CollectionResourceRelationship<T>;
98
97
  export type ResourceRelationshipsObject<T = ExistingResourceIdentifierObject | NewResourceIdentifierObject> = Record<string, InnerRelationshipDocument<T>>;
99
98
  /**
100
- * Contains the data for an existing resource in JSON:API format
101
- * @internal
102
- */
99
+ * Contains the data for an existing resource in JSON:API format
100
+ * @internal
101
+ */
103
102
  export interface ExistingResourceObject<T extends string = string> extends ExistingResourceIdentifierObject<T> {
104
- meta?: Meta;
105
- attributes?: ObjectValue;
106
- relationships?: ResourceRelationshipsObject<ExistingResourceIdentifierObject>;
107
- links?: Links;
103
+ meta?: Meta;
104
+ attributes?: ObjectValue;
105
+ relationships?: ResourceRelationshipsObject<ExistingResourceIdentifierObject>;
106
+ links?: Links;
108
107
  }
109
108
  export type NewResourceObject<T extends string = string> = NewResourceIdentifierObject<T> & {
110
- meta?: Meta;
111
- attributes?: ObjectValue;
112
- relationships?: ResourceRelationshipsObject;
113
- links?: Links;
109
+ meta?: Meta;
110
+ attributes?: ObjectValue;
111
+ relationships?: ResourceRelationshipsObject;
112
+ links?: Links;
114
113
  };
115
114
  export type ResourceObject<T extends string = string> = ExistingResourceObject<T> | NewResourceObject<T>;
116
115
  type Document = {
117
- lid?: string;
118
- meta?: Meta;
119
- included?: ExistingResourceObject[];
120
- jsonapi?: ObjectValue;
121
- links?: Links | PaginationLinks;
122
- errors?: ArrayValue;
116
+ lid?: string;
117
+ meta?: Meta;
118
+ included?: ExistingResourceObject[];
119
+ jsonapi?: ObjectValue;
120
+ links?: Links | PaginationLinks;
121
+ errors?: ArrayValue;
123
122
  };
124
123
  export type EmptyResourceDocument = Document & {
125
- data: null;
124
+ data: null;
126
125
  };
127
126
  export type SingleResourceDocument<T extends string = string> = Document & {
128
- data: ExistingResourceObject<T>;
127
+ data: ExistingResourceObject<T>;
129
128
  };
130
129
  export type CollectionResourceDocument<T extends string = string> = Document & {
131
- data: ExistingResourceObject<T>[];
130
+ data: ExistingResourceObject<T>[];
132
131
  };
133
132
  /**
134
- * A (RAW) JSON:API Formatted Document.
135
- *
136
- * These documents should follow the JSON:API spec but do not
137
- * have the same level of guarantees as their `spec` counterparts.
138
- *
139
- * @internal
140
- */
133
+ * A (RAW) JSON:API Formatted Document.
134
+ *
135
+ * These documents should follow the JSON:API spec but do not
136
+ * have the same level of guarantees as their `spec` counterparts.
137
+ *
138
+ * @internal
139
+ */
141
140
  export type JsonApiDocument<T extends string = string> = EmptyResourceDocument | SingleResourceDocument<T> | CollectionResourceDocument<T>;
142
141
  export {};
142
+ //# sourceMappingURL=json-api-raw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-api-raw.d.ts","sourceRoot":"","sources":["../../../src/types/spec/json-api-raw.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE9D,MAAM,MAAM,IAAI,GAAG,WAAW,CAAC;AAC/B,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AACvD,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,UAAU,CAAC;AACvC,MAAM,WAAW,KAAK;IACpB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB;AACD,MAAM,WAAW,eAAgB,SAAQ,KAAK;IAC5C,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,gCAAgC,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACzE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC;IAER;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;;;;GAKG;AACH,MAAM,WAA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AAM,IACjD,qBAAqB,GACrB,sBAAsB,CAAC,CAAC,CAAC,GACzB,0BAA0B,CAAC,CAAC,CAAC,CAAC"}
@@ -1,78 +1,79 @@
1
- export declare const RecordStore: "___(unique) Symbol(Store)";
1
+ export declare const RecordStore: '___(unique) Symbol(Store)';
2
2
  /**
3
- * Symbol for the name of a resource, transformation
4
- * or derivation.
5
- *
6
- * ### With Resources
7
- *
8
- * This is an optional feature that can be used by
9
- * record implementations to provide a typescript
10
- * hint for the type of the resource.
11
- *
12
- * When used, EmberData/WarpDrive APIs can
13
- * take advantage of this to provide better type
14
- * safety and intellisense.
15
- *
16
- * ### With Derivations
17
- *
18
- * Required for derivations registered with
19
- * `store.registerDerivation(derivation)`.
20
- *
21
- * ```ts
22
- * function concat(record: object, options: ObjectValue | null, prop: string): string {}
23
- * concat[Name] = 'concat';
24
- * ```
25
- *
26
- * ### With Transforms
27
- *
28
- * Required for new-style transformations registered
29
- * with `store.registerTransform(transform)`.
30
- *
31
- * For legacy transforms, if not used,
32
- * `attr<Transform>('name')` will allow any string name.
33
- * `attr('name')` will always allow any string name.
34
- *
35
- * If used, `attr<Transform>('name')` will enforce
36
- * that the name is the same as the transform name.
37
- *
38
- * @type {Symbol}
39
- */
40
- export declare const Type: "___(unique) Symbol($type)";
3
+ * Symbol for the name of a resource, transformation
4
+ * or derivation.
5
+ *
6
+ * ### With Resources
7
+ *
8
+ * This is an optional feature that can be used by
9
+ * record implementations to provide a typescript
10
+ * hint for the type of the resource.
11
+ *
12
+ * When used, EmberData and WarpDrive APIs can
13
+ * take advantage of this to provide better type
14
+ * safety and intellisense.
15
+ *
16
+ * ### With Derivations
17
+ *
18
+ * Required for derivations registered with
19
+ * `store.registerDerivation(derivation)`.
20
+ *
21
+ * ```ts
22
+ * function concat(record: object, options: ObjectValue | null, prop: string): string {}
23
+ * concat[Name] = 'concat';
24
+ * ```
25
+ *
26
+ * ### With Transforms
27
+ *
28
+ * Required for new-style transformations registered
29
+ * with `store.registerTransform(transform)`.
30
+ *
31
+ * For legacy transforms, if not used,
32
+ * `attr<Transform>('name')` will allow any string name.
33
+ * `attr('name')` will always allow any string name.
34
+ *
35
+ * If used, `attr<Transform>('name')` will enforce
36
+ * that the name is the same as the transform name.
37
+ *
38
+ * @type {Symbol}
39
+ */
40
+ export declare const Type: '___(unique) Symbol($type)';
41
41
  /**
42
- * Symbol for the type of a resource.
43
- *
44
- * This is an optional feature that can be used by
45
- * record implementations to provide a typescript
46
- * hint for the type of the resource.
47
- *
48
- * When used, EmberData/WarpDrive APIs can
49
- * take advantage of this to provide better type
50
- * safety and intellisense.
51
- *
52
- * @type {Symbol}
53
- */
54
- export declare const ResourceType: "___(unique) Symbol($type)";
42
+ * Symbol for the type of a resource.
43
+ *
44
+ * This is an optional feature that can be used by
45
+ * record implementations to provide a typescript
46
+ * hint for the type of the resource.
47
+ *
48
+ * When used, EmberData and WarpDrive APIs can
49
+ * take advantage of this to provide better type
50
+ * safety and intellisense.
51
+ *
52
+ * @type {Symbol}
53
+ */
54
+ export declare const ResourceType: '___(unique) Symbol($type)';
55
55
  /**
56
- * Symbol for the name of a transform.
57
- *
58
- * This is an optional feature that can be used by
59
- * transform implementations to provide a typescript
60
- * hint for the name of the transform.
61
- *
62
- * If not used, `attr<Transform>('name')` will
63
- * allow any string name. `attr('name')` will always
64
- * allow any string name.
65
- *
66
- * If used, `attr<Transform>('name')` will enforce
67
- * that the name is the same as the transform name.
68
- *
69
- * @type {Symbol}
70
- */
71
- export declare const TransformName: "___(unique) Symbol($type)";
56
+ * Symbol for the name of a transform.
57
+ *
58
+ * This is an optional feature that can be used by
59
+ * transform implementations to provide a typescript
60
+ * hint for the name of the transform.
61
+ *
62
+ * If not used, `attr<Transform>('name')` will
63
+ * allow any string name. `attr('name')` will always
64
+ * allow any string name.
65
+ *
66
+ * If used, `attr<Transform>('name')` will enforce
67
+ * that the name is the same as the transform name.
68
+ *
69
+ * @type {Symbol}
70
+ */
71
+ export declare const TransformName: '___(unique) Symbol($type)';
72
72
  /**
73
- * Symbol for use by builders to indicate the return type
74
- * generic to use for store.request()
75
- *
76
- * @type {Symbol}
77
- */
78
- export declare const RequestSignature: "___(unique) Symbol(RequestSignature)";
73
+ * Symbol for use by builders to indicate the return type
74
+ * generic to use for store.request()
75
+ *
76
+ * @type {Symbol}
77
+ */
78
+ export declare const RequestSignature: '___(unique) Symbol(RequestSignature)';
79
+ //# sourceMappingURL=symbols.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/types/symbols.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,EAAE,2BAAsE,CAAC;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,IAAI,EAAE,2BAAsE,CAAC;AAE1F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,EAAE,2BAAkC,CAAC;AAE9D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,EAAE,2BAAkC,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,sCAG9B,CAAC"}
@@ -1,5 +1,5 @@
1
- export type WithPartial<
2
- T,
3
- K extends keyof T
4
- > = Omit<T, K> & Partial<Pick<T, K>>;
5
- export type Mutable<T> = { -readonly [P in keyof T] : T[P] };
1
+ export type WithPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
2
+ export type Mutable<T> = {
3
+ -readonly [P in keyof T]: T[P];
4
+ };
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/types/utils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEjF,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;IAAE,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC"}
@@ -1,11 +1,8 @@
1
1
  /**
2
- * This package provides core types, type-utilities, symbols
3
- * and constants used across the WarpDrive ecosystem.
4
- *
5
- * @module
6
- */
7
- export type { StableRecordIdentifier, ResourceKey } from "./types/identifier.js";
8
- export type { CacheCapabilitiesManager } from "./store/-types/q/cache-capabilities-manager.js";
9
- export type { ModelSchema } from "./store/-types/q/ds-model.js";
10
- export type { SchemaService } from "./store/-types/q/schema-service.js";
11
- export type { BaseFinderOptions, FindRecordOptions, LegacyResourceQuery, QueryOptions, FindAllOptions } from "./store/-types/q/store.js";
2
+ * This package provides core types, type-utilities, symbols
3
+ * and constants used across the WarpDrive ecosystem.
4
+ *
5
+ * @module
6
+ */
7
+ export type { StableRecordIdentifier, ResourceKey } from './types/identifier.ts';
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,YAAY,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { STRUCTURED, IS_FUTURE, SkipCache } from './types/request.js';
2
- import { getOrSetGlobal, getOrSetUniversal } from './types/-private.js';
1
+ import { STRUCTURED, IS_FUTURE, SkipCache } from "./types/request.js";
2
+ import { getOrSetGlobal, getOrSetUniversal } from "./types/-private.js";
3
3
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
4
4
  const BODY_TYPES = {
5
5
  type: 'string',