ng2-rest-swagger-generator 18.0.16 → 18.0.18

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/README.md CHANGED
@@ -1,46 +1,46 @@
1
- ## ng2-rest-swagger-generator ##
2
-
3
- Generate services for Angular2+ from your swagger.json files.
4
-
5
- ## Instalation
6
-
7
- npm install ng2-rest-swagger-generator -g
8
-
9
- ## Usage
10
-
11
- ng2-rest-swagger-generateor \
12
- --json ~/api_swagger.json \ # local swagger json file or
13
- --json http://api.com/swagger.json \ # external link to swagger json
14
- --base my_api_from_swagger_json
15
-
16
- It will generate **my_api_from_swagger_json** folder with angular2_ module.
17
-
18
- Your can alsow ommit **--base** param, default out folder is "**api**".
19
-
20
- ## Import
21
-
22
- To import generated module in **app.module** of you angular app do this:
23
- ```ts
24
- import { Ng2RestGenModule } from './api';
25
- ...
26
- imports: [ Ng2RestGenModule ],
27
- ...
28
- ```
29
- ## Api url modyfication
30
-
31
- It you wanna **change your base paths** just use property **enpointUrl** in Ng2RestGenModule module :
32
-
33
- ```ts
34
- if(enviroment.production) {
35
- Ng2RestGenModule.enpointUrls.myresource.myhost = 'https://myproductionhost.com'
36
- }
37
- ```
38
-
39
- ## Parameters description
40
-
41
- | param | description |
42
- | --- | --- |
43
- | --json | online links or local paths for swagger.json files |
44
- | --base | output module folder |
45
- | -s | if https protocole enable (one for all json-s) |
46
-
1
+ ## ng2-rest-swagger-generator ##
2
+
3
+ Generate services for Angular2+ from your swagger.json files.
4
+
5
+ ## Instalation
6
+
7
+ npm install ng2-rest-swagger-generator -g
8
+
9
+ ## Usage
10
+
11
+ ng2-rest-swagger-generateor \
12
+ --json ~/api_swagger.json \ # local swagger json file or
13
+ --json http://api.com/swagger.json \ # external link to swagger json
14
+ --base my_api_from_swagger_json
15
+
16
+ It will generate **my_api_from_swagger_json** folder with angular2_ module.
17
+
18
+ Your can alsow ommit **--base** param, default out folder is "**api**".
19
+
20
+ ## Import
21
+
22
+ To import generated module in **app.module** of you angular app do this:
23
+ ```ts
24
+ import { Ng2RestGenModule } from './api';
25
+ ...
26
+ imports: [ Ng2RestGenModule ],
27
+ ...
28
+ ```
29
+ ## Api url modyfication
30
+
31
+ It you wanna **change your base paths** just use property **enpointUrl** in Ng2RestGenModule module :
32
+
33
+ ```ts
34
+ if(enviroment.production) {
35
+ Ng2RestGenModule.enpointUrls.myresource.myhost = 'https://myproductionhost.com'
36
+ }
37
+ ```
38
+
39
+ ## Parameters description
40
+
41
+ | param | description |
42
+ | --- | --- |
43
+ | --json | online links or local paths for swagger.json files |
44
+ | --base | output module folder |
45
+ | -s | if https protocole enable (one for all json-s) |
46
+
@@ -1,6 +1,6 @@
1
1
  THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
2
2
 
3
- Assets from this folder are being shipped with this npm package (ng2-rest-swagger-generator@18.0.16)
3
+ Assets from this folder are being shipped with this npm package (ng2-rest-swagger-generator@18.0.17)
4
4
  created from this project.
5
5
 
6
6
  THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
