@warp-drive/core 5.9.0-beta.0 → 5.9.0-beta.2

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 (476) hide show
  1. package/dist/-private-BYn1Vh-L.js +22 -0
  2. package/dist/-private-BYn1Vh-L.js.map +1 -0
  3. package/dist/-private-CyhhcK1a.js +120 -0
  4. package/dist/-private-CyhhcK1a.js.map +1 -0
  5. package/dist/-private-zrP4VGAf.js +3530 -0
  6. package/dist/-private-zrP4VGAf.js.map +1 -0
  7. package/dist/aliases-BWYW5EhX.d.ts +17 -0
  8. package/dist/aliases-BWYW5EhX.d.ts.map +1 -0
  9. package/dist/build-config/babel-macros.d.ts +2 -0
  10. package/dist/build-config/babel-macros.js +3 -1
  11. package/dist/build-config/canary-features.d.ts +1 -0
  12. package/dist/build-config/canary-features.js +1 -1
  13. package/dist/build-config/debugging.d.ts +1 -0
  14. package/dist/build-config/debugging.js +1 -1
  15. package/dist/build-config/deprecations.d.ts +1 -0
  16. package/dist/build-config/deprecations.js +1 -1
  17. package/dist/build-config/env.d.ts +2 -0
  18. package/dist/build-config/env.js +3 -1
  19. package/dist/build-config/macros.d.ts +2 -0
  20. package/dist/build-config/macros.js +3 -1
  21. package/dist/build-config.d.ts +2 -0
  22. package/dist/build-config.js +3 -1
  23. package/dist/change-C7kqv2kW.d.ts +41 -0
  24. package/dist/change-C7kqv2kW.d.ts.map +1 -0
  25. package/dist/concepts-DFldVwEM.d.ts +77 -0
  26. package/dist/concepts-DFldVwEM.d.ts.map +1 -0
  27. package/dist/configure-B_F639tN.d.ts +134 -0
  28. package/dist/configure-B_F639tN.d.ts.map +1 -0
  29. package/dist/configure.d.ts +2 -0
  30. package/dist/configure.js +3 -2
  31. package/dist/document-BEn91SwT.d.ts +129 -0
  32. package/dist/document-BEn91SwT.d.ts.map +1 -0
  33. package/dist/error-50OSEhsF.d.ts +77 -0
  34. package/dist/error-50OSEhsF.d.ts.map +1 -0
  35. package/dist/fields-FM7peCiM.d.ts +2327 -0
  36. package/dist/fields-FM7peCiM.d.ts.map +1 -0
  37. package/dist/graph/-private.d.ts +2 -0
  38. package/dist/graph/-private.js +2200 -3196
  39. package/dist/graph/-private.js.map +1 -0
  40. package/dist/graph-DLqYXP2z.d.ts +186 -0
  41. package/dist/graph-DLqYXP2z.d.ts.map +1 -0
  42. package/dist/identifier-DQnqOSJK.d.ts +112 -0
  43. package/dist/identifier-DQnqOSJK.d.ts.map +1 -0
  44. package/dist/index.d.ts +2 -0
  45. package/dist/index.js +3 -8
  46. package/dist/internal-DtWOpxrR.d.ts +9182 -0
  47. package/dist/internal-DtWOpxrR.d.ts.map +1 -0
  48. package/dist/json-api-raw-C5APJHHB.d.ts +378 -0
  49. package/dist/json-api-raw-C5APJHHB.d.ts.map +1 -0
  50. package/dist/mutations-CqtoGB4t.d.ts +165 -0
  51. package/dist/mutations-CqtoGB4t.d.ts.map +1 -0
  52. package/dist/operations-D1qA6r0_.d.ts +244 -0
  53. package/dist/operations-D1qA6r0_.d.ts.map +1 -0
  54. package/dist/params-DrEx3bf8.d.ts +41 -0
  55. package/dist/params-DrEx3bf8.d.ts.map +1 -0
  56. package/dist/raw-D5hnjiq7.d.ts +31 -0
  57. package/dist/raw-D5hnjiq7.d.ts.map +1 -0
  58. package/dist/reactive/-private.d.ts +2 -0
  59. package/dist/reactive/-private.js +3 -1
  60. package/dist/reactive.d.ts +2 -0
  61. package/dist/reactive.js +5 -4
  62. package/dist/record-D3QQcaIR.d.ts +254 -0
  63. package/dist/record-D3QQcaIR.d.ts.map +1 -0
  64. package/dist/relationship-CmHzMPKf.d.ts +65 -0
  65. package/dist/relationship-CmHzMPKf.d.ts.map +1 -0
  66. package/dist/request-7BJFgSu_.js +766 -0
  67. package/dist/request-7BJFgSu_.js.map +1 -0
  68. package/dist/request.d.ts +2 -0
  69. package/dist/request.js +2 -48
  70. package/dist/signals/-leaked.d.ts +1060 -0
  71. package/dist/signals/-leaked.d.ts.map +1 -0
  72. package/dist/signals/-leaked.js +3 -1
  73. package/dist/src-BOAWJH_S.js +9227 -0
  74. package/dist/src-BOAWJH_S.js.map +1 -0
  75. package/dist/store/-private.d.ts +2 -0
  76. package/dist/store/-private.js +3 -1
  77. package/dist/store-DNF9Rgoh.js +462 -0
  78. package/dist/store-DNF9Rgoh.js.map +1 -0
  79. package/dist/store.d.ts +2 -0
  80. package/dist/store.js +3 -1
  81. package/dist/symbols-DjRDCeX0.d.ts +88 -0
  82. package/dist/symbols-DjRDCeX0.d.ts.map +1 -0
  83. package/dist/types/-private.d.ts +76 -0
  84. package/dist/types/-private.d.ts.map +1 -0
  85. package/dist/types/-private.js +1 -77
  86. package/dist/types/cache/aliases.d.ts +2 -0
  87. package/dist/types/cache/change.d.ts +2 -0
  88. package/dist/types/cache/mutations.d.ts +2 -0
  89. package/dist/types/cache/operations.d.ts +2 -0
  90. package/dist/types/cache/relationship.d.ts +2 -0
  91. package/dist/types/cache.d.ts +2 -0
  92. package/dist/types/graph.d.ts +2 -0
  93. package/dist/types/identifier.d.ts +2 -0
  94. package/dist/types/identifier.js +60 -52
  95. package/dist/types/identifier.js.map +1 -0
  96. package/dist/types/json/raw.d.ts +2 -0
  97. package/dist/types/params.d.ts +2 -0
  98. package/dist/types/record.d.ts +2 -0
  99. package/dist/types/record.js +211 -181
  100. package/dist/types/record.js.map +1 -0
  101. package/dist/types/request.d.ts +2 -0
  102. package/dist/types/request.js +138 -69
  103. package/dist/types/request.js.map +1 -0
  104. package/dist/types/runtime.d.ts +55 -0
  105. package/dist/types/runtime.d.ts.map +1 -0
  106. package/dist/types/runtime.js +54 -26
  107. package/dist/types/runtime.js.map +1 -0
  108. package/dist/types/schema/concepts.d.ts +2 -0
  109. package/dist/types/schema/fields.d.ts +2 -0
  110. package/dist/types/schema/fields.js +501 -495
  111. package/dist/types/schema/fields.js.map +1 -0
  112. package/dist/types/schema/fields.type-test.d.ts +1 -0
  113. package/dist/types/schema/fields.type-test.js +79 -0
  114. package/dist/types/schema/fields.type-test.js.map +1 -0
  115. package/dist/types/schema/schema-service.d.ts +2 -0
  116. package/dist/types/spec/document.d.ts +2 -0
  117. package/dist/types/spec/error.d.ts +2 -0
  118. package/dist/types/spec/json-api-raw.d.ts +2 -0
  119. package/dist/types/symbols.d.ts +2 -0
  120. package/dist/types/symbols.js +84 -77
  121. package/dist/types/symbols.js.map +1 -0
  122. package/dist/types/utils.d.ts +2 -0
  123. package/dist/types.d.ts +3 -0
  124. package/dist/unpkg/dev/-private-BoSTJwp9.js +3519 -0
  125. package/dist/unpkg/dev/-private-BoSTJwp9.js.map +1 -0
  126. package/dist/unpkg/dev/-private-CUkeqUhO.js +22 -0
  127. package/dist/unpkg/dev/-private-CUkeqUhO.js.map +1 -0
  128. package/dist/unpkg/dev/-private-D6Tw25AD.js +111 -0
  129. package/dist/unpkg/dev/-private-D6Tw25AD.js.map +1 -0
  130. package/dist/unpkg/dev/build-config/babel-macros.js +3 -1
  131. package/dist/unpkg/dev/build-config/canary-features.js +1 -1
  132. package/dist/unpkg/dev/build-config/debugging.js +1 -1
  133. package/dist/unpkg/dev/build-config/deprecations.js +1 -1
  134. package/dist/unpkg/dev/build-config/env.js +3 -1
  135. package/dist/unpkg/dev/build-config/macros.js +3 -1
  136. package/dist/unpkg/dev/build-config.js +3 -1
  137. package/dist/unpkg/dev/configure.js +3 -1
  138. package/dist/unpkg/dev/graph/-private.js +1958 -2953
  139. package/dist/unpkg/dev/graph/-private.js.map +1 -0
  140. package/dist/unpkg/dev/index.js +3 -6
  141. package/dist/unpkg/dev/reactive/-private.js +3 -1
  142. package/dist/unpkg/dev/reactive.js +5 -3
  143. package/dist/unpkg/dev/request-CwjpJB3r.js +756 -0
  144. package/dist/unpkg/dev/request-CwjpJB3r.js.map +1 -0
  145. package/dist/unpkg/dev/request.js +2 -48
  146. package/dist/unpkg/dev/runtime-DoDtzXJb.js +110 -0
  147. package/dist/unpkg/dev/runtime-DoDtzXJb.js.map +1 -0
  148. package/dist/unpkg/dev/signals/-leaked.js +3 -1
  149. package/dist/unpkg/dev/src-CP6e_ozt.js +8331 -0
  150. package/dist/unpkg/dev/src-CP6e_ozt.js.map +1 -0
  151. package/dist/unpkg/dev/store/-private.js +3 -55
  152. package/dist/unpkg/dev/store-DamE3C4y.js +427 -0
  153. package/dist/unpkg/dev/store-DamE3C4y.js.map +1 -0
  154. package/dist/unpkg/dev/store.js +1 -556
  155. package/dist/unpkg/dev/types/-private.js +1 -67
  156. package/dist/unpkg/dev/types/identifier.js +63 -56
  157. package/dist/unpkg/dev/types/identifier.js.map +1 -0
  158. package/dist/unpkg/dev/types/record.js +211 -181
  159. package/dist/unpkg/dev/types/record.js.map +1 -0
  160. package/dist/unpkg/dev/types/request.js +138 -69
  161. package/dist/unpkg/dev/types/request.js.map +1 -0
  162. package/dist/unpkg/dev/types/runtime.js +54 -26
  163. package/dist/unpkg/dev/types/runtime.js.map +1 -0
  164. package/dist/unpkg/dev/types/schema/fields.js +501 -495
  165. package/dist/unpkg/dev/types/schema/fields.js.map +1 -0
  166. package/dist/unpkg/dev/types/schema/fields.type-test.js +79 -0
  167. package/dist/unpkg/dev/types/schema/fields.type-test.js.map +1 -0
  168. package/dist/unpkg/dev/types/symbols.js +84 -77
  169. package/dist/unpkg/dev/types/symbols.js.map +1 -0
  170. package/dist/unpkg/dev/utils/string.js +79 -85
  171. package/dist/unpkg/dev/utils/string.js.map +1 -0
  172. package/dist/unpkg/dev-deprecated/-private-BoSTJwp9.js +3519 -0
  173. package/dist/unpkg/dev-deprecated/-private-BoSTJwp9.js.map +1 -0
  174. package/dist/unpkg/dev-deprecated/-private-CUkeqUhO.js +22 -0
  175. package/dist/unpkg/dev-deprecated/-private-CUkeqUhO.js.map +1 -0
  176. package/dist/unpkg/dev-deprecated/-private-D6Tw25AD.js +111 -0
  177. package/dist/unpkg/dev-deprecated/-private-D6Tw25AD.js.map +1 -0
  178. package/dist/unpkg/dev-deprecated/build-config/babel-macros.js +3 -1
  179. package/dist/unpkg/dev-deprecated/build-config/canary-features.js +1 -1
  180. package/dist/unpkg/dev-deprecated/build-config/debugging.js +1 -1
  181. package/dist/unpkg/dev-deprecated/build-config/deprecations.js +1 -1
  182. package/dist/unpkg/dev-deprecated/build-config/env.js +3 -1
  183. package/dist/unpkg/dev-deprecated/build-config/macros.js +3 -1
  184. package/dist/unpkg/dev-deprecated/build-config.js +3 -1
  185. package/dist/unpkg/dev-deprecated/configure.js +3 -1
  186. package/dist/unpkg/dev-deprecated/graph/-private.js +2077 -3147
  187. package/dist/unpkg/dev-deprecated/graph/-private.js.map +1 -0
  188. package/dist/unpkg/dev-deprecated/index.js +3 -5
  189. package/dist/unpkg/dev-deprecated/reactive/-private.js +3 -1
  190. package/dist/unpkg/dev-deprecated/reactive.js +5 -3
  191. package/dist/unpkg/dev-deprecated/request-CwjpJB3r.js +756 -0
  192. package/dist/unpkg/dev-deprecated/request-CwjpJB3r.js.map +1 -0
  193. package/dist/unpkg/dev-deprecated/request.js +2 -48
  194. package/dist/unpkg/dev-deprecated/runtime-CPL2BGgT.js +110 -0
  195. package/dist/unpkg/dev-deprecated/runtime-CPL2BGgT.js.map +1 -0
  196. package/dist/unpkg/dev-deprecated/signals/-leaked.js +3 -1
  197. package/dist/unpkg/dev-deprecated/src-De8OV58h.js +8884 -0
  198. package/dist/unpkg/dev-deprecated/src-De8OV58h.js.map +1 -0
  199. package/dist/unpkg/dev-deprecated/store/-private.js +3 -1
  200. package/dist/unpkg/dev-deprecated/store-Bsdz5mRe.js +427 -0
  201. package/dist/unpkg/dev-deprecated/store-Bsdz5mRe.js.map +1 -0
  202. package/dist/unpkg/dev-deprecated/store.js +1 -556
  203. package/dist/unpkg/dev-deprecated/types/-private.js +1 -67
  204. package/dist/unpkg/dev-deprecated/types/identifier.js +63 -56
  205. package/dist/unpkg/dev-deprecated/types/identifier.js.map +1 -0
  206. package/dist/unpkg/dev-deprecated/types/record.js +211 -181
  207. package/dist/unpkg/dev-deprecated/types/record.js.map +1 -0
  208. package/dist/unpkg/dev-deprecated/types/request.js +138 -69
  209. package/dist/unpkg/dev-deprecated/types/request.js.map +1 -0
  210. package/dist/unpkg/dev-deprecated/types/runtime.js +54 -26
  211. package/dist/unpkg/dev-deprecated/types/runtime.js.map +1 -0
  212. package/dist/unpkg/dev-deprecated/types/schema/fields.js +501 -495
  213. package/dist/unpkg/dev-deprecated/types/schema/fields.js.map +1 -0
  214. package/dist/unpkg/dev-deprecated/types/schema/fields.type-test.js +79 -0
  215. package/dist/unpkg/dev-deprecated/types/schema/fields.type-test.js.map +1 -0
  216. package/dist/unpkg/dev-deprecated/types/symbols.js +84 -77
  217. package/dist/unpkg/dev-deprecated/types/symbols.js.map +1 -0
  218. package/dist/unpkg/dev-deprecated/utils/string.js +79 -85
  219. package/dist/unpkg/dev-deprecated/utils/string.js.map +1 -0
  220. package/dist/unpkg/prod/-private-B36B1ztP.js +22 -0
  221. package/dist/unpkg/prod/-private-B36B1ztP.js.map +1 -0
  222. package/dist/unpkg/prod/-private-DHco-h0q.js +3294 -0
  223. package/dist/unpkg/prod/-private-DHco-h0q.js.map +1 -0
  224. package/dist/unpkg/prod/-private-Dhl123OI.js +99 -0
  225. package/dist/unpkg/prod/-private-Dhl123OI.js.map +1 -0
  226. package/dist/unpkg/prod/build-config/babel-macros.js +3 -1
  227. package/dist/unpkg/prod/build-config/canary-features.js +1 -1
  228. package/dist/unpkg/prod/build-config/debugging.js +1 -1
  229. package/dist/unpkg/prod/build-config/deprecations.js +1 -1
  230. package/dist/unpkg/prod/build-config/env.js +3 -1
  231. package/dist/unpkg/prod/build-config/macros.js +3 -1
  232. package/dist/unpkg/prod/build-config.js +3 -1
  233. package/dist/unpkg/prod/configure.js +3 -2
  234. package/dist/unpkg/prod/graph/-private.js +1494 -2101
  235. package/dist/unpkg/prod/graph/-private.js.map +1 -0
  236. package/dist/unpkg/prod/index.js +2 -482
  237. package/dist/unpkg/prod/reactive/-private.js +3 -1
  238. package/dist/unpkg/prod/reactive.js +5 -30
  239. package/dist/unpkg/prod/request-BBdC1Sz7.js +480 -0
  240. package/dist/unpkg/prod/request-BBdC1Sz7.js.map +1 -0
  241. package/dist/unpkg/prod/request.js +3 -2
  242. package/dist/unpkg/prod/signals/-leaked.js +3 -1
  243. package/dist/unpkg/prod/src-nFHlZgKa.js +6942 -0
  244. package/dist/unpkg/prod/src-nFHlZgKa.js.map +1 -0
  245. package/dist/unpkg/prod/store/-private.js +3 -126
  246. package/dist/unpkg/prod/store-BWhmb7Ob.js +359 -0
  247. package/dist/unpkg/prod/store-BWhmb7Ob.js.map +1 -0
  248. package/dist/unpkg/prod/store.js +1 -435
  249. package/dist/unpkg/prod/types/-private.js +1 -47
  250. package/dist/unpkg/prod/types/identifier.js +63 -56
  251. package/dist/unpkg/prod/types/identifier.js.map +1 -0
  252. package/dist/unpkg/prod/types/record.js +211 -181
  253. package/dist/unpkg/prod/types/record.js.map +1 -0
  254. package/dist/unpkg/prod/types/request.js +138 -69
  255. package/dist/unpkg/prod/types/request.js.map +1 -0
  256. package/dist/unpkg/prod/types/runtime.js +54 -26
  257. package/dist/unpkg/prod/types/runtime.js.map +1 -0
  258. package/dist/unpkg/prod/types/schema/fields.js +501 -495
  259. package/dist/unpkg/prod/types/schema/fields.js.map +1 -0
  260. package/dist/unpkg/prod/types/schema/fields.type-test.js +79 -0
  261. package/dist/unpkg/prod/types/schema/fields.type-test.js.map +1 -0
  262. package/dist/unpkg/prod/types/symbols.js +84 -77
  263. package/dist/unpkg/prod/types/symbols.js.map +1 -0
  264. package/dist/unpkg/prod/utils/string.js +70 -66
  265. package/dist/unpkg/prod/utils/string.js.map +1 -0
  266. package/dist/unpkg/prod-deprecated/-private-B36B1ztP.js +22 -0
  267. package/dist/unpkg/prod-deprecated/-private-B36B1ztP.js.map +1 -0
  268. package/dist/unpkg/prod-deprecated/-private-DHco-h0q.js +3294 -0
  269. package/dist/unpkg/prod-deprecated/-private-DHco-h0q.js.map +1 -0
  270. package/dist/unpkg/prod-deprecated/-private-Dhl123OI.js +99 -0
  271. package/dist/unpkg/prod-deprecated/-private-Dhl123OI.js.map +1 -0
  272. package/dist/unpkg/prod-deprecated/build-config/babel-macros.js +3 -1
  273. package/dist/unpkg/prod-deprecated/build-config/canary-features.js +1 -1
  274. package/dist/unpkg/prod-deprecated/build-config/debugging.js +1 -1
  275. package/dist/unpkg/prod-deprecated/build-config/deprecations.js +1 -1
  276. package/dist/unpkg/prod-deprecated/build-config/env.js +3 -1
  277. package/dist/unpkg/prod-deprecated/build-config/macros.js +3 -1
  278. package/dist/unpkg/prod-deprecated/build-config.js +3 -1
  279. package/dist/unpkg/prod-deprecated/configure.js +3 -2
  280. package/dist/unpkg/prod-deprecated/graph/-private.js +1603 -2272
  281. package/dist/unpkg/prod-deprecated/graph/-private.js.map +1 -0
  282. package/dist/unpkg/prod-deprecated/index.js +2 -482
  283. package/dist/unpkg/prod-deprecated/reactive/-private.js +3 -1
  284. package/dist/unpkg/prod-deprecated/reactive.js +5 -5
  285. package/dist/unpkg/prod-deprecated/request-BBdC1Sz7.js +480 -0
  286. package/dist/unpkg/prod-deprecated/request-BBdC1Sz7.js.map +1 -0
  287. package/dist/unpkg/prod-deprecated/request.js +3 -2
  288. package/dist/unpkg/prod-deprecated/signals/-leaked.js +3 -1
  289. package/dist/unpkg/prod-deprecated/src-Cku5ymUJ.js +7375 -0
  290. package/dist/unpkg/prod-deprecated/src-Cku5ymUJ.js.map +1 -0
  291. package/dist/unpkg/prod-deprecated/store/-private.js +3 -88
  292. package/dist/unpkg/prod-deprecated/store-BWhmb7Ob.js +359 -0
  293. package/dist/unpkg/prod-deprecated/store-BWhmb7Ob.js.map +1 -0
  294. package/dist/unpkg/prod-deprecated/store.js +1 -435
  295. package/dist/unpkg/prod-deprecated/types/-private.js +1 -47
  296. package/dist/unpkg/prod-deprecated/types/identifier.js +63 -56
  297. package/dist/unpkg/prod-deprecated/types/identifier.js.map +1 -0
  298. package/dist/unpkg/prod-deprecated/types/record.js +211 -181
  299. package/dist/unpkg/prod-deprecated/types/record.js.map +1 -0
  300. package/dist/unpkg/prod-deprecated/types/request.js +138 -69
  301. package/dist/unpkg/prod-deprecated/types/request.js.map +1 -0
  302. package/dist/unpkg/prod-deprecated/types/runtime.js +54 -26
  303. package/dist/unpkg/prod-deprecated/types/runtime.js.map +1 -0
  304. package/dist/unpkg/prod-deprecated/types/schema/fields.js +501 -495
  305. package/dist/unpkg/prod-deprecated/types/schema/fields.js.map +1 -0
  306. package/dist/unpkg/prod-deprecated/types/schema/fields.type-test.js +79 -0
  307. package/dist/unpkg/prod-deprecated/types/schema/fields.type-test.js.map +1 -0
  308. package/dist/unpkg/prod-deprecated/types/symbols.js +84 -77
  309. package/dist/unpkg/prod-deprecated/types/symbols.js.map +1 -0
  310. package/dist/unpkg/prod-deprecated/utils/string.js +70 -66
  311. package/dist/unpkg/prod-deprecated/utils/string.js.map +1 -0
  312. package/dist/utils/string.d.ts +54 -0
  313. package/dist/utils/string.d.ts.map +1 -0
  314. package/dist/utils/string.js +84 -85
  315. package/dist/utils/string.js.map +1 -0
  316. package/dist/utils-BtURiy8l.d.ts +24 -0
  317. package/dist/utils-BtURiy8l.d.ts.map +1 -0
  318. package/package.json +17 -21
  319. package/declarations/build-config/babel-macros.d.ts +0 -1
  320. package/declarations/build-config/canary-features.d.ts +0 -1
  321. package/declarations/build-config/debugging.d.ts +0 -1
  322. package/declarations/build-config/deprecations.d.ts +0 -1
  323. package/declarations/build-config/env.d.ts +0 -1
  324. package/declarations/build-config/macros.d.ts +0 -1
  325. package/declarations/build-config.d.ts +0 -18
  326. package/declarations/configure.d.ts +0 -7
  327. package/declarations/graph/-private/-diff.d.ts +0 -19
  328. package/declarations/graph/-private/-edge-definition.d.ts +0 -149
  329. package/declarations/graph/-private/-state.d.ts +0 -9
  330. package/declarations/graph/-private/-utils.d.ts +0 -25
  331. package/declarations/graph/-private/coerce-id.d.ts +0 -4
  332. package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -6
  333. package/declarations/graph/-private/edges/collection.d.ts +0 -39
  334. package/declarations/graph/-private/edges/implicit.d.ts +0 -43
  335. package/declarations/graph/-private/edges/resource.d.ts +0 -23
  336. package/declarations/graph/-private/graph.d.ts +0 -56
  337. package/declarations/graph/-private/normalize-link.d.ts +0 -2
  338. package/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
  339. package/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
  340. package/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
  341. package/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
  342. package/declarations/graph/-private/operations/replace-related-records.d.ts +0 -7
  343. package/declarations/graph/-private/operations/update-relationship.d.ts +0 -9
  344. package/declarations/graph/-private.d.ts +0 -13
  345. package/declarations/index.d.ts +0 -96
  346. package/declarations/reactive/-private/default-mode.d.ts +0 -73
  347. package/declarations/reactive/-private/document.d.ts +0 -142
  348. package/declarations/reactive/-private/fields/extension.d.ts +0 -8
  349. package/declarations/reactive/-private/fields/get-field-key.d.ts +0 -8
  350. package/declarations/reactive/-private/fields/managed-array.d.ts +0 -18
  351. package/declarations/reactive/-private/fields/managed-object.d.ts +0 -17
  352. package/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
  353. package/declarations/reactive/-private/hooks.d.ts +0 -5
  354. package/declarations/reactive/-private/kind/alias-field.d.ts +0 -4
  355. package/declarations/reactive/-private/kind/array-field.d.ts +0 -4
  356. package/declarations/reactive/-private/kind/attribute-field.d.ts +0 -4
  357. package/declarations/reactive/-private/kind/belongs-to-field.d.ts +0 -4
  358. package/declarations/reactive/-private/kind/collection-field.d.ts +0 -4
  359. package/declarations/reactive/-private/kind/derived-field.d.ts +0 -4
  360. package/declarations/reactive/-private/kind/generic-field.d.ts +0 -4
  361. package/declarations/reactive/-private/kind/has-many-field.d.ts +0 -4
  362. package/declarations/reactive/-private/kind/hash-field.d.ts +0 -4
  363. package/declarations/reactive/-private/kind/identity-field.d.ts +0 -4
  364. package/declarations/reactive/-private/kind/local-field.d.ts +0 -4
  365. package/declarations/reactive/-private/kind/object-field.d.ts +0 -4
  366. package/declarations/reactive/-private/kind/resource-field.d.ts +0 -4
  367. package/declarations/reactive/-private/kind/schema-array-field.d.ts +0 -4
  368. package/declarations/reactive/-private/kind/schema-object-field.d.ts +0 -4
  369. package/declarations/reactive/-private/record.d.ts +0 -83
  370. package/declarations/reactive/-private/schema.d.ts +0 -326
  371. package/declarations/reactive/-private/symbols.d.ts +0 -5
  372. package/declarations/reactive/-private.d.ts +0 -2
  373. package/declarations/reactive.d.ts +0 -286
  374. package/declarations/request/-private/context.d.ts +0 -39
  375. package/declarations/request/-private/debug.d.ts +0 -4
  376. package/declarations/request/-private/fetch.d.ts +0 -33
  377. package/declarations/request/-private/future.d.ts +0 -7
  378. package/declarations/request/-private/manager.d.ts +0 -158
  379. package/declarations/request/-private/promise-cache.d.ts +0 -28
  380. package/declarations/request/-private/types.d.ts +0 -234
  381. package/declarations/request/-private/utils.d.ts +0 -57
  382. package/declarations/request.d.ts +0 -52
  383. package/declarations/signals/-leaked.d.ts +0 -2
  384. package/declarations/signals/-private.d.ts +0 -6
  385. package/declarations/signals/promise-state.d.ts +0 -264
  386. package/declarations/signals/reactivity/configure.d.ts +0 -138
  387. package/declarations/signals/reactivity/internal.d.ts +0 -154
  388. package/declarations/signals/reactivity/signal.d.ts +0 -56
  389. package/declarations/signals/request-state.d.ts +0 -372
  390. package/declarations/signals/request-subscription.d.ts +0 -177
  391. package/declarations/store/-private/cache-handler/handler.d.ts +0 -56
  392. package/declarations/store/-private/cache-handler/types.d.ts +0 -84
  393. package/declarations/store/-private/cache-handler/utils.d.ts +0 -31
  394. package/declarations/store/-private/caches/instance-cache.d.ts +0 -58
  395. package/declarations/store/-private/caches/resource-utils.d.ts +0 -9
  396. package/declarations/store/-private/debug/utils.d.ts +0 -7
  397. package/declarations/store/-private/default-cache-policy.d.ts +0 -387
  398. package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -34
  399. package/declarations/store/-private/managers/cache-key-manager.d.ts +0 -304
  400. package/declarations/store/-private/managers/cache-manager.d.ts +0 -367
  401. package/declarations/store/-private/managers/notification-manager.d.ts +0 -83
  402. package/declarations/store/-private/managers/record-array-manager.d.ts +0 -100
  403. package/declarations/store/-private/network/request-cache.d.ts +0 -103
  404. package/declarations/store/-private/record-arrays/-utils.d.ts +0 -80
  405. package/declarations/store/-private/record-arrays/legacy-live-array.d.ts +0 -81
  406. package/declarations/store/-private/record-arrays/legacy-many-array.d.ts +0 -133
  407. package/declarations/store/-private/record-arrays/legacy-query.d.ts +0 -81
  408. package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -3
  409. package/declarations/store/-private/record-arrays/resource-array.d.ts +0 -67
  410. package/declarations/store/-private/store-service.d.ts +0 -874
  411. package/declarations/store/-private/utils/coerce-id.d.ts +0 -4
  412. package/declarations/store/-private/utils/construct-resource.d.ts +0 -6
  413. package/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
  414. package/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
  415. package/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
  416. package/declarations/store/-private.d.ts +0 -24
  417. package/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -90
  418. package/declarations/store/-types/q/identifier.d.ts +0 -23
  419. package/declarations/store/-types/q/record-instance.d.ts +0 -22
  420. package/declarations/store/-types/q/store.d.ts +0 -31
  421. package/declarations/store/deprecated/-private.d.ts +0 -223
  422. package/declarations/store/deprecated/store.d.ts +0 -784
  423. package/declarations/store.d.ts +0 -2
  424. package/declarations/types/-private.d.ts +0 -22
  425. package/declarations/types/cache/aliases.d.ts +0 -1
  426. package/declarations/types/cache/change.d.ts +0 -6
  427. package/declarations/types/cache/mutations.d.ts +0 -38
  428. package/declarations/types/cache/operations.d.ts +0 -168
  429. package/declarations/types/cache/relationship.d.ts +0 -13
  430. package/declarations/types/cache.d.ts +0 -429
  431. package/declarations/types/graph.d.ts +0 -47
  432. package/declarations/types/identifier.d.ts +0 -86
  433. package/declarations/types/json/raw.d.ts +0 -6
  434. package/declarations/types/params.d.ts +0 -8
  435. package/declarations/types/record.d.ts +0 -269
  436. package/declarations/types/request.d.ts +0 -367
  437. package/declarations/types/runtime.d.ts +0 -14
  438. package/declarations/types/schema/concepts.d.ts +0 -23
  439. package/declarations/types/schema/fields.d.ts +0 -2200
  440. package/declarations/types/schema/fields.type-test.d.ts +0 -1
  441. package/declarations/types/schema/schema-service.d.ts +0 -380
  442. package/declarations/types/spec/document.d.ts +0 -67
  443. package/declarations/types/spec/error.d.ts +0 -18
  444. package/declarations/types/spec/json-api-raw.d.ts +0 -139
  445. package/declarations/types/symbols.d.ts +0 -78
  446. package/declarations/types/utils.d.ts +0 -5
  447. package/declarations/types.d.ts +0 -11
  448. package/declarations/utils/string.d.ts +0 -47
  449. package/dist/configure-DPUFCemT.js +0 -1940
  450. package/dist/default-cache-policy-D7_u4YRH.js +0 -572
  451. package/dist/future-BKkJJkj7.js +0 -678
  452. package/dist/index-CQP2NSqg.js +0 -9982
  453. package/dist/symbols-3C1OkYtZ.js +0 -39
  454. package/dist/unpkg/dev/-leaked-Co0EI6Go.js +0 -1939
  455. package/dist/unpkg/dev/-private-sql1_mdx.js +0 -39
  456. package/dist/unpkg/dev/future-DFfOzSoe.js +0 -672
  457. package/dist/unpkg/dev/index-BzcBOnw9.js +0 -9392
  458. package/dist/unpkg/dev/runtime-E1M51_-O.js +0 -135
  459. package/dist/unpkg/dev-deprecated/-leaked-DjMeRqdU.js +0 -1939
  460. package/dist/unpkg/dev-deprecated/-private-3C1OkYtZ.js +0 -39
  461. package/dist/unpkg/dev-deprecated/future-DFfOzSoe.js +0 -672
  462. package/dist/unpkg/dev-deprecated/index-6TnTv-WG.js +0 -10007
  463. package/dist/unpkg/dev-deprecated/runtime-DAu5b0IR.js +0 -135
  464. package/dist/unpkg/prod/-leaked-DUONXQDB.js +0 -1676
  465. package/dist/unpkg/prod/-private-sql1_mdx.js +0 -39
  466. package/dist/unpkg/prod/handler-EU_8ncB2.js +0 -1619
  467. package/dist/unpkg/prod/promise-cache-DIT8Ypjq.js +0 -19
  468. package/dist/unpkg/prod/request-BrJSCG6r.js +0 -421
  469. package/dist/unpkg/prod/schema-BSkHyoWz.js +0 -5219
  470. package/dist/unpkg/prod-deprecated/-leaked-DRNv9VIX.js +0 -1676
  471. package/dist/unpkg/prod-deprecated/-private-3C1OkYtZ.js +0 -39
  472. package/dist/unpkg/prod-deprecated/handler-CCIu4sQ3.js +0 -334
  473. package/dist/unpkg/prod-deprecated/hooks-Dv4Np0MY.js +0 -26
  474. package/dist/unpkg/prod-deprecated/promise-cache-DIT8Ypjq.js +0 -19
  475. package/dist/unpkg/prod-deprecated/request-BrJSCG6r.js +0 -421
  476. package/dist/unpkg/prod-deprecated/schema-CJcjHv0E.js +0 -6939
