@azure/arm-selfhelp 2.0.0-alpha.20260302.1 → 2.0.0-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 (109) hide show
  1. package/dist/commonjs/helpRP.js +129 -116
  2. package/dist/commonjs/helpRP.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/lroImpl.js +37 -19
  6. package/dist/commonjs/lroImpl.js.map +7 -1
  7. package/dist/commonjs/models/index.js +172 -237
  8. package/dist/commonjs/models/index.js.map +7 -1
  9. package/dist/commonjs/models/mappers.js +1980 -1915
  10. package/dist/commonjs/models/mappers.js.map +7 -1
  11. package/dist/commonjs/models/parameters.js +245 -212
  12. package/dist/commonjs/models/parameters.js.map +7 -1
  13. package/dist/commonjs/operations/checkNameAvailability.js +77 -53
  14. package/dist/commonjs/operations/checkNameAvailability.js.map +7 -1
  15. package/dist/commonjs/operations/diagnostics.js +178 -150
  16. package/dist/commonjs/operations/diagnostics.js.map +7 -1
  17. package/dist/commonjs/operations/discoverySolution.js +152 -129
  18. package/dist/commonjs/operations/discoverySolution.js.map +7 -1
  19. package/dist/commonjs/operations/discoverySolutionNLP.js +101 -74
  20. package/dist/commonjs/operations/discoverySolutionNLP.js.map +7 -1
  21. package/dist/commonjs/operations/index.js +25 -20
  22. package/dist/commonjs/operations/index.js.map +7 -1
  23. package/dist/commonjs/operations/operations.js +132 -109
  24. package/dist/commonjs/operations/operations.js.map +7 -1
  25. package/dist/commonjs/operations/simplifiedSolutions.js +185 -157
  26. package/dist/commonjs/operations/simplifiedSolutions.js.map +7 -1
  27. package/dist/commonjs/operations/solution.js +309 -282
  28. package/dist/commonjs/operations/solution.js.map +7 -1
  29. package/dist/commonjs/operations/solutionSelfHelp.js +76 -52
  30. package/dist/commonjs/operations/solutionSelfHelp.js.map +7 -1
  31. package/dist/commonjs/operations/troubleshooters.js +226 -190
  32. package/dist/commonjs/operations/troubleshooters.js.map +7 -1
  33. package/dist/commonjs/operationsInterfaces/checkNameAvailability.js +15 -10
  34. package/dist/commonjs/operationsInterfaces/checkNameAvailability.js.map +7 -1
  35. package/dist/commonjs/operationsInterfaces/diagnostics.js +15 -10
  36. package/dist/commonjs/operationsInterfaces/diagnostics.js.map +7 -1
  37. package/dist/commonjs/operationsInterfaces/discoverySolution.js +15 -10
  38. package/dist/commonjs/operationsInterfaces/discoverySolution.js.map +7 -1
  39. package/dist/commonjs/operationsInterfaces/discoverySolutionNLP.js +15 -10
  40. package/dist/commonjs/operationsInterfaces/discoverySolutionNLP.js.map +7 -1
  41. package/dist/commonjs/operationsInterfaces/index.js +25 -20
  42. package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
  43. package/dist/commonjs/operationsInterfaces/operations.js +15 -10
  44. package/dist/commonjs/operationsInterfaces/operations.js.map +7 -1
  45. package/dist/commonjs/operationsInterfaces/simplifiedSolutions.js +15 -10
  46. package/dist/commonjs/operationsInterfaces/simplifiedSolutions.js.map +7 -1
  47. package/dist/commonjs/operationsInterfaces/solution.js +15 -10
  48. package/dist/commonjs/operationsInterfaces/solution.js.map +7 -1
  49. package/dist/commonjs/operationsInterfaces/solutionSelfHelp.js +15 -10
  50. package/dist/commonjs/operationsInterfaces/solutionSelfHelp.js.map +7 -1
  51. package/dist/commonjs/operationsInterfaces/troubleshooters.js +15 -10
  52. package/dist/commonjs/operationsInterfaces/troubleshooters.js.map +7 -1
  53. package/dist/commonjs/pagingHelper.js +34 -30
  54. package/dist/commonjs/pagingHelper.js.map +7 -1
  55. package/dist/esm/helpRP.js +109 -110
  56. package/dist/esm/helpRP.js.map +7 -1
  57. package/dist/esm/index.js +6 -11
  58. package/dist/esm/index.js.map +7 -1
  59. package/dist/esm/lroImpl.js +19 -17
  60. package/dist/esm/lroImpl.js.map +7 -1
  61. package/dist/esm/models/index.js +153 -234
  62. package/dist/esm/models/index.js.map +7 -1
  63. package/dist/esm/models/mappers.js +1961 -1911
  64. package/dist/esm/models/mappers.js.map +7 -1
  65. package/dist/esm/models/parameters.js +236 -209
  66. package/dist/esm/models/parameters.js.map +7 -1
  67. package/dist/esm/operations/checkNameAvailability.js +46 -46
  68. package/dist/esm/operations/checkNameAvailability.js.map +7 -1
  69. package/dist/esm/operations/diagnostics.js +148 -142
  70. package/dist/esm/operations/diagnostics.js.map +7 -1
  71. package/dist/esm/operations/discoverySolution.js +120 -121
  72. package/dist/esm/operations/discoverySolution.js.map +7 -1
  73. package/dist/esm/operations/discoverySolutionNLP.js +70 -67
  74. package/dist/esm/operations/discoverySolutionNLP.js.map +7 -1
  75. package/dist/esm/operations/index.js +0 -8
  76. package/dist/esm/operations/index.js.map +7 -1
  77. package/dist/esm/operations/operations.js +100 -101
  78. package/dist/esm/operations/operations.js.map +7 -1
  79. package/dist/esm/operations/simplifiedSolutions.js +155 -149
  80. package/dist/esm/operations/simplifiedSolutions.js.map +7 -1
  81. package/dist/esm/operations/solution.js +279 -274
  82. package/dist/esm/operations/solution.js.map +7 -1
  83. package/dist/esm/operations/solutionSelfHelp.js +45 -45
  84. package/dist/esm/operations/solutionSelfHelp.js.map +7 -1
  85. package/dist/esm/operations/troubleshooters.js +195 -183
  86. package/dist/esm/operations/troubleshooters.js.map +7 -1
  87. package/dist/esm/operationsInterfaces/checkNameAvailability.js +0 -9
  88. package/dist/esm/operationsInterfaces/checkNameAvailability.js.map +7 -1
  89. package/dist/esm/operationsInterfaces/diagnostics.js +0 -9
  90. package/dist/esm/operationsInterfaces/diagnostics.js.map +7 -1
  91. package/dist/esm/operationsInterfaces/discoverySolution.js +0 -9
  92. package/dist/esm/operationsInterfaces/discoverySolution.js.map +7 -1
  93. package/dist/esm/operationsInterfaces/discoverySolutionNLP.js +0 -9
  94. package/dist/esm/operationsInterfaces/discoverySolutionNLP.js.map +7 -1
  95. package/dist/esm/operationsInterfaces/index.js +0 -8
  96. package/dist/esm/operationsInterfaces/index.js.map +7 -1
  97. package/dist/esm/operationsInterfaces/operations.js +0 -9
  98. package/dist/esm/operationsInterfaces/operations.js.map +7 -1
  99. package/dist/esm/operationsInterfaces/simplifiedSolutions.js +0 -9
  100. package/dist/esm/operationsInterfaces/simplifiedSolutions.js.map +7 -1
  101. package/dist/esm/operationsInterfaces/solution.js +0 -9
  102. package/dist/esm/operationsInterfaces/solution.js.map +7 -1
  103. package/dist/esm/operationsInterfaces/solutionSelfHelp.js +0 -9
  104. package/dist/esm/operationsInterfaces/solutionSelfHelp.js.map +7 -1
  105. package/dist/esm/operationsInterfaces/troubleshooters.js +0 -9
  106. package/dist/esm/operationsInterfaces/troubleshooters.js.map +7 -1
  107. package/dist/esm/pagingHelper.js +17 -28
  108. package/dist/esm/pagingHelper.js.map +7 -1
  109. package/package.json +3 -20
