@typespec/http-client-js 0.4.0-dev.6 → 0.4.0-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/client-context/client-context-declaration.js +1 -2
- package/dist/src/components/client-context/client-context-factory.js +2 -4
- package/dist/src/components/client-context/client-context-options.js +1 -2
- package/dist/src/components/client-context/client-context.js +1 -2
- package/dist/src/components/client-context/parametrized-endpoint.js +2 -4
- package/dist/src/components/client-directory.js +1 -2
- package/dist/src/components/client-operation.js +1 -2
- package/dist/src/components/client.js +2 -4
- package/dist/src/components/encoding-provider.js +1 -2
- package/dist/src/components/external-packages/ts-http-runtime.js +1 -2
- package/dist/src/components/external-packages/uri-template.js +1 -2
- package/dist/src/components/http-request-options.js +1 -2
- package/dist/src/components/http-request-parameters-expression.js +2 -4
- package/dist/src/components/http-request.js +2 -5
- package/dist/src/components/http-response.js +2 -4
- package/dist/src/components/models.js +2 -4
- package/dist/src/components/operation-handlers/index.js +1 -2
- package/dist/src/components/operation-handlers/operation-pipeline.js +1 -2
- package/dist/src/components/operation-handlers/paging/page-item.js +1 -2
- package/dist/src/components/operation-handlers/paging/page-response.js +1 -2
- package/dist/src/components/operation-handlers/paging/page-settings.js +1 -2
- package/dist/src/components/operation-handlers/paging/paginated-operation-handler.js +2 -4
- package/dist/src/components/operation-handlers/paging/request-send.js +2 -4
- package/dist/src/components/operation-handlers/paging/response-deserialize.js +2 -4
- package/dist/src/components/operation-handlers/paging/util.js +1 -2
- package/dist/src/components/operation-options.js +1 -2
- package/dist/src/components/operation-parameters.js +1 -2
- package/dist/src/components/output.js +1 -2
- package/dist/src/components/serializers.js +2 -4
- package/dist/src/components/static-helpers/bytes-encoding.js +2 -4
- package/dist/src/components/static-helpers/interfaces.js +1 -2
- package/dist/src/components/static-helpers/multipart-helpers.js +2 -4
- package/dist/src/components/static-helpers/paging-helper.js +2 -4
- package/dist/src/components/static-helpers/rest-error.js +2 -4
- package/dist/src/components/testing/client-options.js +1 -2
- package/dist/src/components/transforms/content-type-encoding-provider.js +1 -2
- package/dist/src/components/transforms/data-transform.js +1 -2
- package/dist/src/components/transforms/json/json-array-transform.js +2 -4
- package/dist/src/components/transforms/json/json-model-additional-properties-transform.js +2 -4
- package/dist/src/components/transforms/json/json-model-base-transform.js +2 -4
- package/dist/src/components/transforms/json/json-model-property-transform.js +1 -2
- package/dist/src/components/transforms/json/json-model-transform.js +2 -5
- package/dist/src/components/transforms/json/json-record-transform.js +2 -4
- package/dist/src/components/transforms/json/json-transform-discriminator.js +2 -5
- package/dist/src/components/transforms/json/json-transform.js +1 -2
- package/dist/src/components/transforms/json/union-transform.js +2 -5
- package/dist/src/components/transforms/json/utils/transport-namer.js +1 -2
- package/dist/src/components/transforms/multipart/array-part-transform.js +2 -4
- package/dist/src/components/transforms/multipart/file-part-transform.js +1 -2
- package/dist/src/components/transforms/multipart/multipart-transform.js +1 -2
- package/dist/src/components/transforms/multipart/part-transform.js +1 -2
- package/dist/src/components/transforms/multipart/simple-part-transform.js +1 -2
- package/dist/src/components/transforms/operation-transform-declaration.js +1 -2
- package/dist/src/components/transforms/operation-transform-expression.js +1 -2
- package/dist/src/components/transforms/scalar-transform.js +1 -2
- package/dist/src/components/transforms/transform-name-policy.js +1 -2
- package/dist/src/components/utils/unpack-model-property.js +1 -2
- package/dist/src/components/utils/url-template.js +2 -4
- package/dist/src/context/encoding/encoding-context.js +1 -2
- package/dist/src/emitter.js +1 -2
- package/dist/src/index.js +1 -2
- package/dist/src/lib.js +1 -2
- package/dist/src/testing/index.js +1 -2
- package/dist/src/utils/client-discovery.js +1 -2
- package/dist/src/utils/multipart.js +1 -2
- package/dist/src/utils/operations.js +1 -2
- package/dist/src/utils/parameters.js +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -10
- package/vitest.config.ts +2 -9
- package/babel.config.js +0 -4
- package/dist/src/components/client-context/client-context-declaration.js.map +0 -1
- package/dist/src/components/client-context/client-context-factory.js.map +0 -1
- package/dist/src/components/client-context/client-context-options.js.map +0 -1
- package/dist/src/components/client-context/client-context.js.map +0 -1
- package/dist/src/components/client-context/parametrized-endpoint.js.map +0 -1
- package/dist/src/components/client-directory.js.map +0 -1
- package/dist/src/components/client-operation.js.map +0 -1
- package/dist/src/components/client.js.map +0 -1
- package/dist/src/components/encoding-provider.js.map +0 -1
- package/dist/src/components/external-packages/ts-http-runtime.js.map +0 -1
- package/dist/src/components/external-packages/uri-template.js.map +0 -1
- package/dist/src/components/http-request-options.js.map +0 -1
- package/dist/src/components/http-request-parameters-expression.js.map +0 -1
- package/dist/src/components/http-request.js.map +0 -1
- package/dist/src/components/http-response.js.map +0 -1
- package/dist/src/components/models.js.map +0 -1
- package/dist/src/components/operation-handlers/index.js.map +0 -1
- package/dist/src/components/operation-handlers/operation-pipeline.js.map +0 -1
- package/dist/src/components/operation-handlers/paging/page-item.js.map +0 -1
- package/dist/src/components/operation-handlers/paging/page-response.js.map +0 -1
- package/dist/src/components/operation-handlers/paging/page-settings.js.map +0 -1
- package/dist/src/components/operation-handlers/paging/paginated-operation-handler.js.map +0 -1
- package/dist/src/components/operation-handlers/paging/request-send.js.map +0 -1
- package/dist/src/components/operation-handlers/paging/response-deserialize.js.map +0 -1
- package/dist/src/components/operation-handlers/paging/util.js.map +0 -1
- package/dist/src/components/operation-handlers/types.js.map +0 -1
- package/dist/src/components/operation-options.js.map +0 -1
- package/dist/src/components/operation-parameters.js.map +0 -1
- package/dist/src/components/output.js.map +0 -1
- package/dist/src/components/serializers.js.map +0 -1
- package/dist/src/components/static-helpers/bytes-encoding.js.map +0 -1
- package/dist/src/components/static-helpers/interfaces.js.map +0 -1
- package/dist/src/components/static-helpers/multipart-helpers.js.map +0 -1
- package/dist/src/components/static-helpers/paging-helper.js.map +0 -1
- package/dist/src/components/static-helpers/rest-error.js.map +0 -1
- package/dist/src/components/testing/client-options.js.map +0 -1
- package/dist/src/components/transforms/content-type-encoding-provider.js.map +0 -1
- package/dist/src/components/transforms/data-transform.js.map +0 -1
- package/dist/src/components/transforms/json/json-array-transform.js.map +0 -1
- package/dist/src/components/transforms/json/json-model-additional-properties-transform.js.map +0 -1
- package/dist/src/components/transforms/json/json-model-base-transform.js.map +0 -1
- package/dist/src/components/transforms/json/json-model-property-transform.js.map +0 -1
- package/dist/src/components/transforms/json/json-model-transform.js.map +0 -1
- package/dist/src/components/transforms/json/json-record-transform.js.map +0 -1
- package/dist/src/components/transforms/json/json-transform-discriminator.js.map +0 -1
- package/dist/src/components/transforms/json/json-transform.js.map +0 -1
- package/dist/src/components/transforms/json/union-transform.js.map +0 -1
- package/dist/src/components/transforms/json/utils/transport-namer.js.map +0 -1
- package/dist/src/components/transforms/multipart/array-part-transform.js.map +0 -1
- package/dist/src/components/transforms/multipart/file-part-transform.js.map +0 -1
- package/dist/src/components/transforms/multipart/multipart-transform.js.map +0 -1
- package/dist/src/components/transforms/multipart/part-transform.js.map +0 -1
- package/dist/src/components/transforms/multipart/simple-part-transform.js.map +0 -1
- package/dist/src/components/transforms/operation-transform-declaration.js.map +0 -1
- package/dist/src/components/transforms/operation-transform-expression.js.map +0 -1
- package/dist/src/components/transforms/scalar-transform.js.map +0 -1
- package/dist/src/components/transforms/transform-name-policy.js.map +0 -1
- package/dist/src/components/utils/unpack-model-property.js.map +0 -1
- package/dist/src/components/utils/url-template.js.map +0 -1
- package/dist/src/context/encoding/encoding-context.js.map +0 -1
- package/dist/src/context/encoding/types.js.map +0 -1
- package/dist/src/emitter.js.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/lib.js.map +0 -1
- package/dist/src/testing/index.js.map +0 -1
- package/dist/src/utils/client-discovery.js.map +0 -1
- package/dist/src/utils/multipart.js.map +0 -1
- package/dist/src/utils/operations.js.map +0 -1
- package/dist/src/utils/parameters.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -220,5 +219,4 @@ function ClientOptionsExpression(props) {
|
|
|
220
219
|
});
|
|
221
220
|
}
|
|
222
221
|
});
|
|
223
|
-
}
|
|
224
|
-
//# sourceMappingURL=client-context-factory.js.map
|
|
222
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { useTransformNamePolicy } from "@typespec/emitter-framework";
|
|
@@ -53,5 +52,4 @@ export function ParametrizedEndpoint(props) {
|
|
|
53
52
|
return [params, resolvedEndpoint];
|
|
54
53
|
}
|
|
55
54
|
});
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=parametrized-endpoint.js.map
|
|
55
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -171,5 +170,4 @@ function NewClientExpression(props) {
|
|
|
171
170
|
return props.args;
|
|
172
171
|
}
|
|
173
172
|
})];
|
|
174
|
-
}
|
|
175
|
-
//# sourceMappingURL=client.js.map
|
|
173
|
+
}
|
|
@@ -7,5 +7,4 @@ export const httpRuntimeTemplateLib = createPackage({
|
|
|
7
7
|
named: ["Client", "ClientOptions", "getClient", "ApiKeyCredential", "BasicCredential", "BearerTokenCredential", "OAuth2TokenCredential", "AuthorizationCodeFlow", "ClientCredentialsFlow", "ImplicitFlow", "PasswordFlow", "PathUncheckedResponse", "PipelineRequest", "HttpResponse", "RawHttpHeaders"]
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=ts-http-runtime.js.map
|
|
10
|
+
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { useTransformNamePolicy } from "@typespec/emitter-framework";
|
|
@@ -169,5 +168,4 @@ function findHttpPropertyByPath(httpOperation, path) {
|
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
return undefined;
|
|
172
|
-
}
|
|
173
|
-
//# sourceMappingURL=http-request-parameters-expression.js.map
|
|
171
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import { code, List, refkey, StatementList } from "@alloy-js/core";
|
|
5
3
|
import * as ts from "@alloy-js/typescript";
|
|
6
4
|
import { Reference } from "@alloy-js/typescript";
|
|
@@ -75,5 +73,4 @@ HttpRequest.Url = function HttpUrlDeclaration(props) {
|
|
|
75
73
|
});
|
|
76
74
|
}
|
|
77
75
|
});
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=http-request.js.map
|
|
76
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { code, For, List } from "@alloy-js/core";
|
|
4
3
|
import { isVoidType } from "@typespec/compiler";
|
|
5
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -65,5 +64,4 @@ export function HttpResponses(props) {
|
|
|
65
64
|
return null;
|
|
66
65
|
}
|
|
67
66
|
});
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=http-response.js.map
|
|
67
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { For, refkey } from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -40,5 +39,4 @@ export function Models(props) {
|
|
|
40
39
|
});
|
|
41
40
|
}
|
|
42
41
|
});
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=models.js.map
|
|
42
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -166,5 +165,4 @@ function GetElements(props) {
|
|
|
166
165
|
`;
|
|
167
166
|
}
|
|
168
167
|
});
|
|
169
|
-
}
|
|
170
|
-
//# sourceMappingURL=paginated-operation-handler.js.map
|
|
168
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import { List, StatementList, code, refkey } from "@alloy-js/core";
|
|
5
4
|
import * as ts from "@alloy-js/typescript";
|
|
@@ -74,5 +73,4 @@ export function HttpRequestSend(props) {
|
|
|
74
73
|
});
|
|
75
74
|
}
|
|
76
75
|
});
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=request-send.js.map
|
|
76
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { code, List, refkey } from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { FunctionDeclaration } from "@typespec/emitter-framework/typescript";
|
|
@@ -47,5 +46,4 @@ export function HttpResponseDeserialize(props) {
|
|
|
47
46
|
})];
|
|
48
47
|
}
|
|
49
48
|
});
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=response-deserialize.js.map
|
|
49
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ts from "@alloy-js/typescript";
|
|
4
3
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
5
4
|
import { DateDeserializer, DateRfc3339Serializer, DateRfc7231Deserializer, DateRfc7231Serializer, DateUnixTimestampDeserializer, DateUnixTimestampSerializer } from "@typespec/emitter-framework/typescript";
|
|
@@ -55,5 +54,4 @@ function isOrExtendsFile(type) {
|
|
|
55
54
|
return true;
|
|
56
55
|
}
|
|
57
56
|
return type.baseModel ? isOrExtendsFile(type.baseModel) : false;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=serializers.js.map
|
|
57
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
export function getEncodeUint8ArrayRef() {
|
|
@@ -62,5 +61,4 @@ export function DecodeBase64() {
|
|
|
62
61
|
`;
|
|
63
62
|
}
|
|
64
63
|
});
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=bytes-encoding.js.map
|
|
64
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
export function getFileContentsTypeReference() {
|
|
@@ -81,5 +80,4 @@ function getCreateFilePartParameters() {
|
|
|
81
80
|
refkey: ay.refkey(),
|
|
82
81
|
type: "string"
|
|
83
82
|
}];
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=multipart-helpers.js.map
|
|
83
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
export function getPagedAsyncIterableIteratorRefkey() {
|
|
@@ -193,5 +192,4 @@ export function PagingHelpers() {
|
|
|
193
192
|
return [_$createComponent(PagedAsyncIterableIteratorInterfaceDeclaration, {}), _$createComponent(PagedResultInterfaceDeclaration, {}), _$createComponent(BuildPagedAsyncIteratorOptionsInterfaceDeclaration, {}), _$createComponent(BuildPagedAsyncIteratorInterfaceDeclaration, {})];
|
|
194
193
|
}
|
|
195
194
|
});
|
|
196
|
-
}
|
|
197
|
-
//# sourceMappingURL=paging-helper.js.map
|
|
195
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { httpRuntimeTemplateLib } from "../external-packages/ts-http-runtime.js";
|
|
@@ -137,5 +136,4 @@ export function RestError() {
|
|
|
137
136
|
}
|
|
138
137
|
});
|
|
139
138
|
return [restErrorClass, "\n\n", createRestError];
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=rest-error.js.map
|
|
139
|
+
}
|
|
@@ -27,5 +27,4 @@ export function ScalarDataTransform(props) {
|
|
|
27
27
|
toTransport
|
|
28
28
|
} = getScalarTransformer(scalar);
|
|
29
29
|
return props.target === "transport" ? toTransport(props.itemRef, encoding) : toApplication(props.itemRef, encoding);
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=data-transform.js.map
|
|
30
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import * as ef from "@typespec/emitter-framework/typescript";
|
|
@@ -66,5 +65,4 @@ export function JsonArrayTransformDeclaration(props) {
|
|
|
66
65
|
}));
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=json-array-transform.js.map
|
|
68
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -31,5 +30,4 @@ export function JsonAdditionalPropertiesTransform(props) {
|
|
|
31
30
|
}
|
|
32
31
|
const itemRef = ay.code`${props.itemRef}.additionalProperties`;
|
|
33
32
|
return ["...(", _$memo(() => getJsonRecordTransformRefkey(additionalProperties, props.target)), "(", itemRef, ") ),"];
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=json-model-additional-properties-transform.js.map
|
|
33
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { mergeProps as _$mergeProps, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import { JsonTransform } from "./json-transform.js";
|
|
4
3
|
export function JsonModelBaseTransform(props) {
|
|
5
4
|
const baseModel = props.type.baseModel;
|
|
@@ -9,5 +8,4 @@ export function JsonModelBaseTransform(props) {
|
|
|
9
8
|
return ["...", _$createComponent(JsonTransform, _$mergeProps(props, {
|
|
10
9
|
type: baseModel
|
|
11
10
|
})), ","];
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=json-model-base-transform.js.map
|
|
11
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import * as ay from "@alloy-js/core";
|
|
5
3
|
import * as ts from "@alloy-js/typescript";
|
|
6
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -95,5 +93,4 @@ export function JsonModelTransformDeclaration(props) {
|
|
|
95
93
|
})), "!;"];
|
|
96
94
|
}
|
|
97
95
|
})];
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=json-model-transform.js.map
|
|
96
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -66,5 +65,4 @@ export function JsonRecordTransformDeclaration(props) {
|
|
|
66
65
|
}));
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=json-record-transform.js.map
|
|
68
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { createComponent as _$createComponent, memo as _$memo, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import * as ay from "@alloy-js/core";
|
|
5
3
|
import * as ts from "@alloy-js/typescript";
|
|
6
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -72,5 +70,4 @@ export function JsonTransformDiscriminatorDeclaration(props) {
|
|
|
72
70
|
}))];
|
|
73
71
|
}
|
|
74
72
|
});
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=json-transform-discriminator.js.map
|
|
73
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, mergeProps as _$mergeProps, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
2
|
import * as ay from "@alloy-js/core";
|
|
5
3
|
import * as ts from "@alloy-js/typescript";
|
|
6
4
|
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
@@ -62,5 +60,4 @@ export function JsonUnionTransformDeclaration(props) {
|
|
|
62
60
|
}))];
|
|
63
61
|
}
|
|
64
62
|
})];
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=union-transform.js.map
|
|
63
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
3
2
|
import * as ay from "@alloy-js/core";
|
|
4
3
|
import * as ts from "@alloy-js/typescript";
|
|
5
4
|
import { HttpPartTransform } from "./part-transform.js";
|
|
@@ -25,5 +24,4 @@ function getPartRef(itemRef, partName) {
|
|
|
25
24
|
return partName;
|
|
26
25
|
}
|
|
27
26
|
return ay.code`${itemRef}.${partName}`;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=array-part-transform.js.map
|
|
27
|
+
}
|