quidproquo-core 0.0.16 → 0.0.18

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 (43) hide show
  1. package/lib/actions/date/DateActionRequester.d.ts +2 -6
  2. package/lib/actions/date/DateActionTypes.d.ts +8 -0
  3. package/lib/{types/ActionPayload.js → actions/date/DateActionTypes.js} +0 -0
  4. package/lib/actions/date/index.d.ts +3 -0
  5. package/lib/actions/date/index.js +19 -0
  6. package/lib/actions/event/EventActionRequester.d.ts +5 -30
  7. package/lib/actions/event/EventActionTypes.d.ts +30 -0
  8. package/lib/actions/event/EventActionTypes.js +2 -0
  9. package/lib/actions/event/index.d.ts +3 -0
  10. package/lib/actions/event/index.js +19 -0
  11. package/lib/actions/guid/GuidActionRequester.d.ts +2 -6
  12. package/lib/actions/guid/GuidActionRequesterTypes.d.ts +8 -0
  13. package/lib/actions/guid/GuidActionRequesterTypes.js +2 -0
  14. package/lib/actions/guid/index.d.ts +3 -0
  15. package/lib/actions/guid/index.js +19 -0
  16. package/lib/actions/index.d.ts +6 -0
  17. package/lib/actions/index.js +22 -0
  18. package/lib/actions/math/MathActionRequester.d.ts +2 -6
  19. package/lib/actions/math/MathActionRequesterTypes.d.ts +8 -0
  20. package/lib/actions/math/MathActionRequesterTypes.js +2 -0
  21. package/lib/actions/math/index.d.ts +3 -0
  22. package/lib/actions/math/index.js +19 -0
  23. package/lib/actions/platform/PlatformActionRequester.d.ts +2 -9
  24. package/lib/actions/platform/PlatformActionRequesterTypes.d.ts +9 -0
  25. package/lib/actions/platform/PlatformActionRequesterTypes.js +2 -0
  26. package/lib/actions/platform/index.d.ts +3 -0
  27. package/lib/actions/platform/index.js +19 -0
  28. package/lib/actions/system/SystemActionRequester.d.ts +4 -16
  29. package/lib/actions/system/SystemActionRequester.js +1 -1
  30. package/lib/actions/system/SystemActionTypes.d.ts +19 -0
  31. package/lib/actions/system/SystemActionTypes.js +2 -0
  32. package/lib/actions/system/index.d.ts +3 -0
  33. package/lib/actions/system/index.js +19 -0
  34. package/lib/index.d.ts +2 -6
  35. package/lib/index.js +6 -16
  36. package/lib/stories/askProcessEvent.d.ts +1 -2
  37. package/lib/stories/askProcessEvent.js +3 -2
  38. package/lib/types/Action.d.ts +3 -0
  39. package/lib/types/Action.js +2 -0
  40. package/lib/types/StorySession.d.ts +2 -0
  41. package/lib/types/StorySession.js +2 -0
  42. package/package.json +1 -1
  43. package/lib/types/ActionPayload.d.ts +0 -3
