quidproquo-core 0.0.38 → 0.0.40
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/actions/config/ConfigActionType.d.ts +5 -0
- package/lib/actions/config/ConfigActionType.js +9 -0
- package/lib/actions/config/ConfigGetParameterActionRequester.d.ts +2 -0
- package/lib/actions/config/ConfigGetParameterActionRequester.js +8 -0
- package/{src/actions/config/ConfigGetParameterActionTypes.ts → lib/actions/config/ConfigGetParameterActionTypes.d.ts} +3 -9
- package/lib/actions/config/ConfigGetParameterActionTypes.js +2 -0
- package/lib/actions/config/ConfigGetParametersActionRequester.d.ts +2 -0
- package/lib/actions/config/ConfigGetParametersActionRequester.js +8 -0
- package/{src/actions/config/ConfigGetParametersActionTypes.ts → lib/actions/config/ConfigGetParametersActionTypes.d.ts} +5 -17
- package/lib/actions/config/ConfigGetParametersActionTypes.js +2 -0
- package/lib/actions/config/ConfigGetSecretActionRequester.d.ts +2 -0
- package/lib/actions/config/ConfigGetSecretActionRequester.js +8 -0
- package/{src/actions/config/ConfigGetSecretActionTypes.ts → lib/actions/config/ConfigGetSecretActionTypes.d.ts} +3 -9
- package/lib/actions/config/ConfigGetSecretActionTypes.js +2 -0
- package/{src/actions/config/index.ts → lib/actions/config/index.d.ts} +0 -3
- package/lib/actions/config/index.js +23 -0
- package/lib/actions/date/DateActionType.d.ts +3 -0
- package/lib/actions/date/DateActionType.js +7 -0
- package/lib/actions/date/DateNowActionRequester.d.ts +2 -0
- package/lib/actions/date/DateNowActionRequester.js +8 -0
- package/{src/actions/date/DateNowActionTypes.ts → lib/actions/date/DateNowActionTypes.d.ts} +3 -8
- package/lib/actions/date/DateNowActionTypes.js +2 -0
- package/{src/actions/date/index.ts → lib/actions/date/index.d.ts} +0 -1
- package/lib/actions/date/index.js +19 -0
- package/lib/actions/error/ErrorActionType.d.ts +3 -0
- package/lib/actions/error/ErrorActionType.js +7 -0
- package/lib/actions/error/ErrorThrowErrorActionRequester.d.ts +3 -0
- package/lib/actions/error/ErrorThrowErrorActionRequester.js +11 -0
- package/{src/actions/error/ErrorThrowErrorActionRequesterTypes.ts → lib/actions/error/ErrorThrowErrorActionRequesterTypes.d.ts} +5 -11
- package/lib/actions/error/ErrorThrowErrorActionRequesterTypes.js +2 -0
- package/{src/actions/error/index.ts → lib/actions/error/index.d.ts} +0 -1
- package/lib/actions/error/index.js +19 -0
- package/lib/actions/event/EventActionType.d.ts +6 -0
- package/lib/actions/event/EventActionType.js +10 -0
- package/lib/actions/event/EventAutoRespondActionRequester.d.ts +2 -0
- package/lib/actions/event/EventAutoRespondActionRequester.js +11 -0
- package/{src/actions/event/EventAutoRespondActionTypes.ts → lib/actions/event/EventAutoRespondActionTypes.d.ts} +11 -17
- package/lib/actions/event/EventAutoRespondActionTypes.js +2 -0
- package/lib/actions/event/EventMatchStoryActionRequester.d.ts +2 -0
- package/lib/actions/event/EventMatchStoryActionRequester.js +11 -0
- package/{src/actions/event/EventMatchStoryActionTypes.ts → lib/actions/event/EventMatchStoryActionTypes.d.ts} +18 -30
- package/lib/actions/event/EventMatchStoryActionTypes.js +2 -0
- package/lib/actions/event/EventTransformEventParamsActionRequester.d.ts +2 -0
- package/lib/actions/event/EventTransformEventParamsActionRequester.js +11 -0
- package/lib/actions/event/EventTransformEventParamsActionTypes.d.ts +11 -0
- package/lib/actions/event/EventTransformEventParamsActionTypes.js +2 -0
- package/lib/actions/event/EventTransformResponseResultActionRequester.d.ts +2 -0
- package/lib/actions/event/EventTransformResponseResultActionRequester.js +11 -0
- package/lib/actions/event/EventTransformResponseResultActionTypes.d.ts +12 -0
- package/lib/actions/event/EventTransformResponseResultActionTypes.js +2 -0
- package/{src/actions/event/index.ts → lib/actions/event/index.d.ts} +0 -4
- package/lib/actions/event/index.js +25 -0
- package/lib/actions/file/FileActionType.d.ts +18 -0
- package/lib/actions/file/FileActionType.js +12 -0
- package/lib/actions/file/FileDeleteActionRequester.d.ts +2 -0
- package/lib/actions/file/FileDeleteActionRequester.js +14 -0
- package/{src/actions/file/FileDeleteActionTypes.ts → lib/actions/file/FileDeleteActionTypes.d.ts} +4 -10
- package/lib/actions/file/FileDeleteActionTypes.js +2 -0
- package/lib/actions/file/FileExistsActionRequester.d.ts +2 -0
- package/lib/actions/file/FileExistsActionRequester.js +14 -0
- package/{src/actions/file/FileExistsActionTypes.ts → lib/actions/file/FileExistsActionTypes.d.ts} +4 -10
- package/lib/actions/file/FileExistsActionTypes.js +2 -0
- package/lib/actions/file/FileListDirectoryActionRequester.d.ts +5 -0
- package/lib/actions/file/FileListDirectoryActionRequester.js +30 -0
- package/lib/actions/file/FileListDirectoryActionTypes.d.ts +14 -0
- package/lib/actions/file/FileListDirectoryActionTypes.js +2 -0
- package/lib/actions/file/FileReadTextContentsActionRequester.d.ts +2 -0
- package/lib/actions/file/FileReadTextContentsActionRequester.js +14 -0
- package/{src/actions/file/FileReadTextContentsActionTypes.ts → lib/actions/file/FileReadTextContentsActionTypes.d.ts} +6 -18
- package/lib/actions/file/FileReadTextContentsActionTypes.js +2 -0
- package/lib/actions/file/FileWriteTextContentsActionRequester.d.ts +2 -0
- package/lib/actions/file/FileWriteTextContentsActionRequester.js +15 -0
- package/{src/actions/file/FileWriteTextContentsActionTypes.ts → lib/actions/file/FileWriteTextContentsActionTypes.d.ts} +7 -19
- package/lib/actions/file/FileWriteTextContentsActionTypes.js +2 -0
- package/{src/actions/file/index.ts → lib/actions/file/index.d.ts} +0 -5
- package/lib/actions/file/index.js +27 -0
- package/lib/actions/guid/GuidActionType.d.ts +3 -0
- package/lib/actions/guid/GuidActionType.js +7 -0
- package/lib/actions/guid/GuidNewActionRequester.d.ts +2 -0
- package/lib/actions/guid/GuidNewActionRequester.js +8 -0
- package/{src/actions/guid/GuidNewActionRequesterTypes.ts → lib/actions/guid/GuidNewActionRequesterTypes.d.ts} +3 -8
- package/lib/actions/guid/GuidNewActionRequesterTypes.js +2 -0
- package/{src/actions/guid/index.ts → lib/actions/guid/index.d.ts} +0 -1
- package/lib/actions/guid/index.js +19 -0
- package/{src/actions/index.ts → lib/actions/index.d.ts} +0 -0
- package/lib/actions/index.js +27 -0
- package/lib/actions/log/LogActionType.d.ts +3 -0
- package/lib/actions/log/LogActionType.js +7 -0
- package/lib/actions/log/LogCreateActionRequester.d.ts +3 -0
- package/lib/actions/log/LogCreateActionRequester.js +15 -0
- package/{src/actions/log/LogCreateActionTypes.ts → lib/actions/log/LogCreateActionTypes.d.ts} +5 -11
- package/lib/actions/log/LogCreateActionTypes.js +2 -0
- package/{src/actions/log/index.ts → lib/actions/log/index.d.ts} +0 -1
- package/lib/actions/log/index.js +19 -0
- package/lib/actions/math/MathActionType.d.ts +3 -0
- package/lib/actions/math/MathActionType.js +7 -0
- package/lib/actions/math/MathRandomNumberActionRequester.d.ts +2 -0
- package/lib/actions/math/MathRandomNumberActionRequester.js +8 -0
- package/{src/actions/math/MathRandomNumberActionRequesterTypes.ts → lib/actions/math/MathRandomNumberActionRequesterTypes.d.ts} +3 -8
- package/lib/actions/math/MathRandomNumberActionRequesterTypes.js +2 -0
- package/{src/actions/math/index.ts → lib/actions/math/index.d.ts} +0 -1
- package/lib/actions/math/index.js +19 -0
- package/lib/actions/network/NetworkActionType.d.ts +16 -0
- package/lib/actions/network/NetworkActionType.js +7 -0
- package/lib/actions/network/NetworkRequestActionRequester.d.ts +3 -0
- package/lib/actions/network/NetworkRequestActionRequester.js +18 -0
- package/{src/actions/network/NetworkRequestActionTypes.ts → lib/actions/network/NetworkRequestActionTypes.d.ts} +10 -23
- package/lib/actions/network/NetworkRequestActionTypes.js +2 -0
- package/{src/actions/network/index.ts → lib/actions/network/index.d.ts} +0 -1
- package/lib/actions/network/index.js +19 -0
- package/lib/actions/platform/PlatformActionType.d.ts +3 -0
- package/lib/actions/platform/PlatformActionType.js +7 -0
- package/lib/actions/platform/PlatformDelayActionRequester.d.ts +2 -0
- package/lib/actions/platform/PlatformDelayActionRequester.js +8 -0
- package/{src/actions/platform/PlatformDelayActionRequesterTypes.ts → lib/actions/platform/PlatformDelayActionRequesterTypes.d.ts} +3 -9
- package/lib/actions/platform/PlatformDelayActionRequesterTypes.js +2 -0
- package/{src/actions/platform/index.ts → lib/actions/platform/index.d.ts} +0 -1
- package/lib/actions/platform/index.js +19 -0
- package/lib/actions/system/SystemActionType.d.ts +4 -0
- package/lib/actions/system/SystemActionType.js +15 -0
- package/lib/actions/system/SystemBatchActionRequester.d.ts +3 -0
- package/lib/actions/system/SystemBatchActionRequester.js +9 -0
- package/{src/actions/system/SystemBatchActionTypes.ts → lib/actions/system/SystemBatchActionTypes.d.ts} +11 -23
- package/lib/actions/system/SystemBatchActionTypes.js +2 -0
- package/lib/actions/system/SystemExecuteStoryActionRequester.d.ts +2 -0
- package/lib/actions/system/SystemExecuteStoryActionRequester.js +16 -0
- package/lib/actions/system/SystemExecuteStoryActionTypes.d.ts +14 -0
- package/lib/actions/system/SystemExecuteStoryActionTypes.js +2 -0
- package/lib/actions/system/SystemRunParallelActionRequester.d.ts +2 -0
- package/lib/actions/system/SystemRunParallelActionRequester.js +37 -0
- package/lib/actions/system/SystemRunParallelActionTypes.d.ts +1 -0
- package/lib/actions/system/SystemRunParallelActionTypes.js +2 -0
- package/{src/actions/system/index.ts → lib/actions/system/index.d.ts} +0 -3
- package/lib/actions/system/index.js +23 -0
- package/lib/config/QPQConfig.d.ts +11 -0
- package/lib/config/QPQConfig.js +11 -0
- package/{src/config/index.ts → lib/config/index.d.ts} +0 -0
- package/lib/config/index.js +18 -0
- package/lib/config/settings/appName.d.ts +6 -0
- package/lib/config/settings/appName.js +10 -0
- package/{src/config/settings/index.ts → lib/config/settings/index.d.ts} +0 -0
- package/lib/config/settings/index.js +21 -0
- package/lib/config/settings/parameter.d.ts +7 -0
- package/lib/config/settings/parameter.js +11 -0
- package/lib/config/settings/schedule.d.ts +11 -0
- package/lib/config/settings/schedule.js +16 -0
- package/lib/config/settings/secret.d.ts +7 -0
- package/lib/config/settings/secret.js +11 -0
- package/lib/config/settings/storageDrive.d.ts +5 -0
- package/lib/config/settings/storageDrive.js +9 -0
- package/{src/index.ts → lib/index.d.ts} +0 -6
- package/lib/index.js +41 -0
- package/lib/logic/actionLogic.d.ts +8 -0
- package/lib/logic/actionLogic.js +30 -0
- package/lib/qpqCoreUtils.d.ts +12 -0
- package/lib/qpqCoreUtils.js +58 -0
- package/lib/qpqRuntime.d.ts +3 -0
- package/lib/qpqRuntime.js +88 -0
- package/lib/stories/askProcessEvent.d.ts +1 -0
- package/lib/stories/askProcessEvent.js +22 -0
- package/{src/stories/index.ts → lib/stories/index.d.ts} +1 -1
- package/lib/stories/index.js +17 -0
- package/lib/types/Action.d.ts +12 -0
- package/lib/types/Action.js +2 -0
- package/lib/types/ErrorTypeEnum.d.ts +19 -0
- package/lib/types/ErrorTypeEnum.js +33 -0
- package/lib/types/LogLevelEnum.d.ts +8 -0
- package/lib/types/LogLevelEnum.js +44 -0
- package/lib/types/ScheduledEvent.d.ts +5 -0
- package/lib/types/ScheduledEvent.js +2 -0
- package/lib/types/StorySession.d.ts +28 -0
- package/lib/types/StorySession.js +2 -0
- package/package.json +4 -1
- package/src/actions/config/ConfigActionType.ts +0 -5
- package/src/actions/config/ConfigGetParameterActionRequester.ts +0 -6
- package/src/actions/config/ConfigGetParametersActionRequester.ts +0 -8
- package/src/actions/config/ConfigGetSecretActionRequester.ts +0 -6
- package/src/actions/date/DateActionType.ts +0 -3
- package/src/actions/date/DateNowActionRequester.ts +0 -6
- package/src/actions/error/ErrorActionType.ts +0 -3
- package/src/actions/error/ErrorThrowErrorActionRequester.ts +0 -14
- package/src/actions/event/EventActionType.ts +0 -6
- package/src/actions/event/EventAutoRespondActionRequester.ts +0 -11
- package/src/actions/event/EventMatchStoryActionRequester.ts +0 -11
- package/src/actions/event/EventTransformEventParamsActionRequester.ts +0 -12
- package/src/actions/event/EventTransformEventParamsActionTypes.ts +0 -24
- package/src/actions/event/EventTransformResponseResultActionRequester.ts +0 -12
- package/src/actions/event/EventTransformResponseResultActionTypes.ts +0 -25
- package/src/actions/file/FileActionType.ts +0 -21
- package/src/actions/file/FileDeleteActionRequester.ts +0 -12
- package/src/actions/file/FileExistsActionRequester.ts +0 -12
- package/src/actions/file/FileListDirectoryActionRequester.ts +0 -42
- package/src/actions/file/FileListDirectoryActionTypes.ts +0 -26
- package/src/actions/file/FileReadTextContentsActionRequester.ts +0 -15
- package/src/actions/file/FileWriteTextContentsActionRequester.ts +0 -17
- package/src/actions/guid/GuidActionType.ts +0 -3
- package/src/actions/guid/GuidNewActionRequester.ts +0 -6
- package/src/actions/log/LogActionType.ts +0 -3
- package/src/actions/log/LogCreateActionRequester.ts +0 -18
- package/src/actions/math/MathActionType.ts +0 -3
- package/src/actions/math/MathRandomNumberActionRequester.ts +0 -6
- package/src/actions/network/NetworkActionType.ts +0 -27
- package/src/actions/network/NetworkRequestActionRequester.ts +0 -22
- package/src/actions/platform/PlatformActionType.ts +0 -3
- package/src/actions/platform/PlatformDelayActionRequester.ts +0 -6
- package/src/actions/system/SystemActionType.ts +0 -13
- package/src/actions/system/SystemBatchActionRequester.ts +0 -10
- package/src/actions/system/SystemExecuteStoryActionRequester.ts +0 -19
- package/src/actions/system/SystemExecuteStoryActionTypes.ts +0 -27
- package/src/actions/system/SystemRunParallelActionRequester.ts +0 -40
- package/src/actions/system/SystemRunParallelActionTypes.ts +0 -9
- package/src/config/QPQConfig.ts +0 -13
- package/src/config/settings/appName.ts +0 -13
- package/src/config/settings/parameter.ts +0 -15
- package/src/config/settings/schedule.ts +0 -27
- package/src/config/settings/secret.ts +0 -19
- package/src/config/settings/storageDrive.ts +0 -11
- package/src/logic/actionLogic.ts +0 -34
- package/src/qpqCoreUtils.ts +0 -94
- package/src/qpqRuntime.ts +0 -145
- package/src/stories/askProcessEvent.ts +0 -30
- package/src/types/Action.ts +0 -38
- package/src/types/ErrorTypeEnum.ts +0 -46
- package/src/types/LogLevelEnum.ts +0 -45
- package/src/types/ScheduledEvent.ts +0 -6
- package/src/types/StorySession.ts +0 -46
- package/tsconfig.json +0 -8
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigActionType = void 0;
|
|
4
|
+
var ConfigActionType;
|
|
5
|
+
(function (ConfigActionType) {
|
|
6
|
+
ConfigActionType["GetSecret"] = "@quidproquo-core/Config/GetSecret";
|
|
7
|
+
ConfigActionType["GetParameter"] = "@quidproquo-core/Config/GetParameter";
|
|
8
|
+
ConfigActionType["GetParameters"] = "@quidproquo-core/Config/GetParameters";
|
|
9
|
+
})(ConfigActionType = exports.ConfigActionType || (exports.ConfigActionType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askConfigGetParameter = void 0;
|
|
4
|
+
const ConfigActionType_1 = require("./ConfigActionType");
|
|
5
|
+
function* askConfigGetParameter(parameterName) {
|
|
6
|
+
return yield { type: ConfigActionType_1.ConfigActionType.GetParameter, payload: { parameterName } };
|
|
7
|
+
}
|
|
8
|
+
exports.askConfigGetParameter = askConfigGetParameter;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
2
|
import { ConfigActionType } from './ConfigActionType';
|
|
3
|
-
|
|
4
|
-
// Payload
|
|
5
3
|
export interface ConfigGetParameterActionPayload {
|
|
6
|
-
|
|
4
|
+
parameterName: string;
|
|
7
5
|
}
|
|
8
|
-
|
|
9
|
-
// Action
|
|
10
6
|
export interface ConfigGetParameterAction extends Action<ConfigGetParameterActionPayload> {
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
type: ConfigActionType.GetParameter;
|
|
8
|
+
payload: ConfigGetParameterActionPayload;
|
|
13
9
|
}
|
|
14
|
-
|
|
15
|
-
// Function Types
|
|
16
10
|
export type ConfigGetParameterActionProcessor = ActionProcessor<ConfigGetParameterAction, string>;
|
|
17
11
|
export type ConfigGetParameterActionRequester = ActionRequester<ConfigGetParameterAction, string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askConfigGetParameters = void 0;
|
|
4
|
+
const ConfigActionType_1 = require("./ConfigActionType");
|
|
5
|
+
function* askConfigGetParameters(parameterNames) {
|
|
6
|
+
return yield { type: ConfigActionType_1.ConfigActionType.GetParameters, payload: { parameterNames } };
|
|
7
|
+
}
|
|
8
|
+
exports.askConfigGetParameters = askConfigGetParameters;
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
2
|
import { ConfigActionType } from './ConfigActionType';
|
|
3
|
-
|
|
4
|
-
// Payload
|
|
5
3
|
export interface ConfigGetParametersActionPayload {
|
|
6
|
-
|
|
4
|
+
parameterNames: string[];
|
|
7
5
|
}
|
|
8
|
-
|
|
9
|
-
// Action
|
|
10
6
|
export interface ConfigGetParametersAction extends Action<ConfigGetParametersActionPayload> {
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
type: ConfigActionType.GetParameters;
|
|
8
|
+
payload: ConfigGetParametersActionPayload;
|
|
13
9
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type ConfigGetParametersActionProcessor = ActionProcessor<
|
|
17
|
-
ConfigGetParametersAction,
|
|
18
|
-
string[]
|
|
19
|
-
>;
|
|
20
|
-
export type ConfigGetParametersActionRequester = ActionRequester<
|
|
21
|
-
ConfigGetParametersAction,
|
|
22
|
-
string[]
|
|
23
|
-
>;
|
|
10
|
+
export type ConfigGetParametersActionProcessor = ActionProcessor<ConfigGetParametersAction, string[]>;
|
|
11
|
+
export type ConfigGetParametersActionRequester = ActionRequester<ConfigGetParametersAction, string[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askConfigGetSecret = void 0;
|
|
4
|
+
const ConfigActionType_1 = require("./ConfigActionType");
|
|
5
|
+
function* askConfigGetSecret(secretName) {
|
|
6
|
+
return yield { type: ConfigActionType_1.ConfigActionType.GetSecret, payload: { secretName } };
|
|
7
|
+
}
|
|
8
|
+
exports.askConfigGetSecret = askConfigGetSecret;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
2
|
import { ConfigActionType } from './ConfigActionType';
|
|
3
|
-
|
|
4
|
-
// Payload
|
|
5
3
|
export interface ConfigGetSecretActionPayload {
|
|
6
|
-
|
|
4
|
+
secretName: string;
|
|
7
5
|
}
|
|
8
|
-
|
|
9
|
-
// Action
|
|
10
6
|
export interface ConfigGetSecretAction extends Action<ConfigGetSecretActionPayload> {
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
type: ConfigActionType.GetSecret;
|
|
8
|
+
payload: ConfigGetSecretActionPayload;
|
|
13
9
|
}
|
|
14
|
-
|
|
15
|
-
// Function Types
|
|
16
10
|
export type ConfigGetSecretActionProcessor = ActionProcessor<ConfigGetSecretAction, string>;
|
|
17
11
|
export type ConfigGetSecretActionRequester = ActionRequester<ConfigGetSecretAction, string>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export * from './ConfigActionType';
|
|
2
|
-
|
|
3
2
|
export * from './ConfigGetParameterActionRequester';
|
|
4
3
|
export * from './ConfigGetParameterActionTypes';
|
|
5
|
-
|
|
6
4
|
export * from './ConfigGetParametersActionRequester';
|
|
7
5
|
export * from './ConfigGetParametersActionTypes';
|
|
8
|
-
|
|
9
6
|
export * from './ConfigGetSecretActionRequester';
|
|
10
7
|
export * from './ConfigGetSecretActionTypes';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ConfigActionType"), exports);
|
|
18
|
+
__exportStar(require("./ConfigGetParameterActionRequester"), exports);
|
|
19
|
+
__exportStar(require("./ConfigGetParameterActionTypes"), exports);
|
|
20
|
+
__exportStar(require("./ConfigGetParametersActionRequester"), exports);
|
|
21
|
+
__exportStar(require("./ConfigGetParametersActionTypes"), exports);
|
|
22
|
+
__exportStar(require("./ConfigGetSecretActionRequester"), exports);
|
|
23
|
+
__exportStar(require("./ConfigGetSecretActionTypes"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateActionType = void 0;
|
|
4
|
+
var DateActionType;
|
|
5
|
+
(function (DateActionType) {
|
|
6
|
+
DateActionType["Now"] = "@quidproquo-core/Date/Now";
|
|
7
|
+
})(DateActionType = exports.DateActionType || (exports.DateActionType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askDateNow = void 0;
|
|
4
|
+
const DateActionType_1 = require("./DateActionType");
|
|
5
|
+
function* askDateNow() {
|
|
6
|
+
return yield { type: DateActionType_1.DateActionType.Now };
|
|
7
|
+
}
|
|
8
|
+
exports.askDateNow = askDateNow;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
2
|
import { DateActionType } from './DateActionType';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface DateNowActionPayload {}
|
|
6
|
-
|
|
7
|
-
// Action
|
|
3
|
+
export interface DateNowActionPayload {
|
|
4
|
+
}
|
|
8
5
|
export interface DateNowAction extends Action<DateNowActionPayload> {
|
|
9
|
-
|
|
6
|
+
type: DateActionType.Now;
|
|
10
7
|
}
|
|
11
|
-
|
|
12
|
-
// Function Types
|
|
13
8
|
export type DateNowActionProcessor = ActionProcessor<DateNowAction, string>;
|
|
14
9
|
export type DateNowActionRequester = ActionRequester<DateNowAction, string>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DateActionType"), exports);
|
|
18
|
+
__exportStar(require("./DateNowActionRequester"), exports);
|
|
19
|
+
__exportStar(require("./DateNowActionTypes"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorActionType = void 0;
|
|
4
|
+
var ErrorActionType;
|
|
5
|
+
(function (ErrorActionType) {
|
|
6
|
+
ErrorActionType["ThrowError"] = "@quidproquo-core/error/ThrowError";
|
|
7
|
+
})(ErrorActionType = exports.ErrorActionType || (exports.ErrorActionType = {}));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ErrorThrowErrorActionRequester } from './ErrorThrowErrorActionRequesterTypes';
|
|
2
|
+
import { ErrorTypeEnum } from '../../types/ErrorTypeEnum';
|
|
3
|
+
export declare function askThrowError(errorType: ErrorTypeEnum, errorText: string, errorStack?: string): ErrorThrowErrorActionRequester;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askThrowError = void 0;
|
|
4
|
+
const ErrorActionType_1 = require("./ErrorActionType");
|
|
5
|
+
function* askThrowError(errorType, errorText, errorStack) {
|
|
6
|
+
yield {
|
|
7
|
+
type: ErrorActionType_1.ErrorActionType.ThrowError,
|
|
8
|
+
payload: { errorType, errorText, errorStack },
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
exports.askThrowError = askThrowError;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { ErrorActionType } from './ErrorActionType';
|
|
2
2
|
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
3
3
|
import { ErrorTypeEnum } from '../../types/ErrorTypeEnum';
|
|
4
|
-
|
|
5
|
-
// Payload
|
|
6
4
|
export interface ErrorThrowErrorActionPayload {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
errorType: ErrorTypeEnum;
|
|
6
|
+
errorText: string;
|
|
7
|
+
errorStack?: string;
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
// Action
|
|
13
9
|
export interface ErrorThrowErrorAction extends Action<ErrorThrowErrorActionPayload> {
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
type: ErrorActionType.ThrowError;
|
|
11
|
+
payload: ErrorThrowErrorActionPayload;
|
|
16
12
|
}
|
|
17
|
-
|
|
18
|
-
// Functions
|
|
19
13
|
export type ErrorThrowErrorActionProcessor = ActionProcessor<ErrorThrowErrorAction, void>;
|
|
20
14
|
export type ErrorThrowErrorActionRequester = ActionRequester<ErrorThrowErrorAction, void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ErrorActionType"), exports);
|
|
18
|
+
__exportStar(require("./ErrorThrowErrorActionRequester"), exports);
|
|
19
|
+
__exportStar(require("./ErrorThrowErrorActionRequesterTypes"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare enum EventActionType {
|
|
2
|
+
TransformEventParams = "@quidproquo-core/event/TransformEventParams",
|
|
3
|
+
TransformResponseResult = "@quidproquo-core/event/TransformResponseResult",
|
|
4
|
+
AutoRespond = "@quidproquo-core/event/AutoRespond",
|
|
5
|
+
MatchStory = "@quidproquo-core/event/MatchStory"
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventActionType = void 0;
|
|
4
|
+
var EventActionType;
|
|
5
|
+
(function (EventActionType) {
|
|
6
|
+
EventActionType["TransformEventParams"] = "@quidproquo-core/event/TransformEventParams";
|
|
7
|
+
EventActionType["TransformResponseResult"] = "@quidproquo-core/event/TransformResponseResult";
|
|
8
|
+
EventActionType["AutoRespond"] = "@quidproquo-core/event/AutoRespond";
|
|
9
|
+
EventActionType["MatchStory"] = "@quidproquo-core/event/MatchStory";
|
|
10
|
+
})(EventActionType = exports.EventActionType || (exports.EventActionType = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askEventAutoRespond = void 0;
|
|
4
|
+
const EventActionType_1 = require("./EventActionType");
|
|
5
|
+
function* askEventAutoRespond(transformedEventParams) {
|
|
6
|
+
return yield {
|
|
7
|
+
type: EventActionType_1.EventActionType.AutoRespond,
|
|
8
|
+
payload: { transformedEventParams },
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
exports.askEventAutoRespond = askEventAutoRespond;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
|
-
import { EventActionType } from './EventActionType';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
payload: EventAutoRespondActionPayload<T>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Functions
|
|
16
|
-
export type EventAutoRespondActionProcessor<T> = ActionProcessor<EventAutoRespondAction<T>, any>;
|
|
17
|
-
export type EventAutoRespondActionRequester<T> = ActionRequester<EventAutoRespondAction<T>, any>;
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
|
+
import { EventActionType } from './EventActionType';
|
|
3
|
+
export interface EventAutoRespondActionPayload<T> {
|
|
4
|
+
transformedEventParams: T;
|
|
5
|
+
}
|
|
6
|
+
export interface EventAutoRespondAction<T> extends Action<EventAutoRespondActionPayload<T>> {
|
|
7
|
+
type: EventActionType.AutoRespond;
|
|
8
|
+
payload: EventAutoRespondActionPayload<T>;
|
|
9
|
+
}
|
|
10
|
+
export type EventAutoRespondActionProcessor<T> = ActionProcessor<EventAutoRespondAction<T>, any>;
|
|
11
|
+
export type EventAutoRespondActionRequester<T> = ActionRequester<EventAutoRespondAction<T>, any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askEventMatchStory = void 0;
|
|
4
|
+
const EventActionType_1 = require("./EventActionType");
|
|
5
|
+
function* askEventMatchStory(transformedEventParams) {
|
|
6
|
+
return yield {
|
|
7
|
+
type: EventActionType_1.EventActionType.MatchStory,
|
|
8
|
+
payload: { transformedEventParams },
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
exports.askEventMatchStory = askEventMatchStory;
|
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
|
-
import { EventActionType } from './EventActionType';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
payload: EventMatchStoryActionPayload<T>;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Functions
|
|
23
|
-
export type EventMatchStoryActionProcessor<T> = ActionProcessor<
|
|
24
|
-
EventMatchStoryAction<T>,
|
|
25
|
-
MatchStoryResult
|
|
26
|
-
>;
|
|
27
|
-
export type EventMatchStoryActionRequester<T> = ActionRequester<
|
|
28
|
-
EventMatchStoryAction<T>,
|
|
29
|
-
MatchStoryResult
|
|
30
|
-
>;
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
|
+
import { EventActionType } from './EventActionType';
|
|
3
|
+
export type MatchStoryResult = {
|
|
4
|
+
src?: string;
|
|
5
|
+
runtime?: string;
|
|
6
|
+
options?: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export interface EventMatchStoryActionPayload<T> {
|
|
11
|
+
transformedEventParams: T;
|
|
12
|
+
}
|
|
13
|
+
export interface EventMatchStoryAction<T> extends Action<EventMatchStoryActionPayload<T>> {
|
|
14
|
+
type: EventActionType.MatchStory;
|
|
15
|
+
payload: EventMatchStoryActionPayload<T>;
|
|
16
|
+
}
|
|
17
|
+
export type EventMatchStoryActionProcessor<T> = ActionProcessor<EventMatchStoryAction<T>, MatchStoryResult>;
|
|
18
|
+
export type EventMatchStoryActionRequester<T> = ActionRequester<EventMatchStoryAction<T>, MatchStoryResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askEventTransformEventParams = void 0;
|
|
4
|
+
const EventActionType_1 = require("./EventActionType");
|
|
5
|
+
function* askEventTransformEventParams(...eventParams) {
|
|
6
|
+
return yield {
|
|
7
|
+
type: EventActionType_1.EventActionType.TransformEventParams,
|
|
8
|
+
payload: { eventParams },
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
exports.askEventTransformEventParams = askEventTransformEventParams;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
|
+
import { EventActionType } from './EventActionType';
|
|
3
|
+
export interface EventTransformEventParamsActionPayload<T extends Array<unknown>> {
|
|
4
|
+
eventParams: T;
|
|
5
|
+
}
|
|
6
|
+
export interface EventTransformEventParamsAction<T extends Array<unknown>> extends Action<EventTransformEventParamsActionPayload<T>> {
|
|
7
|
+
type: EventActionType.TransformEventParams;
|
|
8
|
+
payload: EventTransformEventParamsActionPayload<T>;
|
|
9
|
+
}
|
|
10
|
+
export type EventTransformEventParamsActionProcessor<T extends Array<unknown>, TRes> = ActionProcessor<EventTransformEventParamsAction<T>, TRes>;
|
|
11
|
+
export type EventTransformEventParamsActionRequester<T extends Array<unknown>, TRes> = ActionRequester<EventTransformEventParamsAction<T>, TRes>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { EventTransformResponseResultActionRequester } from './EventTransformResponseResultActionTypes';
|
|
2
|
+
export declare function askEventTransformResponseResult<TOutputRes, TInputRes, TTransformedEventParams>(response: TInputRes, transformedEventParams: TTransformedEventParams): EventTransformResponseResultActionRequester<TOutputRes>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askEventTransformResponseResult = void 0;
|
|
4
|
+
const EventActionType_1 = require("./EventActionType");
|
|
5
|
+
function* askEventTransformResponseResult(response, transformedEventParams) {
|
|
6
|
+
return yield {
|
|
7
|
+
type: EventActionType_1.EventActionType.TransformResponseResult,
|
|
8
|
+
payload: { response, transformedEventParams },
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
exports.askEventTransformResponseResult = askEventTransformResponseResult;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
|
+
import { EventActionType } from './EventActionType';
|
|
3
|
+
export interface EventTransformResponseResultActionPayload {
|
|
4
|
+
response: any;
|
|
5
|
+
transformedEventParams: any;
|
|
6
|
+
}
|
|
7
|
+
export interface EventTransformResponseResultAction extends Action<EventTransformResponseResultActionPayload> {
|
|
8
|
+
type: EventActionType.TransformResponseResult;
|
|
9
|
+
payload: EventTransformResponseResultActionPayload;
|
|
10
|
+
}
|
|
11
|
+
export type EventTransformResponseResultActionProcessor<TRes> = ActionProcessor<EventTransformResponseResultAction, TRes>;
|
|
12
|
+
export type EventTransformResponseResultActionRequester<TRes> = ActionRequester<EventTransformResponseResultAction, TRes>;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
export * from './EventActionType';
|
|
2
|
-
|
|
3
2
|
export * from './EventAutoRespondActionRequester';
|
|
4
3
|
export * from './EventAutoRespondActionTypes';
|
|
5
|
-
|
|
6
4
|
export * from './EventMatchStoryActionRequester';
|
|
7
5
|
export * from './EventMatchStoryActionTypes';
|
|
8
|
-
|
|
9
6
|
export * from './EventTransformEventParamsActionRequester';
|
|
10
7
|
export * from './EventTransformEventParamsActionTypes';
|
|
11
|
-
|
|
12
8
|
export * from './EventTransformResponseResultActionRequester';
|
|
13
9
|
export * from './EventTransformResponseResultActionTypes';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./EventActionType"), exports);
|
|
18
|
+
__exportStar(require("./EventAutoRespondActionRequester"), exports);
|
|
19
|
+
__exportStar(require("./EventAutoRespondActionTypes"), exports);
|
|
20
|
+
__exportStar(require("./EventMatchStoryActionRequester"), exports);
|
|
21
|
+
__exportStar(require("./EventMatchStoryActionTypes"), exports);
|
|
22
|
+
__exportStar(require("./EventTransformEventParamsActionRequester"), exports);
|
|
23
|
+
__exportStar(require("./EventTransformEventParamsActionTypes"), exports);
|
|
24
|
+
__exportStar(require("./EventTransformResponseResultActionRequester"), exports);
|
|
25
|
+
__exportStar(require("./EventTransformResponseResultActionTypes"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum FileActionType {
|
|
2
|
+
ReadTextContents = "@quidproquo-core/File/ReadTextContents",
|
|
3
|
+
WriteTextContents = "@quidproquo-core/File/WriteTextContents",
|
|
4
|
+
ListDirectory = "@quidproquo-core/File/ListDirectory",
|
|
5
|
+
Exists = "@quidproquo-core/File/Exists",
|
|
6
|
+
Delete = "@quidproquo-core/File/Delete"
|
|
7
|
+
}
|
|
8
|
+
export declare const filePathDelimiter = "/";
|
|
9
|
+
export interface FileInfo {
|
|
10
|
+
filepath: string;
|
|
11
|
+
drive: string;
|
|
12
|
+
isDir: boolean;
|
|
13
|
+
hashMd5?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DirectoryList {
|
|
16
|
+
fileInfos: FileInfo[];
|
|
17
|
+
pageToken?: string;
|
|
18
|
+
}
|