@arrowsphere/api-client 3.117.0-rc-bdj.2 → 3.117.0
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 +5 -0
- package/build/licenses/entities/history/couponCodeHistoryResult.d.ts +16 -0
- package/build/licenses/entities/history/couponCodeHistoryResult.js +45 -0
- package/build/licenses/entities/history/licenceCouponCodeHistoryResult.d.ts +14 -0
- package/build/licenses/entities/history/licenceCouponCodeHistoryResult.js +39 -0
- package/build/licenses/index.d.ts +2 -0
- package/build/licenses/index.js +2 -0
- package/build/licenses/licensesClient.d.ts +6 -0
- package/build/licenses/licensesClient.js +9 -0
- package/build/partner/partnerClient.d.ts +0 -21
- package/build/partner/partnerClient.js +1 -28
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
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.117.0] - 2024.05.22
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [licenses] Adds get coupoun code history endpoint
|
|
10
|
+
|
|
6
11
|
## [3.116.0] - 2024.05.16
|
|
7
12
|
|
|
8
13
|
### Added
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum CouponCodeHistoryResultFields {
|
|
3
|
+
COLUMN_CODE = "code",
|
|
4
|
+
COLUMN_UPDATED_AT = "updated_at"
|
|
5
|
+
}
|
|
6
|
+
export declare type CouponCodeHistoryResultData = {
|
|
7
|
+
[CouponCodeHistoryResultFields.COLUMN_CODE]: string;
|
|
8
|
+
[CouponCodeHistoryResultFields.COLUMN_UPDATED_AT]: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class CouponCodeHistoryResult extends AbstractEntity<CouponCodeHistoryResultData> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(dataInput: CouponCodeHistoryResultData);
|
|
13
|
+
get code(): string;
|
|
14
|
+
get updatedAt(): string;
|
|
15
|
+
toJSON(): CouponCodeHistoryResultData;
|
|
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 _CouponCodeHistoryResult_code, _CouponCodeHistoryResult_updated_at;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CouponCodeHistoryResult = exports.CouponCodeHistoryResultFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var CouponCodeHistoryResultFields;
|
|
18
|
+
(function (CouponCodeHistoryResultFields) {
|
|
19
|
+
CouponCodeHistoryResultFields["COLUMN_CODE"] = "code";
|
|
20
|
+
CouponCodeHistoryResultFields["COLUMN_UPDATED_AT"] = "updated_at";
|
|
21
|
+
})(CouponCodeHistoryResultFields = exports.CouponCodeHistoryResultFields || (exports.CouponCodeHistoryResultFields = {}));
|
|
22
|
+
class CouponCodeHistoryResult extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(dataInput) {
|
|
24
|
+
super(dataInput);
|
|
25
|
+
_CouponCodeHistoryResult_code.set(this, void 0);
|
|
26
|
+
_CouponCodeHistoryResult_updated_at.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _CouponCodeHistoryResult_code, dataInput[CouponCodeHistoryResultFields.COLUMN_CODE], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _CouponCodeHistoryResult_updated_at, dataInput[CouponCodeHistoryResultFields.COLUMN_UPDATED_AT], "f");
|
|
29
|
+
}
|
|
30
|
+
get code() {
|
|
31
|
+
return __classPrivateFieldGet(this, _CouponCodeHistoryResult_code, "f");
|
|
32
|
+
}
|
|
33
|
+
get updatedAt() {
|
|
34
|
+
return __classPrivateFieldGet(this, _CouponCodeHistoryResult_updated_at, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[CouponCodeHistoryResultFields.COLUMN_CODE]: this.code,
|
|
39
|
+
[CouponCodeHistoryResultFields.COLUMN_UPDATED_AT]: this.updatedAt,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.CouponCodeHistoryResult = CouponCodeHistoryResult;
|
|
44
|
+
_CouponCodeHistoryResult_code = new WeakMap(), _CouponCodeHistoryResult_updated_at = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=couponCodeHistoryResult.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
import { CouponCodeHistoryResult, CouponCodeHistoryResultData } from './couponCodeHistoryResult';
|
|
3
|
+
export declare enum LicenceCouponCodeHistoryResultFields {
|
|
4
|
+
COLUMN_COUPON_CODES = "couponCodes"
|
|
5
|
+
}
|
|
6
|
+
export declare type LicenceCouponCodeHistoryResultData = {
|
|
7
|
+
[LicenceCouponCodeHistoryResultFields.COLUMN_COUPON_CODES]: CouponCodeHistoryResultData[];
|
|
8
|
+
};
|
|
9
|
+
export declare class LicenceCouponCodeHistoryResult extends AbstractEntity<LicenceCouponCodeHistoryResultData> {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(getLicenseHistoryResultDataInput: LicenceCouponCodeHistoryResultData);
|
|
12
|
+
get couponCodes(): CouponCodeHistoryResult[];
|
|
13
|
+
toJSON(): LicenceCouponCodeHistoryResultData;
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 _LicenceCouponCodeHistoryResult_couponCodes;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.LicenceCouponCodeHistoryResult = exports.LicenceCouponCodeHistoryResultFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
const couponCodeHistoryResult_1 = require("./couponCodeHistoryResult");
|
|
18
|
+
var LicenceCouponCodeHistoryResultFields;
|
|
19
|
+
(function (LicenceCouponCodeHistoryResultFields) {
|
|
20
|
+
LicenceCouponCodeHistoryResultFields["COLUMN_COUPON_CODES"] = "couponCodes";
|
|
21
|
+
})(LicenceCouponCodeHistoryResultFields = exports.LicenceCouponCodeHistoryResultFields || (exports.LicenceCouponCodeHistoryResultFields = {}));
|
|
22
|
+
class LicenceCouponCodeHistoryResult extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(getLicenseHistoryResultDataInput) {
|
|
24
|
+
super(getLicenseHistoryResultDataInput);
|
|
25
|
+
_LicenceCouponCodeHistoryResult_couponCodes.set(this, void 0);
|
|
26
|
+
__classPrivateFieldSet(this, _LicenceCouponCodeHistoryResult_couponCodes, getLicenseHistoryResultDataInput[LicenceCouponCodeHistoryResultFields.COLUMN_COUPON_CODES].map((result) => new couponCodeHistoryResult_1.CouponCodeHistoryResult(result)), "f");
|
|
27
|
+
}
|
|
28
|
+
get couponCodes() {
|
|
29
|
+
return __classPrivateFieldGet(this, _LicenceCouponCodeHistoryResult_couponCodes, "f");
|
|
30
|
+
}
|
|
31
|
+
toJSON() {
|
|
32
|
+
return {
|
|
33
|
+
[LicenceCouponCodeHistoryResultFields.COLUMN_COUPON_CODES]: this.couponCodes.map((result) => result.toJSON()),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.LicenceCouponCodeHistoryResult = LicenceCouponCodeHistoryResult;
|
|
38
|
+
_LicenceCouponCodeHistoryResult_couponCodes = new WeakMap();
|
|
39
|
+
//# sourceMappingURL=licenceCouponCodeHistoryResult.js.map
|
|
@@ -17,6 +17,8 @@ export * from './entities/getLicense/orderGetResult';
|
|
|
17
17
|
export * from './entities/getResult/getLicenseResult';
|
|
18
18
|
export * from './entities/history/actionHistoryResult';
|
|
19
19
|
export * from './entities/history/licenceHistoryResult';
|
|
20
|
+
export * from './entities/history/couponCodeHistoryResult';
|
|
21
|
+
export * from './entities/history/licenceCouponCodeHistoryResult';
|
|
20
22
|
export * from './entities/license/activeSeatsFindResult';
|
|
21
23
|
export * from './entities/license/configFindResult';
|
|
22
24
|
export * from './entities/license/conversionSkuResult';
|
package/build/licenses/index.js
CHANGED
|
@@ -33,6 +33,8 @@ __exportStar(require("./entities/getLicense/orderGetResult"), exports);
|
|
|
33
33
|
__exportStar(require("./entities/getResult/getLicenseResult"), exports);
|
|
34
34
|
__exportStar(require("./entities/history/actionHistoryResult"), exports);
|
|
35
35
|
__exportStar(require("./entities/history/licenceHistoryResult"), exports);
|
|
36
|
+
__exportStar(require("./entities/history/couponCodeHistoryResult"), exports);
|
|
37
|
+
__exportStar(require("./entities/history/licenceCouponCodeHistoryResult"), exports);
|
|
36
38
|
__exportStar(require("./entities/license/activeSeatsFindResult"), exports);
|
|
37
39
|
__exportStar(require("./entities/license/configFindResult"), exports);
|
|
38
40
|
__exportStar(require("./entities/license/conversionSkuResult"), exports);
|
|
@@ -27,6 +27,7 @@ import { EndCustomerOrganisationUnitDataKeywords, EndCustomerOrganizationUnitFil
|
|
|
27
27
|
import { ConsumptionDailyPrediction } from '../consumption';
|
|
28
28
|
import { GetScheduledTasksResult } from './entities/schedule/getScheduledTasksResult';
|
|
29
29
|
import { GetScheduleTaskResult } from './entities/schedule/getScheduleTaskResult';
|
|
30
|
+
import { LicenceCouponCodeHistoryResult } from './entities/history/licenceCouponCodeHistoryResult';
|
|
30
31
|
/**
|
|
31
32
|
* Parameters passable to the request for refining search.
|
|
32
33
|
*/
|
|
@@ -303,6 +304,10 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
303
304
|
* The path of license history
|
|
304
305
|
*/
|
|
305
306
|
private GET_LICENSE_HISTORY_PATH;
|
|
307
|
+
/**
|
|
308
|
+
* The path of license coupon code history
|
|
309
|
+
*/
|
|
310
|
+
private GET_LICENSE_COUPON_CODE_HISTORY_PATH;
|
|
306
311
|
/**
|
|
307
312
|
* The path of cancel license auto-renew
|
|
308
313
|
*/
|
|
@@ -388,6 +393,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
388
393
|
cancelLicense(licenseReference: string, payload?: PutCancel, parameters?: Parameters): Promise<void>;
|
|
389
394
|
updateFriendlyName(licenseReference: string, putData: PutFriendlyName, parameters?: Parameters): Promise<void>;
|
|
390
395
|
getHistory(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenceHistoryResult>>;
|
|
396
|
+
getCouponCodeHistory(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenceCouponCodeHistoryResult>>;
|
|
391
397
|
cancelAutoRenew(licenseReference: string, payload?: PutCancelAutoRenew, parameters?: Parameters): Promise<void>;
|
|
392
398
|
reactivateAutoRenew(licenseReference: string, payload?: PutReactivateAutoRenew, parameters?: Parameters): Promise<void>;
|
|
393
399
|
upgrade(licenseReference: string, payload: PostUpgrade, parameters?: Parameters): Promise<GetResult<UpgradeResult>>;
|
|
@@ -21,6 +21,7 @@ const bulkArguments_1 = require("./types/bulkArguments");
|
|
|
21
21
|
const consumption_1 = require("../consumption");
|
|
22
22
|
const getScheduledTasksResult_1 = require("./entities/schedule/getScheduledTasksResult");
|
|
23
23
|
const getScheduleTaskResult_1 = require("./entities/schedule/getScheduleTaskResult");
|
|
24
|
+
const licenceCouponCodeHistoryResult_1 = require("./entities/history/licenceCouponCodeHistoryResult");
|
|
24
25
|
/**
|
|
25
26
|
* Parameters passable to the request for refining search.
|
|
26
27
|
*/
|
|
@@ -176,6 +177,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
176
177
|
* The path of license history
|
|
177
178
|
*/
|
|
178
179
|
this.GET_LICENSE_HISTORY_PATH = '/history';
|
|
180
|
+
/**
|
|
181
|
+
* The path of license coupon code history
|
|
182
|
+
*/
|
|
183
|
+
this.GET_LICENSE_COUPON_CODE_HISTORY_PATH = '/couponCodeHistory';
|
|
179
184
|
/**
|
|
180
185
|
* The path of cancel license auto-renew
|
|
181
186
|
*/
|
|
@@ -387,6 +392,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
387
392
|
this.path = `/${licenseReference}${this.GET_LICENSE_HISTORY_PATH}`;
|
|
388
393
|
return new getResult_1.GetResult(licenceHistoryResult_1.LicenceHistoryResult, await this.get(parameters));
|
|
389
394
|
}
|
|
395
|
+
async getCouponCodeHistory(licenseReference, parameters = {}) {
|
|
396
|
+
this.path = `/${licenseReference}${this.GET_LICENSE_COUPON_CODE_HISTORY_PATH}`;
|
|
397
|
+
return new getResult_1.GetResult(licenceCouponCodeHistoryResult_1.LicenceCouponCodeHistoryResult, await this.get(parameters));
|
|
398
|
+
}
|
|
390
399
|
async cancelAutoRenew(licenseReference, payload, parameters = {}) {
|
|
391
400
|
this.path = `/${licenseReference}${this.CANCEL_AUTO_RENEW_PATH}`;
|
|
392
401
|
return await this.put(payload, parameters);
|
|
@@ -1,26 +1,5 @@
|
|
|
1
1
|
import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
|
|
2
|
-
export declare enum PatchUserPayloadFields {
|
|
3
|
-
COLUMN_FIRSTNAME = "firstname",
|
|
4
|
-
COLUMN_LASTNAME = "lastname",
|
|
5
|
-
COLUMN_PHONE = "phone",
|
|
6
|
-
COLUMN_TITLE = "title",
|
|
7
|
-
COLUMN_IS_LOCKED = "isLocked",
|
|
8
|
-
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef"
|
|
9
|
-
}
|
|
10
|
-
export declare type PatchUserPayload = {
|
|
11
|
-
[PatchUserPayloadFields.COLUMN_FIRSTNAME]?: string;
|
|
12
|
-
[PatchUserPayloadFields.COLUMN_LASTNAME]?: string;
|
|
13
|
-
[PatchUserPayloadFields.COLUMN_PHONE]?: string;
|
|
14
|
-
[PatchUserPayloadFields.COLUMN_TITLE]?: string;
|
|
15
|
-
[PatchUserPayloadFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type LockUserPayload = {
|
|
18
|
-
[PatchUserPayloadFields.COLUMN_IS_LOCKED]?: boolean;
|
|
19
|
-
};
|
|
20
2
|
export declare class PartnerClient extends AbstractRestfulClient {
|
|
21
3
|
protected basePath: string;
|
|
22
4
|
deletePartner(partnerReference: string, parameters?: Parameters): Promise<void>;
|
|
23
|
-
patchUser(partnerReference: string, userReference: string, payload: PatchUserPayload, parameters?: Parameters): Promise<void>;
|
|
24
|
-
lockUser(partnerReference: string, userReference: string, parameters?: Parameters): Promise<void>;
|
|
25
|
-
unlockUser(partnerReference: string, userReference: string, parameters?: Parameters): Promise<void>;
|
|
26
5
|
}
|
|
@@ -1,16 +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 PatchUserPayloadFields;
|
|
6
|
-
(function (PatchUserPayloadFields) {
|
|
7
|
-
PatchUserPayloadFields["COLUMN_FIRSTNAME"] = "firstname";
|
|
8
|
-
PatchUserPayloadFields["COLUMN_LASTNAME"] = "lastname";
|
|
9
|
-
PatchUserPayloadFields["COLUMN_PHONE"] = "phone";
|
|
10
|
-
PatchUserPayloadFields["COLUMN_TITLE"] = "title";
|
|
11
|
-
PatchUserPayloadFields["COLUMN_IS_LOCKED"] = "isLocked";
|
|
12
|
-
PatchUserPayloadFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
13
|
-
})(PatchUserPayloadFields = exports.PatchUserPayloadFields || (exports.PatchUserPayloadFields = {}));
|
|
14
5
|
class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
15
6
|
constructor() {
|
|
16
7
|
super(...arguments);
|
|
@@ -20,24 +11,6 @@ class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
20
11
|
this.path = `/${partnerReference}`;
|
|
21
12
|
return this.delete(parameters);
|
|
22
13
|
}
|
|
23
|
-
async patchUser(partnerReference, userReference, payload, parameters = {}) {
|
|
24
|
-
this.path = `/${partnerReference}/users/${userReference}`;
|
|
25
|
-
return await this.patch(payload, parameters);
|
|
26
|
-
}
|
|
27
|
-
async lockUser(partnerReference, userReference, parameters = {}) {
|
|
28
|
-
this.path = `/${partnerReference}/users/${userReference}/lock`;
|
|
29
|
-
const payload = {
|
|
30
|
-
[PatchUserPayloadFields.COLUMN_IS_LOCKED]: true,
|
|
31
|
-
};
|
|
32
|
-
return await this.patch(payload, parameters);
|
|
33
|
-
}
|
|
34
|
-
async unlockUser(partnerReference, userReference, parameters = {}) {
|
|
35
|
-
this.path = `/${partnerReference}/users/${userReference}/lock`;
|
|
36
|
-
const payload = {
|
|
37
|
-
[PatchUserPayloadFields.COLUMN_IS_LOCKED]: false,
|
|
38
|
-
};
|
|
39
|
-
return await this.patch(payload, parameters);
|
|
40
|
-
}
|
|
41
14
|
}
|
|
42
15
|
exports.PartnerClient = PartnerClient;
|
|
43
16
|
//# sourceMappingURL=partnerClient.js.map
|
package/package.json
CHANGED