@azure/arm-deviceupdate 1.2.2-alpha.20260227.1 → 1.2.2-alpha.20260303.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/deviceUpdate.js +163 -143
- package/dist/commonjs/deviceUpdate.js.map +7 -1
- package/dist/commonjs/index.js +28 -19
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/lroImpl.js +37 -19
- package/dist/commonjs/lroImpl.js.map +7 -1
- package/dist/commonjs/models/index.js +118 -149
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/mappers.js +1300 -1243
- package/dist/commonjs/models/mappers.js.map +7 -1
- package/dist/commonjs/models/parameters.js +196 -166
- package/dist/commonjs/models/parameters.js.map +7 -1
- package/dist/commonjs/operations/accounts.js +575 -512
- package/dist/commonjs/operations/accounts.js.map +7 -1
- package/dist/commonjs/operations/index.js +22 -17
- package/dist/commonjs/operations/index.js.map +7 -1
- package/dist/commonjs/operations/instances.js +461 -393
- package/dist/commonjs/operations/instances.js.map +7 -1
- package/dist/commonjs/operations/operations.js +132 -109
- package/dist/commonjs/operations/operations.js.map +7 -1
- package/dist/commonjs/operations/privateEndpointConnectionProxies.js +443 -387
- package/dist/commonjs/operations/privateEndpointConnectionProxies.js.map +7 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +359 -309
- package/dist/commonjs/operations/privateEndpointConnections.js.map +7 -1
- package/dist/commonjs/operations/privateLinkResources.js +154 -115
- package/dist/commonjs/operations/privateLinkResources.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/accounts.js +15 -10
- package/dist/commonjs/operationsInterfaces/accounts.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/index.js +22 -17
- package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/instances.js +15 -10
- package/dist/commonjs/operationsInterfaces/instances.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/operations.js +15 -10
- package/dist/commonjs/operationsInterfaces/operations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/privateEndpointConnectionProxies.js +15 -10
- package/dist/commonjs/operationsInterfaces/privateEndpointConnectionProxies.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +15 -10
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js +15 -10
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +7 -1
- package/dist/commonjs/pagingHelper.js +34 -30
- package/dist/commonjs/pagingHelper.js.map +7 -1
- package/dist/esm/deviceUpdate.js +138 -135
- package/dist/esm/deviceUpdate.js.map +7 -1
- package/dist/esm/index.js +6 -11
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/lroImpl.js +19 -17
- package/dist/esm/lroImpl.js.map +7 -1
- package/dist/esm/models/index.js +99 -146
- package/dist/esm/models/index.js.map +7 -1
- package/dist/esm/models/mappers.js +1281 -1240
- package/dist/esm/models/mappers.js.map +7 -1
- package/dist/esm/models/parameters.js +187 -164
- package/dist/esm/models/parameters.js.map +7 -1
- package/dist/esm/operations/accounts.js +544 -503
- package/dist/esm/operations/accounts.js.map +7 -1
- package/dist/esm/operations/index.js +0 -8
- package/dist/esm/operations/index.js.map +7 -1
- package/dist/esm/operations/instances.js +430 -384
- package/dist/esm/operations/instances.js.map +7 -1
- package/dist/esm/operations/operations.js +100 -101
- package/dist/esm/operations/operations.js.map +7 -1
- package/dist/esm/operations/privateEndpointConnectionProxies.js +413 -379
- package/dist/esm/operations/privateEndpointConnectionProxies.js.map +7 -1
- package/dist/esm/operations/privateEndpointConnections.js +329 -301
- package/dist/esm/operations/privateEndpointConnections.js.map +7 -1
- package/dist/esm/operations/privateLinkResources.js +123 -108
- package/dist/esm/operations/privateLinkResources.js.map +7 -1
- package/dist/esm/operationsInterfaces/accounts.js +0 -9
- package/dist/esm/operationsInterfaces/accounts.js.map +7 -1
- package/dist/esm/operationsInterfaces/index.js +0 -8
- package/dist/esm/operationsInterfaces/index.js.map +7 -1
- package/dist/esm/operationsInterfaces/instances.js +0 -9
- package/dist/esm/operationsInterfaces/instances.js.map +7 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -9
- package/dist/esm/operationsInterfaces/operations.js.map +7 -1
- package/dist/esm/operationsInterfaces/privateEndpointConnectionProxies.js +0 -9
- package/dist/esm/operationsInterfaces/privateEndpointConnectionProxies.js.map +7 -1
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js +0 -9
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +7 -1
- package/dist/esm/operationsInterfaces/privateLinkResources.js +0 -9
- package/dist/esm/operationsInterfaces/privateLinkResources.js.map +7 -1
- package/dist/esm/pagingHelper.js +17 -28
- package/dist/esm/pagingHelper.js.map +7 -1
- package/package.json +4 -21
|
@@ -1,151 +1,171 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 deviceUpdate_exports = {};
|
|
29
|
+
__export(deviceUpdate_exports, {
|
|
30
|
+
DeviceUpdate: () => DeviceUpdate
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(deviceUpdate_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");
|
|
36
|
+
var Parameters = __toESM(require("./models/parameters.js"));
|
|
37
|
+
var Mappers = __toESM(require("./models/mappers.js"));
|
|
17
38
|
class DeviceUpdate extends coreClient.ServiceClient {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
if (subscriptionId === undefined) {
|
|
32
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
33
|
-
}
|
|
34
|
-
// Initializing default values for options
|
|
35
|
-
if (!options) {
|
|
36
|
-
options = {};
|
|
37
|
-
}
|
|
38
|
-
const defaults = {
|
|
39
|
-
requestContentType: "application/json; charset=utf-8",
|
|
40
|
-
credential: credentials
|
|
41
|
-
};
|
|
42
|
-
const packageDetails = `azsdk-js-arm-deviceupdate/1.2.2`;
|
|
43
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
44
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
45
|
-
: `${packageDetails}`;
|
|
46
|
-
const optionsWithDefaults = {
|
|
47
|
-
...defaults,
|
|
48
|
-
...options,
|
|
49
|
-
userAgentOptions: {
|
|
50
|
-
userAgentPrefix
|
|
51
|
-
},
|
|
52
|
-
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
53
|
-
};
|
|
54
|
-
super(optionsWithDefaults);
|
|
55
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
56
|
-
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
57
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
58
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
59
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
60
|
-
}
|
|
61
|
-
if (!options ||
|
|
62
|
-
!options.pipeline ||
|
|
63
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
64
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
65
|
-
this.pipeline.removePolicy({
|
|
66
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
67
|
-
});
|
|
68
|
-
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
69
|
-
credential: credentials,
|
|
70
|
-
scopes: optionsWithDefaults.credentialScopes ??
|
|
71
|
-
`${optionsWithDefaults.endpoint}/.default`,
|
|
72
|
-
challengeCallbacks: {
|
|
73
|
-
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
74
|
-
}
|
|
75
|
-
}));
|
|
76
|
-
}
|
|
77
|
-
// Parameter assignments
|
|
78
|
-
this.subscriptionId = subscriptionId;
|
|
79
|
-
// Assigning values to Constant parameters
|
|
80
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
81
|
-
this.apiVersion = options.apiVersion || "2023-07-01";
|
|
82
|
-
this.accounts = new index_js_1.AccountsImpl(this);
|
|
83
|
-
this.instances = new index_js_1.InstancesImpl(this);
|
|
84
|
-
this.privateEndpointConnections = new index_js_1.PrivateEndpointConnectionsImpl(this);
|
|
85
|
-
this.privateLinkResources = new index_js_1.PrivateLinkResourcesImpl(this);
|
|
86
|
-
this.privateEndpointConnectionProxies = new index_js_1.PrivateEndpointConnectionProxiesImpl(this);
|
|
87
|
-
this.operations = new index_js_1.OperationsImpl(this);
|
|
88
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
39
|
+
$host;
|
|
40
|
+
apiVersion;
|
|
41
|
+
subscriptionId;
|
|
42
|
+
/**
|
|
43
|
+
* Initializes a new instance of the DeviceUpdate class.
|
|
44
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
45
|
+
* @param subscriptionId The Azure subscription ID.
|
|
46
|
+
* @param options The parameter options
|
|
47
|
+
*/
|
|
48
|
+
constructor(credentials, subscriptionId, options) {
|
|
49
|
+
if (credentials === void 0) {
|
|
50
|
+
throw new Error("'credentials' cannot be null");
|
|
89
51
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
52
|
+
if (subscriptionId === void 0) {
|
|
53
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
54
|
+
}
|
|
55
|
+
if (!options) {
|
|
56
|
+
options = {};
|
|
57
|
+
}
|
|
58
|
+
const defaults = {
|
|
59
|
+
requestContentType: "application/json; charset=utf-8",
|
|
60
|
+
credential: credentials
|
|
61
|
+
};
|
|
62
|
+
const packageDetails = `azsdk-js-arm-deviceupdate/1.2.2`;
|
|
63
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
|
|
64
|
+
const optionsWithDefaults = {
|
|
65
|
+
...defaults,
|
|
66
|
+
...options,
|
|
67
|
+
userAgentOptions: {
|
|
68
|
+
userAgentPrefix
|
|
69
|
+
},
|
|
70
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
71
|
+
};
|
|
72
|
+
super(optionsWithDefaults);
|
|
73
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
74
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
75
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
76
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
77
|
+
(pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
if (!options || !options.pipeline || options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound) {
|
|
81
|
+
this.pipeline.removePolicy({
|
|
82
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
83
|
+
});
|
|
84
|
+
this.pipeline.addPolicy(
|
|
85
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
86
|
+
credential: credentials,
|
|
87
|
+
scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
|
|
88
|
+
challengeCallbacks: {
|
|
89
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
);
|
|
114
93
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
94
|
+
this.subscriptionId = subscriptionId;
|
|
95
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
96
|
+
this.apiVersion = options.apiVersion || "2023-07-01";
|
|
97
|
+
this.accounts = new import_operations.AccountsImpl(this);
|
|
98
|
+
this.instances = new import_operations.InstancesImpl(this);
|
|
99
|
+
this.privateEndpointConnections = new import_operations.PrivateEndpointConnectionsImpl(this);
|
|
100
|
+
this.privateLinkResources = new import_operations.PrivateLinkResourcesImpl(this);
|
|
101
|
+
this.privateEndpointConnectionProxies = new import_operations.PrivateEndpointConnectionProxiesImpl(
|
|
102
|
+
this
|
|
103
|
+
);
|
|
104
|
+
this.operations = new import_operations.OperationsImpl(this);
|
|
105
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
106
|
+
}
|
|
107
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
108
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
109
|
+
if (!apiVersion) {
|
|
110
|
+
return;
|
|
122
111
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
112
|
+
const apiVersionPolicy = {
|
|
113
|
+
name: "CustomApiVersionPolicy",
|
|
114
|
+
async sendRequest(request, next) {
|
|
115
|
+
const param = request.url.split("?");
|
|
116
|
+
if (param.length > 1) {
|
|
117
|
+
const newParams = param[1].split("&").map((item) => {
|
|
118
|
+
if (item.indexOf("api-version") > -1) {
|
|
119
|
+
return "api-version=" + apiVersion;
|
|
120
|
+
} else {
|
|
121
|
+
return item;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
125
|
+
}
|
|
126
|
+
return next(request);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Checks ADU resource name availability.
|
|
133
|
+
* @param request Check Name Availability Request.
|
|
134
|
+
* @param options The options parameters.
|
|
135
|
+
*/
|
|
136
|
+
checkNameAvailability(request, options) {
|
|
137
|
+
return this.sendOperationRequest(
|
|
138
|
+
{ request, options },
|
|
139
|
+
checkNameAvailabilityOperationSpec
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
accounts;
|
|
143
|
+
instances;
|
|
144
|
+
privateEndpointConnections;
|
|
145
|
+
privateLinkResources;
|
|
146
|
+
privateEndpointConnectionProxies;
|
|
147
|
+
operations;
|
|
129
148
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
149
|
+
const serializer = coreClient.createSerializer(
|
|
150
|
+
Mappers,
|
|
151
|
+
/* isXml */
|
|
152
|
+
false
|
|
153
|
+
);
|
|
133
154
|
const checkNameAvailabilityOperationSpec = {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
default: {
|
|
141
|
-
bodyMapper: Mappers.ErrorResponse
|
|
142
|
-
}
|
|
155
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/checknameavailability",
|
|
156
|
+
httpMethod: "POST",
|
|
157
|
+
responses: {
|
|
158
|
+
200: {
|
|
159
|
+
bodyMapper: Mappers.CheckNameAvailabilityResponse
|
|
143
160
|
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
161
|
+
default: {
|
|
162
|
+
bodyMapper: Mappers.ErrorResponse
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
requestBody: Parameters.request,
|
|
166
|
+
queryParameters: [Parameters.apiVersion],
|
|
167
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
168
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
169
|
+
mediaType: "json",
|
|
170
|
+
serializer
|
|
150
171
|
};
|
|
151
|
-
//# sourceMappingURL=deviceUpdate.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"file":"deviceUpdate.js","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAO+B;AAS/B,2EAAqD;AACrD,qEAA+C;AAQ/C,MAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAoC;QAEpC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA+B;YAC3C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,iCAAiC,CAAC;QACzD,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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.\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 AccountsImpl,\n InstancesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionProxiesImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n Accounts,\n Instances,\n PrivateEndpointConnections,\n PrivateLinkResources,\n PrivateEndpointConnectionProxies,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n DeviceUpdateOptionalParams,\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityOperationResponse\n} from \"./models/index.js\";\n\nexport class DeviceUpdate extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DeviceUpdate 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?: DeviceUpdateOptionalParams\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: DeviceUpdateOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-deviceupdate/1.2.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 || \"2023-07-01\";\n this.accounts = new AccountsImpl(this);\n this.instances = new InstancesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnectionProxies = new PrivateEndpointConnectionProxiesImpl(\n this\n );\n this.operations = new OperationsImpl(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 /**\n * Checks ADU resource name availability.\n * @param request Check Name Availability Request.\n * @param options The options parameters.\n */\n checkNameAvailability(\n request: CheckNameAvailabilityRequest,\n options?: CheckNameAvailabilityOptionalParams\n ): Promise<CheckNameAvailabilityOperationResponse> {\n return this.sendOperationRequest(\n { request, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n accounts: Accounts;\n instances: Instances;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnectionProxies: PrivateEndpointConnectionProxies;\n operations: Operations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/checknameavailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/deviceupdate/arm-deviceupdate/src/deviceUpdate.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 AccountsImpl,\n InstancesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n PrivateEndpointConnectionProxiesImpl,\n OperationsImpl\n} from \"./operations/index.js\";\nimport {\n Accounts,\n Instances,\n PrivateEndpointConnections,\n PrivateLinkResources,\n PrivateEndpointConnectionProxies,\n Operations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n DeviceUpdateOptionalParams,\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityOperationResponse\n} from \"./models/index.js\";\n\nexport class DeviceUpdate extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DeviceUpdate 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?: DeviceUpdateOptionalParams\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: DeviceUpdateOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-deviceupdate/1.2.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 || \"2023-07-01\";\n this.accounts = new AccountsImpl(this);\n this.instances = new InstancesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.privateEndpointConnectionProxies = new PrivateEndpointConnectionProxiesImpl(\n this\n );\n this.operations = new OperationsImpl(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 /**\n * Checks ADU resource name availability.\n * @param request Check Name Availability Request.\n * @param options The options parameters.\n */\n checkNameAvailability(\n request: CheckNameAvailabilityRequest,\n options?: CheckNameAvailabilityOptionalParams\n ): Promise<CheckNameAvailabilityOperationResponse> {\n return this.sendOperationRequest(\n { request, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n accounts: Accounts;\n instances: Instances;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n privateEndpointConnectionProxies: PrivateEndpointConnectionProxies;\n operations: Operations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.DeviceUpdate/checknameavailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,iBAA4B;AAC5B,uBAAkC;AAOlC,wBAOO;AASP,iBAA4B;AAC5B,cAAyB;AAQlB,MAAM,qBAAqB,WAAW,cAAc;AAAA,EACzD;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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MACE;AAAA,EACF,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,aAAa,WAAW;AAAA,EACxB,iBAAiB,CAAC,WAAW,UAAU;AAAA,EACvC,eAAe,CAAC,WAAW,OAAO,WAAW,cAAc;AAAA,EAC3D,kBAAkB,CAAC,WAAW,aAAa,WAAW,MAAM;AAAA,EAC5D,WAAW;AAAA,EACX;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
DeviceUpdate: () => import_deviceUpdate.DeviceUpdate,
|
|
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_deviceUpdate = require("./deviceUpdate.js");
|
|
28
|
+
__reExport(src_exports, require("./operationsInterfaces/index.js"), module.exports);
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/deviceupdate/arm-deviceupdate/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 { DeviceUpdate } from \"./deviceUpdate.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAAqC;AACrC,wBAAc,8BAVd;AAWA,0BAA6B;AAC7B,wBAAc,4CAZd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/commonjs/lroImpl.js
CHANGED
|
@@ -1,21 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/deviceupdate/arm-deviceupdate/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
|
+
}
|