@arrowsphere/api-client 3.77.0-rc.bdj.2 → 3.77.0-rc.bdj.3
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.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum CredentialsResultFields {
|
|
3
|
+
COLUMN_USERNAME = "username",
|
|
4
|
+
COLUMN_PASSWORD_RESET_URL = "passwordResetUrl",
|
|
5
|
+
COLUMN_URL = "url"
|
|
6
|
+
}
|
|
7
|
+
export declare type CredentialsResultType = {
|
|
8
|
+
[CredentialsResultFields.COLUMN_USERNAME]?: string;
|
|
9
|
+
[CredentialsResultFields.COLUMN_PASSWORD_RESET_URL]?: string;
|
|
10
|
+
[CredentialsResultFields.COLUMN_URL]?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class CredentialsResult extends AbstractEntity<CredentialsResultType> {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(input: CredentialsResultType);
|
|
15
|
+
get username(): string | undefined;
|
|
16
|
+
get passwordResetUrl(): string | undefined;
|
|
17
|
+
get url(): string | undefined;
|
|
18
|
+
toJSON(): CredentialsResultType;
|
|
19
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _CredentialsResult_username, _CredentialsResult_passwordResetUrl, _CredentialsResult_url;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CredentialsResult = exports.CredentialsResultFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var CredentialsResultFields;
|
|
18
|
+
(function (CredentialsResultFields) {
|
|
19
|
+
CredentialsResultFields["COLUMN_USERNAME"] = "username";
|
|
20
|
+
CredentialsResultFields["COLUMN_PASSWORD_RESET_URL"] = "passwordResetUrl";
|
|
21
|
+
CredentialsResultFields["COLUMN_URL"] = "url";
|
|
22
|
+
})(CredentialsResultFields = exports.CredentialsResultFields || (exports.CredentialsResultFields = {}));
|
|
23
|
+
class CredentialsResult extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(input) {
|
|
25
|
+
super(input);
|
|
26
|
+
_CredentialsResult_username.set(this, void 0);
|
|
27
|
+
_CredentialsResult_passwordResetUrl.set(this, void 0);
|
|
28
|
+
_CredentialsResult_url.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _CredentialsResult_username, input[CredentialsResultFields.COLUMN_USERNAME], "f");
|
|
30
|
+
__classPrivateFieldSet(this, _CredentialsResult_passwordResetUrl, input[CredentialsResultFields.COLUMN_PASSWORD_RESET_URL], "f");
|
|
31
|
+
__classPrivateFieldSet(this, _CredentialsResult_url, input[CredentialsResultFields.COLUMN_URL], "f");
|
|
32
|
+
}
|
|
33
|
+
get username() {
|
|
34
|
+
return __classPrivateFieldGet(this, _CredentialsResult_username, "f");
|
|
35
|
+
}
|
|
36
|
+
get passwordResetUrl() {
|
|
37
|
+
return __classPrivateFieldGet(this, _CredentialsResult_passwordResetUrl, "f");
|
|
38
|
+
}
|
|
39
|
+
get url() {
|
|
40
|
+
return __classPrivateFieldGet(this, _CredentialsResult_url, "f");
|
|
41
|
+
}
|
|
42
|
+
toJSON() {
|
|
43
|
+
return {
|
|
44
|
+
[CredentialsResultFields.COLUMN_USERNAME]: this.username,
|
|
45
|
+
[CredentialsResultFields.COLUMN_PASSWORD_RESET_URL]: this
|
|
46
|
+
.passwordResetUrl,
|
|
47
|
+
[CredentialsResultFields.COLUMN_URL]: this.url,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.CredentialsResult = CredentialsResult;
|
|
52
|
+
_CredentialsResult_username = new WeakMap(), _CredentialsResult_passwordResetUrl = new WeakMap(), _CredentialsResult_url = new WeakMap();
|
|
53
|
+
//# sourceMappingURL=credentialsResult.js.map
|
|
@@ -18,6 +18,7 @@ import { GetLicenseResult } from './entities/getResult/getLicenseResult';
|
|
|
18
18
|
import { LicenceHistoryResult } from './entities/history/licenceHistoryResult';
|
|
19
19
|
import { UpgradeResult } from './entities/license/upgradeResult';
|
|
20
20
|
import { LicenseConversionSkuResult } from './entities/license/licenseConversionSkuResult';
|
|
21
|
+
import { CredentialsResult } from './entities/license/credentialsResult';
|
|
21
22
|
/**
|
|
22
23
|
* Parameters passable to the request for refining search.
|
|
23
24
|
*/
|
|
@@ -275,6 +276,10 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
275
276
|
* The path of license all existing skus
|
|
276
277
|
*/
|
|
277
278
|
private GET_LICENSE_EXISTING_CONVERSION_SKU;
|
|
279
|
+
/**
|
|
280
|
+
* The path to retrieve license credentials
|
|
281
|
+
*/
|
|
282
|
+
private GET_LICENSE_CREDENTIALS;
|
|
278
283
|
/**
|
|
279
284
|
* Returns the raw result from the find endpoint call
|
|
280
285
|
*
|
|
@@ -314,6 +319,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
314
319
|
saveOrderEavs(licenseReference: string, saveOrderEavsData: SaveOrderEavsInputType, parameters?: Parameters): Promise<void>;
|
|
315
320
|
getConversionSku(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenseConversionSkuResult>>;
|
|
316
321
|
getExistingConversionSku(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenseConversionSkuResult>>;
|
|
322
|
+
getCredentials(licenseReference: string, parameters?: Parameters): Promise<GetResult<CredentialsResult>>;
|
|
317
323
|
private createFilters;
|
|
318
324
|
private createKeywords;
|
|
319
325
|
}
|
|
@@ -13,6 +13,7 @@ const getLicenseResult_1 = require("./entities/getResult/getLicenseResult");
|
|
|
13
13
|
const licenceHistoryResult_1 = require("./entities/history/licenceHistoryResult");
|
|
14
14
|
const upgradeResult_1 = require("./entities/license/upgradeResult");
|
|
15
15
|
const licenseConversionSkuResult_1 = require("./entities/license/licenseConversionSkuResult");
|
|
16
|
+
const credentialsResult_1 = require("./entities/license/credentialsResult");
|
|
16
17
|
/**
|
|
17
18
|
* Parameters passable to the request for refining search.
|
|
18
19
|
*/
|
|
@@ -181,6 +182,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
181
182
|
* The path of license all existing skus
|
|
182
183
|
*/
|
|
183
184
|
this.GET_LICENSE_EXISTING_CONVERSION_SKU = '/conversion/existing';
|
|
185
|
+
/**
|
|
186
|
+
* The path to retrieve license credentials
|
|
187
|
+
*/
|
|
188
|
+
this.GET_LICENSE_CREDENTIALS = '/credentials';
|
|
184
189
|
}
|
|
185
190
|
/**
|
|
186
191
|
* Returns the raw result from the find endpoint call
|
|
@@ -336,6 +341,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
336
341
|
};
|
|
337
342
|
return new getResult_1.GetResult(licenseConversionSkuResult_1.LicenseConversionSkuResult, response);
|
|
338
343
|
}
|
|
344
|
+
async getCredentials(licenseReference, parameters = {}) {
|
|
345
|
+
this.path = `/${licenseReference}${this.GET_LICENSE_CREDENTIALS}`;
|
|
346
|
+
return new getResult_1.GetResult(credentialsResult_1.CredentialsResult, await this.get(parameters));
|
|
347
|
+
}
|
|
339
348
|
createFilters(parameters, keyParent) {
|
|
340
349
|
let appropriateParameters;
|
|
341
350
|
if (typeof parameters === 'object') {
|
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.77.0-rc.bdj.
|
|
7
|
+
"version": "3.77.0-rc.bdj.3",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|