quidproquo-web-admin 0.0.250 → 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 (95) hide show
  1. package/lib/commonjs/LogViewer/ActionHistoryItem.d.ts +4 -3
  2. package/lib/commonjs/LogViewer/ActionHistoryItem.js +3 -3
  3. package/lib/commonjs/LogViewer/ActionRender/ActionRender.d.ts +17 -0
  4. package/lib/commonjs/LogViewer/ActionRender/ActionRender.js +58 -0
  5. package/lib/commonjs/LogViewer/ActionRender/index.d.ts +1 -0
  6. package/lib/commonjs/LogViewer/ActionRender/index.js +17 -0
  7. package/lib/commonjs/LogViewer/LogDetails.js +2 -2
  8. package/lib/commonjs/LogViewer/actionComponents/custom/CoreContextListCustomAction.d.ts +3 -0
  9. package/lib/commonjs/LogViewer/actionComponents/custom/CoreContextListCustomAction.js +10 -0
  10. package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogCreateCustomAction.js +3 -4
  11. package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogDisableEventHistoryCustomAction.js +3 -4
  12. package/lib/commonjs/LogViewer/actionComponents/custom/CoreLogTemplateLiteralCustomAction.js +3 -4
  13. package/lib/commonjs/LogViewer/actionComponents/custom/CoreNetworkRequestCustomAction.js +10 -10
  14. package/lib/commonjs/LogViewer/actionComponents/custom/index.d.ts +1 -0
  15. package/lib/commonjs/LogViewer/actionComponents/custom/index.js +1 -0
  16. package/lib/commonjs/LogViewer/actionComponents/customActionsMap/core/coreContextActionComponentMap.d.ts +3 -0
  17. package/lib/commonjs/LogViewer/actionComponents/customActionsMap/core/coreContextActionComponentMap.js +8 -0
  18. package/lib/commonjs/LogViewer/actionComponents/customActionsMap/core/index.d.ts +1 -1
  19. package/lib/commonjs/LogViewer/actionComponents/customActionsMap/core/index.js +2 -1
  20. package/lib/commonjs/LogViewer/actionComponents/customActionsMap/index.d.ts +1 -1
  21. package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/ActionResultDisplay.js +2 -4
  22. package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.js +1 -1
  23. package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/getGenericActionRenderer.js +3 -3
  24. package/lib/commonjs/LogViewer/actionComponents/types/ActionComponentProps.d.ts +5 -4
  25. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreConfigActionComponentMap.js +7 -6
  26. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreContextActionComponentMap.js +2 -1
  27. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreDateActionComponentMap.js +2 -1
  28. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreErrorActionComponentMap.js +2 -1
  29. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreEventActionComponentMap.js +6 -4
  30. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreEventBusActionComponentMap.js +2 -1
  31. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreFileActionComponentMap.js +9 -8
  32. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreGuidActionComponentMap.js +3 -1
  33. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreKeyValueStoreActionComponentMap.js +3 -2
  34. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreMathActionComponentMap.js +2 -1
  35. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/corePlatformActionComponentMap.js +2 -1
  36. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreQueueActionComponentMap.js +2 -1
  37. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreSystemActionComponentMap.js +3 -2
  38. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreUserDirectoryActionComponentMap.js +18 -40
  39. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/index.js +1 -2
  40. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverServiceFunctionActionComponentMap.js +2 -1
  41. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverWebEntryActionComponentMap.js +2 -1
  42. package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverWebsocketActionComponentMap.js +2 -1
  43. package/lib/commonjs/LogViewer/logic/processLog.js +2 -1
  44. package/lib/esm/LogViewer/ActionHistoryItem.d.ts +4 -3
  45. package/lib/esm/LogViewer/ActionHistoryItem.js +3 -3
  46. package/lib/esm/LogViewer/ActionRender/ActionRender.d.ts +17 -0
  47. package/lib/esm/LogViewer/ActionRender/ActionRender.js +48 -0
  48. package/lib/esm/LogViewer/ActionRender/index.d.ts +1 -0
  49. package/lib/esm/LogViewer/ActionRender/index.js +1 -0
  50. package/lib/esm/LogViewer/LogDetails.js +2 -2
  51. package/lib/esm/LogViewer/actionComponents/custom/CoreContextListCustomAction.d.ts +3 -0
  52. package/lib/esm/LogViewer/actionComponents/custom/CoreContextListCustomAction.js +6 -0
  53. package/lib/esm/LogViewer/actionComponents/custom/CoreLogCreateCustomAction.js +3 -3
  54. package/lib/esm/LogViewer/actionComponents/custom/CoreLogDisableEventHistoryCustomAction.js +3 -3
  55. package/lib/esm/LogViewer/actionComponents/custom/CoreLogTemplateLiteralCustomAction.js +3 -3
  56. package/lib/esm/LogViewer/actionComponents/custom/CoreNetworkRequestCustomAction.js +10 -10
  57. package/lib/esm/LogViewer/actionComponents/custom/index.d.ts +1 -0
  58. package/lib/esm/LogViewer/actionComponents/custom/index.js +1 -0
  59. package/lib/esm/LogViewer/actionComponents/customActionsMap/core/coreContextActionComponentMap.d.ts +3 -0
  60. package/lib/esm/LogViewer/actionComponents/customActionsMap/core/coreContextActionComponentMap.js +6 -0
  61. package/lib/esm/LogViewer/actionComponents/customActionsMap/core/index.d.ts +1 -1
  62. package/lib/esm/LogViewer/actionComponents/customActionsMap/core/index.js +2 -0
  63. package/lib/esm/LogViewer/actionComponents/customActionsMap/index.d.ts +1 -1
  64. package/lib/esm/LogViewer/actionComponents/genericActionRenderer/ActionResultDisplay.js +2 -4
  65. package/lib/esm/LogViewer/actionComponents/genericActionRenderer/AnyVariableView/AnyVariableView.js +1 -1
  66. package/lib/esm/LogViewer/actionComponents/genericActionRenderer/getGenericActionRenderer.js +3 -3
  67. package/lib/esm/LogViewer/actionComponents/types/ActionComponentProps.d.ts +5 -4
  68. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreConfigActionComponentMap.js +7 -6
  69. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreContextActionComponentMap.js +2 -1
  70. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreDateActionComponentMap.js +2 -1
  71. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreErrorActionComponentMap.js +2 -1
  72. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreEventActionComponentMap.js +6 -4
  73. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreEventBusActionComponentMap.js +2 -1
  74. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreFileActionComponentMap.js +9 -8
  75. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreGuidActionComponentMap.js +3 -1
  76. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreKeyValueStoreActionComponentMap.js +3 -2
  77. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreMathActionComponentMap.js +2 -1
  78. package/lib/esm/LogViewer/logic/actionComponentMap/core/corePlatformActionComponentMap.js +2 -1
  79. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreQueueActionComponentMap.js +2 -1
  80. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreSystemActionComponentMap.js +3 -2
  81. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreUserDirectoryActionComponentMap.js +18 -40
  82. package/lib/esm/LogViewer/logic/actionComponentMap/core/index.js +0 -2
  83. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverServiceFunctionActionComponentMap.js +2 -1
  84. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverWebEntryActionComponentMap.js +2 -1
  85. package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverWebsocketActionComponentMap.js +2 -1
  86. package/lib/esm/LogViewer/logic/processLog.js +2 -1
  87. package/package.json +6 -6
  88. package/lib/commonjs/LogViewer/AnyActionHistoryItem.d.ts +0 -6
  89. package/lib/commonjs/LogViewer/AnyActionHistoryItem.js +0 -36
  90. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreLogActionComponentMap.d.ts +0 -2
  91. package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreLogActionComponentMap.js +0 -6
  92. package/lib/esm/LogViewer/AnyActionHistoryItem.d.ts +0 -6
  93. package/lib/esm/LogViewer/AnyActionHistoryItem.js +0 -29
  94. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreLogActionComponentMap.d.ts +0 -2
  95. package/lib/esm/LogViewer/logic/actionComponentMap/core/coreLogActionComponentMap.js +0 -4
