@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.
Files changed (79) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +107 -0
  3. package/dist/index.cjs +363 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist-esm/src/WidgetServiceClient.js +58 -0
  6. package/dist-esm/src/WidgetServiceClient.js.map +1 -0
  7. package/dist-esm/src/api/WidgetServiceContext.js +14 -0
  8. package/dist-esm/src/api/WidgetServiceContext.js.map +1 -0
  9. package/dist-esm/src/api/foo.js +13 -0
  10. package/dist-esm/src/api/foo.js.map +1 -0
  11. package/dist-esm/src/api/index.js +5 -0
  12. package/dist-esm/src/api/index.js.map +1 -0
  13. package/dist-esm/src/api/models.js +4 -0
  14. package/dist-esm/src/api/models.js.map +1 -0
  15. package/dist-esm/src/api/operations.js +171 -0
  16. package/dist-esm/src/api/operations.js.map +1 -0
  17. package/dist-esm/src/common/interfaces.js +4 -0
  18. package/dist-esm/src/common/interfaces.js.map +1 -0
  19. package/dist-esm/src/index.js +4 -0
  20. package/dist-esm/src/index.js.map +1 -0
  21. package/dist-esm/src/logger.js +12 -0
  22. package/dist-esm/src/logger.js.map +1 -0
  23. package/dist-esm/src/rest/clientDefinitions.js +4 -0
  24. package/dist-esm/src/rest/clientDefinitions.js.map +1 -0
  25. package/dist-esm/src/rest/index.js +19 -0
  26. package/dist-esm/src/rest/index.js.map +1 -0
  27. package/dist-esm/src/rest/isUnexpected.js +75 -0
  28. package/dist-esm/src/rest/isUnexpected.js.map +1 -0
  29. package/dist-esm/src/rest/models.js +4 -0
  30. package/dist-esm/src/rest/models.js.map +1 -0
  31. package/dist-esm/src/rest/outputModels.js +4 -0
  32. package/dist-esm/src/rest/outputModels.js.map +1 -0
  33. package/dist-esm/src/rest/parameters.js +4 -0
  34. package/dist-esm/src/rest/parameters.js.map +1 -0
  35. package/dist-esm/src/rest/responses.js +4 -0
  36. package/dist-esm/src/rest/responses.js.map +1 -0
  37. package/dist-esm/src/rest/widgetServiceClient.js +46 -0
  38. package/dist-esm/src/rest/widgetServiceClient.js.map +1 -0
  39. package/package.json +123 -0
  40. package/types/latest/template-dpg.d.ts +101 -0
  41. package/types/latest/tsdoc-metadata.json +11 -0
  42. package/types/samples-dev/createWidget.d.ts +2 -0
  43. package/types/samples-dev/createWidget.d.ts.map +1 -0
  44. package/types/src/WidgetServiceClient.d.ts +41 -0
  45. package/types/src/WidgetServiceClient.d.ts.map +1 -0
  46. package/types/src/api/WidgetServiceContext.d.ts +19 -0
  47. package/types/src/api/WidgetServiceContext.d.ts.map +1 -0
  48. package/types/src/api/foo.d.ts +9 -0
  49. package/types/src/api/foo.d.ts.map +1 -0
  50. package/types/src/api/index.d.ts +11 -0
  51. package/types/src/api/index.d.ts.map +1 -0
  52. package/types/src/api/models.d.ts +25 -0
  53. package/types/src/api/models.d.ts.map +1 -0
  54. package/types/src/api/operations.d.ts +67 -0
  55. package/types/src/api/operations.d.ts.map +1 -0
  56. package/types/src/common/interfaces.d.ts +21 -0
  57. package/types/src/common/interfaces.d.ts.map +1 -0
  58. package/types/src/index.d.ts +12 -0
  59. package/types/src/index.d.ts.map +1 -0
  60. package/types/src/logger.d.ts +2 -0
  61. package/types/src/logger.d.ts.map +1 -0
  62. package/types/src/rest/clientDefinitions.d.ts +52 -0
  63. package/types/src/rest/clientDefinitions.d.ts.map +1 -0
  64. package/types/src/rest/index.d.ts +17 -0
  65. package/types/src/rest/index.d.ts.map +1 -0
  66. package/types/src/rest/isUnexpected.d.ts +15 -0
  67. package/types/src/rest/isUnexpected.d.ts.map +1 -0
  68. package/types/src/rest/models.d.ts +20 -0
  69. package/types/src/rest/models.d.ts.map +1 -0
  70. package/types/src/rest/outputModels.d.ts +25 -0
  71. package/types/src/rest/outputModels.d.ts.map +1 -0
  72. package/types/src/rest/parameters.d.ts +22 -0
  73. package/types/src/rest/parameters.d.ts.map +1 -0
  74. package/types/src/rest/responses.d.ts +63 -0
  75. package/types/src/rest/responses.d.ts.map +1 -0
  76. package/types/src/rest/widgetServiceClient.d.ts +16 -0
  77. package/types/src/rest/widgetServiceClient.d.ts.map +1 -0
  78. package/types/test/public/widgetService.spec.d.ts +2 -0
  79. package/types/test/public/widgetService.spec.d.ts.map +1 -0
