akanjs 2.2.4 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (609) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/base/base.ts +1 -1
  3. package/base/primitiveRegistry.ts +6 -10
  4. package/base/types.ts +1 -4
  5. package/capacitor.base.config.ts +1 -1
  6. package/client/capacitor.ts +1 -1
  7. package/client/cookie.ts +2 -4
  8. package/client/createFont.ts +2 -2
  9. package/client/csrTypes.ts +2 -8
  10. package/client/makePageProto.tsx +4 -10
  11. package/client/router.ts +3 -8
  12. package/client/translator.ts +4 -12
  13. package/common/Logger.ts +1 -4
  14. package/common/formatNumber.ts +2 -5
  15. package/common/hmrPhase.ts +1 -1
  16. package/common/isValidDate.ts +0 -3
  17. package/constant/fieldInfo.ts +3 -3
  18. package/constant/purify.ts +1 -2
  19. package/constant/types.ts +0 -4
  20. package/constant/via.ts +6 -12
  21. package/document/databaseRegistry.ts +0 -8
  22. package/document/into.ts +0 -1
  23. package/fetch/client/fetchClient.ts +1 -6
  24. package/fetch/client/httpClient.ts +1 -2
  25. package/fetch/fetchType/appliedReturn.type.ts +0 -1
  26. package/fetch/fetchType/endpointFetch.type.ts +0 -3
  27. package/fetch/fetchType/sliceFetch.type.ts +0 -8
  28. package/fetch/requestStorage.ts +2 -10
  29. package/package.json +67 -24
  30. package/server/akanApp.ts +2 -5
  31. package/server/akanLib.ts +0 -1
  32. package/server/akanServer.ts +3 -4
  33. package/server/artifact/builderRpc.ts +2 -2
  34. package/server/artifact/ipcTypes.ts +0 -4
  35. package/server/decorators.ts +1 -1
  36. package/server/di/diLifecycle.ts +3 -6
  37. package/server/hmr/clientScript.ts +2 -20
  38. package/server/hmr/devHmrController.ts +0 -4
  39. package/server/processMetricsCollector.ts +1 -1
  40. package/server/resolver/database.resolver.ts +2 -2
  41. package/server/resolver/resolver.contract.fixture.ts +0 -1
  42. package/server/resolver/signal.resolver.ts +2 -10
  43. package/server/routing/apiRouter.ts +2 -4
  44. package/server/rscClient.tsx +1 -7
  45. package/server/rscWorkerHost.ts +11 -33
  46. package/server/ssrFromRscRenderer.tsx +3 -35
  47. package/server/types/react-server-dom-webpack.d.ts +1 -7
  48. package/server/vendor/react-dom-client.ts +1 -1
  49. package/server/vendor/react-dom.ts +2 -3
  50. package/server/vendor/react-jsx-dev-runtime.ts +1 -1
  51. package/server/vendor/react-jsx-runtime.ts +1 -1
  52. package/server/vendor/react-refresh-runtime.ts +2 -2
  53. package/server/vendor/react-server-dom-webpack-client-browser.ts +1 -1
  54. package/server/vendor/react.ts +2 -9
  55. package/server/vendor/scheduler.ts +2 -3
  56. package/server/webRouter.ts +2 -3
  57. package/service/adapt.ts +1 -5
  58. package/service/predefinedAdaptor/cache.adaptor.ts +1 -2
  59. package/service/predefinedAdaptor/database.adaptor.ts +2 -2
  60. package/service/predefinedAdaptor/solidSqlite.ts +1 -2
  61. package/service/predefinedAdaptor/websocket.adaptor.ts +3 -15
  62. package/service/serve.ts +3 -7
  63. package/signal/base.signal.ts +0 -1
  64. package/signal/endpointInfo.ts +0 -7
  65. package/signal/intercept.ts +0 -2
  66. package/signal/middleware.ts +1 -2
  67. package/signal/serverSignal.ts +1 -15
  68. package/signal/signalContext.ts +1 -1
  69. package/signal/signalRegistry.ts +0 -5
  70. package/signal/sliceInfo.ts +0 -3
  71. package/signal/trace.ts +0 -11
  72. package/signal/types.ts +2 -11
  73. package/store/action.ts +3 -5
  74. package/store/stateBuilder.ts +0 -2
  75. package/store/stateInfo.ts +1 -2
  76. package/store/types.ts +1 -1
  77. package/test/playwright.config.base.ts +5 -28
  78. package/test/playwright.pageAgent.ts +1 -1
  79. package/test/sampleOf.ts +1 -1
  80. package/test/testServer.ts +1 -1
  81. package/types/base/base.d.ts +53 -0
  82. package/types/base/baseEnv.d.ts +68 -0
  83. package/types/base/index.d.ts +6 -0
  84. package/types/base/primitiveRegistry.d.ts +134 -0
  85. package/types/base/symbols.d.ts +11 -0
  86. package/types/base/types.d.ts +68 -0
  87. package/types/base/utils.d.ts +4 -0
  88. package/types/base.d.ts +1 -0
  89. package/types/capacitor.base.config.d.ts +3 -0
  90. package/types/client/capacitor.d.ts +233 -0
  91. package/types/client/clientRuntime.d.ts +63 -0
  92. package/types/client/cookie.d.ts +33 -0
  93. package/types/client/createFont.d.ts +6 -0
  94. package/types/client/csrTypes.d.ts +262 -0
  95. package/types/client/decorators.d.ts +7 -0
  96. package/types/client/device.d.ts +41 -0
  97. package/types/client/fetch.d.ts +1 -0
  98. package/types/client/index.d.ts +14 -0
  99. package/types/client/locale.d.ts +5 -0
  100. package/types/client/makePageProto.d.ts +17002 -0
  101. package/types/client/router.d.ts +66 -0
  102. package/types/client/rscNavigation.d.ts +19 -0
  103. package/types/client/storage.d.ts +5 -0
  104. package/types/client/translator.d.ts +18 -0
  105. package/types/client/types.d.ts +145 -0
  106. package/types/client/useClient.d.ts +1 -0
  107. package/types/client.d.ts +1 -0
  108. package/types/common/Logger.d.ts +41 -0
  109. package/types/common/applyMixins.d.ts +3 -0
  110. package/types/common/capitalize.d.ts +2 -0
  111. package/types/common/deepObjectify.d.ts +4 -0
  112. package/types/common/fileUpload.d.ts +28 -0
  113. package/types/common/formatNumber.d.ts +1 -0
  114. package/types/common/formatPhone.d.ts +2 -0
  115. package/types/common/getAllPropertyDescriptors.d.ts +5 -0
  116. package/types/common/hmrPhase.d.ts +6 -0
  117. package/types/common/httpClient.d.ts +20 -0
  118. package/types/common/index.d.ts +29 -0
  119. package/types/common/isDayjs.d.ts +2 -0
  120. package/types/common/isEmail.d.ts +2 -0
  121. package/types/common/isPhoneNumber.d.ts +2 -0
  122. package/types/common/isQueryEqual.d.ts +1 -0
  123. package/types/common/isValidDate.d.ts +2 -0
  124. package/types/common/jwtDecode.d.ts +2 -0
  125. package/types/common/localeConfig.d.ts +11 -0
  126. package/types/common/lowerlize.d.ts +2 -0
  127. package/types/common/mergeVersion.d.ts +10 -0
  128. package/types/common/objectify.d.ts +1 -0
  129. package/types/common/pathGet.d.ts +1 -0
  130. package/types/common/pathSet.d.ts +3 -0
  131. package/types/common/randomPick.d.ts +1 -0
  132. package/types/common/randomPicks.d.ts +1 -0
  133. package/types/common/routeConvention.d.ts +35 -0
  134. package/types/common/sleep.d.ts +2 -0
  135. package/types/common/splitVersion.d.ts +11 -0
  136. package/types/common/subRoute.d.ts +7 -0
  137. package/types/common/types.d.ts +14 -0
  138. package/types/common.d.ts +1 -0
  139. package/types/constant/constantRegistry.d.ts +89 -0
  140. package/types/constant/crystalize.d.ts +4 -0
  141. package/types/constant/deserialize.d.ts +7 -0
  142. package/types/constant/fieldInfo.d.ts +153 -0
  143. package/types/constant/getDefault.d.ts +3 -0
  144. package/types/constant/immerify.d.ts +2 -0
  145. package/types/constant/index.d.ts +10 -0
  146. package/types/constant/purify.d.ts +12 -0
  147. package/types/constant/serialize.d.ts +11 -0
  148. package/types/constant/types.d.ts +77 -0
  149. package/types/constant/via.d.ts +52 -0
  150. package/types/constant.d.ts +1 -0
  151. package/types/dictionary/base.dictionary.d.ts +1 -0
  152. package/types/dictionary/dictInfo.d.ts +206 -0
  153. package/types/dictionary/dictionary.d.ts +11 -0
  154. package/types/dictionary/index.d.ts +4 -0
  155. package/types/dictionary/locale.d.ts +128 -0
  156. package/types/dictionary/trans.d.ts +82 -0
  157. package/types/dictionary.d.ts +1 -0
  158. package/types/document/by.d.ts +20 -0
  159. package/types/document/dataLoader.d.ts +36 -0
  160. package/types/document/database.d.ts +96 -0
  161. package/types/document/databaseRegistry.d.ts +36 -0
  162. package/types/document/documentQuery.d.ts +105 -0
  163. package/types/document/documentSchema.d.ts +33 -0
  164. package/types/document/filterMeta.d.ts +84 -0
  165. package/types/document/index.d.ts +11 -0
  166. package/types/document/into.d.ts +65 -0
  167. package/types/document/loaderInfo.d.ts +35 -0
  168. package/types/document/schema.d.ts +5 -0
  169. package/types/document/types.d.ts +36 -0
  170. package/types/document.d.ts +1 -0
  171. package/types/fetch/client/fetchClient.d.ts +78 -0
  172. package/types/fetch/client/httpClient.d.ts +39 -0
  173. package/types/fetch/client/index.d.ts +3 -0
  174. package/types/fetch/client/wsClient.d.ts +37 -0
  175. package/types/fetch/client.d.ts +1 -0
  176. package/types/fetch/fetchType/appliedReturn.type.d.ts +67 -0
  177. package/types/fetch/fetchType/buildFetch.type.d.ts +11 -0
  178. package/types/fetch/fetchType/clientSignal.type.d.ts +16 -0
  179. package/types/fetch/fetchType/endpointFetch.type.d.ts +29 -0
  180. package/types/fetch/fetchType/index.d.ts +5 -0
  181. package/types/fetch/fetchType/sliceFetch.type.d.ts +76 -0
  182. package/types/fetch/fetchType.d.ts +1 -0
  183. package/types/fetch/index.d.ts +4 -0
  184. package/types/fetch/requestStorage.d.ts +29 -0
  185. package/types/fetch/serializer/fetch.serializer.d.ts +14 -0
  186. package/types/fetch/serializer/index.d.ts +1 -0
  187. package/types/fetch/serializer.d.ts +1 -0
  188. package/types/fetch/types.d.ts +19 -0
  189. package/types/fetch.d.ts +1 -0
  190. package/types/index.d.ts +213 -0
  191. package/types/server/akanApp.d.ts +17 -0
  192. package/types/server/akanAppHeaders.d.ts +1 -0
  193. package/types/server/akanLib.d.ts +33 -0
  194. package/types/server/akanOption.d.ts +15 -0
  195. package/types/server/akanServer.d.ts +47 -0
  196. package/types/server/artifact/builderRpc.d.ts +42 -0
  197. package/types/server/artifact/index.d.ts +6 -0
  198. package/types/server/artifact/ipcTypes.d.ts +73 -0
  199. package/types/server/artifact/manifestTypes.d.ts +16 -0
  200. package/types/server/artifact/routeClientCache.d.ts +45 -0
  201. package/types/server/artifact/routeSeedIndexStore.d.ts +43 -0
  202. package/types/server/artifact/routesManifestStore.d.ts +16 -0
  203. package/types/server/artifact.d.ts +1 -0
  204. package/types/server/decorators.d.ts +6 -0
  205. package/types/server/di/diLifecycle.d.ts +45 -0
  206. package/types/server/di/index.d.ts +4 -0
  207. package/types/server/di/predefinedAdaptor.d.ts +33 -0
  208. package/types/server/di/resolveAdaptorHierarchy.d.ts +21 -0
  209. package/types/server/di/resolveHierarchy.d.ts +11 -0
  210. package/types/server/di/resolveServiceHierarchy.d.ts +13 -0
  211. package/types/server/di/utils.d.ts +14 -0
  212. package/types/server/di.d.ts +1 -0
  213. package/types/server/hmr/changeBatch.d.ts +13 -0
  214. package/types/server/hmr/clientScript.d.ts +1 -0
  215. package/types/server/hmr/devHmrController.d.ts +24 -0
  216. package/types/server/hmr/index.d.ts +4 -0
  217. package/types/server/hmr/wsHub.d.ts +45 -0
  218. package/types/server/hmr.d.ts +1 -0
  219. package/types/server/imageOptimizer.d.ts +12 -0
  220. package/types/server/imageOptimizerError.d.ts +4 -0
  221. package/types/server/index.d.ts +14 -0
  222. package/types/server/lifecycle/shutdownManager.d.ts +13 -0
  223. package/types/server/logging/rotatingLogWriter.d.ts +20 -0
  224. package/types/server/processMetricsCollector.d.ts +10 -0
  225. package/types/server/proxy/akanResponse.d.ts +7 -0
  226. package/types/server/proxy/bunRequestFields.d.ts +1 -0
  227. package/types/server/proxy/hostBasePathWebProxy.d.ts +6 -0
  228. package/types/server/proxy/index.d.ts +6 -0
  229. package/types/server/proxy/localeWebProxy.d.ts +5 -0
  230. package/types/server/proxy/types.d.ts +37 -0
  231. package/types/server/proxy/webProxyRunner.d.ts +7 -0
  232. package/types/server/proxy.d.ts +1 -0
  233. package/types/server/resolver/database.resolver.d.ts +6 -0
  234. package/types/server/resolver/index.d.ts +3 -0
  235. package/types/server/resolver/service.resolver.d.ts +7 -0
  236. package/types/server/resolver/signal.resolver.d.ts +29 -0
  237. package/types/server/resolver.d.ts +1 -0
  238. package/types/server/robots.d.ts +1 -0
  239. package/types/server/routeElementComposer.d.ts +41 -0
  240. package/types/server/routeTreeBuilder.d.ts +28 -0
  241. package/types/server/routing/apiRouter.d.ts +61 -0
  242. package/types/server/rscClient.d.ts +15 -0
  243. package/types/server/rscWorker.d.ts +3 -0
  244. package/types/server/rscWorkerHost.d.ts +83 -0
  245. package/types/server/sitemap.d.ts +13 -0
  246. package/types/server/ssrFromRscRenderer.d.ts +6 -0
  247. package/types/server/ssrTypes.d.ts +47 -0
  248. package/types/server/systemPages.d.ts +27 -0
  249. package/types/server/types/react-server-dom-webpack.d.ts +91 -0
  250. package/types/server/types.d.ts +67 -0
  251. package/types/server/vendor/akanjs-base.d.ts +1 -0
  252. package/types/server/vendor/akanjs-common.d.ts +1 -0
  253. package/types/server/vendor/akanjs-constant.d.ts +1 -0
  254. package/types/server/vendor/akanjs-store.d.ts +1 -0
  255. package/types/server/vendor/react-dom-client.d.ts +3 -0
  256. package/types/server/vendor/react-dom.d.ts +3 -0
  257. package/types/server/vendor/react-jsx-dev-runtime.d.ts +3 -0
  258. package/types/server/vendor/react-jsx-runtime.d.ts +3 -0
  259. package/types/server/vendor/react-refresh-runtime.d.ts +3 -0
  260. package/types/server/vendor/react-server-dom-webpack-client-browser.d.ts +3 -0
  261. package/types/server/vendor/react.d.ts +11 -0
  262. package/types/server/vendor/scheduler.d.ts +3 -0
  263. package/types/server/webRouter.d.ts +44 -0
  264. package/types/server.d.ts +1 -0
  265. package/types/service/adapt.d.ts +15 -0
  266. package/types/service/base.service.d.ts +18 -0
  267. package/types/service/index.d.ts +10 -0
  268. package/types/service/injectInfo.d.ts +102 -0
  269. package/types/service/ipcTypes.d.ts +194 -0
  270. package/types/service/predefinedAdaptor/cache.adaptor.d.ts +46 -0
  271. package/types/service/predefinedAdaptor/compress.adaptor.d.ts +22 -0
  272. package/types/service/predefinedAdaptor/database.adaptor.d.ts +329 -0
  273. package/types/service/predefinedAdaptor/index.d.ts +13 -0
  274. package/types/service/predefinedAdaptor/logging.adaptor.d.ts +20 -0
  275. package/types/service/predefinedAdaptor/queue.adaptor.d.ts +22 -0
  276. package/types/service/predefinedAdaptor/role.adaptor.d.ts +17 -0
  277. package/types/service/predefinedAdaptor/schedule.adaptor.d.ts +60 -0
  278. package/types/service/predefinedAdaptor/solidCache.adaptor.d.ts +25 -0
  279. package/types/service/predefinedAdaptor/solidPubsub.adaptor.d.ts +20 -0
  280. package/types/service/predefinedAdaptor/solidQueue.adaptor.d.ts +19 -0
  281. package/types/service/predefinedAdaptor/solidSqlite.d.ts +24 -0
  282. package/types/service/predefinedAdaptor/sqlitePath.d.ts +9 -0
  283. package/types/service/predefinedAdaptor/storage.adaptor.d.ts +80 -0
  284. package/types/service/predefinedAdaptor/websocket.adaptor.d.ts +49 -0
  285. package/types/service/predefinedAdaptor.d.ts +1 -0
  286. package/types/service/serve.d.ts +31 -0
  287. package/types/service/serviceModule.d.ts +50 -0
  288. package/types/service/serviceRegistry.d.ts +9 -0
  289. package/types/service/types.d.ts +55 -0
  290. package/types/service.d.ts +1 -0
  291. package/types/signal/base.signal.d.ts +41 -0
  292. package/types/signal/endpoint.d.ts +28 -0
  293. package/types/signal/endpointInfo.d.ts +77 -0
  294. package/types/signal/exception.d.ts +54786 -0
  295. package/types/signal/guard.d.ts +10 -0
  296. package/types/signal/guards.d.ts +10 -0
  297. package/types/signal/index.d.ts +19 -0
  298. package/types/signal/intercept.d.ts +17 -0
  299. package/types/signal/internal.d.ts +18 -0
  300. package/types/signal/internalArg.d.ts +31 -0
  301. package/types/signal/internalInfo.d.ts +45 -0
  302. package/types/signal/middleware.d.ts +51 -0
  303. package/types/signal/serializer/fetch.serializer.d.ts +14 -0
  304. package/types/signal/serializer/index.d.ts +1 -0
  305. package/types/signal/serializer.d.ts +1 -0
  306. package/types/signal/serverSignal.d.ts +36 -0
  307. package/types/signal/signalContext.d.ts +96 -0
  308. package/types/signal/signalRegistry.d.ts +49 -0
  309. package/types/signal/slice.d.ts +42 -0
  310. package/types/signal/sliceInfo.d.ts +51 -0
  311. package/types/signal/trace.d.ts +97 -0
  312. package/types/signal/types.d.ts +142 -0
  313. package/types/signal.d.ts +1 -0
  314. package/types/store/action.d.ts +145 -0
  315. package/types/store/baseSt.d.ts +412 -0
  316. package/types/store/hooks.d.ts +1 -0
  317. package/types/store/index.d.ts +8 -0
  318. package/types/store/rootStore.d.ts +22 -0
  319. package/types/store/state.d.ts +91 -0
  320. package/types/store/stateBuilder.d.ts +141 -0
  321. package/types/store/stateInfo.d.ts +23 -0
  322. package/types/store/store.d.ts +36 -0
  323. package/types/store/storeInstance.d.ts +38 -0
  324. package/types/store/storeRegistry.d.ts +13 -0
  325. package/types/store/types.d.ts +42 -0
  326. package/types/store/withSelector.d.ts +42 -0
  327. package/types/store.d.ts +1 -0
  328. package/types/test/index.d.ts +4 -0
  329. package/types/test/playwright.config.base.d.ts +9 -0
  330. package/types/test/playwright.pageAgent.d.ts +12 -0
  331. package/types/test/sample.d.ts +15 -0
  332. package/types/test/sampleOf.d.ts +5 -0
  333. package/types/test/signalTest.preload.d.ts +1 -0
  334. package/types/test/signalTestRuntime.d.ts +29 -0
  335. package/types/test/testServer.d.ts +26 -0
  336. package/types/test.d.ts +1 -0
  337. package/types/ui/BottomSheet.d.ts +13 -0
  338. package/types/ui/Button.d.ts +11 -0
  339. package/types/ui/ClientSide.d.ts +8 -0
  340. package/types/ui/Clipboard.d.ts +7 -0
  341. package/types/ui/Constant/Doc.d.ts +29 -0
  342. package/types/ui/Constant/Mermaid.d.ts +8 -0
  343. package/types/ui/Constant/index.d.ts +6 -0
  344. package/types/ui/Constant/schemaDoc.d.ts +84 -0
  345. package/types/ui/Constant.d.ts +1 -0
  346. package/types/ui/Copy.d.ts +10 -0
  347. package/types/ui/CsrImage.d.ts +18 -0
  348. package/types/ui/Data/CardList.d.ts +36 -0
  349. package/types/ui/Data/Dashboard.d.ts +11 -0
  350. package/types/ui/Data/Insight.d.ts +9 -0
  351. package/types/ui/Data/Item.d.ts +75 -0
  352. package/types/ui/Data/ListContainer.d.ts +49 -0
  353. package/types/ui/Data/Pagination.d.ts +9 -0
  354. package/types/ui/Data/QueryMaker.d.ts +8 -0
  355. package/types/ui/Data/TableList.d.ts +26 -0
  356. package/types/ui/Data/index.d.ts +9 -0
  357. package/types/ui/Data/index_.d.ts +8 -0
  358. package/types/ui/Data.d.ts +1 -0
  359. package/types/ui/DatePicker.d.ts +36 -0
  360. package/types/ui/Dialog/Action.d.ts +5 -0
  361. package/types/ui/Dialog/Close.d.ts +6 -0
  362. package/types/ui/Dialog/Content.d.ts +6 -0
  363. package/types/ui/Dialog/Modal.d.ts +9 -0
  364. package/types/ui/Dialog/Provider.d.ts +11 -0
  365. package/types/ui/Dialog/Title.d.ts +5 -0
  366. package/types/ui/Dialog/Trigger.d.ts +6 -0
  367. package/types/ui/Dialog/context.d.ts +10 -0
  368. package/types/ui/Dialog/index.d.ts +9 -0
  369. package/types/ui/Dialog.d.ts +1 -0
  370. package/types/ui/DragAction.d.ts +24 -0
  371. package/types/ui/DraggableList.d.ts +31 -0
  372. package/types/ui/Dropdown.d.ts +14 -0
  373. package/types/ui/Empty.d.ts +12 -0
  374. package/types/ui/Field.d.ts +411 -0
  375. package/types/ui/FontFace.d.ts +6 -0
  376. package/types/ui/Image.d.ts +49 -0
  377. package/types/ui/InfiniteScroll.d.ts +10 -0
  378. package/types/ui/Input.d.ts +95 -0
  379. package/types/ui/KeyboardAvoiding.d.ts +8 -0
  380. package/types/ui/Layout/BottomAction.d.ts +6 -0
  381. package/types/ui/Layout/BottomInset.d.ts +7 -0
  382. package/types/ui/Layout/BottomTab.d.ts +14 -0
  383. package/types/ui/Layout/Header.d.ts +8 -0
  384. package/types/ui/Layout/LeftSider.d.ts +9 -0
  385. package/types/ui/Layout/Navbar.d.ts +11 -0
  386. package/types/ui/Layout/RightSider.d.ts +10 -0
  387. package/types/ui/Layout/Sider.d.ts +7 -0
  388. package/types/ui/Layout/Template.d.ts +7 -0
  389. package/types/ui/Layout/TopLeftAction.d.ts +6 -0
  390. package/types/ui/Layout/Unit.d.ts +9 -0
  391. package/types/ui/Layout/View.d.ts +8 -0
  392. package/types/ui/Layout/Zone.d.ts +6 -0
  393. package/types/ui/Layout/index.d.ts +14 -0
  394. package/types/ui/Layout.d.ts +1 -0
  395. package/types/ui/Link/Back.d.ts +7 -0
  396. package/types/ui/Link/Close.d.ts +7 -0
  397. package/types/ui/Link/CsrLink.d.ts +2 -0
  398. package/types/ui/Link/Lang.d.ts +8 -0
  399. package/types/ui/Link/SsrLink.d.ts +2 -0
  400. package/types/ui/Link/index.d.ts +10 -0
  401. package/types/ui/Link/types.d.ts +42 -0
  402. package/types/ui/Link.d.ts +1 -0
  403. package/types/ui/Load/Edit.d.ts +4 -0
  404. package/types/ui/Load/Edit_Client.d.ts +27 -0
  405. package/types/ui/Load/Page.d.ts +15 -0
  406. package/types/ui/Load/PageCSR.d.ts +3 -0
  407. package/types/ui/Load/Pagination.d.ts +8 -0
  408. package/types/ui/Load/Units.d.ts +30 -0
  409. package/types/ui/Load/View.d.ts +22 -0
  410. package/types/ui/Load/index.d.ts +8 -0
  411. package/types/ui/Load/index_.d.ts +3 -0
  412. package/types/ui/Load.d.ts +1 -0
  413. package/types/ui/Loading/Area.d.ts +1 -0
  414. package/types/ui/Loading/Button.d.ts +7 -0
  415. package/types/ui/Loading/Input.d.ts +7 -0
  416. package/types/ui/Loading/ProgressBar.d.ts +6 -0
  417. package/types/ui/Loading/Skeleton.d.ts +7 -0
  418. package/types/ui/Loading/Spin.d.ts +7 -0
  419. package/types/ui/Loading/index.d.ts +8 -0
  420. package/types/ui/Loading.d.ts +1 -0
  421. package/types/ui/Menu.d.ts +26 -0
  422. package/types/ui/Modal.d.ts +19 -0
  423. package/types/ui/Model/AdminPanel.d.ts +31 -0
  424. package/types/ui/Model/Edit.d.ts +16 -0
  425. package/types/ui/Model/EditModal.d.ts +52 -0
  426. package/types/ui/Model/EditWrapper.d.ts +13 -0
  427. package/types/ui/Model/LoadInit.d.ts +10 -0
  428. package/types/ui/Model/New.d.ts +16 -0
  429. package/types/ui/Model/NewWrapper.d.ts +13 -0
  430. package/types/ui/Model/NewWrapper_Client.d.ts +13 -0
  431. package/types/ui/Model/Remove.d.ts +13 -0
  432. package/types/ui/Model/RemoveWrapper.d.ts +12 -0
  433. package/types/ui/Model/SureToRemove.d.ts +11 -0
  434. package/types/ui/Model/View.d.ts +19 -0
  435. package/types/ui/Model/ViewEditModal.d.ts +12 -0
  436. package/types/ui/Model/ViewModal.d.ts +14 -0
  437. package/types/ui/Model/ViewWrapper.d.ts +12 -0
  438. package/types/ui/Model/index.d.ts +16 -0
  439. package/types/ui/Model/index_.d.ts +14 -0
  440. package/types/ui/Model.d.ts +1 -0
  441. package/types/ui/More.d.ts +12 -0
  442. package/types/ui/ObjectId.d.ts +5 -0
  443. package/types/ui/Pagination.d.ts +20 -0
  444. package/types/ui/Popconfirm.d.ts +28 -0
  445. package/types/ui/Portal.d.ts +6 -0
  446. package/types/ui/Radio.d.ts +19 -0
  447. package/types/ui/RecentTime.d.ts +12 -0
  448. package/types/ui/Refresh.d.ts +7 -0
  449. package/types/ui/ScreenNavigator.d.ts +18 -0
  450. package/types/ui/Select.d.ts +43 -0
  451. package/types/ui/Signal/Arg.d.ts +78 -0
  452. package/types/ui/Signal/Doc.d.ts +33 -0
  453. package/types/ui/Signal/Listener.d.ts +9 -0
  454. package/types/ui/Signal/Message.d.ts +23 -0
  455. package/types/ui/Signal/Object.d.ts +20 -0
  456. package/types/ui/Signal/PubSub.d.ts +24 -0
  457. package/types/ui/Signal/Request.d.ts +8 -0
  458. package/types/ui/Signal/Response.d.ts +14 -0
  459. package/types/ui/Signal/RestApi.d.ts +40 -0
  460. package/types/ui/Signal/WebSocket.d.ts +11 -0
  461. package/types/ui/Signal/index.d.ts +18 -0
  462. package/types/ui/Signal/makeExample.d.ts +4 -0
  463. package/types/ui/Signal/style.d.ts +15 -0
  464. package/types/ui/Signal.d.ts +1 -0
  465. package/types/ui/System/CSR.d.ts +32 -0
  466. package/types/ui/System/Client.d.ts +47 -0
  467. package/types/ui/System/Common.d.ts +47 -0
  468. package/types/ui/System/DevModeToggle.d.ts +1 -0
  469. package/types/ui/System/Gtag.d.ts +4 -0
  470. package/types/ui/System/Messages.d.ts +1 -0
  471. package/types/ui/System/Reconnect.d.ts +1 -0
  472. package/types/ui/System/Root.d.ts +6 -0
  473. package/types/ui/System/SSR.d.ts +24 -0
  474. package/types/ui/System/SelectLanguage.d.ts +5 -0
  475. package/types/ui/System/ThemeToggle.d.ts +4 -0
  476. package/types/ui/System/index.d.ts +12 -0
  477. package/types/ui/System.d.ts +1 -0
  478. package/types/ui/Tab/Menu.d.ts +12 -0
  479. package/types/ui/Tab/Menus.d.ts +6 -0
  480. package/types/ui/Tab/Panel.d.ts +8 -0
  481. package/types/ui/Tab/Provider.d.ts +10 -0
  482. package/types/ui/Tab/context.d.ts +9 -0
  483. package/types/ui/Tab/index.d.ts +7 -0
  484. package/types/ui/Tab.d.ts +1 -0
  485. package/types/ui/Table.d.ts +41 -0
  486. package/types/ui/ToggleSelect.d.ts +33 -0
  487. package/types/ui/Unauthorized.d.ts +9 -0
  488. package/types/ui/animated.d.ts +5 -0
  489. package/types/ui/fontCss.d.ts +11 -0
  490. package/types/ui/index.d.ts +44 -0
  491. package/types/ui.d.ts +1 -0
  492. package/types/webkit/bootCsr.d.ts +16 -0
  493. package/types/webkit/createRobotPage.d.ts +15 -0
  494. package/types/webkit/createSitemapPage.d.ts +4 -0
  495. package/types/webkit/index.d.ts +17 -0
  496. package/types/webkit/lazy.d.ts +11 -0
  497. package/types/webkit/types.d.ts +7 -0
  498. package/types/webkit/useCamera.d.ts +19 -0
  499. package/types/webkit/useCodepush.d.ts +16 -0
  500. package/types/webkit/useContact.d.ts +11 -0
  501. package/types/webkit/useCsrValues.d.ts +30 -0
  502. package/types/webkit/useDebounce.d.ts +2 -0
  503. package/types/webkit/useFetch.d.ts +18 -0
  504. package/types/webkit/useGeoLocation.d.ts +8 -0
  505. package/types/webkit/useHistory.d.ts +23 -0
  506. package/types/webkit/useInterval.d.ts +2 -0
  507. package/types/webkit/useLocation.d.ts +8 -0
  508. package/types/webkit/usePurchase.d.ts +19 -0
  509. package/types/webkit/usePushNoti.d.ts +7 -0
  510. package/types/webkit/useThrottle.d.ts +2 -0
  511. package/types/webkit.d.ts +1 -0
  512. package/ui/BottomSheet.tsx +1 -1
  513. package/ui/Clipboard.tsx +1 -1
  514. package/ui/CsrImage.tsx +3 -14
  515. package/ui/Data/ListContainer.tsx +1 -1
  516. package/ui/Data/Pagination.tsx +1 -1
  517. package/ui/Data/QueryMaker.tsx +0 -339
  518. package/ui/Data/index.ts +0 -1
  519. package/ui/DatePicker.tsx +1 -95
  520. package/ui/Dialog/Modal.tsx +1 -1
  521. package/ui/DraggableList.tsx +5 -5
  522. package/ui/Field.tsx +2 -3
  523. package/ui/Image.tsx +2 -3
  524. package/ui/InfiniteScroll.tsx +0 -1
  525. package/ui/Input.tsx +1 -8
  526. package/ui/Layout/BottomTab.tsx +2 -2
  527. package/ui/Link/SsrLink.tsx +1 -2
  528. package/ui/Load/Page.tsx +1 -1
  529. package/ui/Load/PageCSR.tsx +0 -1
  530. package/ui/Load/Units.tsx +1 -2
  531. package/ui/Load/View.tsx +1 -2
  532. package/ui/Menu.tsx +5 -8
  533. package/ui/Model/EditModal.tsx +2 -5
  534. package/ui/Popconfirm.tsx +2 -4
  535. package/ui/ScreenNavigator.tsx +2 -3
  536. package/ui/Signal/Message.tsx +2 -3
  537. package/ui/Signal/PubSub.tsx +0 -2
  538. package/ui/Signal/Response.tsx +1 -1
  539. package/ui/Signal/WebSocket.tsx +2 -11
  540. package/ui/System/Client.tsx +7 -41
  541. package/ui/System/Gtag.tsx +2 -5
  542. package/ui/System/Messages.tsx +2 -2
  543. package/ui/System/Reconnect.tsx +5 -6
  544. package/ui/System/Root.tsx +0 -1
  545. package/ui/System/SSR.tsx +1 -7
  546. package/ui/ToggleSelect.tsx +3 -8
  547. package/ui/Unauthorized.tsx +1 -1
  548. package/webkit/bootCsr.tsx +3 -6
  549. package/webkit/lazy.tsx +1 -8
  550. package/webkit/useCamera.tsx +0 -1
  551. package/webkit/useCodepush.tsx +4 -9
  552. package/webkit/useContact.tsx +0 -1
  553. package/webkit/useCsrValues.ts +6 -10
  554. package/webkit/useDebounce.ts +2 -2
  555. package/webkit/usePurchase.tsx +5 -9
  556. package/webkit/usePushNoti.tsx +0 -1
  557. package/base/base.test.ts +0 -135
  558. package/base/baseEnv.test.ts +0 -146
  559. package/base/primitiveRegistry.test.ts +0 -127
  560. package/base/symbols.test.ts +0 -29
  561. package/base/utils.test.ts +0 -30
  562. package/build.ts +0 -318
  563. package/capacitor.base.config.test.ts +0 -83
  564. package/client/client.auth-storage.test.ts +0 -210
  565. package/client/client.decorators.test.ts +0 -74
  566. package/client/client.device.test.ts +0 -181
  567. package/client/client.page.test.tsx +0 -175
  568. package/client/client.pure.test.ts +0 -146
  569. package/client/client.router.test.ts +0 -290
  570. package/common/Logger.test.ts +0 -45
  571. package/common/formatAndValidation.test.ts +0 -61
  572. package/common/httpClient.test.ts +0 -91
  573. package/common/objectPath.test.ts +0 -108
  574. package/common/routeConvention.test.ts +0 -132
  575. package/common/runtimeConfig.test.ts +0 -84
  576. package/constant/constant.test.ts +0 -374
  577. package/dictionary/dictionary.test.ts +0 -352
  578. package/document/document.test.ts +0 -698
  579. package/fetch/fetch.test.ts +0 -838
  580. package/server/akanApp.test.ts +0 -130
  581. package/server/akanServer.test.ts +0 -157
  582. package/server/artifact/routeClientCache.test.ts +0 -265
  583. package/server/artifact/routeSeedIndex.test.ts +0 -56
  584. package/server/artifact/routesManifest.test.ts +0 -64
  585. package/server/di/diLifecycle.contract.test.ts +0 -168
  586. package/server/logging/rotatingLogWriter.test.ts +0 -119
  587. package/server/processMetrics.test.ts +0 -24
  588. package/server/proxy/webProxyRunner.test.ts +0 -66
  589. package/server/resolver/resolver.contract.test.ts +0 -594
  590. package/server/robots.test.ts +0 -16
  591. package/server/routeTree.test.tsx +0 -198
  592. package/server/routing/apiRouter.test.ts +0 -136
  593. package/server/sitemap.test.ts +0 -61
  594. package/server/systemPages.test.tsx +0 -93
  595. package/server/webRouter.test.ts +0 -49
  596. package/service/predefinedAdaptor/compress.adaptor.test.ts +0 -184
  597. package/service/predefinedAdaptor/solidCache.adaptor.test.ts +0 -107
  598. package/service/predefinedAdaptor/solidSqlite.test.ts +0 -457
  599. package/service/service.test.ts +0 -732
  600. package/signal/signal.test.ts +0 -892
  601. package/store/stateBuilder.test.ts +0 -168
  602. package/store/store.test.ts +0 -427
  603. package/tsconfig.json +0 -5
  604. package/ui/Constant/schemaDoc.test.ts +0 -113
  605. package/ui/InfiniteScroll.test.tsx +0 -155
  606. package/ui/System/Common.test.ts +0 -37
  607. package/webkit/bootCsr.test.tsx +0 -153
  608. package/webkit/native.test.tsx +0 -341
  609. package/webkit/webkit.test.tsx +0 -531
