quidproquo-actionprocessor-awslambda 0.0.186 → 0.0.187
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.
|
@@ -16,7 +16,7 @@ export declare const getCFExportNameUserPoolClientIdFromConfig: (userDirectoryNa
|
|
|
16
16
|
export declare const getCFExportNameApiKeyIdFromConfig: (apiKeyName: string, qpqConfig: QPQConfig, serviceOverride?: string, applicationOverride?: string) => string;
|
|
17
17
|
export declare const getCFExportNameSnsTopicArnFromConfig: (eventBusName: string, qpqConfig: QPQConfig, applicationOverride?: string) => string;
|
|
18
18
|
export declare const getCFExportNameDistributionIdArnFromConfig: (webEntryName: string, qpqConfig: QPQConfig, serviceOverride?: string, applicationOverride?: string) => string;
|
|
19
|
-
export declare const getCFExportNameWebsocketApiIdFromConfig: (websocketApiName: string, qpqConfig: QPQConfig
|
|
19
|
+
export declare const getCFExportNameWebsocketApiIdFromConfig: (websocketApiName: string, qpqConfig: QPQConfig) => string;
|
|
20
20
|
export declare const getEventBusSnsTopicArn: (eventBusName: string, qpqConfig: QPQConfig, module: string, environment: string, application: string, feature?: string) => string;
|
|
21
21
|
export declare const getBaseStackName: (qpqConfig: QPQConfig) => string;
|
|
22
22
|
export declare const getInfStackName: (qpqConfig: QPQConfig) => string;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getBootstrapStackName = exports.getApiStackName = exports.getWebStackName = exports.getInfStackName = exports.getBaseStackName = exports.getEventBusSnsTopicArn = exports.getCFExportNameWebsocketApiIdFromConfig = exports.getCFExportNameDistributionIdArnFromConfig = exports.getCFExportNameSnsTopicArnFromConfig = exports.getCFExportNameApiKeyIdFromConfig = exports.getCFExportNameUserPoolClientIdFromConfig = exports.getCFExportNameCachePolicyIdFromConfig = exports.getCFExportNameUserPoolIdFromConfig = exports.getKvsDynamoTableNameFromConfig = exports.getQpqRuntimeResourceNameFromConfig = exports.getQpqRuntimeResourceName = exports.getConfigRuntimeResourceNameFromConfigWithServiceOverride = exports.getConfigRuntimeBootstrapResourceNameFromConfig = exports.resolveConfigRuntimeResourceNameFromConfig = exports.getConfigRuntimeResourceNameFromConfig = exports.getConfigRuntimeBootstrapResourceName = exports.getConfigRuntimeResourceName = exports.getGlobalQpqRuntimeResourceName = exports.getGlobalConfigRuntimeResourceName = void 0;
|
|
4
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
5
|
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
6
|
+
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
6
7
|
const getGlobalConfigRuntimeResourceName = (resourceName, application, environment, feature) => {
|
|
7
8
|
const baseName = `${resourceName}-${application}-${environment}`;
|
|
8
9
|
if (feature) {
|
|
@@ -146,12 +147,16 @@ const getCFExportNameDistributionIdArnFromConfig = (webEntryName, qpqConfig, ser
|
|
|
146
147
|
return (0, exports.getQpqRuntimeResourceName)(webEntryName, application, service, environment, feature, 'distribution-id-export');
|
|
147
148
|
};
|
|
148
149
|
exports.getCFExportNameDistributionIdArnFromConfig = getCFExportNameDistributionIdArnFromConfig;
|
|
149
|
-
const getCFExportNameWebsocketApiIdFromConfig = (websocketApiName, qpqConfig
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
const
|
|
153
|
-
const
|
|
154
|
-
|
|
150
|
+
const getCFExportNameWebsocketApiIdFromConfig = (websocketApiName, qpqConfig) => {
|
|
151
|
+
var _a, _b, _c, _d, _e;
|
|
152
|
+
const websocketApiConfig = quidproquo_webserver_1.qpqWebServerUtils.getWebsocketEntryByApiName(websocketApiName, qpqConfig);
|
|
153
|
+
const application = ((_a = websocketApiConfig.owner) === null || _a === void 0 ? void 0 : _a.application) || quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig);
|
|
154
|
+
const service = ((_b = websocketApiConfig.owner) === null || _b === void 0 ? void 0 : _b.module) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
|
|
155
|
+
const environment = ((_c = websocketApiConfig.owner) === null || _c === void 0 ? void 0 : _c.environment) ||
|
|
156
|
+
quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig);
|
|
157
|
+
const feature = ((_d = websocketApiConfig.owner) === null || _d === void 0 ? void 0 : _d.feature) || quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig);
|
|
158
|
+
const resourceName = ((_e = websocketApiConfig.owner) === null || _e === void 0 ? void 0 : _e.resourceNameOverride) || websocketApiName;
|
|
159
|
+
return (0, exports.getQpqRuntimeResourceName)(resourceName, application, service, environment, feature, 'websocket-api-id-export');
|
|
155
160
|
};
|
|
156
161
|
exports.getCFExportNameWebsocketApiIdFromConfig = getCFExportNameWebsocketApiIdFromConfig;
|
|
157
162
|
const getEventBusSnsTopicArn = (eventBusName, qpqConfig, module, environment, application, feature) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-actionprocessor-awslambda",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.187",
|
|
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.187",
|
|
51
|
+
"quidproquo-core": "0.0.187",
|
|
52
|
+
"quidproquo-webserver": "0.0.187"
|
|
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.187",
|
|
61
61
|
"typescript": "^4.9.3"
|
|
62
62
|
}
|
|
63
63
|
}
|