zova-openapi 1.0.0 → 1.0.1

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.
@@ -1,12 +1,16 @@
1
1
  import { OpenAPITSOptions } from 'openapi-typescript';
2
2
  export type TypeOpenapiConfigMatchRule = string | RegExp | (string | RegExp)[];
3
- export interface ZovaOpenapiConfigModule {
4
- source: string;
3
+ export interface ZovaOpenapiConfigModuleBase {
4
+ source?: string;
5
+ baseURL?: string;
5
6
  options?: OpenAPITSOptions;
7
+ }
8
+ export interface ZovaOpenapiConfigModule extends ZovaOpenapiConfigModuleBase {
6
9
  match?: TypeOpenapiConfigMatchRule;
7
10
  ignore?: TypeOpenapiConfigMatchRule;
8
11
  }
9
12
  export interface ZovaOpenapiConfig {
13
+ default?: ZovaOpenapiConfigModuleBase;
10
14
  modules: Record<string, ZovaOpenapiConfigModule>;
11
15
  }
12
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;AAE/E,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,0BAA0B,CAAC;IACnC,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;CAClD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;AAE/E,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC1E,KAAK,CAAC,EAAE,0BAA0B,CAAC;IACnC,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,2BAA2B,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;CAClD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-openapi",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Zova Openapi",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -2,13 +2,18 @@ import { OpenAPITSOptions } from 'openapi-typescript';
2
2
 
3
3
  export type TypeOpenapiConfigMatchRule = string | RegExp | (string | RegExp)[];
4
4
 
5
- export interface ZovaOpenapiConfigModule {
6
- source: string;
5
+ export interface ZovaOpenapiConfigModuleBase {
6
+ source?: string;
7
+ baseURL?: string;
7
8
  options?: OpenAPITSOptions;
9
+ }
10
+
11
+ export interface ZovaOpenapiConfigModule extends ZovaOpenapiConfigModuleBase {
8
12
  match?: TypeOpenapiConfigMatchRule;
9
13
  ignore?: TypeOpenapiConfigMatchRule;
10
14
  }
11
15
 
12
16
  export interface ZovaOpenapiConfig {
17
+ default?: ZovaOpenapiConfigModuleBase;
13
18
  modules: Record<string, ZovaOpenapiConfigModule>;
14
19
  }