@@ -1,505 +1,511 @@
1
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
-
3
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
-
5
- /**
6
- * Options signature for Legacy Attributes.
7
- */
8
-
9
- /**
10
- * A generic "field" that can be used to define
11
- * primitive value fields.
12
- *
13
- * Replaces "attribute" for primitive value fields.
14
- * Can also be used to eject from deep-tracking of
15
- * objects or arrays.
16
- *
17
- * A major difference between "field" and "attribute"
18
- * is that "type" points to a legacy transform on
19
- * "attribute" that a serializer *might* use, while
20
- * "type" points to a new-style transform on "field"
21
- * that a record implmentation *must* use.
22
- *
23
- * @public
24
- */
25
-
26
- /**
27
- * A field that can be used to alias one key to another
28
- * key present in the cache version of the resource.
29
- *
30
- * Unlike DerivedField, an AliasField may write to its
31
- * source when a record is in an editable mode.
32
- *
33
- * ~~AliasFields may utilize a transform, specified by type,
34
- * to pre/post process the raw data for the field.~~ (not yet implemented)
35
- *
36
- * An AliasField may also specify a `kind` via options.
37
- * `kind` may be any other valid field kind other than
38
- *
39
- * - `@hash`
40
- * - `@id`
41
- * - `@local`
42
- * - `derived`
43
- *
44
- * This allows an AliasField to rename any field in the cache.
45
- *
46
- * Alias fields are generally intended to be used to support migrating
47
- * between different schemas, though there are times where they are useful
48
- * as a form of advanced derivation when used with a transform. For instance,
49
- * an AliasField could be used to expose both a string and a Date version of the
50
- * same field, with both being capable of being written to.
51
- *
52
- * @public
53
- */
54
-
55
- /**
56
- * A field that can be used to alias one key to another
57
- * key present in the cache version of the resource.
58
- *
59
- * Unlike DerivedField, an AliasField may write to its
60
- * source when a record is in an editable mode.
61
- *
62
- * ~~AliasFields may utilize a transform, specified by type,
63
- * to pre/post process the raw data for the field.~~ (not yet implemented)
64
- *
65
- * An AliasField may also specify a `kind` via options.
66
- * `kind` may be any other valid field kind other than
67
- *
68
- * - `@hash`
69
- * - `@id`
70
- * - `@local`
71
- * - `derived`
72
- *
73
- * This allows an AliasField to rename any field in the cache.
74
- *
75
- * Alias fields are generally intended to be used to support migrating
76
- * between different schemas, though there are times where they are useful
77
- * as a form of advanced derivation when used with a transform. For instance,
78
- * an AliasField could be used to expose both a string and a Date version of the
79
- * same field, with both being capable of being written to.
80
- *
81
- * @public
82
- */
83
-
84
- /**
85
- * A field that can be used to alias one key to another
86
- * key present in the cache version of the resource.
87
- *
88
- * Unlike DerivedField, an AliasField may write to its
89
- * source when a record is in an editable mode.
90
- *
91
- * AliasFields may utilize a transform, specified by type,
92
- * to pre/post process the field.
93
- *
94
- * An AliasField may also specify a `kind` via options.
95
- * `kind` may be any other valid field kind other than
96
- *
97
- * - `@hash`
98
- * - `@id`
99
- * - `@local`
100
- * - `derived`
101
- *
102
- * This allows an AliasField to rename any field in the cache.
103
- *
104
- * Alias fields are generally intended to be used to support migrating
105
- * between different schemas, though there are times where they are useful
106
- * as a form of advanced derivation when used with a transform. For instance,
107
- * an AliasField could be used to expose both a string and a Date version of the
108
- * same field, with both being capable of being written to.
109
- *
110
- * @public
111
- */
112
-
113
- /**
114
- * Represents a field whose value is the primary
115
- * key of the resource.
116
- *
117
- * This allows any field to serve as the primary
118
- * key while still being able to drive identity
119
- * needs within the system.
120
- *
121
- * This is useful for resources that use for instance
122
- * 'uuid', 'urn' or 'entityUrn' or 'primaryKey' as their
123
- * primary key field instead of 'id'.
124
- *
125
- * @public
126
- */
127
-
128
- /**
129
- * Represents a specialized field whose computed value
130
- * will be used as the primary key of a schema-object
131
- * for serializability and comparison purposes.
132
- *
133
- * This field functions similarly to derived fields in that
134
- * it is non-settable, derived state but differs in that
135
- * it is only able to compute off of cache state and is given
136
- * no access to a record instance.
137
- *
138
- * This means that if a hashing function wants to compute its value
139
- * taking into account transformations and derivations it must
140
- * perform those itself.
141
- *
142
- * A schema-array can declare its "key" value to be `@hash` if
143
- * the schema-objects it contains have such a field.
144
- *
145
- * Only one hash field is permittable per schema-object, and
146
- * it should be placed in the `ResourceSchema`'s `@id` field
147
- * in place of an `IdentityField`.
148
- *
149
- * @public
150
- */
151
-
152
- /**
153
- * Represents a field whose value is a local
154
- * value that is not stored in the cache, nor
155
- * is it sent to the server.
156
- *
157
- * Local fields can be written to, and their
158
- * value is both memoized and reactive (though
159
- * not deep-tracked).
160
- *
161
- * Because their state is not derived from the cache
162
- * data or the server, they represent a divorced
163
- * uncanonical source of state.
164
- *
165
- * For this reason Local fields should be used sparingly.
166
- *
167
- * Currently, while we document this feature here,
168
- * only allow our own ReactiveResource default fields to
169
- * utilize them and the feature should be considered private.
170
- *
171
- * Example use cases that drove the creation of local
172
- * fields are states like `isDestroying` and `isDestroyed`
173
- * which are specific to a record instance but not
174
- * stored in the cache. We wanted to be able to drive
175
- * these fields from schema the same as all other fields.
176
- *
177
- * Don't make us regret this decision.
178
- *
179
- * @public
180
- */
181
-
182
- /**
183
- * Represents a field whose value is an object
184
- * with keys pointing to values that are primitive
185
- * values.
186
- *
187
- * If values of the keys are not primitives, or
188
- * if the key/value pairs have well-defined shape,
189
- * use 'schema-object' instead.
190
- *
191
- * @public
192
- */
193
-
194
- /**
195
- * Represents a field whose value is an object
196
- * with a well-defined structure described by
197
- * a schema-object (a non-resource schema).
198
- *
199
- * If the object's structure is not well-defined,
200
- * use 'object' instead.
201
- *
202
- * By default, a SchemaObject within
203
- *
204
- * @public
205
- */
206
-
207
- /**
208
- * Represents a field whose value is an array
209
- * of primitive values.
210
- *
211
- * If the array's elements are not primitive
212
- * values, use 'schema-array' instead.
213
- *
214
- * @public
215
- */
216
-
217
- /**
218
- * Represents a field whose value is an array
219
- * of objects with a well-defined structure
220
- * described by a non-resource schema.
221
- *
222
- * If the array's elements are not well-defined,
223
- * use 'array' instead.
224
- *
225
- * @public
226
- */
227
-
228
- /**
229
- * Represents a field whose value is derived
230
- * from other fields in the schema.
231
- *
232
- * The value is read-only, and is not stored
233
- * in the cache, nor is it sent to the server.
234
- *
235
- * Usage of derived fields should be minimized
236
- * to scenarios where the derivation is known
237
- * to be safe. For instance, derivations that
238
- * required fields that are not always loaded
239
- * or that require access to related resources
240
- * that may not be loaded should be avoided.
241
- *
242
- * @public
243
- */
244
-
245
- /**
246
- * Represents a field that is a reference to
247
- * another resource.
248
- *
249
- * SUPPORT FOR THIS FEATURE IS NOT YET IMPLEMENTED
250
- * BY ReactiveResource
251
- *
252
- * @public
253
- */
254
-
255
- /**
256
- * Represents a field that is a reference to
257
- * a collection of other resources, potentially
258
- * paginate.
259
- *
260
- * SUPPORT FOR THIS FEATURE IS NOT YET IMPLEMENTED
261
- * BY ReactiveResource
262
- *
263
- * @public
264
- */
265
-
266
- /**
267
- * > [!CAUTION]
268
- * > This Field is LEGACY
269
- * > It cannot be used with PolarisMode
270
- *
271
- * A generic "field" that can be used to define
272
- * primitive value fields.
273
- *
274
- * If the field points to an object or array,
275
- * it will not be deep-tracked.
276
- *
277
- * Transforms when defined are legacy transforms
278
- * that a serializer *might* use, but their usage
279
- * is not guaranteed.
280
- *
281
- * @public
282
- */
283
-
284
- /**
285
- * > [!CAUTION]
286
- * > This Field is LEGACY
287
- *
288
- * Represents a field that is a reference to
289
- * another resource.
290
- *
291
- * This is the legacy version of the `ResourceField`.
292
- *
293
- * @public
294
- */
295
-
296
- /**
297
- * > [!CAUTION]
298
- * > This Field is LEGACY
299
- *
300
- * Represents a field that is a reference to
301
- * another resource.
302
- *
303
- * This is the legacy version of the `ResourceField`.
304
- *
305
- * @public
306
- */
307
-
308
- /**
309
- * > [!CAUTION]
310
- * > This Field is LEGACY
311
- *
312
- * Represents a field that is a reference to
313
- * a collection of other resources.
314
- *
315
- * This is the legacy version of the `CollectionField`.
316
- *
317
- * @public
318
- */
319
-
320
- /**
321
- * > [!CAUTION]
322
- * > This Field is LEGACY
323
- *
324
- * Represents a field that is a reference to
325
- * a collection of other resources.
326
- *
327
- * This is the legacy version of the `CollectionField`.
328
- *
329
- * @public
330
- */
331
-
332
- /**
333
- * A union of all possible LegacyMode field schemas.
334
- *
335
- * Available field schemas are:
336
- *
337
- * - {@link GenericField}
338
- * - {@link LegacyAliasField}
339
- * - {@link LocalField}
340
- * - {@link ObjectField}
341
- * - {@link SchemaObjectField}
342
- * - {@link ArrayField}
343
- * - {@link SchemaArrayField}
344
- * - {@link DerivedField}
345
- * - {@link ResourceField | ResourceField (not yet implemented)}
346
- * - {@link CollectionField | CollectionField (not yet implemented)}
347
- * - {@link LegacyAttributeField}
348
- * - {@link LegacyBelongsToField}
349
- * - {@link LegacyHasManyField}
350
- *
351
- * @public
352
- */
353
-
354
- /**
355
- * A union of all possible PolarisMode field schemas.
356
- *
357
- * Available field schemas are:
358
- *
359
- * - {@link GenericField}
360
- * - {@link PolarisAliasField}
361
- * - {@link LocalField}
362
- * - {@link ObjectField}
363
- * - {@link SchemaObjectField}
364
- * - {@link ArrayField}
365
- * - {@link SchemaArrayField}
366
- * - {@link DerivedField}
367
- * - {@link ResourceField | ResourceField (not yet implemented)}
368
- * - {@link CollectionField | CollectionField (not yet implemented)}
369
- * - {@link LinksModeBelongsToField}
370
- * - {@link LinksModeHasManyField}
371
- *
372
- * @public
373
- */
374
-
375
- /**
376
- * A union of all possible LegacyMode and PolarisMode
377
- * field schemas.
378
- *
379
- * You likely will want to use PolarisModeFieldSchema,
380
- * LegacyModeFieldSchema, or ObjectFieldSchema instead
381
- * as appropriate as they are more specific and will
382
- * provide better guidance around what is valid.
383
- *
384
- * @public
385
- */
386
-
387
- /**
388
- * A union of all possible LegacyMode and PolarisMode
389
- * field schemas that represent data that could be in
390
- * the cache.
391
- *
392
- * In other words this will not include types like alias
393
- * fields, local fields, or derived fields.
394
- *
395
- * @public
396
- */
397
-
398
- /**
399
- * A union of all possible field schemas that can be
400
- * used in an ObjectSchema.
401
- *
402
- * @public
403
- */
404
-
405
- /**
406
- * Represents a schema for a primary resource in PolarisMode.
407
- *
408
- * Primary resources are objects with a unique identity of their
409
- * own which may allow them to appear in relationships, or in multiple
410
- * response documents.
411
- *
412
- * @public
413
- */
414
-
415
- /**
416
- * Represents a schema for a primary resource in LegacyMode
417
- *
418
- * Primary resources are objects with a unique identity of their
419
- * own which may allow them to appear in relationships, or in multiple
420
- * response documents.
421
- *
422
- * @public
423
- */
424
-
425
- /**
426
- * A type which represents a valid JSON schema
427
- * definition for either a PolarisMode or a
428
- * LegacyMode resource.
429
- *
430
- * Note, this is separate from the type returned
431
- * by the SchemaService which provides fields as a Map
432
- * instead of as an Array.
433
- *
434
- * @public
435
- */
436
-
437
- /**
438
- * Represents a schema for an object that is not
439
- * a primary resource (has no unique identity of its own).
440
- *
441
- * ObjectSchemas may not currently contain relationships.
442
- *
443
- * @public
444
- */
445
-
446
- /**
447
- * A trait for use on a PolarisMode record
448
- */
449
-
450
- /**
451
- * A trait for use on a LegacyMode record
452
- */
453
-
454
- /**
455
- * A union of
456
- * - {@link LegacyTrait}
457
- * - {@link PolarisTrait}
458
- */
459
-
460
- /**
461
- * A no-op type utility that enables type-checking resource schema
462
- * definitions.
463
- *
464
- * Will return the passed in schema.
465
- *
466
- * This will not validate relationship inverses or related types,
467
- * as doing so would require a full schema graph to be passed in
468
- * and no cycles in the graph to be present.
469
- *
470
- * @public
471
- */
1
+ //#region src/types/schema/fields.ts
2
+ /**
3
+ * Options signature for Legacy Attributes.
4
+ */
5
+ /**
6
+ * A generic "field" that can be used to define
7
+ * primitive value fields.
8
+ *
9
+ * Replaces "attribute" for primitive value fields.
10
+ * Can also be used to eject from deep-tracking of
11
+ * objects or arrays.
12
+ *
13
+ * A major difference between "field" and "attribute"
14
+ * is that "type" points to a legacy transform on
15
+ * "attribute" that a serializer *might* use, while
16
+ * "type" points to a new-style transform on "field"
17
+ * that a record implmentation *must* use.
18
+ *
19
+ * @public
20
+ */
21
+ /**
22
+ * A field that can be used to alias one key to another
23
+ * key present in the cache version of the resource.
24
+ *
25
+ * Unlike DerivedField, an AliasField may write to its
26
+ * source when a record is in an editable mode.
27
+ *
28
+ * ~~AliasFields may utilize a transform, specified by type,
29
+ * to pre/post process the raw data for the field.~~ (not yet implemented)
30
+ *
31
+ * An AliasField may also specify a `kind` via options.
32
+ * `kind` may be any other valid field kind other than
33
+ *
34
+ * - `@hash`
35
+ * - `@id`
36
+ * - `@local`
37
+ * - `derived`
38
+ *
39
+ * This allows an AliasField to rename any field in the cache.
40
+ *
41
+ * Alias fields are generally intended to be used to support migrating
42
+ * between different schemas, though there are times where they are useful
43
+ * as a form of advanced derivation when used with a transform. For instance,
44
+ * an AliasField could be used to expose both a string and a Date version of the
45
+ * same field, with both being capable of being written to.
46
+ *
47
+ * @public
48
+ */
49
+ /**
50
+ * A field that can be used to alias one key to another
51
+ * key present in the cache version of the resource.
52
+ *
53
+ * Unlike DerivedField, an AliasField may write to its
54
+ * source when a record is in an editable mode.
55
+ *
56
+ * ~~AliasFields may utilize a transform, specified by type,
57
+ * to pre/post process the raw data for the field.~~ (not yet implemented)
58
+ *
59
+ * An AliasField may also specify a `kind` via options.
60
+ * `kind` may be any other valid field kind other than
61
+ *
62
+ * - `@hash`
63
+ * - `@id`
64
+ * - `@local`
65
+ * - `derived`
66
+ *
67
+ * This allows an AliasField to rename any field in the cache.
68
+ *
69
+ * Alias fields are generally intended to be used to support migrating
70
+ * between different schemas, though there are times where they are useful
71
+ * as a form of advanced derivation when used with a transform. For instance,
72
+ * an AliasField could be used to expose both a string and a Date version of the
73
+ * same field, with both being capable of being written to.
74
+ *
75
+ * @public
76
+ */
77
+ /**
78
+ * A field that can be used to alias one key to another
79
+ * key present in the cache version of the resource.
80
+ *
81
+ * Unlike DerivedField, an AliasField may write to its
82
+ * source when a record is in an editable mode.
83
+ *
84
+ * AliasFields may utilize a transform, specified by type,
85
+ * to pre/post process the field.
86
+ *
87
+ * An AliasField may also specify a `kind` via options.
88
+ * `kind` may be any other valid field kind other than
89
+ *
90
+ * - `@hash`
91
+ * - `@id`
92
+ * - `@local`
93
+ * - `derived`
94
+ *
95
+ * This allows an AliasField to rename any field in the cache.
96
+ *
97
+ * Alias fields are generally intended to be used to support migrating
98
+ * between different schemas, though there are times where they are useful
99
+ * as a form of advanced derivation when used with a transform. For instance,
100
+ * an AliasField could be used to expose both a string and a Date version of the
101
+ * same field, with both being capable of being written to.
102
+ *
103
+ * @public
104
+ */
105
+ /**
106
+ * Represents a field whose value is the primary
107
+ * key of the resource.
108
+ *
109
+ * This allows any field to serve as the primary
110
+ * key while still being able to drive identity
111
+ * needs within the system.
112
+ *
113
+ * This is useful for resources that use for instance
114
+ * 'uuid', 'urn' or 'entityUrn' or 'primaryKey' as their
115
+ * primary key field instead of 'id'.
116
+ *
117
+ * @public
118
+ */
119
+ /**
120
+ * Represents a specialized field whose computed value
121
+ * will be used as the primary key of a schema-object
122
+ * for serializability and comparison purposes.
123
+ *
124
+ * This field functions similarly to derived fields in that
125
+ * it is non-settable, derived state but differs in that
126
+ * it is only able to compute off of cache state and is given
127
+ * no access to a record instance.
128
+ *
129
+ * This means that if a hashing function wants to compute its value
130
+ * taking into account transformations and derivations it must
131
+ * perform those itself.
132
+ *
133
+ * A schema-array can declare its "key" value to be `@hash` if
134
+ * the schema-objects it contains have such a field.
135
+ *
136
+ * Only one hash field is permittable per schema-object, and
137
+ * it should be placed in the `ResourceSchema`'s `@id` field
138
+ * in place of an `IdentityField`.
139
+ *
140
+ * @public
141
+ */
142
+ /**
143
+ * Represents a field whose value is a local
144
+ * value that is not stored in the cache, nor
145
+ * is it sent to the server.
146
+ *
147
+ * Local fields can be written to, and their
148
+ * value is both memoized and reactive (though
149
+ * not deep-tracked).
150
+ *
151
+ * Because their state is not derived from the cache
152
+ * data or the server, they represent a divorced
153
+ * uncanonical source of state.
154
+ *
155
+ * For this reason Local fields should be used sparingly.
156
+ *
157
+ * Currently, while we document this feature here,
158
+ * only allow our own ReactiveResource default fields to
159
+ * utilize them and the feature should be considered private.
160
+ *
161
+ * Example use cases that drove the creation of local
162
+ * fields are states like `isDestroying` and `isDestroyed`
163
+ * which are specific to a record instance but not
164
+ * stored in the cache. We wanted to be able to drive
165
+ * these fields from schema the same as all other fields.
166
+ *
167
+ * Don't make us regret this decision.
168
+ *
169
+ * @public
170
+ */
171
+ /**
172
+ * Represents a field whose value is an object
173
+ * with keys pointing to values that are primitive
174
+ * values.
175
+ *
176
+ * If values of the keys are not primitives, or
177
+ * if the key/value pairs have well-defined shape,
178
+ * use 'schema-object' instead.
179
+ *
180
+ * @public
181
+ */
182
+ /**
183
+ * Represents a field whose value is an object
184
+ * with a well-defined structure described by
185
+ * a schema-object (a non-resource schema).
186
+ *
187
+ * If the object's structure is not well-defined,
188
+ * use 'object' instead.
189
+ *
190
+ * By default, a SchemaObject within
191
+ *
192
+ * @public
193
+ */
194
+ /**
195
+ * Represents a field whose value is an array
196
+ * of primitive values.
197
+ *
198
+ * If the array's elements are not primitive
199
+ * values, use 'schema-array' instead.
200
+ *
201
+ * @public
202
+ */
203
+ /**
204
+ * Represents a field whose value is an array
205
+ * of objects with a well-defined structure
206
+ * described by a non-resource schema.
207
+ *
208
+ * If the array's elements are not well-defined,
209
+ * use 'array' instead.
210
+ *
211
+ * @public
212
+ */
213
+ /**
214
+ * Represents a field whose value is derived
215
+ * from other fields in the schema.
216
+ *
217
+ * The value is read-only, and is not stored
218
+ * in the cache, nor is it sent to the server.
219
+ *
220
+ * Usage of derived fields should be minimized
221
+ * to scenarios where the derivation is known
222
+ * to be safe. For instance, derivations that
223
+ * required fields that are not always loaded
224
+ * or that require access to related resources
225
+ * that may not be loaded should be avoided.
226
+ *
227
+ * @public
228
+ */
229
+ /**
230
+ * Represents a field that is a reference to
231
+ * another resource.
232
+ *
233
+ * SUPPORT FOR THIS FEATURE IS NOT YET IMPLEMENTED
234
+ * BY ReactiveResource
235
+ *
236
+ * @public
237
+ */
238
+ /**
239
+ * Represents a field that is a reference to
240
+ * a collection of other resources, potentially
241
+ * paginate.
242
+ *
243
+ * SUPPORT FOR THIS FEATURE IS NOT YET IMPLEMENTED
244
+ * BY ReactiveResource
245
+ *
246
+ * @public
247
+ */
248
+ /**
249
+ * > [!CAUTION]
250
+ * > This Field is LEGACY
251
+ * > It cannot be used with PolarisMode
252
+ *
253
+ * A generic "field" that can be used to define
254
+ * primitive value fields.
255
+ *
256
+ * If the field points to an object or array,
257
+ * it will not be deep-tracked.
258
+ *
259
+ * Transforms when defined are legacy transforms
260
+ * that a serializer *might* use, but their usage
261
+ * is not guaranteed.
262
+ *
263
+ * @public
264
+ */
265
+ /**
266
+ * > [!CAUTION]
267
+ * > This Field is LEGACY
268
+ *
269
+ * Represents a field that is a reference to
270
+ * another resource.
271
+ *
272
+ * This is the legacy version of the `ResourceField`.
273
+ *
274
+ * @public
275
+ */
276
+ /**
277
+ * > [!CAUTION]
278
+ * > This Field is LEGACY
279
+ *
280
+ * Represents a field that is a reference to
281
+ * another resource.
282
+ *
283
+ * This is the legacy version of the `ResourceField`.
284
+ *
285
+ * @public
286
+ */
287
+ /**
288
+ * > [!CAUTION]
289
+ * > This Field is LEGACY
290
+ *
291
+ * Represents a field that is a reference to
292
+ * a collection of other resources.
293
+ *
294
+ * This is the legacy version of the `CollectionField`.
295
+ *
296
+ * @public
297
+ */
298
+ /**
299
+ * > [!CAUTION]
300
+ * > This Field is LEGACY
301
+ *
302
+ * Represents a field that is a reference to
303
+ * a collection of other resources.
304
+ *
305
+ * This is the legacy version of the `CollectionField`.
306
+ *
307
+ * @public
308
+ */
309
+ /**
310
+ * A union of all possible LegacyMode field schemas.
311
+ *
312
+ * Available field schemas are:
313
+ *
314
+ * - {@link GenericField}
315
+ * - {@link LegacyAliasField}
316
+ * - {@link LocalField}
317
+ * - {@link ObjectField}
318
+ * - {@link SchemaObjectField}
319
+ * - {@link ArrayField}
320
+ * - {@link SchemaArrayField}
321
+ * - {@link DerivedField}
322
+ * - {@link ResourceField | ResourceField (not yet implemented)}
323
+ * - {@link CollectionField | CollectionField (not yet implemented)}
324
+ * - {@link LegacyAttributeField}
325
+ * - {@link LegacyBelongsToField}
326
+ * - {@link LegacyHasManyField}
327
+ *
328
+ * @public
329
+ */
330
+ /**
331
+ * A union of all possible PolarisMode field schemas.
332
+ *
333
+ * Available field schemas are:
334
+ *
335
+ * - {@link GenericField}
336
+ * - {@link PolarisAliasField}
337
+ * - {@link LocalField}
338
+ * - {@link ObjectField}
339
+ * - {@link SchemaObjectField}
340
+ * - {@link ArrayField}
341
+ * - {@link SchemaArrayField}
342
+ * - {@link DerivedField}
343
+ * - {@link ResourceField | ResourceField (not yet implemented)}
344
+ * - {@link CollectionField | CollectionField (not yet implemented)}
345
+ * - {@link LinksModeBelongsToField}
346
+ * - {@link LinksModeHasManyField}
347
+ *
348
+ * @public
349
+ */
350
+ /**
351
+ * A union of all possible LegacyMode and PolarisMode
352
+ * field schemas.
353
+ *
354
+ * You likely will want to use PolarisModeFieldSchema,
355
+ * LegacyModeFieldSchema, or ObjectFieldSchema instead
356
+ * as appropriate as they are more specific and will
357
+ * provide better guidance around what is valid.
358
+ *
359
+ * @public
360
+ */
361
+ /**
362
+ * A union of all possible LegacyMode and PolarisMode
363
+ * field schemas that represent data that could be in
364
+ * the cache.
365
+ *
366
+ * In other words this will not include types like alias
367
+ * fields, local fields, or derived fields.
368
+ *
369
+ * @public
370
+ */
371
+ /**
372
+ * A union of all possible field schemas that can be
373
+ * used in an ObjectSchema.
374
+ *
375
+ * @public
376
+ */
377
+ /**
378
+ * Represents a schema for a primary resource in PolarisMode.
379
+ *
380
+ * Primary resources are objects with a unique identity of their
381
+ * own which may allow them to appear in relationships, or in multiple
382
+ * response documents.
383
+ *
384
+ * @public
385
+ */
386
+ /**
387
+ * Represents a schema for a primary resource in LegacyMode
388
+ *
389
+ * Primary resources are objects with a unique identity of their
390
+ * own which may allow them to appear in relationships, or in multiple
391
+ * response documents.
392
+ *
393
+ * @public
394
+ */
395
+ /**
396
+ * A type which represents a valid JSON schema
397
+ * definition for either a PolarisMode or a
398
+ * LegacyMode resource.
399
+ *
400
+ * Note, this is separate from the type returned
401
+ * by the SchemaService which provides fields as a Map
402
+ * instead of as an Array.
403
+ *
404
+ * @public
405
+ */
406
+ /**
407
+ * Represents a schema for an object that is not
408
+ * a primary resource (has no unique identity of its own).
409
+ *
410
+ * ObjectSchemas may not currently contain relationships.
411
+ *
412
+ * @public
413
+ */
414
+ /**
415
+ * A union of {@link ResourceSchema} and {@link ObjectSchema} representing
416
+ * any schema that can be registered with or returned by the SchemaService.
417
+ *
418
+ * @public
419
+ */
420
+ /**
421
+ * A trait for use on a PolarisMode record.
422
+ *
423
+ * Traits are reusable collections of fields that can be composed onto a
424
+ * resource schema, often to describe a polymorphic capability shared by
425
+ * multiple resource types.
426
+ */
427
+ /**
428
+ * A trait for use on a LegacyMode record.
429
+ *
430
+ * Traits are reusable collections of fields that can be composed onto a
431
+ * resource schema, often to describe a polymorphic capability shared by
432
+ * multiple resource types.
433
+ */
434
+ /**
435
+ * A union of
436
+ * - {@link LegacyTrait}
437
+ * - {@link PolarisTrait}
438
+ */
439
+ /**
440
+ * A no-op type utility that enables type-checking resource schema
441
+ * definitions.
442
+ *
443
+ * Will return the passed in schema.
444
+ *
445
+ * This will not validate relationship inverses or related types,
446
+ * as doing so would require a full schema graph to be passed in
447
+ * and no cycles in the graph to be present.
448
+ *
449
+ * @public
450
+ */
472
451
  function resourceSchema(schema) {
473
- return schema;
452
+ return schema;
474
453
  }
