@abp/ng.schematics 5.0.1 → 5.0.2

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.
Files changed (141) hide show
  1. package/README.md +3 -3
  2. package/collection.json +29 -29
  3. package/commands/api/files-enum/proxy/__namespace@dir__/__name@kebab__.enum.ts.template +8 -8
  4. package/commands/api/files-model/proxy/__namespace@dir__/models.ts.template +9 -9
  5. package/commands/api/files-service/proxy/__namespace@dir__/__name@kebab__.service.ts.template +25 -25
  6. package/commands/api/index.d.ts +2 -2
  7. package/commands/api/index.js +112 -112
  8. package/commands/api/schema.json +45 -45
  9. package/commands/proxy-add/index.d.ts +2 -2
  10. package/commands/proxy-add/index.js +41 -41
  11. package/commands/proxy-add/schema.json +45 -45
  12. package/commands/proxy-index/index.d.ts +4 -4
  13. package/commands/proxy-index/index.js +14 -14
  14. package/commands/proxy-index/schema.json +18 -18
  15. package/commands/proxy-refresh/index.d.ts +3 -3
  16. package/commands/proxy-refresh/index.js +27 -27
  17. package/commands/proxy-refresh/schema.json +45 -45
  18. package/commands/proxy-remove/index.d.ts +3 -3
  19. package/commands/proxy-remove/index.js +33 -33
  20. package/commands/proxy-remove/schema.json +45 -45
  21. package/constants/api.d.ts +1 -1
  22. package/constants/api.js +4 -4
  23. package/constants/index.d.ts +4 -4
  24. package/constants/index.js +16 -16
  25. package/constants/proxy.d.ts +4 -4
  26. package/constants/proxy.js +24 -24
  27. package/constants/system-types.d.ts +1 -1
  28. package/constants/system-types.js +27 -27
  29. package/constants/volo.d.ts +1 -1
  30. package/constants/volo.js +4 -4
  31. package/enums/binding-source-id.d.ts +6 -6
  32. package/enums/binding-source-id.js +10 -10
  33. package/enums/exception.d.ts +16 -16
  34. package/enums/exception.js +2 -2
  35. package/enums/import-keyword.d.ts +4 -4
  36. package/enums/import-keyword.js +8 -8
  37. package/enums/index.d.ts +4 -4
  38. package/enums/index.js +16 -16
  39. package/enums/method-modifier.d.ts +6 -6
  40. package/enums/method-modifier.js +10 -10
  41. package/index.d.ts +1 -1
  42. package/index.js +2 -2
  43. package/models/api-definition.d.ts +72 -72
  44. package/models/api-definition.js +2 -2
  45. package/models/generate-proxy-schema.d.ts +18 -18
  46. package/models/generate-proxy-schema.js +2 -2
  47. package/models/import.d.ts +11 -11
  48. package/models/import.js +13 -13
  49. package/models/index.d.ts +10 -10
  50. package/models/index.js +22 -22
  51. package/models/method.d.ts +31 -31
  52. package/models/method.js +61 -61
  53. package/models/model.d.ts +48 -48
  54. package/models/model.js +71 -71
  55. package/models/project.d.ts +5 -5
  56. package/models/project.js +2 -2
  57. package/models/proxy-config.d.ts +4 -4
  58. package/models/proxy-config.js +2 -2
  59. package/models/service.d.ts +21 -21
  60. package/models/service.js +11 -11
  61. package/models/tree.d.ts +1 -1
  62. package/models/tree.js +2 -2
  63. package/models/util.d.ts +7 -7
  64. package/models/util.js +2 -2
  65. package/package.json +1 -1
  66. package/test-setup.d.ts +1 -1
  67. package/test-setup.js +3 -3
  68. package/utils/angular/ast-utils.d.ts +115 -115
  69. package/utils/angular/ast-utils.js +598 -598
  70. package/utils/angular/change.d.ts +66 -66
  71. package/utils/angular/change.js +96 -96
  72. package/utils/angular/config.d.ts +455 -455
  73. package/utils/angular/config.js +70 -70
  74. package/utils/angular/dependencies.d.ts +23 -23
  75. package/utils/angular/dependencies.js +58 -58
  76. package/utils/angular/find-module.d.ts +35 -35
  77. package/utils/angular/find-module.js +105 -105
  78. package/utils/angular/index.d.ts +17 -17
  79. package/utils/angular/index.js +29 -29
  80. package/utils/angular/json-file.d.ts +23 -23
  81. package/utils/angular/json-file.js +61 -61
  82. package/utils/angular/json-utils.d.ts +14 -14
  83. package/utils/angular/json-utils.js +158 -158
  84. package/utils/angular/latest-versions.d.ts +18 -18
  85. package/utils/angular/latest-versions.js +26 -26
  86. package/utils/angular/lint-fix.d.ts +9 -9
  87. package/utils/angular/lint-fix.js +41 -41
  88. package/utils/angular/ng-ast-utils.d.ts +5 -5
  89. package/utils/angular/ng-ast-utils.js +75 -75
  90. package/utils/angular/parse-name.d.ts +13 -13
  91. package/utils/angular/parse-name.js +21 -21
  92. package/utils/angular/paths.d.ts +8 -8
  93. package/utils/angular/paths.js +21 -21
  94. package/utils/angular/project-targets.d.ts +9 -9
  95. package/utils/angular/project-targets.js +15 -15
  96. package/utils/angular/tsconfig.d.ts +16 -16
  97. package/utils/angular/tsconfig.js +62 -62
  98. package/utils/angular/validation.d.ts +4 -4
  99. package/utils/angular/validation.js +73 -73
  100. package/utils/angular/workspace-models.d.ts +159 -159
  101. package/utils/angular/workspace-models.js +29 -29
  102. package/utils/angular/workspace.d.ts +18 -18
  103. package/utils/angular/workspace.js +75 -75
  104. package/utils/api.d.ts +2 -2
  105. package/utils/api.js +8 -8
  106. package/utils/ast.d.ts +4 -4
  107. package/utils/ast.js +23 -23
  108. package/utils/barrel.d.ts +4 -4
  109. package/utils/barrel.js +92 -92
  110. package/utils/common.d.ts +6 -6
  111. package/utils/common.js +33 -33
  112. package/utils/enum.d.ts +18 -18
  113. package/utils/enum.js +40 -40
  114. package/utils/file.d.ts +2 -2
  115. package/utils/file.js +9 -9
  116. package/utils/generics.d.ts +24 -24
  117. package/utils/generics.js +87 -87
  118. package/utils/import.d.ts +3 -3
  119. package/utils/import.js +11 -11
  120. package/utils/index.d.ts +19 -19
  121. package/utils/index.js +31 -31
  122. package/utils/model.d.ts +11 -11
  123. package/utils/model.js +141 -141
  124. package/utils/namespace.d.ts +1 -1
  125. package/utils/namespace.js +18 -18
  126. package/utils/path.d.ts +2 -2
  127. package/utils/path.js +36 -36
  128. package/utils/rule.d.ts +4 -4
  129. package/utils/rule.js +27 -27
  130. package/utils/service.d.ts +6 -6
  131. package/utils/service.js +82 -82
  132. package/utils/source.d.ts +13 -13
  133. package/utils/source.js +162 -162
  134. package/utils/text.d.ts +9 -9
  135. package/utils/text.js +46 -46
  136. package/utils/tree.d.ts +13 -13
  137. package/utils/tree.js +56 -56
  138. package/utils/type.d.ts +12 -12
  139. package/utils/type.js +102 -102
  140. package/utils/workspace.d.ts +8 -8
  141. package/utils/workspace.js +66 -66
