@vnejs/contracts.save 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ /** Commands owned by plugins.save */
2
+ export declare const SCENARIO_COMMANDS: {
3
+ readonly modules: {
4
+ readonly save: {
5
+ readonly actions: {
6
+ readonly KEY: "key";
7
+ };
8
+ };
9
+ };
10
+ };
11
+ export type ScenarioCommands = typeof SCENARIO_COMMANDS;
@@ -0,0 +1,9 @@
1
+ import { EXEC_ACTIONS } from "./const.js";
2
+ /** Commands owned by plugins.save */
3
+ export const SCENARIO_COMMANDS = {
4
+ modules: {
5
+ save: {
6
+ actions: EXEC_ACTIONS,
7
+ },
8
+ },
9
+ };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import type { ModuleGlobalState } from "@vnejs/module";
2
2
  import { CONSTANTS as StateConstants } from "@vnejs/contracts.core.state";
3
3
  import "@vnejs/module";
4
4
  import "@vnejs/shared";
5
+ import { SCENARIO_COMMANDS } from "./commands.js";
5
6
  import { CONSTANTS } from "./const.js";
6
7
  import { SUBSCRIBE_EVENTS } from "./events.js";
7
8
  import type { ModuleGlobalStateSaveKey } from "./module-global-state.js";
@@ -9,6 +10,8 @@ import { PARAMS } from "./params.js";
9
10
  export declare const PLUGIN_NAME: "SAVE";
10
11
  export type PluginName = typeof PLUGIN_NAME;
11
12
  export type { ModuleGlobalStateSaveKey } from "./module-global-state.js";
13
+ export { SCENARIO_COMMANDS };
14
+ export type { ScenarioCommands } from "./commands.js";
12
15
  export { CONSTANTS };
13
16
  export type { Constants } from "./const.js";
14
17
  export { SUBSCRIBE_EVENTS };
package/dist/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  import "@vnejs/module";
2
2
  import "@vnejs/shared";
3
+ import { SCENARIO_COMMANDS } from "./commands.js";
3
4
  import { CONSTANTS } from "./const.js";
4
5
  import { SUBSCRIBE_EVENTS } from "./events.js";
5
6
  import { PARAMS } from "./params.js";
6
7
  export const PLUGIN_NAME = "SAVE";
8
+ export { SCENARIO_COMMANDS };
7
9
  export { CONSTANTS };
8
10
  export { SUBSCRIBE_EVENTS };
9
11
  export { PARAMS };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/contracts.save",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Contracts for @vnejs/plugins.save",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,11 +26,13 @@
26
26
  "author": "",
27
27
  "license": "ISC",
28
28
  "peerDependencies": {
29
- "@vnejs/module": "~0.1.0",
30
- "@vnejs/contracts.core.state": "~0.1.0",
31
- "@vnejs/shared": "~0.1.0"
29
+ "@vnejs/contracts.core.scenario": "~0.2.0",
30
+ "@vnejs/module": "~0.2.0",
31
+ "@vnejs/contracts.core.state": "~0.2.0",
32
+ "@vnejs/shared": "~0.2.0"
32
33
  },
33
34
  "devDependencies": {
34
- "@vnejs/configs.ts-common": "~0.1.0"
35
+ "@vnejs/configs.ts-common": "~0.2.0",
36
+ "@vnejs/contracts.core.scenario": "~0.2.0"
35
37
  }
36
38
  }
@@ -0,0 +1,14 @@
1
+ import type { ScenarioCommandsManifest } from "@vnejs/contracts.core.scenario";
2
+
3
+ import { EXEC_ACTIONS } from "./const.js";
4
+
5
+ /** Commands owned by plugins.save */
6
+ export const SCENARIO_COMMANDS = {
7
+ modules: {
8
+ save: {
9
+ actions: EXEC_ACTIONS,
10
+ },
11
+ },
12
+ } as const satisfies ScenarioCommandsManifest;
13
+
14
+ export type ScenarioCommands = typeof SCENARIO_COMMANDS;
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ import { CONSTANTS as StateConstants } from "@vnejs/contracts.core.state";
4
4
  import "@vnejs/module";
5
5
  import "@vnejs/shared";
6
6
 
7
+ import { SCENARIO_COMMANDS } from "./commands.js";
7
8
  import { CONSTANTS } from "./const.js";
8
9
  import { SUBSCRIBE_EVENTS } from "./events.js";
9
10
  import type { ModuleGlobalStateSaveKey } from "./module-global-state.js";
@@ -13,6 +14,8 @@ export const PLUGIN_NAME = "SAVE" as const;
13
14
  export type PluginName = typeof PLUGIN_NAME;
14
15
 
15
16
  export type { ModuleGlobalStateSaveKey } from "./module-global-state.js";
17
+ export { SCENARIO_COMMANDS };
18
+ export type { ScenarioCommands } from "./commands.js";
16
19
  export { CONSTANTS };
17
20
  export type { Constants } from "./const.js";
18
21
  export { SUBSCRIBE_EVENTS };