475
-
476
- /**
477
- * A no-op type utility that enables type-checking object schema
478
- * definitions.
479
- *
480
- * Will return the passed in schema.
481
- *
482
- * @public
483
- */
454
+ /**
455
+ * A no-op type utility that enables type-checking object schema
456
+ * definitions.
457
+ *
458
+ * Will return the passed in schema.
459
+ *
460
+ * @public
461
+ */
484
462
  function objectSchema(schema) {
485
- return schema;
463
+ return schema;
486
464
  }
487
-
488
465
  /**
489
- * A type utility to narrow a schema to a ResourceSchema
490
- *
491
- * @public
492
- */
466
+ * A type utility to narrow a schema to a ResourceSchema
467
+ *
468
+ * @public
469
+ */
493
470
  function isResourceSchema(schema) {
494
- return schema?.identity?.kind === '@id';
471
+ return schema?.identity?.kind === "@id";
495
472
  }
496
-
497
473
  /**
498
- * A type utility to narrow a schema to LegacyResourceSchema
499
- *
500
- * @public
501
- */
474
+ * A type utility to narrow a schema to LegacyResourceSchema
475
+ *
476
+ * @public
477
+ */
502
478
  function isLegacyResourceSchema(schema) {
503
- return isResourceSchema(schema) && schema.legacy === true;
479
+ return isResourceSchema(schema) && schema.legacy === true;
504
480
  }