@@ -1,10 +1,10 @@
1
- #!/usr/bin/env node
2
- var path = require('path')
3
- var fs = require('fs')
4
- var path = {
5
- dist: path.join(__dirname, '../dist/start.js'),
6
- bundle: path.join(__dirname, '../start.js')
7
- }
8
- var p = fs.existsSync(path.dist) ? path.dist : path.bundle;
9
- var start = require(p).start;
10
- start();
1
+ #!/usr/bin/env node
2
+ var path = require('path')
3
+ var fs = require('fs')
4
+ var path = {
5
+ dist: path.join(__dirname, '../dist/start.js'),
6
+ bundle: path.join(__dirname, '../start.js')
7
+ }
8
+ var p = fs.existsSync(path.dist) ? path.dist : path.bundle;
9
+ var start = require(p).start;
10
+ start();
package/browser/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
package/client/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
package/generator.js CHANGED
@@ -1,30 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.run = run;
4
- var fs = require("fs");
5
- var _ = require("lodash");
6
- var JSON5 = require("json5");
7
- var chalk_1 = require("chalk");
8
- var tsfmt = require("typescript-formatter");
9
- var request = require("request");
10
- var helpers_1 = require("./lib/helpers");
11
- var template_1 = require("./template");
12
- var apis = [];
13
- var formatterFiles = [];
14
- function run(pathes, links, isHttpsEnable, outputBase) {
15
- if (isHttpsEnable === void 0) { isHttpsEnable = false; }
16
- if (outputBase === void 0) { outputBase = 'api'; }
4
+ const fs = require("fs");
5
+ const _ = require("lodash");
6
+ const JSON5 = require("json5");
7
+ const chalk_1 = require("chalk");
8
+ const tsfmt = require("typescript-formatter");
9
+ const request = require("request");
10
+ const helpers_1 = require("./lib/helpers");
11
+ const template_1 = require("./template");
12
+ const apis = [];
13
+ const formatterFiles = [];
14
+ function run(pathes, links, isHttpsEnable = false, outputBase = 'api') {
17
15
  //#region prepare jsons
18
16
  if (links.length > 0) {
19
- var link_1 = links.shift();
17
+ let link = links.shift();
20
18
  request({
21
19
  method: "GET",
22
20
  "rejectUnauthorized": false,
23
- "url": link_1,
21
+ "url": link,
24
22
  "headers": { "Content-Type": "application/json" }
25
- }, function (error, response, body) {
23
+ }, (error, response, body) => {
26
24
  if (error || (_.isString(body) && body.startsWith('404'))) {
27
- console.log(chalk_1.default.red("Invalid link address: ".concat(chalk_1.default.bold(link_1))));
25
+ console.log(chalk_1.default.red(`Invalid link address: ${chalk_1.default.bold(link)}`));
28
26
  process.exit(1);
29
27
  }
30
28
  body = JSON5.parse(body);
@@ -34,7 +32,7 @@ function run(pathes, links, isHttpsEnable, outputBase) {
34
32
  apis.push(body);
35
33
  }
36
34
  else {
37
- console.log('Bad link: ' + link_1);
35
+ console.log('Bad link: ' + link);
38
36
  }
39
37
  run(pathes, links, isHttpsEnable, outputBase);
40
38
  });
@@ -42,12 +40,12 @@ function run(pathes, links, isHttpsEnable, outputBase) {
42
40
  }
43
41
  //#endregion
44
42
  helpers_1.HelpersSwagger.preparePaths(apis, outputBase);
45
- pathes = pathes.map(function (p) {
43
+ pathes = pathes.map(p => {
46
44
  if (p.charAt(0) === '/')
47
45
  p = p.slice(1, p.length);
48
- return "".concat(process.cwd(), "/").concat(p);
46
+ return `${process.cwd()}/${p}`;
49
47
  });
50
- pathes.forEach(function (p) {
48
+ pathes.forEach(p => {
51
49
  apis.push(JSON5.parse(fs.readFileSync(p, 'utf8')));
52
50
  });
53
51
  // api forlder
@@ -56,21 +54,21 @@ function run(pathes, links, isHttpsEnable, outputBase) {
56
54
  helpers_1.HelpersSwagger.recreateIfNotExist(helpers_1.HelpersSwagger.absolutePath.PathFile_index_ts, template_1.Template.mainIndex);
57
55
  //api/services
58
56
  helpers_1.HelpersSwagger.recreateIfNotExist(helpers_1.HelpersSwagger.absolutePath.PathFolder_services);
59
- var exportGroupsFromJSONs = [];
60
- apis.forEach(function (swg, indexSwg) {
57
+ let exportGroupsFromJSONs = [];
58
+ apis.forEach((swg, indexSwg) => {
61
59
  helpers_1.HelpersSwagger.prepareModel(swg, indexSwg, isHttpsEnable);
62
- var groupFolderName = helpers_1.HelpersSwagger.groupFromJSON.folderName(swg);
60
+ const groupFolderName = helpers_1.HelpersSwagger.groupFromJSON.folderName(swg);
63
61
  exportGroupsFromJSONs.push(groupFolderName);
64
62
  //api/services/<groupanme>
65
63
  helpers_1.HelpersSwagger.recreateIfNotExist(helpers_1.HelpersSwagger.absolutePath.PathFolder_services_groupName(swg));
66
- var servicesNames = [];
64
+ let servicesNames = [];
67
65
  if (!_.isArray(swg.tags)) {
68
66
  swg.tags = helpers_1.HelpersSwagger.findTags(swg);
69
67
  }
70
- swg.tags.forEach(function (tag) {
71
- var serivceFileName = helpers_1.HelpersSwagger.serviceFromTag.className(swg, tag);
68
+ swg.tags.forEach(tag => {
69
+ const serivceFileName = helpers_1.HelpersSwagger.serviceFromTag.className(swg, tag);
72
70
  servicesNames.push(serivceFileName);
73
- var absolutePathToServiceFileInFolderGroup = helpers_1.HelpersSwagger.serviceFromTag.absoluteFilePath(swg, tag);
71
+ const absolutePathToServiceFileInFolderGroup = helpers_1.HelpersSwagger.serviceFromTag.absoluteFilePath(swg, tag);
74
72
  formatterFiles.push(absolutePathToServiceFileInFolderGroup);
75
73
  // console.log('write type', typeof absolutePathToServiceFileInFolderGroup)
76
74
  // console.log(absolutePathToServiceFileInFolderGroup)
@@ -78,8 +76,8 @@ function run(pathes, links, isHttpsEnable, outputBase) {
78
76
  });
79
77
  fs.writeFileSync(helpers_1.HelpersSwagger.absolutePath.PathFile_services_groupName_index_ts(swg), template_1.Template.indexJSONcontent(swg), 'utf8');
80
78
  });
81
- var allClassesNames = helpers_1.HelpersSwagger.serviceFromTag.allClassNames();
82
- var allGroupFromTagNames = helpers_1.HelpersSwagger.groupFromJSON.allGroupNames;
79
+ const allClassesNames = helpers_1.HelpersSwagger.serviceFromTag.allClassNames();
80
+ const allGroupFromTagNames = helpers_1.HelpersSwagger.groupFromJSON.allGroupNames;
83
81
  // console.log('allGroupFromTagNames',allGroupFromTagNames)
84
82
  // api/services/index.ts
85
83
  helpers_1.HelpersSwagger.recreateIfNotExist(helpers_1.HelpersSwagger.absolutePath.PathFile_services_index_ts, template_1.Template.indexExportsTmpl(allGroupFromTagNames));
@@ -98,6 +96,6 @@ function run(pathes, links, isHttpsEnable, outputBase) {
98
96
  tslint: true,
99
97
  editorconfig: true,
100
98
  tsfmt: true
101
- }).then(function () { });
99
+ }).then(() => { });
102
100
  }
103
101
  //# sourceMappingURL=generator.js.map
package/generator.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAiBA,kBAyHC;AA1ID,uBAAyB;AAEzB,0BAA4B;AAC5B,6BAA+B;AAC/B,+BAA0B;AAE1B,4CAA8C;AAC9C,iCAAmC;AACnC,yCAA+C;AAE/C,uCAAsC;AAItC,IAAM,IAAI,GAAkC,EAAE,CAAC;AAC/C,IAAM,cAAc,GAAa,EAAE,CAAC;AAEpC,SAAgB,GAAG,CAAC,MAAgB,EAAE,KAAe,EAAE,aAA8B,EAAE,UAA0B;IAA1D,8BAAA,EAAA,qBAA8B;IAAE,2BAAA,EAAA,kBAA0B;IAE/G,uBAAuB;IACvB,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrB,IAAI,MAAI,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC;QACzB,OAAO,CAAM;YACX,MAAM,EAAE,KAAK;YACb,oBAAoB,EAAE,KAAK;YAC3B,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EAAE,CAAC,aAAa,CAAC,wBAAc,CAAC,YAAY,CAAC,oCAAoC,CAAC,GAAG,CAAC,EAAE,mBAAQ,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;IAClI,CAAC,CAAC,CAAA;IAEF,MAAM,eAAe,GAAG,wBAAc,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC;IACtE,MAAM,oBAAoB,GAAG,wBAAc,CAAC,aAAa,CAAC,aAAa,CAAC;IACxE,2DAA2D;IAE3D,wBAAwB;IACxB,wBAAc,CAAC,kBAAkB,CAAC,wBAAc,CAAC,YAAY,CAAC,0BAA0B,EAAE,mBAAQ,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC,CAAA;IAG1I,gBAAgB;IAChB,cAAc,CAAC,IAAI,CAAC,wBAAc,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAEpE,EAAE,CAAC,aAAa,CAAC,wBAAc,CAAC,YAAY,CAAC,kBAAkB,EAC7D,mBAAQ,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,CAAC;IAEpD,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAErD,6CAA6C;IAE7C,KAAK,CAAC,YAAY,CAAC,cAAc,EAAE;QACjC,oBAAoB;QACpB,iBAAiB;QACjB,2GAA2G;QAC3G,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,IAAI;QAClB,KAAK,EAAE,IAAI;KACL,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;AAG3B,CAAC"}
package/index.js CHANGED
@@ -1,5 +1,18 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./lib"), exports);
17
+ __exportStar(require("./lib"), exports);
5
18
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,gDAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["/Users/dfilipiak/projects/npm/taon-dev/ng2-rest-swagger-generator/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-info._auto-generated_.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AACa,QAAA,wBAAwB,GAAG,KAAK,CAAC"}
1
+ {"version":3,"file":"build-info._auto-generated_.js","sourceRoot":"","sources":["/Users/dfilipiak/projects/npm/taon-dev/ng2-rest-swagger-generator/src/lib/build-info._auto-generated_.ts"],"names":[],"mappings":";;;AACa,QAAA,wBAAwB,GAAG,KAAK,CAAC"}