@azure/arm-features 3.1.2-alpha.20260302.1 → 3.1.2-alpha.20260303.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 (49) hide show
  1. package/dist/commonjs/featureClient.js +213 -194
  2. package/dist/commonjs/featureClient.js.map +7 -1
  3. package/dist/commonjs/index.js +28 -19
  4. package/dist/commonjs/index.js.map +7 -1
  5. package/dist/commonjs/models/index.js +39 -39
  6. package/dist/commonjs/models/index.js.map +7 -1
  7. package/dist/commonjs/models/mappers.js +410 -387
  8. package/dist/commonjs/models/mappers.js.map +7 -1
  9. package/dist/commonjs/models/parameters.js +124 -103
  10. package/dist/commonjs/models/parameters.js.map +7 -1
  11. package/dist/commonjs/operations/features.js +339 -290
  12. package/dist/commonjs/operations/features.js.map +7 -1
  13. package/dist/commonjs/operations/index.js +18 -13
  14. package/dist/commonjs/operations/index.js.map +7 -1
  15. package/dist/commonjs/operations/subscriptionFeatureRegistrations.js +345 -290
  16. package/dist/commonjs/operations/subscriptionFeatureRegistrations.js.map +7 -1
  17. package/dist/commonjs/operationsInterfaces/features.js +15 -10
  18. package/dist/commonjs/operationsInterfaces/features.js.map +7 -1
  19. package/dist/commonjs/operationsInterfaces/index.js +18 -13
  20. package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
  21. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.js +15 -10
  22. package/dist/commonjs/operationsInterfaces/subscriptionFeatureRegistrations.js.map +7 -1
  23. package/dist/commonjs/pagingHelper.js +34 -30
  24. package/dist/commonjs/pagingHelper.js.map +7 -1
  25. package/dist/esm/featureClient.js +183 -185
  26. package/dist/esm/featureClient.js.map +7 -1
  27. package/dist/esm/index.js +6 -11
  28. package/dist/esm/index.js.map +7 -1
  29. package/dist/esm/models/index.js +20 -36
  30. package/dist/esm/models/index.js.map +7 -1
  31. package/dist/esm/models/mappers.js +391 -384
  32. package/dist/esm/models/mappers.js.map +7 -1
  33. package/dist/esm/models/parameters.js +104 -99
  34. package/dist/esm/models/parameters.js.map +7 -1
  35. package/dist/esm/operations/features.js +307 -282
  36. package/dist/esm/operations/features.js.map +7 -1
  37. package/dist/esm/operations/index.js +0 -8
  38. package/dist/esm/operations/index.js.map +7 -1
  39. package/dist/esm/operations/subscriptionFeatureRegistrations.js +313 -282
  40. package/dist/esm/operations/subscriptionFeatureRegistrations.js.map +7 -1
  41. package/dist/esm/operationsInterfaces/features.js +0 -9
  42. package/dist/esm/operationsInterfaces/features.js.map +7 -1
  43. package/dist/esm/operationsInterfaces/index.js +0 -8
  44. package/dist/esm/operationsInterfaces/index.js.map +7 -1
  45. package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.js +0 -9
  46. package/dist/esm/operationsInterfaces/subscriptionFeatureRegistrations.js.map +7 -1
  47. package/dist/esm/pagingHelper.js +17 -28
  48. package/dist/esm/pagingHelper.js.map +7 -1
  49. package/package.json +3 -20