@@ -1,28 +1,28 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SYSTEM_TYPES = void 0;
4
- exports.SYSTEM_TYPES = new Map([
5
- ['Bool', 'boolean'],
6
- ['Byte', 'number'],
7
- ['Char', 'string'],
8
- ['Collections.Generic.Dictionary', 'Record'],
9
- ['DateTime', 'string'],
10
- ['DateTimeOffset', 'string'],
11
- ['Decimal', 'number'],
12
- ['Double', 'number'],
13
- ['Guid', 'string'],
14
- ['Int16', 'number'],
15
- ['Int32', 'number'],
16
- ['Int64', 'number'],
17
- ['Net.HttpStatusCode', 'number'],
18
- ['Object', 'object'],
19
- ['Sbyte', 'number'],
20
- ['Single', 'number'],
21
- ['String', 'string'],
22
- ['TimeSpan', 'string'],
23
- ['UInt16', 'number'],
24
- ['UInt32', 'number'],
25
- ['UInt64', 'number'],
26
- ['Void', 'void'],
27
- ]);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SYSTEM_TYPES = void 0;
4
+ exports.SYSTEM_TYPES = new Map([
5
+ ['Bool', 'boolean'],
6
+ ['Byte', 'number'],
7
+ ['Char', 'string'],
8
+ ['Collections.Generic.Dictionary', 'Record'],
9
+ ['DateTime', 'string'],
10
+ ['DateTimeOffset', 'string'],
11
+ ['Decimal', 'number'],
12
+ ['Double', 'number'],
13
+ ['Guid', 'string'],
14
+ ['Int16', 'number'],
15
+ ['Int32', 'number'],
16
+ ['Int64', 'number'],
17
+ ['Net.HttpStatusCode', 'number'],
18
+ ['Object', 'object'],
19
+ ['Sbyte', 'number'],
20
+ ['Single', 'number'],
21
+ ['String', 'string'],
22
+ ['TimeSpan', 'string'],
23
+ ['UInt16', 'number'],
24
+ ['UInt32', 'number'],
25
+ ['UInt64', 'number'],
26
+ ['Void', 'void'],
27
+ ]);
28
28
  //# sourceMappingURL=system-types.js.map
