File tree Expand file tree Collapse file tree 7 files changed +12
-12
lines changed
src/main/resources/handlebars/javascript/es6 Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import querystring from "querystring";
14
14
* @alias module:{ {#invokerPackage} }{ {invokerPackage} }/{ {/invokerPackage} }ApiClient
15
15
* @class
16
16
*/{ {/emitJSDoc} }
17
- export class ApiClient {
17
+ export default class ApiClient {
18
18
constructor() {
19
19
{{#emitJSDoc} }/**
20
20
* The base URL against which to resolve every API call's (relative) path.
Original file line number Diff line number Diff line change 1
1
{ {> licenseInfo} }
2
- import { {braces " left " } } ApiClient{ {braces " right " } } from "../ApiClient";
3
- { {#imports} }import { {braces " left " } } { { import} } { {braces " right " } } from '../{ {#modelPackage} }{ {&modelPackage} }/{ {/modelPackage} }{ {import} }';
2
+ import ApiClient from "../ApiClient";
3
+ { {#imports} }import { {import} } from '../{ {#modelPackage} }{ {&modelPackage} }/{ {/modelPackage} }{ {import} }';
4
4
{ {/imports} }
5
5
6
6
{ {#emitJSDoc} }/**
7
7
* { {baseName} } service.
8
8
* @module { {#invokerPackage} }{ {&invokerPackage} }/{ {/invokerPackage} }{ {#apiPackage} }{ {&apiPackage} }/{ {/apiPackage} }{ {classname} }
9
9
* @version { {projectVersion} }
10
10
*/{ {/emitJSDoc} }
11
- export class { {classname} } {
11
+ export default class { {classname} } {
12
12
13
13
{{#emitJSDoc} }/**
14
14
* Constructs a new { {&classname} }. { {#description} }
Original file line number Diff line number Diff line change 3
3
* @enum { {braces " left" } }{ {datatype} }{ {braces " right" } }
4
4
* @readonly
5
5
*/{ {/emitJSDoc} }
6
- export { {datatypeWithEnum} } = {
6
+ export default { {datatypeWithEnum} } = {
7
7
{{#allowableValues} }
8
8
{ {#enumVars} }
9
9
{ {#emitJSDoc} }
Original file line number Diff line number Diff line change 1
1
{ {> licenseInfo} }
2
- import { ApiClient} from './ApiClient';
3
- { {#models} }import { {braces " left " } } { { #model} }{ {classFilename} }{ {/model} } { {braces " right " } } from './{ {#modelPackage} }{ {modelPackage} }/{ {/modelPackage} }{ {importPath} }';
4
- { {/models} }{ {#apiInfo} }{ {#apis} }import { {braces " left " } } { { importPath} } { {braces " right " } } from './{ {#apiPackage} }{ {apiPackage} }/{ {/apiPackage} }{ {importPath} }';
2
+ import ApiClient from './ApiClient';
3
+ { {#models} }import { {#model} }{ {classFilename} }{ {/model} } from './{ {#modelPackage} }{ {modelPackage} }/{ {/modelPackage} }{ {importPath} }';
4
+ { {/models} }{ {#apiInfo} }{ {#apis} }import { {importPath} } from './{ {#apiPackage} }{ {apiPackage} }/{ {/apiPackage} }{ {importPath} }';
5
5
{ {/apis} }{ {/apiInfo} }
6
6
7
7
{ {#emitJSDoc} }/**{ {#projectDescription} }
Original file line number Diff line number Diff line change 1
1
{ {> licenseInfo} }
2
- import { {braces " left " } } ApiClient{ {braces " right " } } from '../ApiClient';
2
+ import ApiClient from '../ApiClient';
3
3
{ {#imports} }
4
- import { {braces " left " } } { { import} } { {braces " right " } } from './{ {import} }';
4
+ import { {import} } from './{ {import} }';
5
5
{ {/imports} }
6
6
7
7
{ {#models} }
Original file line number Diff line number Diff line change @@ -30,4 +30,4 @@ const {{classname}} = {
30
30
}
31
31
};
32
32
33
- export { {braces " left" } }{ {classname} }{ {braces " right" } };
33
+ export default { {braces " left" } }{ {classname} }{ {braces " right" } };
Original file line number Diff line number Diff line change 5
5
* @version { {projectVersion} }
6
6
*/
7
7
{ {/emitJSDoc} }
8
- export class { {classname} } { {#parentModel} }extends { {classname} } { {/parentModel} }{ {#parent} }{ {^parentModel} }{ {#vendorExtensions.x-isArray} }extends Array { {/vendorExtensions.x-isArray} }{ {/parentModel} }{ {/parent} }{
8
+ export default class { {classname} } { {#parentModel} }extends { {classname} } { {/parentModel} }{ {#parent} }{ {^parentModel} }{ {#vendorExtensions.x-isArray} }extends Array { {/vendorExtensions.x-isArray} }{ {/parentModel} }{ {/parent} }{
9
9
{{#emitJSDoc} }
10
10
/**
11
11
* Constructs a new <code >{ {classname} }</code >.{ {#description} }
You can’t perform that action at this time.
0 commit comments