@skmtc/core 0.0.227 → 0.0.228
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/esm/mod.d.ts +0 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +0 -1
- package/esm/oas/array/Array.d.ts +1 -1
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +20 -12
- package/esm/oas/boolean/Boolean.d.ts +1 -1
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +18 -10
- package/esm/oas/components/Components.d.ts +1 -2
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +21 -13
- package/esm/oas/discriminator/Discriminator.d.ts +1 -1
- package/esm/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/esm/oas/discriminator/Discriminator.js +16 -8
- package/esm/oas/document/Document.d.ts +1 -2
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/document/Document.js +20 -12
- package/esm/oas/example/Example.d.ts +1 -2
- package/esm/oas/example/Example.d.ts.map +1 -1
- package/esm/oas/example/Example.js +18 -10
- package/esm/oas/header/Header.d.ts +1 -1
- package/esm/oas/header/Header.d.ts.map +1 -1
- package/esm/oas/header/Header.js +22 -14
- package/esm/oas/info/Info.d.ts +1 -1
- package/esm/oas/info/Info.d.ts.map +1 -1
- package/esm/oas/info/Info.js +21 -13
- package/esm/oas/integer/Integer.d.ts +1 -1
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +20 -12
- package/esm/oas/intersection/Intersection.d.ts +1 -1
- package/esm/oas/intersection/Intersection.d.ts.map +1 -1
- package/esm/oas/intersection/Intersection.js +20 -12
- package/esm/oas/mediaType/MediaType.d.ts +1 -1
- package/esm/oas/mediaType/MediaType.d.ts.map +1 -1
- package/esm/oas/mediaType/MediaType.js +18 -10
- package/esm/oas/number/Number.d.ts +1 -1
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +18 -10
- package/esm/oas/object/Object.d.ts +1 -1
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +21 -13
- package/esm/oas/operation/Operation.d.ts +6 -1
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +41 -18
- package/esm/oas/parameter/Parameter.d.ts +1 -1
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +32 -20
- package/esm/oas/pathItem/PathItem.d.ts +1 -1
- package/esm/oas/pathItem/PathItem.d.ts.map +1 -1
- package/esm/oas/pathItem/PathItem.js +18 -10
- package/esm/oas/ref/Ref.d.ts +1 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +21 -13
- package/esm/oas/requestBody/RequestBody.d.ts +1 -1
- package/esm/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/esm/oas/requestBody/RequestBody.js +19 -11
- package/esm/oas/response/Response.d.ts +1 -1
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +19 -11
- package/esm/oas/string/String.d.ts +1 -1
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +20 -12
- package/esm/oas/tag/Tag.d.ts +1 -1
- package/esm/oas/tag/Tag.d.ts.map +1 -1
- package/esm/oas/tag/Tag.js +17 -9
- package/esm/oas/union/Union.d.ts +1 -1
- package/esm/oas/union/Union.d.ts.map +1 -1
- package/esm/oas/union/Union.js +20 -12
- package/esm/oas/unknown/Unknown.d.ts +1 -1
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +17 -9
- package/esm/oas/void/Void.d.ts +1 -1
- package/esm/oas/void/Void.d.ts.map +1 -1
- package/esm/oas/void/Void.js +17 -9
- package/esm/types/Settings.d.ts +0 -4
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +0 -1
- package/package.json +1 -5
- package/script/mod.d.ts +0 -1
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +0 -1
- package/script/oas/array/Array.d.ts +1 -1
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +20 -12
- package/script/oas/boolean/Boolean.d.ts +1 -1
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +18 -10
- package/script/oas/components/Components.d.ts +1 -2
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +21 -13
- package/script/oas/discriminator/Discriminator.d.ts +1 -1
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/script/oas/discriminator/Discriminator.js +16 -8
- package/script/oas/document/Document.d.ts +1 -2
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/document/Document.js +20 -12
- package/script/oas/example/Example.d.ts +1 -2
- package/script/oas/example/Example.d.ts.map +1 -1
- package/script/oas/example/Example.js +18 -10
- package/script/oas/header/Header.d.ts +1 -1
- package/script/oas/header/Header.d.ts.map +1 -1
- package/script/oas/header/Header.js +22 -14
- package/script/oas/info/Info.d.ts +1 -1
- package/script/oas/info/Info.d.ts.map +1 -1
- package/script/oas/info/Info.js +21 -13
- package/script/oas/integer/Integer.d.ts +1 -1
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +20 -12
- package/script/oas/intersection/Intersection.d.ts +1 -1
- package/script/oas/intersection/Intersection.d.ts.map +1 -1
- package/script/oas/intersection/Intersection.js +20 -12
- package/script/oas/mediaType/MediaType.d.ts +1 -1
- package/script/oas/mediaType/MediaType.d.ts.map +1 -1
- package/script/oas/mediaType/MediaType.js +18 -10
- package/script/oas/number/Number.d.ts +1 -1
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +18 -10
- package/script/oas/object/Object.d.ts +1 -1
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +21 -13
- package/script/oas/operation/Operation.d.ts +6 -1
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +41 -18
- package/script/oas/parameter/Parameter.d.ts +1 -1
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +32 -20
- package/script/oas/pathItem/PathItem.d.ts +1 -1
- package/script/oas/pathItem/PathItem.d.ts.map +1 -1
- package/script/oas/pathItem/PathItem.js +18 -10
- package/script/oas/ref/Ref.d.ts +1 -1
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +21 -13
- package/script/oas/requestBody/RequestBody.d.ts +1 -1
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/script/oas/requestBody/RequestBody.js +19 -11
- package/script/oas/response/Response.d.ts +1 -1
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +19 -11
- package/script/oas/string/String.d.ts +1 -1
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +20 -12
- package/script/oas/tag/Tag.d.ts +1 -1
- package/script/oas/tag/Tag.d.ts.map +1 -1
- package/script/oas/tag/Tag.js +17 -9
- package/script/oas/union/Union.d.ts +1 -1
- package/script/oas/union/Union.d.ts.map +1 -1
- package/script/oas/union/Union.js +20 -12
- package/script/oas/unknown/Unknown.d.ts +1 -1
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +17 -9
- package/script/oas/void/Void.d.ts +1 -1
- package/script/oas/void/Void.d.ts.map +1 -1
- package/script/oas/void/Void.js +17 -9
- package/script/types/Settings.d.ts +0 -4
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +0 -1
- package/esm/schemas/client.d.ts +0 -240
- package/esm/schemas/client.d.ts.map +0 -1
- package/esm/schemas/client.js +0 -174
- package/esm/typescript/toParamsObject.d.ts +0 -3
- package/esm/typescript/toParamsObject.d.ts.map +0 -1
- package/esm/typescript/toParamsObject.js +0 -12
- package/script/schemas/client.d.ts +0 -240
- package/script/schemas/client.d.ts.map +0 -1
- package/script/schemas/client.js +0 -176
- package/script/typescript/toParamsObject.d.ts +0 -3
- package/script/typescript/toParamsObject.d.ts.map +0 -1
- package/script/typescript/toParamsObject.js +0 -16
package/esm/schemas/client.js
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import "../_dnt.polyfills.js";
|
|
2
|
-
export default {
|
|
3
|
-
"$schema": "https://json-schema.org/draft-07/schema",
|
|
4
|
-
"$id": "https://schemas.skmtc.dev/client.json",
|
|
5
|
-
"title": "Settings",
|
|
6
|
-
"description": "Settings for Skmtc code generation",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"serverName": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"stackName": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"deploymentId": {
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"settings": {
|
|
19
|
-
"$ref": "#/definitions/ClientSettings"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"required": ["settings"],
|
|
23
|
-
"definitions": {
|
|
24
|
-
"ClientSettings": {
|
|
25
|
-
"properties": {
|
|
26
|
-
"alias": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"additionalProperties": {
|
|
29
|
-
"type": "string"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"basePath": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
},
|
|
35
|
-
"generators": {
|
|
36
|
-
"$ref": "#/definitions/Generators"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"required": ["generators"]
|
|
40
|
-
},
|
|
41
|
-
"Generators": {
|
|
42
|
-
"oneOf": [{
|
|
43
|
-
"$ref": "#/definitions/Transformers"
|
|
44
|
-
}, {
|
|
45
|
-
"$ref": "#/definitions/Models"
|
|
46
|
-
}]
|
|
47
|
-
},
|
|
48
|
-
"Schemas": {
|
|
49
|
-
"type": "object",
|
|
50
|
-
"properties": {
|
|
51
|
-
"root": {
|
|
52
|
-
"$ref": "#/definitions/Root"
|
|
53
|
-
},
|
|
54
|
-
"schemas": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"additionalProperties": {
|
|
57
|
-
"$ref": "#/definitions/Model"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"Root": {
|
|
63
|
-
"type": "object",
|
|
64
|
-
"required": ["creatorSource"],
|
|
65
|
-
"properties": {
|
|
66
|
-
"defaultSelected": {
|
|
67
|
-
"type": "boolean"
|
|
68
|
-
},
|
|
69
|
-
"creatorSource": {
|
|
70
|
-
"type": "string"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"additionalProperties": {
|
|
74
|
-
"type": "string"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"Transformers": {
|
|
78
|
-
"type": "object",
|
|
79
|
-
"additionalProperties": {
|
|
80
|
-
"type": "object",
|
|
81
|
-
"properties": {
|
|
82
|
-
"root": {
|
|
83
|
-
"$ref": "#/definitions/Root"
|
|
84
|
-
},
|
|
85
|
-
"operations": {
|
|
86
|
-
"$ref": "#/definitions/Operations"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"Models": {
|
|
92
|
-
"type": "object",
|
|
93
|
-
"additionalProperties": {
|
|
94
|
-
"type": "object",
|
|
95
|
-
"properties": {
|
|
96
|
-
"root": {
|
|
97
|
-
"$ref": "#/definitions/Root"
|
|
98
|
-
},
|
|
99
|
-
"models": {
|
|
100
|
-
"$ref": "#/definitions/Schemas"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"Operation": {
|
|
106
|
-
"type": "object",
|
|
107
|
-
"required": ["selected"],
|
|
108
|
-
"properties": {
|
|
109
|
-
"selected": {
|
|
110
|
-
"type": "boolean"
|
|
111
|
-
},
|
|
112
|
-
"name": {
|
|
113
|
-
"type": "string"
|
|
114
|
-
},
|
|
115
|
-
"importFrom": {
|
|
116
|
-
"type": "string"
|
|
117
|
-
},
|
|
118
|
-
"exportPath": {
|
|
119
|
-
"type": "string"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"Model": {
|
|
124
|
-
"type": "object",
|
|
125
|
-
"required": ["selected"],
|
|
126
|
-
"properties": {
|
|
127
|
-
"selected": {
|
|
128
|
-
"type": "boolean"
|
|
129
|
-
},
|
|
130
|
-
"name": {
|
|
131
|
-
"type": "string"
|
|
132
|
-
},
|
|
133
|
-
"importFrom": {
|
|
134
|
-
"type": "string"
|
|
135
|
-
},
|
|
136
|
-
"exportPath": {
|
|
137
|
-
"type": "string"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"Operations": {
|
|
142
|
-
"type": "object",
|
|
143
|
-
"additionalProperties": {
|
|
144
|
-
"type": "object",
|
|
145
|
-
"properties": {
|
|
146
|
-
"get": {
|
|
147
|
-
"$ref": "#/definitions/Operation"
|
|
148
|
-
},
|
|
149
|
-
"post": {
|
|
150
|
-
"$ref": "#/definitions/Operation"
|
|
151
|
-
},
|
|
152
|
-
"put": {
|
|
153
|
-
"$ref": "#/definitions/Operation"
|
|
154
|
-
},
|
|
155
|
-
"delete": {
|
|
156
|
-
"$ref": "#/definitions/Operation"
|
|
157
|
-
},
|
|
158
|
-
"patch": {
|
|
159
|
-
"$ref": "#/definitions/Operation"
|
|
160
|
-
},
|
|
161
|
-
"options": {
|
|
162
|
-
"$ref": "#/definitions/Operation"
|
|
163
|
-
},
|
|
164
|
-
"head": {
|
|
165
|
-
"$ref": "#/definitions/Operation"
|
|
166
|
-
},
|
|
167
|
-
"trace": {
|
|
168
|
-
"$ref": "#/definitions/Operation"
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toParamsObject.d.ts","sourceRoot":"","sources":["../../src/typescript/toParamsObject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,eAAO,MAAM,cAAc,eACb,YAAY,EAAE,GAAG,SAAS,YAC5B,MAAM,KACf,MAYF,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { handleKey, handlePropertyName } from './identifiers.js';
|
|
2
|
-
import { EMPTY } from '../dsl/constants.js';
|
|
3
|
-
export const toParamsObject = (parameters, queryArg) => {
|
|
4
|
-
if (!parameters?.length) {
|
|
5
|
-
return EMPTY;
|
|
6
|
-
}
|
|
7
|
-
const keyValues = parameters.map(({ name }) => {
|
|
8
|
-
const keyValue = `${handleKey(name)}: ${handlePropertyName(name, queryArg)}`;
|
|
9
|
-
return keyValue;
|
|
10
|
-
});
|
|
11
|
-
return `{${keyValues.join(',\n')}}`;
|
|
12
|
-
};
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
let $schema: string;
|
|
3
|
-
let $id: string;
|
|
4
|
-
let title: string;
|
|
5
|
-
let description: string;
|
|
6
|
-
let type: string;
|
|
7
|
-
namespace properties {
|
|
8
|
-
namespace serverName {
|
|
9
|
-
let type_1: string;
|
|
10
|
-
export { type_1 as type };
|
|
11
|
-
}
|
|
12
|
-
namespace stackName {
|
|
13
|
-
let type_2: string;
|
|
14
|
-
export { type_2 as type };
|
|
15
|
-
}
|
|
16
|
-
namespace deploymentId {
|
|
17
|
-
let type_3: string;
|
|
18
|
-
export { type_3 as type };
|
|
19
|
-
}
|
|
20
|
-
namespace settings {
|
|
21
|
-
let $ref: string;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
let required: string[];
|
|
25
|
-
namespace definitions {
|
|
26
|
-
namespace ClientSettings {
|
|
27
|
-
export namespace properties_1 {
|
|
28
|
-
namespace alias {
|
|
29
|
-
let type_4: string;
|
|
30
|
-
export { type_4 as type };
|
|
31
|
-
export namespace additionalProperties {
|
|
32
|
-
let type_5: string;
|
|
33
|
-
export { type_5 as type };
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
namespace basePath {
|
|
37
|
-
let type_6: string;
|
|
38
|
-
export { type_6 as type };
|
|
39
|
-
}
|
|
40
|
-
namespace generators {
|
|
41
|
-
let $ref_1: string;
|
|
42
|
-
export { $ref_1 as $ref };
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
export { properties_1 as properties };
|
|
46
|
-
let required_1: string[];
|
|
47
|
-
export { required_1 as required };
|
|
48
|
-
}
|
|
49
|
-
namespace Generators {
|
|
50
|
-
let oneOf: {
|
|
51
|
-
$ref: string;
|
|
52
|
-
}[];
|
|
53
|
-
}
|
|
54
|
-
namespace Schemas {
|
|
55
|
-
let type_7: string;
|
|
56
|
-
export { type_7 as type };
|
|
57
|
-
export namespace properties_2 {
|
|
58
|
-
namespace root {
|
|
59
|
-
let $ref_2: string;
|
|
60
|
-
export { $ref_2 as $ref };
|
|
61
|
-
}
|
|
62
|
-
namespace schemas {
|
|
63
|
-
let type_8: string;
|
|
64
|
-
export { type_8 as type };
|
|
65
|
-
export namespace additionalProperties_1 {
|
|
66
|
-
let $ref_3: string;
|
|
67
|
-
export { $ref_3 as $ref };
|
|
68
|
-
}
|
|
69
|
-
export { additionalProperties_1 as additionalProperties };
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
export { properties_2 as properties };
|
|
73
|
-
}
|
|
74
|
-
namespace Root {
|
|
75
|
-
let type_9: string;
|
|
76
|
-
export { type_9 as type };
|
|
77
|
-
let required_2: string[];
|
|
78
|
-
export { required_2 as required };
|
|
79
|
-
export namespace properties_3 {
|
|
80
|
-
namespace defaultSelected {
|
|
81
|
-
let type_10: string;
|
|
82
|
-
export { type_10 as type };
|
|
83
|
-
}
|
|
84
|
-
namespace creatorSource {
|
|
85
|
-
let type_11: string;
|
|
86
|
-
export { type_11 as type };
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
export { properties_3 as properties };
|
|
90
|
-
export namespace additionalProperties_2 {
|
|
91
|
-
let type_12: string;
|
|
92
|
-
export { type_12 as type };
|
|
93
|
-
}
|
|
94
|
-
export { additionalProperties_2 as additionalProperties };
|
|
95
|
-
}
|
|
96
|
-
namespace Transformers {
|
|
97
|
-
let type_13: string;
|
|
98
|
-
export { type_13 as type };
|
|
99
|
-
export namespace additionalProperties_3 {
|
|
100
|
-
let type_14: string;
|
|
101
|
-
export { type_14 as type };
|
|
102
|
-
export namespace properties_4 {
|
|
103
|
-
export namespace root_1 {
|
|
104
|
-
let $ref_4: string;
|
|
105
|
-
export { $ref_4 as $ref };
|
|
106
|
-
}
|
|
107
|
-
export { root_1 as root };
|
|
108
|
-
export namespace operations {
|
|
109
|
-
let $ref_5: string;
|
|
110
|
-
export { $ref_5 as $ref };
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
export { properties_4 as properties };
|
|
114
|
-
}
|
|
115
|
-
export { additionalProperties_3 as additionalProperties };
|
|
116
|
-
}
|
|
117
|
-
namespace Models {
|
|
118
|
-
let type_15: string;
|
|
119
|
-
export { type_15 as type };
|
|
120
|
-
export namespace additionalProperties_4 {
|
|
121
|
-
let type_16: string;
|
|
122
|
-
export { type_16 as type };
|
|
123
|
-
export namespace properties_5 {
|
|
124
|
-
export namespace root_2 {
|
|
125
|
-
let $ref_6: string;
|
|
126
|
-
export { $ref_6 as $ref };
|
|
127
|
-
}
|
|
128
|
-
export { root_2 as root };
|
|
129
|
-
export namespace models {
|
|
130
|
-
let $ref_7: string;
|
|
131
|
-
export { $ref_7 as $ref };
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
export { properties_5 as properties };
|
|
135
|
-
}
|
|
136
|
-
export { additionalProperties_4 as additionalProperties };
|
|
137
|
-
}
|
|
138
|
-
namespace Operation {
|
|
139
|
-
let type_17: string;
|
|
140
|
-
export { type_17 as type };
|
|
141
|
-
let required_3: string[];
|
|
142
|
-
export { required_3 as required };
|
|
143
|
-
export namespace properties_6 {
|
|
144
|
-
namespace selected {
|
|
145
|
-
let type_18: string;
|
|
146
|
-
export { type_18 as type };
|
|
147
|
-
}
|
|
148
|
-
namespace name {
|
|
149
|
-
let type_19: string;
|
|
150
|
-
export { type_19 as type };
|
|
151
|
-
}
|
|
152
|
-
namespace importFrom {
|
|
153
|
-
let type_20: string;
|
|
154
|
-
export { type_20 as type };
|
|
155
|
-
}
|
|
156
|
-
namespace exportPath {
|
|
157
|
-
let type_21: string;
|
|
158
|
-
export { type_21 as type };
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
export { properties_6 as properties };
|
|
162
|
-
}
|
|
163
|
-
namespace Model {
|
|
164
|
-
let type_22: string;
|
|
165
|
-
export { type_22 as type };
|
|
166
|
-
let required_4: string[];
|
|
167
|
-
export { required_4 as required };
|
|
168
|
-
export namespace properties_7 {
|
|
169
|
-
export namespace selected_1 {
|
|
170
|
-
let type_23: string;
|
|
171
|
-
export { type_23 as type };
|
|
172
|
-
}
|
|
173
|
-
export { selected_1 as selected };
|
|
174
|
-
export namespace name_1 {
|
|
175
|
-
let type_24: string;
|
|
176
|
-
export { type_24 as type };
|
|
177
|
-
}
|
|
178
|
-
export { name_1 as name };
|
|
179
|
-
export namespace importFrom_1 {
|
|
180
|
-
let type_25: string;
|
|
181
|
-
export { type_25 as type };
|
|
182
|
-
}
|
|
183
|
-
export { importFrom_1 as importFrom };
|
|
184
|
-
export namespace exportPath_1 {
|
|
185
|
-
let type_26: string;
|
|
186
|
-
export { type_26 as type };
|
|
187
|
-
}
|
|
188
|
-
export { exportPath_1 as exportPath };
|
|
189
|
-
}
|
|
190
|
-
export { properties_7 as properties };
|
|
191
|
-
}
|
|
192
|
-
namespace Operations {
|
|
193
|
-
let type_27: string;
|
|
194
|
-
export { type_27 as type };
|
|
195
|
-
export namespace additionalProperties_5 {
|
|
196
|
-
let type_28: string;
|
|
197
|
-
export { type_28 as type };
|
|
198
|
-
export namespace properties_8 {
|
|
199
|
-
export namespace get {
|
|
200
|
-
let $ref_8: string;
|
|
201
|
-
export { $ref_8 as $ref };
|
|
202
|
-
}
|
|
203
|
-
export namespace post {
|
|
204
|
-
let $ref_9: string;
|
|
205
|
-
export { $ref_9 as $ref };
|
|
206
|
-
}
|
|
207
|
-
export namespace put {
|
|
208
|
-
let $ref_10: string;
|
|
209
|
-
export { $ref_10 as $ref };
|
|
210
|
-
}
|
|
211
|
-
export namespace _delete {
|
|
212
|
-
let $ref_11: string;
|
|
213
|
-
export { $ref_11 as $ref };
|
|
214
|
-
}
|
|
215
|
-
export { _delete as delete };
|
|
216
|
-
export namespace patch {
|
|
217
|
-
let $ref_12: string;
|
|
218
|
-
export { $ref_12 as $ref };
|
|
219
|
-
}
|
|
220
|
-
export namespace options {
|
|
221
|
-
let $ref_13: string;
|
|
222
|
-
export { $ref_13 as $ref };
|
|
223
|
-
}
|
|
224
|
-
export namespace head {
|
|
225
|
-
let $ref_14: string;
|
|
226
|
-
export { $ref_14 as $ref };
|
|
227
|
-
}
|
|
228
|
-
export namespace trace {
|
|
229
|
-
let $ref_15: string;
|
|
230
|
-
export { $ref_15 as $ref };
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
export { properties_8 as properties };
|
|
234
|
-
}
|
|
235
|
-
export { additionalProperties_5 as additionalProperties };
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
export default _default;
|
|
240
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/schemas/client.js"],"names":[],"mappings":""}
|
package/script/schemas/client.js
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
require("../_dnt.polyfills.js");
|
|
4
|
-
exports.default = {
|
|
5
|
-
"$schema": "https://json-schema.org/draft-07/schema",
|
|
6
|
-
"$id": "https://schemas.skmtc.dev/client.json",
|
|
7
|
-
"title": "Settings",
|
|
8
|
-
"description": "Settings for Skmtc code generation",
|
|
9
|
-
"type": "object",
|
|
10
|
-
"properties": {
|
|
11
|
-
"serverName": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
"stackName": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"deploymentId": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
"settings": {
|
|
21
|
-
"$ref": "#/definitions/ClientSettings"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"required": ["settings"],
|
|
25
|
-
"definitions": {
|
|
26
|
-
"ClientSettings": {
|
|
27
|
-
"properties": {
|
|
28
|
-
"alias": {
|
|
29
|
-
"type": "object",
|
|
30
|
-
"additionalProperties": {
|
|
31
|
-
"type": "string"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"basePath": {
|
|
35
|
-
"type": "string"
|
|
36
|
-
},
|
|
37
|
-
"generators": {
|
|
38
|
-
"$ref": "#/definitions/Generators"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"required": ["generators"]
|
|
42
|
-
},
|
|
43
|
-
"Generators": {
|
|
44
|
-
"oneOf": [{
|
|
45
|
-
"$ref": "#/definitions/Transformers"
|
|
46
|
-
}, {
|
|
47
|
-
"$ref": "#/definitions/Models"
|
|
48
|
-
}]
|
|
49
|
-
},
|
|
50
|
-
"Schemas": {
|
|
51
|
-
"type": "object",
|
|
52
|
-
"properties": {
|
|
53
|
-
"root": {
|
|
54
|
-
"$ref": "#/definitions/Root"
|
|
55
|
-
},
|
|
56
|
-
"schemas": {
|
|
57
|
-
"type": "object",
|
|
58
|
-
"additionalProperties": {
|
|
59
|
-
"$ref": "#/definitions/Model"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"Root": {
|
|
65
|
-
"type": "object",
|
|
66
|
-
"required": ["creatorSource"],
|
|
67
|
-
"properties": {
|
|
68
|
-
"defaultSelected": {
|
|
69
|
-
"type": "boolean"
|
|
70
|
-
},
|
|
71
|
-
"creatorSource": {
|
|
72
|
-
"type": "string"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"additionalProperties": {
|
|
76
|
-
"type": "string"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"Transformers": {
|
|
80
|
-
"type": "object",
|
|
81
|
-
"additionalProperties": {
|
|
82
|
-
"type": "object",
|
|
83
|
-
"properties": {
|
|
84
|
-
"root": {
|
|
85
|
-
"$ref": "#/definitions/Root"
|
|
86
|
-
},
|
|
87
|
-
"operations": {
|
|
88
|
-
"$ref": "#/definitions/Operations"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"Models": {
|
|
94
|
-
"type": "object",
|
|
95
|
-
"additionalProperties": {
|
|
96
|
-
"type": "object",
|
|
97
|
-
"properties": {
|
|
98
|
-
"root": {
|
|
99
|
-
"$ref": "#/definitions/Root"
|
|
100
|
-
},
|
|
101
|
-
"models": {
|
|
102
|
-
"$ref": "#/definitions/Schemas"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"Operation": {
|
|
108
|
-
"type": "object",
|
|
109
|
-
"required": ["selected"],
|
|
110
|
-
"properties": {
|
|
111
|
-
"selected": {
|
|
112
|
-
"type": "boolean"
|
|
113
|
-
},
|
|
114
|
-
"name": {
|
|
115
|
-
"type": "string"
|
|
116
|
-
},
|
|
117
|
-
"importFrom": {
|
|
118
|
-
"type": "string"
|
|
119
|
-
},
|
|
120
|
-
"exportPath": {
|
|
121
|
-
"type": "string"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
"Model": {
|
|
126
|
-
"type": "object",
|
|
127
|
-
"required": ["selected"],
|
|
128
|
-
"properties": {
|
|
129
|
-
"selected": {
|
|
130
|
-
"type": "boolean"
|
|
131
|
-
},
|
|
132
|
-
"name": {
|
|
133
|
-
"type": "string"
|
|
134
|
-
},
|
|
135
|
-
"importFrom": {
|
|
136
|
-
"type": "string"
|
|
137
|
-
},
|
|
138
|
-
"exportPath": {
|
|
139
|
-
"type": "string"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"Operations": {
|
|
144
|
-
"type": "object",
|
|
145
|
-
"additionalProperties": {
|
|
146
|
-
"type": "object",
|
|
147
|
-
"properties": {
|
|
148
|
-
"get": {
|
|
149
|
-
"$ref": "#/definitions/Operation"
|
|
150
|
-
},
|
|
151
|
-
"post": {
|
|
152
|
-
"$ref": "#/definitions/Operation"
|
|
153
|
-
},
|
|
154
|
-
"put": {
|
|
155
|
-
"$ref": "#/definitions/Operation"
|
|
156
|
-
},
|
|
157
|
-
"delete": {
|
|
158
|
-
"$ref": "#/definitions/Operation"
|
|
159
|
-
},
|
|
160
|
-
"patch": {
|
|
161
|
-
"$ref": "#/definitions/Operation"
|
|
162
|
-
},
|
|
163
|
-
"options": {
|
|
164
|
-
"$ref": "#/definitions/Operation"
|
|
165
|
-
},
|
|
166
|
-
"head": {
|
|
167
|
-
"$ref": "#/definitions/Operation"
|
|
168
|
-
},
|
|
169
|
-
"trace": {
|
|
170
|
-
"$ref": "#/definitions/Operation"
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toParamsObject.d.ts","sourceRoot":"","sources":["../../src/typescript/toParamsObject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,eAAO,MAAM,cAAc,eACb,YAAY,EAAE,GAAG,SAAS,YAC5B,MAAM,KACf,MAYF,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toParamsObject = void 0;
|
|
4
|
-
const identifiers_js_1 = require("./identifiers.js");
|
|
5
|
-
const constants_js_1 = require("../dsl/constants.js");
|
|
6
|
-
const toParamsObject = (parameters, queryArg) => {
|
|
7
|
-
if (!parameters?.length) {
|
|
8
|
-
return constants_js_1.EMPTY;
|
|
9
|
-
}
|
|
10
|
-
const keyValues = parameters.map(({ name }) => {
|
|
11
|
-
const keyValue = `${(0, identifiers_js_1.handleKey)(name)}: ${(0, identifiers_js_1.handlePropertyName)(name, queryArg)}`;
|
|
12
|
-
return keyValue;
|
|
13
|
-
});
|
|
14
|
-
return `{${keyValues.join(',\n')}}`;
|
|
15
|
-
};
|
|
16
|
-
exports.toParamsObject = toParamsObject;
|