@arrowsphere/api-client 3.90.0 → 3.92.0-rc.fdi.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.92.0] - 2024.01.09
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- [Organization Unit] add organization unit endpoint for updating in mass
|
|
11
|
+
|
|
12
|
+
## [3.91.0] - 2024-01-23
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- [partners] Added the `canImpersonate` field to the `/partners/users/rights` endpoint response
|
|
17
|
+
|
|
6
18
|
## [3.90.0] - 2024.01.11
|
|
7
19
|
|
|
8
20
|
### Added
|
|
@@ -31,7 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
31
43
|
## [3.85.0] - 2024-01-05
|
|
32
44
|
|
|
33
45
|
### Added
|
|
34
|
-
- [license] Add
|
|
46
|
+
- [license] Add Market Segment to License
|
|
35
47
|
|
|
36
48
|
## [3.84.1] - 2024-01-05
|
|
37
49
|
|
|
@@ -77,7 +89,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
77
89
|
## [3.79.0] - 2023-12-20
|
|
78
90
|
|
|
79
91
|
### Changed
|
|
80
|
-
- [license] Add new columns price.priceBandArrowsphereSku, price.unit.list and price.total.list
|
|
92
|
+
- [license] Add new columns price.priceBandArrowsphereSku, price.unit.list and price.total.list
|
|
81
93
|
|
|
82
94
|
## [3.78.0] - 2023-12-15
|
|
83
95
|
|
|
@@ -755,7 +767,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
755
767
|
- Update type CreateOrderInputType, Add Fields discount and uplift
|
|
756
768
|
- Endpoint List Order :
|
|
757
769
|
- add Pagination
|
|
758
|
-
- Fields Partner was optional
|
|
770
|
+
- Fields Partner was optional
|
|
759
771
|
- Endpoint Get Order :
|
|
760
772
|
- Update generated URL
|
|
761
773
|
- Fields Partner was optional
|
|
@@ -8,6 +8,14 @@ export declare enum OrganizationUnitPayloadFields {
|
|
|
8
8
|
export declare type OrganizationUnitPayloadType = {
|
|
9
9
|
[OrganizationUnitPayloadFields.COLUMN_NAME]: string;
|
|
10
10
|
};
|
|
11
|
+
export declare enum OrganizationUnitClientActionFields {
|
|
12
|
+
ACTION_ATTACH = "attach",
|
|
13
|
+
ACTION_DETACH = "detach"
|
|
14
|
+
}
|
|
15
|
+
export declare type OrganizationUnitClientActionType = {
|
|
16
|
+
licenses: string[];
|
|
17
|
+
users: string[];
|
|
18
|
+
};
|
|
11
19
|
export declare class OrganizationUnitClient extends AbstractRestfulClient {
|
|
12
20
|
protected basePath: string;
|
|
13
21
|
getList(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<OrganizationUnitList>>;
|
|
@@ -15,4 +23,5 @@ export declare class OrganizationUnitClient extends AbstractRestfulClient {
|
|
|
15
23
|
getOne(organizationUnitRef: string, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
|
|
16
24
|
update(organizationUnitRef: string, payload: OrganizationUnitPayloadType, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
|
|
17
25
|
deleteOne(organizationUnitRef: string, parameters?: Parameters): Promise<void>;
|
|
26
|
+
batchUpdate(action: OrganizationUnitClientActionFields, organizationUnitRef: string, payload: OrganizationUnitClientActionType, parameters?: Parameters): Promise<void>;
|
|
18
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationUnitClient = exports.OrganizationUnitPayloadFields = void 0;
|
|
3
|
+
exports.OrganizationUnitClient = exports.OrganizationUnitClientActionFields = exports.OrganizationUnitPayloadFields = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const organizationUnit_1 = require("./entities/organizationUnit");
|
|
@@ -9,6 +9,11 @@ var OrganizationUnitPayloadFields;
|
|
|
9
9
|
(function (OrganizationUnitPayloadFields) {
|
|
10
10
|
OrganizationUnitPayloadFields["COLUMN_NAME"] = "name";
|
|
11
11
|
})(OrganizationUnitPayloadFields = exports.OrganizationUnitPayloadFields || (exports.OrganizationUnitPayloadFields = {}));
|
|
12
|
+
var OrganizationUnitClientActionFields;
|
|
13
|
+
(function (OrganizationUnitClientActionFields) {
|
|
14
|
+
OrganizationUnitClientActionFields["ACTION_ATTACH"] = "attach";
|
|
15
|
+
OrganizationUnitClientActionFields["ACTION_DETACH"] = "detach";
|
|
16
|
+
})(OrganizationUnitClientActionFields = exports.OrganizationUnitClientActionFields || (exports.OrganizationUnitClientActionFields = {}));
|
|
12
17
|
class OrganizationUnitClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
13
18
|
constructor() {
|
|
14
19
|
super(...arguments);
|
|
@@ -34,6 +39,11 @@ class OrganizationUnitClient extends abstractRestfulClient_1.AbstractRestfulClie
|
|
|
34
39
|
this.path = `/${organizationUnitRef}`;
|
|
35
40
|
return await this.delete(parameters);
|
|
36
41
|
}
|
|
42
|
+
async batchUpdate(action, organizationUnitRef, payload, parameters = {}) {
|
|
43
|
+
this.basePath = '/organizationUnit';
|
|
44
|
+
this.path = `/${action}/${organizationUnitRef}`;
|
|
45
|
+
return await this.patch(payload, parameters);
|
|
46
|
+
}
|
|
37
47
|
}
|
|
38
48
|
exports.OrganizationUnitClient = OrganizationUnitClient;
|
|
39
49
|
//# sourceMappingURL=organizationUnitClient.js.map
|
|
@@ -9,8 +9,15 @@ export declare enum CompleteWhoAmIUserFields {
|
|
|
9
9
|
COLUMN_REFERENCE = "reference",
|
|
10
10
|
COLUMN_RIGHTS = "rights",
|
|
11
11
|
COLUMN_SCOPES = "scopes",
|
|
12
|
-
COLUMN_XAP_USERNAME = "xapUsername"
|
|
12
|
+
COLUMN_XAP_USERNAME = "xapUsername",
|
|
13
|
+
COLUMN_CAN_IMPERSONATE = "canImpersonate"
|
|
13
14
|
}
|
|
15
|
+
export declare type ImpersonableUser = {
|
|
16
|
+
username: string;
|
|
17
|
+
firstname: string;
|
|
18
|
+
lastname: string;
|
|
19
|
+
company: string;
|
|
20
|
+
};
|
|
14
21
|
export declare type CompleteWhoAmIUserData = {
|
|
15
22
|
[CompleteWhoAmIUserFields.COLUMN_EMAIL]?: string;
|
|
16
23
|
[CompleteWhoAmIUserFields.COLUMN_FIRSTNAME]?: string;
|
|
@@ -22,6 +29,7 @@ export declare type CompleteWhoAmIUserData = {
|
|
|
22
29
|
[CompleteWhoAmIUserFields.COLUMN_RIGHTS]: string[];
|
|
23
30
|
[CompleteWhoAmIUserFields.COLUMN_SCOPES]: string[];
|
|
24
31
|
[CompleteWhoAmIUserFields.COLUMN_XAP_USERNAME]: string;
|
|
32
|
+
[CompleteWhoAmIUserFields.COLUMN_CAN_IMPERSONATE]: ImpersonableUser[];
|
|
25
33
|
};
|
|
26
34
|
export declare class CompleteWhoAmIUser extends AbstractEntity<CompleteWhoAmIUserData> {
|
|
27
35
|
#private;
|
|
@@ -36,5 +44,6 @@ export declare class CompleteWhoAmIUser extends AbstractEntity<CompleteWhoAmIUse
|
|
|
36
44
|
get rights(): string[];
|
|
37
45
|
get scopes(): string[];
|
|
38
46
|
get xapUsername(): string;
|
|
47
|
+
get canImpersonate(): ImpersonableUser[];
|
|
39
48
|
toJSON(): CompleteWhoAmIUserData;
|
|
40
49
|
}
|
|
@@ -10,7 +10,7 @@ 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 _CompleteWhoAmIUser_email, _CompleteWhoAmIUser_firstname, _CompleteWhoAmIUser_lastname, _CompleteWhoAmIUser_login, _CompleteWhoAmIUser_phoneNumber, _CompleteWhoAmIUser_policies, _CompleteWhoAmIUser_reference, _CompleteWhoAmIUser_rights, _CompleteWhoAmIUser_scopes, _CompleteWhoAmIUser_xapUsername;
|
|
13
|
+
var _CompleteWhoAmIUser_email, _CompleteWhoAmIUser_firstname, _CompleteWhoAmIUser_lastname, _CompleteWhoAmIUser_login, _CompleteWhoAmIUser_phoneNumber, _CompleteWhoAmIUser_policies, _CompleteWhoAmIUser_reference, _CompleteWhoAmIUser_rights, _CompleteWhoAmIUser_scopes, _CompleteWhoAmIUser_xapUsername, _CompleteWhoAmIUser_canImpersonate;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.CompleteWhoAmIUser = exports.CompleteWhoAmIUserFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
@@ -26,6 +26,7 @@ var CompleteWhoAmIUserFields;
|
|
|
26
26
|
CompleteWhoAmIUserFields["COLUMN_RIGHTS"] = "rights";
|
|
27
27
|
CompleteWhoAmIUserFields["COLUMN_SCOPES"] = "scopes";
|
|
28
28
|
CompleteWhoAmIUserFields["COLUMN_XAP_USERNAME"] = "xapUsername";
|
|
29
|
+
CompleteWhoAmIUserFields["COLUMN_CAN_IMPERSONATE"] = "canImpersonate";
|
|
29
30
|
})(CompleteWhoAmIUserFields = exports.CompleteWhoAmIUserFields || (exports.CompleteWhoAmIUserFields = {}));
|
|
30
31
|
class CompleteWhoAmIUser extends abstractEntity_1.AbstractEntity {
|
|
31
32
|
constructor(data) {
|
|
@@ -40,6 +41,7 @@ class CompleteWhoAmIUser extends abstractEntity_1.AbstractEntity {
|
|
|
40
41
|
_CompleteWhoAmIUser_rights.set(this, void 0);
|
|
41
42
|
_CompleteWhoAmIUser_scopes.set(this, void 0);
|
|
42
43
|
_CompleteWhoAmIUser_xapUsername.set(this, void 0);
|
|
44
|
+
_CompleteWhoAmIUser_canImpersonate.set(this, void 0);
|
|
43
45
|
__classPrivateFieldSet(this, _CompleteWhoAmIUser_email, data[CompleteWhoAmIUserFields.COLUMN_EMAIL], "f");
|
|
44
46
|
__classPrivateFieldSet(this, _CompleteWhoAmIUser_firstname, data[CompleteWhoAmIUserFields.COLUMN_FIRSTNAME], "f");
|
|
45
47
|
__classPrivateFieldSet(this, _CompleteWhoAmIUser_lastname, data[CompleteWhoAmIUserFields.COLUMN_LASTNAME], "f");
|
|
@@ -50,6 +52,7 @@ class CompleteWhoAmIUser extends abstractEntity_1.AbstractEntity {
|
|
|
50
52
|
__classPrivateFieldSet(this, _CompleteWhoAmIUser_rights, data[CompleteWhoAmIUserFields.COLUMN_RIGHTS], "f");
|
|
51
53
|
__classPrivateFieldSet(this, _CompleteWhoAmIUser_scopes, data[CompleteWhoAmIUserFields.COLUMN_SCOPES], "f");
|
|
52
54
|
__classPrivateFieldSet(this, _CompleteWhoAmIUser_xapUsername, data[CompleteWhoAmIUserFields.COLUMN_XAP_USERNAME], "f");
|
|
55
|
+
__classPrivateFieldSet(this, _CompleteWhoAmIUser_canImpersonate, data[CompleteWhoAmIUserFields.COLUMN_CAN_IMPERSONATE], "f");
|
|
53
56
|
}
|
|
54
57
|
get email() {
|
|
55
58
|
return __classPrivateFieldGet(this, _CompleteWhoAmIUser_email, "f");
|
|
@@ -81,6 +84,9 @@ class CompleteWhoAmIUser extends abstractEntity_1.AbstractEntity {
|
|
|
81
84
|
get xapUsername() {
|
|
82
85
|
return __classPrivateFieldGet(this, _CompleteWhoAmIUser_xapUsername, "f");
|
|
83
86
|
}
|
|
87
|
+
get canImpersonate() {
|
|
88
|
+
return __classPrivateFieldGet(this, _CompleteWhoAmIUser_canImpersonate, "f");
|
|
89
|
+
}
|
|
84
90
|
toJSON() {
|
|
85
91
|
return {
|
|
86
92
|
[CompleteWhoAmIUserFields.COLUMN_EMAIL]: this.email,
|
|
@@ -93,9 +99,10 @@ class CompleteWhoAmIUser extends abstractEntity_1.AbstractEntity {
|
|
|
93
99
|
[CompleteWhoAmIUserFields.COLUMN_RIGHTS]: this.rights,
|
|
94
100
|
[CompleteWhoAmIUserFields.COLUMN_SCOPES]: this.scopes,
|
|
95
101
|
[CompleteWhoAmIUserFields.COLUMN_XAP_USERNAME]: this.xapUsername,
|
|
102
|
+
[CompleteWhoAmIUserFields.COLUMN_CAN_IMPERSONATE]: this.canImpersonate,
|
|
96
103
|
};
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
106
|
exports.CompleteWhoAmIUser = CompleteWhoAmIUser;
|
|
100
|
-
_CompleteWhoAmIUser_email = new WeakMap(), _CompleteWhoAmIUser_firstname = new WeakMap(), _CompleteWhoAmIUser_lastname = new WeakMap(), _CompleteWhoAmIUser_login = new WeakMap(), _CompleteWhoAmIUser_phoneNumber = new WeakMap(), _CompleteWhoAmIUser_policies = new WeakMap(), _CompleteWhoAmIUser_reference = new WeakMap(), _CompleteWhoAmIUser_rights = new WeakMap(), _CompleteWhoAmIUser_scopes = new WeakMap(), _CompleteWhoAmIUser_xapUsername = new WeakMap();
|
|
107
|
+
_CompleteWhoAmIUser_email = new WeakMap(), _CompleteWhoAmIUser_firstname = new WeakMap(), _CompleteWhoAmIUser_lastname = new WeakMap(), _CompleteWhoAmIUser_login = new WeakMap(), _CompleteWhoAmIUser_phoneNumber = new WeakMap(), _CompleteWhoAmIUser_policies = new WeakMap(), _CompleteWhoAmIUser_reference = new WeakMap(), _CompleteWhoAmIUser_rights = new WeakMap(), _CompleteWhoAmIUser_scopes = new WeakMap(), _CompleteWhoAmIUser_xapUsername = new WeakMap(), _CompleteWhoAmIUser_canImpersonate = new WeakMap();
|
|
101
108
|
//# sourceMappingURL=CompleteWhoAmIUser.js.map
|
package/package.json
CHANGED