vona-module-a-openapiutils 5.0.1 → 5.0.4

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.
package/dist/index.js CHANGED
@@ -1,3 +1,23 @@
1
- export * from "./.metadata/index.js";
2
- export * from "./lib/index.js";
3
- export * from "./types/index.js";
1
+ import { BeanInfo, BeanScopeBase, appMetadata } from 'vona';
2
+ import { Scope } from 'vona-module-a-bean';
3
+
4
+ var _dec, _dec2, _class;
5
+ let ScopeModuleAOpenapiutils = (_dec = Scope(), _dec2 = BeanInfo({
6
+ module: "a-openapiutils"
7
+ }), _dec(_class = _dec2(_class = class ScopeModuleAOpenapiutils extends BeanScopeBase {}) || _class) || _class);
8
+
9
+ /** scope: end */
10
+
11
+ const SymbolOpenApiOptions = Symbol('SymbolOpenApiOptions');
12
+
13
+ function setPublic(target, prop, _descriptor, value) {
14
+ const options = appMetadata.getOwnMetadataMap(false, SymbolOpenApiOptions, target, prop);
15
+ options.public = value;
16
+ }
17
+
18
+ // not use z.ZodSchema
19
+
20
+ const SymbolDecoratorRule = Symbol('SymbolDecoratorRule');
21
+ const SymbolDecoratorRuleColumn = Symbol('SymbolDecoratorRuleColumn');
22
+
23
+ export { ScopeModuleAOpenapiutils, SymbolDecoratorRule, SymbolDecoratorRuleColumn, SymbolOpenApiOptions, setPublic };
@@ -13,11 +13,11 @@ export interface IResponseHeaders {
13
13
  }
14
14
  export type TypeGenerateJsonScene = 'api' | 'rest';
15
15
  export type TypeOpenApiVersion = 'V30' | 'V31';
16
- export interface IOpenAPIObject {
16
+ export interface IOpenapiObject {
17
17
  V30: OpenAPIObject30;
18
18
  V31: OpenAPIObject31;
19
19
  }
20
- export interface IOpenAPISchemaObject {
20
+ export interface IOpenapiSchemaObject {
21
21
  V30: SchemaObject30;
22
22
  V31: SchemaObject31;
23
23
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-openapiutils",
3
3
  "type": "module",
4
- "version": "5.0.1",
4
+ "version": "5.0.4",
5
5
  "title": "a-openapiutils",
6
6
  "vonaModule": {
7
7
  "dependencies": {}
@@ -30,6 +30,6 @@
30
30
  },
31
31
  "scripts": {
32
32
  "clean": "rimraf dist tsconfig.build.tsbuildinfo",
33
- "tsc:publish": "npm run clean && tsc -p tsconfig.build.json"
33
+ "tsc:publish": "npm run clean && vona :bin:buildModule && tsc -p tsconfig.build.json"
34
34
  }
35
35
  }
@@ -1,18 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- /* eslint-disable */
8
- /** scope: begin */
9
- import { BeanScopeBase } from 'vona';
10
- import { Scope } from 'vona-module-a-bean';
11
- let ScopeModuleAOpenapiutils = class ScopeModuleAOpenapiutils extends BeanScopeBase {
12
- };
13
- ScopeModuleAOpenapiutils = __decorate([
14
- Scope()
15
- ], ScopeModuleAOpenapiutils);
16
- export { ScopeModuleAOpenapiutils };
17
- import 'vona';
18
- /** scope: end */
@@ -1,2 +0,0 @@
1
- export const __ThisModule__ = 'a-openapiutils';
2
- export { ScopeModuleAOpenapiutils as ScopeModule } from "./index.js";
@@ -1,6 +0,0 @@
1
- import { appMetadata } from 'vona';
2
- import { SymbolOpenApiOptions } from "../../types/api.js";
3
- export function setPublic(target, prop, _descriptor, value) {
4
- const options = appMetadata.getOwnMetadataMap(false, SymbolOpenApiOptions, target, prop);
5
- options.public = value;
6
- }
@@ -1 +0,0 @@
1
- export * from "./api.js";
package/dist/lib/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "./decorator/index.js";
package/dist/types/api.js DELETED
@@ -1 +0,0 @@
1
- export const SymbolOpenApiOptions = Symbol('SymbolOpenApiOptions');
@@ -1,2 +0,0 @@
1
- export const SymbolDecoratorRule = Symbol('SymbolDecoratorRule');
2
- export const SymbolDecoratorRuleColumn = Symbol('SymbolDecoratorRuleColumn');
@@ -1,2 +0,0 @@
1
- export * from "./api.js";
2
- export * from "./decorator.js";