@typespec/http-client-js 0.4.0-dev.2 → 0.4.0-dev.3
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 +0 -1
- package/dist/src/components/client-operation.d.ts +4 -1
- package/dist/src/components/client-operation.d.ts.map +1 -1
- package/dist/src/components/client-operation.js +64 -32
- package/dist/src/components/client-operation.js.map +1 -1
- package/dist/src/components/client.d.ts.map +1 -1
- package/dist/src/components/client.js +2 -1
- package/dist/src/components/client.js.map +1 -1
- package/dist/src/components/http-request-options.d.ts +4 -4
- package/dist/src/components/http-request-options.d.ts.map +1 -1
- package/dist/src/components/http-request-options.js +10 -11
- package/dist/src/components/http-request-options.js.map +1 -1
- package/dist/src/components/http-request.d.ts +3 -3
- package/dist/src/components/http-request.d.ts.map +1 -1
- package/dist/src/components/http-request.js +35 -31
- package/dist/src/components/http-request.js.map +1 -1
- package/dist/src/components/http-response.d.ts +3 -3
- package/dist/src/components/http-response.d.ts.map +1 -1
- package/dist/src/components/http-response.js +11 -6
- package/dist/src/components/http-response.js.map +1 -1
- package/dist/src/components/operation-handlers/index.d.ts +3 -0
- package/dist/src/components/operation-handlers/index.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/index.js +3 -0
- package/dist/src/components/operation-handlers/index.js.map +1 -0
- package/dist/src/components/operation-handlers/operation-pipeline.d.ts +15 -0
- package/dist/src/components/operation-handlers/operation-pipeline.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/operation-pipeline.js +28 -0
- package/dist/src/components/operation-handlers/operation-pipeline.js.map +1 -0
- package/dist/src/components/operation-handlers/paging/page-item.d.ts +3 -0
- package/dist/src/components/operation-handlers/paging/page-item.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/paging/page-item.js +17 -0
- package/dist/src/components/operation-handlers/paging/page-item.js.map +1 -0
- package/dist/src/components/operation-handlers/paging/page-response.d.ts +10 -0
- package/dist/src/components/operation-handlers/paging/page-response.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/paging/page-response.js +50 -0
- package/dist/src/components/operation-handlers/paging/page-response.js.map +1 -0
- package/dist/src/components/operation-handlers/paging/page-settings.d.ts +11 -0
- package/dist/src/components/operation-handlers/paging/page-settings.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/paging/page-settings.js +52 -0
- package/dist/src/components/operation-handlers/paging/page-settings.js.map +1 -0
- package/dist/src/components/operation-handlers/paging/paginated-operation-handler.d.ts +3 -0
- package/dist/src/components/operation-handlers/paging/paginated-operation-handler.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/paging/paginated-operation-handler.js +170 -0
- package/dist/src/components/operation-handlers/paging/paginated-operation-handler.js.map +1 -0
- package/dist/src/components/operation-handlers/paging/request-send.d.ts +12 -0
- package/dist/src/components/operation-handlers/paging/request-send.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/paging/request-send.js +78 -0
- package/dist/src/components/operation-handlers/paging/request-send.js.map +1 -0
- package/dist/src/components/operation-handlers/paging/response-deserialize.d.ts +11 -0
- package/dist/src/components/operation-handlers/paging/response-deserialize.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/paging/response-deserialize.js +51 -0
- package/dist/src/components/operation-handlers/paging/response-deserialize.js.map +1 -0
- package/dist/src/components/operation-handlers/paging/util.d.ts +17 -0
- package/dist/src/components/operation-handlers/paging/util.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/paging/util.js +46 -0
- package/dist/src/components/operation-handlers/paging/util.js.map +1 -0
- package/dist/src/components/operation-handlers/types.d.ts +16 -0
- package/dist/src/components/operation-handlers/types.d.ts.map +1 -0
- package/dist/src/components/operation-handlers/types.js +1 -0
- package/dist/src/components/operation-handlers/types.js.map +1 -0
- package/dist/src/components/operation-options.d.ts +2 -0
- package/dist/src/components/operation-options.d.ts.map +1 -1
- package/dist/src/components/operation-options.js +2 -1
- package/dist/src/components/operation-options.js.map +1 -1
- package/dist/src/components/output.d.ts.map +1 -1
- package/dist/src/components/output.js +4 -0
- package/dist/src/components/output.js.map +1 -1
- package/dist/src/components/static-helpers/paging-helper.d.ts +5 -0
- package/dist/src/components/static-helpers/paging-helper.d.ts.map +1 -0
- package/dist/src/components/static-helpers/paging-helper.js +197 -0
- package/dist/src/components/static-helpers/paging-helper.js.map +1 -0
- package/dist/src/components/transforms/operation-transform-expression.d.ts +2 -2
- package/dist/src/components/transforms/operation-transform-expression.d.ts.map +1 -1
- package/dist/src/components/transforms/operation-transform-expression.js +1 -1
- package/dist/src/components/transforms/operation-transform-expression.js.map +1 -1
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +2 -1
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/lib.d.ts +17 -2
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +6 -0
- package/dist/src/lib.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/client-operation.tsx +37 -13
- package/src/components/client.tsx +2 -1
- package/src/components/http-request-options.tsx +11 -12
- package/src/components/http-request.tsx +22 -21
- package/src/components/http-response.tsx +8 -9
- package/src/components/operation-handlers/index.tsx +2 -0
- package/src/components/operation-handlers/operation-pipeline.tsx +33 -0
- package/src/components/operation-handlers/paging/page-item.tsx +13 -0
- package/src/components/operation-handlers/paging/page-response.tsx +55 -0
- package/src/components/operation-handlers/paging/page-settings.tsx +53 -0
- package/src/components/operation-handlers/paging/paginated-operation-handler.tsx +192 -0
- package/src/components/operation-handlers/paging/request-send.tsx +70 -0
- package/src/components/operation-handlers/paging/response-deserialize.tsx +54 -0
- package/src/components/operation-handlers/paging/util.ts +70 -0
- package/src/components/operation-handlers/types.tsx +18 -0
- package/src/components/operation-options.tsx +6 -3
- package/src/components/output.tsx +2 -1
- package/src/components/static-helpers/paging-helper.tsx +195 -0
- package/src/components/transforms/operation-transform-expression.tsx +3 -3
- package/src/emitter.tsx +2 -0
- package/src/lib.ts +6 -0
- package/test/e2e/http/payload/pageable/main.test.ts +78 -22
- package/test/scenarios/http-operations/paging.md +244 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export function extractPagingDetail(httpOperation, pagingOperation) {
|
|
2
|
+
const ret = {
|
|
3
|
+
pattern: "nextLink",
|
|
4
|
+
output: {
|
|
5
|
+
items: pagingOperation.output.pageItems.property.name
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
const returnedNextToken = pagingOperation.output.nextLink?.property ?? pagingOperation.output.continuationToken?.property;
|
|
9
|
+
const isHeaderToken = getResponseHeader(httpOperation, returnedNextToken);
|
|
10
|
+
const returnedTokenPosition = isHeaderToken ? "headers" : "body";
|
|
11
|
+
const returnedTokenName = isHeaderToken ? isHeaderToken : returnedNextToken?.name;
|
|
12
|
+
if (returnedNextToken && returnedTokenName) {
|
|
13
|
+
ret.output.nextToken = {
|
|
14
|
+
name: returnedTokenName,
|
|
15
|
+
position: returnedTokenPosition
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
if (pagingOperation.output.continuationToken) {
|
|
19
|
+
ret.pattern = "continuationToken";
|
|
20
|
+
if (pagingOperation.input.continuationToken) {
|
|
21
|
+
ret.input = {
|
|
22
|
+
nextToken: pagingOperation.input.continuationToken?.property.name
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return ret;
|
|
26
|
+
}
|
|
27
|
+
return ret;
|
|
28
|
+
}
|
|
29
|
+
function getResponseHeader(httpOperation, prop) {
|
|
30
|
+
if (!prop) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
const headers = httpOperation.responses.flatMap(resp => resp.responses).map(resp => resp.headers);
|
|
34
|
+
for (const header of headers) {
|
|
35
|
+
if (!header) {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
for (const key in header) {
|
|
39
|
+
if (header[key] === prop) {
|
|
40
|
+
return key;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","names":["extractPagingDetail","httpOperation","pagingOperation","ret","pattern","output","items","pageItems","property","name","returnedNextToken","nextLink","continuationToken","isHeaderToken","getResponseHeader","returnedTokenPosition","returnedTokenName","nextToken","position","input","prop","undefined","headers","responses","flatMap","resp","map","header","key"],"sources":["../../../../../src/components/operation-handlers/paging/util.ts"],"sourcesContent":[null],"mappings":"AAkBA,OAAO,SAASA,mBAAmBA,CACjCC,aAA4B,EAC5BC,eAAgC,EAClB;EACd,MAAMC,GAAiB,GAAG;IACxBC,OAAO,EAAE,UAAU;IACnBC,MAAM,EAAE;MACNC,KAAK,EAAEJ,eAAe,CAACG,MAAM,CAACE,SAAS,CAACC,QAAQ,CAACC;IACnD;EACF,CAAC;EACD,MAAMC,iBAAiB,GACrBR,eAAe,CAACG,MAAM,CAACM,QAAQ,EAAEH,QAAQ,IAAIN,eAAe,CAACG,MAAM,CAACO,iBAAiB,EAAEJ,QAAQ;EACjG,MAAMK,aAAa,GAAGC,iBAAiB,CAACb,aAAa,EAAES,iBAAiB,CAAC;EACzE,MAAMK,qBAAqB,GAAGF,aAAa,GAAG,SAAS,GAAG,MAAM;EAChE,MAAMG,iBAAiB,GAAGH,aAAa,GAAGA,aAAa,GAAGH,iBAAiB,EAAED,IAAI;EACjF,IAAIC,iBAAiB,IAAIM,iBAAiB,EAAE;IAC1Cb,GAAG,CAACE,MAAM,CAACY,SAAS,GAAG;MACrBR,IAAI,EAAEO,iBAAiB;MACvBE,QAAQ,EAAEH;IACZ,CAAC;EACH;EACA,IAAIb,eAAe,CAACG,MAAM,CAACO,iBAAiB,EAAE;IAC5CT,GAAG,CAACC,OAAO,GAAG,mBAAmB;IACjC,IAAIF,eAAe,CAACiB,KAAK,CAACP,iBAAiB,EAAE;MAC3CT,GAAG,CAACgB,KAAK,GAAG;QACVF,SAAS,EAAEf,eAAe,CAACiB,KAAK,CAACP,iBAAiB,EAAEJ,QAAQ,CAACC;MAC/D,CAAC;IACH;IACA,OAAON,GAAG;EACZ;EACA,OAAOA,GAAG;AACZ;AAEA,SAASW,iBAAiBA,CAACb,aAA4B,EAAEmB,IAAoB,EAAsB;EACjG,IAAI,CAACA,IAAI,EAAE;IACT,OAAOC,SAAS;EAClB;EACA,MAAMC,OAAO,GAAGrB,aAAa,CAACsB,SAAS,CACpCC,OAAO,CAAEC,IAAI,IAAKA,IAAI,CAACF,SAAS,CAAC,CACjCG,GAAG,CAAED,IAAI,IAAKA,IAAI,CAACH,OAAO,CAAC;EAC9B,KAAK,MAAMK,MAAM,IAAIL,OAAO,EAAE;IAC5B,IAAI,CAACK,MAAM,EAAE;MACX;IACF;IACA,KAAK,MAAMC,GAAG,IAAID,MAAM,EAAE;MACxB,IAAIA,MAAM,CAACC,GAAG,CAAC,KAAKR,IAAI,EAAE;QACxB,OAAOQ,GAAG;MACZ;IACF;EACF;EACA,OAAOP,SAAS;AAClB","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Children } from "@alloy-js/core";
|
|
2
|
+
import { HttpOperation } from "@typespec/http";
|
|
3
|
+
export interface OperationHandler {
|
|
4
|
+
/**
|
|
5
|
+
* Check if this handler can handle the given operation
|
|
6
|
+
*/
|
|
7
|
+
canHandle(operation: HttpOperation): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Render the operation using this handler
|
|
10
|
+
*/
|
|
11
|
+
handle(operation: HttpOperation): Children;
|
|
12
|
+
}
|
|
13
|
+
export interface OperationHandlerPipeline {
|
|
14
|
+
handlers: OperationHandler[];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/operation-handlers/types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,SAAS,EAAE,aAAa,GAAG,OAAO,CAAC;IAE7C;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,aAAa,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as ay from "@alloy-js/core";
|
|
2
|
+
import { ModelProperty } from "@typespec/compiler";
|
|
2
3
|
import { HttpOperation } from "@typespec/http";
|
|
3
4
|
export interface OperationOptionsProps {
|
|
4
5
|
operation: HttpOperation;
|
|
6
|
+
excludes?: ModelProperty[];
|
|
5
7
|
}
|
|
6
8
|
export declare function getOperationOptionsTypeRefkey(operation: HttpOperation): ay.Refkey;
|
|
7
9
|
export declare function OperationOptionsDeclaration(props: OperationOptionsProps): ay.Children;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-options.d.ts","sourceRoot":"","sources":["../../../src/components/operation-options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"operation-options.d.ts","sourceRoot":"","sources":["../../../src/components/operation-options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,aAAa,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,aAAa,aAErE;AACD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,qBAAqB,eA0BvE"}
|
|
@@ -9,8 +9,9 @@ export function getOperationOptionsTypeRefkey(operation) {
|
|
|
9
9
|
}
|
|
10
10
|
export function OperationOptionsDeclaration(props) {
|
|
11
11
|
const namePolicy = ts.useTSNamePolicy();
|
|
12
|
+
const excludes = (props.excludes ?? []).map(p => p.name);
|
|
12
13
|
const interfaceName = namePolicy.getName(props.operation.operation.name + "Options", "interface");
|
|
13
|
-
const optionalParameters = props.operation.parameters.properties.filter(p => p.property.optional || hasDefaultValue(p));
|
|
14
|
+
const optionalParameters = props.operation.parameters.properties.filter(p => !excludes.includes(p.property.name)).filter(p => p.property.optional || hasDefaultValue(p));
|
|
14
15
|
return _$createComponent(ts.InterfaceDeclaration, {
|
|
15
16
|
"export": true,
|
|
16
17
|
name: interfaceName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-options.js","names":["ay","ts","ef","hasDefaultValue","getOperationOptionsInterfaceRefkey","getOperationOptionsTypeRefkey","operation","refkey","OperationOptionsDeclaration","props","namePolicy","useTSNamePolicy","
|
|
1
|
+
{"version":3,"file":"operation-options.js","names":["ay","ts","ef","hasDefaultValue","getOperationOptionsInterfaceRefkey","getOperationOptionsTypeRefkey","operation","refkey","OperationOptionsDeclaration","props","namePolicy","useTSNamePolicy","excludes","map","p","name","interfaceName","getName","optionalParameters","parameters","properties","filter","includes","property","optional","_$createComponent","InterfaceDeclaration","extends","children","For","each","line","parameter","InterfaceMember","type","TypeExpression"],"sources":["../../../src/components/operation-options.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,EAAE,MAAM,gBAAgB;AACpC,OAAO,KAAKC,EAAE,MAAM,sBAAsB;AAE1C,OAAO,KAAKC,EAAE,MAAM,wCAAwC;AAE5D,SAASC,eAAe;AACxB,SAASC,kCAAkC;AA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A;UAC7BS,QAAQ;UAAA,IACRU,IAAIA,CAAA;YAAA,OAAAT,iBAAA,CAAGvB,EAAE,CAACiC,cAAc;cAAA,IAACD,IAAIA,CAAA;gBAAA,OAAEF,SAAS,CAACT,QAAQ,CAACW,IAAI;cAAA;YAAA;UAAA;QAAA;MAEzD;IAAA;EAAA;AAIT","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/components/output.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/components/output.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAUrC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC;CACxB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,eAYxC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
2
|
import * as ay from "@alloy-js/core";
|
|
3
3
|
import * as ts from "@alloy-js/typescript";
|
|
4
|
+
import { $ } from "@typespec/compiler/experimental/typekit";
|
|
4
5
|
import { TransformNamePolicyContext } from "@typespec/emitter-framework";
|
|
5
6
|
import { ClientLibrary } from "@typespec/http-client/components";
|
|
6
7
|
import { EncodingProvider } from "./encoding-provider.js";
|
|
@@ -15,6 +16,9 @@ export function Output(props) {
|
|
|
15
16
|
externals: [uriTemplateLib, httpRuntimeTemplateLib],
|
|
16
17
|
get children() {
|
|
17
18
|
return _$createComponent(ClientLibrary, {
|
|
19
|
+
get program() {
|
|
20
|
+
return $.program;
|
|
21
|
+
},
|
|
18
22
|
get children() {
|
|
19
23
|
return _$createComponent(TransformNamePolicyContext.Provider, {
|
|
20
24
|
value: defaultTransformNamePolicy,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","names":["ay","ts","TransformNamePolicyContext","ClientLibrary","EncodingProvider","httpRuntimeTemplateLib","uriTemplateLib","createTransformNamePolicy","Output","props","tsNamePolicy","createTSNamePolicy","defaultTransformNamePolicy","_$createComponent","namePolicy","externals","children","Provider","value"],"sources":["../../../src/components/output.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,EAAE,MAAM,gBAAgB;AACpC,OAAO,KAAKC,EAAE,MAAM,sBAAsB;AAC1C,SAASC,0BAA0B,QAAQ,6BAA6B;AACxE,SAASC,aAAa,QAAQ,kCAAkC;AAChE,SAASC,gBAAgB;AACzB,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SAASC,cAAc,QAAQ,qCAAqC;AACpE,SAASC,yBAAyB,QAAQ,uCAAuC;AAMjF,OAAO,SAASC,MAAMA,CAACC,KAAkB,EAAE;EACzC,MAAMC,YAAY,
|
|
1
|
+
{"version":3,"file":"output.js","names":["ay","ts","$","TransformNamePolicyContext","ClientLibrary","EncodingProvider","httpRuntimeTemplateLib","uriTemplateLib","createTransformNamePolicy","Output","props","tsNamePolicy","createTSNamePolicy","defaultTransformNamePolicy","_$createComponent","namePolicy","externals","children","program","Provider","value"],"sources":["../../../src/components/output.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,EAAE,MAAM,gBAAgB;AACpC,OAAO,KAAKC,EAAE,MAAM,sBAAsB;AAC1C,SAASC,CAAC,QAAQ,yCAAyC;AAC3D,SAASC,0BAA0B,QAAQ,6BAA6B;AACxE,SAASC,aAAa,QAAQ,kCAAkC;AAChE,SAASC,gBAAgB;AACzB,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SAASC,cAAc,QAAQ,qCAAqC;AACpE,SAASC,yBAAyB,QAAQ,uCAAuC;AAMjF,OAAO,SAASC,MAAMA,CAACC,KAAkB,EAAE;EACzC,MAAMC,YAAY,GAAGV,EAAE,CAACW,kBAAkB,CAAC,CAAC;EAC5C,MAAMC,0BAA0B,GAAGL,yBAAyB,CAAC,CAAC;EAC9D,OAAAM,iBAAA,CACGd,EAAE,CAACS,MAAM;IAACM,UAAU,EAAEJ,YAAY;IAAEK,SAAS,EAAE,CAACT,cAAc,EAAED,sBAAsB,CAAC;IAAA,IAAAW,SAAA;MAAA,OAAAH,iBAAA,CACrFV,aAAa;QAAA,IAACc,OAAOA,CAAA;UAAA,OAAEhB,CAAC,CAACgB,OAAO;QAAA;QAAA,IAAAD,SAAA;UAAA,OAAAH,iBAAA,CAC9BX,0BAA0B,CAACgB,QAAQ;YAACC,KAAK,EAAEP,0BAA0B;YAAA,IAAAI,SAAA;cAAA,OAAAH,iBAAA,CACnET,gBAAgB;gBAAA,IAAAY,SAAA;kBAAA,OAAEP,KAAK,CAACO,QAAQ;gBAAA;cAAA;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA;AAK3C","ignoreList":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as ay from "@alloy-js/core";
|
|
2
|
+
export declare function getPagedAsyncIterableIteratorRefkey(): ay.Refkey;
|
|
3
|
+
export declare function getBuildPagedAsyncIteratorRefkey(): ay.Refkey;
|
|
4
|
+
export declare function PagingHelpers(): ay.Children;
|
|
5
|
+
//# sourceMappingURL=paging-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paging-helper.d.ts","sourceRoot":"","sources":["../../../../src/components/static-helpers/paging-helper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGrC,wBAAgB,mCAAmC,cAElD;AAED,wBAAgB,gCAAgC,cAE/C;AAgLD,wBAAgB,aAAa,gBAS5B"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
import * as ay from "@alloy-js/core";
|
|
4
|
+
import * as ts from "@alloy-js/typescript";
|
|
5
|
+
export function getPagedAsyncIterableIteratorRefkey() {
|
|
6
|
+
return ay.refkey("PagedAsyncIterableIterator", "interface");
|
|
7
|
+
}
|
|
8
|
+
export function getBuildPagedAsyncIteratorRefkey() {
|
|
9
|
+
return ay.refkey("buildPagedAsyncIterator", "function");
|
|
10
|
+
}
|
|
11
|
+
function getPagedResultRefkey() {
|
|
12
|
+
return ay.refkey("PagedResult", "interface");
|
|
13
|
+
}
|
|
14
|
+
function getBuildPagedAsyncIteratorOptionsRefkey() {
|
|
15
|
+
return ay.refkey("BuildPagedAsyncIteratorOptions", "interface");
|
|
16
|
+
}
|
|
17
|
+
function PagedAsyncIterableIteratorInterfaceDeclaration() {
|
|
18
|
+
return _$createComponent(ay.Declaration, {
|
|
19
|
+
name: "PagedAsyncIterableIterator",
|
|
20
|
+
get refkey() {
|
|
21
|
+
return getPagedAsyncIterableIteratorRefkey();
|
|
22
|
+
},
|
|
23
|
+
get children() {
|
|
24
|
+
return ay.code`
|
|
25
|
+
/**
|
|
26
|
+
* An interface that allows async iterable iteration both to completion and by page.
|
|
27
|
+
*/
|
|
28
|
+
export interface PagedAsyncIterableIterator<
|
|
29
|
+
TElement,
|
|
30
|
+
TPageResponse,
|
|
31
|
+
TPageSettings,
|
|
32
|
+
> {
|
|
33
|
+
/**
|
|
34
|
+
* The next method, part of the iteration protocol
|
|
35
|
+
*/
|
|
36
|
+
next(): Promise<IteratorResult<TElement>>;
|
|
37
|
+
/**
|
|
38
|
+
* The connection to the async iterator, part of the iteration protocol
|
|
39
|
+
*/
|
|
40
|
+
[Symbol.asyncIterator](): PagedAsyncIterableIterator<
|
|
41
|
+
TElement,
|
|
42
|
+
TPageResponse,
|
|
43
|
+
TPageSettings
|
|
44
|
+
>;
|
|
45
|
+
/**
|
|
46
|
+
* Return an AsyncIterableIterator that works a page at a time
|
|
47
|
+
*/
|
|
48
|
+
byPage: (
|
|
49
|
+
settings?: TPageSettings,
|
|
50
|
+
) => AsyncIterableIterator<TPageResponse>;
|
|
51
|
+
} `;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function PagedResultInterfaceDeclaration() {
|
|
56
|
+
return _$createComponent(ay.Declaration, {
|
|
57
|
+
name: "PagedResult",
|
|
58
|
+
get refkey() {
|
|
59
|
+
return getPagedResultRefkey();
|
|
60
|
+
},
|
|
61
|
+
get children() {
|
|
62
|
+
return ay.code`
|
|
63
|
+
/**
|
|
64
|
+
* An interface that describes how to communicate with the service.
|
|
65
|
+
*/
|
|
66
|
+
interface PagedResult<
|
|
67
|
+
TElement,
|
|
68
|
+
TPageResponse,
|
|
69
|
+
TPageSettings,
|
|
70
|
+
> {
|
|
71
|
+
/**
|
|
72
|
+
* Extract the paged elements from the response. Only support array of elements.
|
|
73
|
+
* @param response paged response
|
|
74
|
+
* @returns TElement[]
|
|
75
|
+
*/
|
|
76
|
+
getElements: (response: TPageResponse) => TElement[];
|
|
77
|
+
/**
|
|
78
|
+
* A method that returns a page of results.
|
|
79
|
+
*/
|
|
80
|
+
getPage: (
|
|
81
|
+
nextLinkOrContinuationToken?: string,
|
|
82
|
+
settings?: TPageSettings,
|
|
83
|
+
) => Promise<{ pagedResponse: TPageResponse; nextToken?: string } | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* a function to implement the \`byPage\` method on the paged async iterator.
|
|
86
|
+
*/
|
|
87
|
+
byPage: (
|
|
88
|
+
settings?: TPageSettings,
|
|
89
|
+
) => AsyncIterableIterator<TPageResponse>;
|
|
90
|
+
}`;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function BuildPagedAsyncIteratorOptionsInterfaceDeclaration() {
|
|
95
|
+
return _$createComponent(ay.Declaration, {
|
|
96
|
+
name: "BuildPagedAsyncIteratorOptions",
|
|
97
|
+
get refkey() {
|
|
98
|
+
return getBuildPagedAsyncIteratorOptionsRefkey();
|
|
99
|
+
},
|
|
100
|
+
get children() {
|
|
101
|
+
return ay.code`
|
|
102
|
+
/**
|
|
103
|
+
* Options for the paging helper
|
|
104
|
+
*/
|
|
105
|
+
export interface BuildPagedAsyncIteratorOptions<
|
|
106
|
+
TElement,
|
|
107
|
+
TPageResponse,
|
|
108
|
+
TPageSettings,
|
|
109
|
+
> {
|
|
110
|
+
getElements: (response: TPageResponse) => TElement[];
|
|
111
|
+
getPagedResponse: (nextToken?: string, settings?: TPageSettings) => Promise<{ pagedResponse: TPageResponse; nextToken?: string } | undefined>;
|
|
112
|
+
}`;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function BuildPagedAsyncIteratorInterfaceDeclaration() {
|
|
117
|
+
return _$createComponent(ay.Declaration, {
|
|
118
|
+
name: "buildPagedAsyncIterator",
|
|
119
|
+
get refkey() {
|
|
120
|
+
return getBuildPagedAsyncIteratorRefkey();
|
|
121
|
+
},
|
|
122
|
+
get children() {
|
|
123
|
+
return ay.code`
|
|
124
|
+
/**
|
|
125
|
+
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
|
126
|
+
*/
|
|
127
|
+
export function buildPagedAsyncIterator<
|
|
128
|
+
TElement,
|
|
129
|
+
TPageResponse,
|
|
130
|
+
TPageSettings
|
|
131
|
+
>(
|
|
132
|
+
options: BuildPagedAsyncIteratorOptions<TElement, TPageResponse, TPageSettings>,
|
|
133
|
+
): PagedAsyncIterableIterator<TElement, TPageResponse, TPageSettings> {
|
|
134
|
+
const pagedResult: ${getPagedResultRefkey()}<TElement, TPageResponse, TPageSettings> = {
|
|
135
|
+
getElements: options.getElements,
|
|
136
|
+
getPage: options.getPagedResponse,
|
|
137
|
+
byPage: (setting?: TPageSettings) => {
|
|
138
|
+
return getPageAsyncIterator(pagedResult, { setting });
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
const iter = getItemAsyncIterator<TElement, TPageResponse, TPageSettings>(pagedResult);
|
|
142
|
+
return {
|
|
143
|
+
next() {
|
|
144
|
+
return iter.next();
|
|
145
|
+
},
|
|
146
|
+
[Symbol.asyncIterator]() {
|
|
147
|
+
return this;
|
|
148
|
+
},
|
|
149
|
+
byPage: pagedResult.byPage,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
async function* getItemAsyncIterator<TElement, TPage, TPageSettings>(
|
|
154
|
+
pagedResult: ${getPagedResultRefkey()}<TElement, TPage, TPageSettings>,
|
|
155
|
+
): AsyncIterableIterator<TElement> {
|
|
156
|
+
const pages = getPageAsyncIterator(pagedResult);
|
|
157
|
+
for await (const page of pages) {
|
|
158
|
+
const results = pagedResult.getElements(page);
|
|
159
|
+
yield* results;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
async function* getPageAsyncIterator<TElement, TPageResponse, TPageSettings>(
|
|
164
|
+
pagedResult: ${getPagedResultRefkey()}<TElement, TPageResponse, TPageSettings>,
|
|
165
|
+
options: {
|
|
166
|
+
setting?: TPageSettings;
|
|
167
|
+
} = {},
|
|
168
|
+
): AsyncIterableIterator<TPageResponse> {
|
|
169
|
+
let response = await pagedResult.getPage(undefined, options.setting);
|
|
170
|
+
let results = response?.pagedResponse;
|
|
171
|
+
let nextToken = response?.nextToken;
|
|
172
|
+
if (!results) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
yield results;
|
|
176
|
+
while (nextToken) {
|
|
177
|
+
response = await pagedResult.getPage(nextToken, options.setting);
|
|
178
|
+
if (!response) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
results = response.pagedResponse;
|
|
182
|
+
nextToken = response.nextToken;
|
|
183
|
+
yield results;
|
|
184
|
+
}
|
|
185
|
+
}`;
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
export function PagingHelpers() {
|
|
190
|
+
return _$createComponent(ts.SourceFile, {
|
|
191
|
+
path: "pagingHelpers.ts",
|
|
192
|
+
get children() {
|
|
193
|
+
return [_$createComponent(PagedAsyncIterableIteratorInterfaceDeclaration, {}), _$createComponent(PagedResultInterfaceDeclaration, {}), _$createComponent(BuildPagedAsyncIteratorOptionsInterfaceDeclaration, {}), _$createComponent(BuildPagedAsyncIteratorInterfaceDeclaration, {})];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=paging-helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paging-helper.js","names":["ay","ts","getPagedAsyncIterableIteratorRefkey","refkey","getBuildPagedAsyncIteratorRefkey","getPagedResultRefkey","getBuildPagedAsyncIteratorOptionsRefkey","PagedAsyncIterableIteratorInterfaceDeclaration","_$createComponent","Declaration","name","children","code","PagedResultInterfaceDeclaration","BuildPagedAsyncIteratorOptionsInterfaceDeclaration","BuildPagedAsyncIteratorInterfaceDeclaration","PagingHelpers","SourceFile","path"],"sources":["../../../../src/components/static-helpers/paging-helper.tsx"],"sourcesContent":[null],"mappings":";;AAAA,OAAO,KAAKA,EAAE,MAAM,gBAAgB;AACpC,OAAO,KAAKC,EAAE,MAAM,sBAAsB;AAE1C,OAAO,SAASC,mCAAmCA,CAAA,EAAG;EACpD,OAAOF,EAAE,CAACG,MAAM,CAAC,4BAA4B,EAAE,WAAW,CAAC;AAC7D;AAEA,OAAO,SAASC,gCAAgCA,CAAA,EAAG;EACjD,OAAOJ,EAAE,CAACG,MAAM,CAAC,yBAAyB,EAAE,UAAU,CAAC;AACzD;AAEA,SAASE,oBAAoBA,CAAA,EAAG;EAC9B,OAAOL,EAAE,CAACG,MAAM,CAAC,aAAa,EAAE,WAAW,CAAC;AAC9C;AAEA,SAASG,uCAAuCA,CAAA,EAAG;EACjD,OAAON,EAAE,CAACG,MAAM,CAAC,gCAAgC,EAAE,WAAW,CAAC;AACjE;AAEA,SAASI,8CAA8CA,CAAA,EAAG;EACxD,OAAAC,iBAAA,CACGR,EAAE,CAACS,WAAW;IACbC,IAAI;IAAA,IACJP,M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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiBA,oBAAoB,CAAC,CAAC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiBA,oBAAoB,CAAC,CAAC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;IAAA;EAAA;AAGF;AAEA,OAAO,SAASW,aAAaA,CAAA,EAAG;EAC9B,OAAAR,iBAAA,CACGP,EAAE,CAACgB,UAAU;IAACC,IAAI;IAAA,IAAAP,SAAA;MAAA,QAAAH,iBAAA,CAChBD,8CAA8C,OAAAC,iBAAA,CAC9CK,+BAA+B,OAAAL,iBAAA,CAC/BM,kDAAkD,OAAAN,iBAAA,CAClDO,2CAA2C;IAAA;EAAA;AAGlD","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HttpOperation } from "@typespec/http";
|
|
2
2
|
export interface OperationTransformToTransportExpression {
|
|
3
|
-
|
|
3
|
+
httpOperation: HttpOperation;
|
|
4
4
|
}
|
|
5
5
|
export declare function OperationTransformExpression(props: OperationTransformToTransportExpression): import("@alloy-js/core").Children;
|
|
6
6
|
//# sourceMappingURL=operation-transform-expression.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-transform-expression.d.ts","sourceRoot":"","sources":["../../../../src/components/transforms/operation-transform-expression.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"operation-transform-expression.d.ts","sourceRoot":"","sources":["../../../../src/components/transforms/operation-transform-expression.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,MAAM,WAAW,uCAAuC;IACtD,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,uCAAuC,qCA6B1F"}
|
|
@@ -8,7 +8,7 @@ import { JsonTransform } from "./json/json-transform.js";
|
|
|
8
8
|
import { MultipartTransform } from "./multipart/multipart-transform.js";
|
|
9
9
|
import { defaultTransportNameGetter } from "./transform-name-policy.js";
|
|
10
10
|
export function OperationTransformExpression(props) {
|
|
11
|
-
const body = props.
|
|
11
|
+
const body = props.httpOperation.parameters.body;
|
|
12
12
|
if (!body) {
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-transform-expression.js","names":["ts","$","TransformNamePolicyContext","reportDiagnostic","ContentTypeEncodingProvider","JsonTransform","MultipartTransform","defaultTransportNameGetter","OperationTransformExpression","props","body","
|
|
1
|
+
{"version":3,"file":"operation-transform-expression.js","names":["ts","$","TransformNamePolicyContext","reportDiagnostic","ContentTypeEncodingProvider","JsonTransform","MultipartTransform","defaultTransportNameGetter","OperationTransformExpression","props","body","httpOperation","parameters","itemRef","property","payloadApplicationNameGetter","bodyKind","_$createComponent","contentType","contentTypes","payloadType","type","children","Provider","value","getTransportName","getApplicationName","target","name","program","code","namePolicy","useTSNamePolicy","getName","modelProperty","is","optional"],"sources":["../../../../src/components/transforms/operation-transform-expression.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,EAAE,MAAM,sBAAsB;AAE1C,SAASC,CAAC,QAAQ,yCAAyC;AAC3D,SAAkBC,0BAA0B,QAAQ,6BAA6B;AAEjF,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,2BAA2B;AACpC,SAASC,aAAa;AACtB,SAASC,kBAAkB;AAC3B,SAASC,0BAA0B,QAAQ,4BAA4B;AAMvE,OAAO,SAASC,4BAA4BA,CAACC,KAA8C,EAAE;EAC3F,MAAMC,IAAI,GAAGD,KAAK,CAACE,aAAa,CAACC,UAAU,CAACF,IAAI;EAEhD,IAAI,CAACA,IAAI,EAAE;IACT;EACF;EAEA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AC3B;EAEA,OAAOA,IAAI;AACb","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/emitter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/emitter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAWjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD;;;GAGG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,sBAAsB,CAAC,iBAsCzE"}
|
package/dist/src/emitter.js
CHANGED
|
@@ -9,6 +9,7 @@ import { Output } from "./components/output.js";
|
|
|
9
9
|
import { ModelSerializers } from "./components/serializers.js";
|
|
10
10
|
import { Interfaces } from "./components/static-helpers/interfaces.js";
|
|
11
11
|
import { MultipartHelpers } from "./components/static-helpers/multipart-helpers.js";
|
|
12
|
+
import { PagingHelpers } from "./components/static-helpers/paging-helper.js";
|
|
12
13
|
import { RestError } from "./components/static-helpers/rest-error.js";
|
|
13
14
|
/**
|
|
14
15
|
* Main function to handle the emission process.
|
|
@@ -54,7 +55,7 @@ export async function $onEmit(context) {
|
|
|
54
55
|
}), _$createComponent(ay.SourceDirectory, {
|
|
55
56
|
path: "helpers",
|
|
56
57
|
get children() {
|
|
57
|
-
return [_$createComponent(Interfaces, {}), _$createComponent(MultipartHelpers, {}), _$createComponent(ts.SourceFile, {
|
|
58
|
+
return [_$createComponent(PagingHelpers, {}), _$createComponent(Interfaces, {}), _$createComponent(MultipartHelpers, {}), _$createComponent(ts.SourceFile, {
|
|
58
59
|
path: "error.ts",
|
|
59
60
|
get children() {
|
|
60
61
|
return _$createComponent(RestError, {});
|
package/dist/src/emitter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitter.js","names":["ay","ts","writeOutput","OperationsDirectory","Client","Models","Output","ModelSerializers","Interfaces","MultipartHelpers","RestError","$onEmit","context","packageName","options","output","_$createComponent","children","PackageDirectory","name","version","path","scripts","build","devDependencies","SourceDirectory","BarrelFile","SourceFile","emitterOutputDir"],"sources":["../../src/emitter.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,EAAE,MAAM,gBAAgB;AACpC,OAAO,KAAKC,EAAE,MAAM,sBAAsB;AAE1C,SAASC,WAAW,QAAQ,6BAA6B;AACzD,SAASC,mBAAmB;AAC5B,SAASC,MAAM;AACf,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,MAAM;AACf,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,UAAU;AACnB,SAASC,gBAAgB;AACzB,SAASC,SAAS;AAGlB;AACA;AACA;AACA;AACA,OAAO,eAAeC,OAAOA,CAACC,OAA4C,EAAE;EAC1E,MAAMC,WAAW,GAAGD,OAAO,CAACE,OAAO,CAAC,cAAc,CAAC,IAAI,cAAc;EACrE,MAAMC,MAAM,GAAAC,iBAAA,
|
|
1
|
+
{"version":3,"file":"emitter.js","names":["ay","ts","writeOutput","OperationsDirectory","Client","Models","Output","ModelSerializers","Interfaces","MultipartHelpers","PagingHelpers","RestError","$onEmit","context","packageName","options","output","_$createComponent","children","PackageDirectory","name","version","path","scripts","build","devDependencies","SourceDirectory","BarrelFile","SourceFile","emitterOutputDir"],"sources":["../../src/emitter.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,EAAE,MAAM,gBAAgB;AACpC,OAAO,KAAKC,EAAE,MAAM,sBAAsB;AAE1C,SAASC,WAAW,QAAQ,6BAA6B;AACzD,SAASC,mBAAmB;AAC5B,SAASC,MAAM;AACf,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,SAASC,MAAM;AACf,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,UAAU;AACnB,SAASC,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AAS,iBAAA,CACVR,gBAAgB,OAAAQ,iBAAA,CAChBhB,EAAE,CAAC2B,UAAU;oBAACN,IAAI;oBAAA,IAAAJ,SAAA;sBAAA,OAAAD,iBAAA,CAChBN,SAAS;oBAAA;kBAAA;gBAAA;cAAA;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA,EAMrB;EAED,MAAMT,WAAW,CAACc,MAAM,EAAEH,OAAO,CAACgB,gBAAgB,CAAC;AACrD","ignoreList":[]}
|
package/dist/src/lib.d.ts
CHANGED
|
@@ -41,8 +41,11 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
|
41
41
|
"unexpected-non-scalar-type": {
|
|
42
42
|
readonly default: "Unexpected non-scalar type when trying to extract Scalar data";
|
|
43
43
|
};
|
|
44
|
+
"client-not-found": {
|
|
45
|
+
readonly default: "Client for operation not found";
|
|
46
|
+
};
|
|
44
47
|
}, JsClientEmitterOptions, never>;
|
|
45
|
-
export declare const reportDiagnostic: <C extends "unknown-encoding" | "mixed-part-nonpart" | "operation-not-in-client" | "non-model-parts" | "multiple-auth-schemes-not-yet-supported" | "key-credential-non-header-not-implemented" | "unsupported-nondiscriminated-union" | "no-name-type" | "symbol-name-not-supported" | "unsupported-content-type" | "missing-http-parts" | "use-encoding-context-without-provider" | "unexpected-non-scalar-type", M extends keyof {
|
|
48
|
+
export declare const reportDiagnostic: <C extends "unknown-encoding" | "mixed-part-nonpart" | "operation-not-in-client" | "non-model-parts" | "multiple-auth-schemes-not-yet-supported" | "key-credential-non-header-not-implemented" | "unsupported-nondiscriminated-union" | "no-name-type" | "symbol-name-not-supported" | "unsupported-content-type" | "missing-http-parts" | "use-encoding-context-without-provider" | "unexpected-non-scalar-type" | "client-not-found", M extends keyof {
|
|
46
49
|
"unknown-encoding": {
|
|
47
50
|
readonly default: "Unknown encoding";
|
|
48
51
|
};
|
|
@@ -82,6 +85,9 @@ export declare const reportDiagnostic: <C extends "unknown-encoding" | "mixed-pa
|
|
|
82
85
|
"unexpected-non-scalar-type": {
|
|
83
86
|
readonly default: "Unexpected non-scalar type when trying to extract Scalar data";
|
|
84
87
|
};
|
|
88
|
+
"client-not-found": {
|
|
89
|
+
readonly default: "Client for operation not found";
|
|
90
|
+
};
|
|
85
91
|
}[C]>(program: import("@typespec/compiler").Program, diag: import("@typespec/compiler").DiagnosticReport<{
|
|
86
92
|
"unknown-encoding": {
|
|
87
93
|
readonly default: "Unknown encoding";
|
|
@@ -122,7 +128,10 @@ export declare const reportDiagnostic: <C extends "unknown-encoding" | "mixed-pa
|
|
|
122
128
|
"unexpected-non-scalar-type": {
|
|
123
129
|
readonly default: "Unexpected non-scalar type when trying to extract Scalar data";
|
|
124
130
|
};
|
|
125
|
-
|
|
131
|
+
"client-not-found": {
|
|
132
|
+
readonly default: "Client for operation not found";
|
|
133
|
+
};
|
|
134
|
+
}, C, M>) => void, createDiagnostic: <C extends "unknown-encoding" | "mixed-part-nonpart" | "operation-not-in-client" | "non-model-parts" | "multiple-auth-schemes-not-yet-supported" | "key-credential-non-header-not-implemented" | "unsupported-nondiscriminated-union" | "no-name-type" | "symbol-name-not-supported" | "unsupported-content-type" | "missing-http-parts" | "use-encoding-context-without-provider" | "unexpected-non-scalar-type" | "client-not-found", M extends keyof {
|
|
126
135
|
"unknown-encoding": {
|
|
127
136
|
readonly default: "Unknown encoding";
|
|
128
137
|
};
|
|
@@ -162,6 +171,9 @@ export declare const reportDiagnostic: <C extends "unknown-encoding" | "mixed-pa
|
|
|
162
171
|
"unexpected-non-scalar-type": {
|
|
163
172
|
readonly default: "Unexpected non-scalar type when trying to extract Scalar data";
|
|
164
173
|
};
|
|
174
|
+
"client-not-found": {
|
|
175
|
+
readonly default: "Client for operation not found";
|
|
176
|
+
};
|
|
165
177
|
}[C]>(diag: import("@typespec/compiler").DiagnosticReport<{
|
|
166
178
|
"unknown-encoding": {
|
|
167
179
|
readonly default: "Unknown encoding";
|
|
@@ -202,5 +214,8 @@ export declare const reportDiagnostic: <C extends "unknown-encoding" | "mixed-pa
|
|
|
202
214
|
"unexpected-non-scalar-type": {
|
|
203
215
|
readonly default: "Unexpected non-scalar type when trying to extract Scalar data";
|
|
204
216
|
};
|
|
217
|
+
"client-not-found": {
|
|
218
|
+
readonly default: "Client for operation not found";
|
|
219
|
+
};
|
|
205
220
|
}, C, M>) => import("@typespec/compiler").Diagnostic;
|
|
206
221
|
//# sourceMappingURL=lib.d.ts.map
|
package/dist/src/lib.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAgBD,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAgBD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAgGf,CAAC;AAEH,eAAO,MAAQ,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAS,CAAC"}
|
package/dist/src/lib.js
CHANGED
|
@@ -98,6 +98,12 @@ export const $lib = createTypeSpecLibrary({
|
|
|
98
98
|
messages: {
|
|
99
99
|
default: "Unexpected non-scalar type when trying to extract Scalar data"
|
|
100
100
|
}
|
|
101
|
+
},
|
|
102
|
+
"client-not-found": {
|
|
103
|
+
severity: "error",
|
|
104
|
+
messages: {
|
|
105
|
+
default: "Client for operation not found"
|
|
106
|
+
}
|
|
101
107
|
}
|
|
102
108
|
}
|
|
103
109
|
});
|
package/dist/src/lib.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.js","names":["createTypeSpecLibrary","EmitterOptionsSchema","type","additionalProperties","properties","nullable","default","description","required","$lib","name","emitter","options","diagnostics","severity","messages","reportDiagnostic","createDiagnostic"],"sources":["../../src/lib.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAqB,QAAwB,oBAAoB;AAM1E,MAAMC,oBAA4D,GAAG;EACnEC,IAAI,EAAE,QAAQ;EACdC,oBAAoB,EAAE,IAAI;EAC1BC,UAAU,EAAE;IACV,cAAc,EAAE;MACdF,IAAI,EAAE,QAAQ;MACdG,QAAQ,EAAE,IAAI;MACdC,OAAO,EAAE,cAAc;MACvBC,WAAW,EAAE;IACf;EACF,CAAC;EACDC,QAAQ,EAAE;AACZ,CAAC;AAED,OAAO,MAAMC,IAAI,GAAGT,qBAAqB,CAAC;EACxCU,IAAI,EAAE,0BAA0B;EAChCC,OAAO,EAAE;IACPC,OAAO,EAAEX;EACX,CAAC;EACDY,WAAW,EAAE;IACX,kBAAkB,EAAE;MAClBC,QAAQ,EAAE,SAAS;MACnBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF,CAAC;IACD,oBAAoB,EAAE;MACpBQ,QAAQ,EAAE,SAAS;MACnBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF,CAAC;IACD,yBAAyB,EAAE;MACzBQ,QAAQ,EAAE,OAAO;MACjBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF,CAAC;IACD,iBAAiB,EAAE;MACjBQ,QAAQ,EAAE,OAAO;MACjBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX,CAAC;MACDC,WAAW,EAAE;IACf,CAAC;IACD,yCAAyC,EAAE;MACzCO,QAAQ,EAAE,SAAS;MACnBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX,CAAC;MACDC,WAAW,EACT;IACJ,CAAC;IACD,2CAA2C,EAAE;MAC3CO,QAAQ,EAAE,SAAS;MACnBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX,CAAC;MACDC,WAAW,EACT;IACJ,CAAC;IACD,oCAAoC,EAAE;MACpCO,QAAQ,EAAE,SAAS;MACnBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF,CAAC;IACD,cAAc,EAAE;MACdQ,QAAQ,EAAE,SAAS;MACnBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF,CAAC;IACD,2BAA2B,EAAE;MAC3BQ,QAAQ,EAAE,OAAO;MACjBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF,CAAC;IACD,0BAA0B,EAAE;MAC1BQ,QAAQ,EAAE,SAAS;MACnBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF,CAAC;IACD,oBAAoB,EAAE;MACpBQ,QAAQ,EAAE,SAAS;MACnBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF,CAAC;IACD,uCAAuC,EAAE;MACvCQ,QAAQ,EAAE,OAAO;MACjBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF,CAAC;IACD,4BAA4B,EAAE;MAC5BQ,QAAQ,EAAE,OAAO;MACjBC,QAAQ,EAAE;QACRT,OAAO,EAAE;MACX;IACF;EACF;AACF,CAAC,CAAC;AAEF,OAAO,MAAM;EAAEU,gBAAgB;EAAEC;AAAiB,CAAC,GAAGR,IAAI","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"lib.js","names":["createTypeSpecLibrary","EmitterOptionsSchema","type","additionalProperties","properties","nullable","default","description","required","$lib","name","emitter","options","diagnostics","severity","messages","reportDiagnostic","createDiagnostic"],"sources":["../../src/lib.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,qBAAqB,QAAwB,oBAAoB;AAM1E,MAAMC,oBAA4D,GAAG;EACnEC,IAAI,EAAE,QAAQ;EAC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