@@ -1,7 +1,8 @@
1
- import { ActionHistory } from 'quidproquo-core';
1
+ import { Action } from 'quidproquo-core';
2
2
  interface ActionHistoryItemProps {
3
- historyItem: ActionHistory;
3
+ action: Action<any>;
4
+ result: any;
4
5
  expanded: boolean;
5
6
  }
6
- export declare const ActionHistoryItem: ({ historyItem, expanded }: ActionHistoryItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const ActionHistoryItem: ({ action, result, expanded }: ActionHistoryItemProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ActionHistoryItem = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const TruncatedText_1 = __importDefault(require("./TruncatedText"));
9
- const ActionHistoryItem = ({ historyItem, expanded }) => {
10
- const inputText = JSON.stringify(historyItem.act.payload, null, 2);
11
- const outputText = JSON.stringify(historyItem.res, null, 2);
9
+ const ActionHistoryItem = ({ action, result, expanded }) => {
10
+ const inputText = JSON.stringify(action.payload, null, 2);
11
+ const outputText = JSON.stringify(result, null, 2);
12
12
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("pre", Object.assign({ style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, { children: (0, jsx_runtime_1.jsx)(TruncatedText_1.default, { title: "Input", text: inputText, expanded: expanded }) })), (0, jsx_runtime_1.jsx)("pre", Object.assign({ style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, { children: (0, jsx_runtime_1.jsx)(TruncatedText_1.default, { title: "Output", text: outputText, expanded: expanded }) }))] }));
13
13
  };
14
14
  exports.ActionHistoryItem = ActionHistoryItem;
@@ -0,0 +1,17 @@
1
+ import { Action, ActionProcessorResult, SystemBatchActionPayload } from 'quidproquo-core';
2
+ import { ActionComponent } from '../actionComponents';
3
+ interface AnyActionHistoryItemProps {
4
+ action: Action<any>;
5
+ result: ActionProcessorResult<any>;
6
+ }
7
+ interface ActionRenderProps {
8
+ action: Action<any>;
9
+ result: any;
10
+ isLegacy: boolean;
11
+ expanded: boolean;
12
+ }
13
+ export declare const CoreBatchCustomAction: ActionComponent<SystemBatchActionPayload, any[]>;
14
+ export declare const AnyCustomAction: ActionComponent;
15
+ export declare const ActionRender: ({ action, result, isLegacy, expanded }: ActionRenderProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const AnyActionHistoryItem: ({ action, result }: AnyActionHistoryItemProps) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AnyActionHistoryItem = exports.ActionRender = exports.AnyCustomAction = exports.CoreBatchCustomAction = void 0;
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const quidproquo_core_1 = require("quidproquo-core");
9
+ const react_1 = require("react");
10
+ const ExpandLess_1 = __importDefault(require("@mui/icons-material/ExpandLess"));
11
+ const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
12
+ const History_1 = __importDefault(require("@mui/icons-material/History"));
13
+ const material_1 = require("@mui/material");
14
+ const actionComponents_1 = require("../actionComponents");
15
+ const customActionsMap_1 = __importDefault(require("../actionComponents/customActionsMap"));
16
+ const ActionHistoryItem_1 = require("../ActionHistoryItem");
17
+ const actionComponentMap_1 = __importDefault(require("../logic/actionComponentMap"));
18
+ const CoreBatchCustomAction = ({ action, expanded, result }) => {
19
+ if (!action.payload) {
20
+ return null;
21
+ }
22
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ style: { borderLeft: 'thin dashed black', background: '#0400ff29', padding: '1px 10px 10px 10px' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { width: '100%', my: 1 } }, { children: action.payload.actions.map((action, index) => ((0, jsx_runtime_1.jsx)(exports.AnyActionHistoryItem, { action: action, result: (0, quidproquo_core_1.actionResult)((0, quidproquo_core_1.resolveActionResult)(result)[index]) }, index))) })) })));
23
+ };
24
+ exports.CoreBatchCustomAction = CoreBatchCustomAction;
25
+ const AnyCustomAction = ({ action, result, expanded }) => {
26
+ if (!action.payload) {
27
+ return null;
28
+ }
29
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { width: '100%', my: 1 } }, { children: (0, jsx_runtime_1.jsx)("pre", Object.assign({ style: actionComponents_1.genericFunctionRendererStyles.pre }, { children: (0, jsx_runtime_1.jsx)(actionComponents_1.AnyVariableView, { expanded: expanded, value: action.payload }) })) })));
30
+ };
31
+ exports.AnyCustomAction = AnyCustomAction;
32
+ const ActionRender = ({ action, result, isLegacy, expanded }) => {
33
+ const actionComponentConfig = actionComponentMap_1.default[action.type];
34
+ if (!isLegacy && action.type === quidproquo_core_1.SystemActionType.Batch) {
35
+ return (0, jsx_runtime_1.jsx)(exports.CoreBatchCustomAction, { action: action, result: result, expanded: expanded });
36
+ }
37
+ const ActionComponent = isLegacy
38
+ ? ActionHistoryItem_1.ActionHistoryItem
39
+ : customActionsMap_1.default[action.type]
40
+ ? customActionsMap_1.default[action.type]
41
+ : actionComponentConfig
42
+ ? (0, actionComponents_1.getGenericActionRenderer)(actionComponentConfig[0], actionComponentConfig.slice(1))
43
+ : exports.AnyCustomAction;
44
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(ActionComponent, { action: action, result: result, expanded: expanded }) }));
45
+ };
46
+ exports.ActionRender = ActionRender;
47
+ const AnyActionHistoryItem = ({ action, result }) => {
48
+ const [expanded, setExpanded] = (0, react_1.useState)(false);
49
+ const [legacy, setLegacy] = (0, react_1.useState)(false);
50
+ const toggleExpanded = () => {
51
+ setExpanded(!expanded);
52
+ };
53
+ const toggleLegacy = () => {
54
+ setLegacy(!legacy);
55
+ };
56
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", component: "span" }, { children: action.type.split('/').slice(-2).join('::') })), (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: expanded ? 'Collapse' : 'Expand' }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ size: "small", onClick: toggleExpanded }, { children: expanded ? (0, jsx_runtime_1.jsx)(ExpandLess_1.default, {}) : (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) })) })), (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: "Legacy View" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ size: "small", onClick: toggleLegacy }, { children: (0, jsx_runtime_1.jsx)(History_1.default, { color: legacy ? 'primary' : 'inherit' }) })) }))] })), (0, jsx_runtime_1.jsx)(exports.ActionRender, { action: action, result: result, isLegacy: legacy, expanded: expanded })] }));
57
+ };
58
+ exports.AnyActionHistoryItem = AnyActionHistoryItem;
@@ -0,0 +1 @@
1
+ export * from './ActionRender';
@@ -0,0 +1,17 @@
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("./ActionRender"), exports);
@@ -7,7 +7,7 @@ exports.LogDetails = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const material_1 = require("@mui/material");
9
9
  const ActionHistoryItemTimeStamp_1 = require("./ActionHistoryItemTimeStamp");
