@arrowsphere/api-client 3.101.0-rc.bdj.4 → 3.101.0-rc.bdj.5
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.
|
@@ -341,7 +341,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
341
341
|
getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
|
|
342
342
|
updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
|
|
343
343
|
bulkAction(bulkData: BulkBodyArgument): Promise<void>;
|
|
344
|
-
updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult
|
|
344
|
+
updateConfig(reference: string, config: ConfigFindResult): Promise<GetResult<ConfigFindResult>>;
|
|
345
345
|
getLicense(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseResult>>;
|
|
346
346
|
updateLicense(licenseReference: string, payload: UpdateLicenseData, parameters?: Parameters): Promise<void | PartialResponse>;
|
|
347
347
|
updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
|
|
@@ -309,8 +309,13 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
309
309
|
return await this.post(postData);
|
|
310
310
|
}
|
|
311
311
|
async updateConfig(reference, config) {
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
this.path = `/${reference}${this.CONFIGS_PATH}`;
|
|
313
|
+
const postData = {
|
|
314
|
+
[configFindResult_1.ConfigFindResultFields.COLUMN_NAME]: config.name,
|
|
315
|
+
[configFindResult_1.ConfigFindResultFields.COLUMN_SCOPE]: config.scope,
|
|
316
|
+
[configFindResult_1.ConfigFindResultFields.COLUMN_STATE]: config.state,
|
|
317
|
+
};
|
|
318
|
+
return new getResult_1.GetResult(configFindResult_1.ConfigFindResult, await this.post(postData));
|
|
314
319
|
}
|
|
315
320
|
async getLicense(licenseReference, parameters = {}) {
|
|
316
321
|
this.path = `/${licenseReference}`;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/ArrowSphere/nodejs-api-client.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.101.0-rc.bdj.
|
|
7
|
+
"version": "3.101.0-rc.bdj.5",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|