@@ -1,6 +1,2 @@
1
- import DateActionTypeEnum from './DateActionTypeEnum';
2
- import { ActionPayload } from '../../types/ActionPayload';
3
- export interface DateNowActionPayload extends ActionPayload {
4
- type: DateActionTypeEnum.Now;
5
- }
6
- export declare function askDateNow(): Generator<DateNowActionPayload, string, string>;
1
+ import { DateNowAction } from './DateActionTypes';
2
+ export declare function askDateNow(): Generator<DateNowAction, string, string>;
@@ -0,0 +1,8 @@
1
+ import DateActionTypeEnum from './DateActionTypeEnum';
2
+ import { Action } from '../../types/Action';
3
+ export interface DateNowActionPayload {
4
+ }
5
+ export interface DateNowAction extends Action {
6
+ type: DateActionTypeEnum.Now;
7
+ payload?: DateNowActionPayload;
8
+ }
@@ -0,0 +1,3 @@
1
+ export * from './DateActionRequester';
2
+ export * from './DateActionTypeEnum';
3
+ export * from './DateActionTypes';
@@ -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("./DateActionRequester"), exports);
18
+ __exportStar(require("./DateActionTypeEnum"), exports);
19
+ __exportStar(require("./DateActionTypes"), exports);
@@ -1,30 +1,5 @@
1
- import EventActionTypeEnum from './EventActionTypeEnum';
2
- import { ActionPayload } from '../../types/ActionPayload';
3
- export interface EventTransformEventParamsActionPayload extends ActionPayload {
4
- type: EventActionTypeEnum.TransformEventParams;
5
- payload: {
6
- eventParams: any[];
7
- };
8
- }
9
- export declare function askEventTransformEventParams(...eventParams: any): Generator<EventTransformEventParamsActionPayload>;
10
- export interface EventTransformResponseResultActionPayload extends ActionPayload {
11
- type: EventActionTypeEnum.TransformResponseResult;
12
- payload: {
13
- response: any;
14
- };
15
- }
16
- export declare function askEventTransformResponseResult(response: any): Generator<EventTransformResponseResultActionPayload>;
17
- export interface EventMatchStoryActionPayload extends ActionPayload {
18
- type: EventActionTypeEnum.MatchStory;
19
- payload: {
20
- transformedEventParams: any;
21
- };
22
- }
23
- export declare function askEventMatchStory(transformedEventParams: any): Generator<EventMatchStoryActionPayload>;
24
- export interface EventAutoRespondActionPayload extends ActionPayload {
25
- type: EventActionTypeEnum.AutoRespond;
26
- payload: {
27
- transformedEventParams: any;
28
- };
29
- }
30
- export declare function askEventAutoRespond(transformedEventParams: any): Generator<EventAutoRespondActionPayload>;
1
+ import { EventTransformEventParamsAction, EventTransformResponseResultAction, EventMatchStoryAction, EventAutoRespondAction } from './EventActionTypes';
2
+ export declare function askEventTransformEventParams<T extends Array<unknown>>(...eventParams: T): Generator<EventTransformEventParamsAction<T>>;
3
+ export declare function askEventTransformResponseResult(response: any): Generator<EventTransformResponseResultAction>;
4
+ export declare function askEventMatchStory<T>(transformedEventParams: any): Generator<EventMatchStoryAction<T>>;
5
+ export declare function askEventAutoRespond<T>(transformedEventParams: any): Generator<EventAutoRespondAction<T>>;
@@ -0,0 +1,30 @@
1
+ import EventActionTypeEnum from './EventActionTypeEnum';
2
+ import { Action } from '../../types/Action';
3
+ export interface EventTransformEventParamsActionPayload<T extends Array<unknown>> {
4
+ eventParams: T;
5
+ }
6
+ export interface EventTransformEventParamsAction<T extends Array<unknown>> extends Action {
7
+ type: EventActionTypeEnum.TransformEventParams;
8
+ payload: EventTransformEventParamsActionPayload<T>;
9
+ }
10
+ export interface EventTransformResponseResultActionPayload {
11
+ response: any;
12
+ }
13
+ export interface EventTransformResponseResultAction extends Action {
14
+ type: EventActionTypeEnum.TransformResponseResult;
15
+ payload: EventTransformResponseResultActionPayload;
16
+ }
17
+ export interface EventMatchStoryActionPayload<T> {
18
+ transformedEventParams: T;
19
+ }
20
+ export interface EventMatchStoryAction<T> extends Action {
21
+ type: EventActionTypeEnum.MatchStory;
22
+ payload: EventMatchStoryActionPayload<T>;
23
+ }
24
+ export interface EventAutoRespondActionPayload<T> {
25
+ transformedEventParams: T;
26
+ }
27
+ export interface EventAutoRespondAction<T> extends Action {
28
+ type: EventActionTypeEnum.AutoRespond;
29
+ payload: EventAutoRespondActionPayload<T>;
30
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './EventActionRequester';
2
+ export * from './EventActionTypeEnum';
3
+ export * from './EventActionTypes';
@@ -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("./EventActionRequester"), exports);
18
+ __exportStar(require("./EventActionTypeEnum"), exports);
19
+ __exportStar(require("./EventActionTypes"), exports);
@@ -1,6 +1,2 @@
1
- import GuidActionTypeEnum from './GuidActionTypeEnum';
2
- import { ActionPayload } from '../../types/ActionPayload';
3
- export interface GuidNewActionPayload extends ActionPayload {
4
- type: GuidActionTypeEnum.New;
5
- }
6
- export declare function askNewGuid(): Generator<GuidNewActionPayload, string, string>;
1
+ import { GuidNewAction } from './GuidActionRequesterTypes';
2
+ export declare function askNewGuid(): Generator<GuidNewAction, string, string>;
@@ -0,0 +1,8 @@
1
+ import GuidActionTypeEnum from './GuidActionTypeEnum';
2
+ import { Action } from '../../types/Action';
3
+ export interface GuidNewActionPayload {
4
+ }
5
+ export interface GuidNewAction extends Action {
6
+ type: GuidActionTypeEnum.New;
7
+ payload?: GuidNewActionPayload;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './GuidActionRequester';
2
+ export * from './GuidActionTypeEnum';
3
+ export * from './GuidActionRequesterTypes';
@@ -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("./GuidActionRequester"), exports);
18
+ __exportStar(require("./GuidActionTypeEnum"), exports);
19
+ __exportStar(require("./GuidActionRequesterTypes"), exports);
@@ -0,0 +1,6 @@
1
+ export * from './date';
2
+ export * from './event';
3
+ export * from './guid';
4
+ export * from './math';
5
+ export * from './platform';
6
+ export * from './system';
@@ -0,0 +1,22 @@
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("./date"), exports);
18
+ __exportStar(require("./event"), exports);
19
+ __exportStar(require("./guid"), exports);
20
+ __exportStar(require("./math"), exports);
21
+ __exportStar(require("./platform"), exports);
22
+ __exportStar(require("./system"), exports);
@@ -1,6 +1,2 @@
1
- import MathActionTypeEnum from './MathActionTypeEnum';
2
- import { ActionPayload } from '../../types/ActionPayload';
3
- export interface MathRandomNumberActionPayload extends ActionPayload {
4
- type: MathActionTypeEnum.RandomNumber;
5
- }
6
- export declare function askRandomNumber(): Generator<MathRandomNumberActionPayload, number, number>;
1
+ import { MathRandomNumberAction } from './MathActionRequesterTypes';
2
+ export declare function askRandomNumber(): Generator<MathRandomNumberAction, number, number>;
@@ -0,0 +1,8 @@
1
+ import MathActionTypeEnum from './MathActionTypeEnum';
2
+ import { Action } from '../../types/Action';
3
+ export interface MathRandomNumberActionPayload {
4
+ }
5
+ export interface MathRandomNumberAction extends Action {
6
+ type: MathActionTypeEnum.RandomNumber;
7
+ payload?: MathRandomNumberActionPayload;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './MathActionRequester';
2
+ export * from './MathActionTypeEnum';
3
+ export * from './MathActionRequesterTypes';
@@ -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("./MathActionRequester"), exports);
18
+ __exportStar(require("./MathActionTypeEnum"), exports);
19
+ __exportStar(require("./MathActionRequesterTypes"), exports);
@@ -1,9 +1,2 @@
1
- import PlatformActionTypeEnum from './PlatformActionTypeEnum';
2
- import { ActionPayload } from '../../types/ActionPayload';
3
- export interface PlatformDelayActionPayload extends ActionPayload {
4
- type: PlatformActionTypeEnum.Delay;
5
- payload: {
6
- timeMs: number;
7
- };
8
- }
9
- export declare function askDelay(timeMs: number): Generator<PlatformDelayActionPayload, void, void>;
1
+ import { PlatformDelayAction } from './PlatformActionRequesterTypes';
2
+ export declare function askDelay(timeMs: number): Generator<PlatformDelayAction, void, void>;
@@ -0,0 +1,9 @@
1
+ import PlatformActionTypeEnum from './PlatformActionTypeEnum';
2
+ import { Action } from '../../types/Action';
3
+ export interface PlatformDelayActionPayload {
4
+ timeMs: number;
5
+ }
6
+ export interface PlatformDelayAction extends Action {
7
+ type: PlatformActionTypeEnum.Delay;
8
+ payload: PlatformDelayActionPayload;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './PlatformActionRequester';
2
+ export * from './PlatformActionTypeEnum';
3
+ export * from './PlatformActionRequesterTypes';
@@ -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("./PlatformActionRequester"), exports);
18
+ __exportStar(require("./PlatformActionTypeEnum"), exports);
19
+ __exportStar(require("./PlatformActionRequesterTypes"), exports);
@@ -1,17 +1,5 @@
1
- import SystemActionTypeEnum from './SystemActionTypeEnum';
2
- import { ActionPayload } from '../../types/ActionPayload';
3
- export interface SystemBatchActionPayload extends ActionPayload {
4
- type: SystemActionTypeEnum.Batch;
5
- payload: {
6
- actions: ActionPayload[];
7
- };
8
- }
9
- export declare function askBatch(actions: ActionPayload[]): Generator<SystemBatchActionPayload, any[], any[]>;
10
- export interface SystemExecuteStoryActionPayload extends ActionPayload {
11
- type: SystemActionTypeEnum.Batch;
12
- payload: {
13
- actions: ActionPayload[];
14
- };
15
- }
16
- export declare function askExecuteStory(type: string, src: string, runtime: string, ...params: any): Generator<any, any, any>;
1
+ import { SystemBatchAction, SystemExecuteStoryAction } from './SystemActionTypes';
2
+ import { Action } from '../../types/Action';
3
+ export declare function askBatch(actions: Action[]): Generator<SystemBatchAction, any[], any[]>;
4
+ export declare function askExecuteStory<T extends Array<any>>(type: string, src: string, runtime: string, params: T): Generator<SystemExecuteStoryAction<T>, any, any>;
17
5
  export declare function askParallel(stories: Array<any>): Generator<any, any, any>;
