quidproquo-webserver 0.0.262 → 0.0.263

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 (147) hide show
  1. package/lib/commonjs/actionProcessor/api/getHttpApiEventAutoRespondActionProcessor.d.ts +2 -0
  2. package/lib/commonjs/actionProcessor/api/getHttpApiEventAutoRespondActionProcessor.js +53 -0
  3. package/lib/commonjs/actionProcessor/api/getHttpApiEventGetStorySessionActionProcessor.d.ts +2 -0
  4. package/lib/commonjs/actionProcessor/api/getHttpApiEventGetStorySessionActionProcessor.js +37 -0
  5. package/lib/commonjs/actionProcessor/api/index.d.ts +2 -0
  6. package/lib/commonjs/actionProcessor/api/index.js +18 -0
  7. package/lib/commonjs/actionProcessor/index.d.ts +2 -0
  8. package/lib/commonjs/actionProcessor/index.js +18 -0
  9. package/lib/commonjs/actionProcessor/routeAuthValidation/getRouteAuthValidationDecodeActionProcessor.d.ts +2 -0
  10. package/lib/commonjs/actionProcessor/routeAuthValidation/getRouteAuthValidationDecodeActionProcessor.js +32 -0
  11. package/lib/commonjs/actionProcessor/routeAuthValidation/index.d.ts +2 -0
  12. package/lib/commonjs/actionProcessor/routeAuthValidation/index.js +17 -0
  13. package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationActionType.d.ts +3 -0
  14. package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationActionType.js +7 -0
  15. package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationValidateActionRequester.d.ts +3 -0
  16. package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationValidateActionRequester.js +13 -0
  17. package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationValidateActionTypes.d.ts +13 -0
  18. package/lib/commonjs/actions/apiKeyValidation/ApiKeyValidationValidateActionTypes.js +2 -0
  19. package/lib/commonjs/actions/apiKeyValidation/index.d.ts +3 -0
  20. package/lib/commonjs/actions/apiKeyValidation/index.js +19 -0
  21. package/lib/commonjs/actions/index.d.ts +3 -0
  22. package/lib/commonjs/actions/index.js +3 -0
  23. package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationActionType.d.ts +3 -0
  24. package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationActionType.js +7 -0
  25. package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationDecodeActionRequester.d.ts +4 -0
  26. package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationDecodeActionRequester.js +14 -0
  27. package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationDecodeActionTypes.d.ts +15 -0
  28. package/lib/commonjs/actions/routeAuthValidation/RouteAuthValidationDecodeActionTypes.js +2 -0
  29. package/lib/commonjs/actions/routeAuthValidation/index.d.ts +3 -0
  30. package/lib/commonjs/actions/routeAuthValidation/index.js +19 -0
  31. package/lib/commonjs/actions/service/ServiceActionType.d.ts +3 -0
  32. package/lib/commonjs/actions/service/ServiceActionType.js +7 -0
  33. package/lib/commonjs/actions/service/ServiceRequestActionRequester.d.ts +2 -0
  34. package/lib/commonjs/actions/service/ServiceRequestActionRequester.js +14 -0
  35. package/lib/commonjs/actions/service/ServiceRequestActionTypes.d.ts +13 -0
  36. package/lib/commonjs/actions/service/ServiceRequestActionTypes.js +2 -0
  37. package/lib/commonjs/actions/service/createServiceRequester.d.ts +9 -0
  38. package/lib/commonjs/actions/service/createServiceRequester.js +12 -0
  39. package/lib/commonjs/actions/service/index.d.ts +5 -0
  40. package/lib/commonjs/actions/service/index.js +21 -0
  41. package/lib/commonjs/actions/service/serviceRequest.d.ts +11 -0
  42. package/lib/commonjs/actions/service/serviceRequest.js +23 -0
  43. package/lib/commonjs/actions/serviceFunction/ServiceFunctionExecuteActionRequester.js +0 -6
  44. package/lib/commonjs/actions/serviceFunction/ServiceFunctionExecuteActionTypes.d.ts +2 -3
  45. package/lib/commonjs/config/settings/index.d.ts +1 -0
  46. package/lib/commonjs/config/settings/index.js +1 -0
  47. package/lib/commonjs/config/settings/stateDispatchOverWebsockets.d.ts +2 -0
  48. package/lib/commonjs/config/settings/stateDispatchOverWebsockets.js +9 -0
  49. package/lib/commonjs/index.d.ts +1 -0
  50. package/lib/commonjs/index.js +1 -0
  51. package/lib/commonjs/services/webSocketQueue/entry/actionProcessor/getStateDispatch.d.ts +5 -0
  52. package/lib/commonjs/services/webSocketQueue/entry/actionProcessor/getStateDispatch.js +21 -0
  53. package/lib/commonjs/services/webSocketQueue/logic/webSocket/askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend.js +5 -5
  54. package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageServiceRequestResponse.d.ts +4 -0
  55. package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageServiceRequestResponse.js +2 -0
  56. package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageStateDispatch.d.ts +4 -0
  57. package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageStateDispatch.js +2 -0
  58. package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType.d.ts +3 -1
  59. package/lib/commonjs/services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType.js +2 -0
  60. package/lib/commonjs/services/webSocketQueue/types/serverMessages/index.d.ts +2 -0
  61. package/lib/commonjs/services/webSocketQueue/types/serverMessages/index.js +2 -0
  62. package/lib/commonjs/stories/askGetHttpApiEventStorySession.d.ts +9 -0
  63. package/lib/commonjs/stories/askGetHttpApiEventStorySession.js +30 -0
  64. package/lib/commonjs/stories/askRouteAuthValidationDecodeDefault.d.ts +3 -0
  65. package/lib/commonjs/stories/askRouteAuthValidationDecodeDefault.js +23 -0
  66. package/lib/commonjs/stories/askValidateRouteAuth.d.ts +8 -0
  67. package/lib/commonjs/stories/askValidateRouteAuth.js +31 -0
  68. package/lib/commonjs/stories/index.d.ts +2 -0
  69. package/lib/commonjs/stories/index.js +2 -0
  70. package/lib/commonjs/utils/index.d.ts +1 -0
  71. package/lib/commonjs/utils/index.js +1 -0
  72. package/lib/commonjs/utils/uuidUtils.d.ts +1 -0
  73. package/lib/commonjs/utils/uuidUtils.js +9 -0
  74. package/lib/esm/actionProcessor/api/getHttpApiEventAutoRespondActionProcessor.d.ts +2 -0
  75. package/lib/esm/actionProcessor/api/getHttpApiEventAutoRespondActionProcessor.js +37 -0
  76. package/lib/esm/actionProcessor/api/getHttpApiEventGetStorySessionActionProcessor.d.ts +2 -0
  77. package/lib/esm/actionProcessor/api/getHttpApiEventGetStorySessionActionProcessor.js +21 -0
  78. package/lib/esm/actionProcessor/api/index.d.ts +2 -0
  79. package/lib/esm/actionProcessor/api/index.js +2 -0
  80. package/lib/esm/actionProcessor/index.d.ts +2 -0
  81. package/lib/esm/actionProcessor/index.js +2 -0
  82. package/lib/esm/actionProcessor/routeAuthValidation/getRouteAuthValidationDecodeActionProcessor.d.ts +2 -0
  83. package/lib/esm/actionProcessor/routeAuthValidation/getRouteAuthValidationDecodeActionProcessor.js +17 -0
  84. package/lib/esm/actionProcessor/routeAuthValidation/index.d.ts +2 -0
  85. package/lib/esm/actionProcessor/routeAuthValidation/index.js +4 -0
  86. package/lib/esm/actions/apiKeyValidation/ApiKeyValidationActionType.d.ts +3 -0
  87. package/lib/esm/actions/apiKeyValidation/ApiKeyValidationActionType.js +4 -0
  88. package/lib/esm/actions/apiKeyValidation/ApiKeyValidationValidateActionRequester.d.ts +3 -0
  89. package/lib/esm/actions/apiKeyValidation/ApiKeyValidationValidateActionRequester.js +10 -0
  90. package/lib/esm/actions/apiKeyValidation/ApiKeyValidationValidateActionTypes.d.ts +13 -0
  91. package/lib/esm/actions/apiKeyValidation/ApiKeyValidationValidateActionTypes.js +1 -0
  92. package/lib/esm/actions/apiKeyValidation/index.d.ts +3 -0
  93. package/lib/esm/actions/apiKeyValidation/index.js +3 -0
  94. package/lib/esm/actions/index.d.ts +3 -0
  95. package/lib/esm/actions/index.js +3 -0
  96. package/lib/esm/actions/routeAuthValidation/RouteAuthValidationActionType.d.ts +3 -0
  97. package/lib/esm/actions/routeAuthValidation/RouteAuthValidationActionType.js +4 -0
  98. package/lib/esm/actions/routeAuthValidation/RouteAuthValidationDecodeActionRequester.d.ts +4 -0
  99. package/lib/esm/actions/routeAuthValidation/RouteAuthValidationDecodeActionRequester.js +11 -0
  100. package/lib/esm/actions/routeAuthValidation/RouteAuthValidationDecodeActionTypes.d.ts +15 -0
  101. package/lib/esm/actions/routeAuthValidation/RouteAuthValidationDecodeActionTypes.js +1 -0
  102. package/lib/esm/actions/routeAuthValidation/index.d.ts +3 -0
  103. package/lib/esm/actions/routeAuthValidation/index.js +3 -0
  104. package/lib/esm/actions/service/ServiceActionType.d.ts +3 -0
  105. package/lib/esm/actions/service/ServiceActionType.js +4 -0
  106. package/lib/esm/actions/service/ServiceRequestActionRequester.d.ts +2 -0
  107. package/lib/esm/actions/service/ServiceRequestActionRequester.js +11 -0
  108. package/lib/esm/actions/service/ServiceRequestActionTypes.d.ts +13 -0
  109. package/lib/esm/actions/service/ServiceRequestActionTypes.js +1 -0
  110. package/lib/esm/actions/service/createServiceRequester.d.ts +9 -0
  111. package/lib/esm/actions/service/createServiceRequester.js +8 -0
  112. package/lib/esm/actions/service/index.d.ts +5 -0
  113. package/lib/esm/actions/service/index.js +5 -0
  114. package/lib/esm/actions/service/serviceRequest.d.ts +11 -0
  115. package/lib/esm/actions/service/serviceRequest.js +19 -0
  116. package/lib/esm/actions/serviceFunction/ServiceFunctionExecuteActionRequester.js +0 -6
  117. package/lib/esm/actions/serviceFunction/ServiceFunctionExecuteActionTypes.d.ts +2 -3
  118. package/lib/esm/config/settings/index.d.ts +1 -0
  119. package/lib/esm/config/settings/index.js +1 -0
  120. package/lib/esm/config/settings/stateDispatchOverWebsockets.d.ts +2 -0
  121. package/lib/esm/config/settings/stateDispatchOverWebsockets.js +5 -0
  122. package/lib/esm/index.d.ts +1 -0
  123. package/lib/esm/index.js +1 -0
  124. package/lib/esm/services/webSocketQueue/entry/actionProcessor/getStateDispatch.d.ts +5 -0
  125. package/lib/esm/services/webSocketQueue/entry/actionProcessor/getStateDispatch.js +16 -0
  126. package/lib/esm/services/webSocketQueue/logic/webSocket/askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend.js +4 -4
  127. package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageServiceRequestResponse.d.ts +4 -0
  128. package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageServiceRequestResponse.js +1 -0
  129. package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageStateDispatch.d.ts +4 -0
  130. package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerEventMessageStateDispatch.js +1 -0
  131. package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType.d.ts +3 -1
  132. package/lib/esm/services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType.js +2 -0
  133. package/lib/esm/services/webSocketQueue/types/serverMessages/index.d.ts +2 -0
  134. package/lib/esm/services/webSocketQueue/types/serverMessages/index.js +2 -0
  135. package/lib/esm/stories/askGetHttpApiEventStorySession.d.ts +9 -0
  136. package/lib/esm/stories/askGetHttpApiEventStorySession.js +33 -0
  137. package/lib/esm/stories/askRouteAuthValidationDecodeDefault.d.ts +3 -0
  138. package/lib/esm/stories/askRouteAuthValidationDecodeDefault.js +20 -0
  139. package/lib/esm/stories/askValidateRouteAuth.d.ts +8 -0
  140. package/lib/esm/stories/askValidateRouteAuth.js +28 -0
  141. package/lib/esm/stories/index.d.ts +2 -0
  142. package/lib/esm/stories/index.js +2 -0
  143. package/lib/esm/utils/index.d.ts +1 -0
  144. package/lib/esm/utils/index.js +1 -0
  145. package/lib/esm/utils/uuidUtils.d.ts +1 -0
  146. package/lib/esm/utils/uuidUtils.js +5 -0
  147. package/package.json +3 -3
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getHttpApiEventAutoRespondActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,53 @@
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.getHttpApiEventAutoRespondActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const askValidateRouteAuth_1 = require("../../stories/askValidateRouteAuth");
15
+ const headerUtils_1 = require("../../utils/headerUtils");
16
+ const uuidUtils_1 = require("../../utils/uuidUtils");
17
+ const getProcessAutoRespond = (qpqConfig) => {
18
+ const validateAuth = (0, quidproquo_core_1.getProcessCustomImplementation)(qpqConfig, askValidateRouteAuth_1.askValidateRouteAuth, 'API Auth Validation', null, () => new Date().toISOString(), uuidUtils_1.generateUUID);
19
+ return (_a, session_1, actionProcessorList_1, logger_1, updateSession_1, dynamicModuleLoader_1) => __awaiter(void 0, [_a, session_1, actionProcessorList_1, logger_1, updateSession_1, dynamicModuleLoader_1], void 0, function* ({ qpqEventRecord, matchResult }, session, actionProcessorList, logger, updateSession, dynamicModuleLoader) {
20
+ var _b;
21
+ // Just auto respond for options requests
22
+ if (qpqEventRecord.method === 'OPTIONS') {
23
+ return (0, quidproquo_core_1.actionResult)({
24
+ status: 200,
25
+ isBase64Encoded: false,
26
+ body: '',
27
+ headers: (0, headerUtils_1.getCorsHeaders)(qpqConfig, matchResult.config || {}, qpqEventRecord.headers),
28
+ });
29
+ }
30
+ const authPayload = {
31
+ event: qpqEventRecord,
32
+ routeAuthSettings: (_b = matchResult.config) === null || _b === void 0 ? void 0 : _b.routeAuthSettings,
33
+ };
34
+ const [authValid, authError] = yield validateAuth(authPayload, session, actionProcessorList, logger, updateSession, dynamicModuleLoader);
35
+ if (authError || !authValid) {
36
+ return (0, quidproquo_core_1.actionResult)({
37
+ status: 401,
38
+ isBase64Encoded: false,
39
+ body: JSON.stringify({
40
+ message: 'You are unauthorized to access this resource',
41
+ }),
42
+ headers: (0, headerUtils_1.getCorsHeaders)(qpqConfig, matchResult.config || {}, qpqEventRecord.headers),
43
+ });
44
+ }
45
+ return (0, quidproquo_core_1.actionResult)(null);
46
+ });
47
+ };
48
+ const getHttpApiEventAutoRespondActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
49
+ return ({
50
+ [quidproquo_core_1.EventActionType.AutoRespond]: getProcessAutoRespond(qpqConfig),
51
+ });
52
+ });
53
+ exports.getHttpApiEventAutoRespondActionProcessor = getHttpApiEventAutoRespondActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getHttpApiEventGetStorySessionActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,37 @@
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.getHttpApiEventGetStorySessionActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const askGetHttpApiEventStorySession_1 = require("../../stories/askGetHttpApiEventStorySession");
15
+ const uuidUtils_1 = require("../../utils/uuidUtils");
16
+ const getProcessGetStorySession = (qpqConfig) => {
17
+ const getSession = (0, quidproquo_core_1.getProcessCustomImplementation)(qpqConfig, askGetHttpApiEventStorySession_1.askGetHttpApiEventStorySession, 'API Get Story Session', null, () => new Date().toISOString(), uuidUtils_1.generateUUID);
18
+ return (_a, session_1, actionProcessorList_1, logger_1, updateSession_1, dynamicModuleLoader_1) => __awaiter(void 0, [_a, session_1, actionProcessorList_1, logger_1, updateSession_1, dynamicModuleLoader_1], void 0, function* ({ matchStoryResult, qpqEventRecord }, session, actionProcessorList, logger, updateSession, dynamicModuleLoader) {
19
+ var _b;
20
+ const payload = {
21
+ event: qpqEventRecord,
22
+ routeAuthSettings: (_b = matchStoryResult.config) === null || _b === void 0 ? void 0 : _b.routeAuthSettings,
23
+ session,
24
+ };
25
+ const [storySession, error] = yield getSession(payload, session, actionProcessorList, logger, updateSession, dynamicModuleLoader);
26
+ if (error) {
27
+ return (0, quidproquo_core_1.actionResult)(void 0);
28
+ }
29
+ return (0, quidproquo_core_1.actionResult)(storySession);
30
+ });
31
+ };
32
+ const getHttpApiEventGetStorySessionActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
33
+ return ({
34
+ [quidproquo_core_1.EventActionType.GetStorySession]: getProcessGetStorySession(qpqConfig),
35
+ });
36
+ });
37
+ exports.getHttpApiEventGetStorySessionActionProcessor = getHttpApiEventGetStorySessionActionProcessor;
@@ -0,0 +1,2 @@
1
+ export * from './getHttpApiEventAutoRespondActionProcessor';
2
+ export * from './getHttpApiEventGetStorySessionActionProcessor';
@@ -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
+ __exportStar(require("./getHttpApiEventAutoRespondActionProcessor"), exports);
18
+ __exportStar(require("./getHttpApiEventGetStorySessionActionProcessor"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './api';
2
+ export * from './routeAuthValidation';
@@ -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
+ __exportStar(require("./api"), exports);
18
+ __exportStar(require("./routeAuthValidation"), exports);
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getRouteAuthValidationDecodeActionProcessor: ActionProcessorListResolver;
@@ -0,0 +1,32 @@
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.getRouteAuthValidationDecodeActionProcessor = void 0;
13
+ const quidproquo_core_1 = require("quidproquo-core");
14
+ const routeAuthValidation_1 = require("../../actions/routeAuthValidation");
15
+ const askRouteAuthValidationDecodeDefault_1 = require("../../stories/askRouteAuthValidationDecodeDefault");
16
+ const uuidUtils_1 = require("../../utils/uuidUtils");
17
+ const getProcessRouteAuthValidationDecode = (qpqConfig) => {
18
+ const decodeAuth = (0, quidproquo_core_1.getProcessCustomImplementation)(qpqConfig, askRouteAuthValidationDecodeDefault_1.askRouteAuthValidationDecodeDefault, 'Route Auth Validation Decode', null, () => new Date().toISOString(), uuidUtils_1.generateUUID);
19
+ return (payload, session, actionProcessorList, logger, updateSession, dynamicModuleLoader, streamRegistry) => __awaiter(void 0, void 0, void 0, function* () {
20
+ const [result, error] = yield decodeAuth(payload, session, actionProcessorList, logger, updateSession, dynamicModuleLoader, streamRegistry);
21
+ if (error) {
22
+ return (0, quidproquo_core_1.actionResult)(null);
23
+ }
24
+ return (0, quidproquo_core_1.actionResult)(result !== null && result !== void 0 ? result : null);
25
+ });
26
+ };
27
+ const getRouteAuthValidationDecodeActionProcessor = (qpqConfig) => __awaiter(void 0, void 0, void 0, function* () {
28
+ return ({
29
+ [routeAuthValidation_1.RouteAuthValidationActionType.Decode]: getProcessRouteAuthValidationDecode(qpqConfig),
30
+ });
31
+ });
32
+ exports.getRouteAuthValidationDecodeActionProcessor = getRouteAuthValidationDecodeActionProcessor;
@@ -0,0 +1,2 @@
1
+ import { ActionProcessorListResolver } from 'quidproquo-core';
2
+ export declare const getRouteAuthValidationActionProcessor: 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.getRouteAuthValidationActionProcessor = void 0;
13
+ const getRouteAuthValidationDecodeActionProcessor_1 = require("./getRouteAuthValidationDecodeActionProcessor");
14
+ const getRouteAuthValidationActionProcessor = (qpqConfig, dynamicModuleLoader) => __awaiter(void 0, void 0, void 0, function* () {
15
+ return (Object.assign({}, (yield (0, getRouteAuthValidationDecodeActionProcessor_1.getRouteAuthValidationDecodeActionProcessor)(qpqConfig, dynamicModuleLoader))));
16
+ });
17
+ exports.getRouteAuthValidationActionProcessor = getRouteAuthValidationActionProcessor;
@@ -0,0 +1,3 @@
1
+ export declare enum ApiKeyValidationActionType {
2
+ Validate = "@quidproquo-webserver/ApiKeyValidation/Validate"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeyValidationActionType = void 0;
4
+ var ApiKeyValidationActionType;
5
+ (function (ApiKeyValidationActionType) {
6
+ ApiKeyValidationActionType["Validate"] = "@quidproquo-webserver/ApiKeyValidation/Validate";
7
+ })(ApiKeyValidationActionType || (exports.ApiKeyValidationActionType = ApiKeyValidationActionType = {}));
@@ -0,0 +1,3 @@
1
+ import { ApiKeyReference } from '../../config/settings/apiKey';
2
+ import { ApiKeyValidationValidateActionRequester } from './ApiKeyValidationValidateActionTypes';
3
+ export declare function askApiKeyValidationValidate(apiKeyValue: string, apiKeyReferences: ApiKeyReference[]): ApiKeyValidationValidateActionRequester;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askApiKeyValidationValidate = askApiKeyValidationValidate;
4
+ const ApiKeyValidationActionType_1 = require("./ApiKeyValidationActionType");
5
+ function* askApiKeyValidationValidate(apiKeyValue, apiKeyReferences) {
6
+ return yield {
7
+ type: ApiKeyValidationActionType_1.ApiKeyValidationActionType.Validate,
8
+ payload: {
9
+ apiKeyValue,
10
+ apiKeyReferences,
11
+ },
12
+ };
13
+ }
@@ -0,0 +1,13 @@
1
+ import { Action, ActionProcessor, ActionRequester } from 'quidproquo-core';
2
+ import { ApiKeyReference } from '../../config/settings/apiKey';
3
+ import { ApiKeyValidationActionType } from './ApiKeyValidationActionType';
4
+ export interface ApiKeyValidationValidateActionPayload {
5
+ apiKeyValue: string;
6
+ apiKeyReferences: ApiKeyReference[];
7
+ }
8
+ export interface ApiKeyValidationValidateAction extends Action<ApiKeyValidationValidateActionPayload> {
9
+ type: ApiKeyValidationActionType.Validate;
10
+ payload: ApiKeyValidationValidateActionPayload;
11
+ }
12
+ export type ApiKeyValidationValidateActionProcessor = ActionProcessor<ApiKeyValidationValidateAction, boolean>;
13
+ export type ApiKeyValidationValidateActionRequester = ActionRequester<ApiKeyValidationValidateAction, boolean>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './ApiKeyValidationActionType';
2
+ export * from './ApiKeyValidationValidateActionRequester';
3
+ export * from './ApiKeyValidationValidateActionTypes';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ApiKeyValidationActionType"), exports);
18
+ __exportStar(require("./ApiKeyValidationValidateActionRequester"), exports);
19
+ __exportStar(require("./ApiKeyValidationValidateActionTypes"), exports);
@@ -1,8 +1,11 @@
1
1
  export * from './admin';
2
+ export * from './apiKeyValidation';
2
3
  export * from './dns';
3
4
  export * from "./extract";
4
5
  export * from './genericDataResource';
5
6
  export * from './openApiSpec';
7
+ export * from './routeAuthValidation';
8
+ export * from './service';
6
9
  export * from './serviceFunction';
7
10
  export * from './webEntry';
8
11
  export * from './websocket';
@@ -15,10 +15,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./admin"), exports);
18
+ __exportStar(require("./apiKeyValidation"), exports);
18
19
  __exportStar(require("./dns"), exports);
19
20
  __exportStar(require("./extract"), exports);
20
21
  __exportStar(require("./genericDataResource"), exports);
21
22
  __exportStar(require("./openApiSpec"), exports);
23
+ __exportStar(require("./routeAuthValidation"), exports);
24
+ __exportStar(require("./service"), exports);
22
25
  __exportStar(require("./serviceFunction"), exports);
23
26
  __exportStar(require("./webEntry"), exports);
24
27
  __exportStar(require("./websocket"), exports);
@@ -0,0 +1,3 @@
1
+ export declare enum RouteAuthValidationActionType {
2
+ Decode = "@quidproquo-webserver/RouteAuthValidation/Decode"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RouteAuthValidationActionType = void 0;
4
+ var RouteAuthValidationActionType;
5
+ (function (RouteAuthValidationActionType) {
6
+ RouteAuthValidationActionType["Decode"] = "@quidproquo-webserver/RouteAuthValidation/Decode";
7
+ })(RouteAuthValidationActionType || (exports.RouteAuthValidationActionType = RouteAuthValidationActionType = {}));
@@ -0,0 +1,4 @@
1
+ import { RouteAuthSettings } from '../../config/settings/route';
2
+ import { HTTPEvent } from '../../types/HTTPEvent';
3
+ import { RouteAuthValidationDecodeActionRequester } from './RouteAuthValidationDecodeActionTypes';
4
+ export declare function askRouteAuthValidationDecode(event: HTTPEvent, routeAuthSettings: RouteAuthSettings, ignoreExpiration: boolean): RouteAuthValidationDecodeActionRequester;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askRouteAuthValidationDecode = askRouteAuthValidationDecode;
4
+ const RouteAuthValidationActionType_1 = require("./RouteAuthValidationActionType");
5
+ function* askRouteAuthValidationDecode(event, routeAuthSettings, ignoreExpiration) {
6
+ return yield {
7
+ type: RouteAuthValidationActionType_1.RouteAuthValidationActionType.Decode,
8
+ payload: {
9
+ event,
10
+ routeAuthSettings,
11
+ ignoreExpiration,
12
+ },
13
+ };
14
+ }
@@ -0,0 +1,15 @@
1
+ import { Action, ActionProcessor, ActionRequester, DecodedAccessToken } from 'quidproquo-core';
2
+ import { RouteAuthSettings } from '../../config/settings/route';
3
+ import { HTTPEvent } from '../../types/HTTPEvent';
4
+ import { RouteAuthValidationActionType } from './RouteAuthValidationActionType';
5
+ export interface RouteAuthValidationDecodeActionPayload {
6
+ event: HTTPEvent;
7
+ routeAuthSettings: RouteAuthSettings;
8
+ ignoreExpiration: boolean;
9
+ }
10
+ export interface RouteAuthValidationDecodeAction extends Action<RouteAuthValidationDecodeActionPayload> {
11
+ type: RouteAuthValidationActionType.Decode;
12
+ payload: RouteAuthValidationDecodeActionPayload;
13
+ }
14
+ export type RouteAuthValidationDecodeActionProcessor = ActionProcessor<RouteAuthValidationDecodeAction, DecodedAccessToken | null>;
15
+ export type RouteAuthValidationDecodeActionRequester = ActionRequester<RouteAuthValidationDecodeAction, DecodedAccessToken | null>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './RouteAuthValidationActionType';
2
+ export * from './RouteAuthValidationDecodeActionRequester';
3
+ export * from './RouteAuthValidationDecodeActionTypes';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./RouteAuthValidationActionType"), exports);
18
+ __exportStar(require("./RouteAuthValidationDecodeActionRequester"), exports);
19
+ __exportStar(require("./RouteAuthValidationDecodeActionTypes"), exports);
@@ -0,0 +1,3 @@
1
+ export declare enum ServiceActionType {
2
+ Request = "@quidproquo-webserver/Service/Request"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceActionType = void 0;
4
+ var ServiceActionType;
5
+ (function (ServiceActionType) {
6
+ ServiceActionType["Request"] = "@quidproquo-webserver/Service/Request";
7
+ })(ServiceActionType || (exports.ServiceActionType = ServiceActionType = {}));
@@ -0,0 +1,2 @@
1
+ import { ServiceRequestActionRequester } from './ServiceRequestActionTypes';
2
+ export declare function askServiceRequest<TPayload, TResponse>(serviceName: string, method: string, payload: TPayload): ServiceRequestActionRequester<TPayload, TResponse>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askServiceRequest = askServiceRequest;
4
+ const ServiceActionType_1 = require("./ServiceActionType");
5
+ function* askServiceRequest(serviceName, method, payload) {
6
+ return yield {
7
+ type: ServiceActionType_1.ServiceActionType.Request,
8
+ payload: {
9
+ serviceName,
10
+ method,
11
+ payload,
12
+ },
13
+ };
14
+ }
@@ -0,0 +1,13 @@
1
+ import { Action, ActionProcessor, ActionRequester } from 'quidproquo-core';
2
+ import { ServiceActionType } from './ServiceActionType';
3
+ export interface ServiceRequestActionPayload<TPayload> {
4
+ serviceName: string;
5
+ method: string;
6
+ payload: TPayload;
7
+ }
8
+ export interface ServiceRequestAction<TPayload> extends Action<ServiceRequestActionPayload<TPayload>> {
9
+ type: ServiceActionType.Request;
10
+ payload: ServiceRequestActionPayload<TPayload>;
11
+ }
12
+ export type ServiceRequestActionProcessor<TPayload, TResponse> = ActionProcessor<ServiceRequestAction<TPayload>, TResponse>;
13
+ export type ServiceRequestActionRequester<TPayload, TResponse> = ActionRequester<ServiceRequestAction<TPayload>, TResponse>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { AskResponse } from 'quidproquo-core';
2
+ export interface ServiceRequester<TPayload, TResponse> {
3
+ (payload: TPayload): AskResponse<TResponse>;
4
+ serviceRequest: {
5
+ serviceName: string;
6
+ method: string;
7
+ };
8
+ }
9
+ export declare const createServiceRequester: <TPayload, TResponse = void>(serviceName: string, method: string) => ServiceRequester<TPayload, TResponse>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createServiceRequester = void 0;
4
+ const ServiceRequestActionRequester_1 = require("./ServiceRequestActionRequester");
5
+ const createServiceRequester = (serviceName, method) => {
6
+ const requester = function* askWrapServiceRequest(payload) {
7
+ return yield* (0, ServiceRequestActionRequester_1.askServiceRequest)(serviceName, method, payload);
8
+ };
9
+ requester.serviceRequest = { serviceName, method };
10
+ return requester;
11
+ };
12
+ exports.createServiceRequester = createServiceRequester;
@@ -0,0 +1,5 @@
1
+ export * from './createServiceRequester';
2
+ export * from './ServiceActionType';
3
+ export * from './serviceRequest';
4
+ export * from './ServiceRequestActionRequester';
5
+ export * from './ServiceRequestActionTypes';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./createServiceRequester"), exports);
18
+ __exportStar(require("./ServiceActionType"), exports);
19
+ __exportStar(require("./serviceRequest"), exports);
20
+ __exportStar(require("./ServiceRequestActionRequester"), exports);
21
+ __exportStar(require("./ServiceRequestActionTypes"), exports);
@@ -0,0 +1,11 @@
1
+ import { AskResponse, QueueEvent, QueueMessage } from 'quidproquo-core';
2
+ import { ServiceRequester } from './createServiceRequester';
3
+ type PayloadOf<R> = R extends ServiceRequester<infer T, any> ? T : never;
4
+ type ResponseOf<R> = R extends ServiceRequester<any, infer T> ? T : never;
5
+ export declare const serviceRequest: <R extends ServiceRequester<any, any>>(requester: R, runtime: (payload: PayloadOf<R>) => AskResponse<ResponseOf<R>>) => {
6
+ (event: QueueEvent<QueueMessage<any>>): Generator<import("quidproquo-core").Action<any>, boolean, any>;
7
+ serviceRequest: {
8
+ method: string;
9
+ };
10
+ };
11
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serviceRequest = void 0;
4
+ const quidproquo_core_1 = require("quidproquo-core");
5
+ const context_1 = require("../../context");
6
+ const askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend_1 = require("../../services/webSocketQueue/logic/webSocket/askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend");
7
+ const WebSocketQueueServerMessageEventType_1 = require("../../services/webSocketQueue/types/serverMessages/WebSocketQueueServerMessageEventType");
8
+ const serviceRequest = (requester, runtime) => {
9
+ const { method } = requester.serviceRequest;
10
+ const wrapper = function* wrapper(event) {
11
+ const result = yield* (0, quidproquo_core_1.askCatch)(runtime(event.message.payload));
12
+ const { connectionId, correlationId } = yield* (0, context_1.askWebsocketReadConnectionInfo)();
13
+ const response = {
14
+ type: WebSocketQueueServerMessageEventType_1.WebSocketQueueServerMessageEventType.ServiceRequestResponse,
15
+ payload: result,
16
+ };
17
+ yield* (0, askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend_1.askSendAnyWebSocketQueueEventMessageWithCorrelationToFrontend)(Object.assign(Object.assign({}, response), { correlationId }), connectionId);
18
+ return true;
19
+ };
20
+ wrapper.serviceRequest = { method };
21
+ return wrapper;
22
+ };
23
+ exports.serviceRequest = serviceRequest;
@@ -1,20 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.askServiceFunctionExecute = askServiceFunctionExecute;
4
- const quidproquo_core_1 = require("quidproquo-core");
5
4
  const ServiceFunctionActionType_1 = require("./ServiceFunctionActionType");
6
5
  function* askServiceFunctionExecute(service, functionName, payload, isAsync = false) {
7
- // Read the context so we can send it with the queue message
8
- const context = (yield {
9
- type: quidproquo_core_1.ContextActionType.List,
10
- });
11
6
  const result = (yield {
12
7
  type: ServiceFunctionActionType_1.ServiceFunctionActionType.Execute,
13
8
  payload: {
14
9
  functionName,
15
10
  service,
16
11
  payload,
17
- context,
18
12
  isAsync,
19
13
  },
20
14
  });
@@ -1,10 +1,9 @@
1
- import { Action, ActionProcessor, ActionRequester, ContextListAction, QpqContext } from 'quidproquo-core';
1
+ import { Action, ActionProcessor, ActionRequester } from 'quidproquo-core';
2
2
  import { ServiceFunctionActionType } from './ServiceFunctionActionType';
3
3
  export interface ServiceFunctionExecuteActionPayload<T> {
4
4
  service: string;
5
5
  functionName: string;
6
6
  payload: T;
7
- context: QpqContext<any>;
8
7
  isAsync: boolean;
9
8
  }
10
9
  export interface ServiceFunctionExecuteAction<T> extends Action<ServiceFunctionExecuteActionPayload<T>> {
@@ -12,4 +11,4 @@ export interface ServiceFunctionExecuteAction<T> extends Action<ServiceFunctionE
12
11
  payload: ServiceFunctionExecuteActionPayload<T>;
13
12
  }
14
13
  export type ServiceFunctionExecuteActionProcessor<R, T> = ActionProcessor<ServiceFunctionExecuteAction<T>, R>;
15
- export type ServiceFunctionExecuteActionRequester<R, T> = ActionRequester<ServiceFunctionExecuteAction<T> | ContextListAction, R, QpqContext<any> | R>;
14
+ export type ServiceFunctionExecuteActionRequester<R, T> = ActionRequester<ServiceFunctionExecuteAction<T>, R>;
@@ -14,6 +14,7 @@ export * from './route';
14
14
  export * from './seed';
15
15
  export * from './seo';
16
16
  export * from './serviceFunction';
17
+ export * from './stateDispatchOverWebsockets';
17
18
  export * from './subdomainRedirect';
18
19
  export * from './webEntry';
19
20
  export * from './websocket';
@@ -30,6 +30,7 @@ __exportStar(require("./route"), exports);
30
30
  __exportStar(require("./seed"), exports);
31
31
  __exportStar(require("./seo"), exports);
32
32
  __exportStar(require("./serviceFunction"), exports);
33
+ __exportStar(require("./stateDispatchOverWebsockets"), exports);
33
34
  __exportStar(require("./subdomainRedirect"), exports);
34
35
  __exportStar(require("./webEntry"), exports);
35
36
  __exportStar(require("./websocket"), exports);
@@ -0,0 +1,2 @@
1
+ import { QPQConfig } from 'quidproquo-core';
2
+ export declare const defineStateDispatchOverWebsockets: () => QPQConfig;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defineStateDispatchOverWebsockets = void 0;
4
+ const quidproquo_core_1 = require("quidproquo-core");
5
+ const getServiceEntryQpqFunctionRuntime_1 = require("../../services/getServiceEntryQpqFunctionRuntime");
6
+ const defineStateDispatchOverWebsockets = () => [
7
+ (0, quidproquo_core_1.defineActionProcessors)((0, getServiceEntryQpqFunctionRuntime_1.getServiceEntryQpqFunctionRuntime)('webSocketQueue', 'actionProcessor', 'getStateDispatch::getStateDispatch')),
8
+ ];
9
+ exports.defineStateDispatchOverWebsockets = defineStateDispatchOverWebsockets;