akanjs 2.3.8-rc.2 → 2.3.8-rc.4
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/base/symbols.ts +3 -0
- package/dictionary/dictInfo.ts +58 -45
- package/dictionary/locale.ts +97 -52
- package/document/database.ts +3 -7
- package/document/filterMeta.ts +18 -2
- package/package.json +1 -1
- package/service/injectInfo.ts +26 -12
- package/service/predefinedAdaptor/cache.adaptor.ts +8 -9
- package/service/predefinedAdaptor/solidCache.adaptor.ts +3 -4
- package/signal/endpoint.ts +14 -6
- package/signal/slice.ts +11 -3
- package/types/base/symbols.d.ts +3 -0
- package/types/dictionary/base.dictionary.d.ts +1 -1
- package/types/dictionary/dictInfo.d.ts +24 -11
- package/types/dictionary/locale.d.ts +39 -40
- package/types/document/database.d.ts +3 -6
- package/types/document/filterMeta.d.ts +25 -3
- package/types/service/injectInfo.d.ts +8 -4
- package/types/service/predefinedAdaptor/cache.adaptor.d.ts +7 -12
- package/types/service/predefinedAdaptor/solidCache.adaptor.d.ts +3 -8
- package/types/signal/endpoint.d.ts +16 -6
- package/types/signal/signalRegistry.d.ts +2 -14
- package/types/signal/slice.d.ts +13 -3
package/types/signal/slice.d.ts
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
import { type Assign, type Cls, type MergeAllKeyOfObjects, SLICE_META } from "akanjs/base";
|
|
1
|
+
import { type Assign, type Cls, type MergeAllKeyOfObjects, SLICE_DICT_SHAPE, SLICE_META } from "akanjs/base";
|
|
2
2
|
import type { DocumentModel, QueryOf } from "akanjs/constant";
|
|
3
3
|
import type { FilterInstance } from "akanjs/document";
|
|
4
4
|
import { type Adaptor, type AdaptorCls, type ServiceModel } from "akanjs/service";
|
|
5
5
|
import type { Guard, GuardCls } from "./guard.d.ts";
|
|
6
6
|
import { type SliceBuilder, type SliceInfo, type SliceInfoArgNames, type SliceInfoArgs, type SliceInfoInternalArgs, type SliceInfoServerArgs, type SliceInfoSrvs } from "./sliceInfo.d.ts";
|
|
7
7
|
import type { CnstFull, CnstInput, CnstInsight, CnstLight, DbFilter, SrvMap, SrvRefName } from "./types.d.ts";
|
|
8
|
-
export
|
|
8
|
+
export type SliceDictArgShape = {
|
|
9
|
+
[key: string]: readonly string[];
|
|
10
|
+
};
|
|
11
|
+
export type SliceDictShape<SliceInfoObj extends {
|
|
12
|
+
[key: string]: SliceInfo;
|
|
13
|
+
}> = {
|
|
14
|
+
[K in keyof SliceInfoObj]: SliceInfoArgNames<SliceInfoObj[K]>;
|
|
15
|
+
};
|
|
16
|
+
export interface Slice<DictShape extends SliceDictArgShape = Record<never, never>> extends Adaptor {
|
|
17
|
+
readonly [SLICE_DICT_SHAPE]: DictShape;
|
|
9
18
|
}
|
|
10
19
|
export type SliceCls<SrvModule extends ServiceModel = ServiceModel, SliceInfoObj extends {
|
|
11
20
|
[key: string]: SliceInfo;
|
|
12
21
|
} = {
|
|
13
22
|
[key: string]: SliceInfo;
|
|
14
|
-
}> = AdaptorCls & {
|
|
23
|
+
}> = AdaptorCls<Slice<SliceDictShape<SliceInfoObj>>> & {
|
|
15
24
|
baseName: SrvRefName<SrvModule>;
|
|
16
25
|
srv: SrvModule;
|
|
26
|
+
prototype: Slice<SliceDictShape<SliceInfoObj>>;
|
|
17
27
|
[SLICE_META]: SliceInfoObj;
|
|
18
28
|
getGuards: GuardCls[];
|
|
19
29
|
cruGuards: GuardCls[];
|