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.
- package/CHANGELOG.md +9 -0
- package/base/base.ts +1 -1
- package/base/primitiveRegistry.ts +6 -10
- package/base/types.ts +1 -4
- package/capacitor.base.config.ts +1 -1
- package/client/capacitor.ts +1 -1
- package/client/cookie.ts +2 -4
- package/client/createFont.ts +2 -2
- package/client/csrTypes.ts +2 -8
- package/client/makePageProto.tsx +4 -10
- package/client/router.ts +3 -8
- package/client/translator.ts +4 -12
- package/common/Logger.ts +1 -4
- package/common/formatNumber.ts +2 -5
- package/common/hmrPhase.ts +1 -1
- package/common/isValidDate.ts +0 -3
- package/constant/fieldInfo.ts +3 -3
- package/constant/purify.ts +1 -2
- package/constant/types.ts +0 -4
- package/constant/via.ts +6 -12
- package/document/databaseRegistry.ts +0 -8
- package/document/into.ts +0 -1
- package/fetch/client/fetchClient.ts +1 -6
- package/fetch/client/httpClient.ts +1 -2
- package/fetch/fetchType/appliedReturn.type.ts +0 -1
- package/fetch/fetchType/endpointFetch.type.ts +0 -3
- package/fetch/fetchType/sliceFetch.type.ts +0 -8
- package/fetch/requestStorage.ts +2 -10
- package/package.json +67 -24
- package/server/akanApp.ts +2 -5
- package/server/akanLib.ts +0 -1
- package/server/akanServer.ts +3 -4
- package/server/artifact/builderRpc.ts +2 -2
- package/server/artifact/ipcTypes.ts +0 -4
- package/server/decorators.ts +1 -1
- package/server/di/diLifecycle.ts +3 -6
- package/server/hmr/clientScript.ts +2 -20
- package/server/hmr/devHmrController.ts +0 -4
- package/server/processMetricsCollector.ts +1 -1
- package/server/resolver/database.resolver.ts +2 -2
- package/server/resolver/resolver.contract.fixture.ts +0 -1
- package/server/resolver/signal.resolver.ts +2 -10
- package/server/routing/apiRouter.ts +2 -4
- package/server/rscClient.tsx +1 -7
- package/server/rscWorkerHost.ts +11 -33
- package/server/ssrFromRscRenderer.tsx +3 -35
- package/server/types/react-server-dom-webpack.d.ts +1 -7
- package/server/vendor/react-dom-client.ts +1 -1
- package/server/vendor/react-dom.ts +2 -3
- package/server/vendor/react-jsx-dev-runtime.ts +1 -1
- package/server/vendor/react-jsx-runtime.ts +1 -1
- package/server/vendor/react-refresh-runtime.ts +2 -2
- package/server/vendor/react-server-dom-webpack-client-browser.ts +1 -1
- package/server/vendor/react.ts +2 -9
- package/server/vendor/scheduler.ts +2 -3
- package/server/webRouter.ts +2 -3
- package/service/adapt.ts +1 -5
- package/service/predefinedAdaptor/cache.adaptor.ts +1 -2
- package/service/predefinedAdaptor/database.adaptor.ts +2 -2
- package/service/predefinedAdaptor/solidSqlite.ts +1 -2
- package/service/predefinedAdaptor/websocket.adaptor.ts +3 -15
- package/service/serve.ts +3 -7
- package/signal/base.signal.ts +0 -1
- package/signal/endpointInfo.ts +0 -7
- package/signal/intercept.ts +0 -2
- package/signal/middleware.ts +1 -2
- package/signal/serverSignal.ts +1 -15
- package/signal/signalContext.ts +1 -1
- package/signal/signalRegistry.ts +0 -5
- package/signal/sliceInfo.ts +0 -3
- package/signal/trace.ts +0 -11
- package/signal/types.ts +2 -11
- package/store/action.ts +3 -5
- package/store/stateBuilder.ts +0 -2
- package/store/stateInfo.ts +1 -2
- package/store/types.ts +1 -1
- package/test/playwright.config.base.ts +5 -28
- package/test/playwright.pageAgent.ts +1 -1
- package/test/sampleOf.ts +1 -1
- package/test/testServer.ts +1 -1
- package/types/base/base.d.ts +53 -0
- package/types/base/baseEnv.d.ts +68 -0
- package/types/base/index.d.ts +6 -0
- package/types/base/primitiveRegistry.d.ts +134 -0
- package/types/base/symbols.d.ts +11 -0
- package/types/base/types.d.ts +68 -0
- package/types/base/utils.d.ts +4 -0
- package/types/base.d.ts +1 -0
- package/types/capacitor.base.config.d.ts +3 -0
- package/types/client/capacitor.d.ts +233 -0
- package/types/client/clientRuntime.d.ts +63 -0
- package/types/client/cookie.d.ts +33 -0
- package/types/client/createFont.d.ts +6 -0
- package/types/client/csrTypes.d.ts +262 -0
- package/types/client/decorators.d.ts +7 -0
- package/types/client/device.d.ts +41 -0
- package/types/client/fetch.d.ts +1 -0
- package/types/client/index.d.ts +14 -0
- package/types/client/locale.d.ts +5 -0
- package/types/client/makePageProto.d.ts +17002 -0
- package/types/client/router.d.ts +66 -0
- package/types/client/rscNavigation.d.ts +19 -0
- package/types/client/storage.d.ts +5 -0
- package/types/client/translator.d.ts +18 -0
- package/types/client/types.d.ts +145 -0
- package/types/client/useClient.d.ts +1 -0
- package/types/client.d.ts +1 -0
- package/types/common/Logger.d.ts +41 -0
- package/types/common/applyMixins.d.ts +3 -0
- package/types/common/capitalize.d.ts +2 -0
- package/types/common/deepObjectify.d.ts +4 -0
- package/types/common/fileUpload.d.ts +28 -0
- package/types/common/formatNumber.d.ts +1 -0
- package/types/common/formatPhone.d.ts +2 -0
- package/types/common/getAllPropertyDescriptors.d.ts +5 -0
- package/types/common/hmrPhase.d.ts +6 -0
- package/types/common/httpClient.d.ts +20 -0
- package/types/common/index.d.ts +29 -0
- package/types/common/isDayjs.d.ts +2 -0
- package/types/common/isEmail.d.ts +2 -0
- package/types/common/isPhoneNumber.d.ts +2 -0
- package/types/common/isQueryEqual.d.ts +1 -0
- package/types/common/isValidDate.d.ts +2 -0
- package/types/common/jwtDecode.d.ts +2 -0
- package/types/common/localeConfig.d.ts +11 -0
- package/types/common/lowerlize.d.ts +2 -0
- package/types/common/mergeVersion.d.ts +10 -0
- package/types/common/objectify.d.ts +1 -0
- package/types/common/pathGet.d.ts +1 -0
- package/types/common/pathSet.d.ts +3 -0
- package/types/common/randomPick.d.ts +1 -0
- package/types/common/randomPicks.d.ts +1 -0
- package/types/common/routeConvention.d.ts +35 -0
- package/types/common/sleep.d.ts +2 -0
- package/types/common/splitVersion.d.ts +11 -0
- package/types/common/subRoute.d.ts +7 -0
- package/types/common/types.d.ts +14 -0
- package/types/common.d.ts +1 -0
- package/types/constant/constantRegistry.d.ts +89 -0
- package/types/constant/crystalize.d.ts +4 -0
- package/types/constant/deserialize.d.ts +7 -0
- package/types/constant/fieldInfo.d.ts +153 -0
- package/types/constant/getDefault.d.ts +3 -0
- package/types/constant/immerify.d.ts +2 -0
- package/types/constant/index.d.ts +10 -0
- package/types/constant/purify.d.ts +12 -0
- package/types/constant/serialize.d.ts +11 -0
- package/types/constant/types.d.ts +77 -0
- package/types/constant/via.d.ts +52 -0
- package/types/constant.d.ts +1 -0
- package/types/dictionary/base.dictionary.d.ts +1 -0
- package/types/dictionary/dictInfo.d.ts +206 -0
- package/types/dictionary/dictionary.d.ts +11 -0
- package/types/dictionary/index.d.ts +4 -0
- package/types/dictionary/locale.d.ts +128 -0
- package/types/dictionary/trans.d.ts +82 -0
- package/types/dictionary.d.ts +1 -0
- package/types/document/by.d.ts +20 -0
- package/types/document/dataLoader.d.ts +36 -0
- package/types/document/database.d.ts +96 -0
- package/types/document/databaseRegistry.d.ts +36 -0
- package/types/document/documentQuery.d.ts +105 -0
- package/types/document/documentSchema.d.ts +33 -0
- package/types/document/filterMeta.d.ts +84 -0
- package/types/document/index.d.ts +11 -0
- package/types/document/into.d.ts +65 -0
- package/types/document/loaderInfo.d.ts +35 -0
- package/types/document/schema.d.ts +5 -0
- package/types/document/types.d.ts +36 -0
- package/types/document.d.ts +1 -0
- package/types/fetch/client/fetchClient.d.ts +78 -0
- package/types/fetch/client/httpClient.d.ts +39 -0
- package/types/fetch/client/index.d.ts +3 -0
- package/types/fetch/client/wsClient.d.ts +37 -0
- package/types/fetch/client.d.ts +1 -0
- package/types/fetch/fetchType/appliedReturn.type.d.ts +67 -0
- package/types/fetch/fetchType/buildFetch.type.d.ts +11 -0
- package/types/fetch/fetchType/clientSignal.type.d.ts +16 -0
- package/types/fetch/fetchType/endpointFetch.type.d.ts +29 -0
- package/types/fetch/fetchType/index.d.ts +5 -0
- package/types/fetch/fetchType/sliceFetch.type.d.ts +76 -0
- package/types/fetch/fetchType.d.ts +1 -0
- package/types/fetch/index.d.ts +4 -0
- package/types/fetch/requestStorage.d.ts +29 -0
- package/types/fetch/serializer/fetch.serializer.d.ts +14 -0
- package/types/fetch/serializer/index.d.ts +1 -0
- package/types/fetch/serializer.d.ts +1 -0
- package/types/fetch/types.d.ts +19 -0
- package/types/fetch.d.ts +1 -0
- package/types/index.d.ts +213 -0
- package/types/server/akanApp.d.ts +17 -0
- package/types/server/akanAppHeaders.d.ts +1 -0
- package/types/server/akanLib.d.ts +33 -0
- package/types/server/akanOption.d.ts +15 -0
- package/types/server/akanServer.d.ts +47 -0
- package/types/server/artifact/builderRpc.d.ts +42 -0
- package/types/server/artifact/index.d.ts +6 -0
- package/types/server/artifact/ipcTypes.d.ts +73 -0
- package/types/server/artifact/manifestTypes.d.ts +16 -0
- package/types/server/artifact/routeClientCache.d.ts +45 -0
- package/types/server/artifact/routeSeedIndexStore.d.ts +43 -0
- package/types/server/artifact/routesManifestStore.d.ts +16 -0
- package/types/server/artifact.d.ts +1 -0
- package/types/server/decorators.d.ts +6 -0
- package/types/server/di/diLifecycle.d.ts +45 -0
- package/types/server/di/index.d.ts +4 -0
- package/types/server/di/predefinedAdaptor.d.ts +33 -0
- package/types/server/di/resolveAdaptorHierarchy.d.ts +21 -0
- package/types/server/di/resolveHierarchy.d.ts +11 -0
- package/types/server/di/resolveServiceHierarchy.d.ts +13 -0
- package/types/server/di/utils.d.ts +14 -0
- package/types/server/di.d.ts +1 -0
- package/types/server/hmr/changeBatch.d.ts +13 -0
- package/types/server/hmr/clientScript.d.ts +1 -0
- package/types/server/hmr/devHmrController.d.ts +24 -0
- package/types/server/hmr/index.d.ts +4 -0
- package/types/server/hmr/wsHub.d.ts +45 -0
- package/types/server/hmr.d.ts +1 -0
- package/types/server/imageOptimizer.d.ts +12 -0
- package/types/server/imageOptimizerError.d.ts +4 -0
- package/types/server/index.d.ts +14 -0
- package/types/server/lifecycle/shutdownManager.d.ts +13 -0
- package/types/server/logging/rotatingLogWriter.d.ts +20 -0
- package/types/server/processMetricsCollector.d.ts +10 -0
- package/types/server/proxy/akanResponse.d.ts +7 -0
- package/types/server/proxy/bunRequestFields.d.ts +1 -0
- package/types/server/proxy/hostBasePathWebProxy.d.ts +6 -0
- package/types/server/proxy/index.d.ts +6 -0
- package/types/server/proxy/localeWebProxy.d.ts +5 -0
- package/types/server/proxy/types.d.ts +37 -0
- package/types/server/proxy/webProxyRunner.d.ts +7 -0
- package/types/server/proxy.d.ts +1 -0
- package/types/server/resolver/database.resolver.d.ts +6 -0
- package/types/server/resolver/index.d.ts +3 -0
- package/types/server/resolver/service.resolver.d.ts +7 -0
- package/types/server/resolver/signal.resolver.d.ts +29 -0
- package/types/server/resolver.d.ts +1 -0
- package/types/server/robots.d.ts +1 -0
- package/types/server/routeElementComposer.d.ts +41 -0
- package/types/server/routeTreeBuilder.d.ts +28 -0
- package/types/server/routing/apiRouter.d.ts +61 -0
- package/types/server/rscClient.d.ts +15 -0
- package/types/server/rscWorker.d.ts +3 -0
- package/types/server/rscWorkerHost.d.ts +83 -0
- package/types/server/sitemap.d.ts +13 -0
- package/types/server/ssrFromRscRenderer.d.ts +6 -0
- package/types/server/ssrTypes.d.ts +47 -0
- package/types/server/systemPages.d.ts +27 -0
- package/types/server/types/react-server-dom-webpack.d.ts +91 -0
- package/types/server/types.d.ts +67 -0
- package/types/server/vendor/akanjs-base.d.ts +1 -0
- package/types/server/vendor/akanjs-common.d.ts +1 -0
- package/types/server/vendor/akanjs-constant.d.ts +1 -0
- package/types/server/vendor/akanjs-store.d.ts +1 -0
- package/types/server/vendor/react-dom-client.d.ts +3 -0
- package/types/server/vendor/react-dom.d.ts +3 -0
- package/types/server/vendor/react-jsx-dev-runtime.d.ts +3 -0
- package/types/server/vendor/react-jsx-runtime.d.ts +3 -0
- package/types/server/vendor/react-refresh-runtime.d.ts +3 -0
- package/types/server/vendor/react-server-dom-webpack-client-browser.d.ts +3 -0
- package/types/server/vendor/react.d.ts +11 -0
- package/types/server/vendor/scheduler.d.ts +3 -0
- package/types/server/webRouter.d.ts +44 -0
- package/types/server.d.ts +1 -0
- package/types/service/adapt.d.ts +15 -0
- package/types/service/base.service.d.ts +18 -0
- package/types/service/index.d.ts +10 -0
- package/types/service/injectInfo.d.ts +102 -0
- package/types/service/ipcTypes.d.ts +194 -0
- package/types/service/predefinedAdaptor/cache.adaptor.d.ts +46 -0
- package/types/service/predefinedAdaptor/compress.adaptor.d.ts +22 -0
- package/types/service/predefinedAdaptor/database.adaptor.d.ts +329 -0
- package/types/service/predefinedAdaptor/index.d.ts +13 -0
- package/types/service/predefinedAdaptor/logging.adaptor.d.ts +20 -0
- package/types/service/predefinedAdaptor/queue.adaptor.d.ts +22 -0
- package/types/service/predefinedAdaptor/role.adaptor.d.ts +17 -0
- package/types/service/predefinedAdaptor/schedule.adaptor.d.ts +60 -0
- package/types/service/predefinedAdaptor/solidCache.adaptor.d.ts +25 -0
- package/types/service/predefinedAdaptor/solidPubsub.adaptor.d.ts +20 -0
- package/types/service/predefinedAdaptor/solidQueue.adaptor.d.ts +19 -0
- package/types/service/predefinedAdaptor/solidSqlite.d.ts +24 -0
- package/types/service/predefinedAdaptor/sqlitePath.d.ts +9 -0
- package/types/service/predefinedAdaptor/storage.adaptor.d.ts +80 -0
- package/types/service/predefinedAdaptor/websocket.adaptor.d.ts +49 -0
- package/types/service/predefinedAdaptor.d.ts +1 -0
- package/types/service/serve.d.ts +31 -0
- package/types/service/serviceModule.d.ts +50 -0
- package/types/service/serviceRegistry.d.ts +9 -0
- package/types/service/types.d.ts +55 -0
- package/types/service.d.ts +1 -0
- package/types/signal/base.signal.d.ts +41 -0
- package/types/signal/endpoint.d.ts +28 -0
- package/types/signal/endpointInfo.d.ts +77 -0
- package/types/signal/exception.d.ts +54786 -0
- package/types/signal/guard.d.ts +10 -0
- package/types/signal/guards.d.ts +10 -0
- package/types/signal/index.d.ts +19 -0
- package/types/signal/intercept.d.ts +17 -0
- package/types/signal/internal.d.ts +18 -0
- package/types/signal/internalArg.d.ts +31 -0
- package/types/signal/internalInfo.d.ts +45 -0
- package/types/signal/middleware.d.ts +51 -0
- package/types/signal/serializer/fetch.serializer.d.ts +14 -0
- package/types/signal/serializer/index.d.ts +1 -0
- package/types/signal/serializer.d.ts +1 -0
- package/types/signal/serverSignal.d.ts +36 -0
- package/types/signal/signalContext.d.ts +96 -0
- package/types/signal/signalRegistry.d.ts +49 -0
- package/types/signal/slice.d.ts +42 -0
- package/types/signal/sliceInfo.d.ts +51 -0
- package/types/signal/trace.d.ts +97 -0
- package/types/signal/types.d.ts +142 -0
- package/types/signal.d.ts +1 -0
- package/types/store/action.d.ts +145 -0
- package/types/store/baseSt.d.ts +412 -0
- package/types/store/hooks.d.ts +1 -0
- package/types/store/index.d.ts +8 -0
- package/types/store/rootStore.d.ts +22 -0
- package/types/store/state.d.ts +91 -0
- package/types/store/stateBuilder.d.ts +141 -0
- package/types/store/stateInfo.d.ts +23 -0
- package/types/store/store.d.ts +36 -0
- package/types/store/storeInstance.d.ts +38 -0
- package/types/store/storeRegistry.d.ts +13 -0
- package/types/store/types.d.ts +42 -0
- package/types/store/withSelector.d.ts +42 -0
- package/types/store.d.ts +1 -0
- package/types/test/index.d.ts +4 -0
- package/types/test/playwright.config.base.d.ts +9 -0
- package/types/test/playwright.pageAgent.d.ts +12 -0
- package/types/test/sample.d.ts +15 -0
- package/types/test/sampleOf.d.ts +5 -0
- package/types/test/signalTest.preload.d.ts +1 -0
- package/types/test/signalTestRuntime.d.ts +29 -0
- package/types/test/testServer.d.ts +26 -0
- package/types/test.d.ts +1 -0
- package/types/ui/BottomSheet.d.ts +13 -0
- package/types/ui/Button.d.ts +11 -0
- package/types/ui/ClientSide.d.ts +8 -0
- package/types/ui/Clipboard.d.ts +7 -0
- package/types/ui/Constant/Doc.d.ts +29 -0
- package/types/ui/Constant/Mermaid.d.ts +8 -0
- package/types/ui/Constant/index.d.ts +6 -0
- package/types/ui/Constant/schemaDoc.d.ts +84 -0
- package/types/ui/Constant.d.ts +1 -0
- package/types/ui/Copy.d.ts +10 -0
- package/types/ui/CsrImage.d.ts +18 -0
- package/types/ui/Data/CardList.d.ts +36 -0
- package/types/ui/Data/Dashboard.d.ts +11 -0
- package/types/ui/Data/Insight.d.ts +9 -0
- package/types/ui/Data/Item.d.ts +75 -0
- package/types/ui/Data/ListContainer.d.ts +49 -0
- package/types/ui/Data/Pagination.d.ts +9 -0
- package/types/ui/Data/QueryMaker.d.ts +8 -0
- package/types/ui/Data/TableList.d.ts +26 -0
- package/types/ui/Data/index.d.ts +9 -0
- package/types/ui/Data/index_.d.ts +8 -0
- package/types/ui/Data.d.ts +1 -0
- package/types/ui/DatePicker.d.ts +36 -0
- package/types/ui/Dialog/Action.d.ts +5 -0
- package/types/ui/Dialog/Close.d.ts +6 -0
- package/types/ui/Dialog/Content.d.ts +6 -0
- package/types/ui/Dialog/Modal.d.ts +9 -0
- package/types/ui/Dialog/Provider.d.ts +11 -0
- package/types/ui/Dialog/Title.d.ts +5 -0
- package/types/ui/Dialog/Trigger.d.ts +6 -0
- package/types/ui/Dialog/context.d.ts +10 -0
- package/types/ui/Dialog/index.d.ts +9 -0
- package/types/ui/Dialog.d.ts +1 -0
- package/types/ui/DragAction.d.ts +24 -0
- package/types/ui/DraggableList.d.ts +31 -0
- package/types/ui/Dropdown.d.ts +14 -0
- package/types/ui/Empty.d.ts +12 -0
- package/types/ui/Field.d.ts +411 -0
- package/types/ui/FontFace.d.ts +6 -0
- package/types/ui/Image.d.ts +49 -0
- package/types/ui/InfiniteScroll.d.ts +10 -0
- package/types/ui/Input.d.ts +95 -0
- package/types/ui/KeyboardAvoiding.d.ts +8 -0
- package/types/ui/Layout/BottomAction.d.ts +6 -0
- package/types/ui/Layout/BottomInset.d.ts +7 -0
- package/types/ui/Layout/BottomTab.d.ts +14 -0
- package/types/ui/Layout/Header.d.ts +8 -0
- package/types/ui/Layout/LeftSider.d.ts +9 -0
- package/types/ui/Layout/Navbar.d.ts +11 -0
- package/types/ui/Layout/RightSider.d.ts +10 -0
- package/types/ui/Layout/Sider.d.ts +7 -0
- package/types/ui/Layout/Template.d.ts +7 -0
- package/types/ui/Layout/TopLeftAction.d.ts +6 -0
- package/types/ui/Layout/Unit.d.ts +9 -0
- package/types/ui/Layout/View.d.ts +8 -0
- package/types/ui/Layout/Zone.d.ts +6 -0
- package/types/ui/Layout/index.d.ts +14 -0
- package/types/ui/Layout.d.ts +1 -0
- package/types/ui/Link/Back.d.ts +7 -0
- package/types/ui/Link/Close.d.ts +7 -0
- package/types/ui/Link/CsrLink.d.ts +2 -0
- package/types/ui/Link/Lang.d.ts +8 -0
- package/types/ui/Link/SsrLink.d.ts +2 -0
- package/types/ui/Link/index.d.ts +10 -0
- package/types/ui/Link/types.d.ts +42 -0
- package/types/ui/Link.d.ts +1 -0
- package/types/ui/Load/Edit.d.ts +4 -0
- package/types/ui/Load/Edit_Client.d.ts +27 -0
- package/types/ui/Load/Page.d.ts +15 -0
- package/types/ui/Load/PageCSR.d.ts +3 -0
- package/types/ui/Load/Pagination.d.ts +8 -0
- package/types/ui/Load/Units.d.ts +30 -0
- package/types/ui/Load/View.d.ts +22 -0
- package/types/ui/Load/index.d.ts +8 -0
- package/types/ui/Load/index_.d.ts +3 -0
- package/types/ui/Load.d.ts +1 -0
- package/types/ui/Loading/Area.d.ts +1 -0
- package/types/ui/Loading/Button.d.ts +7 -0
- package/types/ui/Loading/Input.d.ts +7 -0
- package/types/ui/Loading/ProgressBar.d.ts +6 -0
- package/types/ui/Loading/Skeleton.d.ts +7 -0
- package/types/ui/Loading/Spin.d.ts +7 -0
- package/types/ui/Loading/index.d.ts +8 -0
- package/types/ui/Loading.d.ts +1 -0
- package/types/ui/Menu.d.ts +26 -0
- package/types/ui/Modal.d.ts +19 -0
- package/types/ui/Model/AdminPanel.d.ts +31 -0
- package/types/ui/Model/Edit.d.ts +16 -0
- package/types/ui/Model/EditModal.d.ts +52 -0
- package/types/ui/Model/EditWrapper.d.ts +13 -0
- package/types/ui/Model/LoadInit.d.ts +10 -0
- package/types/ui/Model/New.d.ts +16 -0
- package/types/ui/Model/NewWrapper.d.ts +13 -0
- package/types/ui/Model/NewWrapper_Client.d.ts +13 -0
- package/types/ui/Model/Remove.d.ts +13 -0
- package/types/ui/Model/RemoveWrapper.d.ts +12 -0
- package/types/ui/Model/SureToRemove.d.ts +11 -0
- package/types/ui/Model/View.d.ts +19 -0
- package/types/ui/Model/ViewEditModal.d.ts +12 -0
- package/types/ui/Model/ViewModal.d.ts +14 -0
- package/types/ui/Model/ViewWrapper.d.ts +12 -0
- package/types/ui/Model/index.d.ts +16 -0
- package/types/ui/Model/index_.d.ts +14 -0
- package/types/ui/Model.d.ts +1 -0
- package/types/ui/More.d.ts +12 -0
- package/types/ui/ObjectId.d.ts +5 -0
- package/types/ui/Pagination.d.ts +20 -0
- package/types/ui/Popconfirm.d.ts +28 -0
- package/types/ui/Portal.d.ts +6 -0
- package/types/ui/Radio.d.ts +19 -0
- package/types/ui/RecentTime.d.ts +12 -0
- package/types/ui/Refresh.d.ts +7 -0
- package/types/ui/ScreenNavigator.d.ts +18 -0
- package/types/ui/Select.d.ts +43 -0
- package/types/ui/Signal/Arg.d.ts +78 -0
- package/types/ui/Signal/Doc.d.ts +33 -0
- package/types/ui/Signal/Listener.d.ts +9 -0
- package/types/ui/Signal/Message.d.ts +23 -0
- package/types/ui/Signal/Object.d.ts +20 -0
- package/types/ui/Signal/PubSub.d.ts +24 -0
- package/types/ui/Signal/Request.d.ts +8 -0
- package/types/ui/Signal/Response.d.ts +14 -0
- package/types/ui/Signal/RestApi.d.ts +40 -0
- package/types/ui/Signal/WebSocket.d.ts +11 -0
- package/types/ui/Signal/index.d.ts +18 -0
- package/types/ui/Signal/makeExample.d.ts +4 -0
- package/types/ui/Signal/style.d.ts +15 -0
- package/types/ui/Signal.d.ts +1 -0
- package/types/ui/System/CSR.d.ts +32 -0
- package/types/ui/System/Client.d.ts +47 -0
- package/types/ui/System/Common.d.ts +47 -0
- package/types/ui/System/DevModeToggle.d.ts +1 -0
- package/types/ui/System/Gtag.d.ts +4 -0
- package/types/ui/System/Messages.d.ts +1 -0
- package/types/ui/System/Reconnect.d.ts +1 -0
- package/types/ui/System/Root.d.ts +6 -0
- package/types/ui/System/SSR.d.ts +24 -0
- package/types/ui/System/SelectLanguage.d.ts +5 -0
- package/types/ui/System/ThemeToggle.d.ts +4 -0
- package/types/ui/System/index.d.ts +12 -0
- package/types/ui/System.d.ts +1 -0
- package/types/ui/Tab/Menu.d.ts +12 -0
- package/types/ui/Tab/Menus.d.ts +6 -0
- package/types/ui/Tab/Panel.d.ts +8 -0
- package/types/ui/Tab/Provider.d.ts +10 -0
- package/types/ui/Tab/context.d.ts +9 -0
- package/types/ui/Tab/index.d.ts +7 -0
- package/types/ui/Tab.d.ts +1 -0
- package/types/ui/Table.d.ts +41 -0
- package/types/ui/ToggleSelect.d.ts +33 -0
- package/types/ui/Unauthorized.d.ts +9 -0
- package/types/ui/animated.d.ts +5 -0
- package/types/ui/fontCss.d.ts +11 -0
- package/types/ui/index.d.ts +44 -0
- package/types/ui.d.ts +1 -0
- package/types/webkit/bootCsr.d.ts +16 -0
- package/types/webkit/createRobotPage.d.ts +15 -0
- package/types/webkit/createSitemapPage.d.ts +4 -0
- package/types/webkit/index.d.ts +17 -0
- package/types/webkit/lazy.d.ts +11 -0
- package/types/webkit/types.d.ts +7 -0
- package/types/webkit/useCamera.d.ts +19 -0
- package/types/webkit/useCodepush.d.ts +16 -0
- package/types/webkit/useContact.d.ts +11 -0
- package/types/webkit/useCsrValues.d.ts +30 -0
- package/types/webkit/useDebounce.d.ts +2 -0
- package/types/webkit/useFetch.d.ts +18 -0
- package/types/webkit/useGeoLocation.d.ts +8 -0
- package/types/webkit/useHistory.d.ts +23 -0
- package/types/webkit/useInterval.d.ts +2 -0
- package/types/webkit/useLocation.d.ts +8 -0
- package/types/webkit/usePurchase.d.ts +19 -0
- package/types/webkit/usePushNoti.d.ts +7 -0
- package/types/webkit/useThrottle.d.ts +2 -0
- package/types/webkit.d.ts +1 -0
- package/ui/BottomSheet.tsx +1 -1
- package/ui/Clipboard.tsx +1 -1
- package/ui/CsrImage.tsx +3 -14
- package/ui/Data/ListContainer.tsx +1 -1
- package/ui/Data/Pagination.tsx +1 -1
- package/ui/Data/QueryMaker.tsx +0 -339
- package/ui/Data/index.ts +0 -1
- package/ui/DatePicker.tsx +1 -95
- package/ui/Dialog/Modal.tsx +1 -1
- package/ui/DraggableList.tsx +5 -5
- package/ui/Field.tsx +2 -3
- package/ui/Image.tsx +2 -3
- package/ui/InfiniteScroll.tsx +0 -1
- package/ui/Input.tsx +1 -8
- package/ui/Layout/BottomTab.tsx +2 -2
- package/ui/Link/SsrLink.tsx +1 -2
- package/ui/Load/Page.tsx +1 -1
- package/ui/Load/PageCSR.tsx +0 -1
- package/ui/Load/Units.tsx +1 -2
- package/ui/Load/View.tsx +1 -2
- package/ui/Menu.tsx +5 -8
- package/ui/Model/EditModal.tsx +2 -5
- package/ui/Popconfirm.tsx +2 -4
- package/ui/ScreenNavigator.tsx +2 -3
- package/ui/Signal/Message.tsx +2 -3
- package/ui/Signal/PubSub.tsx +0 -2
- package/ui/Signal/Response.tsx +1 -1
- package/ui/Signal/WebSocket.tsx +2 -11
- package/ui/System/Client.tsx +7 -41
- package/ui/System/Gtag.tsx +2 -5
- package/ui/System/Messages.tsx +2 -2
- package/ui/System/Reconnect.tsx +5 -6
- package/ui/System/Root.tsx +0 -1
- package/ui/System/SSR.tsx +1 -7
- package/ui/ToggleSelect.tsx +3 -8
- package/ui/Unauthorized.tsx +1 -1
- package/webkit/bootCsr.tsx +3 -6
- package/webkit/lazy.tsx +1 -8
- package/webkit/useCamera.tsx +0 -1
- package/webkit/useCodepush.tsx +4 -9
- package/webkit/useContact.tsx +0 -1
- package/webkit/useCsrValues.ts +6 -10
- package/webkit/useDebounce.ts +2 -2
- package/webkit/usePurchase.tsx +5 -9
- package/webkit/usePushNoti.tsx +0 -1
- package/base/base.test.ts +0 -135
- package/base/baseEnv.test.ts +0 -146
- package/base/primitiveRegistry.test.ts +0 -127
- package/base/symbols.test.ts +0 -29
- package/base/utils.test.ts +0 -30
- package/build.ts +0 -318
- package/capacitor.base.config.test.ts +0 -83
- package/client/client.auth-storage.test.ts +0 -210
- package/client/client.decorators.test.ts +0 -74
- package/client/client.device.test.ts +0 -181
- package/client/client.page.test.tsx +0 -175
- package/client/client.pure.test.ts +0 -146
- package/client/client.router.test.ts +0 -290
- package/common/Logger.test.ts +0 -45
- package/common/formatAndValidation.test.ts +0 -61
- package/common/httpClient.test.ts +0 -91
- package/common/objectPath.test.ts +0 -108
- package/common/routeConvention.test.ts +0 -132
- package/common/runtimeConfig.test.ts +0 -84
- package/constant/constant.test.ts +0 -374
- package/dictionary/dictionary.test.ts +0 -352
- package/document/document.test.ts +0 -698
- package/fetch/fetch.test.ts +0 -838
- package/server/akanApp.test.ts +0 -130
- package/server/akanServer.test.ts +0 -157
- package/server/artifact/routeClientCache.test.ts +0 -265
- package/server/artifact/routeSeedIndex.test.ts +0 -56
- package/server/artifact/routesManifest.test.ts +0 -64
- package/server/di/diLifecycle.contract.test.ts +0 -168
- package/server/logging/rotatingLogWriter.test.ts +0 -119
- package/server/processMetrics.test.ts +0 -24
- package/server/proxy/webProxyRunner.test.ts +0 -66
- package/server/resolver/resolver.contract.test.ts +0 -594
- package/server/robots.test.ts +0 -16
- package/server/routeTree.test.tsx +0 -198
- package/server/routing/apiRouter.test.ts +0 -136
- package/server/sitemap.test.ts +0 -61
- package/server/systemPages.test.tsx +0 -93
- package/server/webRouter.test.ts +0 -49
- package/service/predefinedAdaptor/compress.adaptor.test.ts +0 -184
- package/service/predefinedAdaptor/solidCache.adaptor.test.ts +0 -107
- package/service/predefinedAdaptor/solidSqlite.test.ts +0 -457
- package/service/service.test.ts +0 -732
- package/signal/signal.test.ts +0 -892
- package/store/stateBuilder.test.ts +0 -168
- package/store/store.test.ts +0 -427
- package/tsconfig.json +0 -5
- package/ui/Constant/schemaDoc.test.ts +0 -113
- package/ui/InfiniteScroll.test.tsx +0 -155
- package/ui/System/Common.test.ts +0 -37
- package/webkit/bootCsr.test.tsx +0 -153
- package/webkit/native.test.tsx +0 -341
- package/webkit/webkit.test.tsx +0 -531
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { BaseEnv, Cls } from "akanjs/base";
|
|
2
|
+
import { ProtobufCompressor } from "./compress.adaptor";
|
|
3
|
+
export interface WsSocketData {
|
|
4
|
+
socketId?: string;
|
|
5
|
+
createdAt?: number;
|
|
6
|
+
}
|
|
7
|
+
export type WsRedisEventHandler = (roomId: string, data: unknown) => void;
|
|
8
|
+
export interface WebsocketAdaptor {
|
|
9
|
+
/** Publish data to a room across all server instances */
|
|
10
|
+
publish(roomId: string, data: unknown): void;
|
|
11
|
+
/** Register an event handler for incoming cross-server messages */
|
|
12
|
+
setEventHandler(handler: WsRedisEventHandler): void;
|
|
13
|
+
/** Unregister the event handler */
|
|
14
|
+
clearEventHandler(): void;
|
|
15
|
+
/** Register endpoint return type info for protobuf encoding */
|
|
16
|
+
registerEndpoint(key: string, returnRef: Cls, arrDepth: number): void;
|
|
17
|
+
/** Register a socket joining a room (tracked in Redis for cross-server awareness) */
|
|
18
|
+
joinRoom(ws: Bun.ServerWebSocket<unknown>, room: string): Promise<void>;
|
|
19
|
+
/** Remove a socket from a room */
|
|
20
|
+
leaveRoom(ws: Bun.ServerWebSocket<unknown>, room: string): Promise<void>;
|
|
21
|
+
/** Remove a socket from all rooms and clean up its Redis state */
|
|
22
|
+
leaveAllRooms(ws: Bun.ServerWebSocket<unknown>): Promise<void>;
|
|
23
|
+
/** Register a socket connection on this server */
|
|
24
|
+
registerSocket(ws: Bun.ServerWebSocket<unknown>, meta?: Record<string, string>): Promise<void>;
|
|
25
|
+
/** Unregister a socket connection */
|
|
26
|
+
unregisterSocket(ws: Bun.ServerWebSocket<unknown>): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
declare const WebSocketRedisAdaptor_base: import("..").AdaptorCls<{}, {
|
|
29
|
+
redis: import("..").InjectInfo<"plug", import("ioredis").default, never, never>;
|
|
30
|
+
compressor: import("..").InjectInfo<"plug", ProtobufCompressor, never, never>;
|
|
31
|
+
serverId: import("..").InjectInfo<"env", string, BaseEnv, never>;
|
|
32
|
+
publisher: import("..").InjectInfo<"plug", import("ioredis").default, never, never>;
|
|
33
|
+
subscriber: import("..").InjectInfo<"plug", import("ioredis").default, never, never>;
|
|
34
|
+
}>;
|
|
35
|
+
export declare class WebSocketRedisAdaptor extends WebSocketRedisAdaptor_base implements WebsocketAdaptor {
|
|
36
|
+
#private;
|
|
37
|
+
onInit(): Promise<void>;
|
|
38
|
+
onDestroy(): Promise<void>;
|
|
39
|
+
publish(roomId: string, data: unknown): void;
|
|
40
|
+
setEventHandler(handler: WsRedisEventHandler): void;
|
|
41
|
+
clearEventHandler(): void;
|
|
42
|
+
registerEndpoint(key: string, returnRef: Cls, arrDepth: number): void;
|
|
43
|
+
joinRoom(ws: Bun.ServerWebSocket<unknown>, room: string): Promise<void>;
|
|
44
|
+
leaveRoom(ws: Bun.ServerWebSocket<unknown>, room: string): Promise<void>;
|
|
45
|
+
leaveAllRooms(ws: Bun.ServerWebSocket<unknown>): Promise<void>;
|
|
46
|
+
registerSocket(ws: Bun.ServerWebSocket<unknown>, meta?: Record<string, string>): Promise<void>;
|
|
47
|
+
unregisterSocket(ws: Bun.ServerWebSocket<unknown>): Promise<void>;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./predefinedAdaptor/index.d.ts";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type Cls, INJECT_META } from "akanjs/base";
|
|
2
|
+
import { Logger } from "akanjs/common";
|
|
3
|
+
import type { DatabaseModel, FilterInstance } from "akanjs/document";
|
|
4
|
+
import { type ExtractInjectInfoObject, type InjectBuilder, InjectInfo } from "./injectInfo.d.ts";
|
|
5
|
+
import type { DatabaseService } from "./types.d.ts";
|
|
6
|
+
interface ServiceOptions {
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
serverMode?: "batch" | "federation";
|
|
9
|
+
}
|
|
10
|
+
export type ServiceType = "database" | "plain";
|
|
11
|
+
export interface Service {
|
|
12
|
+
readonly logger: Logger;
|
|
13
|
+
onInit(): Promise<void>;
|
|
14
|
+
_libsOnInit(): Promise<void>;
|
|
15
|
+
onDestroy(): Promise<void>;
|
|
16
|
+
_libsOnDestroy(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
export type ServiceCls<RefName extends string = string, Methods = {}, InjectMap extends {
|
|
19
|
+
[key: string]: InjectInfo;
|
|
20
|
+
} = {}> = Cls<Methods & ExtractInjectInfoObject<InjectMap> & Service, {
|
|
21
|
+
readonly refName: RefName;
|
|
22
|
+
readonly type: ServiceType;
|
|
23
|
+
readonly [INJECT_META]: InjectMap;
|
|
24
|
+
readonly enabled: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
export declare function serve<RefName extends string, Injection extends InjectBuilder>(refName: RefName, injectBuilder: Injection, ...extendSrvs: Cls[]): ServiceCls<RefName, {}, ReturnType<Injection>>;
|
|
27
|
+
export declare function serve<RefName extends string, Injection extends InjectBuilder>(refName: RefName, option: ServiceOptions, injectBuilder: Injection, ...extendSrvs: Cls[]): ServiceCls<RefName, {}, ReturnType<Injection>>;
|
|
28
|
+
export declare function serve<T extends string, Input, Doc, Model, Obj, Insight, Filter extends FilterInstance, Injection extends InjectBuilder, LibSrvs extends Cls[] = []>(db: DatabaseModel<T, Input, Doc, Model, Obj, Insight, Filter>, injectBuilder: Injection, ...extendSrvs: LibSrvs): ServiceCls<T, DatabaseService<T, Input, Doc, Obj, Model, Insight, Filter, LibSrvs>, ReturnType<Injection>>;
|
|
29
|
+
export declare function serve<T extends string, Input, Doc, Model, Obj, Insight, Filter extends FilterInstance, Injection extends InjectBuilder, LibSrvs extends Cls[] = []>(db: DatabaseModel<T, Input, Doc, Model, Obj, Insight, Filter>, injectBuilder: Injection, ...extendSrvs: LibSrvs): ServiceCls<T, DatabaseService<T, Input, Doc, Obj, Model, Insight, Filter, LibSrvs>, ReturnType<Injection>>;
|
|
30
|
+
export declare function serve<T extends string, Input, Doc, Model, Obj, Insight, Filter extends FilterInstance, Injection extends InjectBuilder, LibSrvs extends ServiceCls[] = []>(db: DatabaseModel<T, Input, Doc, Model, Obj, Insight, Filter>, option: ServiceOptions, injectBuilder: Injection, ...extendSrvs: LibSrvs): ServiceCls<T, DatabaseService<T, Input, Doc, Obj, Model, Insight, Filter, LibSrvs>, ReturnType<Injection>>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { MergeAllKeyOfObjects, PromiseOrObject, UnCls } from "akanjs/base";
|
|
2
|
+
import type { ConstantModel, QueryOf } from "akanjs/constant";
|
|
3
|
+
import type { CRUDEventType, DatabaseModel, DataInputOf, Doc, FindQueryOption, ListQueryOption, SaveEventType } from "akanjs/document";
|
|
4
|
+
import type { ServiceCls } from "./serve.d.ts";
|
|
5
|
+
import type { DatabaseService } from "./types.d.ts";
|
|
6
|
+
export declare class ServiceModel<Srv extends ServiceCls = ServiceCls, CnstModel extends ConstantModel = any, DbModel extends DatabaseModel = any, SrvMap extends {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
} = {
|
|
9
|
+
[K in `${Uncapitalize<Srv["refName"]>}Service`]: UnCls<Srv>;
|
|
10
|
+
}> {
|
|
11
|
+
srv: Srv;
|
|
12
|
+
cnst: CnstModel;
|
|
13
|
+
db: DbModel;
|
|
14
|
+
srvMap: SrvMap;
|
|
15
|
+
constructor(srv: Srv, cnst?: CnstModel, db?: DbModel, srvMap?: {
|
|
16
|
+
[key: string]: ServiceCls;
|
|
17
|
+
});
|
|
18
|
+
static fromModel<Srv extends ServiceCls, CnstModel extends ConstantModel, DbModel extends DatabaseModel>(srv: Srv, cnst: CnstModel, db: DbModel): ServiceModel<Srv, CnstModel, DbModel>;
|
|
19
|
+
static from<Srv extends ServiceCls>(srv: Srv): ServiceModel<Srv, never, never, { [K in `${Uncapitalize<Srv["refName"]>}Service`]: UnCls<Srv>; }>;
|
|
20
|
+
with<SrvModules extends ServiceModel[]>(...srvs: SrvModules): ServiceModel<Srv, CnstModel, DbModel, SrvMap & MergeAllKeyOfObjects<SrvModules, "srvMap">>;
|
|
21
|
+
static getDefaultDbServiceMethods(className: string): {
|
|
22
|
+
[x: string]: ((this: DatabaseService, query: QueryOf<any>, queryOption?: ListQueryOption) => Promise<any>) | ((this: DatabaseService, query: QueryOf<any>, queryOption?: FindQueryOption) => Promise<any>) | ((this: DatabaseService, type: SaveEventType, listener: (doc: Doc, type: CRUDEventType) => PromiseOrObject<void>) => any) | ((this: DatabaseService, id: string, data: DataInputOf) => Promise<any>);
|
|
23
|
+
__get(this: DatabaseService, id: string): Promise<any>;
|
|
24
|
+
__load(this: DatabaseService, id?: string): Promise<any>;
|
|
25
|
+
__loadMany(this: DatabaseService, ids: string[]): Promise<any>;
|
|
26
|
+
__list(this: DatabaseService, query: QueryOf<any>, queryOption?: ListQueryOption): Promise<any>;
|
|
27
|
+
__listIds(this: DatabaseService, query: QueryOf<any>, queryOption?: ListQueryOption): Promise<any>;
|
|
28
|
+
__find(this: DatabaseService, query: QueryOf<any>, queryOption?: FindQueryOption): Promise<any>;
|
|
29
|
+
__findId(this: DatabaseService, query: QueryOf<any>, queryOption?: FindQueryOption): Promise<any>;
|
|
30
|
+
__pick(this: DatabaseService, query: QueryOf<any>, queryOption?: FindQueryOption): Promise<any>;
|
|
31
|
+
__pickId(this: DatabaseService, query: QueryOf<any>, queryOption?: FindQueryOption): Promise<any>;
|
|
32
|
+
__exists(this: DatabaseService, query: QueryOf<any>): Promise<any>;
|
|
33
|
+
__count(this: DatabaseService, query: QueryOf<any>): Promise<any>;
|
|
34
|
+
__insight(this: DatabaseService, query: QueryOf<any>): Promise<any>;
|
|
35
|
+
_preCreate(this: DatabaseService, data: DataInputOf): Promise<DataInputOf>;
|
|
36
|
+
_postCreate(this: DatabaseService, doc: Doc): Promise<any>;
|
|
37
|
+
_preUpdate(this: DatabaseService, id: string, data: Partial<Doc>): Promise<Partial<any>>;
|
|
38
|
+
_postUpdate(this: DatabaseService, doc: Doc): Promise<any>;
|
|
39
|
+
_preRemove(this: DatabaseService, id: string): Promise<void>;
|
|
40
|
+
_postRemove(this: DatabaseService, doc: Doc): Promise<any>;
|
|
41
|
+
listenPre(this: DatabaseService, type: SaveEventType, listener: (doc: Doc, type: CRUDEventType) => PromiseOrObject<void>): any;
|
|
42
|
+
listenPost(this: DatabaseService, type: SaveEventType, listener: (doc: Doc, type: CRUDEventType) => PromiseOrObject<void>): any;
|
|
43
|
+
__create(this: DatabaseService, data: DataInputOf): Promise<any>;
|
|
44
|
+
__update(this: DatabaseService, id: string, data: DataInputOf): Promise<any>;
|
|
45
|
+
__remove(this: DatabaseService, id: string): Promise<Doc>;
|
|
46
|
+
};
|
|
47
|
+
static getFilterServiceMethods(queryKey: string, queryFn: (...args: any[]) => QueryOf<any>): {
|
|
48
|
+
[x: string]: (this: DatabaseService, ...args: any) => any;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AdaptorCls } from "./adapt.d.ts";
|
|
2
|
+
import type { ServiceCls } from "./serve.d.ts";
|
|
3
|
+
export declare class ServiceRegistry {
|
|
4
|
+
#private;
|
|
5
|
+
static setDatabase(refName: string, service: ServiceCls): void;
|
|
6
|
+
static getDatabase(refName: string): ServiceCls | undefined;
|
|
7
|
+
static setPlain(refName: string, service: ServiceCls): void;
|
|
8
|
+
static setAdaptor(refName: string, adaptor: AdaptorCls): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Cls, MergeAllTypes, PromiseOrObject } from "akanjs/base";
|
|
2
|
+
import type { Logger } from "akanjs/common";
|
|
3
|
+
import type { QueryOf } from "akanjs/constant";
|
|
4
|
+
import type { CRUDEventType, DatabaseInstance, DataInputOf, Doc as DbDoc, ExtractQuery, ExtractSort, FilterInstance, FindQueryOption, GetDocObject, ListQueryOption, QueryMethodPart, SaveEventType } from "akanjs/document";
|
|
5
|
+
type ServiceMixinOmitKey = "onInit" | "onDestroy" | "_libsOnInit" | "_libsOnDestroy" | "_preCreate" | "_postCreate" | "_preUpdate" | "_postUpdate" | "_preRemove" | "_postRemove" | "_libsPreCreate" | "_libsPostCreate" | "_libsPreUpdate" | "_libsPostUpdate" | "_libsPreRemove" | "_libsPostRemove";
|
|
6
|
+
export type DatabaseService<T extends string = string, Input = any, Doc = any, Obj = any, Model = any, Insight = any, Filter extends FilterInstance = FilterInstance, LibSrvs extends Cls[] = [], _Query extends ExtractQuery<Filter> = ExtractQuery<Filter>, _Sort extends ExtractSort<Filter> = ExtractSort<Filter>, _CapitalizedRefName extends Capitalize<T> = Capitalize<T>, _DataInputOfDoc extends DataInputOf<Input, Doc> = DataInputOf<Input, Doc>, _QueryOfDoc extends QueryOf<Doc> = QueryOf<Doc>, _FindQueryOption extends FindQueryOption<_Sort, Obj> = FindQueryOption<_Sort, Obj>, _ListQueryOption extends ListQueryOption<_Sort, Obj> = ListQueryOption<_Sort, Obj>, _DocObjectOfDoc = GetDocObject<Doc>, _MixedLibSrv = MergeAllTypes<LibSrvs, ServiceMixinOmitKey>> = {
|
|
7
|
+
logger: Logger;
|
|
8
|
+
__databaseModel: Model;
|
|
9
|
+
__get: (id: string) => Promise<Doc>;
|
|
10
|
+
__load: (id?: string) => Promise<Doc | null>;
|
|
11
|
+
__loadMany: (ids: string[]) => Promise<Doc[]>;
|
|
12
|
+
__create: (data: _DataInputOfDoc) => Promise<Doc>;
|
|
13
|
+
__update: (id: string, data: Partial<Doc>) => Promise<Doc>;
|
|
14
|
+
__remove: (id: string) => Promise<Doc>;
|
|
15
|
+
__list(query?: _QueryOfDoc, queryOption?: _ListQueryOption): Promise<Doc[]>;
|
|
16
|
+
__listIds(query?: _QueryOfDoc, queryOption?: _ListQueryOption): Promise<string[]>;
|
|
17
|
+
__find(query?: _QueryOfDoc, queryOption?: _FindQueryOption): Promise<Doc | null>;
|
|
18
|
+
__findId(query?: _QueryOfDoc, queryOption?: _FindQueryOption): Promise<string | null>;
|
|
19
|
+
__pick(query?: _QueryOfDoc, queryOption?: _FindQueryOption): Promise<Doc>;
|
|
20
|
+
__pickId(query?: _QueryOfDoc, queryOption?: _FindQueryOption): Promise<string>;
|
|
21
|
+
__exists(query?: _QueryOfDoc): Promise<string | null>;
|
|
22
|
+
__count(query?: _QueryOfDoc): Promise<number>;
|
|
23
|
+
__insight(query?: _QueryOfDoc): Promise<Insight>;
|
|
24
|
+
_preCreate?(data: _DataInputOfDoc): PromiseOrObject<_DataInputOfDoc>;
|
|
25
|
+
_postCreate?(doc: Doc): Promise<Doc> | Doc;
|
|
26
|
+
_preUpdate?(id: string, data: Partial<Doc>): PromiseOrObject<Partial<Doc>>;
|
|
27
|
+
_postUpdate?(doc: Doc): Promise<Doc> | Doc;
|
|
28
|
+
_preRemove?(id: string): Promise<void> | void;
|
|
29
|
+
_postRemove?(doc: Doc): Promise<Doc> | Doc;
|
|
30
|
+
__libsPreCreate: (data: _DataInputOfDoc) => Promise<_DataInputOfDoc>;
|
|
31
|
+
__libsPostCreate: (doc: Doc) => Promise<Doc>;
|
|
32
|
+
__libsPreUpdate: (id: string, data: Partial<Doc>) => Promise<Partial<Doc>>;
|
|
33
|
+
__libsPostUpdate: (doc: Doc) => Promise<Doc>;
|
|
34
|
+
__libsPreRemove: (id: string) => Promise<void>;
|
|
35
|
+
__libsPostRemove: (doc: Doc) => Promise<Doc>;
|
|
36
|
+
listenPre: (type: SaveEventType, listener: (doc: Doc, type: CRUDEventType) => PromiseOrObject<void>) => () => void;
|
|
37
|
+
listenPost: (type: SaveEventType, listener: (doc: Doc, type: CRUDEventType) => PromiseOrObject<void>) => () => void;
|
|
38
|
+
} & {
|
|
39
|
+
[key in `${T}Model`]: Model;
|
|
40
|
+
} & {
|
|
41
|
+
[K in `get${_CapitalizedRefName}`]: (id: string) => Promise<Doc>;
|
|
42
|
+
} & {
|
|
43
|
+
[K in `load${_CapitalizedRefName}`]: (id?: string) => Promise<Doc | null>;
|
|
44
|
+
} & {
|
|
45
|
+
[K in `load${_CapitalizedRefName}Many`]: (ids: string[]) => Promise<Doc[]>;
|
|
46
|
+
} & {
|
|
47
|
+
[K in `create${_CapitalizedRefName}`]: (data: _DataInputOfDoc) => Promise<Doc>;
|
|
48
|
+
} & {
|
|
49
|
+
[K in `update${_CapitalizedRefName}`]: (id: string, data: Partial<Doc>) => Promise<Doc>;
|
|
50
|
+
} & {
|
|
51
|
+
[K in `remove${_CapitalizedRefName}`]: (id: string) => Promise<Doc>;
|
|
52
|
+
} & QueryMethodPart<_Query, _Sort, Obj, Doc, Insight, _FindQueryOption, _ListQueryOption, _QueryOfDoc> & {
|
|
53
|
+
[K in keyof _MixedLibSrv]: _MixedLibSrv[K] extends (...args: infer Args) => Promise<infer Value> ? Value extends (infer SingleValue)[] ? SingleValue extends DatabaseInstance ? _DocObjectOfDoc extends GetDocObject<SingleValue> ? (...args: Args) => Promise<Doc[]> : _MixedLibSrv[K] : _MixedLibSrv[K] : Value extends DbDoc<any> ? _DocObjectOfDoc extends GetDocObject<Value> ? (...args: Args) => Promise<Doc> : _MixedLibSrv[K] : _MixedLibSrv[K] : _MixedLibSrv[K];
|
|
54
|
+
};
|
|
55
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./service/index.d.ts";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const BaseInternal_base: import("./internal.d.ts").InternalCls<import("akanjs/service").ServiceModel<typeof import("akanjs/service").BaseService, any, any, {
|
|
2
|
+
baseService: import("akanjs/service").BaseService;
|
|
3
|
+
}>, {}>;
|
|
4
|
+
export declare class BaseInternal extends BaseInternal_base {
|
|
5
|
+
}
|
|
6
|
+
declare const BaseEndpoint_base: import("./endpoint.d.ts").EndpointCls<import("akanjs/service").ServiceModel<typeof import("akanjs/service").BaseService, any, any, {
|
|
7
|
+
baseService: import("akanjs/service").BaseService;
|
|
8
|
+
}>, {
|
|
9
|
+
ping: import("./endpointInfo.d.ts").EndpointInfo<"query", {
|
|
10
|
+
baseService: import("akanjs/service").BaseService;
|
|
11
|
+
}, [], [], [], [], StringConstructor, string, string, false>;
|
|
12
|
+
pingBody: import("./endpointInfo.d.ts").EndpointInfo<"mutation", {
|
|
13
|
+
baseService: import("akanjs/service").BaseService;
|
|
14
|
+
}, ["data"], [arg: string], [], [arg: string], StringConstructor, string, string, false>;
|
|
15
|
+
pingParam: import("./endpointInfo.d.ts").EndpointInfo<"query", {
|
|
16
|
+
baseService: import("akanjs/service").BaseService;
|
|
17
|
+
}, [string], [arg: string], [], [arg: string], StringConstructor, string, string, false>;
|
|
18
|
+
pingQuery: import("./endpointInfo.d.ts").EndpointInfo<"query", {
|
|
19
|
+
baseService: import("akanjs/service").BaseService;
|
|
20
|
+
}, [string], [arg?: string | null | undefined], [], [arg: string | undefined], StringConstructor, string, string, true>;
|
|
21
|
+
cleanup: import("./endpointInfo.d.ts").EndpointInfo<"mutation", {
|
|
22
|
+
baseService: import("akanjs/service").BaseService;
|
|
23
|
+
}, [], [], [], [], BooleanConstructor, boolean, Promise<boolean>, false>;
|
|
24
|
+
wsPing: import("./endpointInfo.d.ts").EndpointInfo<"message", {
|
|
25
|
+
baseService: import("akanjs/service").BaseService;
|
|
26
|
+
}, [string], [arg?: string | null | undefined], [], [arg: string | undefined], StringConstructor, string, string, false>;
|
|
27
|
+
pubsubPing: import("./endpointInfo.d.ts").EndpointInfo<"pubsub", {
|
|
28
|
+
baseService: import("akanjs/service").BaseService;
|
|
29
|
+
}, [], [], [], [], StringConstructor, string, void, false>;
|
|
30
|
+
}>;
|
|
31
|
+
export declare class BaseEndpoint extends BaseEndpoint_base {
|
|
32
|
+
}
|
|
33
|
+
declare const Base_base: import("./serverSignal.d.ts").ServerSignalCls<typeof BaseEndpoint, typeof BaseInternal>;
|
|
34
|
+
export declare class Base extends Base_base {
|
|
35
|
+
}
|
|
36
|
+
export declare const base: import("./signalRegistry.d.ts").ServiceSignal<typeof BaseInternal, typeof BaseEndpoint, typeof Base>;
|
|
37
|
+
export declare const fetch: import("akanjs/fetch").FetchProxy<import("../base.d.ts").Assign<unknown, import("akanjs/fetch").GetFetchTypeFromEndpoint<typeof BaseEndpoint>>, import("akanjs/fetch").GetSliceMetaObjFromDatabaseSignals<[import("./signalRegistry.d.ts").ServiceSignal<typeof BaseInternal, typeof BaseEndpoint, typeof Base>]>>;
|
|
38
|
+
export declare const getSerializedSignal: () => {
|
|
39
|
+
[key: string]: import("./types.d.ts").SerializedSignal;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Assign } from "akanjs/base";
|
|
2
|
+
import { ENDPOINT_META } from "akanjs/base";
|
|
3
|
+
import { type Adaptor, type AdaptorCls, type ServiceModel } from "akanjs/service";
|
|
4
|
+
import { type EndpointBuilder, type EndpointInfo } from "./endpointInfo.d.ts";
|
|
5
|
+
export interface Endpoint extends Adaptor {
|
|
6
|
+
}
|
|
7
|
+
export interface EndpointCls<SrvModule extends ServiceModel = ServiceModel, EndpointInfoObj extends {
|
|
8
|
+
[key: string]: EndpointInfo;
|
|
9
|
+
} = {
|
|
10
|
+
[key: string]: EndpointInfo;
|
|
11
|
+
}> extends AdaptorCls {
|
|
12
|
+
baseName: SrvModule["srv"]["refName"];
|
|
13
|
+
srv: SrvModule;
|
|
14
|
+
[ENDPOINT_META]: EndpointInfoObj;
|
|
15
|
+
}
|
|
16
|
+
type ExtendedEndpointReturn<ClientReturns, Full, Light, Insight> = ClientReturns extends (infer R)[] ? ExtendedEndpointReturn<R, Full, Light, Insight>[] : Full extends ClientReturns ? Full : Light extends ClientReturns ? Light : Insight extends ClientReturns ? Insight : ClientReturns;
|
|
17
|
+
type EndpointMetaOf<EndpCls> = EndpCls extends EndpointCls<any, infer EndpointInfoObj> ? EndpointInfoObj : never;
|
|
18
|
+
type MergeEndpointMetas<EndpClses extends readonly EndpointCls[], Acc = unknown> = EndpClses extends readonly [
|
|
19
|
+
infer First extends EndpointCls,
|
|
20
|
+
...infer Rest extends readonly EndpointCls[]
|
|
21
|
+
] ? MergeEndpointMetas<Rest, Assign<Acc, EndpointMetaOf<First>>> : Acc;
|
|
22
|
+
type ExtendEndpoints<SrvModule extends ServiceModel, LibEndpoints extends readonly EndpointCls[], _Full = NonNullable<SrvModule["cnst"]>["_Full"], _Light = NonNullable<SrvModule["cnst"]>["_Light"], _Insight = NonNullable<SrvModule["cnst"]>["_Insight"], _Merged = MergeEndpointMetas<LibEndpoints>> = {
|
|
23
|
+
[K in keyof _Merged]: _Merged[K] extends EndpointInfo<infer ReqType, infer Srvs, infer ArgNames, infer Args, infer InternalArgs, infer ServerArgs, infer Returns, infer ClientReturns, infer ServerReturns, infer Nullable> ? EndpointInfo<ReqType, Srvs, ArgNames, Args, InternalArgs, ServerArgs, Returns, ExtendedEndpointReturn<ClientReturns, _Full, _Light, _Insight>, ServerReturns, Nullable> : never;
|
|
24
|
+
};
|
|
25
|
+
/** Builds a typed endpoint adaptor from a service module and endpoint builder. */
|
|
26
|
+
export declare function endpoint<SrvModule extends ServiceModel, Builder extends EndpointBuilder<SrvModule>, LibEndpoints extends readonly EndpointCls[]>(srv: SrvModule, builder: Builder, ...libEndpoints: LibEndpoints): EndpointCls<SrvModule, LibEndpoints extends readonly [] ? ReturnType<Builder> : Assign<ReturnType<Builder>, ExtendEndpoints<SrvModule, LibEndpoints>>>;
|
|
27
|
+
export declare function sliceEndpoint<SrvModule extends ServiceModel, Builder extends EndpointBuilder<SrvModule>>(srv: SrvModule, builder: Builder): EndpointCls<SrvModule, ReturnType<Builder>>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type Dayjs, type EnumInstance, type PromiseOrObject } from "akanjs/base";
|
|
2
|
+
import type { ConstantFieldType, ConstantFieldTypeInput, DocumentModel, FieldToValue, ParamFieldType, PlainTypeToFieldType, PurifiedModel } from "akanjs/constant";
|
|
3
|
+
import type { ServiceModel } from "akanjs/service";
|
|
4
|
+
import type { InternalArgCls } from "./internalArg.d.ts";
|
|
5
|
+
import type { ArgType, SignalOption } from "./types.d.ts";
|
|
6
|
+
export type EndpointType = "query" | "mutation" | "pubsub" | "message";
|
|
7
|
+
export interface EndpointArgProps<Optional extends boolean = false> {
|
|
8
|
+
nullable?: Optional;
|
|
9
|
+
example?: string | number | boolean | Dayjs;
|
|
10
|
+
}
|
|
11
|
+
export interface InternalArgProps<Optional extends boolean = false> {
|
|
12
|
+
nullable?: Optional;
|
|
13
|
+
}
|
|
14
|
+
export interface ReturnInfo<Returns extends ConstantFieldTypeInput = any, Nullable extends boolean = false> {
|
|
15
|
+
returnRef: Returns;
|
|
16
|
+
arrDepth: number;
|
|
17
|
+
enum?: EnumInstance;
|
|
18
|
+
nullable?: Nullable;
|
|
19
|
+
}
|
|
20
|
+
export interface ArgInfo<ArgProps = any> {
|
|
21
|
+
type: ArgType;
|
|
22
|
+
name: string;
|
|
23
|
+
argRef: ConstantFieldType;
|
|
24
|
+
arrDepth: number;
|
|
25
|
+
enum?: EnumInstance;
|
|
26
|
+
option?: ArgProps;
|
|
27
|
+
}
|
|
28
|
+
export interface InternalArgInfo<Optional extends boolean = false> {
|
|
29
|
+
argRef: InternalArgCls;
|
|
30
|
+
option?: InternalArgProps<Optional>;
|
|
31
|
+
}
|
|
32
|
+
export declare class EndpointInfo<ReqType extends EndpointType = EndpointType, Srvs extends {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
} = {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}, ArgNames extends string[] = any, Args extends any[] = any, InternalArgs extends any[] = any, ServerArgs extends any[] = any, Returns extends ConstantFieldTypeInput = ConstantFieldTypeInput, ClientReturns = never, ServerReturns = never, Nullable extends boolean = boolean> {
|
|
37
|
+
readonly type: ReqType;
|
|
38
|
+
readonly argNames: ArgNames;
|
|
39
|
+
readonly args: ArgInfo<EndpointArgProps<boolean>>[];
|
|
40
|
+
readonly internalArgs: InternalArgInfo<boolean>[];
|
|
41
|
+
readonly returns: ReturnInfo<Returns, Nullable>;
|
|
42
|
+
readonly signalOption: SignalOption<Returns, Nullable, any>;
|
|
43
|
+
execFn: ((...args: [...ServerArgs, ...InternalArgs]) => PromiseOrObject<any>) | null;
|
|
44
|
+
static getArgInfo(type: ArgType, name: string, arg: ConstantFieldTypeInput, option?: EndpointArgProps<boolean>): ArgInfo;
|
|
45
|
+
static getReturnInfo<Returns extends ConstantFieldTypeInput = ConstantFieldTypeInput, Nullable extends boolean = false>(modelRef: Returns, signalOption?: SignalOption<Returns, Nullable>): ReturnInfo<Returns, Nullable>;
|
|
46
|
+
constructor(type: ReqType, returnRef: Returns, signalOption?: SignalOption<Returns, Nullable>);
|
|
47
|
+
param<ArgName extends string, Arg extends ParamFieldType, _ClientArg = FieldToValue<Arg>, _ServerArg = DocumentModel<_ClientArg>>(name: string, arg: Arg, option?: Omit<EndpointArgProps, "nullable">): EndpointInfo<ReqType, Srvs, [...ArgNames, ArgName], [...Args, arg: _ClientArg], InternalArgs, [...ServerArgs, arg: _ServerArg], Returns, ClientReturns, ServerReturns, Nullable>;
|
|
48
|
+
body<ArgName extends string, ExplicitType = unknown, Arg extends ConstantFieldTypeInput = PlainTypeToFieldType<ExplicitType>, Optional extends boolean = false, _ArgType = unknown extends ExplicitType ? FieldToValue<Arg> : ExplicitType, _ClientArg = PurifiedModel<_ArgType>, _ServerArg = DocumentModel<_ArgType>>(name: ArgName, arg: Arg, option?: EndpointArgProps<Optional>): EndpointInfo<ReqType, Srvs, [...ArgNames, ArgName], Optional extends true ? [...Args, arg?: _ClientArg | null] : [...Args, arg: _ClientArg], InternalArgs, [...ServerArgs, arg: _ServerArg | (Optional extends true ? undefined : never)], Returns, ClientReturns, ServerReturns, Nullable>;
|
|
49
|
+
room<ArgName extends string, ExplicitType = unknown, Arg extends ConstantFieldTypeInput = PlainTypeToFieldType<ExplicitType>, _ArgType = unknown extends ExplicitType ? FieldToValue<Arg> : ExplicitType, _ClientArg = PurifiedModel<_ArgType>, _ServerArg = DocumentModel<_ArgType>>(name: string, arg: Arg, option?: Omit<EndpointArgProps, "nullable">): EndpointInfo<ReqType, Srvs, [...ArgNames, ArgName], [...Args, arg: _ClientArg], InternalArgs, [...ServerArgs, arg: _ServerArg], Returns, ClientReturns, ServerReturns, Nullable>;
|
|
50
|
+
msg<ArgName extends string, ExplicitType = unknown, Arg extends ConstantFieldTypeInput = PlainTypeToFieldType<ExplicitType>, Optional extends boolean = false, _ArgType = unknown extends ExplicitType ? FieldToValue<Arg> : ExplicitType, _ClientArg = PurifiedModel<_ArgType>, _ServerArg = DocumentModel<_ArgType>>(name: string, arg: Arg, option?: EndpointArgProps<Optional>): EndpointInfo<ReqType, Srvs, [...ArgNames, ArgName], Optional extends true ? [...Args, arg?: _ClientArg | null] : [...Args, arg: _ClientArg], InternalArgs, [...ServerArgs, arg: _ServerArg | (Optional extends true ? undefined : never)], Returns, ClientReturns, ServerReturns, Nullable>;
|
|
51
|
+
search<ArgName extends string, ExplicitType = unknown, Arg extends ConstantFieldTypeInput = PlainTypeToFieldType<ExplicitType>, _ArgType = unknown extends ExplicitType ? FieldToValue<Arg> : ExplicitType, _ClientArg = PurifiedModel<_ArgType>, _ServerArg = DocumentModel<_ArgType>>(name: string, arg: Arg, option?: Omit<EndpointArgProps, "nullable">): EndpointInfo<ReqType, Srvs, [...ArgNames, ArgName], [...Args, arg?: _ClientArg | null], InternalArgs, [...ServerArgs, arg: _ServerArg | undefined], Returns, ClientReturns, ServerReturns, Nullable>;
|
|
52
|
+
_addArgs(args: ArgInfo<EndpointArgProps<boolean>>[]): this;
|
|
53
|
+
with<ArgType, Optional extends boolean = false>(argRef: InternalArgCls<ArgType>, option?: InternalArgProps<Optional>): EndpointInfo<ReqType, Srvs, ArgNames, Args, [...InternalArgs, arg: NonNullable<ArgType> | (Optional extends true ? null : never)], ServerArgs, Returns, ClientReturns, ServerReturns, Nullable>;
|
|
54
|
+
_addInternalArgs(args: InternalArgInfo<boolean>[]): this;
|
|
55
|
+
exec<ExecFn extends (this: Srvs, ...args: [...ServerArgs, ...InternalArgs]) => ReqType extends "pubsub" ? Promise<void> | void : PromiseOrObject<DocumentModel<FieldToValue<Returns>> | (Nullable extends true ? null | undefined : never)>>(execFn: ExecFn): EndpointInfo<ReqType, Srvs, ArgNames, Args, InternalArgs, ServerArgs, Returns, FieldToValue<Returns>, ReturnType<ExecFn>, Nullable>;
|
|
56
|
+
getPath(key: string): string;
|
|
57
|
+
}
|
|
58
|
+
export type BuildEndpoint<SrvModule extends ServiceModel = ServiceModel> = {
|
|
59
|
+
query: <Returns extends ConstantFieldTypeInput = ConstantFieldTypeInput, Nullable extends boolean = false>(returnRef: Returns, signalOption?: SignalOption<Returns, Nullable>) => EndpointInfo<"query", SrvModule["srvMap"], [], [], [], [], Returns, never, never, Nullable>;
|
|
60
|
+
mutation: <Returns extends ConstantFieldTypeInput = ConstantFieldTypeInput, Nullable extends boolean = false>(returnRef: Returns, signalOption?: SignalOption<Returns, Nullable>) => EndpointInfo<"mutation", SrvModule["srvMap"], [], [], [], [], Returns, never, never, Nullable>;
|
|
61
|
+
pubsub: <Returns extends ConstantFieldTypeInput = ConstantFieldTypeInput, Nullable extends boolean = false>(returnRef: Returns, signalOption?: SignalOption<Returns, Nullable>) => EndpointInfo<"pubsub", SrvModule["srvMap"], [], [], [], [], Returns, never, never, Nullable>;
|
|
62
|
+
message: <Returns extends ConstantFieldTypeInput = ConstantFieldTypeInput, Nullable extends boolean = false>(returnRef: Returns, signalOption?: SignalOption<Returns, Nullable>) => EndpointInfo<"message", SrvModule["srvMap"], [], [], [], [], Returns, never, never, Nullable>;
|
|
63
|
+
};
|
|
64
|
+
export declare const buildEndpoint: BuildEndpoint<any>;
|
|
65
|
+
export type EndpointBuilder<SrvModule extends ServiceModel = ServiceModel> = (builder: BuildEndpoint<SrvModule>) => {
|
|
66
|
+
[key: string]: EndpointInfo;
|
|
67
|
+
};
|
|
68
|
+
export type EndpInfoReqType<E> = E extends EndpointInfo<infer T, any, any, any, any, any, any, any, any, any> ? T : never;
|
|
69
|
+
export type EndpInfoSrvs<E> = E extends EndpointInfo<any, infer S, any, any, any, any, any, any, any, any> ? S : never;
|
|
70
|
+
export type EndpInfoArgNames<E> = E extends EndpointInfo<any, any, infer N, any, any, any, any, any, any, any> ? N : never;
|
|
71
|
+
export type EndpInfoArgs<E> = E extends EndpointInfo<any, any, any, infer A, any, any, any, any, any, any> ? A : never;
|
|
72
|
+
export type EndpInfoInternalArgs<E> = E extends EndpointInfo<any, any, any, any, infer I, any, any, any, any, any> ? I : never;
|
|
73
|
+
export type EndpInfoServerArgs<E> = E extends EndpointInfo<any, any, any, any, any, infer S, any, any, any, any> ? S : never;
|
|
74
|
+
export type EndpInfoReturnRef<E> = E extends EndpointInfo<any, any, any, any, any, any, infer R, any, any, any> ? R : never;
|
|
75
|
+
export type EndpInfoClientReturns<E> = E extends EndpointInfo<any, any, any, any, any, any, any, infer R, any, any> ? R : never;
|
|
76
|
+
export type EndpInfoServerReturns<E> = E extends EndpointInfo<any, any, any, any, any, any, any, any, infer R, any> ? R : never;
|
|
77
|
+
export type EndpInfoNullable<E> = E extends EndpointInfo<any, any, any, any, any, any, any, any, any, infer N> ? N : never;
|