10
- const AnyActionHistoryItem_1 = require("./AnyActionHistoryItem");
10
+ const ActionRender_1 = require("./ActionRender");
11
11
  const ConsoleLogViewer_1 = __importDefault(require("./ConsoleLogViewer"));
12
12
  const logic_1 = require("./logic");
13
13
  const LogSummaryDetails_1 = require("./LogSummaryDetails");
@@ -40,6 +40,6 @@ const LogDetails = ({ log, hideFastActions, orderByDuration, }) => {
40
40
  return durationB - durationA;
41
41
  });
42
42
  }
43
- return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { width: 1 } }, { children: (0, jsx_runtime_1.jsx)(material_1.Table, Object.assign({ sx: { tableLayout: 'fixed' } }, { children: (0, jsx_runtime_1.jsxs)(material_1.TableBody, { children: [(0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: leftTableCell }, { children: (0, jsx_runtime_1.jsx)(ActionHistoryItemTimeStamp_1.ActionHistoryItemTimeStamp, { startedAt: log.startedAt, finishedAt: log.startedAt }) })), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: rightTableCell }, { children: (0, jsx_runtime_1.jsx)(LogSummaryDetails_1.LogSummaryDetails, { log: log }) }))] }), history.map((historyItem, index) => ((0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: leftTableCell }, { children: (0, jsx_runtime_1.jsx)(ActionHistoryItemTimeStamp_1.ActionHistoryItemTimeStamp, { startedAt: historyItem.startedAt, finishedAt: historyItem.finishedAt }) })), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: rightTableCell }, { children: (0, jsx_runtime_1.jsx)(AnyActionHistoryItem_1.AnyActionHistoryItem, { historyItem: historyItem }) }))] }, `${index}`))), (0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: leftTableCell }, { children: (0, jsx_runtime_1.jsx)(ActionHistoryItemTimeStamp_1.ActionHistoryItemTimeStamp, { startedAt: log.finishedAt, finishedAt: log.finishedAt }) })), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: rightTableCell }, { children: (0, jsx_runtime_1.jsx)(LogSummaryReturn_1.LogSummaryReturn, { log: log }) }))] }), (log === null || log === void 0 ? void 0 : log.logs) && ((0, jsx_runtime_1.jsx)(material_1.TableRow, { children: (0, jsx_runtime_1.jsxs)(material_1.TableCell, Object.assign({ colSpan: 2, style: { width: '100%' } }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ style: { paddingBottom: '10px' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", component: "span" }, { children: "Caught console.log events" })) })), (0, jsx_runtime_1.jsx)(ConsoleLogViewer_1.default, { logs: log === null || log === void 0 ? void 0 : log.logs })] })) }))] }) })) })));
43
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { width: 1 } }, { children: (0, jsx_runtime_1.jsx)(material_1.Table, Object.assign({ sx: { tableLayout: 'fixed' } }, { children: (0, jsx_runtime_1.jsxs)(material_1.TableBody, { children: [(0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: leftTableCell }, { children: (0, jsx_runtime_1.jsx)(ActionHistoryItemTimeStamp_1.ActionHistoryItemTimeStamp, { startedAt: log.startedAt, finishedAt: log.startedAt }) })), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: rightTableCell }, { children: (0, jsx_runtime_1.jsx)(LogSummaryDetails_1.LogSummaryDetails, { log: log }) }))] }), history.map((historyItem, index) => ((0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: leftTableCell }, { children: (0, jsx_runtime_1.jsx)(ActionHistoryItemTimeStamp_1.ActionHistoryItemTimeStamp, { startedAt: historyItem.startedAt, finishedAt: historyItem.finishedAt }) })), (0, jsx_runtime_1.jsxs)(material_1.TableCell, Object.assign({ sx: rightTableCell }, { children: [historyItem.act && (0, jsx_runtime_1.jsx)(ActionRender_1.AnyActionHistoryItem, { action: historyItem.act, result: historyItem.res }), !historyItem.act && (0, jsx_runtime_1.jsx)("div", { children: "No Action" })] }))] }, `${index}`))), (0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: leftTableCell }, { children: (0, jsx_runtime_1.jsx)(ActionHistoryItemTimeStamp_1.ActionHistoryItemTimeStamp, { startedAt: log.finishedAt, finishedAt: log.finishedAt }) })), (0, jsx_runtime_1.jsx)(material_1.TableCell, Object.assign({ sx: rightTableCell }, { children: (0, jsx_runtime_1.jsx)(LogSummaryReturn_1.LogSummaryReturn, { log: log }) }))] }), (log === null || log === void 0 ? void 0 : log.logs) && ((0, jsx_runtime_1.jsx)(material_1.TableRow, { children: (0, jsx_runtime_1.jsxs)(material_1.TableCell, Object.assign({ colSpan: 2, style: { width: '100%' } }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ style: { paddingBottom: '10px' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", component: "span" }, { children: "Caught console.log events" })) })), (0, jsx_runtime_1.jsx)(ConsoleLogViewer_1.default, { logs: log === null || log === void 0 ? void 0 : log.logs })] })) }))] }) })) })));
44
44
  };
45
45
  exports.LogDetails = LogDetails;
@@ -0,0 +1,3 @@
1
+ import { ContextListActionPayload } from 'quidproquo-core';
2
+ import { ActionComponent } from '../types';
3
+ export declare const CoreContextListCustomAction: ActionComponent<ContextListActionPayload>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoreContextListCustomAction = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const genericActionRenderer_1 = require("../genericActionRenderer");
7
+ const CoreContextListCustomAction = ({ result, expanded, }) => {
8
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { width: '100%', my: 1 } }, { children: (0, jsx_runtime_1.jsx)("pre", Object.assign({ style: genericActionRenderer_1.genericFunctionRendererStyles.pre }, { children: (0, jsx_runtime_1.jsx)(genericActionRenderer_1.AnyVariableView, { value: result, expanded: expanded }) })) })));
9
+ };
10
+ exports.CoreContextListCustomAction = CoreContextListCustomAction;
@@ -25,12 +25,11 @@ const getSeverity = (logLevel) => {
25
25
  return 'info';
26
26
  }
27
27
  };