505
- export { isLegacyResourceSchema, isResourceSchema, objectSchema, resourceSchema };
481
+ /**
482
+ * A union of all field schemas considered "legacy", i.e. those historically
483
+ * associated with `@warp-drive/legacy/model`'s Attribute, BelongsTo and
484
+ * HasMany fields, including their LinksMode variants.
485
+ *
486
+ * Available field schemas are:
487
+ *
488
+ * - {@link LegacyAttributeField}
489
+ * - {@link LegacyBelongsToField}
490
+ * - {@link LegacyHasManyField}
491
+ * - {@link LinksModeBelongsToField}
492
+ * - {@link LinksModeHasManyField}
493
+ *
494
+ * @public
495
+ */
496
+ /**
497
+ * A union of all legacy relationship field schemas, i.e. {@link LegacyField}
498
+ * excluding {@link LegacyAttributeField}.
499
+ *
500
+ * Available field schemas are:
501
+ *
502
+ * - {@link LegacyBelongsToField}
503
+ * - {@link LegacyHasManyField}
504
+ * - {@link LinksModeBelongsToField}
505
+ * - {@link LinksModeHasManyField}
506
+ *
507
+ * @public
508
+ */
509
+ //#endregion
510
+ export { isLegacyResourceSchema, isResourceSchema, objectSchema, resourceSchema };
511
+ //# sourceMappingURL=fields.js.map