@warp-drive/core 5.6.0-alpha.11

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 (337) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/LICENSE.md +23 -0
  3. package/README.md +70 -0
  4. package/addon-main.cjs +5 -0
  5. package/cjs-dist/addon-shim.cjs +1 -0
  6. package/cjs-dist/cjs-set-config.cjs +1 -0
  7. package/declarations/build-config/babel-macros.d.ts +2 -0
  8. package/declarations/build-config/babel-macros.d.ts.map +1 -0
  9. package/declarations/build-config/canary-features.d.ts +2 -0
  10. package/declarations/build-config/canary-features.d.ts.map +1 -0
  11. package/declarations/build-config/debugging.d.ts +2 -0
  12. package/declarations/build-config/debugging.d.ts.map +1 -0
  13. package/declarations/build-config/deprecations.d.ts +2 -0
  14. package/declarations/build-config/deprecations.d.ts.map +1 -0
  15. package/declarations/build-config/env.d.ts +2 -0
  16. package/declarations/build-config/env.d.ts.map +1 -0
  17. package/declarations/build-config/macros.d.ts +2 -0
  18. package/declarations/build-config/macros.d.ts.map +1 -0
  19. package/declarations/build-config.d.ts +2 -0
  20. package/declarations/build-config.d.ts.map +1 -0
  21. package/declarations/configure.d.ts +8 -0
  22. package/declarations/configure.d.ts.map +1 -0
  23. package/declarations/graph/-private/-diff.d.ts +33 -0
  24. package/declarations/graph/-private/-diff.d.ts.map +1 -0
  25. package/declarations/graph/-private/-edge-definition.d.ts +149 -0
  26. package/declarations/graph/-private/-edge-definition.d.ts.map +1 -0
  27. package/declarations/graph/-private/-state.d.ts +10 -0
  28. package/declarations/graph/-private/-state.d.ts.map +1 -0
  29. package/declarations/graph/-private/-utils.d.ts +26 -0
  30. package/declarations/graph/-private/-utils.d.ts.map +1 -0
  31. package/declarations/graph/-private/coerce-id.d.ts +5 -0
  32. package/declarations/graph/-private/coerce-id.d.ts.map +1 -0
  33. package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +7 -0
  34. package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts.map +1 -0
  35. package/declarations/graph/-private/edges/collection.d.ts +40 -0
  36. package/declarations/graph/-private/edges/collection.d.ts.map +1 -0
  37. package/declarations/graph/-private/edges/implicit.d.ts +14 -0
  38. package/declarations/graph/-private/edges/implicit.d.ts.map +1 -0
  39. package/declarations/graph/-private/edges/resource.d.ts +25 -0
  40. package/declarations/graph/-private/edges/resource.d.ts.map +1 -0
  41. package/declarations/graph/-private/graph.d.ts +55 -0
  42. package/declarations/graph/-private/graph.d.ts.map +1 -0
  43. package/declarations/graph/-private/normalize-link.d.ts +3 -0
  44. package/declarations/graph/-private/normalize-link.d.ts.map +1 -0
  45. package/declarations/graph/-private/operations/add-to-related-records.d.ts +5 -0
  46. package/declarations/graph/-private/operations/add-to-related-records.d.ts.map +1 -0
  47. package/declarations/graph/-private/operations/merge-identifier.d.ts +4 -0
  48. package/declarations/graph/-private/operations/merge-identifier.d.ts.map +1 -0
  49. package/declarations/graph/-private/operations/remove-from-related-records.d.ts +5 -0
  50. package/declarations/graph/-private/operations/remove-from-related-records.d.ts.map +1 -0
  51. package/declarations/graph/-private/operations/replace-related-record.d.ts +4 -0
  52. package/declarations/graph/-private/operations/replace-related-record.d.ts.map +1 -0
  53. package/declarations/graph/-private/operations/replace-related-records.d.ts +8 -0
  54. package/declarations/graph/-private/operations/replace-related-records.d.ts.map +1 -0
  55. package/declarations/graph/-private/operations/update-relationship.d.ts +11 -0
  56. package/declarations/graph/-private/operations/update-relationship.d.ts.map +1 -0
  57. package/declarations/graph/-private.d.ts +14 -0
  58. package/declarations/graph/-private.d.ts.map +1 -0
  59. package/declarations/index.d.ts +15 -0
  60. package/declarations/index.d.ts.map +1 -0
  61. package/declarations/reactive/-private/document.d.ts +147 -0
  62. package/declarations/reactive/-private/document.d.ts.map +1 -0
  63. package/declarations/reactive/-private/fields/compute.d.ts +40 -0
  64. package/declarations/reactive/-private/fields/compute.d.ts.map +1 -0
  65. package/declarations/reactive/-private/fields/managed-array.d.ts +23 -0
  66. package/declarations/reactive/-private/fields/managed-array.d.ts.map +1 -0
  67. package/declarations/reactive/-private/fields/managed-object.d.ts +21 -0
  68. package/declarations/reactive/-private/fields/managed-object.d.ts.map +1 -0
  69. package/declarations/reactive/-private/fields/many-array-manager.d.ts +20 -0
  70. package/declarations/reactive/-private/fields/many-array-manager.d.ts.map +1 -0
  71. package/declarations/reactive/-private/hooks.d.ts +6 -0
  72. package/declarations/reactive/-private/hooks.d.ts.map +1 -0
  73. package/declarations/reactive/-private/record.d.ts +61 -0
  74. package/declarations/reactive/-private/record.d.ts.map +1 -0
  75. package/declarations/reactive/-private/schema.d.ts +180 -0
  76. package/declarations/reactive/-private/schema.d.ts.map +1 -0
  77. package/declarations/reactive/-private/symbols.d.ts +11 -0
  78. package/declarations/reactive/-private/symbols.d.ts.map +1 -0
  79. package/declarations/reactive/-private.d.ts +2 -0
  80. package/declarations/reactive/-private.d.ts.map +1 -0
  81. package/declarations/reactive.d.ts +5 -0
  82. package/declarations/reactive.d.ts.map +1 -0
  83. package/declarations/request/-private/context.d.ts +42 -0
  84. package/declarations/request/-private/context.d.ts.map +1 -0
  85. package/declarations/request/-private/debug.d.ts +5 -0
  86. package/declarations/request/-private/debug.d.ts.map +1 -0
  87. package/declarations/request/-private/fetch.d.ts +40 -0
  88. package/declarations/request/-private/fetch.d.ts.map +1 -0
  89. package/declarations/request/-private/future.d.ts +8 -0
  90. package/declarations/request/-private/future.d.ts.map +1 -0
  91. package/declarations/request/-private/manager.d.ts +160 -0
  92. package/declarations/request/-private/manager.d.ts.map +1 -0
  93. package/declarations/request/-private/promise-cache.d.ts +20 -0
  94. package/declarations/request/-private/promise-cache.d.ts.map +1 -0
  95. package/declarations/request/-private/types.d.ts +236 -0
  96. package/declarations/request/-private/types.d.ts.map +1 -0
  97. package/declarations/request/-private/utils.d.ts +16 -0
  98. package/declarations/request/-private/utils.d.ts.map +1 -0
  99. package/declarations/request.d.ts +6 -0
  100. package/declarations/request.d.ts.map +1 -0
  101. package/declarations/store/-private/cache-handler/handler.d.ts +57 -0
  102. package/declarations/store/-private/cache-handler/handler.d.ts.map +1 -0
  103. package/declarations/store/-private/cache-handler/types.d.ts +99 -0
  104. package/declarations/store/-private/cache-handler/types.d.ts.map +1 -0
  105. package/declarations/store/-private/cache-handler/utils.d.ts +32 -0
  106. package/declarations/store/-private/cache-handler/utils.d.ts.map +1 -0
  107. package/declarations/store/-private/caches/cache-utils.d.ts +9 -0
  108. package/declarations/store/-private/caches/cache-utils.d.ts.map +1 -0
  109. package/declarations/store/-private/caches/identifier-cache.d.ts +316 -0
  110. package/declarations/store/-private/caches/identifier-cache.d.ts.map +1 -0
  111. package/declarations/store/-private/caches/instance-cache.d.ts +65 -0
  112. package/declarations/store/-private/caches/instance-cache.d.ts.map +1 -0
  113. package/declarations/store/-private/caches/resource-utils.d.ts +10 -0
  114. package/declarations/store/-private/caches/resource-utils.d.ts.map +1 -0
  115. package/declarations/store/-private/debug/utils.d.ts +7 -0
  116. package/declarations/store/-private/debug/utils.d.ts.map +1 -0
  117. package/declarations/store/-private/default-cache-policy.d.ts +383 -0
  118. package/declarations/store/-private/default-cache-policy.d.ts.map +1 -0
  119. package/declarations/store/-private/legacy-model-support/record-reference.d.ts +164 -0
  120. package/declarations/store/-private/legacy-model-support/record-reference.d.ts.map +1 -0
  121. package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts +17 -0
  122. package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts.map +1 -0
  123. package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +26 -0
  124. package/declarations/store/-private/managers/cache-capabilities-manager.d.ts.map +1 -0
  125. package/declarations/store/-private/managers/cache-manager.d.ts +428 -0
  126. package/declarations/store/-private/managers/cache-manager.d.ts.map +1 -0
  127. package/declarations/store/-private/managers/notification-manager.d.ts +93 -0
  128. package/declarations/store/-private/managers/notification-manager.d.ts.map +1 -0
  129. package/declarations/store/-private/managers/record-array-manager.d.ts +98 -0
  130. package/declarations/store/-private/managers/record-array-manager.d.ts.map +1 -0
  131. package/declarations/store/-private/network/request-cache.d.ts +104 -0
  132. package/declarations/store/-private/network/request-cache.d.ts.map +1 -0
  133. package/declarations/store/-private/new-core-tmp/promise-state.d.ts +255 -0
  134. package/declarations/store/-private/new-core-tmp/promise-state.d.ts.map +1 -0
  135. package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +93 -0
  136. package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts.map +1 -0
  137. package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +170 -0
  138. package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts.map +1 -0
  139. package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +30 -0
  140. package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts.map +1 -0
  141. package/declarations/store/-private/new-core-tmp/request-state.d.ts +255 -0
  142. package/declarations/store/-private/new-core-tmp/request-state.d.ts.map +1 -0
  143. package/declarations/store/-private/record-arrays/identifier-array.d.ts +141 -0
  144. package/declarations/store/-private/record-arrays/identifier-array.d.ts.map +1 -0
  145. package/declarations/store/-private/record-arrays/many-array.d.ts +199 -0
  146. package/declarations/store/-private/record-arrays/many-array.d.ts.map +1 -0
  147. package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +116 -0
  148. package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts.map +1 -0
  149. package/declarations/store/-private/store-service.d.ts +1597 -0
  150. package/declarations/store/-private/store-service.d.ts.map +1 -0
  151. package/declarations/store/-private/store-service.type-test.d.ts +2 -0
  152. package/declarations/store/-private/store-service.type-test.d.ts.map +1 -0
  153. package/declarations/store/-private/utils/coerce-id.d.ts +5 -0
  154. package/declarations/store/-private/utils/coerce-id.d.ts.map +1 -0
  155. package/declarations/store/-private/utils/construct-resource.d.ts +7 -0
  156. package/declarations/store/-private/utils/construct-resource.d.ts.map +1 -0
  157. package/declarations/store/-private/utils/is-non-empty-string.d.ts +2 -0
  158. package/declarations/store/-private/utils/is-non-empty-string.d.ts.map +1 -0
  159. package/declarations/store/-private/utils/normalize-model-name.d.ts +2 -0
  160. package/declarations/store/-private/utils/normalize-model-name.d.ts.map +1 -0
  161. package/declarations/store/-private/utils/uuid-polyfill.d.ts +2 -0
  162. package/declarations/store/-private/utils/uuid-polyfill.d.ts.map +1 -0
  163. package/declarations/store/-private.d.ts +27 -0
  164. package/declarations/store/-private.d.ts.map +1 -0
  165. package/declarations/store/-types/q/cache-capabilities-manager.d.ts +100 -0
  166. package/declarations/store/-types/q/cache-capabilities-manager.d.ts.map +1 -0
  167. package/declarations/store/-types/q/ds-model.d.ts +22 -0
  168. package/declarations/store/-types/q/ds-model.d.ts.map +1 -0
  169. package/declarations/store/-types/q/identifier.d.ts +21 -0
  170. package/declarations/store/-types/q/identifier.d.ts.map +1 -0
  171. package/declarations/store/-types/q/promise-proxies.d.ts +2 -0
  172. package/declarations/store/-types/q/promise-proxies.d.ts.map +1 -0
  173. package/declarations/store/-types/q/record-data-json-api.d.ts +31 -0
  174. package/declarations/store/-types/q/record-data-json-api.d.ts.map +1 -0
  175. package/declarations/store/-types/q/record-instance.d.ts +24 -0
  176. package/declarations/store/-types/q/record-instance.d.ts.map +1 -0
  177. package/declarations/store/-types/q/schema-service.d.ts +331 -0
  178. package/declarations/store/-types/q/schema-service.d.ts.map +1 -0
  179. package/declarations/store/-types/q/store.d.ts +35 -0
  180. package/declarations/store/-types/q/store.d.ts.map +1 -0
  181. package/declarations/store.d.ts +2 -0
  182. package/declarations/store.d.ts.map +1 -0
  183. package/declarations/types/-private.d.ts +14 -0
  184. package/declarations/types/-private.d.ts.map +1 -0
  185. package/declarations/types/cache/aliases.d.ts +2 -0
  186. package/declarations/types/cache/aliases.d.ts.map +1 -0
  187. package/declarations/types/cache/change.d.ts +7 -0
  188. package/declarations/types/cache/change.d.ts.map +1 -0
  189. package/declarations/types/cache/mutations.d.ts +39 -0
  190. package/declarations/types/cache/mutations.d.ts.map +1 -0
  191. package/declarations/types/cache/operations.d.ts +72 -0
  192. package/declarations/types/cache/operations.d.ts.map +1 -0
  193. package/declarations/types/cache/relationship.d.ts +14 -0
  194. package/declarations/types/cache/relationship.d.ts.map +1 -0
  195. package/declarations/types/cache.d.ts +492 -0
  196. package/declarations/types/cache.d.ts.map +1 -0
  197. package/declarations/types/graph.d.ts +48 -0
  198. package/declarations/types/graph.d.ts.map +1 -0
  199. package/declarations/types/identifier.d.ts +111 -0
  200. package/declarations/types/identifier.d.ts.map +1 -0
  201. package/declarations/types/json/raw.d.ts +7 -0
  202. package/declarations/types/json/raw.d.ts.map +1 -0
  203. package/declarations/types/params.d.ts +10 -0
  204. package/declarations/types/params.d.ts.map +1 -0
  205. package/declarations/types/record.d.ts +96 -0
  206. package/declarations/types/record.d.ts.map +1 -0
  207. package/declarations/types/record.type-test.d.ts +2 -0
  208. package/declarations/types/record.type-test.d.ts.map +1 -0
  209. package/declarations/types/request.d.ts +308 -0
  210. package/declarations/types/request.d.ts.map +1 -0
  211. package/declarations/types/request.type-test.d.ts +2 -0
  212. package/declarations/types/request.type-test.d.ts.map +1 -0
  213. package/declarations/types/runtime.d.ts +15 -0
  214. package/declarations/types/runtime.d.ts.map +1 -0
  215. package/declarations/types/schema/concepts.d.ts +17 -0
  216. package/declarations/types/schema/concepts.d.ts.map +1 -0
  217. package/declarations/types/schema/fields.d.ts +1674 -0
  218. package/declarations/types/schema/fields.d.ts.map +1 -0
  219. package/declarations/types/schema/fields.type-test.d.ts +2 -0
  220. package/declarations/types/schema/fields.type-test.d.ts.map +1 -0
  221. package/declarations/types/spec/document.d.ts +31 -0
  222. package/declarations/types/spec/document.d.ts.map +1 -0
  223. package/declarations/types/spec/error.d.ts +19 -0
  224. package/declarations/types/spec/error.d.ts.map +1 -0
  225. package/declarations/types/spec/json-api-raw.d.ts +142 -0
  226. package/declarations/types/spec/json-api-raw.d.ts.map +1 -0
  227. package/declarations/types/symbols.d.ts +79 -0
  228. package/declarations/types/symbols.d.ts.map +1 -0
  229. package/declarations/types/utils.d.ts +5 -0
  230. package/declarations/types/utils.d.ts.map +1 -0
  231. package/declarations/types.d.ts +12 -0
  232. package/declarations/types.d.ts.map +1 -0
  233. package/declarations/utils/string.d.ts +45 -0
  234. package/declarations/utils/string.d.ts.map +1 -0
  235. package/dist/build-config/babel-macros.js +1 -0
  236. package/dist/build-config/babel-macros.js.map +1 -0
  237. package/dist/build-config/canary-features.js +1 -0
  238. package/dist/build-config/canary-features.js.map +1 -0
  239. package/dist/build-config/debugging.js +1 -0
  240. package/dist/build-config/debugging.js.map +1 -0
  241. package/dist/build-config/deprecations.js +1 -0
  242. package/dist/build-config/deprecations.js.map +1 -0
  243. package/dist/build-config/env.js +1 -0
  244. package/dist/build-config/env.js.map +1 -0
  245. package/dist/build-config/macros.js +1 -0
  246. package/dist/build-config/macros.js.map +1 -0
  247. package/dist/build-config.js +1 -0
  248. package/dist/build-config.js.map +1 -0
  249. package/dist/configure-Bz49BEZQ.js +145 -0
  250. package/dist/configure-Bz49BEZQ.js.map +1 -0
  251. package/dist/configure.js +1 -0
  252. package/dist/configure.js.map +1 -0
  253. package/dist/context-DE5sFezZ.js +636 -0
  254. package/dist/context-DE5sFezZ.js.map +1 -0
  255. package/dist/graph/-private.js +3364 -0
  256. package/dist/graph/-private.js.map +1 -0
  257. package/dist/handler-DYUefHNU.js +339 -0
  258. package/dist/handler-DYUefHNU.js.map +1 -0
  259. package/dist/index.js +382 -0
  260. package/dist/index.js.map +1 -0
  261. package/dist/reactive/-private.js +1 -0
  262. package/dist/reactive/-private.js.map +1 -0
  263. package/dist/reactive.js +1802 -0
  264. package/dist/reactive.js.map +1 -0
  265. package/dist/request-state-Bv5CY_H0.js +7358 -0
  266. package/dist/request-state-Bv5CY_H0.js.map +1 -0
  267. package/dist/request.js +1 -0
  268. package/dist/request.js.map +1 -0
  269. package/dist/store/-private.js +3 -0
  270. package/dist/store/-private.js.map +1 -0
  271. package/dist/store.js +545 -0
  272. package/dist/store.js.map +1 -0
  273. package/dist/symbols-DyqeYQTe.js +44 -0
  274. package/dist/symbols-DyqeYQTe.js.map +1 -0
  275. package/dist/types/-private.js +79 -0
  276. package/dist/types/-private.js.map +1 -0
  277. package/dist/types/cache/aliases.js +0 -0
  278. package/dist/types/cache/aliases.js.map +1 -0
  279. package/dist/types/cache/change.js +0 -0
  280. package/dist/types/cache/change.js.map +1 -0
  281. package/dist/types/cache/mutations.js +0 -0
  282. package/dist/types/cache/mutations.js.map +1 -0
  283. package/dist/types/cache/operations.js +0 -0
  284. package/dist/types/cache/operations.js.map +1 -0
  285. package/dist/types/cache/relationship.js +0 -0
  286. package/dist/types/cache/relationship.js.map +1 -0
  287. package/dist/types/cache.js +0 -0
  288. package/dist/types/cache.js.map +1 -0
  289. package/dist/types/graph.js +0 -0
  290. package/dist/types/graph.js.map +1 -0
  291. package/dist/types/identifier.js +89 -0
  292. package/dist/types/identifier.js.map +1 -0
  293. package/dist/types/json/raw.js +0 -0
  294. package/dist/types/json/raw.js.map +1 -0
  295. package/dist/types/params.js +0 -0
  296. package/dist/types/params.js.map +1 -0
  297. package/dist/types/record.js +64 -0
  298. package/dist/types/record.js.map +1 -0
  299. package/dist/types/request.js +33 -0
  300. package/dist/types/request.js.map +1 -0
  301. package/dist/types/runtime.js +34 -0
  302. package/dist/types/runtime.js.map +1 -0
  303. package/dist/types/schema/concepts.js +0 -0
  304. package/dist/types/schema/concepts.js.map +1 -0
  305. package/dist/types/schema/fields.js +470 -0
  306. package/dist/types/schema/fields.js.map +1 -0
  307. package/dist/types/schema/fields.type-test.js +0 -0
  308. package/dist/types/schema/fields.type-test.js.map +1 -0
  309. package/dist/types/spec/document.js +0 -0
  310. package/dist/types/spec/document.js.map +1 -0
  311. package/dist/types/spec/error.js +0 -0
  312. package/dist/types/spec/error.js.map +1 -0
  313. package/dist/types/spec/json-api-raw.js +0 -0
  314. package/dist/types/spec/json-api-raw.js.map +1 -0
  315. package/dist/types/symbols.js +84 -0
  316. package/dist/types/symbols.js.map +1 -0
  317. package/dist/types/utils.js +0 -0
  318. package/dist/types/utils.js.map +1 -0
  319. package/dist/types.js +0 -0
  320. package/dist/types.js.map +1 -0
  321. package/dist/utils/string.js +92 -0
  322. package/dist/utils/string.js.map +1 -0
  323. package/logos/NCC-1701-a-blue.svg +4 -0
  324. package/logos/NCC-1701-a-gold.svg +4 -0
  325. package/logos/NCC-1701-a-gold_100.svg +1 -0
  326. package/logos/NCC-1701-a-gold_base-64.txt +1 -0
  327. package/logos/NCC-1701-a.svg +4 -0
  328. package/logos/README.md +4 -0
  329. package/logos/docs-badge.svg +2 -0
  330. package/logos/ember-data-logo-dark.svg +12 -0
  331. package/logos/ember-data-logo-light.svg +12 -0
  332. package/logos/github-header.svg +444 -0
  333. package/logos/social1.png +0 -0
  334. package/logos/social2.png +0 -0
  335. package/logos/warp-drive-logo-dark.svg +4 -0
  336. package/logos/warp-drive-logo-gold.svg +4 -0
  337. package/package.json +70 -0
