@arrowsphere/api-client 3.63.0-rc.zss.1 → 3.63.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 +6 -0
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +1 -5
- package/build/licenses/entities/getLicense/licenseGetResult.js +2 -10
- package/build/licenses/entities/license/licenseFindResult.d.ts +0 -7
- package/build/licenses/entities/license/licenseFindResult.js +4 -14
- package/build/licenses/index.d.ts +0 -1
- package/build/licenses/index.js +0 -1
- package/build/licenses/licensesClient.d.ts +16 -11
- package/build/licenses/licensesClient.js +33 -76
- package/build/wellArchitected/register/entity/registrationLink.d.ts +3 -0
- package/build/wellArchitected/register/entity/registrationLink.js +9 -2
- package/package.json +1 -1
- package/build/licenses/entities/license/securityFindResult.d.ts +0 -23
- package/build/licenses/entities/license/securityFindResult.js +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.63.0] - 2023-11-13
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- Add ExtraParams to the RegisterLink type
|
|
10
|
+
|
|
11
|
+
|
|
6
12
|
## [3.62.0] - 2023-11-08
|
|
7
13
|
|
|
8
14
|
### Changed
|
|
@@ -4,7 +4,6 @@ import { OrderGetData, OrderGetResult } from './orderGetResult';
|
|
|
4
4
|
import { LicensePriceGetData, LicensePriceGetResult } from './licensePriceGetResult';
|
|
5
5
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
6
6
|
import { ActiveSeatsFindResult, ActiveSeatsFindResultData } from '../license/activeSeatsFindResult';
|
|
7
|
-
import { SecurityFindResult, SecurityFindResultData } from '../license/securityFindResult';
|
|
8
7
|
export declare enum LicenseGetFields {
|
|
9
8
|
COLUMN_LICENSE_ID = "license_id",
|
|
10
9
|
COLUMN_PARENT_LICENSE_ID = "parent_license_id",
|
|
@@ -36,8 +35,7 @@ export declare enum LicenseGetFields {
|
|
|
36
35
|
COLUMN_PROGRAM = "program",
|
|
37
36
|
COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM = "associatedSubscriptionProgram",
|
|
38
37
|
COLUMN_PRICE = "price",
|
|
39
|
-
COLUMN_ARROW_SUB_CATEGORIES = "arrowSubCategories"
|
|
40
|
-
COLUMN_SECURITY = "security"
|
|
38
|
+
COLUMN_ARROW_SUB_CATEGORIES = "arrowSubCategories"
|
|
41
39
|
}
|
|
42
40
|
export declare type LicenseGetData = {
|
|
43
41
|
[LicenseGetFields.COLUMN_LICENSE_ID]: string;
|
|
@@ -53,7 +51,6 @@ export declare type LicenseGetData = {
|
|
|
53
51
|
[LicenseGetFields.COLUMN_NAME]: string;
|
|
54
52
|
[LicenseGetFields.COLUMN_SEATS]: number;
|
|
55
53
|
[LicenseGetFields.COLUMN_ACTIVE_SEATS]: ActiveSeatsFindResultData;
|
|
56
|
-
[LicenseGetFields.COLUMN_SECURITY]: SecurityFindResultData;
|
|
57
54
|
[LicenseGetFields.COLUMN_ACTIVATION_DATETIME]: string | null;
|
|
58
55
|
[LicenseGetFields.COLUMN_EXPIRY_DATETIME]: string | null;
|
|
59
56
|
[LicenseGetFields.COLUMN_AUTO_RENEW]?: boolean;
|
|
@@ -89,7 +86,6 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
|
89
86
|
get name(): string;
|
|
90
87
|
get seats(): number;
|
|
91
88
|
get activeSeats(): ActiveSeatsFindResult;
|
|
92
|
-
get security(): SecurityFindResult;
|
|
93
89
|
get activationDatetime(): string | null;
|
|
94
90
|
get expiryDatetime(): string | null;
|
|
95
91
|
get autoRenew(): boolean | undefined;
|
|
@@ -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,
|
|
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_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;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseGetResult = exports.LicenseGetFields = void 0;
|
|
16
16
|
const actionsGetResult_1 = require("./actionsGetResult");
|
|
@@ -19,7 +19,6 @@ const orderGetResult_1 = require("./orderGetResult");
|
|
|
19
19
|
const licensePriceGetResult_1 = require("./licensePriceGetResult");
|
|
20
20
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
21
21
|
const activeSeatsFindResult_1 = require("../license/activeSeatsFindResult");
|
|
22
|
-
const securityFindResult_1 = require("../license/securityFindResult");
|
|
23
22
|
var LicenseGetFields;
|
|
24
23
|
(function (LicenseGetFields) {
|
|
25
24
|
LicenseGetFields["COLUMN_LICENSE_ID"] = "license_id";
|
|
@@ -53,7 +52,6 @@ var LicenseGetFields;
|
|
|
53
52
|
LicenseGetFields["COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM"] = "associatedSubscriptionProgram";
|
|
54
53
|
LicenseGetFields["COLUMN_PRICE"] = "price";
|
|
55
54
|
LicenseGetFields["COLUMN_ARROW_SUB_CATEGORIES"] = "arrowSubCategories";
|
|
56
|
-
LicenseGetFields["COLUMN_SECURITY"] = "security";
|
|
57
55
|
})(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
|
|
58
56
|
class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
59
57
|
constructor(licenseGetDataInput) {
|
|
@@ -72,7 +70,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
72
70
|
_LicenseGetResult_name.set(this, void 0);
|
|
73
71
|
_LicenseGetResult_seats.set(this, void 0);
|
|
74
72
|
_LicenseGetResult_activeSeats.set(this, void 0);
|
|
75
|
-
_LicenseGetResult_security.set(this, void 0);
|
|
76
73
|
_LicenseGetResult_activation_datetime.set(this, void 0);
|
|
77
74
|
_LicenseGetResult_expiry_datetime.set(this, void 0);
|
|
78
75
|
_LicenseGetResult_autoRenew.set(this, void 0);
|
|
@@ -104,7 +101,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
104
101
|
__classPrivateFieldSet(this, _LicenseGetResult_name, licenseGetDataInput[LicenseGetFields.COLUMN_NAME], "f");
|
|
105
102
|
__classPrivateFieldSet(this, _LicenseGetResult_seats, licenseGetDataInput[LicenseGetFields.COLUMN_SEATS], "f");
|
|
106
103
|
__classPrivateFieldSet(this, _LicenseGetResult_activeSeats, new activeSeatsFindResult_1.ActiveSeatsFindResult(licenseGetDataInput[LicenseGetFields.COLUMN_ACTIVE_SEATS]), "f");
|
|
107
|
-
__classPrivateFieldSet(this, _LicenseGetResult_security, new securityFindResult_1.SecurityFindResult(licenseGetDataInput[LicenseGetFields.COLUMN_SECURITY]), "f");
|
|
108
104
|
__classPrivateFieldSet(this, _LicenseGetResult_activation_datetime, licenseGetDataInput[LicenseGetFields.COLUMN_ACTIVATION_DATETIME], "f");
|
|
109
105
|
__classPrivateFieldSet(this, _LicenseGetResult_expiry_datetime, licenseGetDataInput[LicenseGetFields.COLUMN_EXPIRY_DATETIME], "f");
|
|
110
106
|
__classPrivateFieldSet(this, _LicenseGetResult_autoRenew, licenseGetDataInput[LicenseGetFields.COLUMN_AUTO_RENEW], "f");
|
|
@@ -165,9 +161,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
165
161
|
get activeSeats() {
|
|
166
162
|
return __classPrivateFieldGet(this, _LicenseGetResult_activeSeats, "f");
|
|
167
163
|
}
|
|
168
|
-
get security() {
|
|
169
|
-
return __classPrivateFieldGet(this, _LicenseGetResult_security, "f");
|
|
170
|
-
}
|
|
171
164
|
get activationDatetime() {
|
|
172
165
|
return __classPrivateFieldGet(this, _LicenseGetResult_activation_datetime, "f");
|
|
173
166
|
}
|
|
@@ -238,7 +231,6 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
238
231
|
[LicenseGetFields.COLUMN_NAME]: this.name,
|
|
239
232
|
[LicenseGetFields.COLUMN_SEATS]: this.seats,
|
|
240
233
|
[LicenseGetFields.COLUMN_ACTIVE_SEATS]: this.activeSeats.toJSON(),
|
|
241
|
-
[LicenseGetFields.COLUMN_SECURITY]: this.security.toJSON(),
|
|
242
234
|
[LicenseGetFields.COLUMN_ACTIVATION_DATETIME]: this.activationDatetime,
|
|
243
235
|
[LicenseGetFields.COLUMN_EXPIRY_DATETIME]: this.expiryDatetime,
|
|
244
236
|
[LicenseGetFields.COLUMN_AUTO_RENEW]: this.autoRenew,
|
|
@@ -262,5 +254,5 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
262
254
|
}
|
|
263
255
|
}
|
|
264
256
|
exports.LicenseGetResult = LicenseGetResult;
|
|
265
|
-
_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(),
|
|
257
|
+
_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_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();
|
|
266
258
|
//# sourceMappingURL=licenseGetResult.js.map
|
|
@@ -5,7 +5,6 @@ import { ConfigFindResult, ConfigFindResultData, ConfigFindResultDataFiltersPara
|
|
|
5
5
|
import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
|
|
6
6
|
import { WarningFindResult, WarningFindResultData, WarningFindResultDataFiltersParameters, WarningFindResultDataKeywords, WarningFindResultDataSortParameters } from './warningFindResult';
|
|
7
7
|
import { PriceFindResult, PriceFindResultData, PriceFindResultDataFiltersParameters, PriceFindResultDataKeywords, PriceFindResutDataSortParameters } from './priceFindResult';
|
|
8
|
-
import { SecurityFindResult, SecurityFindResultData, SecurityFindResultDataFiltersParameters, SecurityFindResultDataKeywords, SecurityFindResultDataSortParameters } from './securityFindResult';
|
|
9
8
|
/**
|
|
10
9
|
* Highlight response object.
|
|
11
10
|
*/
|
|
@@ -42,7 +41,6 @@ export declare enum LicenseFindResultFields {
|
|
|
42
41
|
COLUMN_RESELLER_NAME = "reseller_name",
|
|
43
42
|
COLUMN_RESELLER_REF = "reseller_ref",
|
|
44
43
|
COLUMN_SEAT = "seat",
|
|
45
|
-
COLUMN_SECURITY = "security",
|
|
46
44
|
COLUMN_SERVICE_REF = "service_ref",
|
|
47
45
|
COLUMN_SKU = "sku",
|
|
48
46
|
COLUMN_START_DATE = "start_date",
|
|
@@ -89,7 +87,6 @@ export declare type LicenseFindResultData = {
|
|
|
89
87
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]: string;
|
|
90
88
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]: string;
|
|
91
89
|
[LicenseFindResultFields.COLUMN_SEAT]: number;
|
|
92
|
-
[LicenseFindResultFields.COLUMN_SECURITY]: SecurityFindResultData | null;
|
|
93
90
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]: string;
|
|
94
91
|
[LicenseFindResultFields.COLUMN_SKU]: string;
|
|
95
92
|
[LicenseFindResultFields.COLUMN_START_DATE]: string;
|
|
@@ -133,7 +130,6 @@ export declare type LicenceFindDataKeywords = {
|
|
|
133
130
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]?: DataKeywords;
|
|
134
131
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]?: DataKeywords;
|
|
135
132
|
[LicenseFindResultFields.COLUMN_SEAT]?: DataKeywords;
|
|
136
|
-
[LicenseFindResultFields.COLUMN_SECURITY]?: SecurityFindResultDataKeywords;
|
|
137
133
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]?: DataKeywords;
|
|
138
134
|
[LicenseFindResultFields.COLUMN_SKU]?: DataKeywords;
|
|
139
135
|
[LicenseFindResultFields.COLUMN_START_DATE]?: DataKeywords;
|
|
@@ -176,7 +172,6 @@ export declare type LicenceFindDataSortParameters = {
|
|
|
176
172
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]?: SortParameters;
|
|
177
173
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]?: SortParameters;
|
|
178
174
|
[LicenseFindResultFields.COLUMN_SEAT]?: SortParameters;
|
|
179
|
-
[LicenseFindResultFields.COLUMN_SECURITY]?: SecurityFindResultDataSortParameters;
|
|
180
175
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]?: SortParameters;
|
|
181
176
|
[LicenseFindResultFields.COLUMN_SKU]?: SortParameters;
|
|
182
177
|
[LicenseFindResultFields.COLUMN_START_DATE]?: SortParameters;
|
|
@@ -219,7 +214,6 @@ export declare type LicenceFindDataFiltersParameters = {
|
|
|
219
214
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]?: FiltersParameters;
|
|
220
215
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]?: FiltersParameters;
|
|
221
216
|
[LicenseFindResultFields.COLUMN_SEAT]?: FiltersParameters;
|
|
222
|
-
[LicenseFindResultFields.COLUMN_SECURITY]?: SecurityFindResultDataFiltersParameters;
|
|
223
217
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]?: FiltersParameters;
|
|
224
218
|
[LicenseFindResultFields.COLUMN_SKU]?: FiltersParameters;
|
|
225
219
|
[LicenseFindResultFields.COLUMN_START_DATE]?: FiltersParameters;
|
|
@@ -270,7 +264,6 @@ export declare class LicenseFindResult extends AbstractEntity<LicenseFindResultD
|
|
|
270
264
|
get resellerName(): string;
|
|
271
265
|
get resellerRef(): string;
|
|
272
266
|
get seat(): number;
|
|
273
|
-
get security(): SecurityFindResult;
|
|
274
267
|
get serviceRef(): string;
|
|
275
268
|
get sku(): string;
|
|
276
269
|
get startDate(): string;
|
|
@@ -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 _LicenseFindResult_acceptEula, _LicenseFindResult_activeSeats, _LicenseFindResult_autoRenew, _LicenseFindResult_baseSeat, _LicenseFindResult_category, _LicenseFindResult_classification, _LicenseFindResult_configs, _LicenseFindResult_warnings, _LicenseFindResult_customerName, _LicenseFindResult_customerRef, _LicenseFindResult_endDate, _LicenseFindResult_friendlyName, _LicenseFindResult_id, _LicenseFindResult_enabled, _LicenseFindResult_lastUpdate, _LicenseFindResult_marketplace, _LicenseFindResult_message, _LicenseFindResult_offer, _LicenseFindResult_parentLineId, _LicenseFindResult_parentOrderRef, _LicenseFindResult_partnerRef, _LicenseFindResult_periodicity, _LicenseFindResult_price, _LicenseFindResult_resellerName, _LicenseFindResult_resellerRef, _LicenseFindResult_seat,
|
|
13
|
+
var _LicenseFindResult_acceptEula, _LicenseFindResult_activeSeats, _LicenseFindResult_autoRenew, _LicenseFindResult_baseSeat, _LicenseFindResult_category, _LicenseFindResult_classification, _LicenseFindResult_configs, _LicenseFindResult_warnings, _LicenseFindResult_customerName, _LicenseFindResult_customerRef, _LicenseFindResult_endDate, _LicenseFindResult_friendlyName, _LicenseFindResult_id, _LicenseFindResult_enabled, _LicenseFindResult_lastUpdate, _LicenseFindResult_marketplace, _LicenseFindResult_message, _LicenseFindResult_offer, _LicenseFindResult_parentLineId, _LicenseFindResult_parentOrderRef, _LicenseFindResult_partnerRef, _LicenseFindResult_periodicity, _LicenseFindResult_price, _LicenseFindResult_resellerName, _LicenseFindResult_resellerRef, _LicenseFindResult_seat, _LicenseFindResult_serviceRef, _LicenseFindResult_sku, _LicenseFindResult_startDate, _LicenseFindResult_statusCode, _LicenseFindResult_statusLabel, _LicenseFindResult_subscriptionId, _LicenseFindResult_subsidiaryName, _LicenseFindResult_term, _LicenseFindResult_trial, _LicenseFindResult_type, _LicenseFindResult_uom, _LicenseFindResult_vendorCode, _LicenseFindResult_vendorName, _LicenseFindResult_vendorSubscriptionId, _LicenseFindResult_highlight;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseFindResult = exports.LicenseFindResultFields = void 0;
|
|
16
16
|
const activeSeatsFindResult_1 = require("./activeSeatsFindResult");
|
|
@@ -18,7 +18,6 @@ const abstractEntity_1 = require("../../../abstractEntity");
|
|
|
18
18
|
const configFindResult_1 = require("./configFindResult");
|
|
19
19
|
const warningFindResult_1 = require("./warningFindResult");
|
|
20
20
|
const priceFindResult_1 = require("./priceFindResult");
|
|
21
|
-
const securityFindResult_1 = require("./securityFindResult");
|
|
22
21
|
/**
|
|
23
22
|
* Fields that can be present in License response and request data.
|
|
24
23
|
*/
|
|
@@ -50,7 +49,6 @@ var LicenseFindResultFields;
|
|
|
50
49
|
LicenseFindResultFields["COLUMN_RESELLER_NAME"] = "reseller_name";
|
|
51
50
|
LicenseFindResultFields["COLUMN_RESELLER_REF"] = "reseller_ref";
|
|
52
51
|
LicenseFindResultFields["COLUMN_SEAT"] = "seat";
|
|
53
|
-
LicenseFindResultFields["COLUMN_SECURITY"] = "security";
|
|
54
52
|
LicenseFindResultFields["COLUMN_SERVICE_REF"] = "service_ref";
|
|
55
53
|
LicenseFindResultFields["COLUMN_SKU"] = "sku";
|
|
56
54
|
LicenseFindResultFields["COLUMN_START_DATE"] = "start_date";
|
|
@@ -74,7 +72,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
74
72
|
* @param data - License find result data from the response.
|
|
75
73
|
*/
|
|
76
74
|
constructor(data) {
|
|
77
|
-
var _a, _b, _c
|
|
75
|
+
var _a, _b, _c;
|
|
78
76
|
super(data);
|
|
79
77
|
this.VALIDATION_RULES = {
|
|
80
78
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]: 'present|boolean',
|
|
@@ -122,7 +120,6 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
122
120
|
_LicenseFindResult_resellerName.set(this, void 0);
|
|
123
121
|
_LicenseFindResult_resellerRef.set(this, void 0);
|
|
124
122
|
_LicenseFindResult_seat.set(this, void 0);
|
|
125
|
-
_LicenseFindResult_security.set(this, void 0);
|
|
126
123
|
_LicenseFindResult_serviceRef.set(this, void 0);
|
|
127
124
|
_LicenseFindResult_sku.set(this, void 0);
|
|
128
125
|
_LicenseFindResult_startDate.set(this, void 0);
|
|
@@ -175,9 +172,6 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
175
172
|
__classPrivateFieldSet(this, _LicenseFindResult_resellerName, data[LicenseFindResultFields.COLUMN_RESELLER_NAME], "f");
|
|
176
173
|
__classPrivateFieldSet(this, _LicenseFindResult_resellerRef, data[LicenseFindResultFields.COLUMN_RESELLER_REF], "f");
|
|
177
174
|
__classPrivateFieldSet(this, _LicenseFindResult_seat, data[LicenseFindResultFields.COLUMN_SEAT], "f");
|
|
178
|
-
__classPrivateFieldSet(this, _LicenseFindResult_security, new securityFindResult_1.SecurityFindResult({
|
|
179
|
-
[securityFindResult_1.SecurityFindResultFields.COLUMN_ACTIVE_FRAUD_EVENTS]: (_c = data === null || data === void 0 ? void 0 : data[LicenseFindResultFields.COLUMN_SECURITY]) === null || _c === void 0 ? void 0 : _c[securityFindResult_1.SecurityFindResultFields.COLUMN_ACTIVE_FRAUD_EVENTS],
|
|
180
|
-
}), "f");
|
|
181
175
|
__classPrivateFieldSet(this, _LicenseFindResult_serviceRef, data[LicenseFindResultFields.COLUMN_SERVICE_REF], "f");
|
|
182
176
|
__classPrivateFieldSet(this, _LicenseFindResult_sku, data[LicenseFindResultFields.COLUMN_SKU], "f");
|
|
183
177
|
__classPrivateFieldSet(this, _LicenseFindResult_startDate, data[LicenseFindResultFields.COLUMN_START_DATE], "f");
|
|
@@ -192,7 +186,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
192
186
|
__classPrivateFieldSet(this, _LicenseFindResult_vendorCode, data[LicenseFindResultFields.COLUMN_VENDOR_CODE], "f");
|
|
193
187
|
__classPrivateFieldSet(this, _LicenseFindResult_vendorName, data[LicenseFindResultFields.COLUMN_VENDOR_NAME], "f");
|
|
194
188
|
__classPrivateFieldSet(this, _LicenseFindResult_vendorSubscriptionId, data[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID], "f");
|
|
195
|
-
__classPrivateFieldSet(this, _LicenseFindResult_highlight, (
|
|
189
|
+
__classPrivateFieldSet(this, _LicenseFindResult_highlight, (_c = data[LicenseFindResultFields.COLUMN_HIGHLIGHT]) !== null && _c !== void 0 ? _c : {}, "f");
|
|
196
190
|
}
|
|
197
191
|
get id() {
|
|
198
192
|
return __classPrivateFieldGet(this, _LicenseFindResult_id, "f");
|
|
@@ -272,9 +266,6 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
272
266
|
get seat() {
|
|
273
267
|
return __classPrivateFieldGet(this, _LicenseFindResult_seat, "f");
|
|
274
268
|
}
|
|
275
|
-
get security() {
|
|
276
|
-
return __classPrivateFieldGet(this, _LicenseFindResult_security, "f");
|
|
277
|
-
}
|
|
278
269
|
get serviceRef() {
|
|
279
270
|
return __classPrivateFieldGet(this, _LicenseFindResult_serviceRef, "f");
|
|
280
271
|
}
|
|
@@ -353,7 +344,6 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
353
344
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]: this.resellerName,
|
|
354
345
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]: this.resellerRef,
|
|
355
346
|
[LicenseFindResultFields.COLUMN_SEAT]: this.seat,
|
|
356
|
-
[LicenseFindResultFields.COLUMN_SECURITY]: this.security.toJSON(),
|
|
357
347
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]: this.serviceRef,
|
|
358
348
|
[LicenseFindResultFields.COLUMN_SKU]: this.sku,
|
|
359
349
|
[LicenseFindResultFields.COLUMN_START_DATE]: this.startDate,
|
|
@@ -374,5 +364,5 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
374
364
|
}
|
|
375
365
|
}
|
|
376
366
|
exports.LicenseFindResult = LicenseFindResult;
|
|
377
|
-
_LicenseFindResult_acceptEula = new WeakMap(), _LicenseFindResult_activeSeats = new WeakMap(), _LicenseFindResult_autoRenew = new WeakMap(), _LicenseFindResult_baseSeat = new WeakMap(), _LicenseFindResult_category = new WeakMap(), _LicenseFindResult_classification = new WeakMap(), _LicenseFindResult_configs = new WeakMap(), _LicenseFindResult_warnings = new WeakMap(), _LicenseFindResult_customerName = new WeakMap(), _LicenseFindResult_customerRef = new WeakMap(), _LicenseFindResult_endDate = new WeakMap(), _LicenseFindResult_friendlyName = new WeakMap(), _LicenseFindResult_id = new WeakMap(), _LicenseFindResult_enabled = new WeakMap(), _LicenseFindResult_lastUpdate = new WeakMap(), _LicenseFindResult_marketplace = new WeakMap(), _LicenseFindResult_message = new WeakMap(), _LicenseFindResult_offer = new WeakMap(), _LicenseFindResult_parentLineId = new WeakMap(), _LicenseFindResult_parentOrderRef = new WeakMap(), _LicenseFindResult_partnerRef = new WeakMap(), _LicenseFindResult_periodicity = new WeakMap(), _LicenseFindResult_price = new WeakMap(), _LicenseFindResult_resellerName = new WeakMap(), _LicenseFindResult_resellerRef = new WeakMap(), _LicenseFindResult_seat = new WeakMap(),
|
|
367
|
+
_LicenseFindResult_acceptEula = new WeakMap(), _LicenseFindResult_activeSeats = new WeakMap(), _LicenseFindResult_autoRenew = new WeakMap(), _LicenseFindResult_baseSeat = new WeakMap(), _LicenseFindResult_category = new WeakMap(), _LicenseFindResult_classification = new WeakMap(), _LicenseFindResult_configs = new WeakMap(), _LicenseFindResult_warnings = new WeakMap(), _LicenseFindResult_customerName = new WeakMap(), _LicenseFindResult_customerRef = new WeakMap(), _LicenseFindResult_endDate = new WeakMap(), _LicenseFindResult_friendlyName = new WeakMap(), _LicenseFindResult_id = new WeakMap(), _LicenseFindResult_enabled = new WeakMap(), _LicenseFindResult_lastUpdate = new WeakMap(), _LicenseFindResult_marketplace = new WeakMap(), _LicenseFindResult_message = new WeakMap(), _LicenseFindResult_offer = new WeakMap(), _LicenseFindResult_parentLineId = new WeakMap(), _LicenseFindResult_parentOrderRef = new WeakMap(), _LicenseFindResult_partnerRef = new WeakMap(), _LicenseFindResult_periodicity = new WeakMap(), _LicenseFindResult_price = new WeakMap(), _LicenseFindResult_resellerName = new WeakMap(), _LicenseFindResult_resellerRef = new WeakMap(), _LicenseFindResult_seat = new WeakMap(), _LicenseFindResult_serviceRef = new WeakMap(), _LicenseFindResult_sku = new WeakMap(), _LicenseFindResult_startDate = new WeakMap(), _LicenseFindResult_statusCode = new WeakMap(), _LicenseFindResult_statusLabel = new WeakMap(), _LicenseFindResult_subscriptionId = new WeakMap(), _LicenseFindResult_subsidiaryName = new WeakMap(), _LicenseFindResult_term = new WeakMap(), _LicenseFindResult_trial = new WeakMap(), _LicenseFindResult_type = new WeakMap(), _LicenseFindResult_uom = new WeakMap(), _LicenseFindResult_vendorCode = new WeakMap(), _LicenseFindResult_vendorName = new WeakMap(), _LicenseFindResult_vendorSubscriptionId = new WeakMap(), _LicenseFindResult_highlight = new WeakMap();
|
|
378
368
|
//# sourceMappingURL=licenseFindResult.js.map
|
|
@@ -30,5 +30,4 @@ export * from './entities/offer/priceband/saleConstraintsFindResult';
|
|
|
30
30
|
export * from './entities/offer/priceband/identifiers/arrowsphereFindResult';
|
|
31
31
|
export * from './licenseRequestClient';
|
|
32
32
|
export * from './licensesClient';
|
|
33
|
-
export * from './entities/license/securityFindResult';
|
|
34
33
|
export * from './licensesEventClient';
|
package/build/licenses/index.js
CHANGED
|
@@ -46,6 +46,5 @@ __exportStar(require("./entities/offer/priceband/saleConstraintsFindResult"), ex
|
|
|
46
46
|
__exportStar(require("./entities/offer/priceband/identifiers/arrowsphereFindResult"), exports);
|
|
47
47
|
__exportStar(require("./licenseRequestClient"), exports);
|
|
48
48
|
__exportStar(require("./licensesClient"), exports);
|
|
49
|
-
__exportStar(require("./entities/license/securityFindResult"), exports);
|
|
50
49
|
__exportStar(require("./licensesEventClient"), exports);
|
|
51
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -11,7 +11,6 @@ import { PriceFindResultDataKeywords, PriceFindResutDataSortParameters } from '.
|
|
|
11
11
|
import { OfferFindResultDataFiltersParameters, OfferFindResultDataKeywords, OfferFindResultDataSortParameters } from './entities/offer/offerFindResult';
|
|
12
12
|
import { ActionFlagsFindResultDataKeywords, ActionFlagsFindResultDataSortParameters } from './entities/offer/actionFlagsFindResult';
|
|
13
13
|
import { PriceBandFindResultDataKeywords, PriceBandFindResultDataSortParameters } from './entities/offer/priceBandFindResult';
|
|
14
|
-
import { SecurityFindResultDataKeywords, SecurityFindResultDataSortParameters } from './entities/license/securityFindResult';
|
|
15
14
|
import { GetResult } from '../getResult';
|
|
16
15
|
import { LicenseGetFields } from './entities/getLicense/licenseGetResult';
|
|
17
16
|
import { GetLicenseResult } from './entities/getResult/getLicenseResult';
|
|
@@ -113,12 +112,6 @@ export declare enum LicenseFindParameters {
|
|
|
113
112
|
*/
|
|
114
113
|
FILTERS_LTE = "lte"
|
|
115
114
|
}
|
|
116
|
-
export declare type BaseParameters<LicenseType, OfferType> = {
|
|
117
|
-
license?: LicenseType;
|
|
118
|
-
offer?: OfferType;
|
|
119
|
-
};
|
|
120
|
-
export declare type LicenseSortParameters = BaseParameters<LicenceFindDataSortParameters, OfferFindResultDataSortParameters>;
|
|
121
|
-
export declare type LicenseFiltersParameters = BaseParameters<LicenceFindDataFiltersParameters, OfferFindResultDataFiltersParameters>;
|
|
122
115
|
/**
|
|
123
116
|
* List of keywords to search with.
|
|
124
117
|
*/
|
|
@@ -134,14 +127,21 @@ export declare type LicenseKeywordsParameters = {
|
|
|
134
127
|
offer?: OfferFindResultDataKeywords;
|
|
135
128
|
};
|
|
136
129
|
export declare type LicenseRawKeywordsParametersLicence = {
|
|
137
|
-
[field: string]: DataKeywords | ActiveSeatsFindResultDataKeywords | ConfigFindResultDataKeywords | WarningFindResultDataKeywords | PriceFindResultDataKeywords |
|
|
130
|
+
[field: string]: DataKeywords | ActiveSeatsFindResultDataKeywords | ConfigFindResultDataKeywords | WarningFindResultDataKeywords | PriceFindResultDataKeywords | undefined;
|
|
138
131
|
};
|
|
139
132
|
export declare type LicenseRawKeywordsParametersOffer = {
|
|
140
133
|
[field: string]: DataKeywords | ActionFlagsFindResultDataKeywords | PriceBandFindResultDataKeywords | undefined;
|
|
141
134
|
};
|
|
142
135
|
export declare type SortParameters = LicenseFindParameters.SORT_ASCENDING | LicenseFindParameters.SORT_DESCENDING;
|
|
136
|
+
/**
|
|
137
|
+
* Sort parameters to pass to the request
|
|
138
|
+
*/
|
|
139
|
+
export declare type LicenseSortParameters = {
|
|
140
|
+
license?: LicenceFindDataSortParameters;
|
|
141
|
+
offer?: OfferFindResultDataSortParameters;
|
|
142
|
+
};
|
|
143
143
|
export declare type LicenseRawSortParametersLicense = {
|
|
144
|
-
[field: string]: SortParameters | ActiveSeatsFindResultDataSortParameters | ConfigFindResultDataSortParameters | WarningFindResultDataSortParameters | PriceFindResutDataSortParameters |
|
|
144
|
+
[field: string]: SortParameters | ActiveSeatsFindResultDataSortParameters | ConfigFindResultDataSortParameters | WarningFindResultDataSortParameters | PriceFindResutDataSortParameters | undefined;
|
|
145
145
|
};
|
|
146
146
|
export declare type LicenseRawSortParametersOffer = {
|
|
147
147
|
[field: string]: SortParameters | ActionFlagsFindResultDataSortParameters | PriceBandFindResultDataSortParameters | undefined;
|
|
@@ -153,6 +153,13 @@ export declare type FiltersCompareValue = {
|
|
|
153
153
|
[LicenseFindParameters.FILTERS_LTE]?: string | number;
|
|
154
154
|
};
|
|
155
155
|
export declare type FiltersParameters = string | string[] | number | number[] | boolean | FiltersCompareValue;
|
|
156
|
+
/**
|
|
157
|
+
* Filter parameters to pass to the request.
|
|
158
|
+
*/
|
|
159
|
+
export declare type LicenseFiltersParameters = {
|
|
160
|
+
license?: LicenceFindDataFiltersParameters;
|
|
161
|
+
offer?: OfferFindResultDataFiltersParameters;
|
|
162
|
+
};
|
|
156
163
|
export declare type LicenseRawFiltersParameters = {
|
|
157
164
|
[field: string]: unknown;
|
|
158
165
|
};
|
|
@@ -271,6 +278,4 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
271
278
|
getHistory(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenceHistoryResult>>;
|
|
272
279
|
cancelAutoRenew(licenseReference: string, payload?: PutCancelAutoRenew, parameters?: Parameters): Promise<void>;
|
|
273
280
|
reactivateAutoRenew(licenseReference: string, payload?: PutReactivateAutoRenew, parameters?: Parameters): Promise<void>;
|
|
274
|
-
private createFilters;
|
|
275
|
-
private createKeywords;
|
|
276
281
|
}
|
|
@@ -181,6 +181,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
181
181
|
*
|
|
182
182
|
*/
|
|
183
183
|
async find(postData = {}, perPage = 100, page = 1, parameters = {}) {
|
|
184
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
184
185
|
this.setPerPage(perPage);
|
|
185
186
|
this.setPage(page);
|
|
186
187
|
const rawLicensePayload = {
|
|
@@ -190,29 +191,53 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
190
191
|
if (postData.keywords) {
|
|
191
192
|
// Flatten with prefix for each type of keyword (license and offer)
|
|
192
193
|
rawLicensePayload.keywords = {
|
|
193
|
-
...
|
|
194
|
-
|
|
194
|
+
...Object.entries((_a = postData.keywords.license) !== null && _a !== void 0 ? _a : {}).reduce((acc, [keyword, value]) => {
|
|
195
|
+
acc[`license.${keyword}`] = value;
|
|
196
|
+
return acc;
|
|
197
|
+
}, {}),
|
|
198
|
+
...Object.entries((_b = postData.keywords.offer) !== null && _b !== void 0 ? _b : {}).reduce((acc, [keyword, value]) => {
|
|
199
|
+
acc[`offer.${keyword}`] = value;
|
|
200
|
+
return acc;
|
|
201
|
+
}, {}),
|
|
195
202
|
};
|
|
196
203
|
}
|
|
197
204
|
if (postData.filters) {
|
|
198
205
|
// Flatten with prefix for each type of filter (license and offer)
|
|
199
206
|
rawLicensePayload.filters = {
|
|
200
|
-
...
|
|
201
|
-
|
|
207
|
+
...Object.entries((_c = postData.filters.license) !== null && _c !== void 0 ? _c : {}).reduce((acc, [filter, value]) => {
|
|
208
|
+
acc[`license.${filter}`] = value;
|
|
209
|
+
return acc;
|
|
210
|
+
}, {}),
|
|
211
|
+
...Object.entries((_d = postData.filters.offer) !== null && _d !== void 0 ? _d : {}).reduce((acc, [filter, value]) => {
|
|
212
|
+
acc[`offer.${filter}`] = value;
|
|
213
|
+
return acc;
|
|
214
|
+
}, {}),
|
|
202
215
|
};
|
|
203
216
|
}
|
|
204
217
|
if (postData.exclusionFilters) {
|
|
205
218
|
// Flatten with prefix for each type of filter (license and offer)
|
|
206
219
|
rawLicensePayload.exclusionFilters = {
|
|
207
|
-
...
|
|
208
|
-
|
|
220
|
+
...Object.entries((_e = postData.exclusionFilters.license) !== null && _e !== void 0 ? _e : {}).reduce((acc, [filter, value]) => {
|
|
221
|
+
acc[`license.${filter}`] = value;
|
|
222
|
+
return acc;
|
|
223
|
+
}, {}),
|
|
224
|
+
...Object.entries((_f = postData.exclusionFilters.offer) !== null && _f !== void 0 ? _f : {}).reduce((acc, [filter, value]) => {
|
|
225
|
+
acc[`offer.${filter}`] = value;
|
|
226
|
+
return acc;
|
|
227
|
+
}, {}),
|
|
209
228
|
};
|
|
210
229
|
}
|
|
211
230
|
if (postData.sort) {
|
|
212
231
|
// Flatten with prefix for each type of sort keys (license and offer)
|
|
213
232
|
rawLicensePayload.sort = {
|
|
214
|
-
...
|
|
215
|
-
|
|
233
|
+
...Object.entries((_g = postData.sort.license) !== null && _g !== void 0 ? _g : {}).reduce((acc, [sort, value]) => {
|
|
234
|
+
acc[`license.${sort}`] = value;
|
|
235
|
+
return acc;
|
|
236
|
+
}, {}),
|
|
237
|
+
...Object.entries((_h = postData.sort.offer) !== null && _h !== void 0 ? _h : {}).reduce((acc, [sort, value]) => {
|
|
238
|
+
acc[`offer.${sort}`] = value;
|
|
239
|
+
return acc;
|
|
240
|
+
}, {}),
|
|
216
241
|
};
|
|
217
242
|
}
|
|
218
243
|
const response = await this.findRaw(rawLicensePayload, parameters);
|
|
@@ -277,74 +302,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
277
302
|
this.path = `/${licenseReference}${this.REACTIVATE_AUTO_RENEW_PATH}`;
|
|
278
303
|
return await this.put(payload, parameters);
|
|
279
304
|
}
|
|
280
|
-
createFilters(parameters, keyParent) {
|
|
281
|
-
let appropriateParameters;
|
|
282
|
-
if (typeof parameters === 'object') {
|
|
283
|
-
appropriateParameters = parameters[keyParent];
|
|
284
|
-
}
|
|
285
|
-
else {
|
|
286
|
-
appropriateParameters = parameters;
|
|
287
|
-
}
|
|
288
|
-
return Object.entries(typeof appropriateParameters === 'object'
|
|
289
|
-
? appropriateParameters
|
|
290
|
-
: {}).reduce((acc, [key, value]) => {
|
|
291
|
-
if (typeof value === 'object' && !Array.isArray(value)) {
|
|
292
|
-
const subAcc = Object.entries(value).reduce((generatedArr, [i, val]) => {
|
|
293
|
-
let recursiveArr;
|
|
294
|
-
const newKey = keyParent + '.' + key + '.' + i;
|
|
295
|
-
if (typeof val !== 'object') {
|
|
296
|
-
generatedArr[`${newKey}`] = val;
|
|
297
|
-
return generatedArr;
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
recursiveArr = this.createFilters(val, newKey);
|
|
301
|
-
}
|
|
302
|
-
return Object.assign(generatedArr, recursiveArr);
|
|
303
|
-
}, {});
|
|
304
|
-
Object.assign(acc, subAcc);
|
|
305
|
-
}
|
|
306
|
-
else {
|
|
307
|
-
acc[`${keyParent}.${key}`] = value;
|
|
308
|
-
}
|
|
309
|
-
return acc;
|
|
310
|
-
}, {});
|
|
311
|
-
}
|
|
312
|
-
createKeywords(parameters, keyParent) {
|
|
313
|
-
let appropriateParameters;
|
|
314
|
-
if (typeof parameters === 'object') {
|
|
315
|
-
appropriateParameters =
|
|
316
|
-
keyParent === 'license' ? parameters.license : parameters.offer;
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
appropriateParameters = parameters;
|
|
320
|
-
}
|
|
321
|
-
return Object.entries(appropriateParameters !== null && appropriateParameters !== undefined
|
|
322
|
-
? appropriateParameters
|
|
323
|
-
: {}).reduce((acc, [key, value]) => {
|
|
324
|
-
if (typeof value === 'object' &&
|
|
325
|
-
!Array.isArray(value) &&
|
|
326
|
-
!Object.prototype.hasOwnProperty.call(value, 'operator')) {
|
|
327
|
-
const subAcc = Object.entries(value).reduce((generatedArr, [i, val]) => {
|
|
328
|
-
let recursiveArr;
|
|
329
|
-
const newKey = keyParent + '.' + key + '.' + i;
|
|
330
|
-
if (typeof val !== 'object' ||
|
|
331
|
-
Object.prototype.hasOwnProperty.call(val, 'operator')) {
|
|
332
|
-
generatedArr[`${newKey}`] = val;
|
|
333
|
-
return generatedArr;
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
recursiveArr = this.createKeywords(val, newKey);
|
|
337
|
-
}
|
|
338
|
-
return Object.assign(generatedArr, recursiveArr);
|
|
339
|
-
}, {});
|
|
340
|
-
Object.assign(acc, subAcc);
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
acc[`${keyParent}.${key}`] = value;
|
|
344
|
-
}
|
|
345
|
-
return acc;
|
|
346
|
-
}, {});
|
|
347
|
-
}
|
|
348
305
|
}
|
|
349
306
|
exports.LicensesClient = LicensesClient;
|
|
350
307
|
//# sourceMappingURL=licensesClient.js.map
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
2
|
export declare enum RegistrationLinkFields {
|
|
3
|
+
COLUMN_EXTRA_PARAMS = "extraParams",
|
|
3
4
|
COLUMN_REGISTRATION_LINK = "registrationLink"
|
|
4
5
|
}
|
|
5
6
|
export declare type RegistrationLinkType = {
|
|
7
|
+
[RegistrationLinkFields.COLUMN_EXTRA_PARAMS]?: Record<string, string>;
|
|
6
8
|
[RegistrationLinkFields.COLUMN_REGISTRATION_LINK]: string;
|
|
7
9
|
};
|
|
8
10
|
export declare class RegistrationLink extends AbstractEntity<RegistrationLinkType> {
|
|
9
11
|
#private;
|
|
10
12
|
constructor(registrationLinkInput: RegistrationLinkType);
|
|
13
|
+
get extraParams(): Record<string, string> | undefined;
|
|
11
14
|
get registrationLink(): string;
|
|
12
15
|
toJSON(): RegistrationLinkType;
|
|
13
16
|
}
|
|
@@ -10,29 +10,36 @@ 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 _RegistrationLink_registrationLink;
|
|
13
|
+
var _RegistrationLink_extraParams, _RegistrationLink_registrationLink;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.RegistrationLink = exports.RegistrationLinkFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
17
|
var RegistrationLinkFields;
|
|
18
18
|
(function (RegistrationLinkFields) {
|
|
19
|
+
RegistrationLinkFields["COLUMN_EXTRA_PARAMS"] = "extraParams";
|
|
19
20
|
RegistrationLinkFields["COLUMN_REGISTRATION_LINK"] = "registrationLink";
|
|
20
21
|
})(RegistrationLinkFields = exports.RegistrationLinkFields || (exports.RegistrationLinkFields = {}));
|
|
21
22
|
class RegistrationLink extends abstractEntity_1.AbstractEntity {
|
|
22
23
|
constructor(registrationLinkInput) {
|
|
23
24
|
super(registrationLinkInput);
|
|
25
|
+
_RegistrationLink_extraParams.set(this, void 0);
|
|
24
26
|
_RegistrationLink_registrationLink.set(this, void 0);
|
|
25
27
|
__classPrivateFieldSet(this, _RegistrationLink_registrationLink, registrationLinkInput[RegistrationLinkFields.COLUMN_REGISTRATION_LINK], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _RegistrationLink_extraParams, registrationLinkInput[RegistrationLinkFields.COLUMN_EXTRA_PARAMS], "f");
|
|
29
|
+
}
|
|
30
|
+
get extraParams() {
|
|
31
|
+
return __classPrivateFieldGet(this, _RegistrationLink_extraParams, "f");
|
|
26
32
|
}
|
|
27
33
|
get registrationLink() {
|
|
28
34
|
return __classPrivateFieldGet(this, _RegistrationLink_registrationLink, "f");
|
|
29
35
|
}
|
|
30
36
|
toJSON() {
|
|
31
37
|
return {
|
|
38
|
+
[RegistrationLinkFields.COLUMN_EXTRA_PARAMS]: this.extraParams,
|
|
32
39
|
[RegistrationLinkFields.COLUMN_REGISTRATION_LINK]: this.registrationLink,
|
|
33
40
|
};
|
|
34
41
|
}
|
|
35
42
|
}
|
|
36
43
|
exports.RegistrationLink = RegistrationLink;
|
|
37
|
-
_RegistrationLink_registrationLink = new WeakMap();
|
|
44
|
+
_RegistrationLink_extraParams = new WeakMap(), _RegistrationLink_registrationLink = new WeakMap();
|
|
38
45
|
//# sourceMappingURL=registrationLink.js.map
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
|
|
3
|
-
export declare enum SecurityFindResultFields {
|
|
4
|
-
COLUMN_ACTIVE_FRAUD_EVENTS = "activeFraudEvents"
|
|
5
|
-
}
|
|
6
|
-
export declare type SecurityFindResultData = {
|
|
7
|
-
[SecurityFindResultFields.COLUMN_ACTIVE_FRAUD_EVENTS]?: number | null;
|
|
8
|
-
};
|
|
9
|
-
export declare type SecurityFindResultDataKeywords = {
|
|
10
|
-
[SecurityFindResultFields.COLUMN_ACTIVE_FRAUD_EVENTS]?: DataKeywords;
|
|
11
|
-
};
|
|
12
|
-
export declare type SecurityFindResultDataSortParameters = {
|
|
13
|
-
[SecurityFindResultFields.COLUMN_ACTIVE_FRAUD_EVENTS]?: SortParameters;
|
|
14
|
-
};
|
|
15
|
-
export declare type SecurityFindResultDataFiltersParameters = {
|
|
16
|
-
[SecurityFindResultFields.COLUMN_ACTIVE_FRAUD_EVENTS]?: FiltersParameters;
|
|
17
|
-
};
|
|
18
|
-
export declare class SecurityFindResult extends AbstractEntity<SecurityFindResultData> {
|
|
19
|
-
#private;
|
|
20
|
-
constructor(data: SecurityFindResultData);
|
|
21
|
-
get activeFraudEvents(): number | null | undefined;
|
|
22
|
-
toJSON(): SecurityFindResultData;
|
|
23
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 _SecurityFindResult_activeFraudEvents;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SecurityFindResult = exports.SecurityFindResultFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
var SecurityFindResultFields;
|
|
18
|
-
(function (SecurityFindResultFields) {
|
|
19
|
-
SecurityFindResultFields["COLUMN_ACTIVE_FRAUD_EVENTS"] = "activeFraudEvents";
|
|
20
|
-
})(SecurityFindResultFields = exports.SecurityFindResultFields || (exports.SecurityFindResultFields = {}));
|
|
21
|
-
class SecurityFindResult extends abstractEntity_1.AbstractEntity {
|
|
22
|
-
constructor(data) {
|
|
23
|
-
super(data);
|
|
24
|
-
_SecurityFindResult_activeFraudEvents.set(this, void 0);
|
|
25
|
-
__classPrivateFieldSet(this, _SecurityFindResult_activeFraudEvents, data[SecurityFindResultFields.COLUMN_ACTIVE_FRAUD_EVENTS], "f");
|
|
26
|
-
}
|
|
27
|
-
get activeFraudEvents() {
|
|
28
|
-
return __classPrivateFieldGet(this, _SecurityFindResult_activeFraudEvents, "f");
|
|
29
|
-
}
|
|
30
|
-
toJSON() {
|
|
31
|
-
return {
|
|
32
|
-
[SecurityFindResultFields.COLUMN_ACTIVE_FRAUD_EVENTS]: this
|
|
33
|
-
.activeFraudEvents,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.SecurityFindResult = SecurityFindResult;
|
|
38
|
-
_SecurityFindResult_activeFraudEvents = new WeakMap();
|
|
39
|
-
//# sourceMappingURL=securityFindResult.js.map
|