quidproquo-actionprocessor-js 0.0.251

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.
Files changed (138) hide show
  1. package/README.md +112 -0
  2. package/lib/commonjs/actionProcessor/core/claudeAi/getClaudeAiMessagesApiActionProcessor.d.ts +2 -0
  3. package/lib/commonjs/actionProcessor/core/claudeAi/getClaudeAiMessagesApiActionProcessor.js +64 -0
  4. package/lib/commonjs/actionProcessor/core/claudeAi/index.d.ts +2 -0
  5. package/lib/commonjs/actionProcessor/core/claudeAi/index.js +17 -0
  6. package/lib/commonjs/actionProcessor/core/config/getConfigGetApplicationInfoActionProcessor.d.ts +2 -0
  7. package/lib/commonjs/actionProcessor/core/config/getConfigGetApplicationInfoActionProcessor.js +30 -0
  8. package/lib/commonjs/actionProcessor/core/config/index.d.ts +2 -0
  9. package/lib/commonjs/actionProcessor/core/config/index.js +17 -0
  10. package/lib/commonjs/actionProcessor/core/context/getContextListActionProcessor.d.ts +2 -0
  11. package/lib/commonjs/actionProcessor/core/context/getContextListActionProcessor.js +24 -0
  12. package/lib/commonjs/actionProcessor/core/context/getContextReadActionProcessor.d.ts +2 -0
  13. package/lib/commonjs/actionProcessor/core/context/getContextReadActionProcessor.js +27 -0
  14. package/lib/commonjs/actionProcessor/core/context/index.d.ts +2 -0
  15. package/lib/commonjs/actionProcessor/core/context/index.js +18 -0
  16. package/lib/commonjs/actionProcessor/core/customActions/getCustomActionActionProcessor.d.ts +2 -0
  17. package/lib/commonjs/actionProcessor/core/customActions/getCustomActionActionProcessor.js +58 -0
  18. package/lib/commonjs/actionProcessor/core/customActions/index.d.ts +1 -0
  19. package/lib/commonjs/actionProcessor/core/customActions/index.js +18 -0
  20. package/lib/commonjs/actionProcessor/core/date/getDateNowActionProcessor.d.ts +2 -0
  21. package/lib/commonjs/actionProcessor/core/date/getDateNowActionProcessor.js +24 -0
  22. package/lib/commonjs/actionProcessor/core/date/index.d.ts +2 -0
  23. package/lib/commonjs/actionProcessor/core/date/index.js +17 -0
  24. package/lib/commonjs/actionProcessor/core/error/getErrorThrowErrorActionProcessor.d.ts +2 -0
  25. package/lib/commonjs/actionProcessor/core/error/getErrorThrowErrorActionProcessor.js +24 -0
  26. package/lib/commonjs/actionProcessor/core/error/index.d.ts +2 -0
  27. package/lib/commonjs/actionProcessor/core/error/index.js +17 -0
  28. package/lib/commonjs/actionProcessor/core/guid/getGuidNewActionProcessor.d.ts +2 -0
  29. package/lib/commonjs/actionProcessor/core/guid/getGuidNewActionProcessor.js +25 -0
  30. package/lib/commonjs/actionProcessor/core/guid/getGuidNewSortableActionProcessor.d.ts +2 -0
  31. package/lib/commonjs/actionProcessor/core/guid/getGuidNewSortableActionProcessor.js +25 -0
  32. package/lib/commonjs/actionProcessor/core/guid/index.d.ts +2 -0
  33. package/lib/commonjs/actionProcessor/core/guid/index.js +18 -0
  34. package/lib/commonjs/actionProcessor/core/index.d.ts +14 -0
  35. package/lib/commonjs/actionProcessor/core/index.js +54 -0
  36. package/lib/commonjs/actionProcessor/core/log/getLogCreateActionProcessor.d.ts +2 -0
  37. package/lib/commonjs/actionProcessor/core/log/getLogCreateActionProcessor.js +30 -0
  38. package/lib/commonjs/actionProcessor/core/log/getLogDisableEventHistoryActionProcessor.d.ts +2 -0
  39. package/lib/commonjs/actionProcessor/core/log/getLogDisableEventHistoryActionProcessor.js +25 -0
  40. package/lib/commonjs/actionProcessor/core/log/getLogTemplateLiteralActionProcessor.d.ts +2 -0
  41. package/lib/commonjs/actionProcessor/core/log/getLogTemplateLiteralActionProcessor.js +26 -0
  42. package/lib/commonjs/actionProcessor/core/log/index.d.ts +2 -0
  43. package/lib/commonjs/actionProcessor/core/log/index.js +19 -0
  44. package/lib/commonjs/actionProcessor/core/math/getMathRandomNumberActionProcessor.d.ts +2 -0
  45. package/lib/commonjs/actionProcessor/core/math/getMathRandomNumberActionProcessor.js +24 -0
  46. package/lib/commonjs/actionProcessor/core/math/index.d.ts +2 -0
  47. package/lib/commonjs/actionProcessor/core/math/index.js +17 -0
  48. package/lib/commonjs/actionProcessor/core/network/getNetworkRequestActionProcessor.d.ts +2 -0
  49. package/lib/commonjs/actionProcessor/core/network/getNetworkRequestActionProcessor.js +150 -0
  50. package/lib/commonjs/actionProcessor/core/network/index.d.ts +2 -0
  51. package/lib/commonjs/actionProcessor/core/network/index.js +17 -0
  52. package/lib/commonjs/actionProcessor/core/platform/getPlatformDelayActionProcessor.d.ts +2 -0
  53. package/lib/commonjs/actionProcessor/core/platform/getPlatformDelayActionProcessor.js +24 -0
  54. package/lib/commonjs/actionProcessor/core/platform/index.d.ts +2 -0
  55. package/lib/commonjs/actionProcessor/core/platform/index.js +17 -0
  56. package/lib/commonjs/actionProcessor/core/system/getSystemBatchActionProcessor.d.ts +2 -0
  57. package/lib/commonjs/actionProcessor/core/system/getSystemBatchActionProcessor.js +51 -0
  58. package/lib/commonjs/actionProcessor/core/system/index.d.ts +2 -0
  59. package/lib/commonjs/actionProcessor/core/system/index.js +17 -0
  60. package/lib/commonjs/actionProcessor/index.d.ts +2 -0
  61. package/lib/commonjs/actionProcessor/index.js +18 -0
  62. package/lib/commonjs/actionProcessor/webserver/dns/getDnsListActionProcessor.d.ts +2 -0
  63. package/lib/commonjs/actionProcessor/webserver/dns/getDnsListActionProcessor.js +26 -0
  64. package/lib/commonjs/actionProcessor/webserver/dns/index.d.ts +2 -0
  65. package/lib/commonjs/actionProcessor/webserver/dns/index.js +17 -0
  66. package/lib/commonjs/actionProcessor/webserver/index.d.ts +2 -0
  67. package/lib/commonjs/actionProcessor/webserver/index.js +17 -0
  68. package/lib/commonjs/index.d.ts +1 -0
  69. package/lib/commonjs/index.js +17 -0
  70. package/lib/esm/actionProcessor/core/claudeAi/getClaudeAiMessagesApiActionProcessor.d.ts +2 -0
  71. package/lib/esm/actionProcessor/core/claudeAi/getClaudeAiMessagesApiActionProcessor.js +26 -0
  72. package/lib/esm/actionProcessor/core/claudeAi/index.d.ts +2 -0
  73. package/lib/esm/actionProcessor/core/claudeAi/index.js +4 -0
  74. package/lib/esm/actionProcessor/core/config/getConfigGetApplicationInfoActionProcessor.d.ts +2 -0
  75. package/lib/esm/actionProcessor/core/config/getConfigGetApplicationInfoActionProcessor.js +15 -0
  76. package/lib/esm/actionProcessor/core/config/index.d.ts +2 -0
  77. package/lib/esm/actionProcessor/core/config/index.js +4 -0
  78. package/lib/esm/actionProcessor/core/context/getContextListActionProcessor.d.ts +2 -0
  79. package/lib/esm/actionProcessor/core/context/getContextListActionProcessor.js +9 -0
  80. package/lib/esm/actionProcessor/core/context/getContextReadActionProcessor.d.ts +2 -0
  81. package/lib/esm/actionProcessor/core/context/getContextReadActionProcessor.js +12 -0
  82. package/lib/esm/actionProcessor/core/context/index.d.ts +2 -0
  83. package/lib/esm/actionProcessor/core/context/index.js +6 -0
  84. package/lib/esm/actionProcessor/core/customActions/getCustomActionActionProcessor.d.ts +2 -0
  85. package/lib/esm/actionProcessor/core/customActions/getCustomActionActionProcessor.js +43 -0
  86. package/lib/esm/actionProcessor/core/customActions/index.d.ts +1 -0
  87. package/lib/esm/actionProcessor/core/customActions/index.js +2 -0
  88. package/lib/esm/actionProcessor/core/date/getDateNowActionProcessor.d.ts +2 -0
  89. package/lib/esm/actionProcessor/core/date/getDateNowActionProcessor.js +9 -0
  90. package/lib/esm/actionProcessor/core/date/index.d.ts +2 -0
  91. package/lib/esm/actionProcessor/core/date/index.js +4 -0
  92. package/lib/esm/actionProcessor/core/error/getErrorThrowErrorActionProcessor.d.ts +2 -0
  93. package/lib/esm/actionProcessor/core/error/getErrorThrowErrorActionProcessor.js +9 -0
  94. package/lib/esm/actionProcessor/core/error/index.d.ts +2 -0
  95. package/lib/esm/actionProcessor/core/error/index.js +4 -0
  96. package/lib/esm/actionProcessor/core/guid/getGuidNewActionProcessor.d.ts +2 -0
  97. package/lib/esm/actionProcessor/core/guid/getGuidNewActionProcessor.js +10 -0
  98. package/lib/esm/actionProcessor/core/guid/getGuidNewSortableActionProcessor.d.ts +2 -0
  99. package/lib/esm/actionProcessor/core/guid/getGuidNewSortableActionProcessor.js +10 -0
  100. package/lib/esm/actionProcessor/core/guid/index.d.ts +2 -0
  101. package/lib/esm/actionProcessor/core/guid/index.js +6 -0
  102. package/lib/esm/actionProcessor/core/index.d.ts +14 -0
  103. package/lib/esm/actionProcessor/core/index.js +37 -0
  104. package/lib/esm/actionProcessor/core/log/getLogCreateActionProcessor.d.ts +2 -0
  105. package/lib/esm/actionProcessor/core/log/getLogCreateActionProcessor.js +15 -0
  106. package/lib/esm/actionProcessor/core/log/getLogDisableEventHistoryActionProcessor.d.ts +2 -0
  107. package/lib/esm/actionProcessor/core/log/getLogDisableEventHistoryActionProcessor.js +10 -0
  108. package/lib/esm/actionProcessor/core/log/getLogTemplateLiteralActionProcessor.d.ts +2 -0
  109. package/lib/esm/actionProcessor/core/log/getLogTemplateLiteralActionProcessor.js +11 -0
  110. package/lib/esm/actionProcessor/core/log/index.d.ts +2 -0
  111. package/lib/esm/actionProcessor/core/log/index.js +8 -0
  112. package/lib/esm/actionProcessor/core/math/getMathRandomNumberActionProcessor.d.ts +2 -0
  113. package/lib/esm/actionProcessor/core/math/getMathRandomNumberActionProcessor.js +9 -0
  114. package/lib/esm/actionProcessor/core/math/index.d.ts +2 -0
  115. package/lib/esm/actionProcessor/core/math/index.js +4 -0
  116. package/lib/esm/actionProcessor/core/network/getNetworkRequestActionProcessor.d.ts +2 -0
  117. package/lib/esm/actionProcessor/core/network/getNetworkRequestActionProcessor.js +134 -0
  118. package/lib/esm/actionProcessor/core/network/index.d.ts +2 -0
  119. package/lib/esm/actionProcessor/core/network/index.js +4 -0
  120. package/lib/esm/actionProcessor/core/platform/getPlatformDelayActionProcessor.d.ts +2 -0
  121. package/lib/esm/actionProcessor/core/platform/getPlatformDelayActionProcessor.js +9 -0
  122. package/lib/esm/actionProcessor/core/platform/index.d.ts +2 -0
  123. package/lib/esm/actionProcessor/core/platform/index.js +4 -0
  124. package/lib/esm/actionProcessor/core/system/getSystemBatchActionProcessor.d.ts +2 -0
  125. package/lib/esm/actionProcessor/core/system/getSystemBatchActionProcessor.js +36 -0
  126. package/lib/esm/actionProcessor/core/system/index.d.ts +2 -0
  127. package/lib/esm/actionProcessor/core/system/index.js +4 -0
  128. package/lib/esm/actionProcessor/index.d.ts +2 -0
  129. package/lib/esm/actionProcessor/index.js +2 -0
  130. package/lib/esm/actionProcessor/webserver/dns/getDnsListActionProcessor.d.ts +2 -0
  131. package/lib/esm/actionProcessor/webserver/dns/getDnsListActionProcessor.js +11 -0
  132. package/lib/esm/actionProcessor/webserver/dns/index.d.ts +2 -0
  133. package/lib/esm/actionProcessor/webserver/dns/index.js +4 -0
  134. package/lib/esm/actionProcessor/webserver/index.d.ts +2 -0
  135. package/lib/esm/actionProcessor/webserver/index.js +4 -0
  136. package/lib/esm/index.d.ts +1 -0
  137. package/lib/esm/index.js +1 -0
  138. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,112 @@
