@arrowsphere/api-client 3.59.1 → 3.60.0-rc.zss.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 +0 -16
- package/build/graphqlApi/types/entities/company.d.ts +0 -1
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +1 -9
- package/build/graphqlApi/types/graphqlApiQueries.js +1 -8
- package/build/licenses/entities/license/licenseFindResult.d.ts +7 -0
- package/build/licenses/entities/license/licenseFindResult.js +15 -4
- package/build/licenses/entities/license/securityFindResult.d.ts +23 -0
- package/build/licenses/entities/license/securityFindResult.js +39 -0
- package/build/licenses/licensesClient.d.ts +11 -16
- package/build/licenses/licensesClient.js +77 -33
- package/build/wellArchitected/standards/entities/checks/securityChecks.d.ts +0 -3
- package/build/wellArchitected/standards/entities/checks/securityChecks.js +2 -9
- package/build/wellArchitected/types/queryArguments.d.ts +0 -1
- package/build/wellArchitected/types/queryArguments.js +0 -1
- package/build/wellArchitected/types/wellArchitectedGraphQLTypes.d.ts +0 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,22 +3,6 @@
|
|
|
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.59.1] - 2023-10-26
|
|
7
|
-
|
|
8
|
-
### Changed
|
|
9
|
-
- graphqlApi add field resellerId for Comapny
|
|
10
|
-
|
|
11
|
-
## [3.59.0] - 2023-10-24
|
|
12
|
-
|
|
13
|
-
### Changed
|
|
14
|
-
- Add hasResources to the check entity
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [3.58.1] - 2023-10-24
|
|
18
|
-
|
|
19
|
-
### Changed
|
|
20
|
-
- Update graphqlApi type add query valueType and idNullValue to InputFilterValueField
|
|
21
|
-
|
|
22
6
|
## [3.58.0] - 2023-10-19
|
|
23
7
|
|
|
24
8
|
### Changed
|
|
@@ -13,7 +13,6 @@ export declare enum ComparisonOperator {
|
|
|
13
13
|
EQUALS = "EQUALS",
|
|
14
14
|
GREAT_THAN = "GREAT_THAN",
|
|
15
15
|
GREAT_THAN_OR_EQUALS = "GREAT_THAN_OR_EQUALS",
|
|
16
|
-
IN = "IN",
|
|
17
16
|
IS_NULL = "IS_NULL",
|
|
18
17
|
LESS_THAN = "LESS_THAN",
|
|
19
18
|
LESS_THAN_OR_EQUALS = "LESS_THAN_OR_EQUALS",
|
|
@@ -46,9 +45,6 @@ export declare enum InputPaginationField {
|
|
|
46
45
|
PAGE = "page",
|
|
47
46
|
PER_PAGE = "perPage"
|
|
48
47
|
}
|
|
49
|
-
export declare enum ValueType {
|
|
50
|
-
FIELD = "FIELD"
|
|
51
|
-
}
|
|
52
48
|
export declare type InputPaginationType = {
|
|
53
49
|
[InputPaginationField.PAGE]?: number;
|
|
54
50
|
[InputPaginationField.PER_PAGE]?: number;
|
|
@@ -82,9 +78,7 @@ export declare enum InputFilterValueField {
|
|
|
82
78
|
OPERATOR = "operator",
|
|
83
79
|
VALUE = "value",
|
|
84
80
|
EXCLUSION = "exclusion",
|
|
85
|
-
HAVING = "having"
|
|
86
|
-
VALUE_TYPE = "valueType",
|
|
87
|
-
IFNULL_VALUE = "ifNullValue"
|
|
81
|
+
HAVING = "having"
|
|
88
82
|
}
|
|
89
83
|
export declare type InputFilterValueType = {
|
|
90
84
|
[InputFilterValueField.NAME]?: string;
|
|
@@ -92,8 +86,6 @@ export declare type InputFilterValueType = {
|
|
|
92
86
|
[InputFilterValueField.VALUE]?: string[];
|
|
93
87
|
[InputFilterValueField.EXCLUSION]?: boolean;
|
|
94
88
|
[InputFilterValueField.HAVING]?: boolean;
|
|
95
|
-
[InputFilterValueField.VALUE_TYPE]?: ValueType;
|
|
96
|
-
[InputFilterValueField.IFNULL_VALUE]?: string;
|
|
97
89
|
};
|
|
98
90
|
export declare enum InputQueryOptionsField {
|
|
99
91
|
SKIP_PARTITION = "skipPartition"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Queries = exports.QueryVariablesField = exports.PaginationField = exports.ErrorsField = exports.SelectDataField = exports.SelectableField = exports.InputQueryOptionsField = exports.InputFilterValueField = exports.InputFiltersField = exports.InputSearchFilterField = exports.InputSortFilterField = exports.
|
|
3
|
+
exports.Queries = exports.QueryVariablesField = exports.PaginationField = exports.ErrorsField = exports.SelectDataField = exports.SelectableField = exports.InputQueryOptionsField = exports.InputFilterValueField = exports.InputFiltersField = exports.InputSearchFilterField = exports.InputSortFilterField = exports.InputPaginationField = exports.Direction = exports.QueryModifier = exports.LogicalOperator = exports.ComparisonOperator = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* For field __args
|
|
6
6
|
*/
|
|
@@ -12,7 +12,6 @@ var ComparisonOperator;
|
|
|
12
12
|
ComparisonOperator["EQUALS"] = "EQUALS";
|
|
13
13
|
ComparisonOperator["GREAT_THAN"] = "GREAT_THAN";
|
|
14
14
|
ComparisonOperator["GREAT_THAN_OR_EQUALS"] = "GREAT_THAN_OR_EQUALS";
|
|
15
|
-
ComparisonOperator["IN"] = "IN";
|
|
16
15
|
ComparisonOperator["IS_NULL"] = "IS_NULL";
|
|
17
16
|
ComparisonOperator["LESS_THAN"] = "LESS_THAN";
|
|
18
17
|
ComparisonOperator["LESS_THAN_OR_EQUALS"] = "LESS_THAN_OR_EQUALS";
|
|
@@ -49,10 +48,6 @@ var InputPaginationField;
|
|
|
49
48
|
InputPaginationField["PAGE"] = "page";
|
|
50
49
|
InputPaginationField["PER_PAGE"] = "perPage";
|
|
51
50
|
})(InputPaginationField = exports.InputPaginationField || (exports.InputPaginationField = {}));
|
|
52
|
-
var ValueType;
|
|
53
|
-
(function (ValueType) {
|
|
54
|
-
ValueType["FIELD"] = "FIELD";
|
|
55
|
-
})(ValueType = exports.ValueType || (exports.ValueType = {}));
|
|
56
51
|
var InputSortFilterField;
|
|
57
52
|
(function (InputSortFilterField) {
|
|
58
53
|
InputSortFilterField["DIRECTION"] = "direction";
|
|
@@ -75,8 +70,6 @@ var InputFilterValueField;
|
|
|
75
70
|
InputFilterValueField["VALUE"] = "value";
|
|
76
71
|
InputFilterValueField["EXCLUSION"] = "exclusion";
|
|
77
72
|
InputFilterValueField["HAVING"] = "having";
|
|
78
|
-
InputFilterValueField["VALUE_TYPE"] = "valueType";
|
|
79
|
-
InputFilterValueField["IFNULL_VALUE"] = "ifNullValue";
|
|
80
73
|
})(InputFilterValueField = exports.InputFilterValueField || (exports.InputFilterValueField = {}));
|
|
81
74
|
var InputQueryOptionsField;
|
|
82
75
|
(function (InputQueryOptionsField) {
|
|
@@ -5,6 +5,7 @@ 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';
|
|
8
9
|
/**
|
|
9
10
|
* Highlight response object.
|
|
10
11
|
*/
|
|
@@ -41,6 +42,7 @@ export declare enum LicenseFindResultFields {
|
|
|
41
42
|
COLUMN_RESELLER_NAME = "reseller_name",
|
|
42
43
|
COLUMN_RESELLER_REF = "reseller_ref",
|
|
43
44
|
COLUMN_SEAT = "seat",
|
|
45
|
+
COLUMN_SECURITY = "security",
|
|
44
46
|
COLUMN_SERVICE_REF = "service_ref",
|
|
45
47
|
COLUMN_SKU = "sku",
|
|
46
48
|
COLUMN_START_DATE = "start_date",
|
|
@@ -87,6 +89,7 @@ export declare type LicenseFindResultData = {
|
|
|
87
89
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]: string;
|
|
88
90
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]: string;
|
|
89
91
|
[LicenseFindResultFields.COLUMN_SEAT]: number;
|
|
92
|
+
[LicenseFindResultFields.COLUMN_SECURITY]: SecurityFindResultData | null;
|
|
90
93
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]: string;
|
|
91
94
|
[LicenseFindResultFields.COLUMN_SKU]: string;
|
|
92
95
|
[LicenseFindResultFields.COLUMN_START_DATE]: string;
|
|
@@ -130,6 +133,7 @@ export declare type LicenceFindDataKeywords = {
|
|
|
130
133
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]?: DataKeywords;
|
|
131
134
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]?: DataKeywords;
|
|
132
135
|
[LicenseFindResultFields.COLUMN_SEAT]?: DataKeywords;
|
|
136
|
+
[LicenseFindResultFields.COLUMN_SECURITY]?: SecurityFindResultDataKeywords | undefined;
|
|
133
137
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]?: DataKeywords;
|
|
134
138
|
[LicenseFindResultFields.COLUMN_SKU]?: DataKeywords;
|
|
135
139
|
[LicenseFindResultFields.COLUMN_START_DATE]?: DataKeywords;
|
|
@@ -172,6 +176,7 @@ export declare type LicenceFindDataSortParameters = {
|
|
|
172
176
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]?: SortParameters;
|
|
173
177
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]?: SortParameters;
|
|
174
178
|
[LicenseFindResultFields.COLUMN_SEAT]?: SortParameters;
|
|
179
|
+
[LicenseFindResultFields.COLUMN_SECURITY]?: SecurityFindResultDataSortParameters | undefined;
|
|
175
180
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]?: SortParameters;
|
|
176
181
|
[LicenseFindResultFields.COLUMN_SKU]?: SortParameters;
|
|
177
182
|
[LicenseFindResultFields.COLUMN_START_DATE]?: SortParameters;
|
|
@@ -214,6 +219,7 @@ export declare type LicenceFindDataFiltersParameters = {
|
|
|
214
219
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]?: FiltersParameters;
|
|
215
220
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]?: FiltersParameters;
|
|
216
221
|
[LicenseFindResultFields.COLUMN_SEAT]?: FiltersParameters;
|
|
222
|
+
[LicenseFindResultFields.COLUMN_SECURITY]?: SecurityFindResultDataFiltersParameters | undefined;
|
|
217
223
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]?: FiltersParameters;
|
|
218
224
|
[LicenseFindResultFields.COLUMN_SKU]?: FiltersParameters;
|
|
219
225
|
[LicenseFindResultFields.COLUMN_START_DATE]?: FiltersParameters;
|
|
@@ -264,6 +270,7 @@ export declare class LicenseFindResult extends AbstractEntity<LicenseFindResultD
|
|
|
264
270
|
get resellerName(): string;
|
|
265
271
|
get resellerRef(): string;
|
|
266
272
|
get seat(): number;
|
|
273
|
+
get security(): SecurityFindResult;
|
|
267
274
|
get serviceRef(): string;
|
|
268
275
|
get sku(): string;
|
|
269
276
|
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, _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;
|
|
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_security, _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,6 +18,7 @@ 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");
|
|
21
22
|
/**
|
|
22
23
|
* Fields that can be present in License response and request data.
|
|
23
24
|
*/
|
|
@@ -49,6 +50,7 @@ var LicenseFindResultFields;
|
|
|
49
50
|
LicenseFindResultFields["COLUMN_RESELLER_NAME"] = "reseller_name";
|
|
50
51
|
LicenseFindResultFields["COLUMN_RESELLER_REF"] = "reseller_ref";
|
|
51
52
|
LicenseFindResultFields["COLUMN_SEAT"] = "seat";
|
|
53
|
+
LicenseFindResultFields["COLUMN_SECURITY"] = "security";
|
|
52
54
|
LicenseFindResultFields["COLUMN_SERVICE_REF"] = "service_ref";
|
|
53
55
|
LicenseFindResultFields["COLUMN_SKU"] = "sku";
|
|
54
56
|
LicenseFindResultFields["COLUMN_START_DATE"] = "start_date";
|
|
@@ -72,7 +74,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
72
74
|
* @param data - License find result data from the response.
|
|
73
75
|
*/
|
|
74
76
|
constructor(data) {
|
|
75
|
-
var _a, _b, _c;
|
|
77
|
+
var _a, _b, _c, _d, _e;
|
|
76
78
|
super(data);
|
|
77
79
|
this.VALIDATION_RULES = {
|
|
78
80
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]: 'present|boolean',
|
|
@@ -120,6 +122,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
120
122
|
_LicenseFindResult_resellerName.set(this, void 0);
|
|
121
123
|
_LicenseFindResult_resellerRef.set(this, void 0);
|
|
122
124
|
_LicenseFindResult_seat.set(this, void 0);
|
|
125
|
+
_LicenseFindResult_security.set(this, void 0);
|
|
123
126
|
_LicenseFindResult_serviceRef.set(this, void 0);
|
|
124
127
|
_LicenseFindResult_sku.set(this, void 0);
|
|
125
128
|
_LicenseFindResult_startDate.set(this, void 0);
|
|
@@ -172,6 +175,10 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
172
175
|
__classPrivateFieldSet(this, _LicenseFindResult_resellerName, data[LicenseFindResultFields.COLUMN_RESELLER_NAME], "f");
|
|
173
176
|
__classPrivateFieldSet(this, _LicenseFindResult_resellerRef, data[LicenseFindResultFields.COLUMN_RESELLER_REF], "f");
|
|
174
177
|
__classPrivateFieldSet(this, _LicenseFindResult_seat, data[LicenseFindResultFields.COLUMN_SEAT], "f");
|
|
178
|
+
const security = {
|
|
179
|
+
[securityFindResult_1.SecurityFindResultFields.COLUMN_ACTIVE_FRAUD_EVENTS]: (_d = (_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]) !== null && _d !== void 0 ? _d : null,
|
|
180
|
+
};
|
|
181
|
+
__classPrivateFieldSet(this, _LicenseFindResult_security, new securityFindResult_1.SecurityFindResult(security), "f");
|
|
175
182
|
__classPrivateFieldSet(this, _LicenseFindResult_serviceRef, data[LicenseFindResultFields.COLUMN_SERVICE_REF], "f");
|
|
176
183
|
__classPrivateFieldSet(this, _LicenseFindResult_sku, data[LicenseFindResultFields.COLUMN_SKU], "f");
|
|
177
184
|
__classPrivateFieldSet(this, _LicenseFindResult_startDate, data[LicenseFindResultFields.COLUMN_START_DATE], "f");
|
|
@@ -186,7 +193,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
186
193
|
__classPrivateFieldSet(this, _LicenseFindResult_vendorCode, data[LicenseFindResultFields.COLUMN_VENDOR_CODE], "f");
|
|
187
194
|
__classPrivateFieldSet(this, _LicenseFindResult_vendorName, data[LicenseFindResultFields.COLUMN_VENDOR_NAME], "f");
|
|
188
195
|
__classPrivateFieldSet(this, _LicenseFindResult_vendorSubscriptionId, data[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID], "f");
|
|
189
|
-
__classPrivateFieldSet(this, _LicenseFindResult_highlight, (
|
|
196
|
+
__classPrivateFieldSet(this, _LicenseFindResult_highlight, (_e = data[LicenseFindResultFields.COLUMN_HIGHLIGHT]) !== null && _e !== void 0 ? _e : {}, "f");
|
|
190
197
|
}
|
|
191
198
|
get id() {
|
|
192
199
|
return __classPrivateFieldGet(this, _LicenseFindResult_id, "f");
|
|
@@ -266,6 +273,9 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
266
273
|
get seat() {
|
|
267
274
|
return __classPrivateFieldGet(this, _LicenseFindResult_seat, "f");
|
|
268
275
|
}
|
|
276
|
+
get security() {
|
|
277
|
+
return __classPrivateFieldGet(this, _LicenseFindResult_security, "f");
|
|
278
|
+
}
|
|
269
279
|
get serviceRef() {
|
|
270
280
|
return __classPrivateFieldGet(this, _LicenseFindResult_serviceRef, "f");
|
|
271
281
|
}
|
|
@@ -344,6 +354,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
344
354
|
[LicenseFindResultFields.COLUMN_RESELLER_NAME]: this.resellerName,
|
|
345
355
|
[LicenseFindResultFields.COLUMN_RESELLER_REF]: this.resellerRef,
|
|
346
356
|
[LicenseFindResultFields.COLUMN_SEAT]: this.seat,
|
|
357
|
+
[LicenseFindResultFields.COLUMN_SECURITY]: this.security.toJSON(),
|
|
347
358
|
[LicenseFindResultFields.COLUMN_SERVICE_REF]: this.serviceRef,
|
|
348
359
|
[LicenseFindResultFields.COLUMN_SKU]: this.sku,
|
|
349
360
|
[LicenseFindResultFields.COLUMN_START_DATE]: this.startDate,
|
|
@@ -364,5 +375,5 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
364
375
|
}
|
|
365
376
|
}
|
|
366
377
|
exports.LicenseFindResult = LicenseFindResult;
|
|
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
|
+
_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_security = 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();
|
|
368
379
|
//# sourceMappingURL=licenseFindResult.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|
|
@@ -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 _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
|
|
@@ -11,6 +11,7 @@ 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';
|
|
14
15
|
import { GetResult } from '../getResult';
|
|
15
16
|
import { LicenseGetFields } from './entities/getLicense/licenseGetResult';
|
|
16
17
|
import { GetLicenseResult } from './entities/getResult/getLicenseResult';
|
|
@@ -112,6 +113,12 @@ export declare enum LicenseFindParameters {
|
|
|
112
113
|
*/
|
|
113
114
|
FILTERS_LTE = "lte"
|
|
114
115
|
}
|
|
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>;
|
|
115
122
|
/**
|
|
116
123
|
* List of keywords to search with.
|
|
117
124
|
*/
|
|
@@ -127,21 +134,14 @@ export declare type LicenseKeywordsParameters = {
|
|
|
127
134
|
offer?: OfferFindResultDataKeywords;
|
|
128
135
|
};
|
|
129
136
|
export declare type LicenseRawKeywordsParametersLicence = {
|
|
130
|
-
[field: string]: DataKeywords | ActiveSeatsFindResultDataKeywords | ConfigFindResultDataKeywords | WarningFindResultDataKeywords | PriceFindResultDataKeywords | undefined;
|
|
137
|
+
[field: string]: DataKeywords | ActiveSeatsFindResultDataKeywords | ConfigFindResultDataKeywords | WarningFindResultDataKeywords | PriceFindResultDataKeywords | SecurityFindResultDataKeywords | undefined;
|
|
131
138
|
};
|
|
132
139
|
export declare type LicenseRawKeywordsParametersOffer = {
|
|
133
140
|
[field: string]: DataKeywords | ActionFlagsFindResultDataKeywords | PriceBandFindResultDataKeywords | undefined;
|
|
134
141
|
};
|
|
135
142
|
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 | undefined;
|
|
144
|
+
[field: string]: SortParameters | ActiveSeatsFindResultDataSortParameters | ConfigFindResultDataSortParameters | WarningFindResultDataSortParameters | PriceFindResutDataSortParameters | SecurityFindResultDataSortParameters | undefined;
|
|
145
145
|
};
|
|
146
146
|
export declare type LicenseRawSortParametersOffer = {
|
|
147
147
|
[field: string]: SortParameters | ActionFlagsFindResultDataSortParameters | PriceBandFindResultDataSortParameters | undefined;
|
|
@@ -153,13 +153,6 @@ 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
|
-
};
|
|
163
156
|
export declare type LicenseRawFiltersParameters = {
|
|
164
157
|
[field: string]: unknown;
|
|
165
158
|
};
|
|
@@ -278,4 +271,6 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
278
271
|
getHistory(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenceHistoryResult>>;
|
|
279
272
|
cancelAutoRenew(licenseReference: string, payload?: PutCancelAutoRenew, parameters?: Parameters): Promise<void>;
|
|
280
273
|
reactivateAutoRenew(licenseReference: string, payload?: PutReactivateAutoRenew, parameters?: Parameters): Promise<void>;
|
|
274
|
+
private createFilters;
|
|
275
|
+
private createKeywords;
|
|
281
276
|
}
|
|
@@ -181,7 +181,6 @@ 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;
|
|
185
184
|
this.setPerPage(perPage);
|
|
186
185
|
this.setPage(page);
|
|
187
186
|
const rawLicensePayload = {
|
|
@@ -191,53 +190,29 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
191
190
|
if (postData.keywords) {
|
|
192
191
|
// Flatten with prefix for each type of keyword (license and offer)
|
|
193
192
|
rawLicensePayload.keywords = {
|
|
194
|
-
...
|
|
195
|
-
|
|
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
|
-
}, {}),
|
|
193
|
+
...this.createKeywords(postData.keywords, 'license'),
|
|
194
|
+
...this.createKeywords(postData.keywords, 'offer'),
|
|
202
195
|
};
|
|
203
196
|
}
|
|
204
197
|
if (postData.filters) {
|
|
205
198
|
// Flatten with prefix for each type of filter (license and offer)
|
|
206
199
|
rawLicensePayload.filters = {
|
|
207
|
-
...
|
|
208
|
-
|
|
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
|
-
}, {}),
|
|
200
|
+
...this.createFilters(postData.filters, 'license'),
|
|
201
|
+
...this.createFilters(postData.filters, 'offer'),
|
|
215
202
|
};
|
|
216
203
|
}
|
|
217
204
|
if (postData.exclusionFilters) {
|
|
218
205
|
// Flatten with prefix for each type of filter (license and offer)
|
|
219
206
|
rawLicensePayload.exclusionFilters = {
|
|
220
|
-
...
|
|
221
|
-
|
|
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
|
-
}, {}),
|
|
207
|
+
...this.createFilters(postData.exclusionFilters, 'license'),
|
|
208
|
+
...this.createFilters(postData.exclusionFilters, 'offer'),
|
|
228
209
|
};
|
|
229
210
|
}
|
|
230
211
|
if (postData.sort) {
|
|
231
212
|
// Flatten with prefix for each type of sort keys (license and offer)
|
|
232
213
|
rawLicensePayload.sort = {
|
|
233
|
-
...
|
|
234
|
-
|
|
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
|
-
}, {}),
|
|
214
|
+
...this.createFilters(postData.sort, 'license'),
|
|
215
|
+
...this.createFilters(postData.sort, 'offer'),
|
|
241
216
|
};
|
|
242
217
|
}
|
|
243
218
|
const response = await this.findRaw(rawLicensePayload, parameters);
|
|
@@ -302,6 +277,75 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
302
277
|
this.path = `/${licenseReference}${this.REACTIVATE_AUTO_RENEW_PATH}`;
|
|
303
278
|
return await this.put(payload, parameters);
|
|
304
279
|
}
|
|
280
|
+
createFilters(parameters, keyParent) {
|
|
281
|
+
let appropriateParameters;
|
|
282
|
+
if (typeof parameters === 'object') {
|
|
283
|
+
appropriateParameters =
|
|
284
|
+
keyParent === 'license' ? parameters.license : parameters.offer;
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
appropriateParameters = parameters;
|
|
288
|
+
}
|
|
289
|
+
return Object.entries(typeof appropriateParameters === 'object'
|
|
290
|
+
? appropriateParameters
|
|
291
|
+
: {}).reduce((acc, [key, value]) => {
|
|
292
|
+
if (typeof value === 'object' && !Array.isArray(value)) {
|
|
293
|
+
const subAcc = Object.entries(value).reduce((generatedArr, [i, val]) => {
|
|
294
|
+
let recursiveArr;
|
|
295
|
+
const newKey = keyParent + '.' + key + '.' + i;
|
|
296
|
+
if (typeof val !== 'object') {
|
|
297
|
+
generatedArr[`${newKey}`] = val;
|
|
298
|
+
return generatedArr;
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
recursiveArr = this.createFilters(val, newKey);
|
|
302
|
+
}
|
|
303
|
+
return Object.assign(generatedArr, recursiveArr);
|
|
304
|
+
}, {});
|
|
305
|
+
Object.assign(acc, subAcc);
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
acc[`${keyParent}.${key}`] = value;
|
|
309
|
+
}
|
|
310
|
+
return acc;
|
|
311
|
+
}, {});
|
|
312
|
+
}
|
|
313
|
+
createKeywords(parameters, keyParent) {
|
|
314
|
+
let appropriateParameters;
|
|
315
|
+
if (typeof parameters === 'object') {
|
|
316
|
+
appropriateParameters =
|
|
317
|
+
keyParent === 'license' ? parameters.license : parameters.offer;
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
appropriateParameters = parameters;
|
|
321
|
+
}
|
|
322
|
+
return Object.entries(appropriateParameters !== null && appropriateParameters !== void 0
|
|
323
|
+
? appropriateParameters
|
|
324
|
+
: {}).reduce((acc, [key, value]) => {
|
|
325
|
+
if (typeof value === 'object' &&
|
|
326
|
+
!Array.isArray(value) &&
|
|
327
|
+
!Object.prototype.hasOwnProperty.call(value, 'operator')) {
|
|
328
|
+
const subAcc = Object.entries(value).reduce((generatedArr, [i, val]) => {
|
|
329
|
+
let recursiveArr;
|
|
330
|
+
const newKey = keyParent + '.' + key + '.' + i;
|
|
331
|
+
if (typeof val !== 'object' ||
|
|
332
|
+
Object.prototype.hasOwnProperty.call(val, 'operator')) {
|
|
333
|
+
generatedArr[`${newKey}`] = val;
|
|
334
|
+
return generatedArr;
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
recursiveArr = this.createKeywords(val, newKey);
|
|
338
|
+
}
|
|
339
|
+
return Object.assign(generatedArr, recursiveArr);
|
|
340
|
+
}, {});
|
|
341
|
+
Object.assign(acc, subAcc);
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
acc[`${keyParent}.${key}`] = value;
|
|
345
|
+
}
|
|
346
|
+
return acc;
|
|
347
|
+
}, {});
|
|
348
|
+
}
|
|
305
349
|
}
|
|
306
350
|
exports.LicensesClient = LicensesClient;
|
|
307
351
|
//# sourceMappingURL=licensesClient.js.map
|
|
@@ -2,7 +2,6 @@ import { AbstractEntity } from '../../../../abstractEntity';
|
|
|
2
2
|
export declare enum SecurityChecksFields {
|
|
3
3
|
COLUMN_DESCRIPTION = "description",
|
|
4
4
|
COLUMN_FLAGGED = "flagged",
|
|
5
|
-
COLUMN_HAS_RESOURCES = "hasResources",
|
|
6
5
|
COLUMN_IS_FAILED = "isFailed",
|
|
7
6
|
COLUMN_METADATA = "metadata",
|
|
8
7
|
COLUMN_NAME = "name",
|
|
@@ -14,7 +13,6 @@ export declare enum SecurityChecksFields {
|
|
|
14
13
|
export declare type SecurityChecksType = {
|
|
15
14
|
[SecurityChecksFields.COLUMN_DESCRIPTION]: string;
|
|
16
15
|
[SecurityChecksFields.COLUMN_FLAGGED]: number;
|
|
17
|
-
[SecurityChecksFields.COLUMN_HAS_RESOURCES]: boolean;
|
|
18
16
|
[SecurityChecksFields.COLUMN_IS_FAILED]: boolean;
|
|
19
17
|
[SecurityChecksFields.COLUMN_METADATA]: Array<string>;
|
|
20
18
|
[SecurityChecksFields.COLUMN_NAME]: string;
|
|
@@ -28,7 +26,6 @@ export declare class SecurityChecks extends AbstractEntity<SecurityChecksType> {
|
|
|
28
26
|
constructor(securityChecksDataInput: SecurityChecksType);
|
|
29
27
|
get description(): string;
|
|
30
28
|
get flagged(): number;
|
|
31
|
-
get hasResources(): boolean;
|
|
32
29
|
get isFailed(): boolean;
|
|
33
30
|
get metadata(): Array<string>;
|
|
34
31
|
get name(): 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 _SecurityChecks_description, _SecurityChecks_flagged,
|
|
13
|
+
var _SecurityChecks_description, _SecurityChecks_flagged, _SecurityChecks_isFailed, _SecurityChecks_metadata, _SecurityChecks_name, _SecurityChecks_processed, _SecurityChecks_reference, _SecurityChecks_score, _SecurityChecks_severity;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.SecurityChecks = exports.SecurityChecksFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
@@ -18,7 +18,6 @@ var SecurityChecksFields;
|
|
|
18
18
|
(function (SecurityChecksFields) {
|
|
19
19
|
SecurityChecksFields["COLUMN_DESCRIPTION"] = "description";
|
|
20
20
|
SecurityChecksFields["COLUMN_FLAGGED"] = "flagged";
|
|
21
|
-
SecurityChecksFields["COLUMN_HAS_RESOURCES"] = "hasResources";
|
|
22
21
|
SecurityChecksFields["COLUMN_IS_FAILED"] = "isFailed";
|
|
23
22
|
SecurityChecksFields["COLUMN_METADATA"] = "metadata";
|
|
24
23
|
SecurityChecksFields["COLUMN_NAME"] = "name";
|
|
@@ -32,7 +31,6 @@ class SecurityChecks extends abstractEntity_1.AbstractEntity {
|
|
|
32
31
|
super(securityChecksDataInput);
|
|
33
32
|
_SecurityChecks_description.set(this, void 0);
|
|
34
33
|
_SecurityChecks_flagged.set(this, void 0);
|
|
35
|
-
_SecurityChecks_hasResources.set(this, void 0);
|
|
36
34
|
_SecurityChecks_isFailed.set(this, void 0);
|
|
37
35
|
_SecurityChecks_metadata.set(this, void 0);
|
|
38
36
|
_SecurityChecks_name.set(this, void 0);
|
|
@@ -42,7 +40,6 @@ class SecurityChecks extends abstractEntity_1.AbstractEntity {
|
|
|
42
40
|
_SecurityChecks_severity.set(this, void 0);
|
|
43
41
|
__classPrivateFieldSet(this, _SecurityChecks_description, securityChecksDataInput[SecurityChecksFields.COLUMN_DESCRIPTION], "f");
|
|
44
42
|
__classPrivateFieldSet(this, _SecurityChecks_flagged, securityChecksDataInput[SecurityChecksFields.COLUMN_FLAGGED], "f");
|
|
45
|
-
__classPrivateFieldSet(this, _SecurityChecks_hasResources, securityChecksDataInput[SecurityChecksFields.COLUMN_HAS_RESOURCES], "f");
|
|
46
43
|
__classPrivateFieldSet(this, _SecurityChecks_isFailed, securityChecksDataInput[SecurityChecksFields.COLUMN_IS_FAILED], "f");
|
|
47
44
|
__classPrivateFieldSet(this, _SecurityChecks_metadata, securityChecksDataInput[SecurityChecksFields.COLUMN_METADATA], "f");
|
|
48
45
|
__classPrivateFieldSet(this, _SecurityChecks_name, securityChecksDataInput[SecurityChecksFields.COLUMN_NAME], "f");
|
|
@@ -57,9 +54,6 @@ class SecurityChecks extends abstractEntity_1.AbstractEntity {
|
|
|
57
54
|
get flagged() {
|
|
58
55
|
return __classPrivateFieldGet(this, _SecurityChecks_flagged, "f");
|
|
59
56
|
}
|
|
60
|
-
get hasResources() {
|
|
61
|
-
return __classPrivateFieldGet(this, _SecurityChecks_hasResources, "f");
|
|
62
|
-
}
|
|
63
57
|
get isFailed() {
|
|
64
58
|
return __classPrivateFieldGet(this, _SecurityChecks_isFailed, "f");
|
|
65
59
|
}
|
|
@@ -85,7 +79,6 @@ class SecurityChecks extends abstractEntity_1.AbstractEntity {
|
|
|
85
79
|
return {
|
|
86
80
|
[SecurityChecksFields.COLUMN_DESCRIPTION]: this.description,
|
|
87
81
|
[SecurityChecksFields.COLUMN_FLAGGED]: this.flagged,
|
|
88
|
-
[SecurityChecksFields.COLUMN_HAS_RESOURCES]: this.hasResources,
|
|
89
82
|
[SecurityChecksFields.COLUMN_IS_FAILED]: this.isFailed,
|
|
90
83
|
[SecurityChecksFields.COLUMN_METADATA]: this.metadata,
|
|
91
84
|
[SecurityChecksFields.COLUMN_NAME]: this.name,
|
|
@@ -97,5 +90,5 @@ class SecurityChecks extends abstractEntity_1.AbstractEntity {
|
|
|
97
90
|
}
|
|
98
91
|
}
|
|
99
92
|
exports.SecurityChecks = SecurityChecks;
|
|
100
|
-
_SecurityChecks_description = new WeakMap(), _SecurityChecks_flagged = new WeakMap(),
|
|
93
|
+
_SecurityChecks_description = new WeakMap(), _SecurityChecks_flagged = new WeakMap(), _SecurityChecks_isFailed = new WeakMap(), _SecurityChecks_metadata = new WeakMap(), _SecurityChecks_name = new WeakMap(), _SecurityChecks_processed = new WeakMap(), _SecurityChecks_reference = new WeakMap(), _SecurityChecks_score = new WeakMap(), _SecurityChecks_severity = new WeakMap();
|
|
101
94
|
//# sourceMappingURL=securityChecks.js.map
|
|
@@ -50,7 +50,6 @@ export declare enum SearchFilterValues {
|
|
|
50
50
|
ACCOUNT_STANDARDS_CHECKS_SEVERITY = "account.standards.checks.severity",
|
|
51
51
|
ACCOUNT_STANDARDS_CHECKS_PROCESSED = "account.standards.checks.processed",
|
|
52
52
|
ACCOUNT_STANDARDS_CHECKS_FLAGGED = "account.standards.checks.flagged",
|
|
53
|
-
ACCOUNT_STANDARDS_CHECKS_HAS_RESOURCES = "account.standards.checks.hasResources",
|
|
54
53
|
ACCOUNT_STANDARDS_CHECKS_IS_FAILED = "account.standards.checks.isFailed",
|
|
55
54
|
ACCOUNT_STANDARDS_CHECKS_SCORE = "account.standards.checks.score",
|
|
56
55
|
ACCOUNT_FAILED = "account.failed",
|
|
@@ -59,7 +59,6 @@ var SearchFilterValues;
|
|
|
59
59
|
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_SEVERITY"] = "account.standards.checks.severity";
|
|
60
60
|
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_PROCESSED"] = "account.standards.checks.processed";
|
|
61
61
|
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_FLAGGED"] = "account.standards.checks.flagged";
|
|
62
|
-
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_HAS_RESOURCES"] = "account.standards.checks.hasResources";
|
|
63
62
|
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_IS_FAILED"] = "account.standards.checks.isFailed";
|
|
64
63
|
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_SCORE"] = "account.standards.checks.score";
|
|
65
64
|
SearchFilterValues["ACCOUNT_FAILED"] = "account.failed";
|
|
@@ -43,7 +43,6 @@ export declare type CheckType = {
|
|
|
43
43
|
description?: string;
|
|
44
44
|
flagged?: number;
|
|
45
45
|
group?: string;
|
|
46
|
-
hasResources?: boolean;
|
|
47
46
|
isFailed?: boolean;
|
|
48
47
|
name?: string;
|
|
49
48
|
processed?: number;
|
|
@@ -319,7 +318,6 @@ export declare type MarketplacesAggType = {
|
|
|
319
318
|
export declare type CheckByDateType = {
|
|
320
319
|
date?: string;
|
|
321
320
|
flagged?: number;
|
|
322
|
-
hasResources?: boolean;
|
|
323
321
|
isFailed?: boolean;
|
|
324
322
|
name?: string;
|
|
325
323
|
processed?: number;
|
package/package.json
CHANGED