@arrowsphere/api-client 3.118.0-rc-bdj.3 → 3.118.0-rc.bdj.11
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/build/licenses/entities/getLicense/priceBandGetResult.d.ts +9 -2
- package/build/licenses/entities/getLicense/priceBandGetResult.js +13 -6
- package/build/licenses/index.d.ts +1 -0
- package/build/licenses/index.js +1 -0
- package/build/partner/partnerClient.d.ts +0 -36
- package/build/partner/partnerClient.js +1 -51
- package/package.json +1 -1
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
2
|
import { SaleConstraintsFindResult, SaleConstraintsFindResultData } from '../offer/priceband/saleConstraintsFindResult';
|
|
3
3
|
export declare enum PriceBandDataFields {
|
|
4
|
-
|
|
4
|
+
COLUMN_SALE_CONTRAINSTS = "saleConstraints",
|
|
5
|
+
COLUMN_ATTRIBUTES = "attributes"
|
|
5
6
|
}
|
|
7
|
+
export declare type PriceBandAttribute = {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
6
11
|
export declare type PriceBandData = {
|
|
7
|
-
[PriceBandDataFields.
|
|
12
|
+
[PriceBandDataFields.COLUMN_SALE_CONTRAINSTS]?: SaleConstraintsFindResultData;
|
|
13
|
+
[PriceBandDataFields.COLUMN_ATTRIBUTES]?: PriceBandAttribute[];
|
|
8
14
|
};
|
|
9
15
|
export declare class PriceBandGetResult extends AbstractEntity<PriceBandData> {
|
|
10
16
|
#private;
|
|
11
17
|
constructor(data: PriceBandData);
|
|
12
18
|
get saleConstraints(): SaleConstraintsFindResult | undefined;
|
|
19
|
+
get attributes(): PriceBandAttribute[] | undefined;
|
|
13
20
|
toJSON(): PriceBandData;
|
|
14
21
|
}
|
|
@@ -10,33 +10,40 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
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
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _PriceBandGetResult_saleConstraints;
|
|
13
|
+
var _PriceBandGetResult_saleConstraints, _PriceBandGetResult_attributes;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.PriceBandGetResult = exports.PriceBandDataFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
17
|
const saleConstraintsFindResult_1 = require("../offer/priceband/saleConstraintsFindResult");
|
|
18
18
|
var PriceBandDataFields;
|
|
19
19
|
(function (PriceBandDataFields) {
|
|
20
|
-
PriceBandDataFields["
|
|
20
|
+
PriceBandDataFields["COLUMN_SALE_CONTRAINSTS"] = "saleConstraints";
|
|
21
|
+
PriceBandDataFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
21
22
|
})(PriceBandDataFields = exports.PriceBandDataFields || (exports.PriceBandDataFields = {}));
|
|
22
23
|
class PriceBandGetResult extends abstractEntity_1.AbstractEntity {
|
|
23
24
|
constructor(data) {
|
|
24
25
|
super(data);
|
|
25
26
|
_PriceBandGetResult_saleConstraints.set(this, void 0);
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
_PriceBandGetResult_attributes.set(this, void 0);
|
|
28
|
+
__classPrivateFieldSet(this, _PriceBandGetResult_saleConstraints, data[PriceBandDataFields.COLUMN_SALE_CONTRAINSTS] !== undefined
|
|
29
|
+
? new saleConstraintsFindResult_1.SaleConstraintsFindResult(data[PriceBandDataFields.COLUMN_SALE_CONTRAINSTS])
|
|
28
30
|
: undefined, "f");
|
|
31
|
+
__classPrivateFieldSet(this, _PriceBandGetResult_attributes, data[PriceBandDataFields.COLUMN_ATTRIBUTES], "f");
|
|
29
32
|
}
|
|
30
33
|
get saleConstraints() {
|
|
31
34
|
return __classPrivateFieldGet(this, _PriceBandGetResult_saleConstraints, "f");
|
|
32
35
|
}
|
|
36
|
+
get attributes() {
|
|
37
|
+
return __classPrivateFieldGet(this, _PriceBandGetResult_attributes, "f");
|
|
38
|
+
}
|
|
33
39
|
toJSON() {
|
|
34
40
|
var _a;
|
|
35
41
|
return {
|
|
36
|
-
[PriceBandDataFields.
|
|
42
|
+
[PriceBandDataFields.COLUMN_SALE_CONTRAINSTS]: (_a = this.saleConstraints) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
43
|
+
[PriceBandDataFields.COLUMN_ATTRIBUTES]: this.attributes,
|
|
37
44
|
};
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
exports.PriceBandGetResult = PriceBandGetResult;
|
|
41
|
-
_PriceBandGetResult_saleConstraints = new WeakMap();
|
|
48
|
+
_PriceBandGetResult_saleConstraints = new WeakMap(), _PriceBandGetResult_attributes = new WeakMap();
|
|
42
49
|
//# sourceMappingURL=priceBandGetResult.js.map
|
|
@@ -14,6 +14,7 @@ export * from './entities/getLicense/relationGetResult';
|
|
|
14
14
|
export * from './entities/getLicense/ratesGetResult';
|
|
15
15
|
export * from './entities/getLicense/licensePriceGetResult';
|
|
16
16
|
export * from './entities/getLicense/orderGetResult';
|
|
17
|
+
export * from './entities/getLicense/priceBandGetResult';
|
|
17
18
|
export * from './entities/getResult/getLicenseResult';
|
|
18
19
|
export * from './entities/history/actionHistoryResult';
|
|
19
20
|
export * from './entities/history/licenceHistoryResult';
|
package/build/licenses/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./entities/getLicense/relationGetResult"), exports);
|
|
|
30
30
|
__exportStar(require("./entities/getLicense/ratesGetResult"), exports);
|
|
31
31
|
__exportStar(require("./entities/getLicense/licensePriceGetResult"), exports);
|
|
32
32
|
__exportStar(require("./entities/getLicense/orderGetResult"), exports);
|
|
33
|
+
__exportStar(require("./entities/getLicense/priceBandGetResult"), exports);
|
|
33
34
|
__exportStar(require("./entities/getResult/getLicenseResult"), exports);
|
|
34
35
|
__exportStar(require("./entities/history/actionHistoryResult"), exports);
|
|
35
36
|
__exportStar(require("./entities/history/licenceHistoryResult"), exports);
|
|
@@ -1,41 +1,5 @@
|
|
|
1
1
|
import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
|
|
2
|
-
export declare enum UpdateUserActionEnum {
|
|
3
|
-
ALLOW_DIRECT_LOGIN = "allow-direct-login",
|
|
4
|
-
BLOCK_DIRECT_LOGIN = "block-direct-login",
|
|
5
|
-
DISABLE_ALIAS = "disable-alias",
|
|
6
|
-
LOCK = "lock",
|
|
7
|
-
DISABLE_MFA = "remove-mfa",
|
|
8
|
-
UNLOCK = "unlock",
|
|
9
|
-
UNLOCK_INSECURE_LOGIN = "unlock-insecure-login"
|
|
10
|
-
}
|
|
11
|
-
export declare enum PatchUserPayloadFields {
|
|
12
|
-
COLUMN_FIRSTNAME = "firstname",
|
|
13
|
-
COLUMN_LASTNAME = "lastname",
|
|
14
|
-
COLUMN_PHONE = "phone",
|
|
15
|
-
COLUMN_TITLE = "title",
|
|
16
|
-
COLUMN_IS_LOCKED = "isLocked",
|
|
17
|
-
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
|
|
18
|
-
COLUMN_ACTION = "action",
|
|
19
|
-
COLUMN_PROVIDER_NAME = "providerName"
|
|
20
|
-
}
|
|
21
|
-
export declare type PatchUserPayload = {
|
|
22
|
-
[PatchUserPayloadFields.COLUMN_FIRSTNAME]?: string;
|
|
23
|
-
[PatchUserPayloadFields.COLUMN_LASTNAME]?: string;
|
|
24
|
-
[PatchUserPayloadFields.COLUMN_PHONE]?: string;
|
|
25
|
-
[PatchUserPayloadFields.COLUMN_TITLE]?: string;
|
|
26
|
-
[PatchUserPayloadFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
27
|
-
[PatchUserPayloadFields.COLUMN_ACTION]?: string;
|
|
28
|
-
[PatchUserPayloadFields.COLUMN_PROVIDER_NAME]?: string;
|
|
29
|
-
};
|
|
30
2
|
export declare class PartnerClient extends AbstractRestfulClient {
|
|
31
3
|
protected basePath: string;
|
|
32
4
|
deletePartner(partnerReference: string, parameters?: Parameters): Promise<void>;
|
|
33
|
-
patchUser(partnerReference: string, userReference: string, payload: PatchUserPayload, parameters?: Parameters): Promise<void>;
|
|
34
|
-
lockUser(partnerReference: string, userReference: string, parameters?: Parameters): Promise<void>;
|
|
35
|
-
unlockUser(partnerReference: string, userReference: string, parameters?: Parameters): Promise<void>;
|
|
36
|
-
allowDirectLoginUser(partnerReference: string, userReference: string, parameters?: Parameters): Promise<void>;
|
|
37
|
-
blockDirectLoginUser(partnerReference: string, userReference: string, parameters?: Parameters): Promise<void>;
|
|
38
|
-
disableMfaUser(partnerReference: string, userReference: string, parameters?: Parameters): Promise<void>;
|
|
39
|
-
disableAliasUser(partnerReference: string, userReference: string, providerName: string, parameters?: Parameters): Promise<void>;
|
|
40
|
-
unlockInsecureLoginUser(partnerReference: string, userReference: string, parameters?: Parameters): Promise<void>;
|
|
41
5
|
}
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PartnerClient =
|
|
3
|
+
exports.PartnerClient = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
|
-
var UpdateUserActionEnum;
|
|
6
|
-
(function (UpdateUserActionEnum) {
|
|
7
|
-
UpdateUserActionEnum["ALLOW_DIRECT_LOGIN"] = "allow-direct-login";
|
|
8
|
-
UpdateUserActionEnum["BLOCK_DIRECT_LOGIN"] = "block-direct-login";
|
|
9
|
-
UpdateUserActionEnum["DISABLE_ALIAS"] = "disable-alias";
|
|
10
|
-
UpdateUserActionEnum["LOCK"] = "lock";
|
|
11
|
-
UpdateUserActionEnum["DISABLE_MFA"] = "remove-mfa";
|
|
12
|
-
UpdateUserActionEnum["UNLOCK"] = "unlock";
|
|
13
|
-
UpdateUserActionEnum["UNLOCK_INSECURE_LOGIN"] = "unlock-insecure-login";
|
|
14
|
-
//VALIDATE = 'validate'
|
|
15
|
-
})(UpdateUserActionEnum = exports.UpdateUserActionEnum || (exports.UpdateUserActionEnum = {}));
|
|
16
|
-
var PatchUserPayloadFields;
|
|
17
|
-
(function (PatchUserPayloadFields) {
|
|
18
|
-
PatchUserPayloadFields["COLUMN_FIRSTNAME"] = "firstname";
|
|
19
|
-
PatchUserPayloadFields["COLUMN_LASTNAME"] = "lastname";
|
|
20
|
-
PatchUserPayloadFields["COLUMN_PHONE"] = "phone";
|
|
21
|
-
PatchUserPayloadFields["COLUMN_TITLE"] = "title";
|
|
22
|
-
PatchUserPayloadFields["COLUMN_IS_LOCKED"] = "isLocked";
|
|
23
|
-
PatchUserPayloadFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
24
|
-
PatchUserPayloadFields["COLUMN_ACTION"] = "action";
|
|
25
|
-
PatchUserPayloadFields["COLUMN_PROVIDER_NAME"] = "providerName";
|
|
26
|
-
})(PatchUserPayloadFields = exports.PatchUserPayloadFields || (exports.PatchUserPayloadFields = {}));
|
|
27
5
|
class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
28
6
|
constructor() {
|
|
29
7
|
super(...arguments);
|
|
@@ -33,34 +11,6 @@ class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
33
11
|
this.path = `/${partnerReference}`;
|
|
34
12
|
return this.delete(parameters);
|
|
35
13
|
}
|
|
36
|
-
async patchUser(partnerReference, userReference, payload, parameters = {}) {
|
|
37
|
-
this.path = `/${partnerReference}/users/${userReference}`;
|
|
38
|
-
return await this.patch(payload, parameters);
|
|
39
|
-
}
|
|
40
|
-
async lockUser(partnerReference, userReference, parameters = {}) {
|
|
41
|
-
return await this.patchUser(partnerReference, userReference, { action: UpdateUserActionEnum.LOCK }, parameters);
|
|
42
|
-
}
|
|
43
|
-
async unlockUser(partnerReference, userReference, parameters = {}) {
|
|
44
|
-
return await this.patchUser(partnerReference, userReference, { action: UpdateUserActionEnum.UNLOCK }, parameters);
|
|
45
|
-
}
|
|
46
|
-
async allowDirectLoginUser(partnerReference, userReference, parameters = {}) {
|
|
47
|
-
return await this.patchUser(partnerReference, userReference, { action: UpdateUserActionEnum.ALLOW_DIRECT_LOGIN }, parameters);
|
|
48
|
-
}
|
|
49
|
-
async blockDirectLoginUser(partnerReference, userReference, parameters = {}) {
|
|
50
|
-
return await this.patchUser(partnerReference, userReference, { action: UpdateUserActionEnum.BLOCK_DIRECT_LOGIN }, parameters);
|
|
51
|
-
}
|
|
52
|
-
async disableMfaUser(partnerReference, userReference, parameters = {}) {
|
|
53
|
-
return await this.patchUser(partnerReference, userReference, { action: UpdateUserActionEnum.DISABLE_MFA }, parameters);
|
|
54
|
-
}
|
|
55
|
-
async disableAliasUser(partnerReference, userReference, providerName, parameters = {}) {
|
|
56
|
-
return await this.patchUser(partnerReference, userReference, {
|
|
57
|
-
action: UpdateUserActionEnum.DISABLE_ALIAS,
|
|
58
|
-
providerName,
|
|
59
|
-
}, parameters);
|
|
60
|
-
}
|
|
61
|
-
async unlockInsecureLoginUser(partnerReference, userReference, parameters = {}) {
|
|
62
|
-
return await this.patchUser(partnerReference, userReference, { action: UpdateUserActionEnum.UNLOCK_INSECURE_LOGIN }, parameters);
|
|
63
|
-
}
|
|
64
14
|
}
|
|
65
15
|
exports.PartnerClient = PartnerClient;
|
|
66
16
|
//# sourceMappingURL=partnerClient.js.map
|
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.118.0-rc
|
|
7
|
+
"version": "3.118.0-rc.bdj.11",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|