ts-openapi-codegen 2.1.0-beta.8 → 2.1.0-beta.9
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 +4 -0
- package/README.rus.md +4 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +31 -24
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffLomMiracles.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffLomMiracles.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffLomMiracles.test.js +47 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +8 -7
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +8 -7
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts +14 -2
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts.map +1 -1
- package/dist/cli/analyzeDiff/analyzeDiff.js +56 -13
- package/dist/cli/analyzeDiff/ciSummary.d.ts +6 -3
- package/dist/cli/analyzeDiff/ciSummary.d.ts.map +1 -1
- package/dist/cli/analyzeDiff/ciSummary.js +10 -6
- package/dist/cli/analyzeDiff/report.d.ts +0 -1
- package/dist/cli/analyzeDiff/report.d.ts.map +1 -1
- package/dist/cli/analyzeDiff/report.js +1 -3
- package/dist/cli/analyzeDiff/writeLegacyReport.d.ts +2 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.d.ts.map +1 -1
- package/dist/cli/analyzeDiff/writeLegacyReport.js +2 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts +8 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts.map +1 -1
- package/dist/cli/analyzeUsage/core/Scanner.js +10 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts +8 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts.map +1 -1
- package/dist/cli/analyzeUsage/rules/ClientRule.js +10 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts +8 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts.map +1 -1
- package/dist/cli/analyzeUsage/rules/ServiceRule.js +10 -0
- package/dist/common/LoggerMessages.d.ts +5 -0
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +4 -0
- package/dist/core/OpenApiClient.d.ts +8 -0
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +16 -2
- package/dist/core/WriteClient.d.ts +52 -15
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +36 -4
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.js +72 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.js +20 -1
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts +58 -6
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts.map +1 -1
- package/dist/core/semanticDiff/analyzeOpenApiDiff.js +47 -19
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts +11 -1
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts.map +1 -1
- package/dist/core/semanticDiff/semanticDiffReportSchema.js +140 -50
- package/dist/core/types/DiffReport.model.d.ts +101 -0
- package/dist/core/types/DiffReport.model.d.ts.map +1 -0
- package/dist/core/types/DiffReport.model.js +5 -0
- package/dist/core/types/shared/Model.model.d.ts +36 -0
- package/dist/core/types/shared/Model.model.d.ts.map +1 -1
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.js +182 -0
- package/dist/core/utils/__tests__/buildMiraclesFromSemanticChanges.test.d.ts +2 -0
- package/dist/core/utils/__tests__/buildMiraclesFromSemanticChanges.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/buildMiraclesFromSemanticChanges.test.js +77 -0
- package/dist/core/utils/__tests__/expandOpenApiRefsForSemanticDiff.test.d.ts +2 -0
- package/dist/core/utils/__tests__/expandOpenApiRefsForSemanticDiff.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/expandOpenApiRefsForSemanticDiff.test.js +159 -0
- package/dist/core/utils/__tests__/loadDiffReport.test.js +131 -0
- package/dist/core/utils/__tests__/modelHelpers.test.js +27 -9
- package/dist/core/utils/__tests__/prepareDtoModels.test.js +74 -2
- package/dist/core/utils/__tests__/resolveClassesModeTypes.test.d.ts +2 -0
- package/dist/core/utils/__tests__/resolveClassesModeTypes.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/resolveClassesModeTypes.test.js +111 -0
- package/dist/core/utils/__tests__/semanticChangesToDiffEntries.test.d.ts +2 -0
- package/dist/core/utils/__tests__/semanticChangesToDiffEntries.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/semanticChangesToDiffEntries.test.js +68 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.js +10 -11
- package/dist/core/utils/__tests__/templateRendering.test.js +71 -0
- package/dist/core/utils/adapters/__tests__/semanticToStructural.test.d.ts +2 -0
- package/dist/core/utils/adapters/__tests__/semanticToStructural.test.d.ts.map +1 -0
- package/dist/core/utils/adapters/__tests__/semanticToStructural.test.js +63 -0
- package/dist/core/utils/adapters/extractMiraclesFromSemantic.d.ts +10 -0
- package/dist/core/utils/adapters/extractMiraclesFromSemantic.d.ts.map +1 -0
- package/dist/core/utils/adapters/extractMiraclesFromSemantic.js +13 -0
- package/dist/core/utils/adapters/index.d.ts +4 -0
- package/dist/core/utils/adapters/index.d.ts.map +1 -0
- package/dist/core/utils/adapters/index.js +8 -0
- package/dist/core/utils/adapters/semanticToStructural.d.ts +12 -0
- package/dist/core/utils/adapters/semanticToStructural.d.ts.map +1 -0
- package/dist/core/utils/adapters/semanticToStructural.js +36 -0
- package/dist/core/utils/applyDiffReportToClient.d.ts +13 -1
- package/dist/core/utils/applyDiffReportToClient.d.ts.map +1 -1
- package/dist/core/utils/applyDiffReportToClient.js +187 -107
- package/dist/core/utils/buildMiraclesFromSemanticChanges.d.ts +25 -0
- package/dist/core/utils/buildMiraclesFromSemanticChanges.d.ts.map +1 -0
- package/dist/core/utils/buildMiraclesFromSemanticChanges.js +146 -0
- package/dist/core/utils/expandOpenApiRefsForSemanticDiff.d.ts +23 -0
- package/dist/core/utils/expandOpenApiRefsForSemanticDiff.d.ts.map +1 -0
- package/dist/core/utils/expandOpenApiRefsForSemanticDiff.js +163 -0
- package/dist/core/utils/getOpenApiSpec.d.ts +18 -0
- package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
- package/dist/core/utils/getOpenApiSpec.js +35 -0
- package/dist/core/utils/loadDiffReport.d.ts +11 -30
- package/dist/core/utils/loadDiffReport.d.ts.map +1 -1
- package/dist/core/utils/loadDiffReport.js +69 -3
- package/dist/core/utils/loadSemanticOpenApiSpec.d.ts +15 -0
- package/dist/core/utils/loadSemanticOpenApiSpec.d.ts.map +1 -0
- package/dist/core/utils/loadSemanticOpenApiSpec.js +61 -0
- package/dist/core/utils/modelHelpers.d.ts +13 -5
- package/dist/core/utils/modelHelpers.d.ts.map +1 -1
- package/dist/core/utils/modelHelpers.js +28 -23
- package/dist/core/utils/prepareDtoModels.d.ts +5 -0
- package/dist/core/utils/prepareDtoModels.d.ts.map +1 -1
- package/dist/core/utils/prepareDtoModels.js +55 -12
- package/dist/core/utils/resolveClassesModeTypes.d.ts +8 -0
- package/dist/core/utils/resolveClassesModeTypes.d.ts.map +1 -0
- package/dist/core/utils/resolveClassesModeTypes.js +77 -0
- package/dist/core/utils/semanticChangesToDiffEntries.d.ts +37 -0
- package/dist/core/utils/semanticChangesToDiffEntries.d.ts.map +1 -0
- package/dist/core/utils/semanticChangesToDiffEntries.js +99 -0
- package/dist/core/utils/semanticPointerToJsonPath.d.ts +7 -0
- package/dist/core/utils/semanticPointerToJsonPath.d.ts.map +1 -0
- package/dist/core/utils/semanticPointerToJsonPath.js +67 -0
- package/dist/core/utils/serviceHelpers.d.ts +6 -7
- package/dist/core/utils/serviceHelpers.d.ts.map +1 -1
- package/dist/core/utils/serviceHelpers.js +8 -25
- package/dist/core/utils/writeClientServices.d.ts +14 -14
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +4 -8
- package/dist/templatesCompiled/client/exportModels.d.ts +17 -11
- package/dist/templatesCompiled/client/exportModels.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportModels.js +96 -49
- package/dist/templatesCompiled/client/exportService.d.ts +13 -10
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +95 -67
- package/package.json +1 -3
- package/dist/cli/analyzeDiff/buildLegacyReport.d.ts +0 -17
- package/dist/cli/analyzeDiff/buildLegacyReport.d.ts.map +0 -1
- package/dist/cli/analyzeDiff/buildLegacyReport.js +0 -54
- package/dist/cli/analyzeDiff/diffEngine.d.ts +0 -54
- package/dist/cli/analyzeDiff/diffEngine.d.ts.map +0 -1
- package/dist/cli/analyzeDiff/diffEngine.js +0 -209
|
@@ -13,8 +13,36 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
13
13
|
}
|
|
14
14
|
return undefined;
|
|
15
15
|
};
|
|
16
|
-
return ((stack1 = lookupProperty(helpers, "
|
|
16
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "modelsMode"), "classes", { "name": "equals", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(5, data, 0), "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 12, "column": 11 } } })) != null ? stack1 : "");
|
|
17
17
|
}, "2": function (container, depth0, helpers, partials, data) {
|
|
18
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
19
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
20
|
+
return parent[propertyName];
|
|
21
|
+
}
|
|
22
|
+
return undefined;
|
|
23
|
+
};
|
|
24
|
+
return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "imports"), { "name": "each", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 9 } } })) != null ? stack1 : "");
|
|
25
|
+
}, "3": function (container, depth0, helpers, partials, data) {
|
|
26
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
28
|
+
return parent[propertyName];
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
};
|
|
32
|
+
return "import type { "
|
|
33
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
34
|
+
+ " } from '"
|
|
35
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "outputModels"), "models", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 6, "column": 33 }, "end": { "line": 6, "column": 75 } } })) != null ? stack1 : "")
|
|
36
|
+
+ "';\n";
|
|
37
|
+
}, "5": function (container, depth0, helpers, partials, data) {
|
|
38
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
40
|
+
return parent[propertyName];
|
|
41
|
+
}
|
|
42
|
+
return undefined;
|
|
43
|
+
};
|
|
44
|
+
return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "imports"), { "name": "each", "hash": {}, "fn": container.program(6, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 11, "column": 9 } } })) != null ? stack1 : "");
|
|
45
|
+
}, "6": function (container, depth0, helpers, partials, data) {
|
|
18
46
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
19
47
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
20
48
|
return parent[propertyName];
|
|
@@ -22,16 +50,16 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
22
50
|
return undefined;
|
|
23
51
|
};
|
|
24
52
|
return "import type { "
|
|
25
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
26
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(
|
|
53
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
54
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 10, "column": 24 }, "end": { "line": 10, "column": 59 } } })) != null ? stack1 : "")
|
|
27
55
|
+ " } from '"
|
|
28
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputModels"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
56
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputModels"), lookupProperty(depth0, "path"), { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 106 } } })) != null ? stack1 : "")
|
|
29
57
|
+ "';\n";
|
|
30
|
-
}, "
|
|
58
|
+
}, "7": function (container, depth0, helpers, partials, data) {
|
|
31
59
|
var stack1;
|
|
32
60
|
return " as "
|
|
33
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "alias", { "start": { "line":
|
|
34
|
-
}, "
|
|
61
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "alias", { "start": { "line": 10, "column": 44 }, "end": { "line": 10, "column": 49 } }), depth0)) != null ? stack1 : "");
|
|
62
|
+
}, "9": function (container, depth0, helpers, partials, data) {
|
|
35
63
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
36
64
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
37
65
|
return parent[propertyName];
|
|
@@ -39,9 +67,9 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
39
67
|
return undefined;
|
|
40
68
|
};
|
|
41
69
|
return "import type { CancelablePromise } from '"
|
|
42
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "outputCore"), "CancelablePromise", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
70
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "outputCore"), "CancelablePromise", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 15, "column": 40 }, "end": { "line": 15, "column": 91 } } })) != null ? stack1 : "")
|
|
43
71
|
+ "';\n";
|
|
44
|
-
}, "
|
|
72
|
+
}, "11": function (container, depth0, helpers, partials, data) {
|
|
45
73
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
46
74
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
47
75
|
return parent[propertyName];
|
|
@@ -49,13 +77,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
49
77
|
return undefined;
|
|
50
78
|
};
|
|
51
79
|
return "const "
|
|
52
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
80
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 13 } }), depth0)) != null ? stack1 : "")
|
|
53
81
|
+ " = ("
|
|
54
82
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
55
83
|
+ "): RequestConfig => ({\n "
|
|
56
84
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "serviceOption"), depth0, { "name": "serviceOption", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
57
85
|
+ "});\n\n";
|
|
58
|
-
}, "
|
|
86
|
+
}, "13": function (container, depth0, helpers, partials, data) {
|
|
59
87
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
60
88
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
61
89
|
return parent[propertyName];
|
|
@@ -63,18 +91,18 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
63
91
|
return undefined;
|
|
64
92
|
};
|
|
65
93
|
return " "
|
|
66
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
94
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 29, "column": 7 }, "end": { "line": 29, "column": 11 } }), depth0)) != null ? stack1 : "")
|
|
67
95
|
+ ": ("
|
|
68
96
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parametersDefinition"), depth0, { "name": "parametersDefinition", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
69
97
|
+ ") => RequestConfig;\n";
|
|
70
|
-
}, "
|
|
98
|
+
}, "15": function (container, depth0, helpers, partials, data) {
|
|
71
99
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
72
100
|
return " "
|
|
73
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
101
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 35, "column": 7 }, "end": { "line": 35, "column": 11 } }), depth0)) != null ? stack1 : "")
|
|
74
102
|
+ ": "
|
|
75
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
103
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 35, "column": 19 }, "end": { "line": 35, "column": 23 } }), depth0)) != null ? stack1 : "")
|
|
76
104
|
+ ",\n";
|
|
77
|
-
}, "
|
|
105
|
+
}, "17": function (container, depth0, helpers, partials, data, blockParams, depths) {
|
|
78
106
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), alias2 = container.strict, alias3 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
79
107
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
80
108
|
return parent[propertyName];
|
|
@@ -82,94 +110,94 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
82
110
|
return undefined;
|
|
83
111
|
};
|
|
84
112
|
return " /**\n"
|
|
85
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "deprecated"), { "name": "if", "hash": {}, "fn": container.program(
|
|
86
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "summary"), { "name": "if", "hash": {}, "fn": container.program(
|
|
87
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "description"), { "name": "if", "hash": {}, "fn": container.program(
|
|
88
|
-
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useOptions"), { "name": "unless", "hash": {}, "fn": container.program(
|
|
89
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "results"), { "name": "each", "hash": {}, "fn": container.program(
|
|
113
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "deprecated"), { "name": "if", "hash": {}, "fn": container.program(18, data, 0, blockParams, depths), "inverse": container.program(20, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 50, "column": 11 } } })) != null ? stack1 : "")
|
|
114
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "summary"), { "name": "if", "hash": {}, "fn": container.program(24, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 51, "column": 4 }, "end": { "line": 53, "column": 11 } } })) != null ? stack1 : "")
|
|
115
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "description"), { "name": "if", "hash": {}, "fn": container.program(26, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 54, "column": 4 }, "end": { "line": 56, "column": 11 } } })) != null ? stack1 : "")
|
|
116
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useOptions"), { "name": "unless", "hash": {}, "fn": container.program(28, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 63, "column": 15 } } })) != null ? stack1 : "")
|
|
117
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "results"), { "name": "each", "hash": {}, "fn": container.program(32, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 66, "column": 13 } } })) != null ? stack1 : "")
|
|
90
118
|
+ " * @throws ApiError\n */\n"
|
|
91
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(
|
|
119
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(34, data, 0, blockParams, depths), "inverse": container.program(36, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 69, "column": 4 }, "end": { "line": 79, "column": 11 } } })) != null ? stack1 : "")
|
|
92
120
|
+ " return this.executor.request<"
|
|
93
121
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
94
122
|
+ ">(\n "
|
|
95
|
-
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line":
|
|
123
|
+
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line": 81, "column": 15 }, "end": { "line": 81, "column": 28 } }), depth0)) != null ? stack1 : "")
|
|
96
124
|
+ "Options."
|
|
97
|
-
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line":
|
|
125
|
+
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 81, "column": 42 }, "end": { "line": 81, "column": 46 } }), depth0)) != null ? stack1 : "")
|
|
98
126
|
+ "("
|
|
99
127
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
100
128
|
+ "),\n options\n );\n }\n\n"
|
|
101
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(
|
|
129
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(38, data, 0, blockParams, depths), "inverse": container.program(40, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 86, "column": 4 }, "end": { "line": 96, "column": 11 } } })) != null ? stack1 : "")
|
|
102
130
|
+ " return this.executor.requestRaw<"
|
|
103
131
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
104
132
|
+ ">(\n "
|
|
105
|
-
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line":
|
|
133
|
+
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line": 98, "column": 15 }, "end": { "line": 98, "column": 28 } }), depth0)) != null ? stack1 : "")
|
|
106
134
|
+ "Options."
|
|
107
|
-
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line":
|
|
135
|
+
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 98, "column": 42 }, "end": { "line": 98, "column": 46 } }), depth0)) != null ? stack1 : "")
|
|
108
136
|
+ "("
|
|
109
137
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
110
138
|
+ "),\n options\n );\n }\n";
|
|
111
|
-
}, "
|
|
139
|
+
}, "18": function (container, depth0, helpers, partials, data) {
|
|
112
140
|
return " * @deprecated\n";
|
|
113
|
-
}, "
|
|
141
|
+
}, "20": function (container, depth0, helpers, partials, data) {
|
|
114
142
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
115
143
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
116
144
|
return parent[propertyName];
|
|
117
145
|
}
|
|
118
146
|
return undefined;
|
|
119
147
|
};
|
|
120
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "diff"), { "name": "if", "hash": {}, "fn": container.program(
|
|
121
|
-
}, "
|
|
148
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "diff"), { "name": "if", "hash": {}, "fn": container.program(21, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 46, "column": 4 }, "end": { "line": 50, "column": 4 } } })) != null ? stack1 : "");
|
|
149
|
+
}, "21": function (container, depth0, helpers, partials, data) {
|
|
122
150
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
123
151
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
124
152
|
return parent[propertyName];
|
|
125
153
|
}
|
|
126
154
|
return undefined;
|
|
127
155
|
};
|
|
128
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(depth0, "diff"), "action"), "removed", { "name": "equals", "hash": {}, "fn": container.program(
|
|
156
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(depth0, "diff"), "action"), "removed", { "name": "equals", "hash": {}, "fn": container.program(22, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 47, "column": 4 }, "end": { "line": 49, "column": 15 } } })) != null ? stack1 : "")
|
|
129
157
|
+ " ";
|
|
130
|
-
}, "
|
|
158
|
+
}, "22": function (container, depth0, helpers, partials, data) {
|
|
131
159
|
return " * @deprecated Removed from API\n";
|
|
132
|
-
}, "
|
|
160
|
+
}, "24": function (container, depth0, helpers, partials, data) {
|
|
133
161
|
var stack1;
|
|
134
162
|
return " * "
|
|
135
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "summary", { "start": { "line":
|
|
163
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "summary", { "start": { "line": 52, "column": 10 }, "end": { "line": 52, "column": 17 } }), depth0)) != null ? stack1 : "")
|
|
136
164
|
+ "\n";
|
|
137
|
-
}, "
|
|
165
|
+
}, "26": function (container, depth0, helpers, partials, data) {
|
|
138
166
|
var stack1;
|
|
139
167
|
return " * "
|
|
140
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "description", { "start": { "line":
|
|
168
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "description", { "start": { "line": 55, "column": 10 }, "end": { "line": 55, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
141
169
|
+ "\n";
|
|
142
|
-
}, "
|
|
170
|
+
}, "28": function (container, depth0, helpers, partials, data) {
|
|
143
171
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
144
172
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
145
173
|
return parent[propertyName];
|
|
146
174
|
}
|
|
147
175
|
return undefined;
|
|
148
176
|
};
|
|
149
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "if", "hash": {}, "fn": container.program(
|
|
150
|
-
}, "
|
|
177
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "if", "hash": {}, "fn": container.program(29, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 62, "column": 11 } } })) != null ? stack1 : "");
|
|
178
|
+
}, "29": function (container, depth0, helpers, partials, data) {
|
|
151
179
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
152
180
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
153
181
|
return parent[propertyName];
|
|
154
182
|
}
|
|
155
183
|
return undefined;
|
|
156
184
|
};
|
|
157
|
-
return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "each", "hash": {}, "fn": container.program(
|
|
158
|
-
}, "
|
|
185
|
+
return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "each", "hash": {}, "fn": container.program(30, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 59, "column": 4 }, "end": { "line": 61, "column": 13 } } })) != null ? stack1 : "");
|
|
186
|
+
}, "30": function (container, depth0, helpers, partials, data) {
|
|
159
187
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
160
188
|
return " * @param "
|
|
161
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
189
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 60, "column": 17 }, "end": { "line": 60, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
162
190
|
+ " "
|
|
163
|
-
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line":
|
|
191
|
+
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 60, "column": 28 }, "end": { "line": 60, "column": 39 } }), depth0)) != null ? stack1 : "")
|
|
164
192
|
+ "\n";
|
|
165
|
-
}, "
|
|
193
|
+
}, "32": function (container, depth0, helpers, partials, data) {
|
|
166
194
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
167
195
|
return " * @returns "
|
|
168
|
-
+ ((stack1 = alias2(alias1(depth0, "type", { "start": { "line":
|
|
196
|
+
+ ((stack1 = alias2(alias1(depth0, "type", { "start": { "line": 65, "column": 19 }, "end": { "line": 65, "column": 23 } }), depth0)) != null ? stack1 : "")
|
|
169
197
|
+ " "
|
|
170
|
-
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line":
|
|
198
|
+
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 65, "column": 30 }, "end": { "line": 65, "column": 41 } }), depth0)) != null ? stack1 : "")
|
|
171
199
|
+ "\n";
|
|
172
|
-
}, "
|
|
200
|
+
}, "34": function (container, depth0, helpers, partials, data) {
|
|
173
201
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
174
202
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
175
203
|
return parent[propertyName];
|
|
@@ -177,13 +205,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
177
205
|
return undefined;
|
|
178
206
|
};
|
|
179
207
|
return " public "
|
|
180
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
208
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 70, "column": 14 }, "end": { "line": 70, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
181
209
|
+ "(\n "
|
|
182
210
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
183
211
|
+ " options?: TOptions,\n ): CancelablePromise<"
|
|
184
212
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
185
213
|
+ "> {\n";
|
|
186
|
-
}, "
|
|
214
|
+
}, "36": function (container, depth0, helpers, partials, data) {
|
|
187
215
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
188
216
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
189
217
|
return parent[propertyName];
|
|
@@ -191,13 +219,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
191
219
|
return undefined;
|
|
192
220
|
};
|
|
193
221
|
return " public "
|
|
194
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
222
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 75, "column": 14 }, "end": { "line": 75, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
195
223
|
+ "(\n "
|
|
196
224
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
197
225
|
+ " options?: TOptions,\n ): Promise<"
|
|
198
226
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
199
227
|
+ "> {\n";
|
|
200
|
-
}, "
|
|
228
|
+
}, "38": function (container, depth0, helpers, partials, data) {
|
|
201
229
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
202
230
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
203
231
|
return parent[propertyName];
|
|
@@ -205,13 +233,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
205
233
|
return undefined;
|
|
206
234
|
};
|
|
207
235
|
return " public "
|
|
208
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
236
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 87, "column": 14 }, "end": { "line": 87, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
209
237
|
+ "Raw(\n "
|
|
210
238
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
211
239
|
+ " options?: TOptions,\n ): CancelablePromise<ApiResult<"
|
|
212
240
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
213
241
|
+ ">> {\n";
|
|
214
|
-
}, "
|
|
242
|
+
}, "40": function (container, depth0, helpers, partials, data) {
|
|
215
243
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
216
244
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
217
245
|
return parent[propertyName];
|
|
@@ -219,7 +247,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
219
247
|
return undefined;
|
|
220
248
|
};
|
|
221
249
|
return " public "
|
|
222
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
250
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 92, "column": 14 }, "end": { "line": 92, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
223
251
|
+ "Raw(\n "
|
|
224
252
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
225
253
|
+ " options?: TOptions,\n ): Promise<ApiResult<"
|
|
@@ -234,27 +262,27 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
234
262
|
};
|
|
235
263
|
return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
236
264
|
+ "\n"
|
|
237
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "imports"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line":
|
|
238
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(
|
|
265
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "imports"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 13, "column": 7 } } })) != null ? stack1 : "")
|
|
266
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 16, "column": 7 } } })) != null ? stack1 : "")
|
|
239
267
|
+ "import type { RequestExecutor, RequestConfig } from '"
|
|
240
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "./executor/requestExecutor", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
268
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "./executor/requestExecutor", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 17, "column": 53 }, "end": { "line": 17, "column": 113 } } })) != null ? stack1 : "")
|
|
241
269
|
+ "';\nimport type { ApiResult } from '"
|
|
242
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "ApiResult", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line":
|
|
270
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "ApiResult", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 18, "column": 32 }, "end": { "line": 18, "column": 75 } } })) != null ? stack1 : "")
|
|
243
271
|
+ "';\n\n"
|
|
244
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
272
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(11, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 20, "column": 0 }, "end": { "line": 25, "column": 9 } } })) != null ? stack1 : "")
|
|
245
273
|
+ "\nexport type T"
|
|
246
|
-
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line":
|
|
274
|
+
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 26 } }), depth0)) != null ? stack1 : "")
|
|
247
275
|
+ "Options = {\n"
|
|
248
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
276
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(13, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 28, "column": 0 }, "end": { "line": 30, "column": 9 } } })) != null ? stack1 : "")
|
|
249
277
|
+ "};\n\nexport const "
|
|
250
|
-
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line":
|
|
278
|
+
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 33, "column": 16 }, "end": { "line": 33, "column": 26 } }), depth0)) != null ? stack1 : "")
|
|
251
279
|
+ "Options: T"
|
|
252
|
-
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line":
|
|
280
|
+
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 33, "column": 42 }, "end": { "line": 33, "column": 52 } }), depth0)) != null ? stack1 : "")
|
|
253
281
|
+ "Options = {\n"
|
|
254
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
282
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(15, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 34, "column": 0 }, "end": { "line": 36, "column": 9 } } })) != null ? stack1 : "")
|
|
255
283
|
+ "};\n\nexport class "
|
|
256
|
-
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line":
|
|
284
|
+
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 39, "column": 16 }, "end": { "line": 39, "column": 20 } }), depth0)) != null ? stack1 : "")
|
|
257
285
|
+ "<TOptions = unknown> {\n constructor(private readonly executor: RequestExecutor<TOptions>) {}\n\n"
|
|
258
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
286
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(17, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 42, "column": 4 }, "end": { "line": 102, "column": 13 } } })) != null ? stack1 : "")
|
|
259
287
|
+ "}\n";
|
|
260
288
|
}, "usePartial": true, "useData": true, "useDepths": true };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-openapi-codegen",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.9",
|
|
4
4
|
"description": "Library that generates Typescript clients based on the OpenAPI specification. It bases on openapi-typescript-codegen",
|
|
5
5
|
"author": "Alexey Zverev",
|
|
6
6
|
"homepage": "https://github.com/ozonophore/openapi-codegen.git",
|
|
@@ -72,7 +72,6 @@
|
|
|
72
72
|
"chalk": "^4.1.2",
|
|
73
73
|
"commander": "9.0.0",
|
|
74
74
|
"configstore": "^5.0.1",
|
|
75
|
-
"deep-diff": "^1.0.2",
|
|
76
75
|
"diff": "^8.0.2",
|
|
77
76
|
"enquirer": "^2.4.1",
|
|
78
77
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -93,7 +92,6 @@
|
|
|
93
92
|
"@eslint/js": "^9.29.0",
|
|
94
93
|
"@types/axios": "^0.14.0",
|
|
95
94
|
"@types/configstore": "^6.0.2",
|
|
96
|
-
"@types/deep-diff": "^1.0.5",
|
|
97
95
|
"@types/figlet": "^1.5.8",
|
|
98
96
|
"@types/glob": "^8.1.0",
|
|
99
97
|
"@types/json-schema": "^7.0.15",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DiffReport, IgnoreRule, JsonValue } from './types';
|
|
2
|
-
type BuildLegacyReportParams = {
|
|
3
|
-
baseLabel: string;
|
|
4
|
-
targetLabel: string;
|
|
5
|
-
oldSpec: JsonValue;
|
|
6
|
-
newSpec: JsonValue;
|
|
7
|
-
ignoreRules: IgnoreRule[];
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Собирает legacy diff-отчет по сравнению двух спецификаций.
|
|
11
|
-
*/
|
|
12
|
-
export declare function buildLegacyReport(params: BuildLegacyReportParams): {
|
|
13
|
-
report: DiffReport;
|
|
14
|
-
ignored: number;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=buildLegacyReport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildLegacyReport.d.ts","sourceRoot":"","sources":["../../../src/cli/analyzeDiff/buildLegacyReport.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAa,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE5E,KAAK,uBAAuB,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA6C1G"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.buildLegacyReport = buildLegacyReport;
|
|
7
|
-
const crypto_1 = __importDefault(require("crypto"));
|
|
8
|
-
const diffEngine_1 = require("./diffEngine");
|
|
9
|
-
const ignoreRules_1 = require("./ignoreRules");
|
|
10
|
-
const miracles_1 = require("./miracles");
|
|
11
|
-
/**
|
|
12
|
-
* Собирает legacy diff-отчет по сравнению двух спецификаций.
|
|
13
|
-
*/
|
|
14
|
-
function buildLegacyReport(params) {
|
|
15
|
-
const { baseLabel, targetLabel, oldSpec, newSpec, ignoreRules } = params;
|
|
16
|
-
const normalizedOld = (0, diffEngine_1.normalizeForDiff)(oldSpec);
|
|
17
|
-
const normalizedNew = (0, diffEngine_1.normalizeForDiff)(newSpec);
|
|
18
|
-
const baseHash = crypto_1.default.createHash('sha256').update(JSON.stringify(normalizedOld)).digest('hex');
|
|
19
|
-
const targetHash = crypto_1.default.createHash('sha256').update(JSON.stringify(normalizedNew)).digest('hex');
|
|
20
|
-
const entries = (0, diffEngine_1.withDiffType)((0, diffEngine_1.collectDiffEntries)(normalizedOld, normalizedNew));
|
|
21
|
-
const { filtered, ignored } = (0, ignoreRules_1.applyIgnoreRules)(entries, ignoreRules);
|
|
22
|
-
const breakingCount = filtered.filter(entry => entry.severity === 'breaking').length;
|
|
23
|
-
const stabilityScore = filtered.length === 0 ? 100 : Math.round(((filtered.length - breakingCount) / filtered.length) * 100);
|
|
24
|
-
const stats = {
|
|
25
|
-
totalChanges: filtered.length,
|
|
26
|
-
added: filtered.filter(entry => entry.action === 'added').length,
|
|
27
|
-
removed: filtered.filter(entry => entry.action === 'removed').length,
|
|
28
|
-
changed: filtered.filter(entry => entry.action === 'changed').length,
|
|
29
|
-
ignored: ignored || undefined,
|
|
30
|
-
stabilityScore,
|
|
31
|
-
};
|
|
32
|
-
const breaking = filtered.filter(entry => entry.severity === 'breaking');
|
|
33
|
-
const warnings = filtered.filter(entry => entry.severity === 'warning');
|
|
34
|
-
const info = filtered.filter(entry => entry.severity === 'info');
|
|
35
|
-
const report = {
|
|
36
|
-
version: '1.0.0',
|
|
37
|
-
timestamp: new Date().toISOString(),
|
|
38
|
-
metadata: {
|
|
39
|
-
base: baseLabel,
|
|
40
|
-
target: targetLabel,
|
|
41
|
-
baseHash,
|
|
42
|
-
targetHash,
|
|
43
|
-
},
|
|
44
|
-
stats,
|
|
45
|
-
diff: {
|
|
46
|
-
breaking,
|
|
47
|
-
warnings,
|
|
48
|
-
info,
|
|
49
|
-
all: filtered,
|
|
50
|
-
},
|
|
51
|
-
miracles: (0, miracles_1.buildMiracles)(entries, normalizedOld, normalizedNew),
|
|
52
|
-
};
|
|
53
|
-
return { report, ignored };
|
|
54
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Diff } from 'deep-diff';
|
|
2
|
-
import type { DiffAction, DiffEntry, JsonValue } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Проверяет, содержит ли путь сегменты, указывающие на полиморфную схему (oneOf/anyOf).
|
|
5
|
-
* @param segments сегменты json-path
|
|
6
|
-
* @returns true если встречены полиморфные сегменты
|
|
7
|
-
*/
|
|
8
|
-
export declare const hasPolymorphicSegment: (segments: (string | number)[]) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Классифицирует серьёзность изменения по действию (added/removed/changed).
|
|
11
|
-
* @param action действие изменения
|
|
12
|
-
* @returns уровень серьёзности
|
|
13
|
-
*/
|
|
14
|
-
export declare const classifySeverity: (action: DiffAction) => "info" | "warning" | "breaking";
|
|
15
|
-
/**
|
|
16
|
-
* Строит единичную запись отличия из набора сегментов пути и значений.
|
|
17
|
-
* Добавляет заметку при полиморфных изменениях.
|
|
18
|
-
* @param action действие изменения
|
|
19
|
-
* @param segments сегменты пути
|
|
20
|
-
* @param from предыдущее значение
|
|
21
|
-
* @param to новое значение
|
|
22
|
-
* @returns готовая запись DiffEntry
|
|
23
|
-
*/
|
|
24
|
-
export declare const buildDiffEntry: (action: DiffAction, segments: (string | number)[], from?: JsonValue, to?: JsonValue) => DiffEntry;
|
|
25
|
-
/**
|
|
26
|
-
* Пытается классифицировать тип изменения по структуре json-path и самой записи.
|
|
27
|
-
* Возвращает семантические коды типа изменения (METHOD_REMOVED, PROPERTY_ADDED и т.д.).
|
|
28
|
-
* @param entry запись diff
|
|
29
|
-
* @returns код типа изменения или undefined
|
|
30
|
-
*/
|
|
31
|
-
export declare const classifyDiffType: (entry: DiffEntry) => string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Добавляет поле type к каждой записи diff, вычисленное через classifyDiffType, если отсутствует.
|
|
34
|
-
* @param entries массив записей diff
|
|
35
|
-
* @returns массив записей с полем type
|
|
36
|
-
*/
|
|
37
|
-
export declare const withDiffType: (entries: DiffEntry[]) => DiffEntry[];
|
|
38
|
-
/**
|
|
39
|
-
* Преобразует единичный объект отличия из deep-diff в один или несколько DiffEntry.
|
|
40
|
-
* Обрабатывает массивные/индексные отличия (kind 'A') рекурсивно.
|
|
41
|
-
* @param difference объект отличия от deep-diff
|
|
42
|
-
* @returns массив DiffEntry
|
|
43
|
-
*/
|
|
44
|
-
export declare const diffToEntries: (difference: Diff<unknown, unknown>) => DiffEntry[];
|
|
45
|
-
/**
|
|
46
|
-
* Собирает все записи отличий между двумя JSON-структурами: старой и новой.
|
|
47
|
-
* Выполняет глубокое сравнение и маппинг на DiffEntry.
|
|
48
|
-
* @param oldValue старая версия спецификации
|
|
49
|
-
* @param newValue новая версия спецификации
|
|
50
|
-
* @returns массив DiffEntry
|
|
51
|
-
*/
|
|
52
|
-
export declare const collectDiffEntries: (oldValue: JsonValue, newValue: JsonValue) => DiffEntry[];
|
|
53
|
-
export declare const normalizeForDiff: (value: JsonValue) => JsonValue;
|
|
54
|
-
//# sourceMappingURL=diffEngine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diffEngine.d.ts","sourceRoot":"","sources":["../../../src/cli/analyzeDiff/diffEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAoB,MAAM,WAAW,CAAC;AAMnD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAG,OAErE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,UAAU,oCAUlD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,UAAU,EAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,OAAO,SAAS,EAAE,KAAK,SAAS,KAAG,SAoBpH,CAAC;AA0BF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,SAAS,KAAG,MAAM,GAAG,SAwC5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,SAAS,EAAE,KAAG,SAAS,EAK5D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,YAAY,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,KAAG,SAAS,EA8B3E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,SAAS,EAAE,UAAU,SAAS,KAAG,SAAS,EAMtF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,SAAS,KAAG,SAGnD,CAAC"}
|