@azure/arm-portal 1.0.0-beta.1

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 (92) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/LICENSE +21 -0
  3. package/README.md +98 -0
  4. package/dist/index.js +1627 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/models/index.d.ts +334 -0
  13. package/dist-esm/src/models/index.d.ts.map +1 -0
  14. package/dist-esm/src/models/index.js +13 -0
  15. package/dist-esm/src/models/index.js.map +1 -0
  16. package/dist-esm/src/models/mappers.d.ts +28 -0
  17. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  18. package/dist-esm/src/models/mappers.js +624 -0
  19. package/dist-esm/src/models/mappers.js.map +1 -0
  20. package/dist-esm/src/models/parameters.d.ts +14 -0
  21. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  22. package/dist-esm/src/models/parameters.js +120 -0
  23. package/dist-esm/src/models/parameters.js.map +1 -0
  24. package/dist-esm/src/operations/dashboards.d.ts +83 -0
  25. package/dist-esm/src/operations/dashboards.d.ts.map +1 -0
  26. package/dist-esm/src/operations/dashboards.js +361 -0
  27. package/dist-esm/src/operations/dashboards.js.map +1 -0
  28. package/dist-esm/src/operations/index.d.ts +5 -0
  29. package/dist-esm/src/operations/index.d.ts.map +1 -0
  30. package/dist-esm/src/operations/index.js +12 -0
  31. package/dist-esm/src/operations/index.js.map +1 -0
  32. package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts +32 -0
  33. package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  34. package/dist-esm/src/operations/listTenantConfigurationViolations.js +120 -0
  35. package/dist-esm/src/operations/listTenantConfigurationViolations.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +32 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +120 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/tenantConfigurations.d.ts +52 -0
  41. package/dist-esm/src/operations/tenantConfigurations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/tenantConfigurations.js +199 -0
  43. package/dist-esm/src/operations/tenantConfigurations.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/dashboards.d.ts +47 -0
  45. package/dist-esm/src/operationsInterfaces/dashboards.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/dashboards.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/dashboards.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  51. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
  53. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  57. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts +31 -0
  61. package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/tenantConfigurations.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/tenantConfigurations.js.map +1 -0
  64. package/dist-esm/src/portal.d.ts +22 -0
  65. package/dist-esm/src/portal.d.ts.map +1 -0
  66. package/dist-esm/src/portal.js +55 -0
  67. package/dist-esm/src/portal.js.map +1 -0
  68. package/dist-esm/test/sampleTest.d.ts +2 -0
  69. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  70. package/dist-esm/test/sampleTest.js +40 -0
  71. package/dist-esm/test/sampleTest.js.map +1 -0
  72. package/package.json +90 -0
  73. package/review/arm-portal.api.md +349 -0
  74. package/rollup.config.js +188 -0
  75. package/src/index.ts +12 -0
  76. package/src/models/index.ts +389 -0
  77. package/src/models/mappers.ts +658 -0
  78. package/src/models/parameters.ts +141 -0
  79. package/src/operations/dashboards.ts +451 -0
  80. package/src/operations/index.ts +12 -0
  81. package/src/operations/listTenantConfigurationViolations.ts +138 -0
  82. package/src/operations/operations.ts +137 -0
  83. package/src/operations/tenantConfigurations.ts +244 -0
  84. package/src/operationsInterfaces/dashboards.ts +91 -0
  85. package/src/operationsInterfaces/index.ts +12 -0
  86. package/src/operationsInterfaces/listTenantConfigurationViolations.ts +25 -0
  87. package/src/operationsInterfaces/operations.ts +25 -0
  88. package/src/operationsInterfaces/tenantConfigurations.ts +61 -0
  89. package/src/portal.ts +94 -0
  90. package/tsconfig.json +19 -0
  91. package/types/arm-portal.d.ts +505 -0
  92. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,349 @@