@@ -1 +1 @@
1
- export declare const VOLO_REGEX: RegExp;
1
+ export declare const VOLO_REGEX: RegExp;
package/constants/volo.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VOLO_REGEX = void 0;
4
- exports.VOLO_REGEX = /^Volo\.Abp\.(Application\.Dtos|ObjectExtending)/;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VOLO_REGEX = void 0;
4
+ exports.VOLO_REGEX = /^Volo\.Abp\.(Application\.Dtos|ObjectExtending)/;
5
5
  //# sourceMappingURL=volo.js.map
@@ -1,6 +1,6 @@
1
- export declare enum eBindingSourceId {
2
- Body = "Body",
3
- Model = "ModelBinding",
4
- Path = "Path",
5
- Query = "Query"
6
- }
1
+ export declare enum eBindingSourceId {
2
+ Body = "Body",
3
+ Model = "ModelBinding",
4
+ Path = "Path",
5
+ Query = "Query"
6
+ }
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.eBindingSourceId = void 0;
4
- var eBindingSourceId;
5
- (function (eBindingSourceId) {
6
- eBindingSourceId["Body"] = "Body";
7
- eBindingSourceId["Model"] = "ModelBinding";
8
- eBindingSourceId["Path"] = "Path";
9
- eBindingSourceId["Query"] = "Query";
10
- })(eBindingSourceId = exports.eBindingSourceId || (exports.eBindingSourceId = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.eBindingSourceId = void 0;
4
+ var eBindingSourceId;
5
+ (function (eBindingSourceId) {
6
+ eBindingSourceId["Body"] = "Body";
7
+ eBindingSourceId["Model"] = "ModelBinding";
8
+ eBindingSourceId["Path"] = "Path";
9
+ eBindingSourceId["Query"] = "Query";
10
+ })(eBindingSourceId = exports.eBindingSourceId || (exports.eBindingSourceId = {}));
11
11
  //# sourceMappingURL=binding-source-id.js.map
@@ -1,16 +1,16 @@
1
- export declare const enum Exception {
2
- DirRemoveFailed = "[Directory Remove Failed] Cannot remove \"{0}\".",
3
- FileNotFound = "[File Not Found] There is no file at \"{0}\" path.",
4
- FileWriteFailed = "[File Write Failed] Cannot write file at \"{0}\".",
5
- InvalidModule = "[Invalid Module] Backend module \"{0}\" does not exist in API definition.",
6
- InvalidApiDefinition = "[Invalid API Definition] The provided API definition is invalid.",
7
- InvalidWorkspace = "[Invalid Workspace] The angular.json should be a valid JSON file.",
8
- NoApi = "[API Not Available] Request to {0} is unsuccessful. Please double-check the URL in the source project environment and make sure your application is up and running.",
9
- NoProject = "[Project Not Found] Either define a default project in your workspace or specify the project name in schematics options.",
10
- NoProxyConfig = "[Proxy Config Not Found] There is no JSON file at \"{0}\".",
11
- NoTypeDefinition = "[Type Definition Not Found] There is no type definition for \"{0}\".",
12
- NoWorkspace = "[Workspace Not Found] Make sure you are running schematics at the root directory of your workspace and it has an angular.json file.",
13
- NoEnvironment = "[Environment Not Found] An environment file cannot be located in \"{0}\" project.",
14
- NoApiUrl = "[API URL Not Found] Cannot resolve API URL for \"{1}\" remote service name from \"{0}\" project.",
15
- NoRootNamespace = "[Root Namespace Not Found] Cannot resolve root namespace for \"{1}\" api from \"{0}\" project."
16
- }
1
+ export declare const enum Exception {
2
+ DirRemoveFailed = "[Directory Remove Failed] Cannot remove \"{0}\".",
3
+ FileNotFound = "[File Not Found] There is no file at \"{0}\" path.",
4
+ FileWriteFailed = "[File Write Failed] Cannot write file at \"{0}\".",
5
+ InvalidModule = "[Invalid Module] Backend module \"{0}\" does not exist in API definition.",
6
+ InvalidApiDefinition = "[Invalid API Definition] The provided API definition is invalid.",
7
+ InvalidWorkspace = "[Invalid Workspace] The angular.json should be a valid JSON file.",
8
+ NoApi = "[API Not Available] Request to {0} is unsuccessful. Please double-check the URL in the source project environment and make sure your application is up and running.",
9
+ NoProject = "[Project Not Found] Either define a default project in your workspace or specify the project name in schematics options.",
10
+ NoProxyConfig = "[Proxy Config Not Found] There is no JSON file at \"{0}\".",
11
+ NoTypeDefinition = "[Type Definition Not Found] There is no type definition for \"{0}\".",
12
+ NoWorkspace = "[Workspace Not Found] Make sure you are running schematics at the root directory of your workspace and it has an angular.json file.",
13
+ NoEnvironment = "[Environment Not Found] An environment file cannot be located in \"{0}\" project.",
14
+ NoApiUrl = "[API URL Not Found] Cannot resolve API URL for \"{1}\" remote service name from \"{0}\" project.",
15
+ NoRootNamespace = "[Root Namespace Not Found] Cannot resolve root namespace for \"{1}\" api from \"{0}\" project."
16
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=exception.js.map
@@ -1,4 +1,4 @@
1
- export declare enum eImportKeyword {
2
- Default = "import",
3
- Type = "import type"
4
- }
1
+ export declare enum eImportKeyword {
2
+ Default = "import",
3
+ Type = "import type"
4
+ }
@@ -1,9 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.eImportKeyword = void 0;
4
- var eImportKeyword;
5
- (function (eImportKeyword) {
6
- eImportKeyword["Default"] = "import";
7
- eImportKeyword["Type"] = "import type";
8
- })(eImportKeyword = exports.eImportKeyword || (exports.eImportKeyword = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.eImportKeyword = void 0;
4
+ var eImportKeyword;
5
+ (function (eImportKeyword) {
6
+ eImportKeyword["Default"] = "import";
7
+ eImportKeyword["Type"] = "import type";
8
+ })(eImportKeyword = exports.eImportKeyword || (exports.eImportKeyword = {}));
9
9
  //# sourceMappingURL=import-keyword.js.map
package/enums/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './binding-source-id';
2
- export * from './exception';
3
- export * from './import-keyword';
4
- export * from './method-modifier';
1
+ export * from './binding-source-id';
2
+ export * from './exception';
3
+ export * from './import-keyword';
4
+ export * from './method-modifier';
package/enums/index.js CHANGED
@@ -1,17 +1,17 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./binding-source-id"), exports);
14
- __exportStar(require("./exception"), exports);
15
- __exportStar(require("./import-keyword"), exports);
16
- __exportStar(require("./method-modifier"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./binding-source-id"), exports);
14
+ __exportStar(require("./exception"), exports);
15
+ __exportStar(require("./import-keyword"), exports);
16
+ __exportStar(require("./method-modifier"), exports);
17
17
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- export declare enum eMethodModifier {
2
- Public = "",
3
- Private = "private ",
4
- Async = "async ",
5
- PrivateAsync = "private async "
6
- }
1
+ export declare enum eMethodModifier {
2
+ Public = "",
3
+ Private = "private ",
4
+ Async = "async ",
5
+ PrivateAsync = "private async "
6
+ }
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.eMethodModifier = void 0;
4
- var eMethodModifier;
5
- (function (eMethodModifier) {
6
- eMethodModifier["Public"] = "";
7
- eMethodModifier["Private"] = "private ";
8
- eMethodModifier["Async"] = "async ";
9
- eMethodModifier["PrivateAsync"] = "private async ";
10
- })(eMethodModifier = exports.eMethodModifier || (exports.eMethodModifier = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.eMethodModifier = void 0;
4
+ var eMethodModifier;
5
+ (function (eMethodModifier) {
6
+ eMethodModifier["Public"] = "";
7
+ eMethodModifier["Private"] = "private ";
8
+ eMethodModifier["Async"] = "async ";
9
+ eMethodModifier["PrivateAsync"] = "private async ";
10
+ })(eMethodModifier = exports.eMethodModifier || (exports.eMethodModifier = {}));
11
11
  //# sourceMappingURL=method-modifier.js.map
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=index.js.map
@@ -1,72 +1,72 @@
1
- import { eBindingSourceId } from '../enums';
2
- export interface ApiDefinition {
3
- modules: Record<string, Module>;
4
- types: Record<string, Type>;
5
- }
6
- export interface Type {
7
- baseType: string | null;
8
- isEnum: boolean;
9
- enumNames: string[] | null;
10
- enumValues: number[] | null;
11
- genericArguments: string[] | null;
12
- properties: PropertyDef[] | null;
13
- }
14
- export interface PropertyDef {
15
- name: string;
16
- jsonName: string | null;
17
- type: string;
18
- typeSimple: string;
19
- isRequired: boolean;
20
- }
21
- export interface Module {
22
- rootPath: string;
23
- remoteServiceName: string;
24
- controllers: Record<string, Controller>;
25
- }
26
- export interface Controller {
27
- controllerName: string;
28
- type: string;
29
- interfaces: InterfaceDef[];
30
- actions: Record<string, Action>;
31
- }
32
- export interface InterfaceDef {
33
- type: string;
34
- }
35
- export interface Action {
36
- uniqueName: string;
37
- name: string;
38
- httpMethod: string;
39
- url: string;
40
- supportedVersions: string[];
41
- parametersOnMethod: ParameterInSignature[];
42
- parameters: ParameterInBody[];
43
- returnValue: TypeDef;
44
- }
45
- export interface ParameterInSignature {
46
- name: string;
47
- typeAsString: string;
48
- type: string;
49
- typeSimple: string;
50
- isOptional: boolean;
51
- defaultValue: any;
52
- }
53
- export interface ParameterInBody {
54
- nameOnMethod: string;
55
- name: string;
56
- jsonName: string | null;
57
- type: string;
58
- typeSimple: string;
59
- isOptional: boolean;
60
- defaultValue: any;
61
- constraintTypes: string[] | null;
62
- bindingSourceId: eBindingSourceId;
63
- descriptorName: string;
64
- }
65
- export interface TypeDef {
66
- type: string;
67
- typeSimple: string;
68
- }
69
- export interface TypeWithEnum {
70
- isEnum: boolean;
71
- type: string;
72
- }
1
+ import { eBindingSourceId } from '../enums';
2
+ export interface ApiDefinition {
3
+ modules: Record<string, Module>;
4
+ types: Record<string, Type>;
5
+ }
6
+ export interface Type {
7
+ baseType: string | null;
8
+ isEnum: boolean;
9
+ enumNames: string[] | null;
10
+ enumValues: number[] | null;
11
+ genericArguments: string[] | null;
12
+ properties: PropertyDef[] | null;
13
+ }
14
+ export interface PropertyDef {
15
+ name: string;
16
+ jsonName: string | null;
17
+ type: string;
18
+ typeSimple: string;
19
+ isRequired: boolean;
20
+ }
21
+ export interface Module {
22
+ rootPath: string;
23
+ remoteServiceName: string;
24
+ controllers: Record<string, Controller>;
25
+ }
26
+ export interface Controller {
27
+ controllerName: string;
28
+ type: string;
29
+ interfaces: InterfaceDef[];
30
+ actions: Record<string, Action>;
31
+ }
32
+ export interface InterfaceDef {
33
+ type: string;
34
+ }
35
+ export interface Action {
36
+ uniqueName: string;
37
+ name: string;
38
+ httpMethod: string;
39
+ url: string;
40
+ supportedVersions: string[];
41
+ parametersOnMethod: ParameterInSignature[];
42
+ parameters: ParameterInBody[];
43
+ returnValue: TypeDef;
44
+ }
45
+ export interface ParameterInSignature {
46
+ name: string;
47
+ typeAsString: string;
48
+ type: string;
49
+ typeSimple: string;
50
+ isOptional: boolean;
51
+ defaultValue: any;
52
+ }
53
+ export interface ParameterInBody {
54
+ nameOnMethod: string;
55
+ name: string;
56
+ jsonName: string | null;
57
+ type: string;
58
+ typeSimple: string;
59
+ isOptional: boolean;
60
+ defaultValue: any;
61
+ constraintTypes: string[] | null;
62
+ bindingSourceId: eBindingSourceId;
63
+ descriptorName: string;
64
+ }
65
+ export interface TypeDef {
66
+ type: string;
67
+ typeSimple: string;
68
+ }
69
+ export interface TypeWithEnum {
70
+ isEnum: boolean;
71
+ type: string;
72
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=api-definition.js.map
@@ -1,18 +1,18 @@
1
- export interface GenerateProxySchema {
2
- /**
3
- * Backend module name
4
- */
5
- module?: string;
6
- /**
7
- * Backend api name, a.k.a. remoteServiceName
8
- */
9
- apiName?: string;
10
- /**
11
- * Source Angular project for API definition URL & root namespace resolution
12
- */
13
- source?: string;
14
- /**
15
- * Target Angular project to place the generated code
16
- */
17
- target?: string;
18
- }
1
+ export interface GenerateProxySchema {
2
+ /**
3
+ * Backend module name
4
+ */
5
+ module?: string;
6
+ /**
7
+ * Backend api name, a.k.a. remoteServiceName
8
+ */
9
+ apiName?: string;
10
+ /**
11
+ * Source Angular project for API definition URL & root namespace resolution
12
+ */
13
+ source?: string;
14
+ /**
15
+ * Target Angular project to place the generated code
16
+ */
17
+ target?: string;
18
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=generate-proxy-schema.js.map
@@ -1,11 +1,11 @@
1
- import { eImportKeyword } from '../enums';
2
- import { Omissible } from './util';
3
- export declare class Import {
4
- alias?: string;
5
- keyword: eImportKeyword;
6
- path: string;
7
- refs: string[];
8
- specifiers: string[];
9
- constructor(options: ImportOptions);
10
- }
11
- export declare type ImportOptions = Omissible<Import, 'keyword' | 'refs' | 'specifiers'>;
1
+ import { eImportKeyword } from '../enums';
2
+ import { Omissible } from './util';
3
+ export declare class Import {
4
+ alias?: string;
5
+ keyword: eImportKeyword;
6
+ path: string;
7
+ refs: string[];
8
+ specifiers: string[];
9
+ constructor(options: ImportOptions);
10
+ }
11
+ export declare type ImportOptions = Omissible<Import, 'keyword' | 'refs' | 'specifiers'>;
package/models/import.js CHANGED
@@ -1,14 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Import = void 0;
4
- const enums_1 = require("../enums");
5
- class Import {
6
- constructor(options) {
7
- this.keyword = enums_1.eImportKeyword.Default;
8
- this.refs = [];
9
- this.specifiers = [];
10
- Object.assign(this, options);
11
- }
12
- }
13
- exports.Import = Import;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Import = void 0;
4
+ const enums_1 = require("../enums");
5
+ class Import {
6
+ constructor(options) {
7
+ this.keyword = enums_1.eImportKeyword.Default;
8
+ this.refs = [];
9
+ this.specifiers = [];
10
+ Object.assign(this, options);
11
+ }
12
+ }
13
+ exports.Import = Import;
14
14
  //# sourceMappingURL=import.js.map
package/models/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from './api-definition';
2
- export * from './generate-proxy-schema';
3
- export * from './import';
4
- export * from './method';
5
- export * from './model';
6
- export * from './project';
7
- export * from './proxy-config';
8
- export * from './service';
9
- export * from './tree';
10
- export * from './util';
1
+ export * from './api-definition';
2
+ export * from './generate-proxy-schema';
3
+ export * from './import';
4
+ export * from './method';
5
+ export * from './model';
6
+ export * from './project';
7
+ export * from './proxy-config';
8
+ export * from './service';
9
+ export * from './tree';
10
+ export * from './util';
package/models/index.js CHANGED
@@ -1,23 +1,23 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./api-definition"), exports);
14
- __exportStar(require("./generate-proxy-schema"), exports);
15
- __exportStar(require("./import"), exports);
16
- __exportStar(require("./method"), exports);
17
- __exportStar(require("./model"), exports);
18
- __exportStar(require("./project"), exports);
19
- __exportStar(require("./proxy-config"), exports);
20
- __exportStar(require("./service"), exports);
21
- __exportStar(require("./tree"), exports);
22
- __exportStar(require("./util"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./api-definition"), exports);
14
+ __exportStar(require("./generate-proxy-schema"), exports);
15
+ __exportStar(require("./import"), exports);
16
+ __exportStar(require("./method"), exports);
17
+ __exportStar(require("./model"), exports);
18
+ __exportStar(require("./project"), exports);
19
+ __exportStar(require("./proxy-config"), exports);
20
+ __exportStar(require("./service"), exports);
21
+ __exportStar(require("./tree"), exports);
22
+ __exportStar(require("./util"), exports);
23
23
  //# sourceMappingURL=index.js.map