1
+ # quidproquo-actionprocessor-js
2
+
3
+ The `quidproquo-actionprocessor-js` library provides a set of generic action processors for the `quidproquo` framework, allowing you to easily
4
+ integrate common functionality into your Node.js-based applications.
5
+
6
+ ## Key Features
7
+
8
+ 1. **Comprehensive Action Processors**: This library includes a wide range of action processors that cover various common use cases, such as date/time
9
+ operations, error handling, event processing, GUID generation, logging, math operations, network requests, platform-specific functionality (e.g.,
10
+ delays), and system-level actions.
11
+
12
+ 2. **Extensibility**: The action processor architecture is designed to be highly extensible, allowing you to easily add custom action processors to
13
+ meet your specific requirements.
14
+
15
+ 3. **Dependency Injection**: The action processors are integrated with the `quidproquo` dependency injection system, making it easy to compose and
16
+ test your application components.
17
+
18
+ 4. **Testability**: The action-oriented architecture and asynchronous execution model of `quidproquo-actionprocessor-js` make it highly testable, with
19
+ support for unit, integration, and end-to-end testing.
20
+
21
+ 5. **Portability**: While the `quidproquo-actionprocessor-js` library is designed to run on Node.js, the underlying `quidproquo-core` library is
22
+ platform-agnostic, allowing you to potentially use these action processors in other environments as well.
23
+
24
+ ## Getting Started
25
+
26
+ To use the `quidproquo-actionprocessor-js` library, you'll need to install the package and its dependencies. You can do this using your preferred
27
+ package manager, such as npm or yarn:
28
+
29
+ ```
30
+ npm install quidproquo-actionprocessor-js
31
+ ```
32
+
33
+ Once you have the package installed, you can start using the provided action processors in your `quidproquo`-based application. The library exports a
34
+ set of action processors that you can import and use in your code.
35
+
36
+ ## Action Processors
37
+
38
+ The `quidproquo-actionprocessor-js` library provides the following action processors:
39
+
40
+ 1. **Date/Time Action Processors**:
41
+
42
+ - `DateNowActionProcessor`: Retrieves the current date and time as an ISO string.
43
+
44
+ 2. **Error Action Processors**:
45
+
46
+ - `ErrorThrowErrorActionProcessor`: Throws a custom error with a specified type, text, and stack trace.
47
+
48
+ 3. **Event Action Processors**:
49
+
50
+ - (No event-specific action processors are currently implemented)
51
+
52
+ 4. **GUID Action Processors**:
53
+
54
+ - `GuidNewActionProcessor`: Generates a new UUID.
55
+
56
+ 5. **Logging Action Processors**:
57
+
58
+ - `LogCreateActionProcessor`: Logs a message with a specified log level and optional data.
59
+
60
+ 6. **Math Action Processors**:
61
+
62
+ - `MathRandomNumberActionProcessor`: Generates a random number.
63
+
64
+ 7. **Network Action Processors**:
65
+
66
+ - `NetworkRequestActionProcessor`: Performs an HTTP request with various options (method, headers, body, etc.).
67
+
68
+ 8. **Platform Action Processors**:
69
+
70
+ - `PlatformDelayActionProcessor`: Delays the execution for a specified number of milliseconds.
71
+
72
+ 9. **System Action Processors**:
73
+
74
+ - `SystemBatchActionProcessor`: Executes a batch of actions and returns the results.
75
+
76
+ 10. **User Directory Action Processors**:
77
+
78
+ - (No user directory-specific action processors are currently implemented)
79
+
80
+ ## Usage
81
+
82
+ To use the action processors provided by `quidproquo-actionprocessor-js`, you can import them into your `quidproquo`-based application and integrate
83
+ them with your action processor configuration. Here's an example of how you might use the `DateNowActionProcessor`:
84
+
85
+ ```typescript
86
+ import { DateNowActionProcessor, actionResult, DateActionType } from 'quidproquo-actionprocessor-js';
87
+
88
+ const processDateNow: DateNowActionProcessor = async () => {
89
+ return actionResult(new Date().toISOString());
90
+ };
91
+
92
+ export default {
93
+ [DateActionType.Now]: processDateNow,
94
+ };
95
+ ```
96
+
97
+ In this example, we define a `DateNowActionProcessor` function that returns the current date and time as an ISO string. We then export this processor
98
+ under the `DateActionType.Now` action type, which can be used in our `quidproquo`-based application.
99
+
100
+ ## Contribution and Development
101
+
102
+ If you'd like to contribute to the development of `quidproquo-actionprocessor-js`, please refer to the
103
+ [contributing guidelines](https://github.com/joe-coady/quidproquo/blob/main/CONTRIBUTING.md) for more information.
104
+
105
+ ## License
106
+
107
+ `quidproquo-actionprocessor-js` is licensed under the [MIT License](https://github.com/joe-coady/quidproquo/blob/main/LICENSE).
108
+
109
+ ## Warning: Not for Production
110
+
111
+ **This project is currently under active development and should not be used in production environments. The APIs and functionality are subject to
112
+ change without notice.**
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getClaudeAiMessagesApiActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,64 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.getClaudeAiMessagesApiActionProcessor = void 0;
36
+ const quidproquo_core_1 = require("quidproquo-core");
37
+ const sdk_1 = __importStar(require("@anthropic-ai/sdk"));
38
+ const getProcessMessagesApi = (qpqConfig) => {
39
+ return ({ body, apiKey }) => __awaiter(void 0, void 0, void 0, function* () {
40
+ const anthropic = new sdk_1.default({ apiKey });
41
+ try {
42
+ const msg = yield anthropic.messages.create(body);
43
+ return (0, quidproquo_core_1.actionResult)(msg);
44
+ }
45
+ catch (error) {
46
+ console.log(error);
47
+ if (error instanceof sdk_1.AuthenticationError) {
48
+ return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.Unauthorized, 'Invalid API key.');
49
+ }
50
+ else if (error instanceof Error) {
51
+ return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.GenericError, error.message);
52
+ }
53
+ else {
54
+ return (0, quidproquo_core_1.actionResultError)(quidproquo_core_1.ErrorTypeEnum.GenericError, 'An error occurred while processing your request.');
55
+ }
56
+ }
57
+ });
58
+ };
59
+ const getClaudeAiMessagesApiActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
60
+ return ({
61
+ [quidproquo_core_1.ClaudeAiActionType.MessagesApi]: getProcessMessagesApi(qpqConfig),
62
+ });
63
+ });
64
+ exports.getClaudeAiMessagesApiActionProcessor = getClaudeAiMessagesApiActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getClaudeAiActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,17 @@
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.getClaudeAiActionProcessor = void 0;
13
+ const getClaudeAiMessagesApiActionProcessor_1 = require("./getClaudeAiMessagesApiActionProcessor");
14
+ const getClaudeAiActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
15
+ return (Object.assign({}, (yield (0, getClaudeAiMessagesApiActionProcessor_1.getClaudeAiMessagesApiActionProcessor)(qpqConfig, dynamicModuleLoader))));
16
+ });
17
+ exports.getClaudeAiActionProcessor = getClaudeAiActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getConfigGetApplicationInfoActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,30 @@
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.getConfigGetApplicationInfoActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const getProcessConfigGetApplicationConfig = (qpqConfig) => {
15
+ return () => __awaiter(void 0, void 0, void 0, function* () {
16
+ const appInfo = {
17
+ environment: quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig),
18
+ feature: quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig),
19
+ module: quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig),
20
+ name: quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig),
21
+ };
22
+ return (0, quidproquo_core_1.actionResult)(appInfo);
23
+ });
24
+ };
25
+ const getConfigGetApplicationInfoActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
26
+ return ({
27
+ [quidproquo_core_1.ConfigActionType.GetApplicationInfo]: getProcessConfigGetApplicationConfig(qpqConfig),
28
+ });
29
+ });
30
+ exports.getConfigGetApplicationInfoActionProcessor = getConfigGetApplicationInfoActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getConfigActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,17 @@
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.getConfigActionProcessor = void 0;
13
+ const getConfigGetApplicationInfoActionProcessor_1 = require("./getConfigGetApplicationInfoActionProcessor");
14
+ const getConfigActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
15
+ return (Object.assign({}, (yield (0, getConfigGetApplicationInfoActionProcessor_1.getConfigGetApplicationInfoActionProcessor)(qpqConfig, dynamicModuleLoader))));
16
+ });
17
+ exports.getConfigActionProcessor = getConfigActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getContextListActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,24 @@
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.getContextListActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const getProcessContextList = (qpqConfig) => {
15
+ return (payload, session) => __awaiter(void 0, void 0, void 0, function* () {
16
+ return (0, quidproquo_core_1.actionResult)(session.context);
17
+ });
18
+ };
19
+ const getContextListActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
20
+ return ({
21
+ [quidproquo_core_1.ContextActionType.List]: getProcessContextList(qpqConfig),
22
+ });
23
+ });
24
+ exports.getContextListActionProcessor = getContextListActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getContextReadActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,27 @@
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.getContextReadActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const getContextValue = (context, contextIdentifier) => {
15
+ return contextIdentifier.uniqueName in context ? context[contextIdentifier.uniqueName] : contextIdentifier.defaultValue;
16
+ };
17
+ const getProcessContextRead = (qpqConfig) => {
18
+ return ({ contextIdentifier }, session) => __awaiter(void 0, void 0, void 0, function* () {
19
+ return (0, quidproquo_core_1.actionResult)(getContextValue(session.context, contextIdentifier));
20
+ });
21
+ };
22
+ const getContextReadActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
23
+ return ({
24
+ [quidproquo_core_1.ContextActionType.Read]: getProcessContextRead(qpqConfig),
25
+ });
26
+ });
27
+ exports.getContextReadActionProcessor = getContextReadActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getContextActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,18 @@
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.getContextActionProcessor = void 0;
13
+ const getContextListActionProcessor_1 = require("./getContextListActionProcessor");
14
+ const getContextReadActionProcessor_1 = require("./getContextReadActionProcessor");
15
+ const getContextActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
16
+ return (Object.assign(Object.assign({}, (yield (0, getContextListActionProcessor_1.getContextListActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getContextReadActionProcessor_1.getContextReadActionProcessor)(qpqConfig, dynamicModuleLoader))));
17
+ });
18
+ exports.getContextActionProcessor = getContextActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getCustomActionActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,58 @@
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.getCustomActionActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ function getActionProcessorListLoader(dynamicModuleLoader, qpqConfig) {
15
+ return function loadModule(qpqFunctionRuntime) {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ try {
18
+ const possibleModule = yield dynamicModuleLoader(qpqFunctionRuntime);
19
+ if (typeof possibleModule !== 'function') {
20
+ throw new Error(`Expected module to be a function, but got ${typeof possibleModule}`);
21
+ }
22
+ const apl = yield possibleModule(qpqConfig, dynamicModuleLoader);
23
+ if (typeof apl !== 'object') {
24
+ throw new Error(`Expected action processor list to be an object, but got ${typeof apl}`);
25
+ }
26
+ if (Object.values(apl).find((aplv) => typeof aplv !== 'function')) {
27
+ throw new Error('Expected all action processors to be functions');
28
+ }
29
+ return apl;
30
+ }
31
+ catch (e) {
32
+ console.log(`Unable to dynamically load action processors: [${e}] ${JSON.stringify(qpqFunctionRuntime)}`);
33
+ throw e;
34
+ }
35
+ });
36
+ };
37
+ }
38
+ const getProcessCustomAction = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
39
+ try {
40
+ const actionProcessorListLoader = getActionProcessorListLoader(dynamicModuleLoader, qpqConfig);
41
+ const getCustomActionProcessors = quidproquo_core_1.qpqCoreUtils.getActionProcessorSources(qpqConfig);
42
+ const possibleModuleResults = yield Promise.allSettled(getCustomActionProcessors.map(actionProcessorListLoader));
43
+ // Filter out successfully loaded modules that are functions
44
+ const actionProcessorLists = possibleModuleResults
45
+ .filter((result) => result.status === 'fulfilled')
46
+ .map((result) => result.value);
47
+ return actionProcessorLists.reduce((acc, cur) => (Object.assign(Object.assign({}, acc), cur)), {});
48
+ }
49
+ catch (e) {
50
+ // This should never get hit, but just in case
51
+ console.log(`Unable to dynamically load action processors: [${e}]`);
52
+ return {};
53
+ }
54
+ });
55
+ const getCustomActionActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
56
+ return (Object.assign({}, (yield getProcessCustomAction(qpqConfig, dynamicModuleLoader))));
57
+ });
58
+ exports.getCustomActionActionProcessor = getCustomActionActionProcessor;
@@ -0,0 +1 @@
1
+ export * from './getCustomActionActionProcessor';
@@ -0,0 +1,18 @@
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
+ // This is a special one because it just has all the custom ones
18
+ __exportStar(require("./getCustomActionActionProcessor"), exports);
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getDateNowActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,24 @@
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.getDateNowActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const getProcessDateNow = (qpqConfig) => {
15
+ return () => __awaiter(void 0, void 0, void 0, function* () {
16
+ return (0, quidproquo_core_1.actionResult)(new Date().toISOString());
17
+ });
18
+ };
19
+ const getDateNowActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
20
+ return ({
21
+ [quidproquo_core_1.DateActionType.Now]: getProcessDateNow(qpqConfig),
22
+ });
23
+ });
24
+ exports.getDateNowActionProcessor = getDateNowActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getDateActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,17 @@
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.getDateActionProcessor = void 0;
13
+ const getDateNowActionProcessor_1 = require("./getDateNowActionProcessor");
14
+ const getDateActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
15
+ return (Object.assign({}, (yield (0, getDateNowActionProcessor_1.getDateNowActionProcessor)(qpqConfig, dynamicModuleLoader))));
16
+ });
17
+ exports.getDateActionProcessor = getDateActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getErrorThrowErrorActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,24 @@
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.getErrorThrowErrorActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const getProcessErrorThrowError = (qpqConfig) => {
15
+ return ({ errorStack, errorText, errorType }) => __awaiter(void 0, void 0, void 0, function* () {
16
+ return (0, quidproquo_core_1.actionResultError)(errorType, errorText, errorStack);
17
+ });
18
+ };
19
+ const getErrorThrowErrorActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
20
+ return ({
21
+ [quidproquo_core_1.ErrorActionType.ThrowError]: getProcessErrorThrowError(qpqConfig),
22
+ });
23
+ });
24
+ exports.getErrorThrowErrorActionProcessor = getErrorThrowErrorActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getErrorActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,17 @@
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.getErrorActionProcessor = void 0;
13
+ const getErrorThrowErrorActionProcessor_1 = require("./getErrorThrowErrorActionProcessor");
14
+ const getErrorActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
15
+ return (Object.assign({}, (yield (0, getErrorThrowErrorActionProcessor_1.getErrorThrowErrorActionProcessor)(qpqConfig, dynamicModuleLoader))));
16
+ });
17
+ exports.getErrorActionProcessor = getErrorActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getGuidNewActionProcessor: 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.getGuidNewActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const uuid_1 = require("uuid");
15
+ const getProcessGuidNew = (qpqConfig) => {
16
+ return () => __awaiter(void 0, void 0, void 0, function* () {
17
+ return (0, quidproquo_core_1.actionResult)((0, uuid_1.v4)());
18
+ });
19
+ };
20
+ const getGuidNewActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
21
+ return ({
22
+ [quidproquo_core_1.GuidActionType.New]: getProcessGuidNew(qpqConfig),
23
+ });
24
+ });
25
+ exports.getGuidNewActionProcessor = getGuidNewActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getGuidNewSortableActionProcessor: 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.getGuidNewSortableActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const uuidv7_1 = require("uuidv7");
15
+ const getProcessGuidNewSortable = (qpqConfig) => {
16
+ return () => __awaiter(void 0, void 0, void 0, function* () {
17
+ return (0, quidproquo_core_1.actionResult)((0, uuidv7_1.uuidv7)());
18
+ });
19
+ };
20
+ const getGuidNewSortableActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
21
+ return ({
22
+ [quidproquo_core_1.GuidActionType.NewSortable]: getProcessGuidNewSortable(qpqConfig),
23
+ });
24
+ });
25
+ exports.getGuidNewSortableActionProcessor = getGuidNewSortableActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getGuidProcessor: ActionProcessorListResolver;
@@ -0,0 +1,18 @@
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.getGuidProcessor = void 0;
13
+ const getGuidNewActionProcessor_1 = require("./getGuidNewActionProcessor");
14
+ const getGuidNewSortableActionProcessor_1 = require("./getGuidNewSortableActionProcessor");
15
+ const getGuidProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
16
+ return (Object.assign(Object.assign({}, (yield (0, getGuidNewActionProcessor_1.getGuidNewActionProcessor)(qpqConfig, dynamicModuleLoader))), (yield (0, getGuidNewSortableActionProcessor_1.getGuidNewSortableActionProcessor)(qpqConfig, dynamicModuleLoader))));
17
+ });
18
+ exports.getGuidProcessor = getGuidProcessor;