@@ -12,7 +12,7 @@ function* askBatch(actions) {
12
12
  return yield { type: SystemActionTypeEnum_1.default.Batch, payload: { actions } };
13
13
  }
14
14
  exports.askBatch = askBatch;
15
- function* askExecuteStory(type, src, runtime, ...params) {
15
+ function* askExecuteStory(type, src, runtime, params) {
16
16
  return yield {
17
17
  type: SystemActionTypeEnum_1.default.ExecuteStory,
18
18
  payload: {
@@ -0,0 +1,19 @@
1
+ import SystemActionTypeEnum from './SystemActionTypeEnum';
2
+ import { Action } from '../../types/Action';
3
+ export interface SystemBatchActionPayload {
4
+ actions: Action[];
5
+ }
6
+ export interface SystemBatchAction extends Action {
7
+ type: SystemActionTypeEnum.Batch;
8
+ payload: SystemBatchActionPayload;
9
+ }
10
+ export interface SystemExecuteStoryActionPayload<T extends Array<any>> {
11
+ type: string;
12
+ src: string;
13
+ runtime: string;
14
+ params: T;
15
+ }
16
+ export interface SystemExecuteStoryAction<T extends Array<any>> extends Action {
17
+ type: SystemActionTypeEnum.ExecuteStory;
18
+ payload: SystemExecuteStoryActionPayload<T>;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './SystemActionRequester';
2
+ export * from './SystemActionTypeEnum';
3
+ export * from './SystemActionTypes';
@@ -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("./SystemActionRequester"), exports);
18
+ __exportStar(require("./SystemActionTypeEnum"), exports);
19
+ __exportStar(require("./SystemActionTypes"), exports);
package/lib/index.d.ts CHANGED
@@ -1,11 +1,7 @@
1
- export { DateActionTypeEnum } from './actions/date/DateActionTypeEnum';
2
- export { GuidActionTypeEnum } from './actions/guid/GuidActionTypeEnum';
3
- export { EventActionTypeEnum } from './actions/event/EventActionTypeEnum';
4
- export { MathActionTypeEnum } from './actions/math/MathActionTypeEnum';
5
- export { PlatformActionTypeEnum } from './actions/platform/PlatformActionTypeEnum';
6
- export { SystemActionTypeEnum } from './actions/system/SystemActionTypeEnum';
1
+ export * from './actions';
7
2
  export { defineAppName, AppNameQPQConfigSetting } from './config/settings/appName';
8
3
  export { QPQCoreConfigSettingType, QPQConfigSetting, QPQConfig } from './config/QPQConfig';
9
4
  export * as qpqCoreUtils from './qpqCoreUtils';
10
5
  export * from './stories';
11
6
  export { resolveStory } from './actionProcessor';
7
+ export * from './types/StorySession';
package/lib/index.js CHANGED
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
18
21
  var __importStar = (this && this.__importStar) || function (mod) {
19
22
  if (mod && mod.__esModule) return mod;
20
23
  var result = {};
@@ -22,23 +25,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
25
  __setModuleDefault(result, mod);
23
26
  return result;
24
27
  };
25
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
- };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.resolveStory = exports.qpqCoreUtils = exports.QPQCoreConfigSettingType = exports.defineAppName = exports.SystemActionTypeEnum = exports.PlatformActionTypeEnum = exports.MathActionTypeEnum = exports.EventActionTypeEnum = exports.GuidActionTypeEnum = exports.DateActionTypeEnum = void 0;
30
- var DateActionTypeEnum_1 = require("./actions/date/DateActionTypeEnum");
31
- Object.defineProperty(exports, "DateActionTypeEnum", { enumerable: true, get: function () { return DateActionTypeEnum_1.DateActionTypeEnum; } });
32
- var GuidActionTypeEnum_1 = require("./actions/guid/GuidActionTypeEnum");
33
- Object.defineProperty(exports, "GuidActionTypeEnum", { enumerable: true, get: function () { return GuidActionTypeEnum_1.GuidActionTypeEnum; } });
34
- var EventActionTypeEnum_1 = require("./actions/event/EventActionTypeEnum");
35
- Object.defineProperty(exports, "EventActionTypeEnum", { enumerable: true, get: function () { return EventActionTypeEnum_1.EventActionTypeEnum; } });
36
- var MathActionTypeEnum_1 = require("./actions/math/MathActionTypeEnum");
37
- Object.defineProperty(exports, "MathActionTypeEnum", { enumerable: true, get: function () { return MathActionTypeEnum_1.MathActionTypeEnum; } });
38
- var PlatformActionTypeEnum_1 = require("./actions/platform/PlatformActionTypeEnum");
39
- Object.defineProperty(exports, "PlatformActionTypeEnum", { enumerable: true, get: function () { return PlatformActionTypeEnum_1.PlatformActionTypeEnum; } });
40
- var SystemActionTypeEnum_1 = require("./actions/system/SystemActionTypeEnum");
41
- Object.defineProperty(exports, "SystemActionTypeEnum", { enumerable: true, get: function () { return SystemActionTypeEnum_1.SystemActionTypeEnum; } });
29
+ exports.resolveStory = exports.qpqCoreUtils = exports.QPQCoreConfigSettingType = exports.defineAppName = void 0;
30
+ __exportStar(require("./actions"), exports);
42
31
  var appName_1 = require("./config/settings/appName");
43
32
  Object.defineProperty(exports, "defineAppName", { enumerable: true, get: function () { return appName_1.defineAppName; } });
44
33
  var QPQConfig_1 = require("./config/QPQConfig");
@@ -47,3 +36,4 @@ exports.qpqCoreUtils = __importStar(require("./qpqCoreUtils"));
47
36
  __exportStar(require("./stories"), exports);
48
37
  var actionProcessor_1 = require("./actionProcessor");
49
38
  Object.defineProperty(exports, "resolveStory", { enumerable: true, get: function () { return actionProcessor_1.resolveStory; } });
39
+ __exportStar(require("./types/StorySession"), exports);
@@ -1,2 +1 @@
1
- declare function askProcessEvent(...args: any): Generator<any, any, any>;
2
- export default askProcessEvent;
1
+ export declare function askProcessEvent(...args: any): Generator<import("..").EventTransformResponseResultAction | import("..").EventTransformEventParamsAction<any> | import("..").EventAutoRespondAction<unknown> | import("..").EventMatchStoryAction<unknown> | import("..").SystemExecuteStoryAction<any[]>, any, any>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askProcessEvent = void 0;
3
4
  const EventActionRequester_1 = require("../actions/event/EventActionRequester");
4
5
  const SystemActionRequester_1 = require("../actions/system/SystemActionRequester");
5
6
  function* askProcessEvent(...args) {
@@ -14,8 +15,8 @@ function* askProcessEvent(...args) {
14
15
  // Try and match a story to execute
15
16
  const { src, runtime } = yield* (0, EventActionRequester_1.askEventMatchStory)(http);
16
17
  // Execute the story
17
- const result = yield* (0, SystemActionRequester_1.askExecuteStory)("route", src, runtime, [http]);
18
+ const result = yield* (0, SystemActionRequester_1.askExecuteStory)('route', src, runtime, [http]);
18
19
  // return the result of the story back to the event caller
19
20
  return yield* (0, EventActionRequester_1.askEventTransformResponseResult)(result);
20
21
  }
21
- exports.default = askProcessEvent;
22
+ exports.askProcessEvent = askProcessEvent;
@@ -0,0 +1,3 @@
1
+ export interface Action {
2
+ type: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export interface StorySession {
2
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-core",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.js",
@@ -1,3 +0,0 @@
1
- export interface ActionPayload {
2
- type: string;
3
- }