@azure/template-dpg 1.0.0-alpha.20230626.1 → 1.0.0-alpha.20230710.2
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/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist-esm/src/WidgetServiceClient.js +7 -0
- package/dist-esm/src/WidgetServiceClient.js.map +1 -1
- package/dist-esm/src/api/WidgetServiceContext.js.map +1 -1
- package/dist-esm/src/api/foo.js +7 -0
- package/dist-esm/src/api/foo.js.map +1 -1
- package/dist-esm/src/api/index.js.map +1 -1
- package/dist-esm/src/api/models.js.map +1 -1
- package/dist-esm/src/api/operations.js.map +1 -1
- package/dist-esm/src/common/interfaces.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/logger.js +7 -0
- package/dist-esm/src/logger.js.map +1 -1
- package/dist-esm/src/rest/clientDefinitions.js.map +1 -1
- package/dist-esm/src/rest/index.js +7 -0
- package/dist-esm/src/rest/index.js.map +1 -1
- package/dist-esm/src/rest/isUnexpected.js.map +1 -1
- package/dist-esm/src/rest/models.js.map +1 -1
- package/dist-esm/src/rest/outputModels.js.map +1 -1
- package/dist-esm/src/rest/parameters.js.map +1 -1
- package/dist-esm/src/rest/responses.js.map +1 -1
- package/dist-esm/src/rest/widgetServiceClient.js +7 -0
- package/dist-esm/src/rest/widgetServiceClient.js.map +1 -1
- package/dist-esm/src/src/WidgetServiceClient.js +58 -0
- package/dist-esm/src/src/WidgetServiceClient.js.map +1 -0
- package/dist-esm/src/src/api/WidgetServiceContext.js +14 -0
- package/dist-esm/src/src/api/WidgetServiceContext.js.map +1 -0
- package/dist-esm/src/src/api/foo.js +13 -0
- package/dist-esm/src/src/api/foo.js.map +1 -0
- package/dist-esm/src/src/api/index.js +5 -0
- package/dist-esm/src/src/api/index.js.map +1 -0
- package/dist-esm/src/src/api/models.js +4 -0
- package/dist-esm/src/src/api/models.js.map +1 -0
- package/dist-esm/src/src/api/operations.js +171 -0
- package/dist-esm/src/src/api/operations.js.map +1 -0
- package/dist-esm/src/src/common/interfaces.js +4 -0
- package/dist-esm/src/src/common/interfaces.js.map +1 -0
- package/dist-esm/src/src/index.js +4 -0
- package/dist-esm/src/src/index.js.map +1 -0
- package/dist-esm/src/src/logger.js +12 -0
- package/dist-esm/src/src/logger.js.map +1 -0
- package/dist-esm/src/src/rest/clientDefinitions.js +4 -0
- package/dist-esm/src/src/rest/clientDefinitions.js.map +1 -0
- package/dist-esm/src/src/rest/index.js +19 -0
- package/dist-esm/src/src/rest/index.js.map +1 -0
- package/dist-esm/src/src/rest/isUnexpected.js +75 -0
- package/dist-esm/src/src/rest/isUnexpected.js.map +1 -0
- package/dist-esm/src/src/rest/models.js +4 -0
- package/dist-esm/src/src/rest/models.js.map +1 -0
- package/dist-esm/src/src/rest/outputModels.js +4 -0
- package/dist-esm/src/src/rest/outputModels.js.map +1 -0
- package/dist-esm/src/src/rest/parameters.js +4 -0
- package/dist-esm/src/src/rest/parameters.js.map +1 -0
- package/dist-esm/src/src/rest/responses.js +4 -0
- package/dist-esm/src/src/rest/responses.js.map +1 -0
- package/dist-esm/src/src/rest/widgetServiceClient.js +46 -0
- package/dist-esm/src/src/rest/widgetServiceClient.js.map +1 -0
- package/package.json +1 -1
- package/types/latest/template-dpg.d.ts +7 -0
- package/types/src/WidgetServiceClient.d.ts +7 -0
- package/types/src/WidgetServiceClient.d.ts.map +1 -1
- package/types/src/api/WidgetServiceContext.d.ts +7 -0
- package/types/src/api/WidgetServiceContext.d.ts.map +1 -1
- package/types/src/api/foo.d.ts +7 -0
- package/types/src/api/foo.d.ts.map +1 -1
- package/types/src/api/index.d.ts +7 -0
- package/types/src/api/index.d.ts.map +1 -1
- package/types/src/api/models.d.ts +7 -0
- package/types/src/api/models.d.ts.map +1 -1
- package/types/src/api/operations.d.ts +7 -0
- package/types/src/api/operations.d.ts.map +1 -1
- package/types/src/common/interfaces.d.ts +7 -0
- package/types/src/common/interfaces.d.ts.map +1 -1
- package/types/src/index.d.ts +7 -0
- package/types/src/index.d.ts.map +1 -1
- package/types/src/logger.d.ts.map +1 -1
- package/types/src/rest/clientDefinitions.d.ts +7 -0
- package/types/src/rest/clientDefinitions.d.ts.map +1 -1
- package/types/src/rest/index.d.ts +7 -0
- package/types/src/rest/index.d.ts.map +1 -1
- package/types/src/rest/isUnexpected.d.ts +7 -0
- package/types/src/rest/isUnexpected.d.ts.map +1 -1
- package/types/src/rest/models.d.ts +7 -0
- package/types/src/rest/models.d.ts.map +1 -1
- package/types/src/rest/outputModels.d.ts +7 -0
- package/types/src/rest/outputModels.d.ts.map +1 -1
- package/types/src/rest/parameters.d.ts +7 -0
- package/types/src/rest/parameters.d.ts.map +1 -1
- package/types/src/rest/responses.d.ts +7 -0
- package/types/src/rest/responses.d.ts.map +1 -1
- package/types/src/rest/widgetServiceClient.d.ts +7 -0
- package/types/src/rest/widgetServiceClient.d.ts.map +1 -1
- package/types/src/src/WidgetServiceClient.d.ts +41 -0
- package/types/src/src/WidgetServiceClient.d.ts.map +1 -0
- package/types/src/src/api/WidgetServiceContext.d.ts +19 -0
- package/types/src/src/api/WidgetServiceContext.d.ts.map +1 -0
- package/types/src/src/api/foo.d.ts +9 -0
- package/types/src/src/api/foo.d.ts.map +1 -0
- package/types/src/src/api/index.d.ts +11 -0
- package/types/src/src/api/index.d.ts.map +1 -0
- package/types/src/src/api/models.d.ts +25 -0
- package/types/src/src/api/models.d.ts.map +1 -0
- package/types/src/src/api/operations.d.ts +67 -0
- package/types/src/src/api/operations.d.ts.map +1 -0
- package/types/src/src/common/interfaces.d.ts +21 -0
- package/types/src/src/common/interfaces.d.ts.map +1 -0
- package/types/src/src/index.d.ts +12 -0
- package/types/src/src/index.d.ts.map +1 -0
- package/types/src/src/logger.d.ts +2 -0
- package/types/src/src/logger.d.ts.map +1 -0
- package/types/src/src/rest/clientDefinitions.d.ts +52 -0
- package/types/src/src/rest/clientDefinitions.d.ts.map +1 -0
- package/types/src/src/rest/index.d.ts +17 -0
- package/types/src/src/rest/index.d.ts.map +1 -0
- package/types/src/src/rest/isUnexpected.d.ts +15 -0
- package/types/src/src/rest/isUnexpected.d.ts.map +1 -0
- package/types/src/src/rest/models.d.ts +20 -0
- package/types/src/src/rest/models.d.ts.map +1 -0
- package/types/src/src/rest/outputModels.d.ts +25 -0
- package/types/src/src/rest/outputModels.d.ts.map +1 -0
- package/types/src/src/rest/parameters.d.ts +22 -0
- package/types/src/src/rest/parameters.d.ts.map +1 -0
- package/types/src/src/rest/responses.d.ts +63 -0
- package/types/src/src/rest/responses.d.ts.map +1 -0
- package/types/src/src/rest/widgetServiceClient.d.ts +16 -0
- package/types/src/src/rest/widgetServiceClient.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/src/logger.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,MAAM,qCAA+B,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { ListWidgetsParameters, CreateWidgetParameters, GetWidgetParameters, UpdateWidgetParameters, DeleteWidgetParameters, AnalyzeWidgetParameters } from "./parameters.js";
|
|
9
|
+
import { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
|
|
10
|
+
import { Client, StreamableMethod } from "@azure-rest/core-client";
|
|
11
|
+
export interface ListWidgets {
|
|
12
|
+
/**
|
|
13
|
+
* List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
|
|
14
|
+
*
|
|
15
|
+
* It does not accept any options or parameters.
|
|
16
|
+
*/
|
|
17
|
+
get(options?: ListWidgetsParameters): StreamableMethod<ListWidgets200Response | ListWidgetsDefaultResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Create a new widget.
|
|
20
|
+
*
|
|
21
|
+
* The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will
|
|
22
|
+
* result in an error.
|
|
23
|
+
*/
|
|
24
|
+
post(options?: CreateWidgetParameters): StreamableMethod<CreateWidget201Response | CreateWidgetDefaultResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface GetWidget {
|
|
27
|
+
/** Get a widget by ID. */
|
|
28
|
+
get(options?: GetWidgetParameters): StreamableMethod<GetWidget200Response | GetWidgetDefaultResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields
|
|
31
|
+
* are optional and will be updated within the widget if provided.
|
|
32
|
+
*/
|
|
33
|
+
patch(options?: UpdateWidgetParameters): StreamableMethod<UpdateWidget200Response | UpdateWidgetDefaultResponse>;
|
|
34
|
+
/** Delete a widget by ID. */
|
|
35
|
+
delete(options?: DeleteWidgetParameters): StreamableMethod<DeleteWidget204Response | DeleteWidgetDefaultResponse>;
|
|
36
|
+
}
|
|
37
|
+
export interface AnalyzeWidget {
|
|
38
|
+
/** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */
|
|
39
|
+
post(options?: AnalyzeWidgetParameters): StreamableMethod<AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse>;
|
|
40
|
+
}
|
|
41
|
+
export interface Routes {
|
|
42
|
+
/** Resource for '/widgets' has methods for the following verbs: get, post */
|
|
43
|
+
(path: "/widgets"): ListWidgets;
|
|
44
|
+
/** Resource for '/widgets/\{id\}' has methods for the following verbs: get, patch, delete */
|
|
45
|
+
(path: "/widgets/{id}", id: string): GetWidget;
|
|
46
|
+
/** Resource for '/widgets/\{id\}/analyze' has methods for the following verbs: post */
|
|
47
|
+
(path: "/widgets/{id}/analyze", id: string): AnalyzeWidget;
|
|
48
|
+
}
|
|
49
|
+
export type WidgetServiceContext = Client & {
|
|
50
|
+
path: Routes;
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=clientDefinitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../../src/src/rest/clientDefinitions.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,GAAG,CACD,OAAO,CAAC,EAAE,qBAAqB,GAC9B,gBAAgB,CAAC,sBAAsB,GAAG,0BAA0B,CAAC,CAAC;IACzE;;;;;OAKG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,sBAAsB,GAC/B,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,SAAS;IACxB,0BAA0B;IAC1B,GAAG,CACD,OAAO,CAAC,EAAE,mBAAmB,GAC5B,gBAAgB,CAAC,oBAAoB,GAAG,wBAAwB,CAAC,CAAC;IACrE;;;OAGG;IACH,KAAK,CACH,OAAO,CAAC,EAAE,sBAAsB,GAC/B,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAAC;IAC3E,6BAA6B;IAC7B,MAAM,CACJ,OAAO,CAAC,EAAE,sBAAsB,GAC/B,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,aAAa;IAC5B,4HAA4H;IAC5H,IAAI,CACF,OAAO,CAAC,EAAE,uBAAuB,GAChC,gBAAgB,CAAC,wBAAwB,GAAG,4BAA4B,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,MAAM;IACrB,6EAA6E;IAC7E,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,6FAA6F;IAC7F,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,uFAAuF;IACvF,CAAC,IAAI,EAAE,uBAAuB,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa,CAAC;CAC5D;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 WidgetServiceClient from "./widgetServiceClient.js";
|
|
9
|
+
export * from "./widgetServiceClient.js";
|
|
10
|
+
export * from "./parameters.js";
|
|
11
|
+
export * from "./responses.js";
|
|
12
|
+
export * from "./clientDefinitions.js";
|
|
13
|
+
export * from "./isUnexpected.js";
|
|
14
|
+
export * from "./models.js";
|
|
15
|
+
export * from "./outputModels.js";
|
|
16
|
+
export default WidgetServiceClient;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/rest/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAElC,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
|
|
9
|
+
export declare function isUnexpected(response: ListWidgets200Response | ListWidgetsDefaultResponse): response is ListWidgetsDefaultResponse;
|
|
10
|
+
export declare function isUnexpected(response: CreateWidget201Response | CreateWidgetDefaultResponse): response is CreateWidgetDefaultResponse;
|
|
11
|
+
export declare function isUnexpected(response: GetWidget200Response | GetWidgetDefaultResponse): response is GetWidgetDefaultResponse;
|
|
12
|
+
export declare function isUnexpected(response: UpdateWidget200Response | UpdateWidgetDefaultResponse): response is UpdateWidgetDefaultResponse;
|
|
13
|
+
export declare function isUnexpected(response: DeleteWidget204Response | DeleteWidgetDefaultResponse): response is DeleteWidgetDefaultResponse;
|
|
14
|
+
export declare function isUnexpected(response: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse): response is AnalyzeWidgetDefaultResponse;
|
|
15
|
+
//# sourceMappingURL=isUnexpected.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../../../src/src/rest/isUnexpected.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AAWxB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,sBAAsB,GAAG,0BAA0B,GAC5D,QAAQ,IAAI,0BAA0B,CAAC;AAC1C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,oBAAoB,GAAG,wBAAwB,GACxD,QAAQ,IAAI,wBAAwB,CAAC;AACxC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,wBAAwB,GAAG,4BAA4B,GAChE,QAAQ,IAAI,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 CreateWidget {
|
|
9
|
+
/** The weight of the widget. This is an int32, but must be greater than zero. */
|
|
10
|
+
weight: number;
|
|
11
|
+
/** The color of the widget. */
|
|
12
|
+
color: "red" | "blue";
|
|
13
|
+
}
|
|
14
|
+
export interface UpdateWidget {
|
|
15
|
+
/** The weight of the widget. This is an int32, but must be greater than zero. */
|
|
16
|
+
weight?: number;
|
|
17
|
+
/** The color of the widget. */
|
|
18
|
+
color?: "red" | "blue";
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/src/rest/models.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,MAAM,WAAW,YAAY;IAC3B,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB"}
|
|
@@ -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/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/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/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/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"}
|