quidproquo-actionprocessor-awslambda 0.0.255 → 0.0.256

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.
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getConfigListParametersActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,25 @@
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
+ exports.getConfigListParametersActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const getProcessConfigListParameters = (qpqConfig) => {
15
+ const paramConfigs = quidproquo_core_1.qpqCoreUtils.getOwnedParameterConfigs(qpqConfig).map((pc) => pc.key);
16
+ return () => __awaiter(void 0, void 0, void 0, function* () {
17
+ return (0, quidproquo_core_1.actionResult)(paramConfigs);
18
+ });
19
+ };
20
+ const getConfigListParametersActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
21
+ return ({
22
+ [quidproquo_core_1.ConfigActionType.ListParameters]: getProcessConfigListParameters(qpqConfig),
23
+ });
24
+ });
25
+ exports.getConfigListParametersActionProcessor = getConfigListParametersActionProcessor;
@@ -14,8 +14,9 @@ const getConfigGetGlobalActionProcessor_1 = require("./getConfigGetGlobalActionP
14
14
  const getConfigGetParameterActionProcessor_1 = require("./getConfigGetParameterActionProcessor");
15
15
  const getConfigGetParametersActionProcessor_1 = require("./getConfigGetParametersActionProcessor");
16
16
  const getConfigGetSecretActionProcessor_1 = require("./getConfigGetSecretActionProcessor");
17
+ const getConfigListParametersActionProcessor_1 = require("./getConfigListParametersActionProcessor");
17
18
  const getConfigSetParameterActionProcessor_1 = require("./getConfigSetParameterActionProcessor");
18
19
  const getConfigActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
19
- return (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (yield (0, getConfigGetGlobalActionProcessor_1.getConfigGetGlobalActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigGetParameterActionProcessor_1.getConfigGetParameterActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigGetParametersActionProcessor_1.getConfigGetParametersActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigGetSecretActionProcessor_1.getConfigGetSecretActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigSetParameterActionProcessor_1.getConfigSetParameterActionProcessor)(qpqConfig, dynamicModuleLoader))));
20
+ return (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (yield (0, getConfigGetGlobalActionProcessor_1.getConfigGetGlobalActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigGetParameterActionProcessor_1.getConfigGetParameterActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigGetParametersActionProcessor_1.getConfigGetParametersActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigGetSecretActionProcessor_1.getConfigGetSecretActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigListParametersActionProcessor_1.getConfigListParametersActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getConfigSetParameterActionProcessor_1.getConfigSetParameterActionProcessor)(qpqConfig, dynamicModuleLoader))));
20
21
  });
21
22
  exports.getConfigActionProcessor = getConfigActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getConfigListParametersActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,10 @@
1
+ import { actionResult, ConfigActionType, qpqCoreUtils, } from 'quidproquo-core';
2
+ const getProcessConfigListParameters = (qpqConfig) => {
3
+ const paramConfigs = qpqCoreUtils.getOwnedParameterConfigs(qpqConfig).map((pc) => pc.key);
4
+ return async () => {
5
+ return actionResult(paramConfigs);
6
+ };
7
+ };
8
+ export const getConfigListParametersActionProcessor = async (qpqConfig) => ({
9
+ [ConfigActionType.ListParameters]: getProcessConfigListParameters(qpqConfig),
10
+ });
@@ -2,11 +2,13 @@ import { getConfigGetGlobalActionProcessor } from './getConfigGetGlobalActionPro
2
2
  import { getConfigGetParameterActionProcessor } from './getConfigGetParameterActionProcessor';
3
3
  import { getConfigGetParametersActionProcessor } from './getConfigGetParametersActionProcessor';
4
4
  import { getConfigGetSecretActionProcessor } from './getConfigGetSecretActionProcessor';
5
+ import { getConfigListParametersActionProcessor } from './getConfigListParametersActionProcessor';
5
6
  import { getConfigSetParameterActionProcessor } from './getConfigSetParameterActionProcessor';
6
7
  export const getConfigActionProcessor = async (qpqConfig, dynamicModuleLoader) => ({
7
8
  ...(await getConfigGetGlobalActionProcessor(qpqConfig, dynamicModuleLoader)),
8
9
  ...(await getConfigGetParameterActionProcessor(qpqConfig, dynamicModuleLoader)),
9
10
  ...(await getConfigGetParametersActionProcessor(qpqConfig, dynamicModuleLoader)),
10
11
  ...(await getConfigGetSecretActionProcessor(qpqConfig, dynamicModuleLoader)),
12
+ ...(await getConfigListParametersActionProcessor(qpqConfig, dynamicModuleLoader)),
11
13
  ...(await getConfigSetParameterActionProcessor(qpqConfig, dynamicModuleLoader)),
12
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-actionprocessor-awslambda",
3
- "version": "0.0.255",
3
+ "version": "0.0.256",
4
4
  "description": "",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -55,9 +55,9 @@
55
55
  "lodash": "^4.17.21",
56
56
  "node-cache": "^5.1.2",
57
57
  "node-match-path": "^0.6.3",
58
- "quidproquo-config-aws": "0.0.255",
59
- "quidproquo-core": "0.0.255",
60
- "quidproquo-webserver": "0.0.255",
58
+ "quidproquo-config-aws": "0.0.256",
59
+ "quidproquo-core": "0.0.256",
60
+ "quidproquo-webserver": "0.0.256",
61
61
  "@types/aws-lambda": "^8.10.109"
62
62
  },
63
63
  "devDependencies": {
@@ -65,7 +65,7 @@
65
65
  "@types/jsonwebtoken": "^9.0.2",
66
66
  "@types/lodash": "^4.14.194",
67
67
  "@types/node": "^22.13.13",
68
- "quidproquo-tsconfig": "0.0.255",
68
+ "quidproquo-tsconfig": "0.0.256",
69
69
  "typescript": "^5.8.2"
70
70
  }
71
71
  }