package/package.json ADDED
@@ -0,0 +1,123 @@
1
+ {
2
+ "name": "@azure/template-dpg",
3
+ "version": "1.0.0-alpha.20230530.3",
4
+ "description": "Widget Service",
5
+ "sdk-type": "client",
6
+ "main": "dist/index.js",
7
+ "module": "dist-esm/src/index.js",
8
+ "react-native": {
9
+ "./dist/index.js": "./dist-esm/src/index.js"
10
+ },
11
+ "type": "module",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./types/src/index.d.ts",
15
+ "require": "./dist/index.cjs",
16
+ "import": "./dist-esm/src/index.js"
17
+ },
18
+ "./api": {
19
+ "types": "./types/src/api/index.d.ts",
20
+ "import": "./dist-esm/src/api/index.js"
21
+ },
22
+ "./rest": {
23
+ "types": "./types/src/rest/index.d.ts",
24
+ "import": "./dist-esm/src/rest/index.js"
25
+ }
26
+ },
27
+ "//metadata": {},
28
+ "types": "types/latest/template-dpg.d.ts",
29
+ "scripts": {
30
+ "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
31
+ "build:samples": "echo Obsolete",
32
+ "build:test:browser": "tsc -p . && dev-tool run bundle",
33
+ "build:test:node": "tsc -p . && dev-tool run bundle",
34
+ "build:test": "tsc -p . && dev-tool run bundle",
35
+ "build:output": "node scripts/renameOutput.mjs",
36
+ "build": "dev-tool customization apply && npm run format && npm run build:test && api-extractor run --local && npm run build:output",
37
+ "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
38
+ "clean": "rimraf dist dist-* temp types *.tgz *.log",
39
+ "execute:samples": "dev-tool samples run samples-dev",
40
+ "extract-api": "tsc -p . && api-extractor run --local",
41
+ "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"sources/customizations/**/*.ts\" \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
42
+ "integration-test:browser": "dev-tool run test:browser",
43
+ "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
44
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
45
+ "lint:fix": "eslint README.md package.json api-extractor.json src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]",
46
+ "lint": "eslint README.md package.json api-extractor.json src test --ext .ts,.javascript,.js",
47
+ "pack": "npm pack 2>&1",
48
+ "test:browser": "npm run clean && npm run build && npm run integration-test:browser",
49
+ "test:node": "npm run clean && tsc -p . && npm run integration-test:node",
50
+ "test": "npm run clean && tsc -p . && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
51
+ "unit-test:browser": "dev-tool run test:browser",
52
+ "unit-test:node": "dev-tool run test:node-ts-input -- \"test/internal/unit/{,!(browser)/**/}*.spec.ts\" \"test/public/{,!(browser)/**/}*.spec.ts\"",
53
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser"
54
+ },
55
+ "files": [
56
+ "dist/",
57
+ "dist-esm/src/",
58
+ "types",
59
+ "types/src",
60
+ "README.md",
61
+ "LICENSE"
62
+ ],
63
+ "repository": "github:Azure/azure-sdk-for-js",
64
+ "engines": {
65
+ "node": ">=14.0.0"
66
+ },
67
+ "keywords": [
68
+ "azure",
69
+ "cloud",
70
+ "typescript"
71
+ ],
72
+ "author": "Microsoft Corporation",
73
+ "license": "MIT",
74
+ "bugs": {
75
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
76
+ },
77
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/template/template-dpg/README.md",
78
+ "sideEffects": false,
79
+ "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
80
+ "devDependencies": {
81
+ "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
82
+ "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
83
+ "@azure-tools/test-recorder": "^3.0.0",
84
+ "@azure/test-utils": ">=1.0.0-alpha <1.0.0-alphb",
85
+ "@microsoft/api-extractor": "^7.31.1",
86
+ "@types/chai": "^4.3.1",
87
+ "@types/mocha": "^7.0.2",
88
+ "@types/node": "^14.0.0",
89
+ "chai": "^4.3.6",
90
+ "cross-env": "^7.0.3",
91
+ "dotenv": "^16.0.0",
92
+ "eslint": "^8.16.0",
93
+ "esm": "^3.2.25",
94
+ "karma": "^6.4.0",
95
+ "karma-chrome-launcher": "^3.1.1",
96
+ "karma-coverage": "^2.2.0",
97
+ "karma-edge-launcher": "^0.4.2",
98
+ "karma-env-preprocessor": "^0.1.1",
99
+ "karma-firefox-launcher": "^2.1.2",
100
+ "karma-junit-reporter": "^2.0.1",
101
+ "karma-mocha": "^2.0.1",
102
+ "karma-mocha-reporter": "^2.2.5",
103
+ "karma-sourcemap-loader": "^0.3.8",
104
+ "mocha": "^7.1.1",
105
+ "mocha-junit-reporter": "^2.0.2",
106
+ "nyc": "^15.1.0",
107
+ "prettier": "^2.5.1",
108
+ "puppeteer": "^19.2.2",
109
+ "rimraf": "^3.0.2",
110
+ "ts-node": "^10.8.1",
111
+ "typescript": "~5.0.0",
112
+ "util": "^0.12.4",
113
+ "@azure-tools/test-credential": "~1.0.0"
114
+ },
115
+ "dependencies": {
116
+ "@azure-rest/core-client": "^1.1.2",
117
+ "@azure/core-auth": ">=1.4.1-alpha <1.4.1-alphb",
118
+ "@azure/core-rest-pipeline": "^1.8.1",
119
+ "@azure/core-util": "^1.1.0",
120
+ "@azure/logger": "^1.0.3",
121
+ "tslib": "^2.4.0"
122
+ }
123
+ }
@@ -0,0 +1,101 @@
1
+ import { ClientOptions } from '@azure-rest/core-client';
2
+ import { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
3
+ import { TokenCredential } from '@azure/core-auth';
4
+
5
+ /** */
6
+ export declare interface AnalyzeResult {
7
+ /** */
8
+ summary: string;
9
+ }
10
+
11
+ export declare interface AnalyzeWidgetOptions extends RequestOptions {
12
+ }
13
+
14
+ /** Type of ColorType */
15
+ /** */
16
+ export declare type ColorType = "red" | "blue";
17
+
18
+ export declare interface CreateWidgetOptions extends RequestOptions {
19
+ }
20
+
21
+ export declare interface DeleteWidgetOptions extends RequestOptions {
22
+ }
23
+
24
+ export declare interface GetWidgetOptions extends RequestOptions {
25
+ }
26
+
27
+ export declare interface ListWidgetsOptions extends RequestOptions {
28
+ }
29
+
30
+ export declare interface RequestOptions {
31
+ requestOptions?: {
32
+ /**
33
+ * Headers to send along with the request
34
+ */
35
+ headers?: RawHttpHeadersInput;
36
+ /** Set to true if the request is sent over HTTP instead of HTTPS */
37
+ allowInsecureConnection?: boolean;
38
+ /** Set to true if you want to skip encoding the path parameters */
39
+ skipUrlEncoding?: boolean;
40
+ };
41
+ }
42
+
43
+ export declare interface UpdateWidgetOptions extends RequestOptions {
44
+ /** The weight of the widget. This is an int32, but must be greater than zero. */
45
+ weight?: number;
46
+ /** The color of the widget. */
47
+ color?: ColorType;
48
+ }
49
+
50
+ /**
51
+ * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
52
+ *
53
+ * Any changes you make here may be lost.
54
+ *
55
+ * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
56
+ */
57
+ /** */
58
+ export declare interface Widget {
59
+ /** The UUID of this widget. This is generated automatically by the service. */
60
+ id: string;
61
+ /** The weight of the widget. This is an int32, but must be greater than zero. */
62
+ weight: number;
63
+ /** The color of the widget. */
64
+ color: ColorType;
65
+ }
66
+
67
+ export declare class WidgetServiceClient {
68
+ private _client;
69
+ /** */
70
+ constructor(endpoint: string, options?: WidgetServiceClientOptions);
71
+ constructor(endpoint: string, credential: TokenCredential, options?: WidgetServiceClientOptions);
72
+ /**
73
+ * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
74
+ *
75
+ * It does not accept any options or parameters.
76
+ */
77
+ listWidgets(options?: ListWidgetsOptions): Promise<Widget[]>;
78
+ /** Get a widget by ID. */
79
+ getWidget(id: string, options?: GetWidgetOptions): Promise<Widget>;
80
+ /**
81
+ * Create a new widget.
82
+ *
83
+ * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will
84
+ * result in an error.
85
+ */
86
+ createWidget(weight: number, color: ColorType, options?: CreateWidgetOptions): Promise<Widget>;
87
+ /**
88
+ * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields
89
+ * are optional and will be updated within the widget if provided.
90
+ */
91
+ updateWidget(id: string, options?: UpdateWidgetOptions): Promise<Widget>;
92
+ /** Delete a widget by ID. */
93
+ deleteWidget(id: string, options?: DeleteWidgetOptions): Promise<void>;
94
+ /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */
95
+ analyzeWidget(id: string, options?: AnalyzeWidgetOptions): Promise<AnalyzeResult>;
96
+ }
97
+
98
+ export declare interface WidgetServiceClientOptions extends ClientOptions {
99
+ }
100
+
101
+ export { }
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.35.1"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createWidget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createWidget.d.ts","sourceRoot":"","sources":["../../samples-dev/createWidget.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
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 { TokenCredential } from "@azure/core-auth";
9
+ import { AnalyzeResult, AnalyzeWidgetOptions, ColorType, CreateWidgetOptions, DeleteWidgetOptions, GetWidgetOptions, ListWidgetsOptions, UpdateWidgetOptions, Widget, WidgetServiceClientOptions } from "./api/index.js";
10
+ export { WidgetServiceClientOptions } from "./api/WidgetServiceContext.js";
11
+ export declare class WidgetServiceClient {
12
+ private _client;
13
+ /** */
14
+ constructor(endpoint: string, options?: WidgetServiceClientOptions);
15
+ constructor(endpoint: string, credential: TokenCredential, options?: WidgetServiceClientOptions);
16
+ /**
17
+ * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
18
+ *
19
+ * It does not accept any options or parameters.
20
+ */
21
+ listWidgets(options?: ListWidgetsOptions): Promise<Widget[]>;
22
+ /** Get a widget by ID. */
23
+ getWidget(id: string, options?: GetWidgetOptions): Promise<Widget>;
24
+ /**
25
+ * Create a new widget.
26
+ *
27
+ * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will
28
+ * result in an error.
29
+ */
30
+ createWidget(weight: number, color: ColorType, options?: CreateWidgetOptions): Promise<Widget>;
31
+ /**
32
+ * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields
33
+ * are optional and will be updated within the widget if provided.
34
+ */
35
+ updateWidget(id: string, options?: UpdateWidgetOptions): Promise<Widget>;
36
+ /** Delete a widget by ID. */
37
+ deleteWidget(id: string, options?: DeleteWidgetOptions): Promise<void>;
38
+ /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */
39
+ analyzeWidget(id: string, options?: AnalyzeWidgetOptions): Promise<AnalyzeResult>;
40
+ }
41
+ //# sourceMappingURL=WidgetServiceClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetServiceClient.d.ts","sourceRoot":"","sources":["../../src/WidgetServiceClient.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAqB,MAA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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 "../rest/index.js";
11
+ export { WidgetServiceContext } from "../rest/index.js";
12
+ export interface WidgetServiceClientOptions extends ClientOptions {
13
+ }
14
+ /**
15
+ * This customization adds authentication to the client.
16
+ */
17
+ export declare function createWidgetService(endpoint: string, options?: ClientOptions): WidgetServiceContext;
18
+ export declare function createWidgetService(endpoint: string, credential: TokenCredential, options?: ClientOptions): WidgetServiceContext;
19
+ //# sourceMappingURL=WidgetServiceContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetServiceContext.d.ts","sourceRoot":"","sources":["../../../src/api/WidgetServiceContext.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAqB,MAAM,kBAAkB,CAAC;AACtE,OAAkB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,0BAA2B,SAAQ,aAAa;CAAG;AAEpE;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC;AACxB,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
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 declare function foo(): void;
9
+ //# sourceMappingURL=foo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foo.d.ts","sourceRoot":"","sources":["../../../src/api/foo.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,GAAG,IAAI,IAAI,CAE1B"}
@@ -0,0 +1,11 @@
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 { Widget, ColorType, AnalyzeResult } from "./models.js";
9
+ export { listWidgets, getWidget, createWidget, updateWidget, deleteWidget, analyzeWidget, ListWidgetsOptions, GetWidgetOptions, CreateWidgetOptions, UpdateWidgetOptions, DeleteWidgetOptions, AnalyzeWidgetOptions, } from "./operations.js";
10
+ export { createWidgetService, WidgetServiceContext, WidgetServiceClientOptions, } from "./WidgetServiceContext.js";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC"}
@@ -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
+ /** */
9
+ export interface Widget {
10
+ /** The UUID of this widget. This is generated automatically by the service. */
11
+ id: string;
12
+ /** The weight of the widget. This is an int32, but must be greater than zero. */
13
+ weight: number;
14
+ /** The color of the widget. */
15
+ color: ColorType;
16
+ }
17
+ /** Type of ColorType */
18
+ /** */
19
+ export type ColorType = "red" | "blue";
20
+ /** */
21
+ export interface AnalyzeResult {
22
+ /** */
23
+ summary: string;
24
+ }
25
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/api/models.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,MAAM;AACN,MAAM,WAAW,MAAM;IACrB,+EAA+E;IAC/E,EAAE,EAAE,MAAM,CAAC;IACX,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,wBAAwB;AACxB,MAAM;AACN,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AAEvC,MAAM;AACN,MAAM,WAAW,aAAa;IAC5B,MAAM;IACN,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,67 @@
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 { StreamableMethod } from "@azure-rest/core-client";
9
+ import { RequestOptions } from "../common/interfaces.js";
10
+ import { AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse, WidgetServiceContext as Client, CreateWidget201Response, CreateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, ListWidgets200Response, ListWidgetsDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse } from "../rest/index.js";
11
+ import { AnalyzeResult, ColorType, Widget } from "./models.js";
12
+ export interface ListWidgetsOptions extends RequestOptions {
13
+ }
14
+ export interface GetWidgetOptions extends RequestOptions {
15
+ }
16
+ export interface CreateWidgetOptions extends RequestOptions {
17
+ }
18
+ export interface UpdateWidgetOptions extends RequestOptions {
19
+ /** The weight of the widget. This is an int32, but must be greater than zero. */
20
+ weight?: number;
21
+ /** The color of the widget. */
22
+ color?: ColorType;
23
+ }
24
+ export interface DeleteWidgetOptions extends RequestOptions {
25
+ }
26
+ export interface AnalyzeWidgetOptions extends RequestOptions {
27
+ }
28
+ export declare function _listWidgetsSend(context: Client, options?: ListWidgetsOptions): StreamableMethod<ListWidgets200Response | ListWidgetsDefaultResponse>;
29
+ export declare function _listWidgetsDeserialize(result: ListWidgets200Response | ListWidgetsDefaultResponse): Promise<Widget[]>;
30
+ /**
31
+ * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
32
+ *
33
+ * It does not accept any options or parameters.
34
+ */
35
+ export declare function listWidgets(context: Client, options?: ListWidgetsOptions): Promise<Widget[]>;
36
+ export declare function _getWidgetSend(context: Client, id: string, options?: GetWidgetOptions): StreamableMethod<GetWidget200Response | GetWidgetDefaultResponse>;
37
+ export declare function _getWidgetDeserialize(result: GetWidget200Response | GetWidgetDefaultResponse): Promise<Widget>;
38
+ /** Get a widget by ID. */
39
+ export declare function getWidget(context: Client, id: string, options?: GetWidgetOptions): Promise<Widget>;
40
+ export declare function _createWidgetSend(context: Client, weight: number, color: ColorType, options?: CreateWidgetOptions): StreamableMethod<CreateWidget201Response | CreateWidgetDefaultResponse>;
41
+ export declare function _createWidgetDeserialize(result: CreateWidget201Response | CreateWidgetDefaultResponse): Promise<Widget>;
42
+ /**
43
+ * Create a new widget.
44
+ *
45
+ * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will
46
+ * result in an error.
47
+ */
48
+ export declare function createWidget(context: Client, weight: number, color: ColorType, options?: CreateWidgetOptions): Promise<Widget>;
49
+ export declare function _updateWidgetSend(context: Client, id: string, options?: UpdateWidgetOptions): StreamableMethod<UpdateWidget200Response | UpdateWidgetDefaultResponse>;
50
+ export declare function _updateWidgetDeserialize(result: UpdateWidget200Response | UpdateWidgetDefaultResponse): Promise<Widget>;
51
+ /**
52
+ * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields
53
+ * are optional and will be updated within the widget if provided.
54
+ */
55
+ export declare function updateWidget(context: Client, id: string, options?: UpdateWidgetOptions): Promise<Widget>;
56
+ export declare function _deleteWidgetSend(context: Client, id: string, options?: DeleteWidgetOptions): StreamableMethod<DeleteWidget204Response | DeleteWidgetDefaultResponse>;
57
+ export declare function _deleteWidgetDeserialize(result: DeleteWidget204Response | DeleteWidgetDefaultResponse): Promise<void>;
58
+ /** Delete a widget by ID. */
59
+ export declare function deleteWidget(context: Client, id: string, options?: DeleteWidgetOptions): Promise<void>;
60
+ export declare function _analyzeWidgetSend(context: Client, id: string, options?: AnalyzeWidgetOptions): StreamableMethod<AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse>;
61
+ export declare function _analyzeWidgetDeserialize(result: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse): Promise<AnalyzeResult>;
62
+ /**
63
+ * In this customization we will perform the following tasks in addition to the generated:
64
+ * - We are going to add special error handling for demonstration purposes
65
+ */
66
+ export declare function analyzeWidget(context: Client, id: string, options?: AnalyzeWidgetOptions): Promise<AnalyzeResult>;
67
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/api/operations.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,oBAAoB,IAAI,MAAM,EAC9B,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,0BA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O,GAAE,mBAA4C,GACpD,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,oBAA6C,GACrD,gBAAgB,CAAC,wBAAwB,GAAG,4BAA4B,CAAC,CAM3E;AAED,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,wBAAwB,GAAG,4BAA4B,GAC9D,OAAO,CAAC,aAAa,CAAC,CAQxB;AAED;;;GAGG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,aAAa,CAAC,CAaxB"}
@@ -0,0 +1,21 @@
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 { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
9
+ export interface RequestOptions {
10
+ requestOptions?: {
11
+ /**
12
+ * Headers to send along with the request
13
+ */
14
+ headers?: RawHttpHeadersInput;
15
+ /** Set to true if the request is sent over HTTP instead of HTTPS */
16
+ allowInsecureConnection?: boolean;
17
+ /** Set to true if you want to skip encoding the path parameters */
18
+ skipUrlEncoding?: boolean;
19
+ };
20
+ }
21
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,WAAW,cAAc;IAC7B,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;QAC9B,oEAAoE;QACpE,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAClC,mEAAmE;QACnE,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH"}
@@ -0,0 +1,12 @@
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 { Widget, ColorType, AnalyzeResult } from "./api/models.js";
9
+ export { ListWidgetsOptions, GetWidgetOptions, CreateWidgetOptions, UpdateWidgetOptions, DeleteWidgetOptions, AnalyzeWidgetOptions, } from "./api/operations.js";
10
+ export { WidgetServiceClient, WidgetServiceClientOptions } from "./WidgetServiceClient.js";
11
+ export { RequestOptions } from "./common/interfaces.js";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../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/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/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/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/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"}