zova-module-a-action 5.1.2 → 5.1.7

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,18 @@
1
+ /** monkey: begin */
2
+ export * from '../monkey.js';
3
+ /** monkey: end */
4
+ /** scope: begin */
5
+ import { BeanScopeBase, type BeanScopeUtil } from 'zova';
6
+ export declare class ScopeModuleAAction extends BeanScopeBase {
7
+ }
8
+ export interface ScopeModuleAAction {
9
+ util: BeanScopeUtil;
10
+ }
11
+ import 'zova';
12
+ declare module 'zova' {
13
+ interface IBeanScopeRecord {
14
+ 'a-action': ScopeModuleAAction;
15
+ }
16
+ }
17
+ /** scope: end */
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/.metadata/index.ts"],"names":[],"mappings":"AACA,oBAAoB;AACpB,cAAc,cAAc,CAAC;AAC7B,kBAAkB;AAClB,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,MAAM,CAAC;AAGzD,qBACa,kBAAmB,SAAQ,aAAa;CAAG;AAExD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,gBAAgB;QAC/B,UAAU,EAAE,kBAAkB,CAAC;KAChC;CAOF;AAED,iBAAiB"}
@@ -0,0 +1,3 @@
1
+ export declare const __ThisModule__ = "a-action";
2
+ export { ScopeModuleAAction as ScopeModule } from './index.js';
3
+ //# sourceMappingURL=this.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"this.d.ts","sourceRoot":"","sources":["../../src/.metadata/this.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,OAAO,EAAE,kBAAkB,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './.metadata/index.js';
2
+ export * from './lib/index.js';
3
+ export * from './types/index.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { PowerPartial } from 'zova';
2
+ import type { IDecoratorActionOptions } from '../types/action.js';
3
+ export declare function Action<T extends IDecoratorActionOptions>(options?: PowerPartial<T>): ClassDecorator;
4
+ //# sourceMappingURL=action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/lib/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAElE,wBAAgB,MAAM,CAAC,CAAC,SAAS,uBAAuB,EAAE,OAAO,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,cAAc,CAEnG"}
@@ -0,0 +1,3 @@
1
+ export * from './action.js';
2
+ export * from './performAction.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ZovaSys } from 'zova';
2
+ import type { IJsxRenderContextBase } from 'zova-module-a-openapi';
3
+ import type { IActionRecord, SymbolActionResult } from '../types/action.js';
4
+ export declare function $performAction<T extends keyof IActionRecord>(sys: ZovaSys, actionName: T, options: Partial<IActionRecord[T]> | undefined, renderContext: IJsxRenderContextBase, next?: Function): IActionRecord[T][typeof SymbolActionResult];
5
+ //# sourceMappingURL=performAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"performAction.d.ts","sourceRoot":"","sources":["../../src/lib/performAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAInE,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE5E,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,aAAa,EAC1D,GAAG,EAAE,OAAO,EACZ,UAAU,EAAE,CAAC,EACb,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,EAC9C,aAAa,EAAE,qBAAqB,EACpC,IAAI,CAAC,EAAE,QAAQ,GACd,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO,kBAAkB,CAAC,CAiB7C"}
@@ -0,0 +1,6 @@
1
+ import type { BeanBase, BeanContainer, IMonkeyBeanInit } from 'zova';
2
+ import { BeanSimple } from 'zova';
3
+ export declare class Monkey extends BeanSimple implements IMonkeyBeanInit {
4
+ beanInit(bean: BeanContainer, beanInstance: BeanBase): Promise<void>;
5
+ }
6
+ //# sourceMappingURL=monkey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monkey.d.ts","sourceRoot":"","sources":["../src/monkey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAGrE,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAMxC,qBAAa,MAAO,SAAQ,UAAW,YAAW,eAAe;IACzD,QAAQ,CAAC,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ;CAyB3D"}
@@ -0,0 +1,32 @@
1
+ import type { OmitNever } from 'zova';
2
+ import type { ServiceOnion } from 'zova-module-a-bean';
3
+ import type { IJsxRenderContextBase } from 'zova-module-a-openapi';
4
+ export declare const SymbolActionResult: unique symbol;
5
+ export type TypeActionOptionsRest<T> = Omit<T, typeof SymbolActionResult> & {
6
+ res?: string;
7
+ };
8
+ export type NextActionExecute = (res?: any) => any | Promise<any>;
9
+ export interface IActionsRecord {
10
+ }
11
+ export interface IActionRecord {
12
+ }
13
+ export interface IActionExecute {
14
+ execute(options: IDecoratorActionOptions, renderContext: IJsxRenderContextBase, next: NextActionExecute): any | Promise<any>;
15
+ }
16
+ export interface IDecoratorActionOptions<Result = any> {
17
+ [SymbolActionResult]: Result;
18
+ }
19
+ declare module 'zova-module-a-bean' {
20
+ interface SysOnion {
21
+ action: ServiceOnion<IDecoratorActionOptions, keyof IActionRecord>;
22
+ }
23
+ }
24
+ declare module 'zova' {
25
+ interface ConfigOnions {
26
+ action: OmitNever<IActionRecord>;
27
+ }
28
+ interface IBeanSceneRecord {
29
+ action: never;
30
+ }
31
+ }
32
+ //# sourceMappingURL=action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/types/action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAE/D,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,OAAO,kBAAkB,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7F,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;AAElE,MAAM,WAAW,cAAc;CAAG;AAElC,MAAM,WAAW,aAAa;CAAG;AAEjC,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,qBAAqB,EAAE,IAAI,EAAE,iBAAiB,GAAG,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CAC9H;AAED,MAAM,WAAW,uBAAuB,CAAC,MAAM,GAAG,GAAG;IACnD,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAE9B;AAED,OAAO,QAAQ,oBAAoB,CAAC;IAClC,UAAiB,QAAQ;QACvB,MAAM,EAAE,YAAY,CAAC,uBAAuB,EAAE,MAAM,aAAa,CAAC,CAAC;KACpE;CACF;AAED,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,YAAY;QAC3B,MAAM,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;KAClC;IAED,UAAiB,gBAAgB;QAC/B,MAAM,EAAE,KAAK,CAAC;KACf;CACF"}
@@ -0,0 +1,3 @@
1
+ export * from './action.js';
2
+ export * from './performAction.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { IJsxRenderContextBase } from 'zova-module-a-openapi';
2
+ import type { IActionRecord, SymbolActionResult } from './action.js';
3
+ import 'zova';
4
+ declare module 'zova' {
5
+ interface BeanBase {
6
+ $performAction: <T extends keyof IActionRecord>(actionName: T, options: Partial<IActionRecord[T]> | undefined, renderContext?: IJsxRenderContextBase, next?: Function) => IActionRecord[T][typeof SymbolActionResult];
7
+ }
8
+ }
9
+ //# sourceMappingURL=performAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"performAction.d.ts","sourceRoot":"","sources":["../../src/types/performAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,MAAM,CAAC;AAEd,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,QAAQ;QACvB,cAAc,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAC5C,UAAU,EAAE,CAAC,EACb,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,EAC9C,aAAa,CAAC,EAAE,qBAAqB,EACrC,IAAI,CAAC,EAAE,QAAQ,KACZ,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO,kBAAkB,CAAC,CAAC;KAClD;CACF"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-action",
3
- "version": "5.1.2",
3
+ "version": "5.1.7",
4
+ "gitHead": "fa2b2ad94fb521534a1312c30256c1e155926bd3",
4
5
  "description": "",
5
6
  "keywords": [
6
7
  "Zova Module"
@@ -29,7 +30,7 @@
29
30
  },
30
31
  "scripts": {
31
32
  "clean": "rimraf dist dist-cli tsconfig.build.tsbuildinfo tsconfig.cli.tsbuildinfo",
32
- "tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.cli.json",
33
+ "tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json",
33
34
  "prepublishOnly": "npm run tsc:publish",
34
35
  "prepack": "clean-package",
35
36
  "postpack": "clean-package restore && npm run clean"
@@ -49,6 +50,5 @@
49
50
  "monkey": true
50
51
  },
51
52
  "dependencies": {}
52
- },
53
- "gitHead": "5517baba5865ac348af5be8e3a0f7506b0a67f9c"
53
+ }
54
54
  }