28
- const CoreLogCreateCustomAction = ({ historyItem, expanded }) => {
29
- var _a;
30
- if (!((_a = historyItem.act) === null || _a === void 0 ? void 0 : _a.payload)) {
28
+ const CoreLogCreateCustomAction = ({ action, expanded }) => {
29
+ if (!action.payload) {
31
30
  return null;
32
31
  }
33
- const { logLevel, msg, data } = historyItem.act.payload;
32
+ const { logLevel, msg, data } = action.payload;
34
33
  return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { width: '100%', my: 1 } }, { children: (0, jsx_runtime_1.jsxs)(Alert_1.default, Object.assign({ severity: getSeverity(logLevel) }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", fontWeight: "bold" }, { children: (0, quidproquo_core_1.resolveLookupText)(logLevel, quidproquo_core_1.LogLevelEnum) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: msg })), data && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", sx: { mt: 1, whiteSpace: 'pre-wrap' } }, { children: (0, jsx_runtime_1.jsx)("pre", Object.assign({ style: genericActionRenderer_1.genericFunctionRendererStyles.pre }, { children: (0, jsx_runtime_1.jsx)(genericActionRenderer_1.AnyVariableView, { value: data, expanded: expanded }) })) })))] })) })));
35
34
  };
36
35
  exports.CoreLogCreateCustomAction = CoreLogCreateCustomAction;
