quidproquo-actionprocessor-node 0.0.253 → 0.0.255
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/lib/commonjs/actionProcessor/core/claudeAi/getClaudeAiMessagesApiActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/claudeAi/getClaudeAiMessagesApiActionProcessor.js +74 -64
- package/lib/commonjs/actionProcessor/core/claudeAi/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/claudeAi/index.js +17 -17
- package/lib/commonjs/actionProcessor/core/config/getConfigGetApplicationInfoActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/config/getConfigGetApplicationInfoActionProcessor.js +30 -30
- package/lib/commonjs/actionProcessor/core/config/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/config/index.js +17 -17
- package/lib/commonjs/actionProcessor/core/context/getContextListActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/context/getContextListActionProcessor.js +24 -24
- package/lib/commonjs/actionProcessor/core/context/getContextReadActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/context/getContextReadActionProcessor.js +27 -27
- package/lib/commonjs/actionProcessor/core/context/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/context/index.js +18 -18
- package/lib/commonjs/actionProcessor/core/customActions/getCustomActionActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/customActions/getCustomActionActionProcessor.js +58 -58
- package/lib/commonjs/actionProcessor/core/customActions/index.d.ts +1 -1
- package/lib/commonjs/actionProcessor/core/customActions/index.js +18 -18
- package/lib/commonjs/actionProcessor/core/date/getDateNowActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/date/getDateNowActionProcessor.js +24 -24
- package/lib/commonjs/actionProcessor/core/date/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/date/index.js +17 -17
- package/lib/commonjs/actionProcessor/core/error/getErrorThrowErrorActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/error/getErrorThrowErrorActionProcessor.js +24 -24
- package/lib/commonjs/actionProcessor/core/error/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/error/index.js +17 -17
- package/lib/commonjs/actionProcessor/core/guid/getGuidNewActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/guid/getGuidNewActionProcessor.js +25 -25
- package/lib/commonjs/actionProcessor/core/guid/getGuidNewSortableActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/guid/getGuidNewSortableActionProcessor.js +25 -25
- package/lib/commonjs/actionProcessor/core/guid/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/guid/index.js +18 -18
- package/lib/commonjs/actionProcessor/core/index.d.ts +14 -14
- package/lib/commonjs/actionProcessor/core/index.js +54 -54
- package/lib/commonjs/actionProcessor/core/log/getLogCreateActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/log/getLogCreateActionProcessor.js +30 -30
- package/lib/commonjs/actionProcessor/core/log/getLogDisableEventHistoryActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/log/getLogDisableEventHistoryActionProcessor.js +25 -25
- package/lib/commonjs/actionProcessor/core/log/getLogTemplateLiteralActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/log/getLogTemplateLiteralActionProcessor.js +26 -26
- package/lib/commonjs/actionProcessor/core/log/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/log/index.js +19 -19
- package/lib/commonjs/actionProcessor/core/math/getMathRandomNumberActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/math/getMathRandomNumberActionProcessor.js +24 -24
- package/lib/commonjs/actionProcessor/core/math/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/math/index.js +17 -17
- package/lib/commonjs/actionProcessor/core/network/getNetworkRequestActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/network/getNetworkRequestActionProcessor.js +150 -150
- package/lib/commonjs/actionProcessor/core/network/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/network/index.js +17 -17
- package/lib/commonjs/actionProcessor/core/platform/getPlatformDelayActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/platform/getPlatformDelayActionProcessor.js +24 -24
- package/lib/commonjs/actionProcessor/core/platform/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/platform/index.js +17 -17
- package/lib/commonjs/actionProcessor/core/system/getSystemBatchActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/system/getSystemBatchActionProcessor.js +51 -51
- package/lib/commonjs/actionProcessor/core/system/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/core/system/index.js +17 -17
- package/lib/commonjs/actionProcessor/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/index.js +18 -18
- package/lib/commonjs/actionProcessor/webserver/dns/getDnsListActionProcessor.d.ts +2 -2
- package/lib/commonjs/actionProcessor/webserver/dns/getDnsListActionProcessor.js +26 -26
- package/lib/commonjs/actionProcessor/webserver/dns/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/webserver/dns/index.js +17 -17
- package/lib/commonjs/actionProcessor/webserver/index.d.ts +2 -2
- package/lib/commonjs/actionProcessor/webserver/index.js +17 -17
- package/lib/commonjs/index.d.ts +1 -1
- package/lib/commonjs/index.js +17 -17
- package/lib/esm/actionProcessor/core/claudeAi/getClaudeAiMessagesApiActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/claudeAi/getClaudeAiMessagesApiActionProcessor.js +26 -26
- package/lib/esm/actionProcessor/core/claudeAi/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/claudeAi/index.js +4 -4
- package/lib/esm/actionProcessor/core/config/getConfigGetApplicationInfoActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/config/getConfigGetApplicationInfoActionProcessor.js +15 -15
- package/lib/esm/actionProcessor/core/config/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/config/index.js +4 -4
- package/lib/esm/actionProcessor/core/context/getContextListActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/context/getContextListActionProcessor.js +9 -9
- package/lib/esm/actionProcessor/core/context/getContextReadActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/context/getContextReadActionProcessor.js +12 -12
- package/lib/esm/actionProcessor/core/context/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/context/index.js +6 -6
- package/lib/esm/actionProcessor/core/customActions/getCustomActionActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/customActions/getCustomActionActionProcessor.js +43 -43
- package/lib/esm/actionProcessor/core/customActions/index.d.ts +1 -1
- package/lib/esm/actionProcessor/core/customActions/index.js +2 -2
- package/lib/esm/actionProcessor/core/date/getDateNowActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/date/getDateNowActionProcessor.js +9 -9
- package/lib/esm/actionProcessor/core/date/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/date/index.js +4 -4
- package/lib/esm/actionProcessor/core/error/getErrorThrowErrorActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/error/getErrorThrowErrorActionProcessor.js +9 -9
- package/lib/esm/actionProcessor/core/error/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/error/index.js +4 -4
- package/lib/esm/actionProcessor/core/guid/getGuidNewActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/guid/getGuidNewActionProcessor.js +10 -10
- package/lib/esm/actionProcessor/core/guid/getGuidNewSortableActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/guid/getGuidNewSortableActionProcessor.js +10 -10
- package/lib/esm/actionProcessor/core/guid/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/guid/index.js +6 -6
- package/lib/esm/actionProcessor/core/index.d.ts +14 -14
- package/lib/esm/actionProcessor/core/index.js +37 -37
- package/lib/esm/actionProcessor/core/log/getLogCreateActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/log/getLogCreateActionProcessor.js +15 -15
- package/lib/esm/actionProcessor/core/log/getLogDisableEventHistoryActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/log/getLogDisableEventHistoryActionProcessor.js +10 -10
- package/lib/esm/actionProcessor/core/log/getLogTemplateLiteralActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/log/getLogTemplateLiteralActionProcessor.js +11 -11
- package/lib/esm/actionProcessor/core/log/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/log/index.js +8 -8
- package/lib/esm/actionProcessor/core/math/getMathRandomNumberActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/math/getMathRandomNumberActionProcessor.js +9 -9
- package/lib/esm/actionProcessor/core/math/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/math/index.js +4 -4
- package/lib/esm/actionProcessor/core/network/getNetworkRequestActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/network/getNetworkRequestActionProcessor.js +134 -134
- package/lib/esm/actionProcessor/core/network/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/network/index.js +4 -4
- package/lib/esm/actionProcessor/core/platform/getPlatformDelayActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/platform/getPlatformDelayActionProcessor.js +9 -9
- package/lib/esm/actionProcessor/core/platform/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/platform/index.js +4 -4
- package/lib/esm/actionProcessor/core/system/getSystemBatchActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/core/system/getSystemBatchActionProcessor.js +36 -36
- package/lib/esm/actionProcessor/core/system/index.d.ts +2 -2
- package/lib/esm/actionProcessor/core/system/index.js +4 -4
- package/lib/esm/actionProcessor/index.d.ts +2 -2
- package/lib/esm/actionProcessor/index.js +2 -2
- package/lib/esm/actionProcessor/webserver/dns/getDnsListActionProcessor.d.ts +2 -2
- package/lib/esm/actionProcessor/webserver/dns/getDnsListActionProcessor.js +11 -11
- package/lib/esm/actionProcessor/webserver/dns/index.d.ts +2 -2
- package/lib/esm/actionProcessor/webserver/dns/index.js +4 -4
- package/lib/esm/actionProcessor/webserver/index.d.ts +2 -2
- package/lib/esm/actionProcessor/webserver/index.js +4 -4
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { actionResult, ContextActionType, } from 'quidproquo-core';
|
|
2
|
-
const getProcessContextList = (qpqConfig) => {
|
|
3
|
-
return async (payload, session) => {
|
|
4
|
-
return actionResult(session.context);
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const getContextListActionProcessor = async (qpqConfig) => ({
|
|
8
|
-
[ContextActionType.List]: getProcessContextList(qpqConfig),
|
|
9
|
-
});
|
|
1
|
+
import { actionResult, ContextActionType, } from 'quidproquo-core';
|
|
2
|
+
const getProcessContextList = (qpqConfig) => {
|
|
3
|
+
return async (payload, session) => {
|
|
4
|
+
return actionResult(session.context);
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export const getContextListActionProcessor = async (qpqConfig) => ({
|
|
8
|
+
[ContextActionType.List]: getProcessContextList(qpqConfig),
|
|
9
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getContextReadActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getContextReadActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { actionResult, ContextActionType, } from 'quidproquo-core';
|
|
2
|
-
const getContextValue = (context, contextIdentifier) => {
|
|
3
|
-
return contextIdentifier.uniqueName in context ? context[contextIdentifier.uniqueName] : contextIdentifier.defaultValue;
|
|
4
|
-
};
|
|
5
|
-
const getProcessContextRead = (qpqConfig) => {
|
|
6
|
-
return async ({ contextIdentifier }, session) => {
|
|
7
|
-
return actionResult(getContextValue(session.context, contextIdentifier));
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export const getContextReadActionProcessor = async (qpqConfig) => ({
|
|
11
|
-
[ContextActionType.Read]: getProcessContextRead(qpqConfig),
|
|
12
|
-
});
|
|
1
|
+
import { actionResult, ContextActionType, } from 'quidproquo-core';
|
|
2
|
+
const getContextValue = (context, contextIdentifier) => {
|
|
3
|
+
return contextIdentifier.uniqueName in context ? context[contextIdentifier.uniqueName] : contextIdentifier.defaultValue;
|
|
4
|
+
};
|
|
5
|
+
const getProcessContextRead = (qpqConfig) => {
|
|
6
|
+
return async ({ contextIdentifier }, session) => {
|
|
7
|
+
return actionResult(getContextValue(session.context, contextIdentifier));
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export const getContextReadActionProcessor = async (qpqConfig) => ({
|
|
11
|
+
[ContextActionType.Read]: getProcessContextRead(qpqConfig),
|
|
12
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getContextActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getContextActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getContextListActionProcessor } from './getContextListActionProcessor';
|
|
2
|
-
import { getContextReadActionProcessor } from './getContextReadActionProcessor';
|
|
3
|
-
export const getContextActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
4
|
-
...(await getContextListActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
5
|
-
...(await getContextReadActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
6
|
-
});
|
|
1
|
+
import { getContextListActionProcessor } from './getContextListActionProcessor';
|
|
2
|
+
import { getContextReadActionProcessor } from './getContextReadActionProcessor';
|
|
3
|
+
export const getContextActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
4
|
+
...(await getContextListActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
5
|
+
...(await getContextReadActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
6
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getCustomActionActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getCustomActionActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { qpqCoreUtils } from 'quidproquo-core';
|
|
2
|
-
function getActionProcessorListLoader(dynamicModuleLoader, qpqConfig) {
|
|
3
|
-
return async function loadModule(qpqFunctionRuntime) {
|
|
4
|
-
try {
|
|
5
|
-
const possibleModule = await dynamicModuleLoader(qpqFunctionRuntime);
|
|
6
|
-
if (typeof possibleModule !== 'function') {
|
|
7
|
-
throw new Error(`Expected module to be a function, but got ${typeof possibleModule}`);
|
|
8
|
-
}
|
|
9
|
-
const apl = await possibleModule(qpqConfig, dynamicModuleLoader);
|
|
10
|
-
if (typeof apl !== 'object') {
|
|
11
|
-
throw new Error(`Expected action processor list to be an object, but got ${typeof apl}`);
|
|
12
|
-
}
|
|
13
|
-
if (Object.values(apl).find((aplv) => typeof aplv !== 'function')) {
|
|
14
|
-
throw new Error('Expected all action processors to be functions');
|
|
15
|
-
}
|
|
16
|
-
return apl;
|
|
17
|
-
}
|
|
18
|
-
catch (e) {
|
|
19
|
-
console.log(`Unable to dynamically load action processors: [${e}] ${JSON.stringify(qpqFunctionRuntime)}`);
|
|
20
|
-
throw e;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
const getProcessCustomAction = async (qpqConfig, dynamicModuleLoader) => {
|
|
25
|
-
try {
|
|
26
|
-
const actionProcessorListLoader = getActionProcessorListLoader(dynamicModuleLoader, qpqConfig);
|
|
27
|
-
const getCustomActionProcessors = qpqCoreUtils.getActionProcessorSources(qpqConfig);
|
|
28
|
-
const possibleModuleResults = await Promise.allSettled(getCustomActionProcessors.map(actionProcessorListLoader));
|
|
29
|
-
// Filter out successfully loaded modules that are functions
|
|
30
|
-
const actionProcessorLists = possibleModuleResults
|
|
31
|
-
.filter((result) => result.status === 'fulfilled')
|
|
32
|
-
.map((result) => result.value);
|
|
33
|
-
return actionProcessorLists.reduce((acc, cur) => ({ ...acc, ...cur }), {});
|
|
34
|
-
}
|
|
35
|
-
catch (e) {
|
|
36
|
-
// This should never get hit, but just in case
|
|
37
|
-
console.log(`Unable to dynamically load action processors: [${e}]`);
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
export const getCustomActionActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
42
|
-
...(await getProcessCustomAction(qpqConfig, dynamicModuleLoader)),
|
|
43
|
-
});
|
|
1
|
+
import { qpqCoreUtils } from 'quidproquo-core';
|
|
2
|
+
function getActionProcessorListLoader(dynamicModuleLoader, qpqConfig) {
|
|
3
|
+
return async function loadModule(qpqFunctionRuntime) {
|
|
4
|
+
try {
|
|
5
|
+
const possibleModule = await dynamicModuleLoader(qpqFunctionRuntime);
|
|
6
|
+
if (typeof possibleModule !== 'function') {
|
|
7
|
+
throw new Error(`Expected module to be a function, but got ${typeof possibleModule}`);
|
|
8
|
+
}
|
|
9
|
+
const apl = await possibleModule(qpqConfig, dynamicModuleLoader);
|
|
10
|
+
if (typeof apl !== 'object') {
|
|
11
|
+
throw new Error(`Expected action processor list to be an object, but got ${typeof apl}`);
|
|
12
|
+
}
|
|
13
|
+
if (Object.values(apl).find((aplv) => typeof aplv !== 'function')) {
|
|
14
|
+
throw new Error('Expected all action processors to be functions');
|
|
15
|
+
}
|
|
16
|
+
return apl;
|
|
17
|
+
}
|
|
18
|
+
catch (e) {
|
|
19
|
+
console.log(`Unable to dynamically load action processors: [${e}] ${JSON.stringify(qpqFunctionRuntime)}`);
|
|
20
|
+
throw e;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const getProcessCustomAction = async (qpqConfig, dynamicModuleLoader) => {
|
|
25
|
+
try {
|
|
26
|
+
const actionProcessorListLoader = getActionProcessorListLoader(dynamicModuleLoader, qpqConfig);
|
|
27
|
+
const getCustomActionProcessors = qpqCoreUtils.getActionProcessorSources(qpqConfig);
|
|
28
|
+
const possibleModuleResults = await Promise.allSettled(getCustomActionProcessors.map(actionProcessorListLoader));
|
|
29
|
+
// Filter out successfully loaded modules that are functions
|
|
30
|
+
const actionProcessorLists = possibleModuleResults
|
|
31
|
+
.filter((result) => result.status === 'fulfilled')
|
|
32
|
+
.map((result) => result.value);
|
|
33
|
+
return actionProcessorLists.reduce((acc, cur) => ({ ...acc, ...cur }), {});
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
// This should never get hit, but just in case
|
|
37
|
+
console.log(`Unable to dynamically load action processors: [${e}]`);
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export const getCustomActionActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
42
|
+
...(await getProcessCustomAction(qpqConfig, dynamicModuleLoader)),
|
|
43
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './getCustomActionActionProcessor';
|
|
1
|
+
export * from './getCustomActionActionProcessor';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// This is a special one because it just has all the custom ones
|
|
2
|
-
export * from './getCustomActionActionProcessor';
|
|
1
|
+
// This is a special one because it just has all the custom ones
|
|
2
|
+
export * from './getCustomActionActionProcessor';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getDateNowActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getDateNowActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { actionResult, DateActionType } from 'quidproquo-core';
|
|
2
|
-
const getProcessDateNow = (qpqConfig) => {
|
|
3
|
-
return async () => {
|
|
4
|
-
return actionResult(new Date().toISOString());
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const getDateNowActionProcessor = async (qpqConfig) => ({
|
|
8
|
-
[DateActionType.Now]: getProcessDateNow(qpqConfig),
|
|
9
|
-
});
|
|
1
|
+
import { actionResult, DateActionType } from 'quidproquo-core';
|
|
2
|
+
const getProcessDateNow = (qpqConfig) => {
|
|
3
|
+
return async () => {
|
|
4
|
+
return actionResult(new Date().toISOString());
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export const getDateNowActionProcessor = async (qpqConfig) => ({
|
|
8
|
+
[DateActionType.Now]: getProcessDateNow(qpqConfig),
|
|
9
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getDateActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getDateActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDateNowActionProcessor } from './getDateNowActionProcessor';
|
|
2
|
-
export const getDateActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
3
|
-
...(await getDateNowActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
4
|
-
});
|
|
1
|
+
import { getDateNowActionProcessor } from './getDateNowActionProcessor';
|
|
2
|
+
export const getDateActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
3
|
+
...(await getDateNowActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
4
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getErrorThrowErrorActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getErrorThrowErrorActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { actionResultError, ErrorActionType, } from 'quidproquo-core';
|
|
2
|
-
const getProcessErrorThrowError = (qpqConfig) => {
|
|
3
|
-
return async ({ errorStack, errorText, errorType }) => {
|
|
4
|
-
return actionResultError(errorType, errorText, errorStack);
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const getErrorThrowErrorActionProcessor = async (qpqConfig) => ({
|
|
8
|
-
[ErrorActionType.ThrowError]: getProcessErrorThrowError(qpqConfig),
|
|
9
|
-
});
|
|
1
|
+
import { actionResultError, ErrorActionType, } from 'quidproquo-core';
|
|
2
|
+
const getProcessErrorThrowError = (qpqConfig) => {
|
|
3
|
+
return async ({ errorStack, errorText, errorType }) => {
|
|
4
|
+
return actionResultError(errorType, errorText, errorStack);
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export const getErrorThrowErrorActionProcessor = async (qpqConfig) => ({
|
|
8
|
+
[ErrorActionType.ThrowError]: getProcessErrorThrowError(qpqConfig),
|
|
9
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getErrorActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getErrorActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getErrorThrowErrorActionProcessor } from './getErrorThrowErrorActionProcessor';
|
|
2
|
-
export const getErrorActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
3
|
-
...(await getErrorThrowErrorActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
4
|
-
});
|
|
1
|
+
import { getErrorThrowErrorActionProcessor } from './getErrorThrowErrorActionProcessor';
|
|
2
|
+
export const getErrorActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
3
|
+
...(await getErrorThrowErrorActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
4
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getGuidNewActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getGuidNewActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { actionResult, GuidActionType } from 'quidproquo-core';
|
|
2
|
-
import { v4 as uuidV4 } from 'uuid';
|
|
3
|
-
const getProcessGuidNew = (qpqConfig) => {
|
|
4
|
-
return async () => {
|
|
5
|
-
return actionResult(uuidV4());
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export const getGuidNewActionProcessor = async (qpqConfig) => ({
|
|
9
|
-
[GuidActionType.New]: getProcessGuidNew(qpqConfig),
|
|
10
|
-
});
|
|
1
|
+
import { actionResult, GuidActionType } from 'quidproquo-core';
|
|
2
|
+
import { v4 as uuidV4 } from 'uuid';
|
|
3
|
+
const getProcessGuidNew = (qpqConfig) => {
|
|
4
|
+
return async () => {
|
|
5
|
+
return actionResult(uuidV4());
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export const getGuidNewActionProcessor = async (qpqConfig) => ({
|
|
9
|
+
[GuidActionType.New]: getProcessGuidNew(qpqConfig),
|
|
10
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getGuidNewSortableActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getGuidNewSortableActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { actionResult, GuidActionType, } from 'quidproquo-core';
|
|
2
|
-
import { uuidv7 } from 'uuidv7';
|
|
3
|
-
const getProcessGuidNewSortable = (qpqConfig) => {
|
|
4
|
-
return async () => {
|
|
5
|
-
return actionResult(uuidv7());
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export const getGuidNewSortableActionProcessor = async (qpqConfig) => ({
|
|
9
|
-
[GuidActionType.NewSortable]: getProcessGuidNewSortable(qpqConfig),
|
|
10
|
-
});
|
|
1
|
+
import { actionResult, GuidActionType, } from 'quidproquo-core';
|
|
2
|
+
import { uuidv7 } from 'uuidv7';
|
|
3
|
+
const getProcessGuidNewSortable = (qpqConfig) => {
|
|
4
|
+
return async () => {
|
|
5
|
+
return actionResult(uuidv7());
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export const getGuidNewSortableActionProcessor = async (qpqConfig) => ({
|
|
9
|
+
[GuidActionType.NewSortable]: getProcessGuidNewSortable(qpqConfig),
|
|
10
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getGuidProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getGuidProcessor: ActionProcessorListResolver;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getGuidNewActionProcessor } from './getGuidNewActionProcessor';
|
|
2
|
-
import { getGuidNewSortableActionProcessor } from './getGuidNewSortableActionProcessor';
|
|
3
|
-
export const getGuidProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
4
|
-
...(await getGuidNewActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
5
|
-
...(await getGuidNewSortableActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
6
|
-
});
|
|
1
|
+
import { getGuidNewActionProcessor } from './getGuidNewActionProcessor';
|
|
2
|
+
import { getGuidNewSortableActionProcessor } from './getGuidNewSortableActionProcessor';
|
|
3
|
+
export const getGuidProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
4
|
+
...(await getGuidNewActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
5
|
+
...(await getGuidNewSortableActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
6
|
+
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export * from './claudeAi';
|
|
3
|
-
export * from './config';
|
|
4
|
-
export * from './context';
|
|
5
|
-
export * from './date';
|
|
6
|
-
export * from './error';
|
|
7
|
-
export * from './guid';
|
|
8
|
-
export * from './log';
|
|
9
|
-
export * from './math';
|
|
10
|
-
export * from './network';
|
|
11
|
-
export * from './platform';
|
|
12
|
-
export * from './system';
|
|
13
|
-
export * from './customActions';
|
|
14
|
-
export declare const getCoreActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export * from './claudeAi';
|
|
3
|
+
export * from './config';
|
|
4
|
+
export * from './context';
|
|
5
|
+
export * from './date';
|
|
6
|
+
export * from './error';
|
|
7
|
+
export * from './guid';
|
|
8
|
+
export * from './log';
|
|
9
|
+
export * from './math';
|
|
10
|
+
export * from './network';
|
|
11
|
+
export * from './platform';
|
|
12
|
+
export * from './system';
|
|
13
|
+
export * from './customActions';
|
|
14
|
+
export declare const getCoreActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { getClaudeAiActionProcessor } from './claudeAi';
|
|
2
|
-
import { getConfigActionProcessor } from './config';
|
|
3
|
-
import { getContextActionProcessor } from './context';
|
|
4
|
-
import { getDateActionProcessor } from './date';
|
|
5
|
-
import { getErrorActionProcessor } from './error';
|
|
6
|
-
import { getGuidProcessor } from './guid';
|
|
7
|
-
import { getLogActionProcessor } from './log';
|
|
8
|
-
import { getMathActionProcessor } from './math';
|
|
9
|
-
import { getNetworkActionProcessor } from './network';
|
|
10
|
-
import { getPlatformActionProcessor } from './platform';
|
|
11
|
-
import { getSystemActionProcessor } from './system';
|
|
12
|
-
export * from './claudeAi';
|
|
13
|
-
export * from './config';
|
|
14
|
-
export * from './context';
|
|
15
|
-
export * from './date';
|
|
16
|
-
export * from './error';
|
|
17
|
-
export * from './guid';
|
|
18
|
-
export * from './log';
|
|
19
|
-
export * from './math';
|
|
20
|
-
export * from './network';
|
|
21
|
-
export * from './platform';
|
|
22
|
-
export * from './system';
|
|
23
|
-
// Custom actions is not done here, as it has to be done last after all
|
|
24
|
-
export * from './customActions';
|
|
25
|
-
export const getCoreActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
26
|
-
...(await getConfigActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
27
|
-
...(await getContextActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
28
|
-
...(await getClaudeAiActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
29
|
-
...(await getDateActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
30
|
-
...(await getErrorActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
31
|
-
...(await getGuidProcessor(qpqConfig, dynamicModuleLoader)),
|
|
32
|
-
...(await getLogActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
33
|
-
...(await getMathActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
34
|
-
...(await getNetworkActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
35
|
-
...(await getPlatformActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
36
|
-
...(await getSystemActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
37
|
-
});
|
|
1
|
+
import { getClaudeAiActionProcessor } from './claudeAi';
|
|
2
|
+
import { getConfigActionProcessor } from './config';
|
|
3
|
+
import { getContextActionProcessor } from './context';
|
|
4
|
+
import { getDateActionProcessor } from './date';
|
|
5
|
+
import { getErrorActionProcessor } from './error';
|
|
6
|
+
import { getGuidProcessor } from './guid';
|
|
7
|
+
import { getLogActionProcessor } from './log';
|
|
8
|
+
import { getMathActionProcessor } from './math';
|
|
9
|
+
import { getNetworkActionProcessor } from './network';
|
|
10
|
+
import { getPlatformActionProcessor } from './platform';
|
|
11
|
+
import { getSystemActionProcessor } from './system';
|
|
12
|
+
export * from './claudeAi';
|
|
13
|
+
export * from './config';
|
|
14
|
+
export * from './context';
|
|
15
|
+
export * from './date';
|
|
16
|
+
export * from './error';
|
|
17
|
+
export * from './guid';
|
|
18
|
+
export * from './log';
|
|
19
|
+
export * from './math';
|
|
20
|
+
export * from './network';
|
|
21
|
+
export * from './platform';
|
|
22
|
+
export * from './system';
|
|
23
|
+
// Custom actions is not done here, as it has to be done last after all
|
|
24
|
+
export * from './customActions';
|
|
25
|
+
export const getCoreActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
26
|
+
...(await getConfigActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
27
|
+
...(await getContextActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
28
|
+
...(await getClaudeAiActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
29
|
+
...(await getDateActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
30
|
+
...(await getErrorActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
31
|
+
...(await getGuidProcessor(qpqConfig, dynamicModuleLoader)),
|
|
32
|
+
...(await getLogActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
33
|
+
...(await getMathActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
34
|
+
...(await getNetworkActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
35
|
+
...(await getPlatformActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
36
|
+
...(await getSystemActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
37
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getLogCreateActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getLogCreateActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { actionResult, LogActionType } from 'quidproquo-core';
|
|
2
|
-
const getProcessLogCreate = (qpqConfig) => {
|
|
3
|
-
return async ({ msg, logLevel, data }) => {
|
|
4
|
-
if (data) {
|
|
5
|
-
console.log(`${logLevel}: ${msg}`, data);
|
|
6
|
-
}
|
|
7
|
-
else {
|
|
8
|
-
console.log(`${logLevel}: ${msg}`);
|
|
9
|
-
}
|
|
10
|
-
return actionResult(void 0);
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export const getLogCreateActionProcessor = async (qpqConfig) => ({
|
|
14
|
-
[LogActionType.Create]: getProcessLogCreate(qpqConfig),
|
|
15
|
-
});
|
|
1
|
+
import { actionResult, LogActionType } from 'quidproquo-core';
|
|
2
|
+
const getProcessLogCreate = (qpqConfig) => {
|
|
3
|
+
return async ({ msg, logLevel, data }) => {
|
|
4
|
+
if (data) {
|
|
5
|
+
console.log(`${logLevel}: ${msg}`, data);
|
|
6
|
+
}
|
|
7
|
+
else {
|
|
8
|
+
console.log(`${logLevel}: ${msg}`);
|
|
9
|
+
}
|
|
10
|
+
return actionResult(void 0);
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export const getLogCreateActionProcessor = async (qpqConfig) => ({
|
|
14
|
+
[LogActionType.Create]: getProcessLogCreate(qpqConfig),
|
|
15
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getLogDisableEventHistoryActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getLogDisableEventHistoryActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { actionResult, LogActionType, } from 'quidproquo-core';
|
|
2
|
-
const getProcessLogDisableEventHistory = (qpqConfig) => {
|
|
3
|
-
return async ({ enable, reason }, session, _actionProcessors, logger) => {
|
|
4
|
-
await logger.enableLogs(enable, reason, session.correlation || '');
|
|
5
|
-
return actionResult(void 0);
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export const getLogDisableEventHistoryActionProcessor = async (qpqConfig) => ({
|
|
9
|
-
[LogActionType.DisableEventHistory]: getProcessLogDisableEventHistory(qpqConfig),
|
|
10
|
-
});
|
|
1
|
+
import { actionResult, LogActionType, } from 'quidproquo-core';
|
|
2
|
+
const getProcessLogDisableEventHistory = (qpqConfig) => {
|
|
3
|
+
return async ({ enable, reason }, session, _actionProcessors, logger) => {
|
|
4
|
+
await logger.enableLogs(enable, reason, session.correlation || '');
|
|
5
|
+
return actionResult(void 0);
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export const getLogDisableEventHistoryActionProcessor = async (qpqConfig) => ({
|
|
9
|
+
[LogActionType.DisableEventHistory]: getProcessLogDisableEventHistory(qpqConfig),
|
|
10
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getLogTemplateLiteralActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getLogTemplateLiteralActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { actionResult, decomposedStringToString, LogActionType, } from 'quidproquo-core';
|
|
2
|
-
const getProcessLogTemplateLiteral = (qpqConfig) => {
|
|
3
|
-
return async ({ messageParts }) => {
|
|
4
|
-
const message = decomposedStringToString(messageParts);
|
|
5
|
-
console.log(message);
|
|
6
|
-
return actionResult(void 0);
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export const getLogTemplateLiteralActionProcessor = async (qpqConfig) => ({
|
|
10
|
-
[LogActionType.TemplateLiteral]: getProcessLogTemplateLiteral(qpqConfig),
|
|
11
|
-
});
|
|
1
|
+
import { actionResult, decomposedStringToString, LogActionType, } from 'quidproquo-core';
|
|
2
|
+
const getProcessLogTemplateLiteral = (qpqConfig) => {
|
|
3
|
+
return async ({ messageParts }) => {
|
|
4
|
+
const message = decomposedStringToString(messageParts);
|
|
5
|
+
console.log(message);
|
|
6
|
+
return actionResult(void 0);
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export const getLogTemplateLiteralActionProcessor = async (qpqConfig) => ({
|
|
10
|
+
[LogActionType.TemplateLiteral]: getProcessLogTemplateLiteral(qpqConfig),
|
|
11
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getLogActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getLogActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getLogCreateActionProcessor } from './getLogCreateActionProcessor';
|
|
2
|
-
import { getLogDisableEventHistoryActionProcessor } from './getLogDisableEventHistoryActionProcessor';
|
|
3
|
-
import { getLogTemplateLiteralActionProcessor } from './getLogTemplateLiteralActionProcessor';
|
|
4
|
-
export const getLogActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
5
|
-
...(await getLogCreateActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
6
|
-
...(await getLogDisableEventHistoryActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
7
|
-
...(await getLogTemplateLiteralActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
8
|
-
});
|
|
1
|
+
import { getLogCreateActionProcessor } from './getLogCreateActionProcessor';
|
|
2
|
+
import { getLogDisableEventHistoryActionProcessor } from './getLogDisableEventHistoryActionProcessor';
|
|
3
|
+
import { getLogTemplateLiteralActionProcessor } from './getLogTemplateLiteralActionProcessor';
|
|
4
|
+
export const getLogActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
5
|
+
...(await getLogCreateActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
6
|
+
...(await getLogDisableEventHistoryActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
7
|
+
...(await getLogTemplateLiteralActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
8
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getMathRandomNumberActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getMathRandomNumberActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { actionResult, MathActionType, } from 'quidproquo-core';
|
|
2
|
-
const getProcessMathRandomNumber = (qpqConfig) => {
|
|
3
|
-
return async () => {
|
|
4
|
-
return actionResult(Math.random());
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export const getMathRandomNumberActionProcessor = async (qpqConfig) => ({
|
|
8
|
-
[MathActionType.RandomNumber]: getProcessMathRandomNumber(qpqConfig),
|
|
9
|
-
});
|
|
1
|
+
import { actionResult, MathActionType, } from 'quidproquo-core';
|
|
2
|
+
const getProcessMathRandomNumber = (qpqConfig) => {
|
|
3
|
+
return async () => {
|
|
4
|
+
return actionResult(Math.random());
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export const getMathRandomNumberActionProcessor = async (qpqConfig) => ({
|
|
8
|
+
[MathActionType.RandomNumber]: getProcessMathRandomNumber(qpqConfig),
|
|
9
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getMathActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getMathActionProcessor: ActionProcessorListResolver;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getMathRandomNumberActionProcessor } from './getMathRandomNumberActionProcessor';
|
|
2
|
-
export const getMathActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
3
|
-
...(await getMathRandomNumberActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
4
|
-
});
|
|
1
|
+
import { getMathRandomNumberActionProcessor } from './getMathRandomNumberActionProcessor';
|
|
2
|
+
export const getMathActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
|
|
3
|
+
...(await getMathRandomNumberActionProcessor(qpqConfig, dynamicModuleLoader)),
|
|
4
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
-
export declare const getNetworkRequestActionProcessor: ActionProcessorListResolver;
|
|
1
|
+
import { ActionProcessorListResolver } from 'quidproquo-core';
|
|
2
|
+
export declare const getNetworkRequestActionProcessor: ActionProcessorListResolver;
|