@arrowsphere/api-client 3.187.0-rc.fdi.3 → 3.187.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 +4 -0
- package/build/abstractRestfulClient.js +2 -6
- package/build/customers/customersClient.d.ts +0 -1
- package/build/exception/notFoundException.d.ts +1 -2
- package/build/exception/notFoundException.js +1 -2
- package/build/exception/publicApiClientException.d.ts +2 -2
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +4 -1
- package/build/licenses/entities/getLicense/licenseGetResult.js +11 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.187.0] - 2025.04.22
|
|
7
|
+
### Added
|
|
8
|
+
- [Licenses] add endDate to LicenseGetData type and LicenseGetResult class
|
|
9
|
+
|
|
6
10
|
## [3.186.0] - 2025.04.15
|
|
7
11
|
|
|
8
12
|
### Added
|
|
@@ -143,14 +143,10 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
143
143
|
}
|
|
144
144
|
const statusCode = response.status;
|
|
145
145
|
if (statusCode === 404) {
|
|
146
|
-
throw new exception_1.NotFoundException(
|
|
147
|
-
origin: `Resource not found on URL ${this.getUrl()}${this.basePath}${this.path}`,
|
|
148
|
-
});
|
|
146
|
+
throw new exception_1.NotFoundException(`Resource not found on URL ${this.getUrl()}`, response.data.error, statusCode);
|
|
149
147
|
}
|
|
150
148
|
if (statusCode >= 400 && statusCode <= 599) {
|
|
151
|
-
throw new exception_1.PublicApiClientException(
|
|
152
|
-
origin: `Error: status code: ${statusCode}. URL: ${this.getUrl()}${this.basePath}${this.path}`,
|
|
153
|
-
});
|
|
149
|
+
throw new exception_1.PublicApiClientException(`Error: status code: ${statusCode}. URL: ${this.getUrl()}`, response.data.error, statusCode);
|
|
154
150
|
}
|
|
155
151
|
return response.data;
|
|
156
152
|
}
|
|
@@ -106,7 +106,6 @@ export declare type APIResponseCustomerMigration = {
|
|
|
106
106
|
export interface APIResponseError {
|
|
107
107
|
status: number;
|
|
108
108
|
error: string;
|
|
109
|
-
messages?: string;
|
|
110
109
|
}
|
|
111
110
|
export declare type PatchCustomerContactPayload = {
|
|
112
111
|
[Property in keyof PostCustomerContactPayload]?: PostCustomerContactPayload[Property];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare class NotFoundException extends Error {
|
|
2
2
|
httpCode: number;
|
|
3
3
|
httpError: string;
|
|
4
|
-
|
|
5
|
-
constructor(message: string, httpError?: string, httpCode?: number, config?: Record<string, unknown>);
|
|
4
|
+
constructor(message: string, httpError?: string, httpCode?: number);
|
|
6
5
|
}
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NotFoundException = void 0;
|
|
4
4
|
class NotFoundException extends Error {
|
|
5
|
-
constructor(message, httpError = '', httpCode = 0
|
|
5
|
+
constructor(message, httpError = '', httpCode = 0) {
|
|
6
6
|
super(message);
|
|
7
7
|
this.httpCode = httpCode;
|
|
8
8
|
this.httpError = httpError;
|
|
9
|
-
this.config = config;
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
11
|
exports.NotFoundException = NotFoundException;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class PublicApiClientException extends Error {
|
|
2
2
|
httpCode: number;
|
|
3
3
|
httpError: string;
|
|
4
|
-
config?:
|
|
5
|
-
constructor(message: string, httpError?: string, httpCode?: number, config?:
|
|
4
|
+
config?: unknown;
|
|
5
|
+
constructor(message: string, httpError?: string, httpCode?: number, config?: {});
|
|
6
6
|
}
|
|
@@ -63,7 +63,8 @@ export declare enum LicenseGetFields {
|
|
|
63
63
|
COLUMN_RELATION = "relation",
|
|
64
64
|
COLUMN_MARKET_SEGMENT = "marketSegment",
|
|
65
65
|
COLUMN_CONFIGS = "configs",
|
|
66
|
-
COLUMN_WARNINGS = "warnings"
|
|
66
|
+
COLUMN_WARNINGS = "warnings",
|
|
67
|
+
COLUMN_END_DATE = "end_date"
|
|
67
68
|
}
|
|
68
69
|
export declare type LicenseGetData = {
|
|
69
70
|
[LicenseGetFields.COLUMN_ADDITIONAL_INFORMATION]?: Record<string, unknown>;
|
|
@@ -116,6 +117,7 @@ export declare type LicenseGetData = {
|
|
|
116
117
|
[LicenseGetFields.COLUMN_MARKET_SEGMENT]?: string | null;
|
|
117
118
|
[LicenseGetFields.COLUMN_CONFIGS]?: Array<ConfigFindResultData> | null;
|
|
118
119
|
[LicenseGetFields.COLUMN_WARNINGS]?: Array<WarningFindResultData> | null;
|
|
120
|
+
[LicenseGetFields.COLUMN_END_DATE]: string;
|
|
119
121
|
};
|
|
120
122
|
export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
121
123
|
#private;
|
|
@@ -170,5 +172,6 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
|
170
172
|
get marketSegment(): string | null | undefined;
|
|
171
173
|
get configs(): Array<ConfigFindResult> | null | undefined;
|
|
172
174
|
get warnings(): Array<WarningFindResult> | null | undefined;
|
|
175
|
+
get endDate(): string;
|
|
173
176
|
toJSON(): LicenseGetData;
|
|
174
177
|
}
|
|
@@ -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_additionalInformation, _LicenseGetResult_classification, _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_marketplace, _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_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment, _LicenseGetResult_configs, _LicenseGetResult_warnings;
|
|
13
|
+
var _LicenseGetResult_additionalInformation, _LicenseGetResult_classification, _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_marketplace, _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_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment, _LicenseGetResult_configs, _LicenseGetResult_warnings, _LicenseGetResult_endDate;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseGetResult = exports.LicenseGetFields = void 0;
|
|
16
16
|
const actionsGetResult_1 = require("./actionsGetResult");
|
|
@@ -80,10 +80,11 @@ var LicenseGetFields;
|
|
|
80
80
|
LicenseGetFields["COLUMN_MARKET_SEGMENT"] = "marketSegment";
|
|
81
81
|
LicenseGetFields["COLUMN_CONFIGS"] = "configs";
|
|
82
82
|
LicenseGetFields["COLUMN_WARNINGS"] = "warnings";
|
|
83
|
+
LicenseGetFields["COLUMN_END_DATE"] = "end_date";
|
|
83
84
|
})(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
|
|
84
85
|
class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
85
86
|
constructor(licenseGetDataInput) {
|
|
86
|
-
var _a, _b, _c, _d, _e;
|
|
87
|
+
var _a, _b, _c, _d, _e, _f;
|
|
87
88
|
super(licenseGetDataInput);
|
|
88
89
|
_LicenseGetResult_additionalInformation.set(this, void 0);
|
|
89
90
|
_LicenseGetResult_classification.set(this, void 0);
|
|
@@ -135,6 +136,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
135
136
|
_LicenseGetResult_marketSegment.set(this, void 0);
|
|
136
137
|
_LicenseGetResult_configs.set(this, void 0);
|
|
137
138
|
_LicenseGetResult_warnings.set(this, void 0);
|
|
139
|
+
_LicenseGetResult_endDate.set(this, void 0);
|
|
138
140
|
__classPrivateFieldSet(this, _LicenseGetResult_additionalInformation, licenseGetDataInput[LicenseGetFields.COLUMN_ADDITIONAL_INFORMATION], "f");
|
|
139
141
|
__classPrivateFieldSet(this, _LicenseGetResult_classification, licenseGetDataInput[LicenseGetFields.COLUMN_CLASSIFICATION], "f");
|
|
140
142
|
__classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
|
|
@@ -199,6 +201,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
199
201
|
__classPrivateFieldSet(this, _LicenseGetResult_marketSegment, licenseGetDataInput[LicenseGetFields.COLUMN_MARKET_SEGMENT], "f");
|
|
200
202
|
__classPrivateFieldSet(this, _LicenseGetResult_configs, (_d = licenseGetDataInput[LicenseGetFields.COLUMN_CONFIGS]) === null || _d === void 0 ? void 0 : _d.map((configData) => new configFindResult_1.ConfigFindResult(configData)), "f");
|
|
201
203
|
__classPrivateFieldSet(this, _LicenseGetResult_warnings, (_e = licenseGetDataInput[LicenseGetFields.COLUMN_WARNINGS]) === null || _e === void 0 ? void 0 : _e.map((warningData) => new warningFindResult_1.WarningFindResult(warningData)), "f");
|
|
204
|
+
__classPrivateFieldSet(this, _LicenseGetResult_endDate, (_f = licenseGetDataInput[LicenseGetFields.COLUMN_END_DATE]) !== null && _f !== void 0 ? _f : '', "f");
|
|
202
205
|
}
|
|
203
206
|
get classification() {
|
|
204
207
|
return __classPrivateFieldGet(this, _LicenseGetResult_classification, "f");
|
|
@@ -353,6 +356,9 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
353
356
|
get warnings() {
|
|
354
357
|
return __classPrivateFieldGet(this, _LicenseGetResult_warnings, "f");
|
|
355
358
|
}
|
|
359
|
+
get endDate() {
|
|
360
|
+
return __classPrivateFieldGet(this, _LicenseGetResult_endDate, "f");
|
|
361
|
+
}
|
|
356
362
|
toJSON() {
|
|
357
363
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
358
364
|
return {
|
|
@@ -376,7 +382,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
376
382
|
[LicenseGetFields.COLUMN_ACTIVATION_DATETIME]: this.activationDatetime,
|
|
377
383
|
[LicenseGetFields.COLUMN_EXPIRY_DATETIME]: this.expiryDatetime,
|
|
378
384
|
[LicenseGetFields.COLUMN_AUTO_RENEW]: this.autoRenew,
|
|
379
|
-
[LicenseGetFields.COLUMN_MARKETPLACE]:
|
|
385
|
+
[LicenseGetFields.COLUMN_MARKETPLACE]: this.marketplace,
|
|
380
386
|
[LicenseGetFields.COLUMN_MESSAGE]: this.message,
|
|
381
387
|
[LicenseGetFields.COLUMN_ACTIONS]: (_b = this.actions) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
382
388
|
[LicenseGetFields.COLUMN_ACTION_MESSAGES]: (_c = this.actionMessages) === null || _c === void 0 ? void 0 : _c.map((result) => result.toJSON()),
|
|
@@ -408,9 +414,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
408
414
|
[LicenseGetFields.COLUMN_MARKET_SEGMENT]: this.marketSegment,
|
|
409
415
|
[LicenseGetFields.COLUMN_CONFIGS]: (_k = this.configs) === null || _k === void 0 ? void 0 : _k.map((config) => config.toJSON()),
|
|
410
416
|
[LicenseGetFields.COLUMN_WARNINGS]: (_l = this.warnings) === null || _l === void 0 ? void 0 : _l.map((warning) => warning.toJSON()),
|
|
417
|
+
[LicenseGetFields.COLUMN_END_DATE]: this.endDate,
|
|
411
418
|
};
|
|
412
419
|
}
|
|
413
420
|
}
|
|
414
421
|
exports.LicenseGetResult = LicenseGetResult;
|
|
415
|
-
_LicenseGetResult_additionalInformation = new WeakMap(), _LicenseGetResult_classification = new WeakMap(), _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_marketplace = 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_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap(), _LicenseGetResult_configs = new WeakMap(), _LicenseGetResult_warnings = new WeakMap();
|
|
422
|
+
_LicenseGetResult_additionalInformation = new WeakMap(), _LicenseGetResult_classification = new WeakMap(), _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_marketplace = 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_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap(), _LicenseGetResult_configs = new WeakMap(), _LicenseGetResult_warnings = new WeakMap(), _LicenseGetResult_endDate = new WeakMap();
|
|
416
423
|
//# sourceMappingURL=licenseGetResult.js.map
|
package/package.json
CHANGED