@@ -7,12 +7,11 @@ exports.CoreLogDisableEventHistoryCustomAction = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const material_1 = require("@mui/material");
9
9
  const Alert_1 = __importDefault(require("@mui/material/Alert"));
10
- const CoreLogDisableEventHistoryCustomAction = ({ historyItem }) => {
11
- var _a;
12
- if (!((_a = historyItem.act) === null || _a === void 0 ? void 0 : _a.payload)) {
10
+ const CoreLogDisableEventHistoryCustomAction = ({ action }) => {
11
+ if (!action.payload) {
13
12
  return null;
14
13
  }
15
- const { reason } = historyItem.act.payload;
14
+ const { reason } = action.payload;
16
15
  return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { width: '100%', my: 1 } }, { children: (0, jsx_runtime_1.jsx)(Alert_1.default, Object.assign({ severity: 'warning' }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", fontWeight: "bold" }, { children: reason })) })) })));
17
16
  };
18
17
  exports.CoreLogDisableEventHistoryCustomAction = CoreLogDisableEventHistoryCustomAction;
@@ -8,12 +8,11 @@ const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const material_1 = require("@mui/material");
9
9
  const Alert_1 = __importDefault(require("@mui/material/Alert"));
10
10
  const genericActionRenderer_1 = require("../genericActionRenderer");
11
- const CoreLogTemplateLiteralCustomAction = ({ historyItem, expanded }) => {
12
- var _a;
13
- if (!((_a = historyItem.act) === null || _a === void 0 ? void 0 : _a.payload)) {
11
+ const CoreLogTemplateLiteralCustomAction = ({ action, expanded }) => {
12
+ if (!action.payload) {
14
13
  return null;
15
14
  }
16
- const { messageParts: [strings, values], } = historyItem.act.payload;
15
+ const { messageParts: [strings, values], } = action.payload;
17
16
  return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { width: '100%', my: 1 } }, { children: (0, jsx_runtime_1.jsx)(Alert_1.default, Object.assign({ severity: 'info' }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: values.reduce((preComp, value, index) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [preComp, (0, jsx_runtime_1.jsx)(genericActionRenderer_1.AnyVariableView, { value: value, expanded: expanded, hideStringQuotes: true }), (0, jsx_runtime_1.jsx)("span", { children: strings[index + 1] })] })), (0, jsx_runtime_1.jsx)("span", { children: strings[0] })) })) })) })));
18
17
  };
19
18
  exports.CoreLogTemplateLiteralCustomAction = CoreLogTemplateLiteralCustomAction;
@@ -7,20 +7,20 @@ exports.CoreNetworkRequestCustomAction = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const genericActionRenderer_1 = require("../genericActionRenderer");
9
9
  const ActionResultDisplay_1 = __importDefault(require("../genericActionRenderer/ActionResultDisplay"));
10
- const CoreNetworkRequestCustomAction = ({ historyItem, expanded }) => {
11
- if (!historyItem.act.payload) {
10
+ const CoreNetworkRequestCustomAction = ({ action, result, expanded }) => {
11
+ if (!action.payload) {
12
12
  return null;
13
13
  }
14
14
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("pre", Object.assign({ style: genericActionRenderer_1.genericFunctionRendererStyles.pre }, { children: (0, jsx_runtime_1.jsx)(genericActionRenderer_1.GenericFunctionRenderer, { functionName: 'askNetworkRequest', args: [
15
- historyItem.act.payload.method,
16
- historyItem.act.payload.url,
15
+ action.payload.method,
16
+ action.payload.url,
17
17
  {
18
- body: historyItem.act.payload.body,
19
- headers: historyItem.act.payload.headers,
20
- basePath: historyItem.act.payload.basePath,
21
- params: historyItem.act.payload.params,
22
- responseType: historyItem.act.payload.responseType,
18
+ body: action.payload.body,
19
+ headers: action.payload.headers,
20
+ basePath: action.payload.basePath,
21
+ params: action.payload.params,
22
+ responseType: action.payload.responseType,
23
23
  },
24
- ], tooltipMap: ['method', 'url', 'httpRequestOptions'], expanded: expanded }) })), (0, jsx_runtime_1.jsx)(ActionResultDisplay_1.default, { historyItem: historyItem, expanded: expanded })] }));
24
+ ], tooltipMap: ['method', 'url', 'httpRequestOptions'], expanded: expanded }) })), (0, jsx_runtime_1.jsx)(ActionResultDisplay_1.default, { action: action, result: result, expanded: expanded })] }));
25
25
  };
26
26
  exports.CoreNetworkRequestCustomAction = CoreNetworkRequestCustomAction;
@@ -1,3 +1,4 @@
1
+ export * from './CoreContextListCustomAction';
1
2
  export * from './CoreLogCreateCustomAction';
2
3
  export * from './CoreLogDisableEventHistoryCustomAction';
3
4
  export * from './CoreLogTemplateLiteralCustomAction';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CoreContextListCustomAction"), exports);
17
18
  __exportStar(require("./CoreLogCreateCustomAction"), exports);
18
19
  __exportStar(require("./CoreLogDisableEventHistoryCustomAction"), exports);
19
20
  __exportStar(require("./CoreLogTemplateLiteralCustomAction"), exports);
@@ -0,0 +1,3 @@
1
+ import { ActionComponent } from '../../types';
2
+ declare const coreContextActionComponentMap: Record<string, ActionComponent>;
3
+ export default coreContextActionComponentMap;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
4
+ const custom_1 = require("../../custom");
5
+ const coreContextActionComponentMap = {
6
+ [quidproquo_core_1.ContextActionType.List]: custom_1.CoreContextListCustomAction,
7
+ };
8
+ exports.default = coreContextActionComponentMap;
@@ -1,4 +1,4 @@
1
1
  declare const _default: {
2
- [x: string]: import("../..").ActionComponent<any>;
2
+ [x: string]: import("../..").ActionComponent<any, any>;
3
3
  };
