@azure-tools/typespec-go 0.17.4-dev.6 → 0.17.5-dev.10
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/CHANGELOG.md +8 -0
- package/dist/src/codegen/core/example.js +20 -20
- package/dist/src/codegen/core/example.js.map +1 -1
- package/dist/src/codegen/core/helpers.d.ts +3 -9
- package/dist/src/codegen/core/helpers.d.ts.map +1 -1
- package/dist/src/codegen/core/helpers.js +33 -74
- package/dist/src/codegen/core/helpers.js.map +1 -1
- package/dist/src/codegen/core/imports.d.ts.map +1 -1
- package/dist/src/codegen/core/imports.js +4 -3
- package/dist/src/codegen/core/imports.js.map +1 -1
- package/dist/src/codegen/core/models.d.ts.map +1 -1
- package/dist/src/codegen/core/models.js +193 -143
- package/dist/src/codegen/core/models.js.map +1 -1
- package/dist/src/codegen/core/operations.js +11 -17
- package/dist/src/codegen/core/operations.js.map +1 -1
- package/dist/src/codegen/core/options.js +1 -5
- package/dist/src/codegen/core/options.js.map +1 -1
- package/dist/src/codegen/core/polymorphics.d.ts.map +1 -1
- package/dist/src/codegen/core/polymorphics.js +3 -5
- package/dist/src/codegen/core/polymorphics.js.map +1 -1
- package/dist/src/codegen/core/request-handler.d.ts.map +1 -1
- package/dist/src/codegen/core/request-handler.js +29 -22
- package/dist/src/codegen/core/request-handler.js.map +1 -1
- package/dist/src/codegen/core/response-handler.js +17 -15
- package/dist/src/codegen/core/response-handler.js.map +1 -1
- package/dist/src/codegen/core/responses.js +8 -22
- package/dist/src/codegen/core/responses.js.map +1 -1
- package/dist/src/codegen/core/unions.js +21 -16
- package/dist/src/codegen/core/unions.js.map +1 -1
- package/dist/src/codegen/fake/servers.js +105 -98
- package/dist/src/codegen/fake/servers.js.map +1 -1
- package/dist/src/codemodel/client.d.ts +8 -3
- package/dist/src/codemodel/client.d.ts.map +1 -1
- package/dist/src/codemodel/client.js +3 -3
- package/dist/src/codemodel/client.js.map +1 -1
- package/dist/src/codemodel/method.d.ts +1 -3
- package/dist/src/codemodel/method.d.ts.map +1 -1
- package/dist/src/codemodel/method.js +1 -2
- package/dist/src/codemodel/method.js.map +1 -1
- package/dist/src/codemodel/param.d.ts +41 -29
- package/dist/src/codemodel/param.d.ts.map +1 -1
- package/dist/src/codemodel/param.js +33 -33
- package/dist/src/codemodel/param.js.map +1 -1
- package/dist/src/codemodel/result.d.ts +21 -15
- package/dist/src/codemodel/result.d.ts.map +1 -1
- package/dist/src/codemodel/result.js +8 -24
- package/dist/src/codemodel/result.js.map +1 -1
- package/dist/src/codemodel/type.d.ts +83 -54
- package/dist/src/codemodel/type.d.ts.map +1 -1
- package/dist/src/codemodel/type.js +68 -30
- package/dist/src/codemodel/type.js.map +1 -1
- package/dist/src/tcgcadapter/clients.d.ts +2 -1
- package/dist/src/tcgcadapter/clients.d.ts.map +1 -1
- package/dist/src/tcgcadapter/clients.js +99 -107
- package/dist/src/tcgcadapter/clients.js.map +1 -1
- package/dist/src/tcgcadapter/helpers.d.ts +8 -27
- package/dist/src/tcgcadapter/helpers.d.ts.map +1 -1
- package/dist/src/tcgcadapter/helpers.js +32 -87
- package/dist/src/tcgcadapter/helpers.js.map +1 -1
- package/dist/src/tcgcadapter/types.d.ts +5 -3
- package/dist/src/tcgcadapter/types.d.ts.map +1 -1
- package/dist/src/tcgcadapter/types.js +113 -45
- package/dist/src/tcgcadapter/types.js.map +1 -1
- package/package.json +40 -40
|
@@ -21,7 +21,7 @@ export interface BodyParameter extends HttpParameterBase {
|
|
|
21
21
|
/** value used for the Content-Type header */
|
|
22
22
|
contentType: BodyParameterContentTypeKind;
|
|
23
23
|
/** optional XML schema metadata */
|
|
24
|
-
|
|
24
|
+
xmlWrapper?: string;
|
|
25
25
|
}
|
|
26
26
|
/** describes how the body param's content type is set */
|
|
27
27
|
export type BodyParameterContentTypeKind = type.Literal<type.String> | ParameterRef;
|
|
@@ -86,7 +86,11 @@ export interface HeaderScalarParameter extends HttpParameterBase {
|
|
|
86
86
|
isApiVersion: boolean;
|
|
87
87
|
}
|
|
88
88
|
/** defines the possible types for a scalar header */
|
|
89
|
-
export type HeaderScalarType =
|
|
89
|
+
export type HeaderScalarType = HeaderScalarPtrType | type.EncodedBytes | type.Ptr<HeaderScalarPtrType>;
|
|
90
|
+
/** the set of scalar header types wrapped in a Ptr */
|
|
91
|
+
export type HeaderScalarPtrType = type.Constant | type.ETag | type.Literal | type.Scalar | type.String | type.Time;
|
|
92
|
+
/** the set of scalar header wire types */
|
|
93
|
+
export type HeaderScalarWireType = type.EncodedBytes | HeaderScalarPtrType;
|
|
90
94
|
/** parameter goes in multipart/form body */
|
|
91
95
|
export interface MultipartFormBodyParameter extends HttpParameterBase {
|
|
92
96
|
kind: "multipartFormBodyParam";
|
|
@@ -128,8 +132,6 @@ export interface PartialBodyParameter extends HttpParameterBase {
|
|
|
128
132
|
serializedName: string;
|
|
129
133
|
/** the wire format of the underlying type */
|
|
130
134
|
format: "JSON" | "XML";
|
|
131
|
-
/** optional XML schema metadata */
|
|
132
|
-
xml?: type.XMLInfo;
|
|
133
135
|
}
|
|
134
136
|
/** a collection of values that go in the HTTP path */
|
|
135
137
|
export interface PathCollectionParameter extends HttpParameterBase {
|
|
@@ -164,7 +166,11 @@ export interface PathScalarParameter extends HttpParameterBase {
|
|
|
164
166
|
omitEmptyStringCheck: boolean;
|
|
165
167
|
}
|
|
166
168
|
/** defines the possible types for a PathScalarParameter */
|
|
167
|
-
export type PathScalarParameterType =
|
|
169
|
+
export type PathScalarParameterType = PathScalarParameterWireType | type.Ptr<PathScalarParameterPtrType>;
|
|
170
|
+
/** the set of scalar path types wrapped in a Ptr */
|
|
171
|
+
export type PathScalarParameterPtrType = type.Constant | type.Literal | type.Scalar | type.String | type.Time;
|
|
172
|
+
/** the set of scalar path wire types */
|
|
173
|
+
export type PathScalarParameterWireType = type.EncodedBytes | PathScalarParameterPtrType;
|
|
168
174
|
/** a reference to an existing parameter */
|
|
169
175
|
export interface ParameterRef {
|
|
170
176
|
kind: "parameterRef";
|
|
@@ -199,7 +205,11 @@ export interface QueryScalarParameter extends HttpParameterBase {
|
|
|
199
205
|
isApiVersion: boolean;
|
|
200
206
|
}
|
|
201
207
|
/** defines the possible types for a QueryScalarParameter */
|
|
202
|
-
export type QueryScalarParameterType =
|
|
208
|
+
export type QueryScalarParameterType = QueryScalarParameterWireType | type.Ptr<QueryScalarParameterPtrType>;
|
|
209
|
+
/** the set of scalar query types wrapped in a Ptr */
|
|
210
|
+
export type QueryScalarParameterPtrType = type.Constant | type.Literal | type.Scalar | type.String | type.Time;
|
|
211
|
+
/** the set of scalar query wire types */
|
|
212
|
+
export type QueryScalarParameterWireType = type.EncodedBytes | QueryScalarParameterPtrType;
|
|
203
213
|
/** the synthesized resume token parameter for LROs */
|
|
204
214
|
export interface ResumeTokenParameter extends HttpParameterBase {
|
|
205
215
|
kind: "resumeTokenParam";
|
|
@@ -218,27 +228,29 @@ export interface URIParameter extends HttpParameterBase {
|
|
|
218
228
|
isApiVersion: boolean;
|
|
219
229
|
}
|
|
220
230
|
/** defines the possible types for a URIParameter */
|
|
221
|
-
export type URIParameterType =
|
|
231
|
+
export type URIParameterType = URIParameterWireType | type.Ptr<URIParameterWireType>;
|
|
232
|
+
/** the set of URI wire types */
|
|
233
|
+
export type URIParameterWireType = type.Constant | type.Scalar | type.String;
|
|
222
234
|
/** narrows style to a ClientSideDefault within the conditional block */
|
|
223
235
|
export declare function isClientSideDefault(style: ParameterStyle): style is ClientSideDefault;
|
|
224
236
|
/** narrows param to a FormBodyParameter within the conditional block */
|
|
225
237
|
export declare function isFormBodyParameter(param: MethodParameter): param is FormBodyParameter;
|
|
226
238
|
/** narrows param to a HeaderParameter within the conditional block */
|
|
227
239
|
export declare function isHeaderParameter(param: MethodParameter): param is HeaderParameter;
|
|
228
|
-
/** narrows type to a
|
|
229
|
-
export declare function isHeaderScalarType(type: type.WireType): type is
|
|
240
|
+
/** narrows type to a HeaderScalarWireType within the conditional block */
|
|
241
|
+
export declare function isHeaderScalarType(type: Exclude<type.WireType, type.Ptr>): type is HeaderScalarWireType;
|
|
230
242
|
/** narrows param to a PathParameter within the conditional block */
|
|
231
243
|
export declare function isPathParameter(param: MethodParameter): param is PathParameter;
|
|
232
|
-
/** narrows type to a
|
|
233
|
-
export declare function isPathScalarParameterType(type: type.WireType): type is
|
|
244
|
+
/** narrows type to a PathScalarParameterWireType within the conditional block */
|
|
245
|
+
export declare function isPathScalarParameterType(type: type.WireType): type is PathScalarParameterWireType;
|
|
234
246
|
/** narrows param to a QueryParameter within the conditional block */
|
|
235
247
|
export declare function isQueryParameter(param: MethodParameter): param is QueryParameter;
|
|
236
|
-
/** narrows type to a
|
|
237
|
-
export declare function isQueryScalarParameterType(type: type.WireType): type is
|
|
248
|
+
/** narrows type to a QueryScalarParameterWireType within the conditional block */
|
|
249
|
+
export declare function isQueryScalarParameterType(type: type.WireType): type is QueryScalarParameterWireType;
|
|
238
250
|
/** returns true if the param is required */
|
|
239
251
|
export declare function isRequiredParameter(paramStyle: ParameterStyle): boolean;
|
|
240
|
-
/** narrows type to a
|
|
241
|
-
export declare function isURIParameterType(type: type.WireType): type is
|
|
252
|
+
/** narrows type to a URIParameterWireType within the conditional block */
|
|
253
|
+
export declare function isURIParameterType(type: type.WireType): type is URIParameterWireType;
|
|
242
254
|
/** returns true if the param is a literal */
|
|
243
255
|
export declare function isLiteralParameter(paramStyle: ParameterStyle): boolean;
|
|
244
256
|
interface HttpParameterBase extends method.Parameter {
|
|
@@ -255,31 +267,31 @@ interface HttpParameterBase extends method.Parameter {
|
|
|
255
267
|
location: ParameterLocation;
|
|
256
268
|
}
|
|
257
269
|
declare class HttpParameterBase extends method.Parameter implements HttpParameterBase {
|
|
258
|
-
constructor(name: string, type: type.WireType, style: ParameterStyle,
|
|
270
|
+
constructor(name: string, type: type.WireType, style: ParameterStyle, location: ParameterLocation);
|
|
259
271
|
}
|
|
260
272
|
export declare class BodyParameter extends HttpParameterBase implements BodyParameter {
|
|
261
|
-
constructor(name: string, bodyFormat: BodyFormat, contentType: BodyParameterContentTypeKind, type: type.WireType, style: ParameterStyle
|
|
273
|
+
constructor(name: string, bodyFormat: BodyFormat, contentType: BodyParameterContentTypeKind, type: type.WireType, style: ParameterStyle);
|
|
262
274
|
}
|
|
263
275
|
export declare class ClientSideDefault implements ClientSideDefault {
|
|
264
276
|
constructor(defaultValue: type.Literal);
|
|
265
277
|
}
|
|
266
278
|
export declare class FormBodyCollectionParameter extends HttpParameterBase implements FormBodyCollectionParameter {
|
|
267
|
-
constructor(name: string, formDataName: string, type: type.Slice, collectionFormat: ExtendedCollectionFormat, style: ParameterStyle
|
|
279
|
+
constructor(name: string, formDataName: string, type: type.Slice, collectionFormat: ExtendedCollectionFormat, style: ParameterStyle);
|
|
268
280
|
}
|
|
269
281
|
export declare class FormBodyScalarParameter extends HttpParameterBase implements FormBodyScalarParameter {
|
|
270
|
-
constructor(name: string, formDataName: string, type: type.WireType, style: ParameterStyle
|
|
282
|
+
constructor(name: string, formDataName: string, type: type.WireType, style: ParameterStyle);
|
|
271
283
|
}
|
|
272
284
|
export declare class HeaderCollectionParameter extends HttpParameterBase implements HeaderCollectionParameter {
|
|
273
|
-
constructor(name: string, headerName: string, type: type.Slice, collectionFormat: CollectionFormat, style: ParameterStyle,
|
|
285
|
+
constructor(name: string, headerName: string, type: type.Slice, collectionFormat: CollectionFormat, style: ParameterStyle, location: ParameterLocation);
|
|
274
286
|
}
|
|
275
287
|
export declare class HeaderMapParameter extends HttpParameterBase implements HeaderMapParameter {
|
|
276
|
-
constructor(name: string, headerName: string, type: type.Map, style: ParameterStyle,
|
|
288
|
+
constructor(name: string, headerName: string, type: type.Map, style: ParameterStyle, location: ParameterLocation);
|
|
277
289
|
}
|
|
278
290
|
export declare class HeaderScalarParameter extends HttpParameterBase implements HeaderScalarParameter {
|
|
279
|
-
constructor(name: string, headerName: string, type: HeaderScalarType, style: ParameterStyle,
|
|
291
|
+
constructor(name: string, headerName: string, type: HeaderScalarType, style: ParameterStyle, location: ParameterLocation);
|
|
280
292
|
}
|
|
281
293
|
export declare class MultipartFormBodyParameter extends HttpParameterBase implements MultipartFormBodyParameter {
|
|
282
|
-
constructor(name: string, type: type.WireType, style: ParameterStyle
|
|
294
|
+
constructor(name: string, type: type.WireType, style: ParameterStyle);
|
|
283
295
|
}
|
|
284
296
|
export declare class ParameterGroup implements ParameterGroup {
|
|
285
297
|
constructor(pkg: module.PackageContent, name: string, groupName: string, required: boolean, location: ParameterLocation);
|
|
@@ -288,25 +300,25 @@ export declare class ParameterRef implements ParameterRef {
|
|
|
288
300
|
constructor(name: string);
|
|
289
301
|
}
|
|
290
302
|
export declare class PartialBodyParameter extends HttpParameterBase implements PartialBodyParameter {
|
|
291
|
-
constructor(name: string, serializedName: string, format: "JSON" | "XML", type: type.WireType, style: ParameterStyle
|
|
303
|
+
constructor(name: string, serializedName: string, format: "JSON" | "XML", type: type.WireType, style: ParameterStyle);
|
|
292
304
|
}
|
|
293
305
|
export declare class PathCollectionParameter extends HttpParameterBase implements PathCollectionParameter {
|
|
294
|
-
constructor(name: string, pathSegment: string, isEncoded: boolean, type: type.Slice, collectionFormat: CollectionFormat, style: ParameterStyle,
|
|
306
|
+
constructor(name: string, pathSegment: string, isEncoded: boolean, type: type.Slice, collectionFormat: CollectionFormat, style: ParameterStyle, location: ParameterLocation);
|
|
295
307
|
}
|
|
296
308
|
export declare class PathScalarParameter extends HttpParameterBase implements PathScalarParameter {
|
|
297
|
-
constructor(name: string, pathSegment: string, isEncoded: boolean, type: PathScalarParameterType, style: ParameterStyle,
|
|
309
|
+
constructor(name: string, pathSegment: string, isEncoded: boolean, type: PathScalarParameterType, style: ParameterStyle, location: ParameterLocation);
|
|
298
310
|
}
|
|
299
311
|
export declare class QueryCollectionParameter extends HttpParameterBase implements QueryCollectionParameter {
|
|
300
|
-
constructor(name: string, queryParam: string, isEncoded: boolean, type: type.Slice, collectionFormat: ExtendedCollectionFormat, style: ParameterStyle,
|
|
312
|
+
constructor(name: string, queryParam: string, isEncoded: boolean, type: type.Slice, collectionFormat: ExtendedCollectionFormat, style: ParameterStyle, location: ParameterLocation);
|
|
301
313
|
}
|
|
302
314
|
export declare class QueryScalarParameter extends HttpParameterBase implements QueryScalarParameter {
|
|
303
|
-
constructor(name: string, queryParam: string, isEncoded: boolean, type: QueryScalarParameterType, style: ParameterStyle,
|
|
315
|
+
constructor(name: string, queryParam: string, isEncoded: boolean, type: QueryScalarParameterType, style: ParameterStyle, location: ParameterLocation);
|
|
304
316
|
}
|
|
305
317
|
export declare class ResumeTokenParameter extends HttpParameterBase implements ResumeTokenParameter {
|
|
306
318
|
constructor();
|
|
307
319
|
}
|
|
308
320
|
export declare class URIParameter extends HttpParameterBase implements URIParameter {
|
|
309
|
-
constructor(name: string, uriPathSegment: string, type: URIParameterType, style: ParameterStyle,
|
|
321
|
+
constructor(name: string, uriPathSegment: string, type: URIParameterType, style: ParameterStyle, location: ParameterLocation);
|
|
310
322
|
}
|
|
311
323
|
export {};
|
|
312
324
|
//# sourceMappingURL=param.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param.d.ts","sourceRoot":"","sources":["../../../src/codemodel/param.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,mDAAmD;AACnD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE5D,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GAAG,2BAA2B,GAAG,uBAAuB,CAAC;AAEtF,8CAA8C;AAC9C,MAAM,MAAM,eAAe,GACzB,yBAAyB,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAEzE,4CAA4C;AAC5C,MAAM,MAAM,aAAa,GAAG,uBAAuB,GAAG,mBAAmB,CAAC;AAE1E,6CAA6C;AAC7C,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AE,iBAAiB;CAQ9B;AAED,qBAAa,oBAAqB,SAAQ,iBAAkB,YAAW,oBAAoB;;CAM1F;AAED,qBAAa,YAAa,SAAQ,iBAAkB,YAAW,YAAY;gBAEvE,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,iBAAiB;CAO9B"}
|
|
@@ -20,7 +20,7 @@ export function isHeaderParameter(param) {
|
|
|
20
20
|
param.kind === "headerMapParam" ||
|
|
21
21
|
param.kind === "headerScalarParam");
|
|
22
22
|
}
|
|
23
|
-
/** narrows type to a
|
|
23
|
+
/** narrows type to a HeaderScalarWireType within the conditional block */
|
|
24
24
|
export function isHeaderScalarType(type) {
|
|
25
25
|
switch (type.kind) {
|
|
26
26
|
case "constant":
|
|
@@ -39,7 +39,7 @@ export function isHeaderScalarType(type) {
|
|
|
39
39
|
export function isPathParameter(param) {
|
|
40
40
|
return param.kind === "pathCollectionParam" || param.kind === "pathScalarParam";
|
|
41
41
|
}
|
|
42
|
-
/** narrows type to a
|
|
42
|
+
/** narrows type to a PathScalarParameterWireType within the conditional block */
|
|
43
43
|
export function isPathScalarParameterType(type) {
|
|
44
44
|
switch (type.kind) {
|
|
45
45
|
case "constant":
|
|
@@ -57,7 +57,7 @@ export function isPathScalarParameterType(type) {
|
|
|
57
57
|
export function isQueryParameter(param) {
|
|
58
58
|
return param.kind === "queryCollectionParam" || param.kind === "queryScalarParam";
|
|
59
59
|
}
|
|
60
|
-
/** narrows type to a
|
|
60
|
+
/** narrows type to a QueryScalarParameterWireType within the conditional block */
|
|
61
61
|
export function isQueryScalarParameterType(type) {
|
|
62
62
|
switch (type.kind) {
|
|
63
63
|
case "constant":
|
|
@@ -79,7 +79,7 @@ export function isRequiredParameter(paramStyle) {
|
|
|
79
79
|
}
|
|
80
80
|
return paramStyle === "required";
|
|
81
81
|
}
|
|
82
|
-
/** narrows type to a
|
|
82
|
+
/** narrows type to a URIParameterWireType within the conditional block */
|
|
83
83
|
export function isURIParameterType(type) {
|
|
84
84
|
switch (type.kind) {
|
|
85
85
|
case "constant":
|
|
@@ -98,8 +98,8 @@ export function isLiteralParameter(paramStyle) {
|
|
|
98
98
|
return paramStyle === "literal";
|
|
99
99
|
}
|
|
100
100
|
class HttpParameterBase extends method.Parameter {
|
|
101
|
-
constructor(name, type, style,
|
|
102
|
-
super(name, type
|
|
101
|
+
constructor(name, type, style, location) {
|
|
102
|
+
super(name, type);
|
|
103
103
|
this.style = style;
|
|
104
104
|
this.location = location;
|
|
105
105
|
this.docs = {};
|
|
@@ -108,8 +108,8 @@ class HttpParameterBase extends method.Parameter {
|
|
|
108
108
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
109
109
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
110
110
|
export class BodyParameter extends HttpParameterBase {
|
|
111
|
-
constructor(name, bodyFormat, contentType, type, style
|
|
112
|
-
super(name, type, style,
|
|
111
|
+
constructor(name, bodyFormat, contentType, type, style) {
|
|
112
|
+
super(name, type, style, "method");
|
|
113
113
|
this.kind = "bodyParam";
|
|
114
114
|
this.bodyFormat = bodyFormat;
|
|
115
115
|
this.contentType = contentType;
|
|
@@ -121,46 +121,46 @@ export class ClientSideDefault {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
export class FormBodyCollectionParameter extends HttpParameterBase {
|
|
124
|
-
constructor(name, formDataName, type, collectionFormat, style
|
|
125
|
-
super(name, type, style,
|
|
124
|
+
constructor(name, formDataName, type, collectionFormat, style) {
|
|
125
|
+
super(name, type, style, "method");
|
|
126
126
|
this.kind = "formBodyCollectionParam";
|
|
127
127
|
this.formDataName = formDataName;
|
|
128
128
|
this.collectionFormat = collectionFormat;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
export class FormBodyScalarParameter extends HttpParameterBase {
|
|
132
|
-
constructor(name, formDataName, type, style
|
|
133
|
-
super(name, type, style,
|
|
132
|
+
constructor(name, formDataName, type, style) {
|
|
133
|
+
super(name, type, style, "method");
|
|
134
134
|
this.kind = "formBodyScalarParam";
|
|
135
135
|
this.formDataName = formDataName;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
export class HeaderCollectionParameter extends HttpParameterBase {
|
|
139
|
-
constructor(name, headerName, type, collectionFormat, style,
|
|
140
|
-
super(name, type, style,
|
|
139
|
+
constructor(name, headerName, type, collectionFormat, style, location) {
|
|
140
|
+
super(name, type, style, location);
|
|
141
141
|
this.kind = "headerCollectionParam";
|
|
142
142
|
this.headerName = headerName;
|
|
143
143
|
this.collectionFormat = collectionFormat;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
export class HeaderMapParameter extends HttpParameterBase {
|
|
147
|
-
constructor(name, headerName, type, style,
|
|
148
|
-
super(name, type, style,
|
|
147
|
+
constructor(name, headerName, type, style, location) {
|
|
148
|
+
super(name, type, style, location);
|
|
149
149
|
this.kind = "headerMapParam";
|
|
150
150
|
this.headerName = headerName;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
export class HeaderScalarParameter extends HttpParameterBase {
|
|
154
|
-
constructor(name, headerName, type, style,
|
|
155
|
-
super(name, type, style,
|
|
154
|
+
constructor(name, headerName, type, style, location) {
|
|
155
|
+
super(name, type, style, location);
|
|
156
156
|
this.kind = "headerScalarParam";
|
|
157
157
|
this.headerName = headerName;
|
|
158
158
|
this.isApiVersion = false;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
export class MultipartFormBodyParameter extends HttpParameterBase {
|
|
162
|
-
constructor(name, type, style
|
|
163
|
-
super(name, type, style,
|
|
162
|
+
constructor(name, type, style) {
|
|
163
|
+
super(name, type, style, "method");
|
|
164
164
|
this.kind = "multipartFormBodyParam";
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -184,16 +184,16 @@ export class ParameterRef {
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
export class PartialBodyParameter extends HttpParameterBase {
|
|
187
|
-
constructor(name, serializedName, format, type, style
|
|
188
|
-
super(name, type, style,
|
|
187
|
+
constructor(name, serializedName, format, type, style) {
|
|
188
|
+
super(name, type, style, "method");
|
|
189
189
|
this.kind = "partialBodyParam";
|
|
190
190
|
this.format = format;
|
|
191
191
|
this.serializedName = serializedName;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
export class PathCollectionParameter extends HttpParameterBase {
|
|
195
|
-
constructor(name, pathSegment, isEncoded, type, collectionFormat, style,
|
|
196
|
-
super(name, type, style,
|
|
195
|
+
constructor(name, pathSegment, isEncoded, type, collectionFormat, style, location) {
|
|
196
|
+
super(name, type, style, location);
|
|
197
197
|
this.kind = "pathCollectionParam";
|
|
198
198
|
this.pathSegment = pathSegment;
|
|
199
199
|
this.isEncoded = isEncoded;
|
|
@@ -201,8 +201,8 @@ export class PathCollectionParameter extends HttpParameterBase {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
export class PathScalarParameter extends HttpParameterBase {
|
|
204
|
-
constructor(name, pathSegment, isEncoded, type, style,
|
|
205
|
-
super(name, type, style,
|
|
204
|
+
constructor(name, pathSegment, isEncoded, type, style, location) {
|
|
205
|
+
super(name, type, style, location);
|
|
206
206
|
this.kind = "pathScalarParam";
|
|
207
207
|
this.pathSegment = pathSegment;
|
|
208
208
|
this.isEncoded = isEncoded;
|
|
@@ -211,8 +211,8 @@ export class PathScalarParameter extends HttpParameterBase {
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
export class QueryCollectionParameter extends HttpParameterBase {
|
|
214
|
-
constructor(name, queryParam, isEncoded, type, collectionFormat, style,
|
|
215
|
-
super(name, type, style,
|
|
214
|
+
constructor(name, queryParam, isEncoded, type, collectionFormat, style, location) {
|
|
215
|
+
super(name, type, style, location);
|
|
216
216
|
this.kind = "queryCollectionParam";
|
|
217
217
|
this.queryParameter = queryParam;
|
|
218
218
|
this.isEncoded = isEncoded;
|
|
@@ -220,8 +220,8 @@ export class QueryCollectionParameter extends HttpParameterBase {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
export class QueryScalarParameter extends HttpParameterBase {
|
|
223
|
-
constructor(name, queryParam, isEncoded, type, style,
|
|
224
|
-
super(name, type, style,
|
|
223
|
+
constructor(name, queryParam, isEncoded, type, style, location) {
|
|
224
|
+
super(name, type, style, location);
|
|
225
225
|
this.kind = "queryScalarParam";
|
|
226
226
|
this.queryParameter = queryParam;
|
|
227
227
|
this.isEncoded = isEncoded;
|
|
@@ -230,14 +230,14 @@ export class QueryScalarParameter extends HttpParameterBase {
|
|
|
230
230
|
}
|
|
231
231
|
export class ResumeTokenParameter extends HttpParameterBase {
|
|
232
232
|
constructor() {
|
|
233
|
-
super("ResumeToken", new type.String(), "optional",
|
|
233
|
+
super("ResumeToken", new type.String(), "optional", "method");
|
|
234
234
|
this.kind = "resumeTokenParam";
|
|
235
235
|
this.docs.summary = "Resumes the long-running operation from the provided token.";
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
export class URIParameter extends HttpParameterBase {
|
|
239
|
-
constructor(name, uriPathSegment, type, style,
|
|
240
|
-
super(name, type, style,
|
|
239
|
+
constructor(name, uriPathSegment, type, style, location) {
|
|
240
|
+
super(name, type, style, location);
|
|
241
241
|
this.kind = "uriParam";
|
|
242
242
|
this.uriPathSegment = uriPathSegment;
|
|
243
243
|
this.isApiVersion = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param.js","sourceRoot":"","sources":["../../../src/codemodel/param.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,yLAAyL;AAEzL,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"param.js","sourceRoot":"","sources":["../../../src/codemodel/param.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AA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B,EACrB,QAA2B;QAE3B,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC5B,CAAC;CACF;AAED,MAAM,OAAO,oBAAqB,SAAQ,iBAAiB;IACzD;QACE,KAAK,CAAC,aAAa,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,6DAA6D,CAAC;IACpF,CAAC;CACF;AAED,MAAM,OAAO,YAAa,SAAQ,iBAAiB;IACjD,YACE,IAAY,EACZ,cAAsB,EACtB,IAAsB,EACtB,KAAqB,EACrB,QAA2B;QAE3B,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC5B,CAAC;CACF"}
|
|
@@ -8,6 +8,8 @@ export interface AnyResult {
|
|
|
8
8
|
kind: "anyResult";
|
|
9
9
|
/** the name of the field within the response envelope */
|
|
10
10
|
fieldName: string;
|
|
11
|
+
/** the result field type */
|
|
12
|
+
type: type.Any;
|
|
11
13
|
/** any docs for the result */
|
|
12
14
|
docs: type.Docs;
|
|
13
15
|
/**
|
|
@@ -23,6 +25,8 @@ export interface BinaryResult {
|
|
|
23
25
|
kind: "binaryResult";
|
|
24
26
|
/** the name of the field within the response envelope */
|
|
25
27
|
fieldName: string;
|
|
28
|
+
/** the result field type */
|
|
29
|
+
type: type.ReadCloser;
|
|
26
30
|
/** any docs for the result */
|
|
27
31
|
docs: type.Docs;
|
|
28
32
|
}
|
|
@@ -31,6 +35,8 @@ export interface HeadAsBooleanResult {
|
|
|
31
35
|
kind: "headAsBooleanResult";
|
|
32
36
|
/** the name of the field within the response envelope */
|
|
33
37
|
fieldName: string;
|
|
38
|
+
/** the result field type */
|
|
39
|
+
type: type.Scalar<"bool">;
|
|
34
40
|
/** any docs for the result */
|
|
35
41
|
docs: type.Docs;
|
|
36
42
|
}
|
|
@@ -59,12 +65,12 @@ export interface HeaderScalarResponse {
|
|
|
59
65
|
/** any docs for the header */
|
|
60
66
|
docs: type.Docs;
|
|
61
67
|
/** the type of the response header */
|
|
62
|
-
type:
|
|
63
|
-
/** indicates if the header is returned by value or by pointer */
|
|
64
|
-
byValue: boolean;
|
|
68
|
+
type: HeaderScalarResponseType;
|
|
65
69
|
/** the name of the header sent over the wire */
|
|
66
70
|
headerName: string;
|
|
67
71
|
}
|
|
72
|
+
/** defines the possible types for a scalar response header */
|
|
73
|
+
export type HeaderScalarResponseType = type.EncodedBytes | type.Ptr<param.HeaderScalarPtrType>;
|
|
68
74
|
/**
|
|
69
75
|
* used for methods that return a typed payload.
|
|
70
76
|
* the type is anonymously embedded in the response envelope.
|
|
@@ -78,7 +84,7 @@ export interface ModelResult {
|
|
|
78
84
|
* will be a PolymorphicModel when the response envelope
|
|
79
85
|
* is a concrete type from a polymorphic hierarchy
|
|
80
86
|
*/
|
|
81
|
-
|
|
87
|
+
type: type.Model | type.PolymorphicModel;
|
|
82
88
|
/** the format in which the result is returned */
|
|
83
89
|
format: ModelResultFormat;
|
|
84
90
|
}
|
|
@@ -95,16 +101,18 @@ export interface MonomorphicResult {
|
|
|
95
101
|
/** any docs for the result type */
|
|
96
102
|
docs: type.Docs;
|
|
97
103
|
/** the type returned in the response envelope */
|
|
98
|
-
|
|
104
|
+
type: MonomorphicResultType;
|
|
99
105
|
/** the format in which the result is returned */
|
|
100
106
|
format: ResultFormat;
|
|
101
|
-
/** indicates if the response type is returned by value or by pointer */
|
|
102
|
-
byValue: boolean;
|
|
103
107
|
/** optional XML schema metadata */
|
|
104
|
-
|
|
108
|
+
xmlWrapper?: string;
|
|
105
109
|
}
|
|
106
110
|
/** the possible monomorphic result types */
|
|
107
|
-
export type MonomorphicResultType =
|
|
111
|
+
export type MonomorphicResultType = Exclude<MonomorphicResultWireType, MonomorphicResultPtrType> | type.Ptr<MonomorphicResultPtrType>;
|
|
112
|
+
/** the set of monomorphic result types wrapped in a Ptr */
|
|
113
|
+
export type MonomorphicResultPtrType = type.Constant | type.Scalar | type.String | type.Time;
|
|
114
|
+
/** the set of monomorphic result wire types */
|
|
115
|
+
export type MonomorphicResultWireType = type.Any | type.EncodedBytes | type.Map | type.RawJSON | type.Slice | MonomorphicResultPtrType;
|
|
108
116
|
/**
|
|
109
117
|
* used for methods that return a discriminated type.
|
|
110
118
|
* the type is anonymously embedded in the response envelope.
|
|
@@ -114,7 +122,7 @@ export interface PolymorphicResult {
|
|
|
114
122
|
/** any docs for the result type */
|
|
115
123
|
docs: type.Docs;
|
|
116
124
|
/** the interface type used for the discriminated union of possible types */
|
|
117
|
-
|
|
125
|
+
type: type.Interface;
|
|
118
126
|
/**
|
|
119
127
|
* the format in which the result is returned.
|
|
120
128
|
* only JSON is supported for polymorphic types.
|
|
@@ -143,10 +151,8 @@ export interface ResponseEnvelope {
|
|
|
143
151
|
}
|
|
144
152
|
/** indicates the wire format for response bodies */
|
|
145
153
|
export type ResultFormat = "JSON" | "XML" | "Text";
|
|
146
|
-
/** returns the underlying type used for the specified result type */
|
|
147
|
-
export declare function getResultType(result: Result): type.Interface | type.Model | MonomorphicResultType | type.Scalar | type.ReadCloser | type.PolymorphicModel;
|
|
148
154
|
/** narrows type to a MonomorphicResultType within the conditional block */
|
|
149
|
-
export declare function isMonomorphicResultType(type: type.WireType): type is
|
|
155
|
+
export declare function isMonomorphicResultType(type: Exclude<type.WireType, type.Ptr>): type is MonomorphicResultWireType;
|
|
150
156
|
export declare class AnyResult implements AnyResult {
|
|
151
157
|
constructor(fieldName: string, format: ResultFormat, resultTypes: Record<number, type.WireType>);
|
|
152
158
|
}
|
|
@@ -160,13 +166,13 @@ export declare class HeaderMapResponse implements HeaderMapResponse {
|
|
|
160
166
|
constructor(fieldName: string, type: type.Map, headerName: string);
|
|
161
167
|
}
|
|
162
168
|
export declare class HeaderScalarResponse implements HeaderScalarResponse {
|
|
163
|
-
constructor(fieldName: string, type:
|
|
169
|
+
constructor(fieldName: string, type: HeaderScalarResponseType, headerName: string);
|
|
164
170
|
}
|
|
165
171
|
export declare class ModelResult implements ModelResult {
|
|
166
172
|
constructor(type: type.Model | type.PolymorphicModel, format: ModelResultFormat);
|
|
167
173
|
}
|
|
168
174
|
export declare class MonomorphicResult implements MonomorphicResult {
|
|
169
|
-
constructor(fieldName: string, format: ResultFormat, type: MonomorphicResultType
|
|
175
|
+
constructor(fieldName: string, format: ResultFormat, type: MonomorphicResultType);
|
|
170
176
|
}
|
|
171
177
|
export declare class PolymorphicResult implements PolymorphicResult {
|
|
172
178
|
constructor(type: type.Interface);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../src/codemodel/result.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,0EAA0E;AAC1E,MAAM,MAAM,MAAM,GACd,SAAS,GACT,YAAY,GACZ,mBAAmB,GACnB,WAAW,GACX,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,iFAAiF;AACjF,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,WAAW,CAAC;IAElB,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAElB,8BAA8B;IAC9B,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;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