libmodulor 0.16.0 → 0.18.0
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 +14 -0
- package/README.md +1 -1
- package/dist/esm/app/workers/AppSrcFilePathBuilder.js +1 -1
- package/dist/esm/apps/Helper/src/lib/project.js +6 -6
- package/dist/esm/apps/Helper/src/ucds/CreateProjectUCD.js +1 -1
- package/dist/esm/dt/DataType.d.ts +9 -9
- package/dist/esm/dt/base/TBase.d.ts +1 -1
- package/dist/esm/dt/base/TBoolean.d.ts +1 -1
- package/dist/esm/dt/base/TInt.d.ts +1 -1
- package/dist/esm/dt/base/TNumber.d.ts +1 -1
- package/dist/esm/dt/final/TDateISO8601.d.ts +1 -1
- package/dist/esm/dt/final/TEmail.js +1 -1
- package/dist/esm/dt/final/TFile.d.ts +1 -1
- package/dist/esm/dt/final/TGeolocation.d.ts +1 -1
- package/dist/esm/dt/final/TJSONString.d.ts +1 -1
- package/dist/esm/dt/final/TJSONString.js +1 -1
- package/dist/esm/dt/final/TJWT.d.ts +1 -1
- package/dist/esm/dt/final/TJWT.js +1 -1
- package/dist/esm/dt/final/TURL.d.ts +1 -1
- package/dist/esm/dt/final/TURL.js +1 -1
- package/dist/esm/dt/index.d.ts +16 -16
- package/dist/esm/dt/index.js +8 -8
- package/dist/esm/i18n/locales/en.js +2 -2
- package/dist/esm/i18n/locales/fr.js +3 -3
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.react.d.ts +4 -3
- package/dist/esm/index.react.js +2 -1
- package/dist/esm/index.rn.d.ts +1 -0
- package/dist/esm/index.rn.js +1 -0
- package/dist/esm/index.web.d.ts +1 -1
- package/dist/esm/index.web.js +1 -1
- package/dist/esm/std/HTTPAPICallExecutor.d.ts +2 -5
- package/dist/esm/std/HTTPAPICaller.d.ts +6 -0
- package/dist/esm/std/consts.d.ts +1 -1
- package/dist/esm/std/impl/JoseJWTManager.js +1 -1
- package/dist/esm/std/impl/MistralAILLMManager.js +2 -2
- package/dist/esm/std/impl/NodeCryptoManager.d.ts +1 -1
- package/dist/esm/std/impl/NodeEnvironmentManager.js +1 -1
- package/dist/esm/std/impl/NodeFSManager.js +1 -1
- package/dist/esm/std/impl/OllamaLLMManager.js +1 -1
- package/dist/esm/std/impl/OpenAILLMManager.js +2 -2
- package/dist/esm/std/impl/SimpleHTTPAPICaller.js +2 -2
- package/dist/esm/std/impl/WebCryptoManager.d.ts +1 -1
- package/dist/esm/std/index.d.ts +3 -3
- package/dist/esm/std/index.js +3 -3
- package/dist/esm/target/lib/cli/CommandExecutor.js +2 -2
- package/dist/esm/target/lib/react/DIContextProvider.d.ts +3 -5
- package/dist/esm/target/lib/react/DIContextProvider.js +4 -3
- package/dist/esm/target/lib/react/StyleContextProvider.d.ts +32 -0
- package/dist/esm/target/lib/react/StyleContextProvider.js +17 -0
- package/dist/esm/target/lib/react/UCContainer.js +4 -3
- package/dist/esm/target/lib/react/UCEntrypoint.d.ts +2 -2
- package/dist/esm/target/lib/react/UCEntrypoint.js +3 -3
- package/dist/esm/target/lib/react/UCOutputFieldValueFragment.d.ts +5 -6
- package/dist/esm/target/lib/react/UCOutputFieldValueFragment.js +4 -4
- package/dist/esm/target/lib/react/UCPanel.js +15 -21
- package/dist/esm/target/lib/react/entrypoint.d.ts +1 -1
- package/dist/esm/target/lib/react/form.d.ts +10 -11
- package/dist/esm/target/lib/react/form.js +4 -0
- package/dist/esm/target/lib/react/touchable.d.ts +2 -3
- package/dist/esm/target/lib/react/useAction.d.ts +1 -1
- package/dist/esm/target/lib/react/useAction.js +11 -13
- package/dist/esm/target/lib/rn/input.d.ts +2 -2
- package/dist/esm/target/lib/rn/input.js +3 -3
- package/dist/esm/target/lib/server/RequestChecker.js +1 -1
- package/dist/esm/target/lib/server/ServerRequestHandler.js +3 -3
- package/dist/esm/target/lib/web/input.d.ts +2 -3
- package/dist/esm/target/lib/web/input.js +3 -4
- package/dist/esm/target/node-core-cli/NodeCoreCLIManager.js +1 -1
- package/dist/esm/target/node-core-cli/commands.js +1 -1
- package/dist/esm/target/node-express-server/NodeExpressServerManager.js +1 -1
- package/dist/esm/target/node-hono-server/NodeHonoServerManager.js +1 -1
- package/dist/esm/target/node-mcp-server/NodeLocalStdioMCPServerManager.js +2 -2
- package/dist/esm/target/node-mcp-server/funcs.js +1 -1
- package/dist/esm/target/react-native-pure/UCAutoExecLoader.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCAutoExecLoader.js +4 -2
- package/dist/esm/target/react-native-pure/UCEntrypointTouchable.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCEntrypointTouchable.js +4 -3
- package/dist/esm/target/react-native-pure/UCExecTouchable.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCExecTouchable.js +4 -3
- package/dist/esm/target/react-native-pure/UCForm.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCForm.js +4 -5
- package/dist/esm/target/react-native-pure/UCFormField.js +6 -6
- package/dist/esm/target/react-native-pure/UCFormFieldControl.d.ts +2 -2
- package/dist/esm/target/react-native-pure/UCFormFieldControl.js +63 -6
- package/dist/esm/target/react-native-pure/UCFormFieldDesc.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCFormFieldDesc.js +4 -2
- package/dist/esm/target/react-native-pure/UCFormFieldErr.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCFormFieldErr.js +4 -2
- package/dist/esm/target/react-native-pure/UCFormFieldLabel.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCFormFieldLabel.js +6 -2
- package/dist/esm/target/react-native-pure/UCFormSubmitControl.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCFormSubmitControl.js +4 -3
- package/dist/esm/target/react-native-pure/UCOutputFieldValue.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCOutputFieldValue.js +4 -3
- package/dist/esm/target/react-web-pure/UCAutoExecLoader.d.ts +1 -1
- package/dist/esm/target/react-web-pure/UCAutoExecLoader.js +4 -2
- package/dist/esm/target/react-web-pure/UCEntrypointTouchable.d.ts +2 -2
- package/dist/esm/target/react-web-pure/UCEntrypointTouchable.js +5 -3
- package/dist/esm/target/react-web-pure/UCExecTouchable.d.ts +2 -2
- package/dist/esm/target/react-web-pure/UCExecTouchable.js +5 -3
- package/dist/esm/target/react-web-pure/UCForm.d.ts +1 -1
- package/dist/esm/target/react-web-pure/UCForm.js +6 -5
- package/dist/esm/target/react-web-pure/UCFormField.d.ts +1 -1
- package/dist/esm/target/react-web-pure/UCFormField.js +6 -7
- package/dist/esm/target/react-web-pure/UCFormFieldControl.d.ts +3 -3
- package/dist/esm/target/react-web-pure/UCFormFieldControl.js +27 -8
- package/dist/esm/target/react-web-pure/UCFormFieldDesc.d.ts +2 -2
- package/dist/esm/target/react-web-pure/UCFormFieldDesc.js +5 -3
- package/dist/esm/target/react-web-pure/UCFormFieldErr.d.ts +2 -2
- package/dist/esm/target/react-web-pure/UCFormFieldErr.js +5 -3
- package/dist/esm/target/react-web-pure/UCFormFieldLabel.d.ts +2 -2
- package/dist/esm/target/react-web-pure/UCFormFieldLabel.js +7 -4
- package/dist/esm/target/react-web-pure/UCFormSubmitControl.d.ts +2 -2
- package/dist/esm/target/react-web-pure/UCFormSubmitControl.js +5 -3
- package/dist/esm/target/react-web-pure/UCOutputFieldValue.d.ts +2 -2
- package/dist/esm/target/react-web-pure/UCOutputFieldValue.js +5 -4
- package/dist/esm/testing/AppTester.d.ts +2 -2
- package/dist/esm/testing/AppTester.js +2 -2
- package/dist/esm/testing/UCDefASTParser.js +1 -1
- package/dist/esm/testing/impl/SimpleAppDocsEmitter.js +1 -1
- package/dist/esm/testing/impl/TypeScriptLibUCDefASTParser.d.ts +1 -1
- package/dist/esm/testing/impl/TypeScriptLibUCDefASTParser.js +2 -3
- package/dist/esm/testing/index.d.ts +6 -6
- package/dist/esm/testing/index.js +2 -2
- package/dist/esm/testing/uc-auth.js +1 -1
- package/dist/esm/testing/workers/AppTesterCtxInitializer.js +1 -1
- package/dist/esm/testing/workers/UCExecutor.js +1 -1
- package/dist/esm/testing/workers/checkers/UCDefSourcesChecker.d.ts +1 -1
- package/dist/esm/testing/workers/checkers/UCDefSourcesChecker.js +3 -3
- package/dist/esm/uc/UC.d.ts +2 -2
- package/dist/esm/uc/UC.js +2 -2
- package/dist/esm/uc/UCInputField.d.ts +1 -1
- package/dist/esm/uc/helpers/UCOutputReader.d.ts +3 -3
- package/dist/esm/uc/impl/HTTPUCTransporter.d.ts +1 -1
- package/dist/esm/uc/impl/HTTPUCTransporter.js +3 -4
- package/dist/esm/uc/impl/InMemoryUCDataStore.d.ts +1 -1
- package/dist/esm/uc/impl/KnexUCDataStore.d.ts +1 -1
- package/dist/esm/uc/impl/RNUCClientConfirmManager.d.ts +10 -0
- package/dist/esm/uc/impl/RNUCClientConfirmManager.js +44 -0
- package/dist/esm/uc/impl/SimpleUCManager.d.ts +2 -2
- package/dist/esm/uc/index.d.ts +30 -30
- package/dist/esm/uc/index.js +30 -30
- package/dist/esm/uc/io/input/AggregateInput.d.ts +1 -1
- package/dist/esm/uc/io/input/ListInput.d.ts +1 -1
- package/dist/esm/uc/main.d.ts +1 -1
- package/dist/esm/uc/manager.d.ts +2 -2
- package/dist/esm/uc/output-part.d.ts +1 -1
- package/dist/esm/uc/policy.d.ts +1 -1
- package/dist/esm/uc/transporter.d.ts +1 -1
- package/dist/esm/uc/utils/appendUCInputToURL.d.ts +1 -1
- package/dist/esm/uc/utils/fmtVal.d.ts +1 -1
- package/dist/esm/uc/utils/rInput.d.ts +1 -1
- package/dist/esm/uc/utils/recIs.d.ts +1 -1
- package/dist/esm/uc/utils/ucHTTPContract.d.ts +1 -1
- package/dist/esm/uc/utils/ucMountingPoint.d.ts +1 -1
- package/dist/esm/uc/workers/SimpleAggregateFinder.d.ts +1 -1
- package/dist/esm/uc/workers/SimpleAggregateOwnershipChecker.d.ts +2 -2
- package/dist/esm/uc/workers/UCBuilder.d.ts +1 -1
- package/dist/esm/uc/workers/UCExecChecker.d.ts +1 -1
- package/dist/esm/uc/workers/UCInputFilesProcessor.d.ts +1 -1
- package/dist/esm/uc/workers/UCInputValidator.d.ts +1 -1
- package/dist/esm/utils/index.d.ts +1 -1
- package/dist/esm/utils/ioc/bindNodeCore.js +1 -1
- package/dist/esm/utils/ioc/bindRN.js +5 -0
- package/dist/esm/utils/numbers/fmt.js +1 -1
- package/package.json +8 -8
- package/pnpm-workspace.yaml +5 -4
- package/tsconfig.json +36 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useDIContext } from '../lib/react/DIContextProvider.js';
|
|
3
|
-
|
|
3
|
+
import { useStyleContext } from '../lib/react/StyleContextProvider.js';
|
|
4
|
+
export function UCFormFieldDesc({ f, }) {
|
|
4
5
|
const { wordingManager } = useDIContext();
|
|
6
|
+
const { formFieldDesc } = useStyleContext();
|
|
5
7
|
const { desc } = wordingManager.ucif(f);
|
|
6
8
|
if (!desc) {
|
|
7
9
|
return null;
|
|
8
10
|
}
|
|
9
|
-
return
|
|
11
|
+
return (_jsx("div", { className: formFieldDesc?.className, style: formFieldDesc?.style, children: desc }));
|
|
10
12
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import type { UCFormFieldErrProps } from '../lib/react/form.js';
|
|
3
|
-
export declare function UCFormFieldErr({
|
|
3
|
+
export declare function UCFormFieldErr({ errMsg }: UCFormFieldErrProps): ReactElement;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useStyleContext } from '../lib/react/StyleContextProvider.js';
|
|
3
|
+
export function UCFormFieldErr({ errMsg }) {
|
|
4
|
+
const { formFieldErr } = useStyleContext();
|
|
5
|
+
return (_jsx("div", { className: formFieldErr?.className, style: formFieldErr?.style, children: errMsg }));
|
|
4
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import type { DataType } from '../../dt/index.js';
|
|
3
3
|
import type { UCFormFieldLabelProps } from '../lib/react/form.js';
|
|
4
|
-
export declare function UCFormFieldLabel<T extends DataType>({
|
|
4
|
+
export declare function UCFormFieldLabel<T extends DataType>({ f, }: UCFormFieldLabelProps<T>): ReactElement;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ucifId } from '../../uc/index.js';
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ucifId, ucifIsMandatory } from '../../uc/index.js';
|
|
3
3
|
import { useDIContext } from '../lib/react/DIContextProvider.js';
|
|
4
|
-
|
|
4
|
+
import { useStyleContext } from '../lib/react/StyleContextProvider.js';
|
|
5
|
+
export function UCFormFieldLabel({ f, }) {
|
|
5
6
|
const { wordingManager } = useDIContext();
|
|
7
|
+
const { formFieldLabel } = useStyleContext();
|
|
6
8
|
const { label } = wordingManager.ucif(f);
|
|
7
|
-
|
|
9
|
+
const mandatory = ucifIsMandatory(f.def);
|
|
10
|
+
return (_jsxs("label", { className: formFieldLabel?.className, htmlFor: ucifId(f.key), style: formFieldLabel?.style, children: [label, mandatory && ' *'] }));
|
|
8
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import type { UCInput, UCOPIBase } from '../../uc/index.js';
|
|
3
3
|
import type { UCFormSubmitControlProps } from '../lib/react/form.js';
|
|
4
|
-
export declare function UCFormSubmitControl<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined>({
|
|
4
|
+
export declare function UCFormSubmitControl<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined>({ execState, disabled, uc, }: UCFormSubmitControlProps<I, OPI0, OPI1>): ReactElement;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useDIContext } from '../lib/react/DIContextProvider.js';
|
|
3
|
-
|
|
3
|
+
import { useStyleContext } from '../lib/react/StyleContextProvider.js';
|
|
4
|
+
export function UCFormSubmitControl({ execState, disabled, uc, }) {
|
|
4
5
|
const { wordingManager } = useDIContext();
|
|
5
|
-
|
|
6
|
+
const { formSubmitControl } = useStyleContext();
|
|
7
|
+
return (_jsx("input", { className: formSubmitControl?.className, disabled: disabled, style: formSubmitControl?.style, type: "submit", value: wordingManager.ucISubmit(uc.def, execState) }));
|
|
6
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import type { DataType } from '../../dt/index.js';
|
|
3
3
|
import type { UCOPIBase } from '../../uc/index.js';
|
|
4
4
|
import { type Props } from '../lib/react/UCOutputFieldValueFragment.js';
|
|
5
|
-
export declare function UCOutputFieldValue<OPI extends UCOPIBase, T extends DataType>(
|
|
5
|
+
export declare function UCOutputFieldValue<OPI extends UCOPIBase, T extends DataType>(props: Props<OPI, T>): ReactElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useStyleContext } from '../lib/react/StyleContextProvider.js';
|
|
2
3
|
import { UCOutputFieldValueFragment, } from '../lib/react/UCOutputFieldValueFragment.js';
|
|
3
|
-
export function UCOutputFieldValue(
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export function UCOutputFieldValue(props) {
|
|
5
|
+
const { outputFieldValue } = useStyleContext();
|
|
6
|
+
return (_jsx("span", { className: outputFieldValue?.className, style: outputFieldValue?.style, children: _jsx(UCOutputFieldValueFragment, { ...props }) }));
|
|
6
7
|
}
|
|
@@ -9,15 +9,15 @@ import type { AppTesterFlow, AppTesterFlowExecOutput } from './flow.js';
|
|
|
9
9
|
import { SimpleHTMLAppTestReportEmitter } from './impl/SimpleHTMLAppTestReportEmitter.js';
|
|
10
10
|
import { type UCInputFiller } from './uc-input.js';
|
|
11
11
|
import type { AppDocsEmitter } from './workers/AppDocsEmitter.js';
|
|
12
|
-
import type { AppTestSuiteTestResult } from './workers/AppTestSuiteEmitter.js';
|
|
13
12
|
import { AppTesterCtxInitializer } from './workers/AppTesterCtxInitializer.js';
|
|
14
|
-
import
|
|
13
|
+
import type { AppTestSuiteTestResult } from './workers/AppTestSuiteEmitter.js';
|
|
15
14
|
import { AppFolderChecker } from './workers/checkers/AppFolderChecker.js';
|
|
16
15
|
import { AppI18nChecker } from './workers/checkers/AppI18nChecker.js';
|
|
17
16
|
import { AppIndexChecker } from './workers/checkers/AppIndexChecker.js';
|
|
18
17
|
import { AppManifestChecker } from './workers/checkers/AppManifestChecker.js';
|
|
19
18
|
import { UCDefChecker } from './workers/checkers/UCDefChecker.js';
|
|
20
19
|
import { UCDefSourcesChecker } from './workers/checkers/UCDefSourcesChecker.js';
|
|
20
|
+
import { UCExecutor, type UCExecutorExecOutput, type Input as UCExecutorInput } from './workers/UCExecutor.js';
|
|
21
21
|
export interface AppTesterInitArgs {
|
|
22
22
|
appPath: FilePath;
|
|
23
23
|
configurator: AppTesterConfigurator;
|
|
@@ -22,13 +22,13 @@ import { defaultUCAuthSetters } from './uc-auth.js';
|
|
|
22
22
|
import { allWithExamples, defaultUCInputFillers, } from './uc-input.js';
|
|
23
23
|
import { awaitForSrcImport } from './utils.js';
|
|
24
24
|
import { AppTesterCtxInitializer } from './workers/AppTesterCtxInitializer.js';
|
|
25
|
-
import { UCExecutor, } from './workers/UCExecutor.js';
|
|
26
25
|
import { AppFolderChecker } from './workers/checkers/AppFolderChecker.js';
|
|
27
26
|
import { AppI18nChecker } from './workers/checkers/AppI18nChecker.js';
|
|
28
27
|
import { AppIndexChecker } from './workers/checkers/AppIndexChecker.js';
|
|
29
28
|
import { AppManifestChecker } from './workers/checkers/AppManifestChecker.js';
|
|
30
29
|
import { UCDefChecker } from './workers/checkers/UCDefChecker.js';
|
|
31
30
|
import { UCDefSourcesChecker, } from './workers/checkers/UCDefSourcesChecker.js';
|
|
31
|
+
import { UCExecutor, } from './workers/UCExecutor.js';
|
|
32
32
|
let AppTester = class AppTester {
|
|
33
33
|
appDocsEmitter;
|
|
34
34
|
appFolderChecker;
|
|
@@ -85,8 +85,8 @@ let AppTester = class AppTester {
|
|
|
85
85
|
}
|
|
86
86
|
async checkAppI18n() {
|
|
87
87
|
const { errors } = await this.appI18nChecker.exec({
|
|
88
|
-
appManifest: this.ctx.appManifest,
|
|
89
88
|
appI18n: this.ctx.appI18n,
|
|
89
|
+
appManifest: this.ctx.appManifest,
|
|
90
90
|
});
|
|
91
91
|
if (errors.length > 0) {
|
|
92
92
|
throw new Error(errors[0]);
|
|
@@ -35,8 +35,8 @@ export function initOutputItem() {
|
|
|
35
35
|
lifecycleServerPolicy: null,
|
|
36
36
|
lifecycleServerSteps: [],
|
|
37
37
|
metadataAction: null,
|
|
38
|
-
metadataIcon: null,
|
|
39
38
|
metadataBeta: null,
|
|
39
|
+
metadataIcon: null,
|
|
40
40
|
metadataName: null,
|
|
41
41
|
metadataNew: null,
|
|
42
42
|
metadataSensitive: null,
|
|
@@ -175,7 +175,7 @@ function fmtTechSummaryFieldVal(field) {
|
|
|
175
175
|
if (err) {
|
|
176
176
|
res += `❌ ${err}`;
|
|
177
177
|
}
|
|
178
|
-
res = res.replace(/[\u00A0-\u9999
|
|
178
|
+
res = res.replace(/[\u00A0-\u9999<>&]/g, (i) => `&#${i.charCodeAt(0)};`); // TS generics considered as HTML
|
|
179
179
|
res = res.replaceAll('|', '\\|'); // TS intersection vs Markdown table column
|
|
180
180
|
return res;
|
|
181
181
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FilePath } from '../../dt/index.js';
|
|
2
2
|
import type { FSManager, Logger } from '../../std/index.js';
|
|
3
|
-
import type { OnImport, OnInputType, OnMainStep, OnMetadata, OnOPIType, OnPolicy, OnVariable, UCDefASTParser } from '../UCDefASTParser.js';
|
|
4
3
|
import type { AppTesterOptsAllSet } from '../opts.js';
|
|
4
|
+
import type { OnImport, OnInputType, OnMainStep, OnMetadata, OnOPIType, OnPolicy, OnVariable, UCDefASTParser } from '../UCDefASTParser.js';
|
|
5
5
|
export declare class TypeScriptLibUCDefASTParser implements UCDefASTParser {
|
|
6
6
|
private fsManager;
|
|
7
7
|
private logger;
|
|
@@ -11,11 +11,10 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
11
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
12
|
};
|
|
13
13
|
import { inject, injectable } from 'inversify';
|
|
14
|
-
import { isClassDeclaration, isObjectLiteralExpression, isPropertyAssignment, } from 'typescript';
|
|
14
|
+
import typescript, { isClassDeclaration, isObjectLiteralExpression, isPropertyAssignment, } from 'typescript';
|
|
15
15
|
// To avoid the following error when used in a consumer :
|
|
16
16
|
// SyntaxError: Named export 'ModuleKind' not found. The requested module 'typescript' is a CommonJS module, which may not support all module.exports as named exports.
|
|
17
17
|
// CommonJS modules can always be imported via the default export
|
|
18
|
-
import typescript from 'typescript';
|
|
19
18
|
const { ModuleKind, ModuleResolutionKind, ScriptTarget, createProgram, flattenDiagnosticMessageText, forEachChild, getPreEmitDiagnostics, isIdentifier, isImportDeclaration, isPropertySignature, isStringLiteral, isTypeReferenceNode, isVariableStatement, } = typescript;
|
|
20
19
|
import { UC_MAIN_CLIENT_SUFFIX, UC_MAIN_SERVER_SUFFIX, UC_MAIN_STEP_PREFIX_REGULAR, UC_MAIN_SUFFIX, UC_POLICY_SUFFIX, } from '../../convention.js';
|
|
21
20
|
const ERR_TS_CONFIG_INVALID = (configFileName) => `The root ${configFileName} could not be opened or parsed`;
|
|
@@ -74,7 +73,7 @@ let TypeScriptLibUCDefASTParser = class TypeScriptLibUCDefASTParser {
|
|
|
74
73
|
try {
|
|
75
74
|
tsConfig = JSON.parse(await this.fsManager.cat(tsConfigPath));
|
|
76
75
|
}
|
|
77
|
-
catch (
|
|
76
|
+
catch (_err) {
|
|
78
77
|
throw new Error(ERR_TS_CONFIG_INVALID(configFileName));
|
|
79
78
|
}
|
|
80
79
|
const compilerOptionsBase = tsConfig.compilerOptions;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export type { AppDocsEmitter } from './workers/AppDocsEmitter.js';
|
|
2
1
|
export type { AppTesterConfigurator, AppTesterConfiguratorAuthSettersConfig, AppTesterConfiguratorInputFillers, AppTesterConfiguratorSideEffects, AppTesterConfiguratorSideEffectsSerialized, AppTesterConfiguratorSpecificAssertions, } from './AppTesterConfigurator.js';
|
|
3
|
-
export type { AppTestSuiteEmitter } from './workers/AppTestSuiteEmitter.js';
|
|
4
|
-
export type { AppTestSuiteRunner } from './workers/AppTestSuiteRunner.js';
|
|
5
2
|
export type { AppTesterCtx, AppTesterUCDRef } from './ctx.js';
|
|
6
3
|
export type { AppTesterFlow, AppTesterFlowInputOverride } from './flow.js';
|
|
7
4
|
export { type AppTesterOpts, type AppTesterOptsAllSet, type AppTesterTypeScriptOpts, DEFAULT_APP_TESTER_OPTS, } from './opts.js';
|
|
8
|
-
export { type CustomUCAuthSetter, DEFAULT_UC_AUTH_SETTERS, type DefaultUCAuthSetter, type UCAuthSetterName, type UCAuthSetterSet, defaultUCAuthSetters, } from './uc-auth.js';
|
|
9
|
-
export { type CustomUCInputFiller, DEFAULT_UC_INPUT_FILLERS, type DefaultUCInputFiller, type UCInputFiller, type UCInputFillerName, type UCInputFillerSet, allWithExamples, defaultUCInputFillers, onlyMandatoryWithExamples, onlySetProgrammaticallyWithExamples, } from './uc-input.js';
|
|
10
5
|
export { UCDataStoreTester } from './UCDataStoreTester.js';
|
|
11
6
|
export type { UCDefASTParser } from './UCDefASTParser.js';
|
|
12
|
-
export type
|
|
7
|
+
export { type CustomUCAuthSetter, DEFAULT_UC_AUTH_SETTERS, type DefaultUCAuthSetter, defaultUCAuthSetters, type UCAuthSetterName, type UCAuthSetterSet, } from './uc-auth.js';
|
|
8
|
+
export { allWithExamples, type CustomUCInputFiller, DEFAULT_UC_INPUT_FILLERS, type DefaultUCInputFiller, defaultUCInputFillers, onlyMandatoryWithExamples, onlySetProgrammaticallyWithExamples, type UCInputFiller, type UCInputFillerName, type UCInputFillerSet, } from './uc-input.js';
|
|
13
9
|
export { awaitForSrcImport, type TestData } from './utils.js';
|
|
10
|
+
export type { AppDocsEmitter } from './workers/AppDocsEmitter.js';
|
|
11
|
+
export type { AppTestSuiteEmitter } from './workers/AppTestSuiteEmitter.js';
|
|
12
|
+
export type { AppTestSuiteRunner } from './workers/AppTestSuiteRunner.js';
|
|
13
|
+
export type { UCExecutor, UCExecutorAssertion, UCExecutorExecOutput, } from './workers/UCExecutor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DEFAULT_APP_TESTER_OPTS, } from './opts.js';
|
|
2
|
-
export { DEFAULT_UC_AUTH_SETTERS, defaultUCAuthSetters, } from './uc-auth.js';
|
|
3
|
-
export { DEFAULT_UC_INPUT_FILLERS, allWithExamples, defaultUCInputFillers, onlyMandatoryWithExamples, onlySetProgrammaticallyWithExamples, } from './uc-input.js';
|
|
4
2
|
export { UCDataStoreTester } from './UCDataStoreTester.js';
|
|
3
|
+
export { DEFAULT_UC_AUTH_SETTERS, defaultUCAuthSetters, } from './uc-auth.js';
|
|
4
|
+
export { allWithExamples, DEFAULT_UC_INPUT_FILLERS, defaultUCInputFillers, onlyMandatoryWithExamples, onlySetProgrammaticallyWithExamples, } from './uc-input.js';
|
|
5
5
|
export { awaitForSrcImport } from './utils.js';
|
|
@@ -36,8 +36,8 @@ let AppTesterCtxInitializer = class AppTesterCtxInitializer {
|
|
|
36
36
|
for await (const { path } of ucdFilePaths) {
|
|
37
37
|
ucdRefs.push({
|
|
38
38
|
fileName: path,
|
|
39
|
-
source: await srcImporter(this.fsManager.path(ucdsPath, path)),
|
|
40
39
|
name: path.replace(UC_DEF_FILE_NAME_SUFFIX, ''),
|
|
40
|
+
source: await srcImporter(this.fsManager.path(ucdsPath, path)),
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
// Sorting is necessary because the file system sorting is not necessarily the same as A-Z sorting.
|
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
};
|
|
13
13
|
var UCExecutor_1;
|
|
14
14
|
import { inject, injectable } from 'inversify';
|
|
15
|
-
import {
|
|
15
|
+
import { rInput, UCBuilder, } from '../../uc/index.js';
|
|
16
16
|
const ERR_CLIENT_EXPECTED_OUTPUT = (name) => `${name} client is expected to return an output but returned nothing`;
|
|
17
17
|
const ERR_CLIENT_UNEXPECTED_OUTPUT = (name) => `${name} client is expected to return nothing but returned an output`;
|
|
18
18
|
let UCExecutor = class UCExecutor {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FSManager, Logger, Worker } from '../../../std/index.js';
|
|
2
|
-
import { type OutputItem, type UCDefASTParser } from '../../UCDefASTParser.js';
|
|
3
2
|
import type { AppTesterCtx } from '../../ctx.js';
|
|
3
|
+
import { type OutputItem, type UCDefASTParser } from '../../UCDefASTParser.js';
|
|
4
4
|
export interface Input {
|
|
5
5
|
ctx: AppTesterCtx;
|
|
6
6
|
}
|
|
@@ -12,8 +12,8 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
};
|
|
13
13
|
import { inject, injectable } from 'inversify';
|
|
14
14
|
import { APP_SRC_DIR_NAME, APP_SRC_UCDS_DIR_NAME, UC_DEF_FILE_NAME_SUFFIX, UC_DEF_SUFFIX, UC_INPUT_FIELD_PATTERN, UC_INPUT_SUFFIX, UC_OPI_SUFFIX, UC_POLICY_SUFFIX_FULL, } from '../../../convention.js';
|
|
15
|
-
import { initOutputItem, } from '../../UCDefASTParser.js';
|
|
16
15
|
import { optsAllSet } from '../../opts.js';
|
|
16
|
+
import { initOutputItem, } from '../../UCDefASTParser.js';
|
|
17
17
|
const ERR_UCD_CONST_NAME = (name) => `The UCD const name '${name}' must follow the convention`;
|
|
18
18
|
const ERR_UCD_FILE_SUFFIX = (fileName) => `The file '${fileName}' must end with ${UC_DEF_FILE_NAME_SUFFIX}`;
|
|
19
19
|
const ERR_UCD_IMPORTS_EXTERNAL_ALLOWED = (aliasPrefix, allowed, text) => `External imports must be an alias '${aliasPrefix}*' or be one of ${allowed} (Got ${text})`;
|
|
@@ -39,7 +39,7 @@ let UCDefSourcesChecker = class UCDefSourcesChecker {
|
|
|
39
39
|
async exec({ ctx }) {
|
|
40
40
|
const { appPath, opts } = ctx;
|
|
41
41
|
// TODO : Consider removing this and using profiling when needed
|
|
42
|
-
const startTime =
|
|
42
|
+
const startTime = Date.now();
|
|
43
43
|
this.logger.debug('UCDefSourceChecker starting', {
|
|
44
44
|
appPath,
|
|
45
45
|
startTime,
|
|
@@ -52,7 +52,7 @@ let UCDefSourcesChecker = class UCDefSourcesChecker {
|
|
|
52
52
|
await this.ucDefASTParser.transpile();
|
|
53
53
|
this.logger.debug('UCDefSourceChecker processing files');
|
|
54
54
|
this.output.items = await this.processFiles(appPath, ucdsPaths);
|
|
55
|
-
const duration =
|
|
55
|
+
const duration = Date.now() - startTime;
|
|
56
56
|
this.logger.debug('UCDefSourceChecker done', {
|
|
57
57
|
appPath,
|
|
58
58
|
duration: `${duration} ms`,
|
package/dist/esm/uc/UC.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { AppManifest } from '../app/index.js';
|
|
2
2
|
import { type DataType, Validation } from '../dt/index.js';
|
|
3
|
-
import { UCInputField } from './UCInputField.js';
|
|
4
3
|
import type { UCAuth } from './auth.js';
|
|
5
4
|
import type { UCDef, UCFieldKey } from './def.js';
|
|
6
5
|
import type { UCInput } from './input.js';
|
|
7
6
|
import type { UCOPIBase } from './opi.js';
|
|
8
|
-
import
|
|
7
|
+
import { UCInputField } from './UCInputField.js';
|
|
8
|
+
import type { reqVal0, rVal0, rValArr } from './utils/rVal.js';
|
|
9
9
|
export type ArgsTuple<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined> = ConstructorParameters<typeof UC<I, OPI0, OPI1>>;
|
|
10
10
|
export type ArgsRecord<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined> = {
|
|
11
11
|
appManifest: ArgsTuple<I, OPI0, OPI1>[0];
|
package/dist/esm/uc/UC.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TFile, Validation } from '../dt/index.js';
|
|
2
2
|
import { isBlank } from '../utils/index.js';
|
|
3
|
-
import { UCInputField } from './UCInputField.js';
|
|
4
3
|
import { UCInputFieldChangeOperator, ucifIsMandatory, ucifIsSensitive, ucifMustBeFilledManually, } from './input-field.js';
|
|
5
4
|
import { AggregateInputDef } from './io/input/AggregateInput.js';
|
|
6
5
|
import { ListInputDef } from './io/input/ListInput.js';
|
|
6
|
+
import { UCInputField } from './UCInputField.js';
|
|
7
7
|
export class UC {
|
|
8
8
|
appManifest;
|
|
9
9
|
def;
|
|
@@ -126,7 +126,7 @@ export class UC {
|
|
|
126
126
|
}
|
|
127
127
|
operatesOnAggregate() {
|
|
128
128
|
const fields = this.inputFields;
|
|
129
|
-
const aggregateIdField = fields.find((f) => f.key === Object.keys(AggregateInputDef
|
|
129
|
+
const aggregateIdField = fields.find((f) => f.key === Object.keys(AggregateInputDef.fields)[0]);
|
|
130
130
|
return !!aggregateIdField && ucifIsMandatory(aggregateIdField.def);
|
|
131
131
|
}
|
|
132
132
|
rVal0(key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type DataType, Validation } from '../dt/index.js';
|
|
2
2
|
import type { UCFieldKey, UCWording } from './def.js';
|
|
3
3
|
import { UCInputFieldChangeOperator, type UCInputFieldDef, type UCInputFieldValue } from './input-field.js';
|
|
4
|
-
import { rVal0, rValArr
|
|
4
|
+
import { type reqVal0, rVal0, rValArr } from './utils/rVal.js';
|
|
5
5
|
export declare class UCInputField<T extends DataType> {
|
|
6
6
|
key: UCFieldKey;
|
|
7
7
|
def: UCInputFieldDef<T>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type DataType } from '../../dt/index.js';
|
|
2
2
|
import type { StringKeys } from '../../utils/index.js';
|
|
3
|
-
import type { UC } from '../UC.js';
|
|
4
|
-
import { UCOutputField } from '../UCOutputField.js';
|
|
5
3
|
import type { UCDef } from '../def.js';
|
|
6
4
|
import type { UCInput } from '../input.js';
|
|
7
5
|
import type { UCOPIBase } from '../opi.js';
|
|
8
|
-
import type { UCOutputPart, UCOutputPartDef } from '../output-part.js';
|
|
9
6
|
import type { UCOutput, UCOutputPartIdx, UCOutputPartKey } from '../output.js';
|
|
7
|
+
import type { UCOutputPart, UCOutputPartDef } from '../output-part.js';
|
|
8
|
+
import type { UC } from '../UC.js';
|
|
9
|
+
import { UCOutputField } from '../UCOutputField.js';
|
|
10
10
|
export interface UCOutputReaderPart<OPI extends UCOPIBase> {
|
|
11
11
|
fields: UCOutputField<OPI, any>[];
|
|
12
12
|
idx: UCOutputPartIdx;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Configurable, HTTPAPICaller, SettingsManager } from '../../std/index.js';
|
|
2
2
|
import type { ServerClientManager, ServerClientManagerSettings } from '../../target/lib/client/ServerClientManager.js';
|
|
3
|
-
import type { UC } from '../UC.js';
|
|
4
3
|
import type { UCInput } from '../input.js';
|
|
5
4
|
import type { UCOPIBase } from '../opi.js';
|
|
6
5
|
import type { UCOutputOrNothing } from '../output.js';
|
|
7
6
|
import type { UCTransporter } from '../transporter.js';
|
|
7
|
+
import type { UC } from '../UC.js';
|
|
8
8
|
type S = Pick<ServerClientManagerSettings, 'server_cookies_name_auth' | 'server_public_api_key_header_name'>;
|
|
9
9
|
export declare class HTTPUCTransporter implements Configurable<S>, UCTransporter {
|
|
10
10
|
private httpAPICaller;
|
|
@@ -34,8 +34,8 @@ let HTTPUCTransporter = class HTTPUCTransporter {
|
|
|
34
34
|
const baseURL = await this.serverClientManager.baseURL({ auth });
|
|
35
35
|
const { contentType, envelope, method, path } = ucHTTPContract(uc);
|
|
36
36
|
const additionalHeaders = {};
|
|
37
|
-
let authorizationHeader
|
|
38
|
-
let basicAuth
|
|
37
|
+
let authorizationHeader;
|
|
38
|
+
let basicAuth;
|
|
39
39
|
const authType = sec?.authType ?? DEFAULT_UC_SEC_AT;
|
|
40
40
|
const publicApiKeyCheckType = sec?.publicApiKeyCheckType ?? DEFAULT_UC_SEC_PAKCT;
|
|
41
41
|
switch (publicApiKeyCheckType) {
|
|
@@ -81,8 +81,7 @@ let HTTPUCTransporter = class HTTPUCTransporter {
|
|
|
81
81
|
auth,
|
|
82
82
|
});
|
|
83
83
|
if (jwt) {
|
|
84
|
-
additionalHeaders
|
|
85
|
-
`${this.s().server_cookies_name_auth}=${jwt}`;
|
|
84
|
+
additionalHeaders.Cookie = `${this.s().server_cookies_name_auth}=${jwt}`;
|
|
86
85
|
}
|
|
87
86
|
break;
|
|
88
87
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UCDataStore, UCDataStoreReadOpts, UCDataStoreReadResponse, UCDataStoreRecord, UCDataStoreTx, UCDataStoreWriteProjectionSpecificBinding } from '../data-store.js';
|
|
2
1
|
import type { UCData } from '../data.js';
|
|
2
|
+
import type { UCDataStore, UCDataStoreReadOpts, UCDataStoreReadResponse, UCDataStoreRecord, UCDataStoreTx, UCDataStoreWriteProjectionSpecificBinding } from '../data-store.js';
|
|
3
3
|
import type { UCInput } from '../input.js';
|
|
4
4
|
type TxState = 'committed' | 'pending' | 'rollbacked';
|
|
5
5
|
export declare class InMemoryUCDataStore implements UCDataStore {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Knex } from 'knex';
|
|
2
2
|
import type { FilePath, UIntQuantity } from '../../dt/index.js';
|
|
3
3
|
import type { Configurable, Settings, SettingsManager } from '../../std/index.js';
|
|
4
|
-
import type { UCDataStore, UCDataStoreReadOpts, UCDataStoreReadProjectionOpts, UCDataStoreReadResponse, UCDataStoreRecord, UCDataStoreTx, UCDataStoreWriteOpts, UCDataStoreWriteProjectionOpts, UCDataStoreWriteProjectionSpecificBinding } from '../data-store.js';
|
|
5
4
|
import type { UCData } from '../data.js';
|
|
5
|
+
import type { UCDataStore, UCDataStoreReadOpts, UCDataStoreReadProjectionOpts, UCDataStoreReadResponse, UCDataStoreRecord, UCDataStoreTx, UCDataStoreWriteOpts, UCDataStoreWriteProjectionOpts, UCDataStoreWriteProjectionSpecificBinding } from '../data-store.js';
|
|
6
6
|
import type { UCInput } from '../input.js';
|
|
7
7
|
import type { UCSettings } from '../settings.js';
|
|
8
8
|
/**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WordingManager } from '../../i18n/index.js';
|
|
2
|
+
import type { UCClientConfirmManager } from '../client.js';
|
|
3
|
+
import type { UCDef } from '../def.js';
|
|
4
|
+
import type { UCInput } from '../input.js';
|
|
5
|
+
import type { UCOPIBase } from '../opi.js';
|
|
6
|
+
export declare class RNUCClientConfirmManager implements UCClientConfirmManager {
|
|
7
|
+
private wordingManager;
|
|
8
|
+
constructor(wordingManager: WordingManager);
|
|
9
|
+
exec<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined>(ucd: UCDef<I, OPI0, OPI1>): Promise<boolean>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { inject, injectable } from 'inversify';
|
|
14
|
+
import { Alert } from 'react-native';
|
|
15
|
+
import { WordingManager } from '../../i18n/index.js';
|
|
16
|
+
let RNUCClientConfirmManager = class RNUCClientConfirmManager {
|
|
17
|
+
wordingManager;
|
|
18
|
+
constructor(wordingManager) {
|
|
19
|
+
this.wordingManager = wordingManager;
|
|
20
|
+
}
|
|
21
|
+
async exec(ucd) {
|
|
22
|
+
const { cancel, confirm, message, title } = this.wordingManager.ucClientConfirm(ucd);
|
|
23
|
+
return new Promise((resolve) => {
|
|
24
|
+
Alert.alert(title, message ?? undefined, [
|
|
25
|
+
{
|
|
26
|
+
onPress: () => resolve(true),
|
|
27
|
+
style: 'destructive',
|
|
28
|
+
text: confirm,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
onPress: () => resolve(false),
|
|
32
|
+
style: 'cancel',
|
|
33
|
+
text: cancel,
|
|
34
|
+
},
|
|
35
|
+
]);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
RNUCClientConfirmManager = __decorate([
|
|
40
|
+
injectable(),
|
|
41
|
+
__param(0, inject(WordingManager)),
|
|
42
|
+
__metadata("design:paramtypes", [WordingManager])
|
|
43
|
+
], RNUCClientConfirmManager);
|
|
44
|
+
export { RNUCClientConfirmManager };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { type Provider } from 'inversify';
|
|
2
2
|
import type { ClockManager, CryptoManager, Logger } from '../../std/index.js';
|
|
3
|
-
import type { UC } from '../UC.js';
|
|
4
3
|
import type { UCClientConfirmManager } from '../client.js';
|
|
5
|
-
import type { UCDataStore, UCDataStoreRecord } from '../data-store.js';
|
|
6
4
|
import type { UCData } from '../data.js';
|
|
5
|
+
import type { UCDataStore, UCDataStoreRecord } from '../data-store.js';
|
|
7
6
|
import { UCOutputReader } from '../helpers/UCOutputReader.js';
|
|
8
7
|
import type { UCInit } from '../init.js';
|
|
9
8
|
import type { UCInput } from '../input.js';
|
|
@@ -11,6 +10,7 @@ import type { UCMain } from '../main.js';
|
|
|
11
10
|
import type { UCManager, UCManagerPersistOpts } from '../manager.js';
|
|
12
11
|
import type { UCOPIBase } from '../opi.js';
|
|
13
12
|
import type { UCOutputOrNothing } from '../output.js';
|
|
13
|
+
import type { UC } from '../UC.js';
|
|
14
14
|
import { UCExecChecker } from '../workers/UCExecChecker.js';
|
|
15
15
|
import { UCInputFilesProcessor } from '../workers/UCInputFilesProcessor.js';
|
|
16
16
|
import { UCInputValidator } from '../workers/UCInputValidator.js';
|
package/dist/esm/uc/index.d.ts
CHANGED
|
@@ -1,20 +1,48 @@
|
|
|
1
1
|
export * from './auth/consts.js';
|
|
2
|
+
export * from './auth.js';
|
|
3
|
+
export * from './client.js';
|
|
4
|
+
export * from './data.js';
|
|
5
|
+
export * from './data-store.js';
|
|
6
|
+
export * from './def.js';
|
|
7
|
+
export * from './exec.js';
|
|
8
|
+
export * from './ext.js';
|
|
9
|
+
export * from './file.js';
|
|
2
10
|
export * from './helpers/UCOutputBuilder.js';
|
|
3
11
|
export * from './helpers/UCOutputReader.js';
|
|
12
|
+
export * from './init.js';
|
|
13
|
+
export * from './input.js';
|
|
14
|
+
export * from './input-field.js';
|
|
4
15
|
export * from './io/input/AggregateInput.js';
|
|
5
16
|
export * from './io/input/ListInput.js';
|
|
6
17
|
export * from './io/output/AggregateOutput.js';
|
|
7
18
|
export * from './lifecycle/client/IdleClientMain.js';
|
|
8
19
|
export * from './lifecycle/client/SendClientMain.js';
|
|
9
20
|
export * from './lifecycle/server/IdleServerMain.js';
|
|
21
|
+
export * from './main.js';
|
|
22
|
+
export * from './manager.js';
|
|
23
|
+
export * from './metadata.js';
|
|
24
|
+
export * from './opi.js';
|
|
25
|
+
export * from './opi-layout.js';
|
|
26
|
+
export * from './output.js';
|
|
27
|
+
export * from './output-field.js';
|
|
28
|
+
export * from './output-part.js';
|
|
10
29
|
export * from './policies/AnonymousUCPolicy.js';
|
|
11
30
|
export * from './policies/AuthenticatedUCPolicy.js';
|
|
12
31
|
export * from './policies/EverybodyUCPolicy.js';
|
|
13
32
|
export * from './policies/NobodyUCPolicy.js';
|
|
14
33
|
export * from './policies/RoleAdminUCPolicy.js';
|
|
15
34
|
export * from './policies/RoleRegularUCPolicy.js';
|
|
35
|
+
export * from './policy.js';
|
|
16
36
|
export * from './sec/consts.js';
|
|
37
|
+
export * from './sec.js';
|
|
38
|
+
export * from './server.js';
|
|
17
39
|
export * from './settings/consts.js';
|
|
40
|
+
export * from './settings.js';
|
|
41
|
+
export * from './side-effect.js';
|
|
42
|
+
export * from './transporter.js';
|
|
43
|
+
export * from './UC.js';
|
|
44
|
+
export * from './UCInputField.js';
|
|
45
|
+
export * from './UCOutputField.js';
|
|
18
46
|
export * from './utils/appendUCInputToURL.js';
|
|
19
47
|
export * from './utils/fmtVal.js';
|
|
20
48
|
export * from './utils/recIs.js';
|
|
@@ -22,8 +50,9 @@ export * from './utils/rInput.js';
|
|
|
22
50
|
export * from './utils/rVal.js';
|
|
23
51
|
export * from './utils/stripUCDLifecycleServer.js';
|
|
24
52
|
export * from './utils/ucHTTPContract.js';
|
|
25
|
-
export * from './utils/ucMountingPoint.js';
|
|
26
53
|
export * from './utils/ucifcoIsForArray.js';
|
|
54
|
+
export * from './utils/ucMountingPoint.js';
|
|
55
|
+
export * from './value.js';
|
|
27
56
|
export * from './workers/SimpleAggregateFinder.js';
|
|
28
57
|
export * from './workers/SimpleAggregateOwnershipChecker.js';
|
|
29
58
|
export * from './workers/UCBuilder.js';
|
|
@@ -31,32 +60,3 @@ export * from './workers/UCExecChecker.js';
|
|
|
31
60
|
export * from './workers/UCInputFilesProcessor.js';
|
|
32
61
|
export * from './workers/UCInputValidator.js';
|
|
33
62
|
export * from './workers/UCOutputFilesProcessor.js';
|
|
34
|
-
export * from './auth.js';
|
|
35
|
-
export * from './client.js';
|
|
36
|
-
export * from './data.js';
|
|
37
|
-
export * from './data-store.js';
|
|
38
|
-
export * from './def.js';
|
|
39
|
-
export * from './exec.js';
|
|
40
|
-
export * from './ext.js';
|
|
41
|
-
export * from './file.js';
|
|
42
|
-
export * from './init.js';
|
|
43
|
-
export * from './input.js';
|
|
44
|
-
export * from './input-field.js';
|
|
45
|
-
export * from './main.js';
|
|
46
|
-
export * from './manager.js';
|
|
47
|
-
export * from './metadata.js';
|
|
48
|
-
export * from './opi.js';
|
|
49
|
-
export * from './opi-layout.js';
|
|
50
|
-
export * from './output.js';
|
|
51
|
-
export * from './output-field.js';
|
|
52
|
-
export * from './output-part.js';
|
|
53
|
-
export * from './side-effect.js';
|
|
54
|
-
export * from './policy.js';
|
|
55
|
-
export * from './sec.js';
|
|
56
|
-
export * from './server.js';
|
|
57
|
-
export * from './settings.js';
|
|
58
|
-
export * from './transporter.js';
|
|
59
|
-
export * from './UC.js';
|
|
60
|
-
export * from './UCInputField.js';
|
|
61
|
-
export * from './UCOutputField.js';
|
|
62
|
-
export * from './value.js';
|