4
4
  export default _default;
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const coreContextActionComponentMap_1 = __importDefault(require("./coreContextActionComponentMap"));
6
7
  const coreLogActionComponentMap_1 = __importDefault(require("./coreLogActionComponentMap"));
7
8
  const coreNetworkActionComponentMap_1 = __importDefault(require("./coreNetworkActionComponentMap"));
8
- exports.default = Object.assign(Object.assign({}, coreNetworkActionComponentMap_1.default), coreLogActionComponentMap_1.default);
9
+ exports.default = Object.assign(Object.assign(Object.assign({}, coreNetworkActionComponentMap_1.default), coreLogActionComponentMap_1.default), coreContextActionComponentMap_1.default);
@@ -1,4 +1,4 @@
1
1
  declare const _default: {
2
- [x: string]: import("..").ActionComponent<any>;
2
+ [x: string]: import("..").ActionComponent<any, any>;
3
3
  };
4
4
  export default _default;
@@ -3,10 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const AnyVariableView_1 = require("./AnyVariableView");
5
5
  const AnyVariableView_2 = require("./AnyVariableView");
6
- const ActionResultDisplay = ({ historyItem, expanded }) => {
7
- const result = historyItem.res || [];
8
- const successResult = result[0];
9
- const errorResult = result[1];
6
+ const ActionResultDisplay = ({ result, expanded }) => {
7
+ const [successResult, errorResult] = result || [];
10
8
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [successResult !== undefined && !errorResult && ((0, jsx_runtime_1.jsxs)("pre", Object.assign({ style: AnyVariableView_1.genericFunctionRendererStyles.pre }, { children: [(0, jsx_runtime_1.jsx)("span", { children: "Result: " }), (0, jsx_runtime_1.jsx)(AnyVariableView_2.AnyVariableView, { value: successResult, expanded: expanded })] }))), errorResult !== undefined && ((0, jsx_runtime_1.jsx)("pre", Object.assign({ style: AnyVariableView_1.genericFunctionRendererStyles.pre }, { children: (0, jsx_runtime_1.jsx)(AnyVariableView_2.AnyVariableView, { value: errorResult, expanded: expanded }) })))] }));
11
9
  };
12
10
  // Make sure to export ActionResultDisplay if it's defined in a separate file
@@ -89,7 +89,7 @@ const ObjectVariableView = ({ value, expanded }) => {
89
89
  }
90
90
  const cleanObject = JSON.parse(JSON.stringify(value));
91
91
  const cleanObjectKeys = Object.keys(cleanObject);
92
- return !expanded ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: '{ ' }), cleanObjectKeys.join(', '), (0, jsx_runtime_1.jsx)("span", { children: ' }' })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: '{ ' }), (0, jsx_runtime_1.jsx)("div", Object.assign({ style: { paddingLeft: 10 } }, { children: cleanObjectKeys.map((key, index) => ((0, jsx_runtime_1.jsxs)("div", { children: [key, ": ", (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { value: cleanObject[key], expanded: expanded }), ","] }, key))) })), (0, jsx_runtime_1.jsx)("span", { children: '}' })] }));
92
+ return !expanded ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: '{ ' }), cleanObjectKeys.map((key, index) => ((0, jsx_runtime_1.jsxs)("span", { children: [key, Array.isArray(cleanObject[key]) && !expanded && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: ":" }), " ", (0, jsx_runtime_1.jsx)(exports.ArrayVariableView, { value: cleanObject[key], expanded: false })] })), index < cleanObjectKeys.length - 1 && ', '] }, key))), (0, jsx_runtime_1.jsx)("span", { children: ' }' })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: '{ ' }), (0, jsx_runtime_1.jsx)("div", Object.assign({ style: { paddingLeft: 10 } }, { children: cleanObjectKeys.map((key, index) => ((0, jsx_runtime_1.jsxs)("div", { children: [key, ": ", (0, jsx_runtime_1.jsx)(exports.AnyVariableView, { value: cleanObject[key], expanded: expanded }), ","] }, key))) })), (0, jsx_runtime_1.jsx)("span", { children: '}' })] }));
93
93
  };
94
94
  exports.ObjectVariableView = ObjectVariableView;
95
95
  // Helper function to style values based on their type
@@ -7,9 +7,9 @@ exports.getGenericActionRenderer = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const ActionResultDisplay_1 = __importDefault(require("./ActionResultDisplay"));
9
9
  const AnyVariableView_1 = require("./AnyVariableView"); // Assuming this is the correct path
10
- const getGenericActionRenderer = (functionName, argMap, tooltipMap = argMap) => ({ historyItem, expanded }) => {
11
- const anyPayload = historyItem.act.payload;
10
+ const getGenericActionRenderer = (functionName, argMap, tooltipMap = argMap) => ({ action, expanded, result }) => {
11
+ const anyPayload = action.payload;
12
12
  const args = argMap.reduce((acc, arg) => (Object.assign(Object.assign({}, acc), { [arg]: anyPayload[arg] })), {});
13
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("pre", Object.assign({ style: AnyVariableView_1.genericFunctionRendererStyles.pre }, { children: (0, jsx_runtime_1.jsx)(AnyVariableView_1.GenericFunctionRenderer, { functionName: functionName, args: args, tooltipMap: tooltipMap, expanded: expanded }) })), (0, jsx_runtime_1.jsx)(ActionResultDisplay_1.default, { historyItem: historyItem, expanded: expanded })] }));
13
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("pre", Object.assign({ style: AnyVariableView_1.genericFunctionRendererStyles.pre }, { children: (0, jsx_runtime_1.jsx)(AnyVariableView_1.GenericFunctionRenderer, { functionName: functionName, args: args, tooltipMap: tooltipMap, expanded: expanded }) })), (0, jsx_runtime_1.jsx)(ActionResultDisplay_1.default, { action: action, result: result, expanded: expanded })] }));
14
14
  };
