@devlearning/swagger-generator 1.0.13 → 1.0.14

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/generator.js CHANGED
@@ -142,7 +142,7 @@ export class Generator {
142
142
  const apiWriter = new ApiNextJsWriter(this._commandLineArgs.outputDirectory);
143
143
  apiWriter.write(this._apis);
144
144
  }
145
- else if (this._commandLineArgs.target == TargetGeneration.Dart) {
145
+ else if (this._commandLineArgs.target == TargetGeneration.Flutter) {
146
146
  const apiWriter = new ApiDartWriter(this._commandLineArgs);
147
147
  apiWriter.write(this._apis, this._models);
148
148
  }
@@ -159,7 +159,7 @@ export class Generator {
159
159
  const apiWriter = new ModelNextJsWriter(this._commandLineArgs.outputDirectory);
160
160
  apiWriter.write(this._models);
161
161
  }
162
- else if (this._commandLineArgs.target == TargetGeneration.Dart) {
162
+ else if (this._commandLineArgs.target == TargetGeneration.Flutter) {
163
163
  const apiWriter = new ModelDartWriter(this._commandLineArgs);
164
164
  apiWriter.write(this._models);
165
165
  }
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ export var TargetGeneration;
12
12
  (function (TargetGeneration) {
13
13
  TargetGeneration["Angular"] = "angular";
14
14
  TargetGeneration["Next"] = "next";
15
- TargetGeneration["Dart"] = "dart";
15
+ TargetGeneration["Flutter"] = "flutter";
16
16
  })(TargetGeneration || (TargetGeneration = {}));
17
17
  const argv = yargs(hideBin(process.argv))
18
18
  .scriptName("swagger-gen")
@@ -32,7 +32,7 @@ const argv = yargs(hideBin(process.argv))
32
32
  .option('target', {
33
33
  alias: 't',
34
34
  type: 'string',
35
- choices: ['angular', 'next', 'dart'],
35
+ choices: ['angular', 'next', 'flutter'],
36
36
  demandOption: true,
37
37
  describe: 'Target format for the generated code',
38
38
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devlearning/swagger-generator",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Swagger generator apis and models for Angular and NextJS",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/generator.ts CHANGED
@@ -185,7 +185,7 @@ export class Generator {
185
185
  } else if (this._commandLineArgs.target == TargetGeneration.Next) {
186
186
  const apiWriter = new ApiNextJsWriter(this._commandLineArgs.outputDirectory);
187
187
  apiWriter.write(this._apis);
188
- } else if (this._commandLineArgs.target == TargetGeneration.Dart) {
188
+ } else if (this._commandLineArgs.target == TargetGeneration.Flutter) {
189
189
  const apiWriter = new ApiDartWriter(this._commandLineArgs);
190
190
  apiWriter.write(this._apis, this._models);
191
191
  }
@@ -205,7 +205,7 @@ export class Generator {
205
205
  } else if (this._commandLineArgs.target == TargetGeneration.Next) {
206
206
  const apiWriter = new ModelNextJsWriter(this._commandLineArgs.outputDirectory);
207
207
  apiWriter.write(this._models);
208
- } else if (this._commandLineArgs.target == TargetGeneration.Dart) {
208
+ } else if (this._commandLineArgs.target == TargetGeneration.Flutter) {
209
209
  const apiWriter = new ModelDartWriter(this._commandLineArgs);
210
210
  apiWriter.write(this._models);
211
211
  }
package/src/index.ts CHANGED
@@ -13,7 +13,7 @@ export enum DateTimeLibrary {
13
13
  export enum TargetGeneration {
14
14
  Angular = 'angular',
15
15
  Next = 'next',
16
- Dart = 'dart',
16
+ Flutter = 'flutter',
17
17
  }
18
18
 
19
19
  export interface CommandLineArgs {
@@ -42,7 +42,7 @@ const argv = yargs(hideBin(process.argv))
42
42
  .option('target', {
43
43
  alias: 't',
44
44
  type: 'string',
45
- choices: ['angular', 'next', 'dart'],
45
+ choices: ['angular', 'next', 'flutter'],
46
46
  demandOption: true,
47
47
  describe: 'Target format for the generated code',
48
48
  })