@@ -0,0 +1,10 @@
1
+ import type { Includes, TypedRecordInstance } from './record.ts';
2
+ export type SerializablePrimitive = string | number | boolean | null;
3
+ export type Serializable = SerializablePrimitive | SerializablePrimitive[];
4
+ export type QueryParamsSerializationOptions = {
5
+ arrayFormat?: 'bracket' | 'indices' | 'repeat' | 'comma';
6
+ };
7
+ export type QueryParamsSource<T = unknown> = ({
8
+ include?: T extends TypedRecordInstance ? Includes<T>[] : string | string[];
9
+ } & Record<Exclude<string, 'include'>, Serializable>) | URLSearchParams;
10
+ //# sourceMappingURL=params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../src/types/params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,qBAAqB,EAAE,CAAC;AAC3E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,IACrC,CAAC;IAAE,OAAO,CAAC,EAAE,CAAC,SAAS,mBAAmB,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,CACvF,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,EAC1B,YAAY,CACb,CAAC,GACF,eAAe,CAAC"}
@@ -0,0 +1,96 @@
1
+ import type { Type } from './symbols.ts';
2
+ /**
3
+ * Records may be anything, They don't even
4
+ * have to be objects.
5
+ *
6
+ * Whatever they are, if they have a Type
7
+ * property, that property will be used by WarpDrive
8
+ * and WarpDrive to provide better type safety and
9
+ * intellisense.
10
+ *
11
+ * @class TypedRecordInstance
12
+ */
13
+ export interface TypedRecordInstance {
14
+ /**
15
+ * The type of the resource.
16
+ *
17
+ * This is an optional feature that can be used by
18
+ * record implementations to provide a typescript
19
+ * hint for the type of the resource.
20
+ *
21
+ * When used, WarpDrive APIs can
22
+ * take advantage of this to provide better type
23
+ * safety and intellisense.
24
+ *
25
+ * @property [Type]
26
+ * @type {Type}
27
+ * @type {String}
28
+ */
29
+ [Type]: string;
30
+ }
31
+ /**
32
+ * A type utility that extracts the Type if available,
33
+ * otherwise it returns never.
34
+ *
35
+ */
36
+ export type TypeFromInstance<T> = T extends TypedRecordInstance ? T[typeof Type] : never;
37
+ /**
38
+ * A type utility that extracts the Type if available,
39
+ * otherwise it returns string
40
+ *
41
+ */
42
+ export type TypeFromInstanceOrString<T> = T extends TypedRecordInstance ? T[typeof Type] : string;
43
+ type IsUniqueSymbol<T> = T extends `___(unique) Symbol(${string})` ? true : false;
44
+ type Unpacked<T> = T extends (infer U)[] ? U : T;
45
+ type NONE = {
46
+ __NONE: never;
47
+ };
48
+ type __InternalExtract<MAX_DEPTH extends _DEPTHCOUNT, T extends TypedRecordInstance, V extends TypedRecordInstance, IncludePrefix extends boolean, Ignore, Pre extends string, DEPTH extends _DEPTHCOUNT> = V extends T ? IncludePrefix extends false ? V[typeof Type] : Pre : V extends Ignore ? IncludePrefix extends false ? V[typeof Type] : Pre : IS_MAX_DEPTH<DEPTH, MAX_DEPTH> extends true ? Pre : ExtractUnion<MAX_DEPTH, V, IncludePrefix, Ignore | T, Pre, INC_DEPTH<DEPTH>>;
49
+ type __ExtractIfRecord<MAX_DEPTH extends _DEPTHCOUNT, T extends TypedRecordInstance, V, IncludePrefix extends boolean, Ignore, Pre extends string, DEPTH extends _DEPTHCOUNT> = V extends TypedRecordInstance ? __InternalExtract<MAX_DEPTH, T, V, IncludePrefix, Ignore, Pre, DEPTH> : never;
50
+ type _ExtractUnion<MAX_DEPTH extends _DEPTHCOUNT, T extends TypedRecordInstance, IncludePrefix extends boolean, Ignore, Pre, DEPTH extends _DEPTHCOUNT> = {
51
+ [K in keyof T]: IsUniqueSymbol<K> extends true ? never : K extends string ? __ExtractIfRecord<MAX_DEPTH, T, Unpacked<Awaited<T[K]>>, IncludePrefix, Ignore, Pre extends string ? `${Pre}.${K}` : K, DEPTH> : never;
52
+ }[keyof T];
53
+ /**
54
+ * A Utility that extracts either resource types or resource paths from a TypedRecordInstance.
55
+ *
56
+ * Its limitations are mostly around its intentional non-recursiveness. It presumes that APIs which
57
+ * implement includes will not allow cyclical include paths, and will collapse includes by type.
58
+ *
59
+ * This follows closer to the JSON:API fields spec than to the includes spec in nature, but in
60
+ * practice it is so impracticle for an API to allow z-algo include paths that this is probably
61
+ * reasonable.
62
+ *
63
+ * We may need to revisit this in the future, opting to either make this restriction optional or
64
+ * to allow for other strategies.
65
+ *
66
+ * There's a 90% chance this particular implementation belongs being in the JSON:API package instead
67
+ * of core-types, but it's here for now.
68
+ *
69
+ */
70
+ type ExtractUnion<MAX_DEPTH extends _DEPTHCOUNT, T extends TypedRecordInstance, IncludePrefix extends boolean = false, Ignore = NONE, Pre = NONE, DEPTH extends _DEPTHCOUNT = 1> = Exclude<IncludePrefix extends true ? // if we want to include prefix, we union with the prefix. Outer Exclude will filter any "NONE" types
71
+ _ExtractUnion<MAX_DEPTH, T, IncludePrefix, Ignore, Pre, DEPTH> | Pre : // Else we just union the types.
72
+ _ExtractUnion<MAX_DEPTH, T, IncludePrefix, Ignore, Pre, DEPTH> | T[typeof Type], NONE>;
73
+ type _DEPTHCOUNT = 1 | 2 | 3 | 4 | 5;
74
+ type INC_DEPTH<START extends _DEPTHCOUNT> = START extends 1 ? 2 : START extends 2 ? 3 : START extends 3 ? 4 : 5;
75
+ type IS_MAX_DEPTH<DEPTH extends _DEPTHCOUNT, MAX_DEPTH extends _DEPTHCOUNT = DEFAULT_MAX_DEPTH> = DEPTH extends MAX_DEPTH ? true : false;
76
+ type DEFAULT_MAX_DEPTH = 3;
77
+ /**
78
+ * A utility that provides the union of all ResourceName for all potential
79
+ * includes for the given TypedRecordInstance.
80
+ *
81
+ */
82
+ export type ExtractSuggestedCacheTypes<T extends TypedRecordInstance, MAX_DEPTH extends _DEPTHCOUNT = DEFAULT_MAX_DEPTH> = ExtractUnion<MAX_DEPTH, T>;
83
+ /**
84
+ * A utility that provides the union type of all valid include paths for the given
85
+ * TypedRecordInstance.
86
+ *
87
+ * Cyclical paths are filtered out.
88
+ *
89
+ */
90
+ export type Includes<T extends TypedRecordInstance, MAX_DEPTH extends _DEPTHCOUNT = DEFAULT_MAX_DEPTH> = ExtractUnion<MAX_DEPTH, T, true>;
91
+ export type OpaqueRecordInstance = unknown;
92
+ export type _StringSatisfiesIncludes<T extends string, SET extends string, FT extends string> = T extends SET ? FT : T extends `${infer U},${infer V}` ? U extends SET ? _StringSatisfiesIncludes<V, Exclude<SET, U>, FT> : never : never;
93
+ export type StringSatisfiesIncludes<T extends string, SET extends string> = _StringSatisfiesIncludes<T, SET, T>;
94
+ export declare function createIncludeValidator<T extends TypedRecordInstance>(): <U extends string>(includes: StringSatisfiesIncludes<U, Includes<T>>) => U;
95
+ export {};
96
+ //# sourceMappingURL=record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/types/record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;;;;OAcG;IACH,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,mBAAmB,GAAG,CAAC,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC;AAEzF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,CAAC,SAAS,mBAAmB,GAAG,CAAC,CAAC,OAAO,IAAI,CAAC,GAAG,MAAM,CAAC;AAElG,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,sBAAsB,MAAM,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC;AAClF,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;AACjD,KAAK,IAAI,GAAG;IAAE,MAAM,EAAE,KAAK,CAAA;CAAE,CAAC;AAE9B,KAAK,iBAAiB,CACpB,SAAS,SAAS,WAAW,EAC7B,CAAC,SAAS,mBAAmB,EAC7B,CAAC,SAAS,mBAAmB,EAC7B,aAAa,SAAS,OAAO,EAC7B,MAAM,EACN,GAAG,SAAS,MAAM,EAClB,KAAK,SAAS,WAAW,IAGzB,CAAC,SAAS,CAAC,GACP,aAAa,SAAS,KAAK,GACzB,CAAC,CAAC,OAAO,IAAI,CAAC,GACd,GAAG,GAEL,CAAC,SAAS,MAAM,GACd,aAAa,SAAS,KAAK,GACzB,CA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GAAG,SAAS,MAAM,EAAE,EAAE,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,GACzG,EAAE,GACF,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAC/B,CAAC,SAAS,GAAG,GACX,wBAAwB,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAChD,KAAK,GACP,KAAK,CAAC;AAEZ,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,SAAS,MAAM,IAAI,wBAAwB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;AAEhH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,mBAAmB,MACjC,CAAC,SAAS,MAAM,EAAE,UAAU,uBAAuB,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAG,CAAC,CAGzG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=record.type-test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record.type-test.d.ts","sourceRoot":"","sources":["../../src/types/record.type-test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,308 @@
1
+ import type { StableRecordIdentifier } from './identifier.ts';
2
+ import type { QueryParamsSerializationOptions } from './params.ts';
3
+ import type { ExtractSuggestedCacheTypes, Includes, TypedRecordInstance, TypeFromInstanceOrString } from './record.ts';
4
+ import type { ResourceIdentifierObject } from './spec/json-api-raw.ts';
5
+ import type { RequestSignature } from './symbols.ts';
6
+ type Store = unknown;
7
+ export declare const SkipCache: '___(unique) Symbol(SkipCache)';
8
+ export declare const EnableHydration: '___(unique) Symbol(EnableHydration)';
9
+ export declare const IS_FUTURE: '___(unique) Symbol(IS_FUTURE)';
10
+ export declare const STRUCTURED: '___(unique) Symbol(DOC)';
11
+ export type HTTPMethod = 'QUERY' | 'GET' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'CONNECT' | 'TRACE';
12
+ /**
13
+ * Use these options to adjust CacheHandler behavior for a request.
14
+ *
15
+ */
16
+ export type CacheOptions<T = unknown> = {
17
+ /**
18
+ * A key that uniquely identifies this request. If not present, the url wil be used
19
+ * as the key for any GET request, while all other requests will not be cached.
20
+ *
21
+ */
22
+ key?: string;
23
+ /**
24
+ * If true, the request will be made even if a cached response is present
25
+ * and not expired.
26
+ *
27
+ */
28
+ reload?: boolean;
29
+ /**
30
+ * If true, and a cached response is present and not expired, the request
31
+ * will be made in the background and the cached response will be returned.
32
+ *
33
+ */
34
+ backgroundReload?: boolean;
35
+ /**
36
+ * Useful for metadata around when to invalidate the cache. Typically used
37
+ * by strategies that invalidate requests by resource type when a new resource
38
+ * of that type has been created. See the CachePolicy implementation
39
+ * provided by `@ember-data/request-utils` for an example.
40
+ *
41
+ * It is recommended to only use this for query/queryRecord requests where
42
+ * new records created later would affect the results, though using it for
43
+ * findRecord requests is also supported if desired where it may be useful
44
+ * when a create may affect the result of a sideloaded relationship.
45
+ *
46
+ * Generally it is better to patch the cache directly for relationship updates
47
+ * than to invalidate findRecord requests for one.
48
+ *
49
+ */
50
+ types?: T extends TypedRecordInstance ? ExtractSuggestedCacheTypes<T>[] : string[];
51
+ /**
52
+ * If true, the request will never be handled by the cache-manager and thus
53
+ * will never resolve from cache nor update the cache.
54
+ *
55
+ * Generally this is only used for legacy request that manage resource cache
56
+ * updates in a non-standard way via the LegacyNetworkHandler.
57
+ *
58
+ */
59
+ [SkipCache]?: boolean;
60
+ };
61
+ export type FindRecordRequestOptions<RT = unknown, T = unknown> = {
62
+ url: string;
63
+ method: 'GET';
64
+ headers: Headers;
65
+ cacheOptions?: CacheOptions<T>;
66
+ op: 'findRecord';
67
+ records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
68
+ [RequestSignature]?: RT;
69
+ };
70
+ export type QueryRequestOptions<RT = unknown, T = unknown> = {
71
+ url: string;
72
+ method: 'GET';
73
+ headers: Headers;
74
+ cacheOptions?: CacheOptions<T>;
75
+ op: 'query';
76
+ [RequestSignature]?: RT;
77
+ };
78
+ export type PostQueryRequestOptions<RT = unknown, T = unknown> = {
79
+ url: string;
80
+ method: 'POST' | 'QUERY';
81
+ headers: Headers;
82
+ body?: string | BodyInit | FormData;
83
+ cacheOptions: CacheOptions<T> & {
84
+ key: string;
85
+ };
86
+ op: 'query';
87
+ [RequestSignature]?: RT;
88
+ };
89
+ export type DeleteRequestOptions<RT = unknown, T = unknown> = {
90
+ url: string;
91
+ method: 'DELETE';
92
+ headers: Headers;
93
+ op: 'deleteRecord';
94
+ body?: string | BodyInit | FormData;
95
+ data: {
96
+ record: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
97
+ };
98
+ records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
99
+ [RequestSignature]?: RT;
100
+ };
101
+ type ImmutableRequest<T> = Readonly<T> & {
102
+ readonly headers: ImmutableHeaders;
103
+ readonly records: [StableRecordIdentifier];
104
+ };
105
+ export type UpdateRequestOptions<RT = unknown, T = unknown> = {
106
+ url: string;
107
+ method: 'PATCH' | 'PUT';
108
+ headers: Headers;
109
+ op: 'updateRecord';
110
+ body?: string | BodyInit | FormData;
111
+ data: {
112
+ record: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
113
+ };
114
+ records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
115
+ [RequestSignature]?: RT;
116
+ };
117
+ export type CreateRequestOptions<RT = unknown, T = unknown> = {
118
+ url: string;
119
+ method: 'POST';
120
+ headers: Headers;
121
+ op: 'createRecord';
122
+ body?: string | BodyInit | FormData;
123
+ data: {
124
+ record: StableRecordIdentifier<TypeFromInstanceOrString<T>>;
125
+ };
126
+ records: [ResourceIdentifierObject<TypeFromInstanceOrString<T>>];
127
+ [RequestSignature]?: RT;
128
+ };
129
+ export type ImmutableDeleteRequestOptions = ImmutableRequest<DeleteRequestOptions>;
130
+ export type ImmutableUpdateRequestOptions = ImmutableRequest<UpdateRequestOptions>;
131
+ export type ImmutableCreateRequestOptions = ImmutableRequest<CreateRequestOptions>;
132
+ export type RemotelyAccessibleIdentifier<T extends string = string> = {
133
+ id: string;
134
+ type: T;
135
+ lid?: string;
136
+ };
137
+ export type ConstrainedRequestOptions = {
138
+ reload?: boolean;
139
+ backgroundReload?: boolean;
140
+ host?: string;
141
+ namespace?: string;
142
+ resourcePath?: string;
143
+ urlParamsSettings?: QueryParamsSerializationOptions;
144
+ };
145
+ export type FindRecordOptions<T = unknown> = ConstrainedRequestOptions & {
146
+ include?: T extends TypedRecordInstance ? Includes<T>[] : string | string[];
147
+ };
148
+ export interface StructuredDataDocument<T> {
149
+ [STRUCTURED]?: true;
150
+ /**
151
+ * @see {@link ImmutableRequestInfo}
152
+ */
153
+ request: ImmutableRequestInfo;
154
+ response: Response | ResponseInfo | null;
155
+ content: T;
156
+ }
157
+ export interface StructuredErrorDocument<T = unknown> extends Error {
158
+ [STRUCTURED]?: true;
159
+ request: ImmutableRequestInfo;
160
+ response: Response | ResponseInfo | null;
161
+ error: string | object;
162
+ content?: T;
163
+ }
164
+ export type StructuredDocument<T> = StructuredDataDocument<T> | StructuredErrorDocument<T>;
165
+ /**
166
+ * JavaScript's native Request class.
167
+ *
168
+ * WarpDrive provides our own typings due to incompleteness in the native typings.
169
+ *
170
+ */
171
+ interface Request {
172
+ /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
173
+ */
174
+ cache?: RequestCache;
175
+ /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
176
+ */
177
+ credentials?: RequestCredentials;
178
+ /** Returns the kind of resource requested by request, e.g., "document" or "script".
179
+ */
180
+ destination?: RequestDestination;
181
+ /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
182
+ */
183
+ headers?: Headers;
184
+ /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
185
+ */
186
+ integrity?: string;
187
+ /** Returns a boolean indicating whether or not request can outlive the global in which it was created.
188
+ */
189
+ keepalive?: boolean;
190
+ /** Returns request's HTTP method, which is "GET" by default.
191
+ */
192
+ method?: HTTPMethod;
193
+ /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
194
+ *
195
+ * `no-cors` is not allowed for streaming request bodies.
196
+ *
197
+ */
198
+ mode?: RequestMode;
199
+ /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
200
+ */
201
+ redirect?: RequestRedirect;
202
+ /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made.
203
+ */
204
+ referrer?: string;
205
+ /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
206
+ */
207
+ referrerPolicy?: ReferrerPolicy;
208
+ /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
209
+ */
210
+ signal?: AbortSignal;
211
+ /** Returns the URL of request as a string.
212
+ */
213
+ url?: string;
214
+ /** Any body that you want to add to your request. Note that a GET or HEAD request may not have a body.
215
+ */
216
+ body?: BodyInit | null;
217
+ /**
218
+ * When sending a ReadableStream as the body of a request, 'half' must be
219
+ * specified.
220
+ *
221
+ * [Half Duplex Further Reading](https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests#half_duplex)
222
+ *
223
+ */
224
+ duplex?: 'half';
225
+ }
226
+ export interface ImmutableHeaders extends Headers {
227
+ clone?(): Headers;
228
+ toJSON(): [string, string][];
229
+ }
230
+ /**
231
+ * Extends JavaScript's native {@link Request} object with additional
232
+ * properties specific to the RequestManager's capabilities.
233
+ *
234
+ */
235
+ export interface RequestInfo<RT = unknown, T = unknown> extends Request {
236
+ /**
237
+ * If provided, used instead of the AbortController auto-configured for each request by the RequestManager
238
+ *
239
+ */
240
+ controller?: AbortController;
241
+ /**
242
+ * @see {@link CacheOptions}
243
+ */
244
+ cacheOptions?: CacheOptions<T>;
245
+ store?: Store;
246
+ op?: string;
247
+ /**
248
+ * The identifiers of the primary resources involved in the request
249
+ * (if any). This may be used by handlers to perform transactional
250
+ * operations on the store.
251
+ *
252
+ */
253
+ records?: StableRecordIdentifier[];
254
+ disableTestWaiter?: boolean;
255
+ /**
256
+ * data that a handler should convert into
257
+ * the query (GET) or body (POST).
258
+ *
259
+ * Note: It is recommended that builders set query params
260
+ * and body directly in most scenarios.
261
+ *
262
+ */
263
+ data?: Record<string, unknown>;
264
+ /**
265
+ * options specifically intended for handlers
266
+ * to utilize to process the request
267
+ *
268
+ */
269
+ options?: Record<string, unknown>;
270
+ [RequestSignature]?: RT;
271
+ [EnableHydration]?: boolean;
272
+ }
273
+ /**
274
+ * Immutable version of {@link RequestInfo}. This is what is passed to handlers.
275
+ *
276
+ */
277
+ export type ImmutableRequestInfo<RT = unknown, T = unknown> = Readonly<Omit<RequestInfo<RT, T>, 'controller'>> & {
278
+ readonly cacheOptions?: Readonly<CacheOptions<T>>;
279
+ readonly headers?: ImmutableHeaders;
280
+ readonly data?: Readonly<Record<string, unknown>>;
281
+ readonly options?: Readonly<Record<string, unknown>>;
282
+ /** Whether the request body has been read.
283
+ */
284
+ readonly bodyUsed?: boolean;
285
+ };
286
+ export interface ResponseInfo {
287
+ readonly headers: ImmutableHeaders;
288
+ readonly ok: boolean;
289
+ readonly redirected: boolean;
290
+ readonly status: number;
291
+ readonly statusText: string;
292
+ readonly type: ResponseType;
293
+ readonly url: string;
294
+ }
295
+ export interface RequestContext {
296
+ /**
297
+ * @see {@link ImmutableRequestInfo}
298
+ */
299
+ request: ImmutableRequestInfo;
300
+ id: number;
301
+ setStream(stream: ReadableStream | Promise<ReadableStream | null>): void;
302
+ setResponse(response: Response | ResponseInfo | null): void;
303
+ }
304
+ export declare function withBrand<T>(obj: RequestInfo): RequestInfo<T> & {
305
+ [RequestSignature]: T;
306
+ };
307
+ export {};
308
+ //# sourceMappingURL=request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/types/request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,QAAQ,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,KAAK,KAAK,GAAG,OAAO,CAAC;AAErB,eAAO,MAAM,SAAS,EAAE,+BAA6F,CAAC;AACtH,eAAO,MAAM,eAAe,EAAE,qCAG7B,CAAC;AACF,eAAO,MAAM,SAAS,EAAE,+BAAkF,CAAC;AAC3G,eAAO,MAAM,UAAU,EAAE,yBAAgE,CAAC;AAE1F,MAAM,MAAM,UAAU,GAClB,OAAO,GACP,KAAK,GACL,SAAS,GACT,MAAM,GACN,KAAK,GACL,OAAO,GACP,QAAQ,GACR,MAAM,GACN,SAAS,GACT,OAAO,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI;IACtC;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EAAE,CAAC,SAAS,mBAAmB,GAAG,0BAA0B,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;IAEnF;;;;;;;OAOG;IACH,CAAC,SAA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.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.type-test.d.ts","sourceRoot":"","sources":["../../src/types/request.type-test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import type { LOG_CONFIG } from '@warp-drive/build-config/-private/utils/logging';
2
+ declare const RuntimeConfig: {
3
+ debug: Partial<LOG_CONFIG>;
4
+ };
5
+ export declare function getRuntimeConfig(): typeof RuntimeConfig;
6
+ /**
7
+ * Upserts the specified logging configuration into the runtime
8
+ * config.
9
+ *
10
+ * globalThis.setWarpDriveLogging({ LOG_CACHE: true } });
11
+ *
12
+ */
13
+ export declare function setLogging(config: Partial<LOG_CONFIG>): void;
14
+ export {};
15
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/types/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAIlF,QAAA,MAAM,aAAa,EAAE;IAAE,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;CAE/C,CAAC;AAkBH,wBAAgB,gBAAgB,IAAI,OAAO,aAAa,CAEvD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAG5D"}
@@ -0,0 +1,17 @@
1
+ import type { StableRecordIdentifier } from '../identifier.ts';
2
+ import type { ObjectValue, Value } from '../json/raw.ts';
3
+ import type { OpaqueRecordInstance } from '../record.ts';
4
+ import type { Type } from '../symbols.ts';
5
+ export type Transformation<T extends Value = Value, PT = unknown> = {
6
+ serialize(value: PT, options: ObjectValue | null, record: OpaqueRecordInstance): T;
7
+ hydrate(value: T | undefined, options: ObjectValue | null, record: OpaqueRecordInstance): PT;
8
+ defaultValue?(options: ObjectValue | null, identifier: StableRecordIdentifier): T;
9
+ [Type]: string;
10
+ };
11
+ export type Derivation<R = unknown, T = unknown, FM extends ObjectValue | null = ObjectValue | null> = {
12
+ [Type]: string;
13
+ } & ((record: R, options: FM, prop: string) => T);
14
+ export type HashFn<T extends object = object> = {
15
+ [Type]: string;
16
+ } & ((data: T, options: ObjectValue | null, prop: string | null) => string);
17
+ //# sourceMappingURL=concepts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concepts.d.ts","sourceRoot":"","sources":["../../../src/types/schema/concepts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAAE,EAAE,GAAG,OAAO,IAAI;IAClE,SAAS,CAAC,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,EAAE,MAAM,EAAE,oBAAoB,GAAG,CAAC,CAAC;IACnF,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,SAAS,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,EAAE,MAAM,EAAE,oBAAoB,GAAG,EAAE,CAAC;IAC7F,YAAY,CAAC,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,EAAE,UAAU,EAAE,sBAAsB,GAAG,CAAC,CAAC;IAClF,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,EAAE,SAAS,WAAW,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,IAAI;IACrG,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,CAAC,CAAC,MAAM,EAAE,CA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