15
15
  exports.getGenericActionRenderer = getGenericActionRenderer;
@@ -1,7 +1,8 @@
1
- import { ActionHistory } from 'quidproquo-core';
1
+ import { Action, ActionProcessorResult } from 'quidproquo-core';
2
2
  import { FC } from 'react';
3
- export type ActionComponentProps<T = any> = {
4
- historyItem: ActionHistory<T>;
3
+ export type ActionComponentProps<T = any, R = any> = {
4
+ action: Action<T>;
5
+ result: ActionProcessorResult<R>;
5
6
  expanded: boolean;
6
7
  };
7
- export type ActionComponent<T = any> = FC<ActionComponentProps<T>>;
8
+ export type ActionComponent<T = any, R = any> = FC<ActionComponentProps<T, R>>;
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreConfigActionComponentMap = {
4
- ['@quidproquo-core/Config/GetApplicationInfo']: ['askConfigGetApplicationInfo'],
5
- ['@quidproquo-core/Config/GetGlobal']: ['askConfigGetGlobal', 'globalName'],
6
- ['@quidproquo-core/Config/GetParameter']: ['askConfigGetParameter', 'parameterName'],
7
- ['@quidproquo-core/Config/GetParameters']: ['askConfigGetParameters', 'parameterNames'],
8
- ['@quidproquo-core/Config/GetSecret']: ['askConfigGetSecret', 'secretName'],
9
- ['@quidproquo-core/Config/SetParameter']: ['askConfigSetParameter', 'parameterName', 'parameterValue'],
5
+ [quidproquo_core_1.ConfigActionType.GetApplicationInfo]: ['askConfigGetApplicationInfo'],
6
+ [quidproquo_core_1.ConfigActionType.GetGlobal]: ['askConfigGetGlobal', 'globalName'],
7
+ [quidproquo_core_1.ConfigActionType.GetParameter]: ['askConfigGetParameter', 'parameterName'],
8
+ [quidproquo_core_1.ConfigActionType.GetParameters]: ['askConfigGetParameters', 'parameterNames'],
9
+ [quidproquo_core_1.ConfigActionType.GetSecret]: ['askConfigGetSecret', 'secretName'],
10
+ [quidproquo_core_1.ConfigActionType.SetParameter]: ['askConfigSetParameter', 'parameterName', 'parameterValue'],
10
11
  };
11
12
  exports.default = coreConfigActionComponentMap;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreContextActionComponentMap = {
4
- ['@quidproquo-core/Context/Read']: ['askContextRead', 'contextIdentifier'],
5
+ [quidproquo_core_1.ContextActionType.Read]: ['askContextRead', 'contextIdentifier'],
5
6
  };
6
7
  exports.default = coreContextActionComponentMap;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreDateActionComponentMap = {
4
- ['@quidproquo-core/Date/Now']: ['askDateNow'],
5
+ [quidproquo_core_1.DateActionType.Now]: ['askDateNow'],
5
6
  };
6
7
  exports.default = coreDateActionComponentMap;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreErrorActionComponentMap = {
4
- ['@quidproquo-core/error/ThrowError']: ['askThrowError', 'errorType', 'errorText', 'errorStack'],
5
+ [quidproquo_core_1.ErrorActionType.ThrowError]: ['askThrowError', 'errorType', 'errorText', 'errorStack'],
5
6
  };
6
7
  exports.default = coreErrorActionComponentMap;
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreEventActionComponentMap = {
4
- ['@quidproquo-core/event/TransformEventParams']: ['askEventTransformEventParams', 'eventParams'],
5
- ['@quidproquo-core/event/TransformResponseResult']: ['askEventTransformResponseResult', 'response', 'transformedEventParams'],
6
- ['@quidproquo-core/event/AutoRespond']: ['askEventAutoRespond', 'transformedEventParams', 'matchResult'],
7
- ['@quidproquo-core/event/MatchStory']: ['askEventMatchStory', 'transformedEventParams'],
5
+ [quidproquo_core_1.EventActionType.TransformEventParams]: ['askEventTransformEventParams', 'eventParams'],
6
+ [quidproquo_core_1.EventActionType.TransformResponseResult]: ['askEventTransformResponseResult', 'qpqEventRecordResponses', 'eventParams'],
7
+ [quidproquo_core_1.EventActionType.AutoRespond]: ['askEventAutoRespond', 'qpqEventRecord', 'matchResult'],
8
+ [quidproquo_core_1.EventActionType.MatchStory]: ['askEventMatchStory', 'qpqEventRecord', 'eventParams'],
9
+ [quidproquo_core_1.EventActionType.GetRecords]: ['askEventGetRecords', 'eventParams'],
8
10
  };
9
11
  exports.default = coreEventActionComponentMap;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreEventBusActionComponentMap = {
4
- ['@quidproquo-core/EventBus/SendMessage']: ['askEventBusSendMessages', 'eventBusSendMessageOptions'],
5
+ [quidproquo_core_1.EventBusActionType.SendMessages]: ['askEventBusSendMessages', 'eventBusSendMessageOptions'],
5
6
  };
6
7
  exports.default = coreEventBusActionComponentMap;
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreFileActionComponentMap = {
4
- ['@quidproquo-core/File/ReadTextContents']: ['askFileReadTextContents', 'drive', 'filepath'],
5
- ['@quidproquo-core/File/WriteTextContents']: ['askFileWriteTextContents', 'drive', 'filepath', 'data', 'storageDriveAdvancedWriteOptions'],
6
- ['@quidproquo-core/File/ListDirectory']: ['askFileListDirectory', 'drive', 'folderPath', 'maxFiles', 'pageToken'],
7
- ['@quidproquo-core/File/Exists']: ['askFileExists', 'drive', 'filepath'],
8
- ['@quidproquo-core/File/Delete']: ['askFileDelete', 'drive', 'filepaths'],
9
- ['@quidproquo-core/File/ReadBinaryContents']: ['askFileReadBinaryContents', 'drive', 'filepath'],
10
- ['@quidproquo-core/File/WriteBinaryContents']: ['askFileWriteBinaryContents', 'drive', 'filepath', 'data', 'storageDriveAdvancedWriteOptions'],
11
- ['@quidproquo-core/File/GenerateTemporarySecureUrl']: ['askFileGenerateTemporarySecureUrl', 'drive', 'filepath', 'expirationMs'],
5
+ [quidproquo_core_1.FileActionType.ReadTextContents]: ['askFileReadTextContents', 'drive', 'filepath'],
6
+ [quidproquo_core_1.FileActionType.WriteTextContents]: ['askFileWriteTextContents', 'drive', 'filepath', 'data', 'storageDriveAdvancedWriteOptions'],
7
+ [quidproquo_core_1.FileActionType.ListDirectory]: ['askFileListDirectory', 'drive', 'folderPath', 'maxFiles', 'pageToken'],
8
+ [quidproquo_core_1.FileActionType.Exists]: ['askFileExists', 'drive', 'filepath'],
9
+ [quidproquo_core_1.FileActionType.Delete]: ['askFileDelete', 'drive', 'filepaths'],
10
+ [quidproquo_core_1.FileActionType.ReadBinaryContents]: ['askFileReadBinaryContents', 'drive', 'filepath'],
11
+ [quidproquo_core_1.FileActionType.WriteBinaryContents]: ['askFileWriteBinaryContents', 'drive', 'filepath', 'data', 'storageDriveAdvancedWriteOptions'],
12
+ [quidproquo_core_1.FileActionType.GenerateTemporarySecureUrl]: ['askFileGenerateTemporarySecureUrl', 'drive', 'filepath', 'expirationMs'],
12
13
  };
13
14
  exports.default = coreFileActionComponentMap;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreGuidActionComponentMap = {
4
- ['@quidproquo-core/Guid/New']: ['askNewGuid'],
5
+ [quidproquo_core_1.GuidActionType.New]: ['askNewGuid'],
6
+ [quidproquo_core_1.GuidActionType.NewSortable]: ['askNewSortableGuid'],
5
7
  };
6
8
  exports.default = coreGuidActionComponentMap;
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.coreKeyValueStoreActionComponentMap = void 0;
4
+ const quidproquo_core_1 = require("quidproquo-core");
4
5
  exports.coreKeyValueStoreActionComponentMap = {
5
- ['@quidproquo-core/KeyValueStore/Query']: ['askKeyValueStoreQuery', 'keyValueStoreName', 'keyCondition', 'options'],
6
- ['@quidproquo-core/KeyValueStore/Upsert']: ['askKeyValueStoreUpsert', 'keyValueStoreName', 'item', 'options'],
6
+ [quidproquo_core_1.KeyValueStoreActionType.Query]: ['askKeyValueStoreQuery', 'keyValueStoreName', 'keyCondition', 'options'],
7
+ [quidproquo_core_1.KeyValueStoreActionType.Upsert]: ['askKeyValueStoreUpsert', 'keyValueStoreName', 'item', 'options'],
7
8
  };
8
9
  exports.default = exports.coreKeyValueStoreActionComponentMap;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreMathActionComponentMap = {
4
- ['@quidproquo-core/Math/RandomNumber']: ['askRandomNumber'],
5
+ [quidproquo_core_1.MathActionType.RandomNumber]: ['askRandomNumber'],
5
6
  };
6
7
  exports.default = coreMathActionComponentMap;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const corePlatformActionComponentMap = {
4
- ['@quidproquo-core/Platform/Delay']: ['askDelay', 'timeMs'],
5
+ [quidproquo_core_1.PlatformActionType.Delay]: ['askDelay', 'timeMs'],
5
6
  };
6
7
  exports.default = corePlatformActionComponentMap;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreQueueActionComponentMap = {
4
- ['@quidproquo-core/Queue/SendMessage']: ['askQueueSendMessages', 'queueName', 'queueMessages'],
5
+ [quidproquo_core_1.QueueActionType.SendMessages]: ['askQueueSendMessages', 'queueName', 'queueMessages'],
5
6
  };
6
7
  exports.default = coreQueueActionComponentMap;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const quidproquo_core_1 = require("quidproquo-core");
3
4
  const coreSystemActionComponentMap = {
4
- ['@quidproquo-core/System/Batch']: ['askBatch', 'actions'],
5
- ['@quidproquo-core/System/ExecuteStory']: ['askExecuteStory', 'type', 'src', 'runtime', 'params'],
5
+ [quidproquo_core_1.SystemActionType.Batch]: ['askBatch', 'actions'],
6
+ [quidproquo_core_1.SystemActionType.ExecuteStory]: ['askExecuteStory', 'runtime', 'params', 'storySession'],
6
7
  };
7
8
  exports.default = coreSystemActionComponentMap;