@@ -1,120 +1,133 @@
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.HelpRP = 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 index_js_1 = require("./operations/index.js");
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 helpRP_exports = {};
29
+ __export(helpRP_exports, {
30
+ HelpRP: () => HelpRP
31
+ });
32
+ module.exports = __toCommonJS(helpRP_exports);
33
+ var coreClient = __toESM(require("@azure/core-client"));
34
+ var coreRestPipeline = __toESM(require("@azure/core-rest-pipeline"));
35
+ var import_operations = require("./operations/index.js");
15
36
  class HelpRP extends coreClient.ServiceClient {
16
- $host;
17
- apiVersion;
18
- /**
19
- * Initializes a new instance of the HelpRP class.
20
- * @param credentials Subscription credentials which uniquely identify client subscription.
21
- * @param options The parameter options
22
- */
23
- constructor(credentials, options) {
24
- if (credentials === undefined) {
25
- throw new Error("'credentials' cannot be null");
26
- }
27
- // Initializing default values for options
28
- if (!options) {
29
- options = {};
30
- }
31
- const defaults = {
32
- requestContentType: "application/json; charset=utf-8",
33
- credential: credentials,
34
- };
35
- const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.7`;
36
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
37
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
38
- : `${packageDetails}`;
39
- const optionsWithDefaults = {
40
- ...defaults,
41
- ...options,
42
- userAgentOptions: {
43
- userAgentPrefix,
44
- },
45
- endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
46
- };
47
- super(optionsWithDefaults);
48
- let bearerTokenAuthenticationPolicyFound = false;
49
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
50
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
51
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
52
- coreRestPipeline.bearerTokenAuthenticationPolicyName);
53
- }
54
- if (!options ||
55
- !options.pipeline ||
56
- options.pipeline.getOrderedPolicies().length == 0 ||
57
- !bearerTokenAuthenticationPolicyFound) {
58
- this.pipeline.removePolicy({
59
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
60
- });
61
- this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
62
- credential: credentials,
63
- scopes: optionsWithDefaults.credentialScopes ??
64
- `${optionsWithDefaults.endpoint}/.default`,
65
- challengeCallbacks: {
66
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
67
- },
68
- }));
69
- }
70
- // Assigning values to Constant parameters
71
- this.$host = options.$host || "https://management.azure.com";
72
- this.apiVersion = options.apiVersion || "2024-03-01-preview";
73
- this.operations = new index_js_1.OperationsImpl(this);
74
- this.checkNameAvailability = new index_js_1.CheckNameAvailabilityImpl(this);
75
- this.diagnostics = new index_js_1.DiagnosticsImpl(this);
76
- this.discoverySolution = new index_js_1.DiscoverySolutionImpl(this);
77
- this.solution = new index_js_1.SolutionImpl(this);
78
- this.simplifiedSolutions = new index_js_1.SimplifiedSolutionsImpl(this);
79
- this.troubleshooters = new index_js_1.TroubleshootersImpl(this);
80
- this.solutionSelfHelp = new index_js_1.SolutionSelfHelpImpl(this);
81
- this.discoverySolutionNLP = new index_js_1.DiscoverySolutionNLPImpl(this);
82
- this.addCustomApiVersionPolicy(options.apiVersion);
37
+ $host;
38
+ apiVersion;
39
+ /**
40
+ * Initializes a new instance of the HelpRP class.
41
+ * @param credentials Subscription credentials which uniquely identify client subscription.
42
+ * @param options The parameter options
43
+ */
44
+ constructor(credentials, options) {
45
+ if (credentials === void 0) {
46
+ throw new Error("'credentials' cannot be null");
83
47
  }
84
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
85
- addCustomApiVersionPolicy(apiVersion) {
86
- if (!apiVersion) {
87
- return;
88
- }
89
- const apiVersionPolicy = {
90
- name: "CustomApiVersionPolicy",
91
- async sendRequest(request, next) {
92
- const param = request.url.split("?");
93
- if (param.length > 1) {
94
- const newParams = param[1].split("&").map((item) => {
95
- if (item.indexOf("api-version") > -1) {
96
- return "api-version=" + apiVersion;
97
- }
98
- else {
99
- return item;
100
- }
101
- });
102
- request.url = param[0] + "?" + newParams.join("&");
103
- }
104
- return next(request);
105
- },
106
- };
107
- this.pipeline.addPolicy(apiVersionPolicy);
48
+ if (!options) {
49
+ options = {};
108
50
  }
109
- operations;
110
- checkNameAvailability;
111
- diagnostics;
112
- discoverySolution;
113
- solution;
114
- simplifiedSolutions;
115
- troubleshooters;
116
- solutionSelfHelp;
117
- discoverySolutionNLP;
51
+ const defaults = {
52
+ requestContentType: "application/json; charset=utf-8",
53
+ credential: credentials
54
+ };
55
+ const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.7`;
56
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
57
+ const optionsWithDefaults = {
58
+ ...defaults,
59
+ ...options,
60
+ userAgentOptions: {
61
+ userAgentPrefix
62
+ },
63
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
64
+ };
65
+ super(optionsWithDefaults);
66
+ let bearerTokenAuthenticationPolicyFound = false;
67
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
68
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
69
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
70
+ (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName
71
+ );
72
+ }
73
+ if (!options || !options.pipeline || options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound) {
74
+ this.pipeline.removePolicy({
75
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
76
+ });
77
+ this.pipeline.addPolicy(
78
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
79
+ credential: credentials,
80
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
81
+ challengeCallbacks: {
82
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
83
+ }
84
+ })
85
+ );
86
+ }
87
+ this.$host = options.$host || "https://management.azure.com";
88
+ this.apiVersion = options.apiVersion || "2024-03-01-preview";
89
+ this.operations = new import_operations.OperationsImpl(this);
90
+ this.checkNameAvailability = new import_operations.CheckNameAvailabilityImpl(this);
91
+ this.diagnostics = new import_operations.DiagnosticsImpl(this);
92
+ this.discoverySolution = new import_operations.DiscoverySolutionImpl(this);
93
+ this.solution = new import_operations.SolutionImpl(this);
94
+ this.simplifiedSolutions = new import_operations.SimplifiedSolutionsImpl(this);
95
+ this.troubleshooters = new import_operations.TroubleshootersImpl(this);
96
+ this.solutionSelfHelp = new import_operations.SolutionSelfHelpImpl(this);
97
+ this.discoverySolutionNLP = new import_operations.DiscoverySolutionNLPImpl(this);
98
+ this.addCustomApiVersionPolicy(options.apiVersion);
99
+ }
100
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
101
+ addCustomApiVersionPolicy(apiVersion) {
102
+ if (!apiVersion) {
103
+ return;
104
+ }
105
+ const apiVersionPolicy = {
106
+ name: "CustomApiVersionPolicy",
107
+ async sendRequest(request, next) {
108
+ const param = request.url.split("?");
109
+ if (param.length > 1) {
110
+ const newParams = param[1].split("&").map((item) => {
111
+ if (item.indexOf("api-version") > -1) {
112
+ return "api-version=" + apiVersion;
113
+ } else {
114
+ return item;
115
+ }
116
+ });
117
+ request.url = param[0] + "?" + newParams.join("&");
118
+ }
119
+ return next(request);
120
+ }
121
+ };
122
+ this.pipeline.addPolicy(apiVersionPolicy);
123
+ }
124
+ operations;
125
+ checkNameAvailability;
126
+ diagnostics;
127
+ discoverySolution;
128
+ solution;
129
+ simplifiedSolutions;
130
+ troubleshooters;
131
+ solutionSelfHelp;
132
+ discoverySolutionNLP;
118
133
  }
