@azure/template-dpg 1.0.0-alpha.20230530.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/LICENSE +20 -0
- package/README.md +107 -0
- package/dist/index.cjs +363 -0
- package/dist/index.cjs.map +1 -0
- package/dist-esm/src/WidgetServiceClient.js +58 -0
- package/dist-esm/src/WidgetServiceClient.js.map +1 -0
- package/dist-esm/src/api/WidgetServiceContext.js +14 -0
- package/dist-esm/src/api/WidgetServiceContext.js.map +1 -0
- package/dist-esm/src/api/foo.js +13 -0
- package/dist-esm/src/api/foo.js.map +1 -0
- package/dist-esm/src/api/index.js +5 -0
- package/dist-esm/src/api/index.js.map +1 -0
- package/dist-esm/src/api/models.js +4 -0
- package/dist-esm/src/api/models.js.map +1 -0
- package/dist-esm/src/api/operations.js +171 -0
- package/dist-esm/src/api/operations.js.map +1 -0
- package/dist-esm/src/common/interfaces.js +4 -0
- package/dist-esm/src/common/interfaces.js.map +1 -0
- package/dist-esm/src/index.js +4 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/logger.js +12 -0
- package/dist-esm/src/logger.js.map +1 -0
- package/dist-esm/src/rest/clientDefinitions.js +4 -0
- package/dist-esm/src/rest/clientDefinitions.js.map +1 -0
- package/dist-esm/src/rest/index.js +19 -0
- package/dist-esm/src/rest/index.js.map +1 -0
- package/dist-esm/src/rest/isUnexpected.js +75 -0
- package/dist-esm/src/rest/isUnexpected.js.map +1 -0
- package/dist-esm/src/rest/models.js +4 -0
- package/dist-esm/src/rest/models.js.map +1 -0
- package/dist-esm/src/rest/outputModels.js +4 -0
- package/dist-esm/src/rest/outputModels.js.map +1 -0
- package/dist-esm/src/rest/parameters.js +4 -0
- package/dist-esm/src/rest/parameters.js.map +1 -0
- package/dist-esm/src/rest/responses.js +4 -0
- package/dist-esm/src/rest/responses.js.map +1 -0
- package/dist-esm/src/rest/widgetServiceClient.js +46 -0
- package/dist-esm/src/rest/widgetServiceClient.js.map +1 -0
- package/package.json +123 -0
- package/types/latest/template-dpg.d.ts +101 -0
- package/types/latest/tsdoc-metadata.json +11 -0
- package/types/samples-dev/createWidget.d.ts +2 -0
- package/types/samples-dev/createWidget.d.ts.map +1 -0
- package/types/src/WidgetServiceClient.d.ts +41 -0
- package/types/src/WidgetServiceClient.d.ts.map +1 -0
- package/types/src/api/WidgetServiceContext.d.ts +19 -0
- package/types/src/api/WidgetServiceContext.d.ts.map +1 -0
- package/types/src/api/foo.d.ts +9 -0
- package/types/src/api/foo.d.ts.map +1 -0
- package/types/src/api/index.d.ts +11 -0
- package/types/src/api/index.d.ts.map +1 -0
- package/types/src/api/models.d.ts +25 -0
- package/types/src/api/models.d.ts.map +1 -0
- package/types/src/api/operations.d.ts +67 -0
- package/types/src/api/operations.d.ts.map +1 -0
- package/types/src/common/interfaces.d.ts +21 -0
- package/types/src/common/interfaces.d.ts.map +1 -0
- package/types/src/index.d.ts +12 -0
- package/types/src/index.d.ts.map +1 -0
- package/types/src/logger.d.ts +2 -0
- package/types/src/logger.d.ts.map +1 -0
- package/types/src/rest/clientDefinitions.d.ts +52 -0
- package/types/src/rest/clientDefinitions.d.ts.map +1 -0
- package/types/src/rest/index.d.ts +17 -0
- package/types/src/rest/index.d.ts.map +1 -0
- package/types/src/rest/isUnexpected.d.ts +15 -0
- package/types/src/rest/isUnexpected.d.ts.map +1 -0
- package/types/src/rest/models.d.ts +20 -0
- package/types/src/rest/models.d.ts.map +1 -0
- package/types/src/rest/outputModels.d.ts +25 -0
- package/types/src/rest/outputModels.d.ts.map +1 -0
- package/types/src/rest/parameters.d.ts +22 -0
- package/types/src/rest/parameters.d.ts.map +1 -0
- package/types/src/rest/responses.d.ts +63 -0
- package/types/src/rest/responses.d.ts.map +1 -0
- package/types/src/rest/widgetServiceClient.d.ts +16 -0
- package/types/src/rest/widgetServiceClient.d.ts.map +1 -0
- package/types/test/public/widgetService.spec.d.ts +2 -0
- package/types/test/public/widgetService.spec.d.ts.map +1 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
3
|
+
*
|
|
4
|
+
* Any changes you make here may be lost.
|
|
5
|
+
*
|
|
6
|
+
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
|
+
*/
|
|
8
|
+
export interface WidgetOutput {
|
|
9
|
+
/** The UUID of this widget. This is generated automatically by the service. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** The weight of the widget. This is an int32, but must be greater than zero. */
|
|
12
|
+
weight: number;
|
|
13
|
+
/** The color of the widget. */
|
|
14
|
+
color: "red" | "blue";
|
|
15
|
+
}
|
|
16
|
+
export interface WidgetErrorOutput {
|
|
17
|
+
/** The HTTP error code. */
|
|
18
|
+
code: number;
|
|
19
|
+
/** A human-readable message describing the error. */
|
|
20
|
+
message: string;
|
|
21
|
+
}
|
|
22
|
+
export interface AnalyzeResultOutput {
|
|
23
|
+
summary: string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=outputModels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../src/rest/outputModels.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,MAAM,WAAW,YAAY;IAC3B,+EAA+E;IAC/E,EAAE,EAAE,MAAM,CAAC;IACX,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
3
|
+
*
|
|
4
|
+
* Any changes you make here may be lost.
|
|
5
|
+
*
|
|
6
|
+
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
|
+
*/
|
|
8
|
+
import { RequestParameters } from "@azure-rest/core-client";
|
|
9
|
+
import { CreateWidget, UpdateWidget } from "./models.js";
|
|
10
|
+
export type ListWidgetsParameters = RequestParameters;
|
|
11
|
+
export type GetWidgetParameters = RequestParameters;
|
|
12
|
+
export interface CreateWidgetBodyParam {
|
|
13
|
+
body?: CreateWidget;
|
|
14
|
+
}
|
|
15
|
+
export type CreateWidgetParameters = CreateWidgetBodyParam & RequestParameters;
|
|
16
|
+
export interface UpdateWidgetBodyParam {
|
|
17
|
+
body?: UpdateWidget;
|
|
18
|
+
}
|
|
19
|
+
export type UpdateWidgetParameters = UpdateWidgetBodyParam & RequestParameters;
|
|
20
|
+
export type DeleteWidgetParameters = RequestParameters;
|
|
21
|
+
export type AnalyzeWidgetParameters = RequestParameters;
|
|
22
|
+
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/rest/parameters.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AACtD,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAEpD,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,GAAG,iBAAiB,CAAC;AAE/E,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,GAAG,iBAAiB,CAAC;AAC/E,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AACvD,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
3
|
+
*
|
|
4
|
+
* Any changes you make here may be lost.
|
|
5
|
+
*
|
|
6
|
+
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
|
+
*/
|
|
8
|
+
import { HttpResponse } from "@azure-rest/core-client";
|
|
9
|
+
import { WidgetOutput, WidgetErrorOutput, AnalyzeResultOutput } from "./outputModels.js";
|
|
10
|
+
/** The request has succeeded. */
|
|
11
|
+
export interface ListWidgets200Response extends HttpResponse {
|
|
12
|
+
status: "200";
|
|
13
|
+
body: Array<WidgetOutput>;
|
|
14
|
+
}
|
|
15
|
+
export interface ListWidgetsDefaultResponse extends HttpResponse {
|
|
16
|
+
status: string;
|
|
17
|
+
body: WidgetErrorOutput;
|
|
18
|
+
}
|
|
19
|
+
/** The request has succeeded. */
|
|
20
|
+
export interface GetWidget200Response extends HttpResponse {
|
|
21
|
+
status: "200";
|
|
22
|
+
body: WidgetOutput;
|
|
23
|
+
}
|
|
24
|
+
export interface GetWidgetDefaultResponse extends HttpResponse {
|
|
25
|
+
status: string;
|
|
26
|
+
body: WidgetErrorOutput;
|
|
27
|
+
}
|
|
28
|
+
/** The request has succeeded and a new resource has been created as a result. */
|
|
29
|
+
export interface CreateWidget201Response extends HttpResponse {
|
|
30
|
+
status: "201";
|
|
31
|
+
body: WidgetOutput;
|
|
32
|
+
}
|
|
33
|
+
export interface CreateWidgetDefaultResponse extends HttpResponse {
|
|
34
|
+
status: string;
|
|
35
|
+
body: WidgetErrorOutput;
|
|
36
|
+
}
|
|
37
|
+
/** The request has succeeded. */
|
|
38
|
+
export interface UpdateWidget200Response extends HttpResponse {
|
|
39
|
+
status: "200";
|
|
40
|
+
body: WidgetOutput;
|
|
41
|
+
}
|
|
42
|
+
export interface UpdateWidgetDefaultResponse extends HttpResponse {
|
|
43
|
+
status: string;
|
|
44
|
+
body: WidgetErrorOutput;
|
|
45
|
+
}
|
|
46
|
+
/** There is no content to send for this request, but the headers may be useful. */
|
|
47
|
+
export interface DeleteWidget204Response extends HttpResponse {
|
|
48
|
+
status: "204";
|
|
49
|
+
}
|
|
50
|
+
export interface DeleteWidgetDefaultResponse extends HttpResponse {
|
|
51
|
+
status: string;
|
|
52
|
+
body: WidgetErrorOutput;
|
|
53
|
+
}
|
|
54
|
+
/** The request has succeeded. */
|
|
55
|
+
export interface AnalyzeWidget200Response extends HttpResponse {
|
|
56
|
+
status: "200";
|
|
57
|
+
body: AnalyzeResultOutput;
|
|
58
|
+
}
|
|
59
|
+
export interface AnalyzeWidgetDefaultResponse extends HttpResponse {
|
|
60
|
+
status: string;
|
|
61
|
+
body: WidgetErrorOutput;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/rest/responses.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEzF,iCAAiC;AACjC,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IAC1D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,iCAAiC;AACjC,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,iFAAiF;AACjF,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,iCAAiC;AACjC,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,mFAAmF;AACnF,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,MAAM,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,iCAAiC;AACjC,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,4BAA6B,SAAQ,YAAY;IAChE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,iBAAiB,CAAC;CACzB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
|
|
3
|
+
*
|
|
4
|
+
* Any changes you make here may be lost.
|
|
5
|
+
*
|
|
6
|
+
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
|
|
7
|
+
*/
|
|
8
|
+
import { ClientOptions } from "@azure-rest/core-client";
|
|
9
|
+
import { TokenCredential } from "@azure/core-auth";
|
|
10
|
+
import { WidgetServiceContext } from "./clientDefinitions.js";
|
|
11
|
+
/**
|
|
12
|
+
* This customization adds credential support to the client. And overloads for when it is optional
|
|
13
|
+
*/
|
|
14
|
+
export default function createClient(endpoint: string, credential: TokenCredential, options?: ClientOptions): WidgetServiceContext;
|
|
15
|
+
export default function createClient(endpoint: string, options?: ClientOptions): WidgetServiceContext;
|
|
16
|
+
//# sourceMappingURL=widgetServiceClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgetServiceClient.d.ts","sourceRoot":"","sources":["../../../src/rest/widgetServiceClient.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAA0C,MAAM,yBAAyB,CAAC;AAChG,OAAO,EAAE,eAAe,EAAqB,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC;AACxB,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgetService.spec.d.ts","sourceRoot":"","sources":["../../../test/public/widgetService.spec.ts"],"names":[],"mappings":""}
|