@arrowsphere/api-client 3.83.0-rc.fdi.1 → 3.84.1-rc.bdj.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 +7 -2
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +8 -1
- package/build/licenses/entities/getLicense/licenseGetResult.js +21 -4
- package/build/licenses/entities/getLicense/relationGetResult.d.ts +16 -0
- package/build/licenses/entities/getLicense/relationGetResult.js +45 -0
- package/build/licenses/index.d.ts +1 -0
- package/build/licenses/index.js +1 -0
- package/build/licenses/licensesClient.d.ts +7 -0
- package/build/licenses/licensesClient.js +9 -0
- package/build/organisationUnit/organizationUnitClient.d.ts +0 -9
- package/build/organisationUnit/organizationUnitClient.js +1 -11
- package/build/partialResponse.d.ts +25 -0
- package/build/partialResponse.js +55 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,10 +3,15 @@
|
|
|
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.
|
|
6
|
+
## [3.84.0] - 2024-01-04
|
|
7
7
|
|
|
8
8
|
### Added
|
|
9
|
-
- add
|
|
9
|
+
- [license] add license relation
|
|
10
|
+
|
|
11
|
+
## [3.83.0] - 2024-01-04
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- [license] add patch license
|
|
10
15
|
|
|
11
16
|
## [3.82.0] - 2023-12-29
|
|
12
17
|
|
package/build/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './exception/';
|
|
|
11
11
|
export * from './general/';
|
|
12
12
|
export * from './getResult';
|
|
13
13
|
export * from './graphqlApi';
|
|
14
|
+
export * from './partialResponse';
|
|
14
15
|
export * from './pagination';
|
|
15
16
|
export * from './licenses/';
|
|
16
17
|
export * from './notifications/';
|
package/build/index.js
CHANGED
|
@@ -40,6 +40,7 @@ __exportStar(require("./exception/"), exports);
|
|
|
40
40
|
__exportStar(require("./general/"), exports);
|
|
41
41
|
__exportStar(require("./getResult"), exports);
|
|
42
42
|
__exportStar(require("./graphqlApi"), exports);
|
|
43
|
+
__exportStar(require("./partialResponse"), exports);
|
|
43
44
|
__exportStar(require("./pagination"), exports);
|
|
44
45
|
__exportStar(require("./licenses/"), exports);
|
|
45
46
|
__exportStar(require("./notifications/"), exports);
|
|
@@ -10,6 +10,7 @@ import { AssetsData, AssetsFindResult } from './assetsFindResult';
|
|
|
10
10
|
import { ExtraDataResult, ExtraDataType } from './extraDataGetResult';
|
|
11
11
|
import { PriceBandData, PriceBandGetResult } from './priceBandGetResult';
|
|
12
12
|
import { RatesGetData, RatesGetResult } from './ratesGetResult';
|
|
13
|
+
import { RelationGetData, RelationGetResult } from './relationGetResult';
|
|
13
14
|
export declare enum LicenseGetFields {
|
|
14
15
|
COLUMN_LICENSE_ID = "license_id",
|
|
15
16
|
COLUMN_PARENT_LICENSE_ID = "parent_license_id",
|
|
@@ -50,7 +51,9 @@ export declare enum LicenseGetFields {
|
|
|
50
51
|
COLUMN_EXTRA_DATA = "extraData",
|
|
51
52
|
COLUMN_PRICE_BAND = "priceBand",
|
|
52
53
|
COLUMN_VENDOR_CODE = "vendorCode",
|
|
53
|
-
COLUMN_RATES = "rates"
|
|
54
|
+
COLUMN_RATES = "rates",
|
|
55
|
+
COLUMN_ORGANIZATION_UNIT_ID = "organizationUnitId",
|
|
56
|
+
COLUMN_RELATION = "relation"
|
|
54
57
|
}
|
|
55
58
|
export declare type LicenseGetData = {
|
|
56
59
|
[LicenseGetFields.COLUMN_LICENSE_ID]: string;
|
|
@@ -93,6 +96,8 @@ export declare type LicenseGetData = {
|
|
|
93
96
|
[LicenseGetFields.COLUMN_PRICE_BAND]?: PriceBandData;
|
|
94
97
|
[LicenseGetFields.COLUMN_VENDOR_CODE]?: string;
|
|
95
98
|
[LicenseGetFields.COLUMN_RATES]?: RatesGetData;
|
|
99
|
+
[LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
|
|
100
|
+
[LicenseGetFields.COLUMN_RELATION]?: RelationGetData[];
|
|
96
101
|
};
|
|
97
102
|
export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
98
103
|
#private;
|
|
@@ -137,5 +142,7 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
|
137
142
|
get priceBand(): PriceBandGetResult | undefined;
|
|
138
143
|
get vendorCode(): string | undefined;
|
|
139
144
|
get rates(): RatesGetResult | undefined;
|
|
145
|
+
get organizationUnitId(): number | undefined;
|
|
146
|
+
get relation(): RelationGetResult[] | undefined;
|
|
140
147
|
toJSON(): LicenseGetData;
|
|
141
148
|
}
|
|
@@ -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 _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_rates;
|
|
13
|
+
var _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseGetResult = exports.LicenseGetFields = void 0;
|
|
16
16
|
const actionsGetResult_1 = require("./actionsGetResult");
|
|
@@ -25,6 +25,7 @@ const assetsFindResult_1 = require("./assetsFindResult");
|
|
|
25
25
|
const extraDataGetResult_1 = require("./extraDataGetResult");
|
|
26
26
|
const priceBandGetResult_1 = require("./priceBandGetResult");
|
|
27
27
|
const ratesGetResult_1 = require("./ratesGetResult");
|
|
28
|
+
const relationGetResult_1 = require("./relationGetResult");
|
|
28
29
|
var LicenseGetFields;
|
|
29
30
|
(function (LicenseGetFields) {
|
|
30
31
|
LicenseGetFields["COLUMN_LICENSE_ID"] = "license_id";
|
|
@@ -67,10 +68,12 @@ var LicenseGetFields;
|
|
|
67
68
|
LicenseGetFields["COLUMN_PRICE_BAND"] = "priceBand";
|
|
68
69
|
LicenseGetFields["COLUMN_VENDOR_CODE"] = "vendorCode";
|
|
69
70
|
LicenseGetFields["COLUMN_RATES"] = "rates";
|
|
71
|
+
LicenseGetFields["COLUMN_ORGANIZATION_UNIT_ID"] = "organizationUnitId";
|
|
72
|
+
LicenseGetFields["COLUMN_RELATION"] = "relation";
|
|
70
73
|
})(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
|
|
71
74
|
class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
72
75
|
constructor(licenseGetDataInput) {
|
|
73
|
-
var _a, _b;
|
|
76
|
+
var _a, _b, _c;
|
|
74
77
|
super(licenseGetDataInput);
|
|
75
78
|
_LicenseGetResult_license_id.set(this, void 0);
|
|
76
79
|
_LicenseGetResult_parent_license_id.set(this, void 0);
|
|
@@ -112,6 +115,8 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
112
115
|
_LicenseGetResult_priceBand.set(this, void 0);
|
|
113
116
|
_LicenseGetResult_vendorCode.set(this, void 0);
|
|
114
117
|
_LicenseGetResult_rates.set(this, void 0);
|
|
118
|
+
_LicenseGetResult_organizationUnitId.set(this, void 0);
|
|
119
|
+
_LicenseGetResult_relation.set(this, void 0);
|
|
115
120
|
__classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
|
|
116
121
|
__classPrivateFieldSet(this, _LicenseGetResult_parent_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_PARENT_LICENSE_ID], "f");
|
|
117
122
|
__classPrivateFieldSet(this, _LicenseGetResult_friendlyName, licenseGetDataInput[LicenseGetFields.COLUMN_FRIENDLY_NAME], "f");
|
|
@@ -164,6 +169,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
164
169
|
__classPrivateFieldSet(this, _LicenseGetResult_rates, licenseGetDataInput[LicenseGetFields.COLUMN_RATES]
|
|
165
170
|
? new ratesGetResult_1.RatesGetResult(licenseGetDataInput[LicenseGetFields.COLUMN_RATES])
|
|
166
171
|
: undefined, "f");
|
|
172
|
+
__classPrivateFieldSet(this, _LicenseGetResult_organizationUnitId, licenseGetDataInput[LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID], "f");
|
|
173
|
+
__classPrivateFieldSet(this, _LicenseGetResult_relation, licenseGetDataInput[LicenseGetFields.COLUMN_RELATION]
|
|
174
|
+
? (_c = licenseGetDataInput[LicenseGetFields.COLUMN_RELATION]) === null || _c === void 0 ? void 0 : _c.map((v) => new relationGetResult_1.RelationGetResult(v))
|
|
175
|
+
: undefined, "f");
|
|
167
176
|
}
|
|
168
177
|
get id() {
|
|
169
178
|
return __classPrivateFieldGet(this, _LicenseGetResult_license_id, "f");
|
|
@@ -285,8 +294,14 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
285
294
|
get rates() {
|
|
286
295
|
return __classPrivateFieldGet(this, _LicenseGetResult_rates, "f");
|
|
287
296
|
}
|
|
297
|
+
get organizationUnitId() {
|
|
298
|
+
return __classPrivateFieldGet(this, _LicenseGetResult_organizationUnitId, "f");
|
|
299
|
+
}
|
|
300
|
+
get relation() {
|
|
301
|
+
return __classPrivateFieldGet(this, _LicenseGetResult_relation, "f");
|
|
302
|
+
}
|
|
288
303
|
toJSON() {
|
|
289
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
304
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
290
305
|
return {
|
|
291
306
|
[LicenseGetFields.COLUMN_LICENSE_ID]: this.id,
|
|
292
307
|
[LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: this.parentLicenseId,
|
|
@@ -329,9 +344,11 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
329
344
|
[LicenseGetFields.COLUMN_PRICE_BAND]: (_g = this.priceBand) === null || _g === void 0 ? void 0 : _g.toJSON(),
|
|
330
345
|
[LicenseGetFields.COLUMN_VENDOR_CODE]: this.vendorCode,
|
|
331
346
|
[LicenseGetFields.COLUMN_RATES]: (_h = this.rates) === null || _h === void 0 ? void 0 : _h.toJSON(),
|
|
347
|
+
[LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]: this.organizationUnitId,
|
|
348
|
+
[LicenseGetFields.COLUMN_RELATION]: (_j = this.relation) === null || _j === void 0 ? void 0 : _j.map((v) => v.toJSON()),
|
|
332
349
|
};
|
|
333
350
|
}
|
|
334
351
|
}
|
|
335
352
|
exports.LicenseGetResult = LicenseGetResult;
|
|
336
|
-
_LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_rates = new WeakMap();
|
|
353
|
+
_LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap();
|
|
337
354
|
//# sourceMappingURL=licenseGetResult.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum RelationGetDataFields {
|
|
3
|
+
COLUMN_PARTNER_REF = "partnerRef",
|
|
4
|
+
COLUMN_TYPE = "type"
|
|
5
|
+
}
|
|
6
|
+
export declare type RelationGetData = {
|
|
7
|
+
[RelationGetDataFields.COLUMN_PARTNER_REF]: string;
|
|
8
|
+
[RelationGetDataFields.COLUMN_TYPE]: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class RelationGetResult extends AbstractEntity<RelationGetData> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(data: RelationGetData);
|
|
13
|
+
get rate(): string;
|
|
14
|
+
get type(): string;
|
|
15
|
+
toJSON(): RelationGetData;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 _RelationGetResult_rate, _RelationGetResult_type;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.RelationGetResult = exports.RelationGetDataFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var RelationGetDataFields;
|
|
18
|
+
(function (RelationGetDataFields) {
|
|
19
|
+
RelationGetDataFields["COLUMN_PARTNER_REF"] = "partnerRef";
|
|
20
|
+
RelationGetDataFields["COLUMN_TYPE"] = "type";
|
|
21
|
+
})(RelationGetDataFields = exports.RelationGetDataFields || (exports.RelationGetDataFields = {}));
|
|
22
|
+
class RelationGetResult extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(data) {
|
|
24
|
+
super(data);
|
|
25
|
+
_RelationGetResult_rate.set(this, void 0);
|
|
26
|
+
_RelationGetResult_type.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _RelationGetResult_rate, data[RelationGetDataFields.COLUMN_PARTNER_REF], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _RelationGetResult_type, data[RelationGetDataFields.COLUMN_TYPE], "f");
|
|
29
|
+
}
|
|
30
|
+
get rate() {
|
|
31
|
+
return __classPrivateFieldGet(this, _RelationGetResult_rate, "f");
|
|
32
|
+
}
|
|
33
|
+
get type() {
|
|
34
|
+
return __classPrivateFieldGet(this, _RelationGetResult_type, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[RelationGetDataFields.COLUMN_PARTNER_REF]: this.rate,
|
|
39
|
+
[RelationGetDataFields.COLUMN_TYPE]: this.type,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.RelationGetResult = RelationGetResult;
|
|
44
|
+
_RelationGetResult_rate = new WeakMap(), _RelationGetResult_type = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=relationGetResult.js.map
|
|
@@ -9,6 +9,7 @@ export * from './entities/getLicense/actionsGetResult';
|
|
|
9
9
|
export * from './entities/getLicense/buySellFindResult';
|
|
10
10
|
export * from './entities/getLicense/extraDataGetResult';
|
|
11
11
|
export * from './entities/getLicense/licenseGetResult';
|
|
12
|
+
export * from './entities/getLicense/relationGetResult';
|
|
12
13
|
export * from './entities/getLicense/ratesGetResult';
|
|
13
14
|
export * from './entities/getLicense/licensePriceGetResult';
|
|
14
15
|
export * from './entities/getLicense/orderGetResult';
|
package/build/licenses/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./entities/getLicense/actionsGetResult"), exports);
|
|
|
25
25
|
__exportStar(require("./entities/getLicense/buySellFindResult"), exports);
|
|
26
26
|
__exportStar(require("./entities/getLicense/extraDataGetResult"), exports);
|
|
27
27
|
__exportStar(require("./entities/getLicense/licenseGetResult"), exports);
|
|
28
|
+
__exportStar(require("./entities/getLicense/relationGetResult"), exports);
|
|
28
29
|
__exportStar(require("./entities/getLicense/ratesGetResult"), exports);
|
|
29
30
|
__exportStar(require("./entities/getLicense/licensePriceGetResult"), exports);
|
|
30
31
|
__exportStar(require("./entities/getLicense/orderGetResult"), exports);
|
|
@@ -21,6 +21,7 @@ import { LicenseConversionSkuResult } from './entities/license/licenseConversion
|
|
|
21
21
|
import { CredentialsResult } from './entities/license/credentialsResult';
|
|
22
22
|
import { ScheduleTasksResult } from './entities/schedule/scheduleTasksResult';
|
|
23
23
|
import { GetPricingRateResult, RateTypeEnum } from './entities/pricingRate/getPricingRateResult';
|
|
24
|
+
import { PartialResponse } from '../partialResponse';
|
|
24
25
|
/**
|
|
25
26
|
* Parameters passable to the request for refining search.
|
|
26
27
|
*/
|
|
@@ -186,6 +187,11 @@ export declare type LicenseFindRawPayload = {
|
|
|
186
187
|
};
|
|
187
188
|
[LicenseFindParameters.DATA_HIGHLIGHT]?: boolean;
|
|
188
189
|
};
|
|
190
|
+
export declare type UpdateLicenseData = {
|
|
191
|
+
[LicenseGetFields.COLUMN_FRIENDLY_NAME]?: string;
|
|
192
|
+
[LicenseGetFields.COLUMN_SEATS]?: number;
|
|
193
|
+
[LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
|
|
194
|
+
} & ExtraInformationType;
|
|
189
195
|
export declare type UpdateSeatsData = {
|
|
190
196
|
[LicenseGetFields.COLUMN_SEATS]: number;
|
|
191
197
|
} & ExtraInformationType;
|
|
@@ -321,6 +327,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
321
327
|
updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
|
|
322
328
|
updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
|
|
323
329
|
getLicense(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseResult>>;
|
|
330
|
+
updateLicense(licenseReference: string, payload: UpdateLicenseData, parameters?: Parameters): Promise<void | PartialResponse>;
|
|
324
331
|
updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
|
|
325
332
|
suspendLicense(licenseReference: string, payload?: PutSuspend, parameters?: Parameters): Promise<void>;
|
|
326
333
|
reactivateLicense(licenseReference: string, payload?: PutReactivate, parameters?: Parameters): Promise<void>;
|
|
@@ -16,6 +16,8 @@ const licenseConversionSkuResult_1 = require("./entities/license/licenseConversi
|
|
|
16
16
|
const credentialsResult_1 = require("./entities/license/credentialsResult");
|
|
17
17
|
const scheduleTasksResult_1 = require("./entities/schedule/scheduleTasksResult");
|
|
18
18
|
const getPricingRateResult_1 = require("./entities/pricingRate/getPricingRateResult");
|
|
19
|
+
const partialResponse_1 = require("../partialResponse");
|
|
20
|
+
const http2_1 = require("http2");
|
|
19
21
|
/**
|
|
20
22
|
* Parameters passable to the request for refining search.
|
|
21
23
|
*/
|
|
@@ -283,6 +285,13 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
283
285
|
this.path = `/${licenseReference}`;
|
|
284
286
|
return new getResult_1.GetResult(getLicenseResult_1.GetLicenseResult, await this.get(parameters));
|
|
285
287
|
}
|
|
288
|
+
async updateLicense(licenseReference, payload, parameters = {}) {
|
|
289
|
+
this.path = `/${licenseReference}`;
|
|
290
|
+
const response = await this.patch(payload, parameters);
|
|
291
|
+
if (response && response.status == http2_1.constants.HTTP_STATUS_PARTIAL_CONTENT) {
|
|
292
|
+
return new partialResponse_1.PartialResponse(response);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
286
295
|
updateSeats(licenseReference, putData, parameters = {}) {
|
|
287
296
|
this.path = `/${licenseReference}${this.SEATS_PATH}`;
|
|
288
297
|
return this.put(putData, parameters);
|
|
@@ -8,14 +8,6 @@ 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
|
-
};
|
|
19
11
|
export declare class OrganizationUnitClient extends AbstractRestfulClient {
|
|
20
12
|
protected basePath: string;
|
|
21
13
|
getList(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<OrganizationUnitList>>;
|
|
@@ -23,5 +15,4 @@ export declare class OrganizationUnitClient extends AbstractRestfulClient {
|
|
|
23
15
|
getOne(organizationUnitRef: string, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
|
|
24
16
|
update(organizationUnitRef: string, payload: OrganizationUnitPayloadType, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
|
|
25
17
|
deleteOne(organizationUnitRef: string, parameters?: Parameters): Promise<void>;
|
|
26
|
-
patchAll(action: OrganizationUnitClientActionFields, organizationUnitId: number, payload: OrganizationUnitClientActionType, parameters?: Parameters): Promise<void>;
|
|
27
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationUnitClient = exports.
|
|
3
|
+
exports.OrganizationUnitClient = 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,11 +9,6 @@ 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 = {}));
|
|
17
12
|
class OrganizationUnitClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
18
13
|
constructor() {
|
|
19
14
|
super(...arguments);
|
|
@@ -39,11 +34,6 @@ class OrganizationUnitClient extends abstractRestfulClient_1.AbstractRestfulClie
|
|
|
39
34
|
this.path = `/${organizationUnitRef}`;
|
|
40
35
|
return await this.delete(parameters);
|
|
41
36
|
}
|
|
42
|
-
async patchAll(action, organizationUnitId, payload, parameters = {}) {
|
|
43
|
-
this.basePath = '/organizationUnit';
|
|
44
|
-
this.path = `/${action}/${organizationUnitId}`;
|
|
45
|
-
return await this.patch(payload, parameters);
|
|
46
|
-
}
|
|
47
37
|
}
|
|
48
38
|
exports.OrganizationUnitClient = OrganizationUnitClient;
|
|
49
39
|
//# sourceMappingURL=organizationUnitClient.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AbstractEntity } from './abstractEntity';
|
|
2
|
+
/**
|
|
3
|
+
* Filter data values
|
|
4
|
+
*/
|
|
5
|
+
export declare enum PartialResponseFields {
|
|
6
|
+
COLUMN_STATUS = "status",
|
|
7
|
+
COLUMN_ERROR = "error",
|
|
8
|
+
COLUMN_MESSAGES = "messages"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Filter data
|
|
12
|
+
*/
|
|
13
|
+
export declare type PartialResponseData = {
|
|
14
|
+
[PartialResponseFields.COLUMN_STATUS]: number;
|
|
15
|
+
[PartialResponseFields.COLUMN_ERROR]: string;
|
|
16
|
+
[PartialResponseFields.COLUMN_MESSAGES]: string[];
|
|
17
|
+
};
|
|
18
|
+
export declare class PartialResponse extends AbstractEntity<PartialResponseData> {
|
|
19
|
+
#private;
|
|
20
|
+
constructor(data: PartialResponseData);
|
|
21
|
+
get status(): number;
|
|
22
|
+
get error(): string;
|
|
23
|
+
get messages(): string[];
|
|
24
|
+
toJSON(): PartialResponseData;
|
|
25
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 _PartialResponse_status, _PartialResponse_error, _PartialResponse_messages;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PartialResponse = exports.PartialResponseFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("./abstractEntity");
|
|
17
|
+
/**
|
|
18
|
+
* Filter data values
|
|
19
|
+
*/
|
|
20
|
+
var PartialResponseFields;
|
|
21
|
+
(function (PartialResponseFields) {
|
|
22
|
+
PartialResponseFields["COLUMN_STATUS"] = "status";
|
|
23
|
+
PartialResponseFields["COLUMN_ERROR"] = "error";
|
|
24
|
+
PartialResponseFields["COLUMN_MESSAGES"] = "messages";
|
|
25
|
+
})(PartialResponseFields = exports.PartialResponseFields || (exports.PartialResponseFields = {}));
|
|
26
|
+
class PartialResponse extends abstractEntity_1.AbstractEntity {
|
|
27
|
+
constructor(data) {
|
|
28
|
+
super(data);
|
|
29
|
+
_PartialResponse_status.set(this, void 0);
|
|
30
|
+
_PartialResponse_error.set(this, void 0);
|
|
31
|
+
_PartialResponse_messages.set(this, void 0);
|
|
32
|
+
__classPrivateFieldSet(this, _PartialResponse_status, data['status'], "f");
|
|
33
|
+
__classPrivateFieldSet(this, _PartialResponse_error, data['error'], "f");
|
|
34
|
+
__classPrivateFieldSet(this, _PartialResponse_messages, data['messages'], "f");
|
|
35
|
+
}
|
|
36
|
+
get status() {
|
|
37
|
+
return __classPrivateFieldGet(this, _PartialResponse_status, "f");
|
|
38
|
+
}
|
|
39
|
+
get error() {
|
|
40
|
+
return __classPrivateFieldGet(this, _PartialResponse_error, "f");
|
|
41
|
+
}
|
|
42
|
+
get messages() {
|
|
43
|
+
return __classPrivateFieldGet(this, _PartialResponse_messages, "f");
|
|
44
|
+
}
|
|
45
|
+
toJSON() {
|
|
46
|
+
return {
|
|
47
|
+
[PartialResponseFields.COLUMN_STATUS]: this.status,
|
|
48
|
+
[PartialResponseFields.COLUMN_ERROR]: this.error,
|
|
49
|
+
[PartialResponseFields.COLUMN_MESSAGES]: this.messages,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.PartialResponse = PartialResponse;
|
|
54
|
+
_PartialResponse_status = new WeakMap(), _PartialResponse_error = new WeakMap(), _PartialResponse_messages = new WeakMap();
|
|
55
|
+
//# sourceMappingURL=partialResponse.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.
|
|
7
|
+
"version": "3.84.1-rc.bdj.1",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|