@@ -0,0 +1,11 @@
1
+ import type { Assign } from "akanjs/base";
2
+ import type { DatabaseSignal, ServiceSignal } from "akanjs/signal";
3
+ import type { FetchProxy } from "../client.d.ts";
4
+ import type { GetFetchTypeFromEndpoint } from "./endpointFetch.type";
5
+ import type { GetFetchTypeFromSlice } from "./sliceFetch.type";
6
+ type GetFetchType<Signal extends FetchProxy<any> | DatabaseSignal<any, any, any, any> | ServiceSignal<any, any, any>> = Signal extends FetchProxy<infer FetchType> ? FetchType : Signal extends DatabaseSignal<any, infer EndpCls, infer SlceCls, any> ? GetFetchTypeFromEndpoint<EndpCls> & GetFetchTypeFromSlice<SlceCls> : Signal extends ServiceSignal<any, infer EndpCls, any> ? GetFetchTypeFromEndpoint<EndpCls> : unknown;
7
+ export type MergeAllFetchTypes<Signals extends (FetchProxy<any> | DatabaseSignal<any, any, any, any> | ServiceSignal<any, any, any>)[], Acc = unknown> = Signals extends [
8
+ infer First extends FetchProxy<any> | DatabaseSignal<any, any, any, any> | ServiceSignal<any, any, any>,
9
+ ...infer Rest extends (FetchProxy<any> | DatabaseSignal<any, any, any, any> | ServiceSignal<any, any, any>)[]
10
+ ] ? MergeAllFetchTypes<Rest, Assign<Acc, GetFetchType<First>>> : Acc;
11
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { ConstantModel } from "akanjs/constant";
2
+ import type { SerializedSignal, SerializedSlice, SliceCls } from "akanjs/signal";
3
+ import type { FetchProxy } from "../client.d.ts";
4
+ export type ClientSlice = {
5
+ refName: string;
6
+ sliceName: string;
7
+ serializedSlice: SerializedSlice;
8
+ };
9
+ export type ClientSignal<RefName extends string = string, SlceCls extends SliceCls = SliceCls, Cnst extends ConstantModel = ConstantModel> = {
10
+ refName: RefName;
11
+ _slice: SlceCls;
12
+ cnst: Cnst;
13
+ fetch: FetchProxy<any>;
14
+ slices: ClientSlice[];
15
+ serializedSignal: SerializedSignal;
16
+ };
@@ -0,0 +1,29 @@
1
+ import type { ENDPOINT_META, PromiseOrObject } from "akanjs/base";
2
+ import type { FetchPolicy } from "akanjs/common";
3
+ import type { EndpointCls, EndpointInfo } from "akanjs/signal";
4
+ type EndpInfoType<E> = E extends EndpointInfo<infer T, any, any, any, any, any, any, any, any, any> ? T : never;
5
+ type EndpInfoArgs<E> = E extends EndpointInfo<any, any, any, infer A, any, any, any, any, any, any> ? A : never;
6
+ type EndpInfoReturns<E> = E extends EndpointInfo<any, any, any, any, any, any, any, infer R, any, infer N> ? R | (N extends true ? null : never) : never;
7
+ type QueryOrMutationFetchFn<E> = (...args: [...EndpInfoArgs<E>, fetchPolicy?: FetchPolicy]) => Promise<EndpInfoReturns<E>>;
8
+ type MessageEmitFn<E> = (...args: EndpInfoArgs<E>) => EndpInfoReturns<E>;
9
+ type MessageListenFn<E> = (handleEvent: (data: EndpInfoReturns<E>) => PromiseOrObject<void>, options?: FetchPolicy) => () => void;
10
+ type PubsubSubscribeFn<E> = (...args: [...EndpInfoArgs<E>, handleEvent: (data: EndpInfoReturns<E>) => PromiseOrObject<void>, options?: FetchPolicy]) => () => void;
11
+ type PrimaryFetchType<EInfoObj extends {
12
+ [key: string]: EndpointInfo;
13
+ }> = {
14
+ [K in keyof EInfoObj as EndpInfoType<EInfoObj[K]> extends "query" | "mutation" | "message" ? K : never]: EndpInfoType<EInfoObj[K]> extends "query" | "mutation" ? QueryOrMutationFetchFn<EInfoObj[K]> : EndpInfoType<EInfoObj[K]> extends "message" ? MessageEmitFn<EInfoObj[K]> : never;
15
+ };
16
+ type PubsubFetchType<EInfoObj extends {
17
+ [key: string]: EndpointInfo;
18
+ }> = {
19
+ [K in keyof EInfoObj as EndpInfoType<EInfoObj[K]> extends "pubsub" ? K extends string ? `subscribe${Capitalize<K>}` : never : never]: PubsubSubscribeFn<EInfoObj[K]>;
20
+ };
21
+ type MessageListenFetchType<EInfoObj extends {
22
+ [key: string]: EndpointInfo;
23
+ }> = {
24
+ [K in keyof EInfoObj as EndpInfoType<EInfoObj[K]> extends "message" ? K extends string ? `listen${Capitalize<K>}` : never : never]: MessageListenFn<EInfoObj[K]>;
25
+ };
26
+ export type GetFetchTypeFromEndpoint<EndpCls extends EndpointCls, _EndpointInfoObj extends {
27
+ [key: string]: EndpointInfo;
28
+ } = EndpCls[typeof ENDPOINT_META]> = PrimaryFetchType<_EndpointInfoObj> & PubsubFetchType<_EndpointInfoObj> & MessageListenFetchType<_EndpointInfoObj>;
29
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from "./appliedReturn.type";
2
+ export * from "./buildFetch.type";
3
+ export * from "./clientSignal.type";
4
+ export * from "./endpointFetch.type";
5
+ export * from "./sliceFetch.type";
@@ -0,0 +1,76 @@
1
+ import type { GetStateObject, SLICE_META } from "akanjs/base";
2
+ import type { FetchPolicy } from "akanjs/common";
3
+ import type { ConstantModel, DefaultOf, ProtoFile, PurifiedModel } from "akanjs/constant";
4
+ import type { DatabaseModel, ExtractSort, FilterInstance } from "akanjs/document";
5
+ import type { SliceCls, SliceInfoArgs } from "akanjs/signal";
6
+ import type { ClientEdit, ClientInit, ClientView, EditReturn, InitReturn, ViewReturn } from "./appliedReturn.type";
7
+ type _SliceMap<S extends SliceCls> = S[typeof SLICE_META];
8
+ type _RefName<S extends SliceCls> = S["srv"]["cnst"]["refName"];
9
+ type _Cap<S extends SliceCls> = S["srv"]["cnst"]["_CapitalizedRefName"];
10
+ type _Input<S extends SliceCls> = S["srv"]["cnst"]["_Input"];
11
+ type _Full<S extends SliceCls> = S["srv"]["cnst"]["_Full"];
12
+ type _Light<S extends SliceCls> = S["srv"]["cnst"]["_Light"];
13
+ type _Insight<S extends SliceCls> = S["srv"]["cnst"]["_Insight"];
14
+ type _PurifiedInput<S extends SliceCls> = S["srv"]["cnst"]["_PurifiedInput"];
15
+ type _DefaultInput<S extends SliceCls> = S["srv"]["cnst"]["_DefaultInput"];
16
+ type _Filter<S extends SliceCls> = S["srv"]["db"]["_Filter"];
17
+ type _Sort<S extends SliceCls> = S["srv"]["db"]["_Sort"];
18
+ type _LightWithId<S extends SliceCls> = _Light<S> extends {
19
+ id: string;
20
+ } ? _Light<S> : {
21
+ id: string;
22
+ };
23
+ type _SliceFetchInitOption<S extends SliceCls> = FetchInitOption<_Input<S>, _Filter<S>, _DefaultInput<S>, _Sort<S>>;
24
+ type SliceListFetch<S extends SliceCls> = {
25
+ [Suffix in keyof _SliceMap<S> as Suffix extends string ? `${_RefName<S>}List${Capitalize<Suffix>}` : never]: (...args: [
26
+ ...SliceInfoArgs<_SliceMap<S>[Suffix]>,
27
+ skip?: number | null,
28
+ limit?: number | null,
29
+ sort?: _Sort<S> | null,
30
+ fetchPolicy?: FetchPolicy
31
+ ]) => Promise<_Light<S>[]>;
32
+ };
33
+ type SliceInsightFetch<S extends SliceCls> = {
34
+ [Suffix in keyof _SliceMap<S> as Suffix extends string ? `${_RefName<S>}Insight${Capitalize<Suffix>}` : never]: (...args: [...SliceInfoArgs<_SliceMap<S>[Suffix]>, fetchPolicy?: FetchPolicy]) => Promise<_Insight<S>>;
35
+ };
36
+ type SliceInitFetch<S extends SliceCls> = {
37
+ [Suffix in keyof _SliceMap<S> as Suffix extends string ? `init${_Cap<S>}${Capitalize<Suffix>}` : never]: (...args: [...SliceInfoArgs<_SliceMap<S>[Suffix]>, option?: _SliceFetchInitOption<S>]) => Promise<InitReturn<_RefName<S>, Suffix & string, _Light<S>, _Insight<S>, SliceInfoArgs<_SliceMap<S>[Suffix]>, _Filter<S>, _Cap<S>, Suffix extends string ? Capitalize<Suffix> : never, _LightWithId<S>, GetStateObject<_LightWithId<S>>, GetStateObject<_Insight<S>>, _Sort<S>>>;
38
+ };
39
+ type SliceGetInitFetch<S extends SliceCls> = {
40
+ [Suffix in keyof _SliceMap<S> as Suffix extends string ? `get${_Cap<S>}Init${Capitalize<Suffix>}` : never]: (...args: [...SliceInfoArgs<_SliceMap<S>[Suffix]>, option?: _SliceFetchInitOption<S>]) => ClientInit<_RefName<S>, _Light<S>, _Insight<S>, SliceInfoArgs<_SliceMap<S>[Suffix]>, _Filter<S>, _Cap<S>, GetStateObject<_LightWithId<S>>, GetStateObject<_Insight<S>>, _Sort<S>>;
41
+ };
42
+ export type GetFetchTypeFromSlice<SlceCls extends SliceCls> = SlceCls["srv"]["cnst"] extends ConstantModel ? SlceCls["srv"]["db"] extends DatabaseModel ? SliceListFetch<SlceCls> & SliceInsightFetch<SlceCls> & SliceInitFetch<SlceCls> & SliceGetInitFetch<SlceCls> & RawBaseSliceFetchType<_RefName<SlceCls>, _Input<SlceCls>, _Full<SlceCls>, _Light<SlceCls>, _Cap<SlceCls>, _PurifiedInput<SlceCls>> & AppliedBaseSliceFetchType<_RefName<SlceCls>, _Input<SlceCls>, _Full<SlceCls>, _Cap<SlceCls>, _PurifiedInput<SlceCls>> : never : never;
43
+ type RawBaseSliceFetchType<RefName extends string, Input, Full, Light, _CapitalizedRefName extends string = Capitalize<RefName>, _PurifiedInput = PurifiedModel<Input>> = {
44
+ [K in RefName]: (id: string, fetchPolicy?: FetchPolicy) => Promise<Full>;
45
+ } & {
46
+ [K in `light${_CapitalizedRefName}`]: (id: string, fetchPolicy?: FetchPolicy) => Promise<Light>;
47
+ } & {
48
+ [K in `create${_CapitalizedRefName}`]: (input: _PurifiedInput, fetchPolicy?: FetchPolicy) => Promise<Full>;
49
+ } & {
50
+ [K in `update${_CapitalizedRefName}`]: (id: string, input: _PurifiedInput, fetchPolicy?: FetchPolicy) => Promise<Full>;
51
+ } & {
52
+ [K in `remove${_CapitalizedRefName}`]: (id: string, fetchPolicy?: FetchPolicy) => Promise<void>;
53
+ };
54
+ type AppliedBaseSliceFetchType<RefName extends string, Input, Full, _CapitalizedRefName extends string = Capitalize<RefName>, _PurifiedInput = PurifiedModel<Input>> = {
55
+ [K in `view${_CapitalizedRefName}`]: (id: string, option?: FetchPolicy) => Promise<ViewReturn<RefName, Full>>;
56
+ } & {
57
+ [K in `get${_CapitalizedRefName}View`]: (id: string, option?: FetchPolicy) => ClientView<RefName, Full>;
58
+ } & {
59
+ [K in `edit${_CapitalizedRefName}`]: (id: string, option?: FetchPolicy) => Promise<EditReturn<RefName, Full>>;
60
+ } & {
61
+ [K in `get${_CapitalizedRefName}Edit`]: (id: string, option?: FetchPolicy) => ClientEdit<RefName, Full>;
62
+ } & {
63
+ [K in `add${_CapitalizedRefName}Files`]: (fileList: FileList, parentId?: string, option?: FetchPolicy) => Promise<ProtoFile[]>;
64
+ } & {
65
+ [K in `merge${_CapitalizedRefName}`]: (modelOrId: Full | string, data: Partial<_PurifiedInput>, option?: FetchPolicy) => Promise<Full>;
66
+ };
67
+ export interface FetchInitForm<Input, Filter extends FilterInstance, _DefaultInput = DefaultOf<Input>, _Sort = ExtractSort<Filter>> {
68
+ page?: number;
69
+ limit?: number;
70
+ sort?: _Sort;
71
+ default?: Partial<_DefaultInput>;
72
+ invalidate?: boolean;
73
+ insight?: boolean;
74
+ }
75
+ type FetchInitOption<Input, Filter extends FilterInstance, _DefaultInput = DefaultOf<Input>, _Sort = ExtractSort<Filter>> = FetchPolicy & FetchInitForm<Input, Filter, _DefaultInput, _Sort>;
76
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./fetchType/index.d.ts";
@@ -0,0 +1,4 @@
1
+ export * from "./client.d.ts";
2
+ export * from "./fetchType.d.ts";
3
+ export * from "./requestStorage.d.ts";
4
+ export * from "./types.d.ts";
@@ -0,0 +1,29 @@
1
+ export interface RequestStorage {
2
+ run<T>(store: Request, callback: () => T): T;
3
+ getStore(): Request | undefined;
4
+ }
5
+ export type AkanTheme = "css" | "system" | (string & {});
6
+ declare global {
7
+ var __AKAN_REQUEST_STORAGE__: RequestStorage | undefined;
8
+ var __AKAN_REQUEST_THEME__: WeakMap<Request, AkanTheme> | undefined;
9
+ var __AKAN_REQUEST_QUERY_CACHE__: WeakMap<Request, Map<string, Promise<unknown>>> | undefined;
10
+ var __AKAN_REQUEST_FALLBACK_STACK__: Request[] | undefined;
11
+ }
12
+ export declare const requestStorage: RequestStorage | null;
13
+ /** Stores theme preference on the active request when server rendering. */
14
+ export declare function setRequestTheme(theme: AkanTheme | undefined): void;
15
+ export declare function getRequestTheme(): AkanTheme | undefined;
16
+ export declare function pushRequestFallback(req: Request): () => void;
17
+ /** Returns the active server request from AsyncLocalStorage or the fallback stack. */
18
+ export declare function getRequest(): Request | undefined;
19
+ /** Deduplicates a promise-producing query within the active request. */
20
+ export declare function memoizeRequestQuery<T>(key: string, factory: () => Promise<T>): Promise<T>;
21
+ /** Returns current request headers as a Map, or an empty Map outside a request. */
22
+ export declare function headers(): Map<string, string>;
23
+ export interface CookieEntry {
24
+ name: string;
25
+ value: string;
26
+ }
27
+ export declare function parseCookieHeader(cookieHeader: string): Map<string, CookieEntry>;
28
+ /** Returns parsed cookies from the current request, or an empty Map outside a request. */
29
+ export declare function cookies(): Map<string, CookieEntry>;
@@ -0,0 +1,14 @@
1
+ import { Logger } from "akanjs/common";
2
+ import type { LiveRegistry } from "akanjs/service";
3
+ import type { EndpointCls, SerializedSignal, SliceCls } from "akanjs/signal";
4
+ export declare class FetchSerializer {
5
+ #private;
6
+ static logger: Logger;
7
+ static serializeDatabaseSignal(sliceCls: SliceCls, endpointCls: EndpointCls): SerializedSignal;
8
+ static serializeServiceSignal(endpointCls: EndpointCls): SerializedSignal;
9
+ static serializeRegistry({ endpointCls, sliceCls }: LiveRegistry): {
10
+ signal: {
11
+ [key: string]: SerializedSignal;
12
+ };
13
+ };
14
+ }
@@ -0,0 +1 @@
1
+ export * from "./fetch.serializer";
@@ -0,0 +1 @@
1
+ export * from "./serializer/index.d.ts";
@@ -0,0 +1,19 @@
1
+ import { type Environment, type SLICE_META } from "akanjs/base";
2
+ import type { DatabaseSignal } from "akanjs/signal";
3
+ import type { SliceMeta } from "./fetchType/appliedReturn.type";
4
+ /** Account data made available to services for the current app/environment. */
5
+ export type Account<AddData = unknown> = {
6
+ appName: string;
7
+ environment: Environment;
8
+ } & AddData;
9
+ export declare const getDefaultAccount: () => Account;
10
+ type GetSliceNameFromSignal<Signal> = Signal extends DatabaseSignal<any, any, any, any> ? `${Signal["slice"]["baseName"]}${Capitalize<keyof Signal["slice"][typeof SLICE_META] & string>}` : Signal extends {
11
+ slice: {
12
+ [K in infer Key]: SliceMeta;
13
+ };
14
+ } ? Key : never;
15
+ type GetSliceNamesFromSignals<Signals> = Signals extends [infer First, ...infer Rest] ? Rest extends [] ? GetSliceNameFromSignal<First> : GetSliceNamesFromSignals<Rest> | GetSliceNameFromSignal<First> : never;
16
+ export type GetSliceMetaObjFromDatabaseSignals<Signals extends unknown[]> = {
17
+ [K in GetSliceNamesFromSignals<Signals>]: SliceMeta;
18
+ };
19
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./fetch/index.d.ts";
@@ -0,0 +1,213 @@
1
+ import type { AkanI18nConfig } from "akanjs/common";
2
+ import type { AkanImageConfig } from "akanjs/server";
3
+ export declare const archs: readonly ["amd64", "arm64"];
4
+ export type Arch = (typeof archs)[number];
5
+ export interface DockerConfig {
6
+ content: string;
7
+ image: string | {
8
+ [key in Arch]?: string;
9
+ };
10
+ preRuns: (string | {
11
+ [key in Arch]?: string;
12
+ })[];
13
+ postRuns: (string | {
14
+ [key in Arch]?: string;
15
+ })[];
16
+ command: string[];
17
+ }
18
+ export interface AkanRouteDomains {
19
+ main?: string[];
20
+ develop?: string[];
21
+ debug?: string[];
22
+ [branch: string]: string[] | undefined;
23
+ }
24
+ export interface AkanRouteConfig {
25
+ basePath?: string;
26
+ domains: AkanRouteDomains;
27
+ }
28
+ export type DatabaseMode = "single" | "multiple" | "cluster";
29
+ export type MobileEnv = "local" | "debug" | "develop" | "main";
30
+ export type MobilePermission = "camera" | "contacts" | "location" | "push";
31
+ export interface AkanMobileTargetAssets {
32
+ icon?: string;
33
+ splash?: string;
34
+ }
35
+ export interface AkanMobileTargetLinks {
36
+ schemes?: string[];
37
+ associatedDomains?: string[];
38
+ androidHosts?: string[];
39
+ }
40
+ export interface AkanMobileTargetFiles {
41
+ ios?: Record<string, string>;
42
+ android?: Record<string, string>;
43
+ }
44
+ export interface AkanCapacitorLikeConfig {
45
+ plugins?: Record<string, unknown>;
46
+ android?: Record<string, unknown>;
47
+ ios?: Record<string, unknown>;
48
+ [key: string]: unknown;
49
+ }
50
+ export interface AkanMobileTargetConfig extends AkanCapacitorLikeConfig {
51
+ name: string;
52
+ basePath?: string;
53
+ appName: string;
54
+ appId: string;
55
+ version: string;
56
+ buildNum: number;
57
+ assets?: AkanMobileTargetAssets;
58
+ permissions?: MobilePermission[];
59
+ links?: AkanMobileTargetLinks;
60
+ files?: AkanMobileTargetFiles;
61
+ }
62
+ export interface AkanMobileConfig extends AkanCapacitorLikeConfig {
63
+ appName: string;
64
+ appId: string;
65
+ version: string;
66
+ buildNum: number;
67
+ targets: Record<string, AkanMobileTargetConfig>;
68
+ }
69
+ export interface AppConfigResult {
70
+ docker: DockerConfig;
71
+ defaultDatabaseMode: DatabaseMode;
72
+ routes?: AkanRouteConfig[];
73
+ externalLibs: string[];
74
+ barrelImports: string[];
75
+ optimizeImports: string[];
76
+ images: AkanImageConfig;
77
+ i18n: AkanI18nConfig;
78
+ publicEnv: string[];
79
+ mobile: AkanMobileConfig;
80
+ }
81
+ export interface LibConfigResult {
82
+ externalLibs: string[];
83
+ }
84
+ export type DeepPartial<T> = {
85
+ [P in keyof T]?: T[P] extends unknown[] ? T[P] : T[P] extends object ? DeepPartial<T[P]> : T[P];
86
+ };
87
+ export interface AppConfigContext {
88
+ readonly name: string;
89
+ readonly type: "app";
90
+ }
91
+ export interface LibConfigContext {
92
+ readonly name: string;
93
+ readonly type: "lib";
94
+ }
95
+ export type AppConfig = DeepPartial<AppConfigResult> | ((app: AppConfigContext) => DeepPartial<AppConfigResult>);
96
+ export type LibConfig = DeepPartial<LibConfigResult> | ((lib: LibConfigContext) => DeepPartial<LibConfigResult>);
97
+ export type AkanConfigFile = object;
98
+ export interface FileConventionScanResult {
99
+ constant: {
100
+ databases: string[];
101
+ scalars: string[];
102
+ };
103
+ dictionary: {
104
+ databases: string[];
105
+ services: string[];
106
+ scalars: string[];
107
+ };
108
+ document: {
109
+ databases: string[];
110
+ scalars: string[];
111
+ };
112
+ service: {
113
+ databases: string[];
114
+ services: string[];
115
+ };
116
+ signal: {
117
+ databases: string[];
118
+ services: string[];
119
+ };
120
+ store: {
121
+ databases: string[];
122
+ services: string[];
123
+ };
124
+ template: {
125
+ databases: string[];
126
+ services: string[];
127
+ scalars: string[];
128
+ };
129
+ unit: {
130
+ databases: string[];
131
+ services: string[];
132
+ scalars: string[];
133
+ };
134
+ util: {
135
+ databases: string[];
136
+ services: string[];
137
+ scalars: string[];
138
+ };
139
+ view: {
140
+ databases: string[];
141
+ services: string[];
142
+ scalars: string[];
143
+ };
144
+ zone: {
145
+ databases: string[];
146
+ services: string[];
147
+ scalars: string[];
148
+ };
149
+ }
150
+ export interface ScanResult {
151
+ name: string;
152
+ type: "app" | "lib";
153
+ repoName: string;
154
+ serveDomain: string;
155
+ files: FileConventionScanResult;
156
+ libDeps: string[];
157
+ pkgDeps: string[];
158
+ dependencies: string[];
159
+ devDependencies: string[];
160
+ }
161
+ export interface AppScanResult extends ScanResult {
162
+ akanConfig: AppConfigResult;
163
+ routes: string[];
164
+ }
165
+ export interface LibScanResult extends ScanResult {
166
+ akanConfig: LibConfigResult;
167
+ }
168
+ export interface PkgScanResult {
169
+ name: string;
170
+ pkgDeps: string[];
171
+ dependencies: string[];
172
+ }
173
+ export interface WorkspaceScanResult {
174
+ appNames: string[];
175
+ libNames: string[];
176
+ pkgNames: string[];
177
+ apps: {
178
+ [key: string]: AppScanResult;
179
+ };
180
+ libs: {
181
+ [key: string]: LibScanResult;
182
+ };
183
+ pkgs: {
184
+ [key: string]: PkgScanResult;
185
+ };
186
+ }
187
+ export interface AppInfo {
188
+ readonly name: string;
189
+ readonly type: "app";
190
+ readonly database: Map<string, Set<string>>;
191
+ readonly service: Map<string, Set<string>>;
192
+ readonly scalar: Map<string, Set<string>>;
193
+ readonly file: FileConventionScanResult;
194
+ getLibs(): string[];
195
+ getLibInfos(): Map<string, LibInfo>;
196
+ getDatabaseModules(): string[];
197
+ getScalarModules(): string[];
198
+ getServiceModules(): string[];
199
+ }
200
+ export interface LibInfo {
201
+ readonly name: string;
202
+ readonly type: "lib";
203
+ readonly database: Map<string, Set<string>>;
204
+ readonly service: Map<string, Set<string>>;
205
+ readonly scalar: Map<string, Set<string>>;
206
+ readonly file: FileConventionScanResult;
207
+ getLibs(): string[];
208
+ getLibInfos(): Map<string, LibInfo>;
209
+ getLibInfo(libName: string): LibInfo | undefined;
210
+ getDatabaseModules(): string[];
211
+ getScalarModules(): string[];
212
+ getServiceModules(): string[];
213
+ }
@@ -0,0 +1,17 @@
1
+ import { Logger } from "akanjs/common";
2
+ /** Options for the Akan gateway that launches child server replicas and listens for traffic. */
3
+ export interface AkanAppOptions {
4
+ replica?: number | string;
5
+ serverPath?: string;
6
+ runtimeDir?: string;
7
+ port?: number;
8
+ wsBasePort?: number;
9
+ }
10
+ /** Gateway/orchestrator that starts Akan child servers and proxies HTTP/WebSocket traffic. */
11
+ export declare class AkanApp {
12
+ #private;
13
+ readonly logger: Logger;
14
+ constructor(serverPath?: string, options?: AkanAppOptions);
15
+ start(): Promise<void>;
16
+ stop(signal?: string): Promise<void>;
17
+ }
@@ -0,0 +1 @@
1
+ export declare function makeAkanChildProxyHeaders(req: Request, childIdx: number): Headers;
@@ -0,0 +1,33 @@
1
+ import type { ConstantModel, ScalarConstantModel } from "akanjs/constant";
2
+ import type { DatabaseCls, DatabaseModel } from "akanjs/document";
3
+ import type { ServiceModel } from "akanjs/service";
4
+ import type { DatabaseSignal, ServiceSignal } from "akanjs/signal";
5
+ import type { AkanOption } from "./akanOption.d.ts";
6
+ export interface DatabaseModule {
7
+ constant: ConstantModel;
8
+ database: DatabaseModel;
9
+ service: ServiceModel;
10
+ signal: DatabaseSignal;
11
+ }
12
+ export interface ServiceModule {
13
+ service: ServiceModel;
14
+ signal: ServiceSignal;
15
+ }
16
+ export interface ScalarModule {
17
+ constant: ScalarConstantModel;
18
+ database: DatabaseCls;
19
+ }
20
+ export interface AkanLibProps {
21
+ databases: DatabaseModule[];
22
+ services: ServiceModule[];
23
+ scalars: ScalarModule[];
24
+ option: AkanOption<any>;
25
+ }
26
+ export declare class AkanLib {
27
+ readonly name: string;
28
+ readonly database: DatabaseModule[];
29
+ readonly service: ServiceModule[];
30
+ readonly scalar: ScalarModule[];
31
+ readonly option: AkanOption<any>;
32
+ constructor(name: string, props: AkanLibProps);
33
+ }
@@ -0,0 +1,15 @@
1
+ import type { BaseEnv, PromiseOrObject } from "akanjs/base";
2
+ import type { MiddlewareCls } from "akanjs/signal";
3
+ import type { WebProxyRegistration } from "./proxy.d.ts";
4
+ /** App/library server option builder for use objects, signal middleware, and web proxies. */
5
+ export declare class AkanOption<Env extends BaseEnv = BaseEnv> {
6
+ #private;
7
+ constructor();
8
+ use(fnOrObject: ((env: Env) => Record<string, PromiseOrObject<unknown>>) | Record<string, PromiseOrObject<unknown>>): this;
9
+ applyMiddleware(...middlewares: MiddlewareCls[]): this;
10
+ applyWebProxy(...proxies: WebProxyRegistration[]): this;
11
+ getUses(env: Env): Record<string, PromiseOrObject<unknown>>;
12
+ getMiddlewares(): MiddlewareCls[];
13
+ getWebProxies(): WebProxyRegistration[];
14
+ }
15
+ export declare function createDefaultAkanOption(): AkanOption<BaseEnv>;
@@ -0,0 +1,47 @@
1
+ import { type BaseEnv } from "akanjs/base";
2
+ import { Logger } from "akanjs/common";
3
+ import type { Adaptor, AdaptorCls, DatabaseConfig, Service, ServiceCls, SolidConfig } from "akanjs/service";
4
+ import type { ServerSignal, ServerSignalCls } from "akanjs/signal";
5
+ import type { AkanLib, AkanLibProps } from "./akanLib.d.ts";
6
+ export interface AkanServerProps extends AkanLibProps {
7
+ env?: BaseEnv;
8
+ prefix?: string;
9
+ websocketPrefix?: string;
10
+ }
11
+ export declare class AkanServer {
12
+ #private;
13
+ status: "stopped" | "initializing" | "initialized" | "starting" | "running" | "stopping";
14
+ readonly logger: Logger;
15
+ readonly name: string;
16
+ readonly libs: AkanLib[];
17
+ readonly env: BaseEnv & {
18
+ database?: DatabaseConfig;
19
+ solid?: SolidConfig;
20
+ };
21
+ prefix: string;
22
+ websocketPrefix: string;
23
+ serverMode: "federation" | "batch" | "all";
24
+ shutdownTimeoutMs: number;
25
+ constructor(name?: string, env?: BaseEnv, serverMode?: "federation" | "batch" | "all", ...libs: AkanLib[]);
26
+ setPrefix(prefix: string): this;
27
+ setWebsocketPrefix(websocketPrefix: string): this;
28
+ setDatabaseConfig(database: DatabaseConfig): this;
29
+ setSolidConfig(solid: SolidConfig): this;
30
+ setShutdownTimeout(timeoutMs: number): this;
31
+ get<Srv extends ServiceCls>(cls: Srv): InstanceType<Srv>;
32
+ get<Sig extends ServerSignalCls>(cls: Sig): InstanceType<Sig>;
33
+ get<Adp extends AdaptorCls>(cls: Adp): InstanceType<Adp>;
34
+ getService<T = Service>(refName: string): T;
35
+ getSignal<T = ServerSignal>(refName: string): T;
36
+ getAdaptor<T = Adaptor>(refName: string): T;
37
+ init({ routes: initRoutes, web }?: {
38
+ routes?: boolean;
39
+ web?: boolean;
40
+ }): Promise<this>;
41
+ listen(): Promise<this>;
42
+ start({ listen, web }?: {
43
+ listen?: boolean;
44
+ web?: boolean;
45
+ }): Promise<this>;
46
+ stop(): Promise<void>;
47
+ }
@@ -0,0 +1,42 @@
1
+ import type { CssPayload, PagesBundlePayload } from "./ipcTypes.d.ts";
2
+ import type { BuildRouteClientResult } from "./manifestTypes.d.ts";
3
+ export interface BuilderRpcEventHandlers {
4
+ /**
5
+ * Filesystem batch invalidation from the builder's watcher. The backend
6
+ * should treat this as a hint to clear its route cache and broadcast a
7
+ * dev reload to connected HMR clients.
8
+ */
9
+ onInvalidate?: (event: {
10
+ kinds: ("code" | "css" | "config")[];
11
+ files: string[];
12
+ generation?: number;
13
+ }) => void;
14
+ /** Builder proactively recompiled CSS; payload includes base64 bytes. */
15
+ onCssUpdated?: (css: CssPayload) => void;
16
+ /**
17
+ * Builder emitted a freshly bundled `pages-*.js`. Backend should
18
+ * re-import it (e.g. by calling `RscWorker.reload({ pagesBundlePath,
19
+ * buildId })`) so new user code takes effect without spawning a new
20
+ * worker subprocess.
21
+ */
22
+ onPagesUpdated?: (bundle: PagesBundlePayload) => void;
23
+ }
24
+ /**
25
+ * Typed RPC facade around the raw `BuilderTransport`. Handles the
26
+ * correlation-id bookkeeping (request promise + resolver map) and exposes
27
+ * a narrow surface matching the three builder operations.
28
+ *
29
+ * Only one `BuilderRpc` instance should exist per backend process. It
30
+ * subscribes to the transport at construction and unsubscribes on
31
+ * `dispose()`.
32
+ */
33
+ export declare class BuilderRpc {
34
+ #private;
35
+ constructor(handlers?: BuilderRpcEventHandlers);
36
+ buildRoute(routeId: string, { seeds, knownEntries, generation }: {
37
+ seeds: string[];
38
+ knownEntries: Set<string>;
39
+ generation?: number;
40
+ }): Promise<BuildRouteClientResult>;
41
+ dispose(): void;
42
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./builderRpc.d.ts";
2
+ export * from "./ipcTypes.d.ts";
3
+ export * from "./manifestTypes.d.ts";
4
+ export * from "./routeClientCache.d.ts";
5
+ export * from "./routeSeedIndexStore.d.ts";
6
+ export * from "./routesManifestStore.d.ts";