1
+ ## API Report File for "@azure/arm-portal"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+
11
+ // @public
12
+ export type Configuration = ProxyResource & {
13
+ enforcePrivateMarkdownStorage?: boolean;
14
+ };
15
+
16
+ // @public
17
+ export interface ConfigurationList {
18
+ nextLink?: string;
19
+ value?: Configuration[];
20
+ }
21
+
22
+ // @public
23
+ export type ConfigurationName = string;
24
+
25
+ // @public
26
+ export interface Dashboard {
27
+ readonly id?: string;
28
+ lenses?: DashboardLens[];
29
+ location: string;
30
+ metadata?: {
31
+ [propertyName: string]: Record<string, unknown>;
32
+ };
33
+ readonly name?: string;
34
+ tags?: {
35
+ [propertyName: string]: string;
36
+ };
37
+ readonly type?: string;
38
+ }
39
+
40
+ // @public
41
+ export interface DashboardLens {
42
+ metadata?: {
43
+ [propertyName: string]: Record<string, unknown>;
44
+ };
45
+ order: number;
46
+ parts: DashboardParts[];
47
+ }
48
+
49
+ // @public
50
+ export interface DashboardListResult {
51
+ nextLink?: string;
52
+ value?: Dashboard[];
53
+ }
54
+
55
+ // @public
56
+ export interface DashboardPartMetadata {
57
+ [property: string]: any;
58
+ type: "Extension/HubsExtension/PartType/MarkdownPart";
59
+ }
60
+
61
+ // @public (undocumented)
62
+ export type DashboardPartMetadataUnion = DashboardPartMetadata | MarkdownPartMetadata;
63
+
64
+ // @public
65
+ export interface DashboardParts {
66
+ metadata?: DashboardPartMetadataUnion;
67
+ position: DashboardPartsPosition;
68
+ }
69
+
70
+ // @public
71
+ export interface DashboardPartsPosition {
72
+ colSpan: number;
73
+ metadata?: {
74
+ [propertyName: string]: Record<string, unknown>;
75
+ };
76
+ rowSpan: number;
77
+ x: number;
78
+ y: number;
79
+ }
80
+
81
+ // @public
82
+ export interface Dashboards {
83
+ createOrUpdate(resourceGroupName: string, dashboardName: string, dashboard: Dashboard, options?: DashboardsCreateOrUpdateOptionalParams): Promise<DashboardsCreateOrUpdateResponse>;
84
+ delete(resourceGroupName: string, dashboardName: string, options?: DashboardsDeleteOptionalParams): Promise<void>;
85
+ get(resourceGroupName: string, dashboardName: string, options?: DashboardsGetOptionalParams): Promise<DashboardsGetResponse>;
86
+ listByResourceGroup(resourceGroupName: string, options?: DashboardsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Dashboard>;
87
+ listBySubscription(options?: DashboardsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Dashboard>;
88
+ update(resourceGroupName: string, dashboardName: string, dashboard: PatchableDashboard, options?: DashboardsUpdateOptionalParams): Promise<DashboardsUpdateResponse>;
89
+ }
90
+
91
+ // @public
92
+ export interface DashboardsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
93
+ }
94
+
95
+ // @public
96
+ export type DashboardsCreateOrUpdateResponse = Dashboard;
97
+
98
+ // @public
99
+ export interface DashboardsDeleteOptionalParams extends coreClient.OperationOptions {
100
+ }
101
+
102
+ // @public
103
+ export interface DashboardsGetOptionalParams extends coreClient.OperationOptions {
104
+ }
105
+
106
+ // @public
107
+ export type DashboardsGetResponse = Dashboard;
108
+
109
+ // @public
110
+ export interface DashboardsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
111
+ }
112
+
113
+ // @public
114
+ export type DashboardsListByResourceGroupNextResponse = DashboardListResult;
115
+
116
+ // @public
117
+ export interface DashboardsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
118
+ }
119
+
120
+ // @public
121
+ export type DashboardsListByResourceGroupResponse = DashboardListResult;
122
+
123
+ // @public
124
+ export interface DashboardsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
125
+ }
126
+
127
+ // @public
128
+ export type DashboardsListBySubscriptionNextResponse = DashboardListResult;
129
+
130
+ // @public
131
+ export interface DashboardsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
132
+ }
133
+
134
+ // @public
135
+ export type DashboardsListBySubscriptionResponse = DashboardListResult;
136
+
137
+ // @public
138
+ export interface DashboardsUpdateOptionalParams extends coreClient.OperationOptions {
139
+ }
140
+
141
+ // @public
142
+ export type DashboardsUpdateResponse = Dashboard;
143
+
144
+ // @public
145
+ export interface ErrorDefinition {
146
+ readonly code?: number;
147
+ readonly details?: ErrorDefinition[];
148
+ readonly message?: string;
149
+ }
150
+
151
+ // @public
152
+ export interface ErrorResponse {
153
+ error?: ErrorDefinition;
154
+ }
155
+
156
+ // @public
157
+ export enum KnownConfigurationName {
158
+ // (undocumented)
159
+ Default = "default"
160
+ }
161
+
162
+ // @public
163
+ export interface ListTenantConfigurationViolations {
164
+ list(options?: ListTenantConfigurationViolationsListOptionalParams): PagedAsyncIterableIterator<Violation>;
165
+ }
166
+
167
+ // @public
168
+ export interface ListTenantConfigurationViolationsListNextOptionalParams extends coreClient.OperationOptions {
169
+ }
170
+
171
+ // @public
172
+ export type ListTenantConfigurationViolationsListNextResponse = ViolationsList;
173
+
174
+ // @public
175
+ export interface ListTenantConfigurationViolationsListOptionalParams extends coreClient.OperationOptions {
176
+ }
177
+
178
+ // @public
179
+ export type ListTenantConfigurationViolationsListResponse = ViolationsList;
180
+
181
+ // @public
182
+ export type MarkdownPartMetadata = DashboardPartMetadata & {
183
+ type: "Extension/HubsExtension/PartType/MarkdownPart";
184
+ inputs?: Record<string, unknown>[];
185
+ settings?: MarkdownPartMetadataSettings;
186
+ };
187
+
188
+ // @public
189
+ export interface MarkdownPartMetadataSettings {
190
+ content?: MarkdownPartMetadataSettingsContent;
191
+ }
192
+
193
+ // @public
194
+ export interface MarkdownPartMetadataSettingsContent {
195
+ settings?: MarkdownPartMetadataSettingsContentSettings;
196
+ }
197
+
198
+ // @public
199
+ export interface MarkdownPartMetadataSettingsContentSettings {
200
+ content?: string;
201
+ markdownSource?: number;
202
+ markdownUri?: string;
203
+ subtitle?: string;
204
+ title?: string;
205
+ }
206
+
207
+ // @public
208
+ export interface Operations {
209
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperation>;
210
+ }
211
+
212
+ // @public
213
+ export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
214
+ }
215
+
216
+ // @public
217
+ export type OperationsListNextResponse = ResourceProviderOperationList;
218
+
219
+ // @public
220
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
221
+ }
222
+
223
+ // @public
224
+ export type OperationsListResponse = ResourceProviderOperationList;
225
+
226
+ // @public
227
+ export interface PatchableDashboard {
228
+ lenses?: DashboardLens[];
229
+ metadata?: {
230
+ [propertyName: string]: Record<string, unknown>;
231
+ };
232
+ tags?: {
233
+ [propertyName: string]: string;
234
+ };
235
+ }
236
+
237
+ // @public (undocumented)
238
+ export class Portal extends coreClient.ServiceClient {
239
+ // (undocumented)
240
+ $host: string;
241
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: PortalOptionalParams);
242
+ // (undocumented)
243
+ apiVersion: string;
244
+ // (undocumented)
245
+ dashboards: Dashboards;
246
+ // (undocumented)
247
+ listTenantConfigurationViolations: ListTenantConfigurationViolations;
248
+ // (undocumented)
249
+ operations: Operations;
250
+ // (undocumented)
251
+ subscriptionId: string;
252
+ // (undocumented)
253
+ tenantConfigurations: TenantConfigurations;
254
+ }
255
+
256
+ // @public
257
+ export interface PortalOptionalParams extends coreClient.ServiceClientOptions {
258
+ $host?: string;
259
+ apiVersion?: string;
260
+ endpoint?: string;
261
+ }
262
+
263
+ // @public
264
+ export type ProxyResource = Resource & {};
265
+
266
+ // @public
267
+ export interface Resource {
268
+ readonly id?: string;
269
+ readonly name?: string;
270
+ readonly type?: string;
271
+ }
272
+
273
+ // @public
274
+ export interface ResourceProviderOperation {
275
+ display?: ResourceProviderOperationDisplay;
276
+ isDataAction?: string;
277
+ name?: string;
278
+ }
279
+
280
+ // @public
281
+ export interface ResourceProviderOperationDisplay {
282
+ description?: string;
283
+ operation?: string;
284
+ provider?: string;
285
+ resource?: string;
286
+ }
287
+
288
+ // @public
289
+ export interface ResourceProviderOperationList {
290
+ nextLink?: string;
291
+ value?: ResourceProviderOperation[];
292
+ }
293
+
294
+ // @public
295
+ export interface TenantConfigurations {
296
+ create(configurationName: ConfigurationName, tenantConfiguration: Configuration, options?: TenantConfigurationsCreateOptionalParams): Promise<TenantConfigurationsCreateResponse>;
297
+ delete(configurationName: ConfigurationName, options?: TenantConfigurationsDeleteOptionalParams): Promise<void>;
298
+ get(configurationName: ConfigurationName, options?: TenantConfigurationsGetOptionalParams): Promise<TenantConfigurationsGetResponse>;
299
+ list(options?: TenantConfigurationsListOptionalParams): PagedAsyncIterableIterator<Configuration>;
300
+ }
301
+
302
+ // @public
303
+ export interface TenantConfigurationsCreateOptionalParams extends coreClient.OperationOptions {
304
+ }
305
+
306
+ // @public
307
+ export type TenantConfigurationsCreateResponse = Configuration;
308
+
309
+ // @public
310
+ export interface TenantConfigurationsDeleteOptionalParams extends coreClient.OperationOptions {
311
+ }
312
+
313
+ // @public
314
+ export interface TenantConfigurationsGetOptionalParams extends coreClient.OperationOptions {
315
+ }
316
+
317
+ // @public
318
+ export type TenantConfigurationsGetResponse = Configuration;
319
+
320
+ // @public
321
+ export interface TenantConfigurationsListNextOptionalParams extends coreClient.OperationOptions {
322
+ }
323
+
324
+ // @public
325
+ export type TenantConfigurationsListNextResponse = ConfigurationList;
326
+
327
+ // @public
328
+ export interface TenantConfigurationsListOptionalParams extends coreClient.OperationOptions {
329
+ }
330
+
331
+ // @public
332
+ export type TenantConfigurationsListResponse = ConfigurationList;
333
+
334
+ // @public
335
+ export interface Violation {
336
+ readonly errorMessage?: string;
337
+ readonly id?: string;
338
+ readonly userId?: string;
339
+ }
340
+
341
+ // @public
342
+ export interface ViolationsList {
343
+ nextLink?: string;
344
+ value?: Violation[];
345
+ }
346
+
347
+ // (No @packageDocumentation comment for this package)
348
+
349
+ ```
@@ -0,0 +1,188 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import nodeResolve from "@rollup/plugin-node-resolve";
10
+ import cjs from "@rollup/plugin-commonjs";
11
+ import sourcemaps from "rollup-plugin-sourcemaps";
12
+ import multiEntry from "@rollup/plugin-multi-entry";
13
+ import json from "@rollup/plugin-json";
14
+
15
+ import nodeBuiltins from "builtin-modules";
16
+
17
+ /**
18
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19
+ *
20
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
21
+ * __exportStar downleveled helper function to declare its exports which confuses
22
+ * rollup's automatic discovery mechanism.
23
+ *
24
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
25
+ */
26
+ export function openTelemetryCommonJs() {
27
+ const namedExports = {};
28
+
29
+ for (const key of [
30
+ "@opentelemetry/api",
31
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
32
+ ]) {
33
+ namedExports[key] = [
34
+ "SpanKind",
35
+ "TraceFlags",
36
+ "getSpan",
37
+ "setSpan",
38
+ "SpanStatusCode",
39
+ "getSpanContext",
40
+ "setSpanContext"
41
+ ];
42
+ }
43
+
44
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45
+
46
+ for (const version of releasedOpenTelemetryVersions) {
47
+ namedExports[
48
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50
+ ] = [
51
+ "SpanKind",
52
+ "TraceFlags",
53
+ "getSpan",
54
+ "setSpan",
55
+ "StatusCode",
56
+ "CanonicalCode",
57
+ "getSpanContext",
58
+ "setSpanContext"
59
+ ];
60
+ }
61
+
62
+ return namedExports;
63
+ }
64
+
65
+ // #region Warning Handler
66
+
67
+ /**
68
+ * A function that can determine whether a rollupwarning should be ignored. If
69
+ * the function returns `true`, then the warning will not be displayed.
70
+ */
71
+
72
+ function ignoreNiseSinonEvalWarnings(warning) {
73
+ return (
74
+ warning.code === "EVAL" &&
75
+ warning.id &&
76
+ (warning.id.includes("node_modules/nise") ||
77
+ warning.id.includes("node_modules/sinon")) === true
78
+ );
79
+ }
80
+
81
+ function ignoreChaiCircularDependencyWarnings(warning) {
82
+ return (
83
+ warning.code === "CIRCULAR_DEPENDENCY" &&
84
+ warning.importer && warning.importer.includes("node_modules/chai") === true
85
+ );
86
+ }
87
+
88
+ const warningInhibitors = [
89
+ ignoreChaiCircularDependencyWarnings,
90
+ ignoreNiseSinonEvalWarnings
91
+ ];
92
+
93
+ /**
94
+ * Construct a warning handler for the shared rollup configuration
95
+ * that ignores certain warnings that are not relevant to testing.
96
+ */
97
+ function makeOnWarnForTesting() {
98
+ return (warning, warn) => {
99
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
100
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
101
+ warn(warning);
102
+ }
103
+ };
104
+ }
105
+
106
+ // #endregion
107
+
108
+ function makeBrowserTestConfig() {
109
+ const config = {
110
+ input: {
111
+ include: ["dist-esm/test/**/*.spec.js"],
112
+ exclude: ["dist-esm/test/**/node/**"]
113
+ },
114
+ output: {
115
+ file: `dist-test/index.browser.js`,
116
+ format: "umd",
117
+ sourcemap: true
118
+ },
119
+ preserveSymlinks: false,
120
+ plugins: [
121
+ multiEntry({ exports: false }),
122
+ nodeResolve({
123
+ mainFields: ["module", "browser"]
124
+ }),
125
+ cjs({
126
+ namedExports: {
127
+ // Chai's strange internal architecture makes it impossible to statically
128
+ // analyze its exports.
129
+ chai: [
130
+ "version",
131
+ "use",
132
+ "util",
133
+ "config",
134
+ "expect",
135
+ "should",
136
+ "assert"
137
+ ],
138
+ ...openTelemetryCommonJs()
139
+ }
140
+ }),
141
+ json(),
142
+ sourcemaps()
143
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
144
+ ],
145
+ onwarn: makeOnWarnForTesting(),
146
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
147
+ // rollup started respecting the "sideEffects" field in package.json. Since
148
+ // our package.json sets "sideEffects=false", this also applies to test
149
+ // code, which causes all tests to be removed by tree-shaking.
150
+ treeshake: false
151
+ };
152
+
153
+ return config;
154
+ }
155
+
156
+ const defaultConfigurationOptions = {
157
+ disableBrowserBundle: false
158
+ };
159
+
160
+ export function makeConfig(pkg, options) {
161
+ options = {
162
+ ...defaultConfigurationOptions,
163
+ ...(options || {})
164
+ };
165
+
166
+ const baseConfig = {
167
+ // Use the package's module field if it has one
168
+ input: pkg["module"] || "dist-esm/src/index.js",
169
+ external: [
170
+ ...nodeBuiltins,
171
+ ...Object.keys(pkg.dependencies),
172
+ ...Object.keys(pkg.devDependencies)
173
+ ],
174
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175
+ preserveSymlinks: false,
176
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
177
+ };
178
+
179
+ const config = [baseConfig];
180
+
181
+ if (!options.disableBrowserBundle) {
182
+ config.push(makeBrowserTestConfig());
183
+ }
184
+
185
+ return config;
186
+ }
187
+
188
+ export default makeConfig(require("./package.json"));
package/src/index.ts ADDED
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ /// <reference lib="esnext.asynciterable" />
10
+ export * from "./models";
11
+ export { Portal } from "./portal";
12
+ export * from "./operationsInterfaces";