@@ -1,210 +1,229 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.FeatureClient = void 0;
11
- const tslib_1 = require("tslib");
12
- const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
- const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
- const pagingHelper_js_1 = require("./pagingHelper.js");
15
- const index_js_1 = require("./operations/index.js");
16
- const Parameters = tslib_1.__importStar(require("./models/parameters.js"));
17
- const Mappers = tslib_1.__importStar(require("./models/mappers.js"));
18
- /// <reference lib="esnext.asynciterable" />
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var featureClient_exports = {};
29
+ __export(featureClient_exports, {
30
+ FeatureClient: () => FeatureClient
31
+ });
32
+ module.exports = __toCommonJS(featureClient_exports);
33
+ var coreClient = __toESM(require("@azure/core-client"));
34
+ var coreRestPipeline = __toESM(require("@azure/core-rest-pipeline"));
35
+ var import_pagingHelper = require("./pagingHelper.js");
36
+ var import_operations = require("./operations/index.js");
37
+ var Parameters = __toESM(require("./models/parameters.js"));
38
+ var Mappers = __toESM(require("./models/mappers.js"));
19
39
  class FeatureClient extends coreClient.ServiceClient {
20
- $host;
21
- apiVersion;
22
- subscriptionId;
23
- /**
24
- * Initializes a new instance of the FeatureClient class.
25
- * @param credentials Subscription credentials which uniquely identify client subscription.
26
- * @param subscriptionId The Azure subscription ID.
27
- * @param options The parameter options
28
- */
29
- constructor(credentials, subscriptionId, options) {
30
- if (credentials === undefined) {
31
- throw new Error("'credentials' cannot be null");
32
- }
33
- if (subscriptionId === undefined) {
34
- throw new Error("'subscriptionId' cannot be null");
35
- }
36
- // Initializing default values for options
37
- if (!options) {
38
- options = {};
39
- }
40
- const defaults = {
41
- requestContentType: "application/json; charset=utf-8",
42
- credential: credentials
43
- };
44
- const packageDetails = `azsdk-js-arm-features/3.1.2`;
45
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
46
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
47
- : `${packageDetails}`;
48
- const optionsWithDefaults = {
49
- ...defaults,
50
- ...options,
51
- userAgentOptions: {
52
- userAgentPrefix
53
- },
54
- endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
55
- };
56
- super(optionsWithDefaults);
57
- let bearerTokenAuthenticationPolicyFound = false;
58
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
59
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
60
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
61
- coreRestPipeline.bearerTokenAuthenticationPolicyName);
62
- }
63
- if (!options ||
64
- !options.pipeline ||
65
- options.pipeline.getOrderedPolicies().length == 0 ||
66
- !bearerTokenAuthenticationPolicyFound) {
67
- this.pipeline.removePolicy({
68
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
69
- });
70
- this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
71
- credential: credentials,
72
- scopes: optionsWithDefaults.credentialScopes ??
73
- `${optionsWithDefaults.endpoint}/.default`,
74
- challengeCallbacks: {
75
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
76
- }
77
- }));
78
- }
79
- // Parameter assignments
80
- this.subscriptionId = subscriptionId;
81
- // Assigning values to Constant parameters
82
- this.$host = options.$host || "https://management.azure.com";
83
- this.apiVersion = options.apiVersion || "2021-07-01";
84
- this.features = new index_js_1.FeaturesImpl(this);
85
- this.subscriptionFeatureRegistrations = new index_js_1.SubscriptionFeatureRegistrationsImpl(this);
86
- this.addCustomApiVersionPolicy(options.apiVersion);
40
+ $host;
41
+ apiVersion;
42
+ subscriptionId;
43
+ /**
44
+ * Initializes a new instance of the FeatureClient class.
45
+ * @param credentials Subscription credentials which uniquely identify client subscription.
46
+ * @param subscriptionId The Azure subscription ID.
47
+ * @param options The parameter options
48
+ */
49
+ constructor(credentials, subscriptionId, options) {
50
+ if (credentials === void 0) {
51
+ throw new Error("'credentials' cannot be null");
87
52
  }
88
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
89
- addCustomApiVersionPolicy(apiVersion) {
90
- if (!apiVersion) {
91
- return;
92
- }
93
- const apiVersionPolicy = {
94
- name: "CustomApiVersionPolicy",
95
- async sendRequest(request, next) {
96
- const param = request.url.split("?");
97
- if (param.length > 1) {
98
- const newParams = param[1].split("&").map((item) => {
99
- if (item.indexOf("api-version") > -1) {
100
- return "api-version=" + apiVersion;
101
- }
102
- else {
103
- return item;
104
- }
105
- });
106
- request.url = param[0] + "?" + newParams.join("&");
107
- }
108
- return next(request);
109
- }
110
- };
111
- this.pipeline.addPolicy(apiVersionPolicy);
53
+ if (subscriptionId === void 0) {
54
+ throw new Error("'subscriptionId' cannot be null");
112
55
  }
113
- /**
114
- * Lists all of the available Microsoft.Features REST API operations.
115
- * @param options The options parameters.
116
- */
117
- listOperations(options) {
118
- const iter = this.listOperationsPagingAll(options);
119
- return {
120
- next() {
121
- return iter.next();
122
- },
123
- [Symbol.asyncIterator]() {
124
- return this;
125
- },
126
- byPage: (settings) => {
127
- if (settings?.maxPageSize) {
128
- throw new Error("maxPageSize is not supported by this operation.");
129
- }
130
- return this.listOperationsPagingPage(options, settings);
131
- }
132
- };
56
+ if (!options) {
57
+ options = {};
133
58
  }
134
- async *listOperationsPagingPage(options, settings) {
135
- let result;
136
- let continuationToken = settings?.continuationToken;
137
- if (!continuationToken) {
138
- result = await this._listOperations(options);
139
- let page = result.value || [];
140
- continuationToken = result.nextLink;
141
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
142
- yield page;
143
- }
144
- while (continuationToken) {
145
- result = await this._listOperationsNext(continuationToken, options);
146
- continuationToken = result.nextLink;
147
- let page = result.value || [];
148
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
149
- yield page;
150
- }
59
+ const defaults = {
60
+ requestContentType: "application/json; charset=utf-8",
61
+ credential: credentials
62
+ };
63
+ const packageDetails = `azsdk-js-arm-features/3.1.2`;
64
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
65
+ const optionsWithDefaults = {
66
+ ...defaults,
67
+ ...options,
68
+ userAgentOptions: {
69
+ userAgentPrefix
70
+ },
71
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
72
+ };
73
+ super(optionsWithDefaults);
74
+ let bearerTokenAuthenticationPolicyFound = false;
75
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
76
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
77
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
78
+ (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName
79
+ );
80
+ }
81
+ if (!options || !options.pipeline || options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound) {
82
+ this.pipeline.removePolicy({
83
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
84
+ });
85
+ this.pipeline.addPolicy(
86
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
87
+ credential: credentials,
88
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
89
+ challengeCallbacks: {
90
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
91
+ }
92
+ })
93
+ );
151
94
  }
152
- async *listOperationsPagingAll(options) {
153
- for await (const page of this.listOperationsPagingPage(options)) {
154
- yield* page;
95
+ this.subscriptionId = subscriptionId;
96
+ this.$host = options.$host || "https://management.azure.com";
97
+ this.apiVersion = options.apiVersion || "2021-07-01";
98
+ this.features = new import_operations.FeaturesImpl(this);
99
+ this.subscriptionFeatureRegistrations = new import_operations.SubscriptionFeatureRegistrationsImpl(
100
+ this
101
+ );
102
+ this.addCustomApiVersionPolicy(options.apiVersion);
103
+ }
104
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
105
+ addCustomApiVersionPolicy(apiVersion) {
106
+ if (!apiVersion) {
107
+ return;
108
+ }
109
+ const apiVersionPolicy = {
110
+ name: "CustomApiVersionPolicy",
111
+ async sendRequest(request, next) {
112
+ const param = request.url.split("?");
113
+ if (param.length > 1) {
114
+ const newParams = param[1].split("&").map((item) => {
115
+ if (item.indexOf("api-version") > -1) {
116
+ return "api-version=" + apiVersion;
117
+ } else {
118
+ return item;
119
+ }
120
+ });
121
+ request.url = param[0] + "?" + newParams.join("&");
155
122
  }
123
+ return next(request);
124
+ }
125
+ };
126
+ this.pipeline.addPolicy(apiVersionPolicy);
127
+ }
128
+ /**
129
+ * Lists all of the available Microsoft.Features REST API operations.
130
+ * @param options The options parameters.
131
+ */
132
+ listOperations(options) {
133
+ const iter = this.listOperationsPagingAll(options);
134
+ return {
135
+ next() {
136
+ return iter.next();
137
+ },
138
+ [Symbol.asyncIterator]() {
139
+ return this;
140
+ },
141
+ byPage: (settings) => {
142
+ if (settings?.maxPageSize) {
143
+ throw new Error("maxPageSize is not supported by this operation.");
144
+ }
145
+ return this.listOperationsPagingPage(options, settings);
146
+ }
147
+ };
148
+ }
149
+ async *listOperationsPagingPage(options, settings) {
150
+ let result;
151
+ let continuationToken = settings?.continuationToken;
152
+ if (!continuationToken) {
153
+ result = await this._listOperations(options);
154
+ let page = result.value || [];
155
+ continuationToken = result.nextLink;
156
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
157
+ yield page;
156
158
  }
157
- /**
158
- * Lists all of the available Microsoft.Features REST API operations.
159
- * @param options The options parameters.
160
- */
161
- _listOperations(options) {
162
- return this.sendOperationRequest({ options }, listOperationsOperationSpec);
159
+ while (continuationToken) {
160
+ result = await this._listOperationsNext(continuationToken, options);
161
+ continuationToken = result.nextLink;
162
+ let page = result.value || [];
163
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
164
+ yield page;
163
165
  }
164
- /**
165
- * ListOperationsNext
166
- * @param nextLink The nextLink from the previous successful call to the ListOperations method.
167
- * @param options The options parameters.
168
- */
169
- _listOperationsNext(nextLink, options) {
170
- return this.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
166
+ }
167
+ async *listOperationsPagingAll(options) {
168
+ for await (const page of this.listOperationsPagingPage(options)) {
169
+ yield* page;
171
170
  }
172
- features;
173
- subscriptionFeatureRegistrations;
171
+ }
172
+ /**
173
+ * Lists all of the available Microsoft.Features REST API operations.
174
+ * @param options The options parameters.
175
+ */
176
+ _listOperations(options) {
177
+ return this.sendOperationRequest({ options }, listOperationsOperationSpec);
178
+ }
179
+ /**
180
+ * ListOperationsNext
181
+ * @param nextLink The nextLink from the previous successful call to the ListOperations method.
182
+ * @param options The options parameters.
183
+ */
184
+ _listOperationsNext(nextLink, options) {
185
+ return this.sendOperationRequest(
186
+ { nextLink, options },
187
+ listOperationsNextOperationSpec
188
+ );
189
+ }
190
+ features;
191
+ subscriptionFeatureRegistrations;
174
192
  }
175
- exports.FeatureClient = FeatureClient;
176
- // Operation Specifications
177
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
193
+ const serializer = coreClient.createSerializer(
194
+ Mappers,
195
+ /* isXml */
196
+ false
197
+ );
178
198
  const listOperationsOperationSpec = {
179
- path: "/providers/Microsoft.Features/operations",
180
- httpMethod: "GET",
181
- responses: {
182
- 200: {
183
- bodyMapper: Mappers.OperationListResult
184
- },
185
- default: {
186
- bodyMapper: Mappers.ErrorResponse
187
- }
199
+ path: "/providers/Microsoft.Features/operations",
200
+ httpMethod: "GET",
201
+ responses: {
202
+ 200: {
203
+ bodyMapper: Mappers.OperationListResult
188
204
  },
189
- queryParameters: [Parameters.apiVersion],
190
- urlParameters: [Parameters.$host],
191
- headerParameters: [Parameters.accept],
192
- serializer
205
+ default: {
206
+ bodyMapper: Mappers.ErrorResponse
207
+ }
208
+ },
209
+ queryParameters: [Parameters.apiVersion],
210
+ urlParameters: [Parameters.$host],
211
+ headerParameters: [Parameters.accept],
212
+ serializer
193
213
  };
194
214
  const listOperationsNextOperationSpec = {
195
- path: "{nextLink}",
196
- httpMethod: "GET",
197
- responses: {
198
- 200: {
199
- bodyMapper: Mappers.OperationListResult
200
- },
201
- default: {
202
- bodyMapper: Mappers.ErrorResponse
203
- }
215
+ path: "{nextLink}",
216
+ httpMethod: "GET",
217
+ responses: {
218
+ 200: {
219
+ bodyMapper: Mappers.OperationListResult
204
220
  },
205
- queryParameters: [Parameters.apiVersion],
206
- urlParameters: [Parameters.$host, Parameters.nextLink],
207
- headerParameters: [Parameters.accept],
208
- serializer
221
+ default: {
222
+ bodyMapper: Mappers.ErrorResponse
223
+ }
224
+ },
225
+ queryParameters: [Parameters.apiVersion],
226
+ urlParameters: [Parameters.$host, Parameters.nextLink],
227
+ headerParameters: [Parameters.accept],
228
+ serializer
209
229
  };
210
- //# sourceMappingURL=featureClient.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"featureClient.js","sourceRoot":"","sources":["../../src/featureClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAQ9D,uDAAyD;AACzD,oDAG+B;AAK/B,2EAAqD;AACrD,qEAA+C;AAU/C,4CAA4C;AAC5C,MAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAqC;QAErC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAA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D,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,0CAA0C;IAChD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"./pagingHelper.js\";\nimport {\n FeaturesImpl,\n SubscriptionFeatureRegistrationsImpl\n} from \"./operations/index.js\";\nimport {\n Features,\n SubscriptionFeatureRegistrations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n FeatureClientOptionalParams,\n Operation,\n ListOperationsNextOptionalParams,\n ListOperationsOptionalParams,\n ListOperationsResponse,\n ListOperationsNextResponse\n} from \"./models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport class FeatureClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the FeatureClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FeatureClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FeatureClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-features/3.1.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-07-01\";\n this.features = new FeaturesImpl(this);\n this.subscriptionFeatureRegistrations = new SubscriptionFeatureRegistrationsImpl(\n this\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Lists all of the available Microsoft.Features REST API operations.\n * @param options The options parameters.\n */\n public listOperations(\n options?: ListOperationsOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listOperationsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listOperationsPagingPage(options, settings);\n }\n };\n }\n\n private async *listOperationsPagingPage(\n options?: ListOperationsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: ListOperationsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listOperations(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listOperationsNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listOperationsPagingAll(\n options?: ListOperationsOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listOperationsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.Features REST API operations.\n * @param options The options parameters.\n */\n private _listOperations(\n options?: ListOperationsOptionalParams\n ): Promise<ListOperationsResponse> {\n return this.sendOperationRequest({ options }, listOperationsOperationSpec);\n }\n\n /**\n * ListOperationsNext\n * @param nextLink The nextLink from the previous successful call to the ListOperations method.\n * @param options The options parameters.\n */\n private _listOperationsNext(\n nextLink: string,\n options?: ListOperationsNextOptionalParams\n ): Promise<ListOperationsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n listOperationsNextOperationSpec\n );\n }\n\n features: Features;\n subscriptionFeatureRegistrations: SubscriptionFeatureRegistrations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Features/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/features/arm-features/src/featureClient.ts"],
4
+ "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"./pagingHelper.js\";\nimport {\n FeaturesImpl,\n SubscriptionFeatureRegistrationsImpl\n} from \"./operations/index.js\";\nimport {\n Features,\n SubscriptionFeatureRegistrations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n FeatureClientOptionalParams,\n Operation,\n ListOperationsNextOptionalParams,\n ListOperationsOptionalParams,\n ListOperationsResponse,\n ListOperationsNextResponse\n} from \"./models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport class FeatureClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the FeatureClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: FeatureClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: FeatureClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-features/3.1.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-07-01\";\n this.features = new FeaturesImpl(this);\n this.subscriptionFeatureRegistrations = new SubscriptionFeatureRegistrationsImpl(\n this\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Lists all of the available Microsoft.Features REST API operations.\n * @param options The options parameters.\n */\n public listOperations(\n options?: ListOperationsOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listOperationsPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listOperationsPagingPage(options, settings);\n }\n };\n }\n\n private async *listOperationsPagingPage(\n options?: ListOperationsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: ListOperationsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listOperations(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listOperationsNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listOperationsPagingAll(\n options?: ListOperationsOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listOperationsPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Microsoft.Features REST API operations.\n * @param options The options parameters.\n */\n private _listOperations(\n options?: ListOperationsOptionalParams\n ): Promise<ListOperationsResponse> {\n return this.sendOperationRequest({ options }, listOperationsOperationSpec);\n }\n\n /**\n * ListOperationsNext\n * @param nextLink The nextLink from the previous successful call to the ListOperations method.\n * @param options The options parameters.\n */\n private _listOperationsNext(\n nextLink: string,\n options?: ListOperationsNextOptionalParams\n ): Promise<ListOperationsNextResponse> {\n return this.sendOperationRequest(\n { nextLink, options },\n listOperationsNextOperationSpec\n );\n }\n\n features: Features;\n subscriptionFeatureRegistrations: SubscriptionFeatureRegistrations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Features/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,iBAA4B;AAC5B,uBAAkC;AAQlC,0BAAqC;AACrC,wBAGO;AAKP,iBAA4B;AAC5B,cAAyB;AAWlB,MAAM,sBAAsB,WAAW,cAAc;AAAA,EAC1D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M;AAAA,EACN,YAAY;AAAA,EACZ,WAAW;AAAA,IACT,KAAK;AAAA,MACH,YAAY,QAAQ;AAAA,IACtB;AAAA,IACA,SAAS;AAAA,MACP,YAAY,QAAQ;AAAA,IACtB;AAAA,EACF;AAAA,EACA,iBAAiB,CAAC,WAAW,UAAU;AAAA,EACvC,eAAe,CAAC,WAAW,OAAO,WAAW,QAAQ;AAAA,EACrD,kBAAkB,CAAC,WAAW,MAAM;AAAA,EACpC;AACF;",
6
+ "names": []
7
+ }
@@ -1,19 +1,28 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.FeatureClient = exports.getContinuationToken = void 0;
11
- const tslib_1 = require("tslib");
12
- /// <reference lib="esnext.asynciterable" />
13
- var pagingHelper_js_1 = require("./pagingHelper.js");
14
- Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_js_1.getContinuationToken; } });
15
- tslib_1.__exportStar(require("./models/index.js"), exports);
16
- var featureClient_js_1 = require("./featureClient.js");
17
- Object.defineProperty(exports, "FeatureClient", { enumerable: true, get: function () { return featureClient_js_1.FeatureClient; } });
18
- tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
19
- //# sourceMappingURL=index.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var src_exports = {};
20
+ __export(src_exports, {
21
+ FeatureClient: () => import_featureClient.FeatureClient,
22
+ getContinuationToken: () => import_pagingHelper.getContinuationToken
23
+ });
24
+ module.exports = __toCommonJS(src_exports);
25
+ var import_pagingHelper = require("./pagingHelper.js");
26
+ __reExport(src_exports, require("./models/index.js"), module.exports);
27
+ var import_featureClient = require("./featureClient.js");
28
+ __reExport(src_exports, require("./operationsInterfaces/index.js"), module.exports);
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4CAA4C;AAC5C,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,4DAAkC;AAClC,uDAAmD;AAA1C,iHAAA,aAAa,OAAA;AACtB,0EAAgD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { FeatureClient } from \"./featureClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/features/arm-features/src/index.ts"],
4
+ "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { FeatureClient } from \"./featureClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AACrC,wBAAc,8BAVd;AAWA,2BAA8B;AAC9B,wBAAc,4CAZd;",
6
+ "names": []
7
+ }
@@ -1,39 +1,39 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.KnownSubscriptionFeatureRegistrationApprovalType = exports.KnownSubscriptionFeatureRegistrationState = void 0;
11
- /** Known values of {@link SubscriptionFeatureRegistrationState} that the service accepts. */
12
- var KnownSubscriptionFeatureRegistrationState;
13
- (function (KnownSubscriptionFeatureRegistrationState) {
14
- /** NotSpecified */
15
- KnownSubscriptionFeatureRegistrationState["NotSpecified"] = "NotSpecified";
16
- /** NotRegistered */
17
- KnownSubscriptionFeatureRegistrationState["NotRegistered"] = "NotRegistered";
18
- /** Pending */
19
- KnownSubscriptionFeatureRegistrationState["Pending"] = "Pending";
20
- /** Registering */
21
- KnownSubscriptionFeatureRegistrationState["Registering"] = "Registering";
22
- /** Registered */
23
- KnownSubscriptionFeatureRegistrationState["Registered"] = "Registered";
24
- /** Unregistering */
25
- KnownSubscriptionFeatureRegistrationState["Unregistering"] = "Unregistering";
26
- /** Unregistered */
27
- KnownSubscriptionFeatureRegistrationState["Unregistered"] = "Unregistered";
28
- })(KnownSubscriptionFeatureRegistrationState || (exports.KnownSubscriptionFeatureRegistrationState = KnownSubscriptionFeatureRegistrationState = {}));
29
- /** Known values of {@link SubscriptionFeatureRegistrationApprovalType} that the service accepts. */
30
- var KnownSubscriptionFeatureRegistrationApprovalType;
31
- (function (KnownSubscriptionFeatureRegistrationApprovalType) {
32
- /** NotSpecified */
33
- KnownSubscriptionFeatureRegistrationApprovalType["NotSpecified"] = "NotSpecified";
34
- /** ApprovalRequired */
35
- KnownSubscriptionFeatureRegistrationApprovalType["ApprovalRequired"] = "ApprovalRequired";
36
- /** AutoApproval */
37
- KnownSubscriptionFeatureRegistrationApprovalType["AutoApproval"] = "AutoApproval";
38
- })(KnownSubscriptionFeatureRegistrationApprovalType || (exports.KnownSubscriptionFeatureRegistrationApprovalType = KnownSubscriptionFeatureRegistrationApprovalType = {}));
39
- //# sourceMappingURL=index.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var models_exports = {};
19
+ __export(models_exports, {
20
+ KnownSubscriptionFeatureRegistrationApprovalType: () => KnownSubscriptionFeatureRegistrationApprovalType,
21
+ KnownSubscriptionFeatureRegistrationState: () => KnownSubscriptionFeatureRegistrationState
22
+ });
23
+ module.exports = __toCommonJS(models_exports);
24
+ var KnownSubscriptionFeatureRegistrationState = /* @__PURE__ */ ((KnownSubscriptionFeatureRegistrationState2) => {
25
+ KnownSubscriptionFeatureRegistrationState2["NotSpecified"] = "NotSpecified";
26
+ KnownSubscriptionFeatureRegistrationState2["NotRegistered"] = "NotRegistered";
27
+ KnownSubscriptionFeatureRegistrationState2["Pending"] = "Pending";
28
+ KnownSubscriptionFeatureRegistrationState2["Registering"] = "Registering";
29
+ KnownSubscriptionFeatureRegistrationState2["Registered"] = "Registered";
30
+ KnownSubscriptionFeatureRegistrationState2["Unregistering"] = "Unregistering";
31
+ KnownSubscriptionFeatureRegistrationState2["Unregistered"] = "Unregistered";
32
+ return KnownSubscriptionFeatureRegistrationState2;
33
+ })(KnownSubscriptionFeatureRegistrationState || {});
34
+ var KnownSubscriptionFeatureRegistrationApprovalType = /* @__PURE__ */ ((KnownSubscriptionFeatureRegistrationApprovalType2) => {
35
+ KnownSubscriptionFeatureRegistrationApprovalType2["NotSpecified"] = "NotSpecified";
36
+ KnownSubscriptionFeatureRegistrationApprovalType2["ApprovalRequired"] = "ApprovalRequired";
37
+ KnownSubscriptionFeatureRegistrationApprovalType2["AutoApproval"] = "AutoApproval";
38
+ return KnownSubscriptionFeatureRegistrationApprovalType2;
39
+ })(KnownSubscriptionFeatureRegistrationApprovalType || {});