119
- exports.HelpRP = HelpRP;
120
- //# sourceMappingURL=helpRP.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"helpRP.js","sourceRoot":"","sources":["../../src/helpRP.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAU+B;AAc/B,MAAa,MAAO,SAAQ,UAAU,CAAC,aAAa;IAClD,KAAK,CAAS;IACd,UAAU,CAAS;IAEnB;;;;OAIG;IACH,YACE,WAAqC,EACrC,OAA8B;QAE9B,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAyB;YACrC,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,oCAAoC,CAAC;QAC5D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG,OAAO;YACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB;YACD,QAAQ,EACN,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,8B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;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,qBAAqB,CAAwB;IAC7C,WAAW,CAAc;IACzB,iBAAiB,CAAoB;IACrC,QAAQ,CAAW;IACnB,mBAAmB,CAAsB;IACzC,eAAe,CAAkB;IACjC,gBAAgB,CAAmB;IACnC,oBAAoB,CAAuB;CAC5C;AAhID,wBAgIC","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 {\n OperationsImpl,\n CheckNameAvailabilityImpl,\n DiagnosticsImpl,\n DiscoverySolutionImpl,\n SolutionImpl,\n SimplifiedSolutionsImpl,\n TroubleshootersImpl,\n SolutionSelfHelpImpl,\n DiscoverySolutionNLPImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n CheckNameAvailability,\n Diagnostics,\n DiscoverySolution,\n Solution,\n SimplifiedSolutions,\n Troubleshooters,\n SolutionSelfHelp,\n DiscoverySolutionNLP,\n} from \"./operationsInterfaces/index.js\";\nimport { HelpRPOptionalParams } from \"./models/index.js\";\n\nexport class HelpRP extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the HelpRP class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: HelpRPOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: HelpRPOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.7`;\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[] =\n 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\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-03-01-preview\";\n this.operations = new OperationsImpl(this);\n this.checkNameAvailability = new CheckNameAvailabilityImpl(this);\n this.diagnostics = new DiagnosticsImpl(this);\n this.discoverySolution = new DiscoverySolutionImpl(this);\n this.solution = new SolutionImpl(this);\n this.simplifiedSolutions = new SimplifiedSolutionsImpl(this);\n this.troubleshooters = new TroubleshootersImpl(this);\n this.solutionSelfHelp = new SolutionSelfHelpImpl(this);\n this.discoverySolutionNLP = new DiscoverySolutionNLPImpl(this);\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 operations: Operations;\n checkNameAvailability: CheckNameAvailability;\n diagnostics: Diagnostics;\n discoverySolution: DiscoverySolution;\n solution: Solution;\n simplifiedSolutions: SimplifiedSolutions;\n troubleshooters: Troubleshooters;\n solutionSelfHelp: SolutionSelfHelp;\n discoverySolutionNLP: DiscoverySolutionNLP;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/selfhelp/arm-selfhelp/src/helpRP.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 {\n OperationsImpl,\n CheckNameAvailabilityImpl,\n DiagnosticsImpl,\n DiscoverySolutionImpl,\n SolutionImpl,\n SimplifiedSolutionsImpl,\n TroubleshootersImpl,\n SolutionSelfHelpImpl,\n DiscoverySolutionNLPImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n CheckNameAvailability,\n Diagnostics,\n DiscoverySolution,\n Solution,\n SimplifiedSolutions,\n Troubleshooters,\n SolutionSelfHelp,\n DiscoverySolutionNLP,\n} from \"./operationsInterfaces/index.js\";\nimport { HelpRPOptionalParams } from \"./models/index.js\";\n\nexport class HelpRP extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the HelpRP class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: HelpRPOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: HelpRPOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.7`;\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[] =\n 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\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-03-01-preview\";\n this.operations = new OperationsImpl(this);\n this.checkNameAvailability = new CheckNameAvailabilityImpl(this);\n this.diagnostics = new DiagnosticsImpl(this);\n this.discoverySolution = new DiscoverySolutionImpl(this);\n this.solution = new SolutionImpl(this);\n this.simplifiedSolutions = new SimplifiedSolutionsImpl(this);\n this.troubleshooters = new TroubleshootersImpl(this);\n this.solutionSelfHelp = new SolutionSelfHelpImpl(this);\n this.discoverySolutionNLP = new DiscoverySolutionNLPImpl(this);\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 operations: Operations;\n checkNameAvailability: CheckNameAvailability;\n diagnostics: Diagnostics;\n discoverySolution: DiscoverySolution;\n solution: Solution;\n simplifiedSolutions: SimplifiedSolutions;\n troubleshooters: Troubleshooters;\n solutionSelfHelp: SolutionSelfHelp;\n discoverySolutionNLP: DiscoverySolutionNLP;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,iBAA4B;AAC5B,uBAAkC;AAOlC,wBAUO;AAcA,MAAM,eAAe,WAAW,cAAc;AAAA,EACnD;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,YACE,aACA,SACA;AACA,QAAI,gBAAgB,QAAW;AAC7B,YAAM,IAAI,MAAM,8BAA8B;AAAA,IAChD;AAGA,QAAI,CAAC,SAAS;AACZ,gBAAU,CAAC;AAAA,IACb;AACA,UAAM,WAAiC;AAAA,MACrC,oBAAoB;AAAA,MACpB,YAAY;AAAA,IACd;AAEA,UAAM,iBAAiB;AACvB,UAAM,kBACJ,QAAQ,oBAAoB,QAAQ,iBAAiB,kBACjD,GAAG,QAAQ,iBAAiB,eAAe,IAAI,cAAc,KAC7D,GAAG,cAAc;AAEvB,UAAM,sBAAsB;AAAA,MAC1B,GAAG;AAAA,MACH,GAAG;AAAA,MACH,kBAAkB;AAAA,QAChB;AAAA,MACF;AAAA,MACA,UACE,QAAQ,YAAY,QAAQ,WAAW;AAAA,IAC3C;AACA,UAAM,mBAAmB;AAEzB,QAAI,uCAAgD;AACpD,QAAI,SAAS,YAAY,QAAQ,SAAS,mBAAmB,EAAE,SAAS,GAAG;AACzE,YAAM,mBACJ,QAAQ,SAAS,mBAAmB;AACtC,6CAAuC,iBAAiB;AAAA,QACtD,CAAC,mBACC,eAAe,SACf,iBAAiB;AAAA,MACrB;AAAA,IACF;AACA,QACE,CAAC,WACD,C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,UACF,CAAC;AACD,kBAAQ,MAAM,MAAM,CAAC,IAAI,MAAM,UAAU,KAAK,GAAG;AAAA,QACnD;AACA,eAAO,KAAK,OAAO;AAAA,MACrB;AAAA,IACF;AACA,SAAK,SAAS,UAAU,gBAAgB;AAAA,EAC1C;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;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.HelpRP = 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 helpRP_js_1 = require("./helpRP.js");
17
- Object.defineProperty(exports, "HelpRP", { enumerable: true, get: function () { return helpRP_js_1.HelpRP; } });
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
+ HelpRP: () => import_helpRP.HelpRP,
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_helpRP = require("./helpRP.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,yCAAqC;AAA5B,mGAAA,MAAM,OAAA;AACf,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 { HelpRP } from \"./helpRP.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/selfhelp/arm-selfhelp/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 { HelpRP } from \"./helpRP.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AACrC,wBAAc,8BAVd;AAWA,oBAAuB;AACvB,wBAAc,4CAZd;",
6
+ "names": []
7
+ }
@@ -1,21 +1,39 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createLroSpec = createLroSpec;
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 lroImpl_exports = {};
19
+ __export(lroImpl_exports, {
20
+ createLroSpec: () => createLroSpec
21
+ });
22
+ module.exports = __toCommonJS(lroImpl_exports);
4
23
  function createLroSpec(inputs) {
5
- const { args, spec, sendOperationFn } = inputs;
6
- return {
7
- requestMethod: spec.httpMethod,
8
- requestPath: spec.path,
9
- sendInitialRequest: () => sendOperationFn(args, spec),
10
- sendPollRequest: (path, options) => {
11
- const { requestBody, ...restSpec } = spec;
12
- return sendOperationFn(args, {
13
- ...restSpec,
14
- httpMethod: "GET",
15
- path,
16
- abortSignal: options?.abortSignal,
17
- });
18
- },
19
- };
24
+ const { args, spec, sendOperationFn } = inputs;
25
+ return {
26
+ requestMethod: spec.httpMethod,
27
+ requestPath: spec.path,
28
+ sendInitialRequest: () => sendOperationFn(args, spec),
29
+ sendPollRequest: (path, options) => {
30
+ const { requestBody, ...restSpec } = spec;
31
+ return sendOperationFn(args, {
32
+ ...restSpec,
33
+ httpMethod: "GET",
34
+ path,
35
+ abortSignal: options?.abortSignal
36
+ });
37
+ }
38
+ };
20
39
  }
21
- //# sourceMappingURL=lroImpl.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/selfhelp/arm-selfhelp/src/lroImpl.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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,SAAS,cAAiB,QAQL;AAC1B,QAAM,EAAE,MAAM,MAAM,gBAAgB,IAAI;AACxC,SAAO;AAAA,IACL,eAAe,KAAK;AAAA,IACpB,aAAa,KAAK;AAAA,IAClB,oBAAoB,MAAM,gBAAgB,MAAM,IAAI;AAAA,IACpD,iBAAiB,CACf,MACA,YACG;AACH,YAAM,EAAE,aAAa,GAAG,SAAS,IAAI;AACrC,aAAO,gBAAgB,MAAM;AAAA,QAC3B,GAAG;AAAA,QACH,YAAY;AAAA,QACZ;AAAA,QACA,aAAa,SAAS;AAAA,MACxB,CAAC;AAAA,IACH;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }