quidproquo-actionprocessor-awslambda 0.0.197 → 0.0.199
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/getActionProcessor/core/event/apiGatwayEvent/api/autoRespond.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/autoRespond.js +47 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/getRecords.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/getRecords.js +47 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/getStorySession.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/getStorySession.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/index.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/index.js +13 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/matchStory.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/matchStory.js +45 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/transformResponseResult.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/transformResponseResult.js +64 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/types.d.ts +10 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/types.js +2 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/index.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/index.js +18 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/autoRespond.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/autoRespond.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/getRecords.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/getRecords.js +38 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/getStorySession.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/getStorySession.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/index.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/index.js +13 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/matchStory.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/matchStory.js +43 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/transformResponseResult.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/transformResponseResult.js +29 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/types.d.ts +16 -0
- package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/websocket/types.js +5 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/autoRespond.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/autoRespond.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/getRecords.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/getRecords.js +39 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/getStorySession.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/getStorySession.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/index.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/index.js +13 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/matchStory.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/matchStory.js +43 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/transformResponseResult.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/transformResponseResult.js +71 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/types.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/cloudFrontOriginRequest/types.js +2 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/autoRespond.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/autoRespond.js +46 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/getRecords.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/getRecords.js +45 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/getStorySession.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/getStorySession.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/index.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/index.js +13 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/matchStory.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/matchStory.js +45 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/transformResponseResult.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/transformResponseResult.js +30 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/types.d.ts +9 -0
- package/lib/commonjs/getActionProcessor/core/event/cognitoCustomMessage/types.js +4 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/autoRespond.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/autoRespond.js +26 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/getRecords.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/getRecords.js +44 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/getStorySession.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/getStorySession.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/index.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/index.js +13 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/matchStory.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/matchStory.js +31 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/transformResponseResult.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/transformResponseResult.js +28 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/types.d.ts +15 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/deployStack/types.js +2 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/index.d.ts +2 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/index.js +18 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/autoRespond.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/autoRespond.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getRecords.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getRecords.js +27 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getStorySession.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/getStorySession.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/index.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/index.js +13 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/matchStory.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/matchStory.js +28 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/transformResponseResult.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/transformResponseResult.js +28 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/types.d.ts +7 -0
- package/lib/commonjs/getActionProcessor/core/event/eventBridgeEvent/recurringSchedule/types.js +2 -0
- package/lib/commonjs/getActionProcessor/core/event/index.d.ts +7 -0
- package/lib/commonjs/getActionProcessor/core/event/index.js +23 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/index.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/index.js +17 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/autoRespond.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/autoRespond.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/getRecords.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/getRecords.js +26 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/getStorySession.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/getStorySession.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/index.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/index.js +13 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/matchStory.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/{getServiceFunctionExecuteEventActionProcessor.js → lambda/serviceFunction/matchStory.js} +3 -21
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/transformResponseResult.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/transformResponseResult.js +25 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/types.d.ts +11 -0
- package/lib/commonjs/getActionProcessor/core/event/lambda/serviceFunction/types.js +2 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/autoRespond.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/autoRespond.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/getRecords.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/getRecords.js +33 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/getStorySession.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/getStorySession.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/index.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/index.js +13 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/matchStory.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/matchStory.js +23 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/transformResponseResult.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/transformResponseResult.js +28 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/types.d.ts +10 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/fileEvent/types.js +6 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/index.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/event/s3/index.js +17 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/index.d.ts +1 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/index.js +17 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/autoRespond.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/autoRespond.js +22 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/getRecords.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/getRecords.js +35 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/getStorySession.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/getStorySession.js +28 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/index.d.ts +8 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/index.js +13 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/matchStory.d.ts +7 -0
- package/lib/commonjs/getActionProcessor/core/event/{getSQSEventRecordActionProcessor.js → sqs/queue/matchStory.js} +5 -28
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/transformResponseResult.d.ts +6 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/transformResponseResult.js +35 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/types.d.ts +12 -0
- package/lib/commonjs/getActionProcessor/core/event/sqs/queue/types.js +2 -0
- package/lib/commonjs/getActionProcessor/core/index.d.ts +1 -10
- package/lib/commonjs/getActionProcessor/core/index.js +16 -21
- package/lib/commonjs/getActionProcessor/core/system/getExecuteStoryActionProcessor.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/core/system/getExecuteStoryActionProcessor.js +7 -1
- package/lib/commonjs/getActionProcessor/core/system/index.d.ts +1 -1
- package/lib/commonjs/getActionProcessor/webserver/serviceFunction/getServiceFunctionActionProcessor.js +6 -3
- package/package.json +5 -5
- package/lib/commonjs/getActionProcessor/core/event/getAPIGatewayEventActionProcessor.d.ts +0 -12
- package/lib/commonjs/getActionProcessor/core/event/getAPIGatewayEventActionProcessor.js +0 -127
- package/lib/commonjs/getActionProcessor/core/event/getCloudFrontOriginRequestEventActionProcessor.d.ts +0 -11
- package/lib/commonjs/getActionProcessor/core/event/getCloudFrontOriginRequestEventActionProcessor.js +0 -73
- package/lib/commonjs/getActionProcessor/core/event/getCustomResourceCloudflareDnsEventActionProcessor.d.ts +0 -12
- package/lib/commonjs/getActionProcessor/core/event/getCustomResourceCloudflareDnsEventActionProcessor.js +0 -80
- package/lib/commonjs/getActionProcessor/core/event/getEventBridgeEventActionProcessor.d.ts +0 -13
- package/lib/commonjs/getActionProcessor/core/event/getEventBridgeEventActionProcessor.js +0 -49
- package/lib/commonjs/getActionProcessor/core/event/getEventBridgeEventStackDeployActionProcessor.d.ts +0 -18
- package/lib/commonjs/getActionProcessor/core/event/getEventBridgeEventStackDeployActionProcessor.js +0 -75
- package/lib/commonjs/getActionProcessor/core/event/getLambdaCognitoCustomMessage.d.ts +0 -12
- package/lib/commonjs/getActionProcessor/core/event/getLambdaCognitoCustomMessage.js +0 -104
- package/lib/commonjs/getActionProcessor/core/event/getS3FileEventActionProcessor.d.ts +0 -12
- package/lib/commonjs/getActionProcessor/core/event/getS3FileEventActionProcessor.js +0 -54
- package/lib/commonjs/getActionProcessor/core/event/getSQSEventRecordActionProcessor.d.ts +0 -13
- package/lib/commonjs/getActionProcessor/core/event/getServiceFunctionExecuteEventActionProcessor.d.ts +0 -14
- package/lib/commonjs/getActionProcessor/core/event/getWebsocketAPIGatewayEventActionProcessor.d.ts +0 -22
- package/lib/commonjs/getActionProcessor/core/event/getWebsocketAPIGatewayEventActionProcessor.js +0 -82
|
@@ -1,9 +1,23 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
5
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getEventBusActionProcessor = exports.getUserDirectoryActionProcessor = exports.getQueueActionProcessor = exports.getKeyValueStoreActionProcessor = exports.getFileActionProcessor = exports.getSystemActionProcessor = exports.
|
|
20
|
+
exports.getEventBusActionProcessor = exports.getUserDirectoryActionProcessor = exports.getQueueActionProcessor = exports.getKeyValueStoreActionProcessor = exports.getFileActionProcessor = exports.getSystemActionProcessor = exports.getConfigSetParameterActionProcessor = exports.getConfigGetGlobalActionProcessor = exports.getConfigGetParametersActionProcessor = exports.getConfigGetParameterActionProcessor = exports.getConfigGetSecretActionProcessor = void 0;
|
|
7
21
|
var getConfigGetSecretActionProcessor_1 = require("./config/getConfigGetSecretActionProcessor");
|
|
8
22
|
Object.defineProperty(exports, "getConfigGetSecretActionProcessor", { enumerable: true, get: function () { return __importDefault(getConfigGetSecretActionProcessor_1).default; } });
|
|
9
23
|
var getConfigGetParameterActionProcessor_1 = require("./config/getConfigGetParameterActionProcessor");
|
|
@@ -14,26 +28,6 @@ var getConfigGetGlobalActionProcessor_1 = require("./config/getConfigGetGlobalAc
|
|
|
14
28
|
Object.defineProperty(exports, "getConfigGetGlobalActionProcessor", { enumerable: true, get: function () { return __importDefault(getConfigGetGlobalActionProcessor_1).default; } });
|
|
15
29
|
var getConfigSetParameterActionProcessor_1 = require("./config/getConfigSetParameterActionProcessor");
|
|
16
30
|
Object.defineProperty(exports, "getConfigSetParameterActionProcessor", { enumerable: true, get: function () { return __importDefault(getConfigSetParameterActionProcessor_1).default; } });
|
|
17
|
-
var getAPIGatewayEventActionProcessor_1 = require("./event/getAPIGatewayEventActionProcessor");
|
|
18
|
-
Object.defineProperty(exports, "getAPIGatewayEventActionProcessor", { enumerable: true, get: function () { return __importDefault(getAPIGatewayEventActionProcessor_1).default; } });
|
|
19
|
-
var getCloudFrontOriginRequestEventActionProcessor_1 = require("./event/getCloudFrontOriginRequestEventActionProcessor");
|
|
20
|
-
Object.defineProperty(exports, "getCloudFrontOriginRequestEventActionProcessor", { enumerable: true, get: function () { return __importDefault(getCloudFrontOriginRequestEventActionProcessor_1).default; } });
|
|
21
|
-
var getSQSEventRecordActionProcessor_1 = require("./event/getSQSEventRecordActionProcessor");
|
|
22
|
-
Object.defineProperty(exports, "getSQSEventRecordActionProcessor", { enumerable: true, get: function () { return __importDefault(getSQSEventRecordActionProcessor_1).default; } });
|
|
23
|
-
var getServiceFunctionExecuteEventActionProcessor_1 = require("./event/getServiceFunctionExecuteEventActionProcessor");
|
|
24
|
-
Object.defineProperty(exports, "getServiceFunctionExecuteEventActionProcessor", { enumerable: true, get: function () { return __importDefault(getServiceFunctionExecuteEventActionProcessor_1).default; } });
|
|
25
|
-
var getEventBridgeEventStackDeployActionProcessor_1 = require("./event/getEventBridgeEventStackDeployActionProcessor");
|
|
26
|
-
Object.defineProperty(exports, "getEventBridgeEventStackDeployActionProcessor", { enumerable: true, get: function () { return __importDefault(getEventBridgeEventStackDeployActionProcessor_1).default; } });
|
|
27
|
-
var getEventBridgeEventActionProcessor_1 = require("./event/getEventBridgeEventActionProcessor");
|
|
28
|
-
Object.defineProperty(exports, "getEventBridgeEventActionProcessor", { enumerable: true, get: function () { return __importDefault(getEventBridgeEventActionProcessor_1).default; } });
|
|
29
|
-
var getLambdaCognitoCustomMessage_1 = require("./event/getLambdaCognitoCustomMessage");
|
|
30
|
-
Object.defineProperty(exports, "getLambdaCognitoCustomMessage", { enumerable: true, get: function () { return __importDefault(getLambdaCognitoCustomMessage_1).default; } });
|
|
31
|
-
var getWebsocketAPIGatewayEventActionProcessor_1 = require("./event/getWebsocketAPIGatewayEventActionProcessor");
|
|
32
|
-
Object.defineProperty(exports, "getWebsocketAPIGatewayEventActionProcessor", { enumerable: true, get: function () { return __importDefault(getWebsocketAPIGatewayEventActionProcessor_1).default; } });
|
|
33
|
-
var getS3FileEventActionProcessor_1 = require("./event/getS3FileEventActionProcessor");
|
|
34
|
-
Object.defineProperty(exports, "getS3FileEventActionProcessor", { enumerable: true, get: function () { return __importDefault(getS3FileEventActionProcessor_1).default; } });
|
|
35
|
-
var getCustomResourceCloudflareDnsEventActionProcessor_1 = require("./event/getCustomResourceCloudflareDnsEventActionProcessor");
|
|
36
|
-
Object.defineProperty(exports, "getCustomResourceCloudflareDnsEventActionProcessor", { enumerable: true, get: function () { return __importDefault(getCustomResourceCloudflareDnsEventActionProcessor_1).default; } });
|
|
37
31
|
var system_1 = require("./system");
|
|
38
32
|
Object.defineProperty(exports, "getSystemActionProcessor", { enumerable: true, get: function () { return __importDefault(system_1).default; } });
|
|
39
33
|
var file_1 = require("./file");
|
|
@@ -46,3 +40,4 @@ var userDirectory_1 = require("./userDirectory");
|
|
|
46
40
|
Object.defineProperty(exports, "getUserDirectoryActionProcessor", { enumerable: true, get: function () { return __importDefault(userDirectory_1).default; } });
|
|
47
41
|
var eventBus_1 = require("./eventBus");
|
|
48
42
|
Object.defineProperty(exports, "getEventBusActionProcessor", { enumerable: true, get: function () { return __importDefault(eventBus_1).default; } });
|
|
43
|
+
__exportStar(require("./event"), exports);
|
|
@@ -2,6 +2,6 @@ import { QPQConfig, SystemExecuteStoryActionProcessor } from 'quidproquo-core';
|
|
|
2
2
|
import { DynamicModuleLoader } from '../../../types/DynamicLoader';
|
|
3
3
|
export declare const getDateNow: () => string;
|
|
4
4
|
declare const _default: (qpqConfig: QPQConfig, dynamicModuleLoader: DynamicModuleLoader) => {
|
|
5
|
-
"@quidproquo-core/System/ExecuteStory": SystemExecuteStoryActionProcessor<any[]>;
|
|
5
|
+
"@quidproquo-core/System/ExecuteStory": SystemExecuteStoryActionProcessor<any[], unknown>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
@@ -17,6 +17,7 @@ exports.getDateNow = getDateNow;
|
|
|
17
17
|
const getProcessExecuteStory = (qpqConfig, dynamicModuleLoader) => {
|
|
18
18
|
const moduleName = quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
|
|
19
19
|
return (payload, session, actionProcessors, logger) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
+
var _a, _b, _c, _d;
|
|
20
21
|
let module = yield dynamicModuleLoader(payload.src);
|
|
21
22
|
if (module === null) {
|
|
22
23
|
return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.NotFound, `Module not found [${payload.src}]`);
|
|
@@ -25,7 +26,12 @@ const getProcessExecuteStory = (qpqConfig, dynamicModuleLoader) => {
|
|
|
25
26
|
if (!story) {
|
|
26
27
|
return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.NotFound, `[${payload.runtime}] not found in module [${payload.src}]`);
|
|
27
28
|
}
|
|
28
|
-
const resolveStory = (0, quidproquo_core_1.createRuntime)(qpqConfig,
|
|
29
|
+
const resolveStory = (0, quidproquo_core_1.createRuntime)(qpqConfig, {
|
|
30
|
+
context: ((_a = payload.storySession) === null || _a === void 0 ? void 0 : _a.context) || session.context,
|
|
31
|
+
depth: (((_b = payload.storySession) === null || _b === void 0 ? void 0 : _b.depth) || session.depth || 0) + 1,
|
|
32
|
+
accessToken: ((_c = payload.storySession) === null || _c === void 0 ? void 0 : _c.accessToken) || session.accessToken,
|
|
33
|
+
correlation: ((_d = payload.storySession) === null || _d === void 0 ? void 0 : _d.correlation) || session.correlation,
|
|
34
|
+
}, actionProcessors, exports.getDateNow, logger,
|
|
29
35
|
// TODO: Share this logic.
|
|
30
36
|
`${moduleName}::${(0, awsLambdaUtils_1.randomGuid)()}`, quidproquo_core_1.QpqRuntimeType.EXECUTE_STORY, [`${payload.src}::${payload.runtime}`]);
|
|
31
37
|
const storyResult = yield resolveStory(story, payload.params);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QPQConfig } from 'quidproquo-core';
|
|
2
2
|
import { DynamicModuleLoader } from '../../../types/DynamicLoader';
|
|
3
3
|
declare const _default: (qpqConfig: QPQConfig, dynamicModuleLoader: DynamicModuleLoader) => {
|
|
4
|
-
"@quidproquo-core/System/ExecuteStory": import("quidproquo-core").SystemExecuteStoryActionProcessor<any[]>;
|
|
4
|
+
"@quidproquo-core/System/ExecuteStory": import("quidproquo-core").SystemExecuteStoryActionProcessor<any[], unknown>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
@@ -26,10 +26,13 @@ const getServiceFunctionExecuteActionProcessor = (qpqConfig) => {
|
|
|
26
26
|
storySession: Object.assign(Object.assign({}, session), { context }),
|
|
27
27
|
};
|
|
28
28
|
const result = yield (0, executeLambdaByName_1.executeLambdaByName)(awsFunctionName, region, serviceFunctionEvent, isAsync);
|
|
29
|
-
if (result
|
|
30
|
-
return (0, quidproquo_core_1.
|
|
29
|
+
if (!result) {
|
|
30
|
+
return (0, quidproquo_core_1.actionResult)(void 0);
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
if (!result.success) {
|
|
33
|
+
return (0, quidproquo_core_1.actionResultError)(result.error.errorType, result.error.errorText, `${service}::${functionName}: ${(result === null || result === void 0 ? void 0 : result.error.errorStack) || ''}`);
|
|
34
|
+
}
|
|
35
|
+
return (0, quidproquo_core_1.actionResult)(result.result);
|
|
33
36
|
});
|
|
34
37
|
};
|
|
35
38
|
exports.default = (qpqConfig) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-actionprocessor-awslambda",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.199",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"types": "./lib/commonjs/index.d.ts",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"lodash": "^4.17.21",
|
|
48
48
|
"node-cache": "^5.1.2",
|
|
49
49
|
"node-match-path": "^0.6.3",
|
|
50
|
-
"quidproquo-config-aws": "0.0.
|
|
51
|
-
"quidproquo-core": "0.0.
|
|
52
|
-
"quidproquo-webserver": "0.0.
|
|
50
|
+
"quidproquo-config-aws": "0.0.199",
|
|
51
|
+
"quidproquo-core": "0.0.199",
|
|
52
|
+
"quidproquo-webserver": "0.0.199"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/aws-lambda": "^8.10.109",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/jsonwebtoken": "^9.0.2",
|
|
58
58
|
"@types/lodash": "^4.14.194",
|
|
59
59
|
"@types/node": "^18.11.9",
|
|
60
|
-
"quidproquo-tsconfig": "0.0.
|
|
60
|
+
"quidproquo-tsconfig": "0.0.199",
|
|
61
61
|
"typescript": "^4.9.3"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { QPQConfig, MatchStoryResult, EventMatchStoryActionProcessor, EventTransformEventParamsActionProcessor, EventTransformResponseResultActionProcessor, EventAutoRespondActionProcessor } from 'quidproquo-core';
|
|
2
|
-
import { HTTPEvent, HTTPEventResponse, HttpEventRouteParams, RouteOptions } from 'quidproquo-webserver';
|
|
3
|
-
import { APIGatewayEvent, Context, APIGatewayProxyResult } from 'aws-lambda';
|
|
4
|
-
export type HttpRouteMatchStoryResult = MatchStoryResult<HttpEventRouteParams, RouteOptions>;
|
|
5
|
-
export type ApiGatewayEventParams = [APIGatewayEvent, Context];
|
|
6
|
-
declare const _default: (qpqConfig: QPQConfig) => {
|
|
7
|
-
"@quidproquo-core/event/TransformEventParams": EventTransformEventParamsActionProcessor<ApiGatewayEventParams, HTTPEvent<any>>;
|
|
8
|
-
"@quidproquo-core/event/TransformResponseResult": EventTransformResponseResultActionProcessor<HTTPEventResponse<string>, HTTPEvent<string>, APIGatewayProxyResult>;
|
|
9
|
-
"@quidproquo-core/event/AutoRespond": EventAutoRespondActionProcessor<HTTPEvent<any>, HttpRouteMatchStoryResult, HTTPEventResponse<string> | null>;
|
|
10
|
-
"@quidproquo-core/event/MatchStory": EventMatchStoryActionProcessor<HTTPEvent<any>, HttpRouteMatchStoryResult>;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
13
|
-
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
14
|
-
const awsLambdaUtils_1 = require("../../../awsLambdaUtils");
|
|
15
|
-
const isAuthValid_1 = require("./utils/isAuthValid");
|
|
16
|
-
const parseMultipartFormData_1 = require("./utils/parseMultipartFormData");
|
|
17
|
-
const transformHttpEventHeadersToAPIGatewayProxyResultHeaders = (headers) => {
|
|
18
|
-
return Object.keys(headers)
|
|
19
|
-
.filter((header) => !!headers[header])
|
|
20
|
-
.reduce((acc, header) => (Object.assign(Object.assign({}, acc), { [header]: headers[header] })), {});
|
|
21
|
-
};
|
|
22
|
-
const getProcessTransformEventParams = (serviceName) => {
|
|
23
|
-
return ({ eventParams: [apiGatewayEvent, context] }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
-
// const path = (apiGatewayEvent.path || '/').replace(new RegExp(`^(\/${serviceName})/`), '/');
|
|
25
|
-
// Initialize `path` by removing the service name prefix from `apiGatewayEvent.path`.
|
|
26
|
-
// This adjustment is necessary because the API gateway routes requests to services based on
|
|
27
|
-
// a base path that includes the service name. By subtracting `serviceName.length + 1` from the
|
|
28
|
-
// substring method's start index, we effectively strip the leading `/<serviceName>` segment,
|
|
29
|
-
// accounting for the leading slash. This ensures `path` reflects the intended resource location
|
|
30
|
-
// after the service name. Defaults to '/' if `apiGatewayEvent.path` is not provided.
|
|
31
|
-
const path = (apiGatewayEvent.path || '/').substring(serviceName.length + 1);
|
|
32
|
-
const transformedEventParams = {
|
|
33
|
-
path,
|
|
34
|
-
query: Object.assign(Object.assign({}, (apiGatewayEvent.multiValueQueryStringParameters || {})), (apiGatewayEvent.queryStringParameters || {})),
|
|
35
|
-
body: apiGatewayEvent.body,
|
|
36
|
-
headers: apiGatewayEvent.headers,
|
|
37
|
-
method: apiGatewayEvent.httpMethod,
|
|
38
|
-
correlation: context.awsRequestId,
|
|
39
|
-
sourceIp: apiGatewayEvent.requestContext.identity.sourceIp,
|
|
40
|
-
isBase64Encoded: apiGatewayEvent.isBase64Encoded,
|
|
41
|
-
};
|
|
42
|
-
// Transform the body if its a multipart/form-data
|
|
43
|
-
if ((quidproquo_webserver_1.qpqWebServerUtils.getHeaderValue('Content-Type', apiGatewayEvent.headers) || '').startsWith('multipart/form-data') && apiGatewayEvent.body) {
|
|
44
|
-
transformedEventParams.files = yield (0, parseMultipartFormData_1.parseMultipartFormData)(apiGatewayEvent);
|
|
45
|
-
}
|
|
46
|
-
console.log(JSON.stringify(transformedEventParams, null, 2));
|
|
47
|
-
return (0, quidproquo_core_1.actionResult)(transformedEventParams);
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
const getProcessTransformResponseResult = (qpqConfig) => {
|
|
51
|
-
// We might need to JSON.stringify the body.
|
|
52
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
53
|
-
var _a;
|
|
54
|
-
const headers = Object.assign(Object.assign({}, quidproquo_webserver_1.qpqWebServerUtils.getCorsHeaders(qpqConfig, {}, payload.transformedEventParams.headers)), (((_a = payload === null || payload === void 0 ? void 0 : payload.response) === null || _a === void 0 ? void 0 : _a.headers) || {}));
|
|
55
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
56
|
-
statusCode: payload.response.status,
|
|
57
|
-
body: payload.transformedEventParams.method === 'HEAD' || !payload.response.body ? '' : payload.response.body,
|
|
58
|
-
isBase64Encoded: payload.response.isBase64Encoded,
|
|
59
|
-
headers: transformHttpEventHeadersToAPIGatewayProxyResultHeaders(headers),
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
const getProcessAutoRespond = (qpqConfig) => {
|
|
64
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
65
|
-
var _a;
|
|
66
|
-
if (payload.transformedEventParams.method === 'OPTIONS') {
|
|
67
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
68
|
-
status: 200,
|
|
69
|
-
isBase64Encoded: false,
|
|
70
|
-
body: '',
|
|
71
|
-
headers: quidproquo_webserver_1.qpqWebServerUtils.getCorsHeaders(qpqConfig, payload.matchResult.config || {}, payload.transformedEventParams.headers),
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
// TODO: We can pull out the jwt from the session if thats a better way?
|
|
75
|
-
// Think about that when you dont have covid.
|
|
76
|
-
const authValid = yield (0, isAuthValid_1.isAuthValid)(qpqConfig, quidproquo_webserver_1.qpqWebServerUtils.getHeaderValue('Authorization', payload.transformedEventParams.headers), quidproquo_webserver_1.qpqWebServerUtils.getHeaderValue('x-api-key', payload.transformedEventParams.headers), (_a = payload.matchResult.config) === null || _a === void 0 ? void 0 : _a.routeAuthSettings);
|
|
77
|
-
if (!authValid) {
|
|
78
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
79
|
-
status: 401,
|
|
80
|
-
isBase64Encoded: false,
|
|
81
|
-
body: JSON.stringify({
|
|
82
|
-
message: 'You are unauthorized to access this resource',
|
|
83
|
-
}),
|
|
84
|
-
headers: quidproquo_webserver_1.qpqWebServerUtils.getCorsHeaders(qpqConfig, payload.matchResult.config || {}, payload.transformedEventParams.headers),
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
return (0, quidproquo_core_1.actionResult)(null);
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
const getProcessMatchStory = (qpqConfig) => {
|
|
91
|
-
const routes = quidproquo_webserver_1.qpqWebServerUtils.getAllRoutes(qpqConfig);
|
|
92
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
93
|
-
// Sort the routes by string length
|
|
94
|
-
// Note: We may need to filter variable routes out {} as the variables are length independent
|
|
95
|
-
const routesWithNoOptions = routes.filter((r) => r.method === payload.transformedEventParams.method ||
|
|
96
|
-
payload.transformedEventParams.method === 'OPTIONS' ||
|
|
97
|
-
(payload.transformedEventParams.method === 'HEAD' && r.method === 'GET'));
|
|
98
|
-
const sortedRoutes = quidproquo_webserver_1.qpqWebServerUtils.sortPathMatchConfigs(routesWithNoOptions);
|
|
99
|
-
// Find the most relevant match
|
|
100
|
-
const matchedRoute = sortedRoutes
|
|
101
|
-
.map((r) => ({
|
|
102
|
-
match: (0, awsLambdaUtils_1.matchUrl)(r.path, payload.transformedEventParams.path),
|
|
103
|
-
route: r,
|
|
104
|
-
}))
|
|
105
|
-
.find((m) => m.match.didMatch);
|
|
106
|
-
if (!matchedRoute) {
|
|
107
|
-
return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.NotFound, `route not found [${payload.transformedEventParams.path}] - [${quidproquo_webserver_1.qpqWebServerUtils.getHeaderValue('user-agent', payload.transformedEventParams.headers)}]`);
|
|
108
|
-
}
|
|
109
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
110
|
-
src: matchedRoute.route.src,
|
|
111
|
-
runtime: matchedRoute.route.runtime,
|
|
112
|
-
runtimeOptions: matchedRoute.match.params || {},
|
|
113
|
-
// TODO: Make this aware of the API that we are eventing
|
|
114
|
-
config: quidproquo_webserver_1.qpqWebServerUtils.mergeAllRouteOptions('api', matchedRoute.route, qpqConfig),
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
exports.default = (qpqConfig) => {
|
|
119
|
-
// TODO: Make this aware of the API that we are eventing
|
|
120
|
-
const serviceName = quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
|
|
121
|
-
return {
|
|
122
|
-
[quidproquo_core_1.EventActionType.TransformEventParams]: getProcessTransformEventParams(serviceName),
|
|
123
|
-
[quidproquo_core_1.EventActionType.TransformResponseResult]: getProcessTransformResponseResult(qpqConfig),
|
|
124
|
-
[quidproquo_core_1.EventActionType.AutoRespond]: getProcessAutoRespond(qpqConfig),
|
|
125
|
-
[quidproquo_core_1.EventActionType.MatchStory]: getProcessMatchStory(qpqConfig),
|
|
126
|
-
};
|
|
127
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { QPQConfig, MatchStoryResult, EventMatchStoryActionProcessor, EventTransformEventParamsActionProcessor, EventTransformResponseResultActionProcessor, EventAutoRespondActionProcessor } from 'quidproquo-core';
|
|
2
|
-
import { SeoQPQWebServerConfigSetting, SeoEvent, SeoEventResponse, SeoEventRouteParams } from 'quidproquo-webserver';
|
|
3
|
-
import { CloudFrontRequestEvent, Context } from 'aws-lambda';
|
|
4
|
-
export type CloudFrontOriginMatchStoryResult = MatchStoryResult<SeoEventRouteParams, SeoQPQWebServerConfigSetting>;
|
|
5
|
-
declare const _default: (config: QPQConfig) => {
|
|
6
|
-
"@quidproquo-core/event/TransformEventParams": EventTransformEventParamsActionProcessor<[CloudFrontRequestEvent, Context], SeoEvent<any>>;
|
|
7
|
-
"@quidproquo-core/event/TransformResponseResult": EventTransformResponseResultActionProcessor<SeoEventResponse, SeoEvent<any>, SeoEventResponse>;
|
|
8
|
-
"@quidproquo-core/event/AutoRespond": EventAutoRespondActionProcessor<SeoEvent<any>, CloudFrontOriginMatchStoryResult, null>;
|
|
9
|
-
"@quidproquo-core/event/MatchStory": EventMatchStoryActionProcessor<SeoEvent<any>, CloudFrontOriginMatchStoryResult>;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
package/lib/commonjs/getActionProcessor/core/event/getCloudFrontOriginRequestEventActionProcessor.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
13
|
-
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
14
|
-
const awsLambdaUtils_1 = require("../../../awsLambdaUtils");
|
|
15
|
-
const getProcessTransformEventParams = (qpqConfig) => {
|
|
16
|
-
return ({ eventParams: [cloudFrontRequestEvent, context] }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
-
const cfRecordRequest = cloudFrontRequestEvent.Records[0].cf.request;
|
|
18
|
-
const headers = Object.keys(cfRecordRequest.headers).reduce((acc, header) => (Object.assign(Object.assign({}, acc), { [header]: cfRecordRequest.headers[header][0].value })), {});
|
|
19
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
20
|
-
domain: quidproquo_webserver_1.qpqWebServerUtils.getBaseDomainName(qpqConfig),
|
|
21
|
-
body: cfRecordRequest.body,
|
|
22
|
-
correlation: context.awsRequestId,
|
|
23
|
-
method: cfRecordRequest.method,
|
|
24
|
-
path: cfRecordRequest.uri,
|
|
25
|
-
sourceIp: cfRecordRequest.clientIp,
|
|
26
|
-
headers: headers,
|
|
27
|
-
// TODO: query string support
|
|
28
|
-
query: {},
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
const getProcessTransformResponseResult = (configs) => {
|
|
33
|
-
return ({ response }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
34
|
-
return (0, quidproquo_core_1.actionResult)(response);
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
const getProcessAutoRespond = () => {
|
|
38
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
-
return (0, quidproquo_core_1.actionResult)(null);
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
const getProcessMatchStory = (seoConfigs) => {
|
|
43
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
-
// Sort the routes by string length
|
|
45
|
-
// we don't sort them here for SEO... its the order they are defined.
|
|
46
|
-
const sortedSeoConfigs = seoConfigs; // qpqWebServerUtils.sortPathMatchConfigs(seoConfigs);
|
|
47
|
-
// Find the most relevant match
|
|
48
|
-
const matchedSeoConfig = sortedSeoConfigs
|
|
49
|
-
.map((r) => ({
|
|
50
|
-
match: (0, awsLambdaUtils_1.matchUrl)(r.path, payload.transformedEventParams.path),
|
|
51
|
-
route: r,
|
|
52
|
-
}))
|
|
53
|
-
.find((m) => m.match.didMatch);
|
|
54
|
-
if (!matchedSeoConfig) {
|
|
55
|
-
return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.NotFound, `seo not found [${payload.transformedEventParams.path}]`);
|
|
56
|
-
}
|
|
57
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
58
|
-
src: matchedSeoConfig.route.src,
|
|
59
|
-
runtime: matchedSeoConfig.route.runtime,
|
|
60
|
-
runtimeOptions: matchedSeoConfig.match.params || {},
|
|
61
|
-
config: matchedSeoConfig.route,
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
exports.default = (config) => {
|
|
66
|
-
const seoConfigs = quidproquo_webserver_1.qpqWebServerUtils.getAllSeo(config);
|
|
67
|
-
return {
|
|
68
|
-
[quidproquo_core_1.EventActionType.TransformEventParams]: getProcessTransformEventParams(config),
|
|
69
|
-
[quidproquo_core_1.EventActionType.TransformResponseResult]: getProcessTransformResponseResult(config),
|
|
70
|
-
[quidproquo_core_1.EventActionType.AutoRespond]: getProcessAutoRespond(),
|
|
71
|
-
[quidproquo_core_1.EventActionType.MatchStory]: getProcessMatchStory(seoConfigs),
|
|
72
|
-
};
|
|
73
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { QPQConfig, MatchStoryResult, EventMatchStoryActionProcessor, EventTransformEventParamsActionProcessor, EventTransformResponseResultActionProcessor, EventAutoRespondActionProcessor } from 'quidproquo-core';
|
|
2
|
-
import { CloudflareDnsDeployEvent } from 'quidproquo-webserver';
|
|
3
|
-
import { CloudFormationCustomResourceEvent, Context } from 'aws-lambda';
|
|
4
|
-
type EventInput = [CloudFormationCustomResourceEvent, Context];
|
|
5
|
-
type MatchResult = MatchStoryResult<any, any>;
|
|
6
|
-
declare const _default: (qpqConfig: QPQConfig) => {
|
|
7
|
-
"@quidproquo-core/event/TransformEventParams": EventTransformEventParamsActionProcessor<EventInput, CloudflareDnsDeployEvent>;
|
|
8
|
-
"@quidproquo-core/event/TransformResponseResult": EventTransformResponseResultActionProcessor<void, CloudflareDnsDeployEvent, void>;
|
|
9
|
-
"@quidproquo-core/event/AutoRespond": EventAutoRespondActionProcessor<CloudflareDnsDeployEvent, MatchResult, boolean>;
|
|
10
|
-
"@quidproquo-core/event/MatchStory": EventMatchStoryActionProcessor<CloudflareDnsDeployEvent, MatchResult>;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
13
|
-
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
14
|
-
const getDomainValidationOptions_1 = require("../../../logic/acm/getDomainValidationOptions");
|
|
15
|
-
const findMatchingCertificates_1 = require("../../../logic/acm/findMatchingCertificates");
|
|
16
|
-
// // TODO: Don't use Globals like this
|
|
17
|
-
const GLOBAL_CERT_ARN = process.env.certificateArn;
|
|
18
|
-
const GLOBAL_CERT_DOMAIN = process.env.certificateDomain;
|
|
19
|
-
const GLOBAL_CERT_REGION = process.env.certificateRegion;
|
|
20
|
-
const awsToQpqEventTypeMap = {
|
|
21
|
-
Create: quidproquo_webserver_1.CloudflareDnsDeployEventEnum.Create,
|
|
22
|
-
Update: quidproquo_webserver_1.CloudflareDnsDeployEventEnum.Update,
|
|
23
|
-
Delete: quidproquo_webserver_1.CloudflareDnsDeployEventEnum.Delete,
|
|
24
|
-
};
|
|
25
|
-
const getProcessTransformEventParams = (siteDnsBase) => {
|
|
26
|
-
return ({ eventParams: [event, context] }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
-
var _a;
|
|
28
|
-
// Get all the certs that need to be added to the cloud flare
|
|
29
|
-
const certArns = [
|
|
30
|
-
...(yield (0, findMatchingCertificates_1.findMatchingCertificates)(GLOBAL_CERT_DOMAIN, GLOBAL_CERT_REGION)),
|
|
31
|
-
GLOBAL_CERT_ARN,
|
|
32
|
-
].filter(Boolean);
|
|
33
|
-
const certDomains = yield Promise.all(certArns.map((arn) => (0, getDomainValidationOptions_1.getDomainValidationOptions)(arn, GLOBAL_CERT_REGION)));
|
|
34
|
-
// Remove trailing dot from keys
|
|
35
|
-
const dnsEntriesWithTrimmedKeys = Object.entries(Object.assign(Object.assign({}, event.ResourceProperties.dnsEntries), certDomains.reduce((acc, certDomain) => (Object.assign(Object.assign({}, acc), certDomain)), {}))).reduce((acc, [key, value]) => {
|
|
36
|
-
const trimmedKey = key.endsWith('.') ? key.slice(0, -1) : key;
|
|
37
|
-
acc[trimmedKey] = value;
|
|
38
|
-
return acc;
|
|
39
|
-
}, {});
|
|
40
|
-
const transformedEventParams = {
|
|
41
|
-
siteDns: siteDnsBase,
|
|
42
|
-
RequestType: awsToQpqEventTypeMap[event.RequestType],
|
|
43
|
-
apiSecretName: event.ResourceProperties.apiSecretName,
|
|
44
|
-
dnsEntries: dnsEntriesWithTrimmedKeys,
|
|
45
|
-
oldDnsEntries: (_a = event === null || event === void 0 ? void 0 : event.OldResourceProperties) === null || _a === void 0 ? void 0 : _a.dnsEntries,
|
|
46
|
-
};
|
|
47
|
-
console.log('transformedEventParams', JSON.stringify(transformedEventParams, null, 2));
|
|
48
|
-
return (0, quidproquo_core_1.actionResult)(transformedEventParams);
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
const getProcessTransformResponseResult = (qpqConfig) => {
|
|
52
|
-
// We might need to JSON.stringify the body.
|
|
53
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
-
// always success
|
|
55
|
-
return (0, quidproquo_core_1.actionResult)(void 0);
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
const getProcessAutoRespond = (qpqConfig) => {
|
|
59
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
60
|
-
// always allow
|
|
61
|
-
return (0, quidproquo_core_1.actionResult)(false);
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
const getProcessMatchStory = (qpqConfig) => {
|
|
65
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
66
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
67
|
-
src: (0, quidproquo_core_1.getServiceEntry)('cloudflare', 'cloudflare', 'onDeploy'),
|
|
68
|
-
runtime: 'onDeploy',
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
exports.default = (qpqConfig) => {
|
|
73
|
-
const [siteDnsConfig] = quidproquo_webserver_1.qpqWebServerUtils.getDnsConfigs(qpqConfig);
|
|
74
|
-
return {
|
|
75
|
-
[quidproquo_core_1.EventActionType.TransformEventParams]: getProcessTransformEventParams(siteDnsConfig.dnsBase),
|
|
76
|
-
[quidproquo_core_1.EventActionType.TransformResponseResult]: getProcessTransformResponseResult(qpqConfig),
|
|
77
|
-
[quidproquo_core_1.EventActionType.AutoRespond]: getProcessAutoRespond(qpqConfig),
|
|
78
|
-
[quidproquo_core_1.EventActionType.MatchStory]: getProcessMatchStory(qpqConfig),
|
|
79
|
-
};
|
|
80
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MatchStoryResult, EventMatchStoryActionProcessor, EventTransformEventParamsActionProcessor, EventTransformResponseResultActionProcessor, EventAutoRespondActionProcessor, ScheduledEventParams } from 'quidproquo-core';
|
|
2
|
-
import { LambdaRuntimeConfig } from '../../../runtimeConfig/QPQAWSResourceMap';
|
|
3
|
-
import { EventBridgeEvent, Context } from 'aws-lambda';
|
|
4
|
-
type MatchOptions = {};
|
|
5
|
-
type MatchConfig = any;
|
|
6
|
-
type EventBridgeEventMatchStoryResult = MatchStoryResult<MatchOptions, MatchConfig>;
|
|
7
|
-
declare const _default: (runtimeConfig: LambdaRuntimeConfig) => {
|
|
8
|
-
"@quidproquo-core/event/TransformEventParams": EventTransformEventParamsActionProcessor<[EventBridgeEvent<any, any>, Context], ScheduledEventParams<any>>;
|
|
9
|
-
"@quidproquo-core/event/TransformResponseResult": EventTransformResponseResultActionProcessor<any, any, any>;
|
|
10
|
-
"@quidproquo-core/event/AutoRespond": EventAutoRespondActionProcessor<ScheduledEventParams<any>, EventBridgeEventMatchStoryResult, null>;
|
|
11
|
-
"@quidproquo-core/event/MatchStory": EventMatchStoryActionProcessor<ScheduledEventParams<any>, EventBridgeEventMatchStoryResult>;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
13
|
-
const getProcessTransformEventParams = () => {
|
|
14
|
-
return ({ eventParams: [eventBridgeEvent, context] }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
16
|
-
time: eventBridgeEvent.time,
|
|
17
|
-
correlation: context.awsRequestId,
|
|
18
|
-
detail: eventBridgeEvent.detail,
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
// No transform
|
|
23
|
-
const getProcessTransformResponseResult = () => {
|
|
24
|
-
return ({ response }) => __awaiter(void 0, void 0, void 0, function* () { return (0, quidproquo_core_1.actionResult)(response); });
|
|
25
|
-
};
|
|
26
|
-
// never early exit (maybe add validation?)
|
|
27
|
-
const getProcessAutoRespond = () => {
|
|
28
|
-
return () => __awaiter(void 0, void 0, void 0, function* () { return (0, quidproquo_core_1.actionResult)(null); });
|
|
29
|
-
};
|
|
30
|
-
const getProcessMatchStory = (lambdaRuntimeConfig) => {
|
|
31
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
32
|
-
if (!lambdaRuntimeConfig) {
|
|
33
|
-
return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.NotFound, 'event runtime not found');
|
|
34
|
-
}
|
|
35
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
36
|
-
src: lambdaRuntimeConfig.src,
|
|
37
|
-
runtime: lambdaRuntimeConfig.runtime,
|
|
38
|
-
runtimeOptions: {},
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
exports.default = (runtimeConfig) => {
|
|
43
|
-
return {
|
|
44
|
-
[quidproquo_core_1.EventActionType.TransformEventParams]: getProcessTransformEventParams(),
|
|
45
|
-
[quidproquo_core_1.EventActionType.TransformResponseResult]: getProcessTransformResponseResult(),
|
|
46
|
-
[quidproquo_core_1.EventActionType.AutoRespond]: getProcessAutoRespond(),
|
|
47
|
-
[quidproquo_core_1.EventActionType.MatchStory]: getProcessMatchStory(runtimeConfig),
|
|
48
|
-
};
|
|
49
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { QPQConfig, MatchStoryResult, EventMatchStoryActionProcessor, EventTransformEventParamsActionProcessor, EventTransformResponseResultActionProcessor, EventAutoRespondActionProcessor, DeployEvent } from 'quidproquo-core';
|
|
2
|
-
import { EventBridgeEvent, Context } from 'aws-lambda';
|
|
3
|
-
interface CloudFormationEventDetail {
|
|
4
|
-
'stack-id': string;
|
|
5
|
-
'status-details': {
|
|
6
|
-
status: string;
|
|
7
|
-
'status-reason': string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
type EventInput = [EventBridgeEvent<"CloudFormation Stack Status Change", CloudFormationEventDetail>, Context];
|
|
11
|
-
type MatchResult = MatchStoryResult<any, any>;
|
|
12
|
-
declare const _default: (qpqConfig: QPQConfig) => {
|
|
13
|
-
"@quidproquo-core/event/TransformEventParams": EventTransformEventParamsActionProcessor<EventInput, DeployEvent>;
|
|
14
|
-
"@quidproquo-core/event/TransformResponseResult": EventTransformResponseResultActionProcessor<void, DeployEvent, void>;
|
|
15
|
-
"@quidproquo-core/event/AutoRespond": EventAutoRespondActionProcessor<DeployEvent, MatchResult, boolean>;
|
|
16
|
-
"@quidproquo-core/event/MatchStory": EventMatchStoryActionProcessor<DeployEvent, MatchResult>;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
package/lib/commonjs/getActionProcessor/core/event/getEventBridgeEventStackDeployActionProcessor.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
13
|
-
const awsNamingUtils_1 = require("../../../awsNamingUtils");
|
|
14
|
-
const deployTypeMap = {
|
|
15
|
-
'UPDATE_COMPLETE': quidproquo_core_1.DeployEventStatusType.Update,
|
|
16
|
-
'CREATE_COMPLETE': quidproquo_core_1.DeployEventStatusType.Create,
|
|
17
|
-
'DELETE_COMPLETE': quidproquo_core_1.DeployEventStatusType.Delete,
|
|
18
|
-
};
|
|
19
|
-
// TODO: Don't use Globals like this
|
|
20
|
-
const GLOBAL_DEPLOY_EVENT_NAME = process.env.deployEventConfigName;
|
|
21
|
-
const getProcessTransformEventParams = (qpqConfig) => {
|
|
22
|
-
return ({ eventParams: [event, context] }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
-
const status = event.detail['status-details'].status || '';
|
|
24
|
-
const stackId = event.detail['stack-id'];
|
|
25
|
-
const regex = /:stack\/([^\/]+)/;
|
|
26
|
-
const match = stackId.match(regex);
|
|
27
|
-
const stackName = match && match[1] ? match[1] : '';
|
|
28
|
-
const transformedEventParams = {
|
|
29
|
-
deployEventType: quidproquo_core_1.DeployEventType.Unknown,
|
|
30
|
-
deployEventStatusType: deployTypeMap[status] || quidproquo_core_1.DeployEventStatusType.Unknown,
|
|
31
|
-
};
|
|
32
|
-
if (stackName === (0, awsNamingUtils_1.getApiStackName)(qpqConfig)) {
|
|
33
|
-
transformedEventParams.deployEventType = quidproquo_core_1.DeployEventType.Api;
|
|
34
|
-
}
|
|
35
|
-
else if (stackName === (0, awsNamingUtils_1.getWebStackName)(qpqConfig)) {
|
|
36
|
-
transformedEventParams.deployEventType = quidproquo_core_1.DeployEventType.Web;
|
|
37
|
-
}
|
|
38
|
-
console.log("transformedEventParams", transformedEventParams);
|
|
39
|
-
return (0, quidproquo_core_1.actionResult)(transformedEventParams);
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
const getProcessTransformResponseResult = (qpqConfig) => {
|
|
43
|
-
// We might need to JSON.stringify the body.
|
|
44
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
45
|
-
// always success
|
|
46
|
-
return (0, quidproquo_core_1.actionResult)(void 0);
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
const getProcessAutoRespond = (qpqConfig) => {
|
|
50
|
-
return ({ transformedEventParams }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
|
-
// exit if we don't know what deploy type this is, probably another stack
|
|
52
|
-
return (0, quidproquo_core_1.actionResult)(transformedEventParams.deployEventType === quidproquo_core_1.DeployEventType.Unknown ||
|
|
53
|
-
transformedEventParams.deployEventStatusType === quidproquo_core_1.DeployEventStatusType.Unknown);
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
const getProcessMatchStory = (qpqConfig) => {
|
|
57
|
-
const deployConfig = quidproquo_core_1.qpqCoreUtils.getDeployEventConfigs(qpqConfig).find(c => c.name === GLOBAL_DEPLOY_EVENT_NAME);
|
|
58
|
-
return (payload) => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
-
if (!deployConfig) {
|
|
60
|
-
return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.NotFound, `Could not find deploy event config ${GLOBAL_DEPLOY_EVENT_NAME}`);
|
|
61
|
-
}
|
|
62
|
-
return (0, quidproquo_core_1.actionResult)({
|
|
63
|
-
src: deployConfig.src.src,
|
|
64
|
-
runtime: deployConfig.src.runtime
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
exports.default = (qpqConfig) => {
|
|
69
|
-
return {
|
|
70
|
-
[quidproquo_core_1.EventActionType.TransformEventParams]: getProcessTransformEventParams(qpqConfig),
|
|
71
|
-
[quidproquo_core_1.EventActionType.TransformResponseResult]: getProcessTransformResponseResult(qpqConfig),
|
|
72
|
-
[quidproquo_core_1.EventActionType.AutoRespond]: getProcessAutoRespond(qpqConfig),
|
|
73
|
-
[quidproquo_core_1.EventActionType.MatchStory]: getProcessMatchStory(qpqConfig),
|
|
74
|
-
};
|
|
75
|
-
};
|