@arrowsphere/api-client 3.29.0-rc.uts.1 → 3.29.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/README.md +12 -0
- package/build/AbstractHttpClient.d.ts +47 -0
- package/build/AbstractHttpClient.js +80 -0
- package/build/abstractClient.d.ts +3 -19
- package/build/abstractClient.js +8 -23
- package/build/abstractGraphQLClient.d.ts +4 -14
- package/build/abstractGraphQLClient.js +32 -23
- package/build/catalog/catalogGraphQLClient.d.ts +2 -0
- package/build/catalog/catalogGraphQLClient.js +14 -1
- package/build/catalog/index.d.ts +2 -0
- package/build/catalog/index.js +2 -0
- package/build/catalog/types/catalogGraphQLQueries.d.ts +12 -0
- package/build/catalog/types/catalogGraphQLQueries.js +3 -0
- package/build/catalog/types/catalogGraphQLSchemas.d.ts +30 -0
- package/build/catalog/types/catalogGraphQLSchemas.js +4 -0
- package/build/catalog/types/catalogGraphQLTypes.js +1 -0
- package/build/catalog/types/queryArguments.d.ts +41 -0
- package/build/catalog/types/queryArguments.js +10 -0
- package/build/exception/exception-handlers/HandleHttpExceptionOutput.d.ts +3 -0
- package/build/exception/exception-handlers/HandleHttpExceptionOutput.js +3 -0
- package/build/exception/exception-handlers/Hooks.d.ts +3 -0
- package/build/exception/exception-handlers/Hooks.js +3 -0
- package/build/exception/exception-handlers/HttpExceptionHandler.d.ts +10 -0
- package/build/exception/exception-handlers/HttpExceptionHandler.js +3 -0
- package/build/exception/exception-handlers/index.d.ts +3 -0
- package/build/exception/exception-handlers/index.js +20 -0
- package/build/exception/publicApiClientException.d.ts +2 -1
- package/build/exception/publicApiClientException.js +2 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/licenses/entities/findResult.d.ts +1 -1
- package/build/licenses/entities/findResult.js +1 -1
- package/build/securityScore/entities/getCustomerAccountData.d.ts +48 -0
- package/build/securityScore/entities/getCustomerAccountData.js +111 -0
- package/build/securityScore/entities/getCustomerData.d.ts +51 -0
- package/build/securityScore/entities/getCustomerData.js +117 -0
- package/build/securityScore/entities/getPartnerData.d.ts +45 -0
- package/build/securityScore/entities/getPartnerData.js +102 -0
- package/build/securityScore/index.d.ts +7 -0
- package/build/securityScore/index.js +24 -0
- package/build/securityScore/securityScoreGraphQLClient.d.ts +19 -0
- package/build/securityScore/securityScoreGraphQLClient.js +61 -0
- package/build/securityScore/types/queryArguments.d.ts +108 -0
- package/build/securityScore/types/queryArguments.js +93 -0
- package/build/securityScore/types/securityScoreGraphQLQueries.d.ts +62 -0
- package/build/securityScore/types/securityScoreGraphQLQueries.js +7 -0
- package/build/securityScore/types/securityScoreGraphQLSchemas.d.ts +78 -0
- package/build/securityScore/types/securityScoreGraphQLSchemas.js +3 -0
- package/build/securityScore/types/securityScoreGraphQLTypes.d.ts +190 -0
- package/build/securityScore/types/securityScoreGraphQLTypes.js +3 -0
- package/package.json +3 -1
|
@@ -54,7 +54,7 @@ export declare class FindResult extends AbstractEntity<FindData> {
|
|
|
54
54
|
}, void, undefined>;
|
|
55
55
|
/**
|
|
56
56
|
* Gets all the licenses from the result, page per page.
|
|
57
|
-
* Follows the
|
|
57
|
+
* Follows the async interator implementation through the generator pattern.
|
|
58
58
|
* @returns Generator|{@link LicenseFindResult}[]
|
|
59
59
|
*/
|
|
60
60
|
getResults(): AsyncGenerator<{
|
|
@@ -59,7 +59,7 @@ class FindResult extends abstractEntity_1.AbstractEntity {
|
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Gets all the licenses from the result, page per page.
|
|
62
|
-
* Follows the
|
|
62
|
+
* Follows the async interator implementation through the generator pattern.
|
|
63
63
|
* @returns Generator|{@link LicenseFindResult}[]
|
|
64
64
|
*/
|
|
65
65
|
async *getResults() {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { ChecksAggType, FilterType, MonthlyTrendAggType, PaginationsType, PeriodsType, ScoreResultType, ScoresAggType, SeveritiesAggType, StandardsAggType, StandardWithCheckType } from '../types/securityScoreGraphQLTypes';
|
|
3
|
+
import { SecurityScoreQueries } from '../types/queryArguments';
|
|
4
|
+
export declare enum GetCustomerAccountDataFields {
|
|
5
|
+
COLUMN_AVG_CURRENT_SCORE = "avgCurrentScore",
|
|
6
|
+
COLUMN_CHECKS_AGG = "checksAgg",
|
|
7
|
+
COLUMN_FILTERS = "filters",
|
|
8
|
+
COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
|
|
9
|
+
COLUMN_PAGINATION = "pagination",
|
|
10
|
+
COLUMN_PERIOD = "period",
|
|
11
|
+
COLUMN_RESULTS = "results",
|
|
12
|
+
COLUMN_SCORES_AGG = "scoresAgg",
|
|
13
|
+
COLUMN_SEVERITIES_AGG = "severitiesAgg",
|
|
14
|
+
COLUMN_STANDARDS_AGG = "standardsAgg",
|
|
15
|
+
COLUMN_STANDARDS = "standards"
|
|
16
|
+
}
|
|
17
|
+
export declare type GetCustomerAccountDataType = {
|
|
18
|
+
[GetCustomerAccountDataFields.COLUMN_AVG_CURRENT_SCORE]?: number;
|
|
19
|
+
[GetCustomerAccountDataFields.COLUMN_CHECKS_AGG]?: ChecksAggType;
|
|
20
|
+
[GetCustomerAccountDataFields.COLUMN_FILTERS]?: [FilterType];
|
|
21
|
+
[GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
|
|
22
|
+
[GetCustomerAccountDataFields.COLUMN_PAGINATION]?: PaginationsType;
|
|
23
|
+
[GetCustomerAccountDataFields.COLUMN_PERIOD]?: PeriodsType;
|
|
24
|
+
[GetCustomerAccountDataFields.COLUMN_RESULTS]?: [ScoreResultType];
|
|
25
|
+
[GetCustomerAccountDataFields.COLUMN_SCORES_AGG]?: ScoresAggType;
|
|
26
|
+
[GetCustomerAccountDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggType;
|
|
27
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG]?: StandardsAggType;
|
|
28
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS]?: [StandardWithCheckType];
|
|
29
|
+
};
|
|
30
|
+
export declare type GetCustomerAccountDataGraphQLResultType = {
|
|
31
|
+
[SecurityScoreQueries.GET_CUSTOMER_ACCOUNT_DATA]: GetCustomerAccountDataType;
|
|
32
|
+
};
|
|
33
|
+
export declare class GetCustomerAccountData extends AbstractEntity<GetCustomerAccountDataType> {
|
|
34
|
+
#private;
|
|
35
|
+
constructor(getCustomerAccountDataInput: GetCustomerAccountDataType);
|
|
36
|
+
get avgCurrentScore(): number | undefined;
|
|
37
|
+
get checksAgg(): ChecksAggType | undefined;
|
|
38
|
+
get filters(): [FilterType] | undefined;
|
|
39
|
+
get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
|
|
40
|
+
get pagination(): PaginationsType | undefined;
|
|
41
|
+
get period(): PeriodsType | undefined;
|
|
42
|
+
get scoresAgg(): ScoresAggType | undefined;
|
|
43
|
+
get results(): [ScoreResultType] | undefined;
|
|
44
|
+
get severitiesAgg(): SeveritiesAggType | undefined;
|
|
45
|
+
get standardsAgg(): StandardsAggType | undefined;
|
|
46
|
+
get standards(): [StandardWithCheckType] | undefined;
|
|
47
|
+
toJSON(): GetCustomerAccountDataType;
|
|
48
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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 _GetCustomerAccountData_avgCurrentScore, _GetCustomerAccountData_checksAgg, _GetCustomerAccountData_filters, _GetCustomerAccountData_monthlyTrendAgg, _GetCustomerAccountData_pagination, _GetCustomerAccountData_period, _GetCustomerAccountData_results, _GetCustomerAccountData_scoresAgg, _GetCustomerAccountData_severitiesAgg, _GetCustomerAccountData_standardsAgg, _GetCustomerAccountData_standards;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GetCustomerAccountData = exports.GetCustomerAccountDataFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const queryArguments_1 = require("../types/queryArguments");
|
|
18
|
+
var GetCustomerAccountDataFields;
|
|
19
|
+
(function (GetCustomerAccountDataFields) {
|
|
20
|
+
GetCustomerAccountDataFields["COLUMN_AVG_CURRENT_SCORE"] = "avgCurrentScore";
|
|
21
|
+
GetCustomerAccountDataFields["COLUMN_CHECKS_AGG"] = "checksAgg";
|
|
22
|
+
GetCustomerAccountDataFields["COLUMN_FILTERS"] = "filters";
|
|
23
|
+
GetCustomerAccountDataFields["COLUMN_MONTHLY_TREND_AGG"] = "monthlyTrendAgg";
|
|
24
|
+
GetCustomerAccountDataFields["COLUMN_PAGINATION"] = "pagination";
|
|
25
|
+
GetCustomerAccountDataFields["COLUMN_PERIOD"] = "period";
|
|
26
|
+
GetCustomerAccountDataFields["COLUMN_RESULTS"] = "results";
|
|
27
|
+
GetCustomerAccountDataFields["COLUMN_SCORES_AGG"] = "scoresAgg";
|
|
28
|
+
GetCustomerAccountDataFields["COLUMN_SEVERITIES_AGG"] = "severitiesAgg";
|
|
29
|
+
GetCustomerAccountDataFields["COLUMN_STANDARDS_AGG"] = "standardsAgg";
|
|
30
|
+
GetCustomerAccountDataFields["COLUMN_STANDARDS"] = "standards";
|
|
31
|
+
})(GetCustomerAccountDataFields = exports.GetCustomerAccountDataFields || (exports.GetCustomerAccountDataFields = {}));
|
|
32
|
+
class GetCustomerAccountData extends abstractEntity_1.AbstractEntity {
|
|
33
|
+
constructor(getCustomerAccountDataInput) {
|
|
34
|
+
super(getCustomerAccountDataInput);
|
|
35
|
+
_GetCustomerAccountData_avgCurrentScore.set(this, void 0);
|
|
36
|
+
_GetCustomerAccountData_checksAgg.set(this, void 0);
|
|
37
|
+
_GetCustomerAccountData_filters.set(this, void 0);
|
|
38
|
+
_GetCustomerAccountData_monthlyTrendAgg.set(this, void 0);
|
|
39
|
+
_GetCustomerAccountData_pagination.set(this, void 0);
|
|
40
|
+
_GetCustomerAccountData_period.set(this, void 0);
|
|
41
|
+
_GetCustomerAccountData_results.set(this, void 0);
|
|
42
|
+
_GetCustomerAccountData_scoresAgg.set(this, void 0);
|
|
43
|
+
_GetCustomerAccountData_severitiesAgg.set(this, void 0);
|
|
44
|
+
_GetCustomerAccountData_standardsAgg.set(this, void 0);
|
|
45
|
+
_GetCustomerAccountData_standards.set(this, void 0);
|
|
46
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_avgCurrentScore, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_AVG_CURRENT_SCORE], "f");
|
|
47
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_checksAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_CHECKS_AGG], "f");
|
|
48
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_filters, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_FILTERS], "f");
|
|
49
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_monthlyTrendAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG], "f");
|
|
50
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_pagination, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_PAGINATION], "f");
|
|
51
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_period, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_PERIOD], "f");
|
|
52
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_results, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_RESULTS], "f");
|
|
53
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_scoresAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_SCORES_AGG], "f");
|
|
54
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_severitiesAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_SEVERITIES_AGG], "f");
|
|
55
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_standardsAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG], "f");
|
|
56
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_standards, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_STANDARDS], "f");
|
|
57
|
+
}
|
|
58
|
+
get avgCurrentScore() {
|
|
59
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_avgCurrentScore, "f");
|
|
60
|
+
}
|
|
61
|
+
get checksAgg() {
|
|
62
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_checksAgg, "f");
|
|
63
|
+
}
|
|
64
|
+
get filters() {
|
|
65
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_filters, "f");
|
|
66
|
+
}
|
|
67
|
+
get monthlyTrendAgg() {
|
|
68
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_monthlyTrendAgg, "f");
|
|
69
|
+
}
|
|
70
|
+
get pagination() {
|
|
71
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_pagination, "f");
|
|
72
|
+
}
|
|
73
|
+
get period() {
|
|
74
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_period, "f");
|
|
75
|
+
}
|
|
76
|
+
get scoresAgg() {
|
|
77
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_scoresAgg, "f");
|
|
78
|
+
}
|
|
79
|
+
get results() {
|
|
80
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_results, "f");
|
|
81
|
+
}
|
|
82
|
+
get severitiesAgg() {
|
|
83
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_severitiesAgg, "f");
|
|
84
|
+
}
|
|
85
|
+
get standardsAgg() {
|
|
86
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_standardsAgg, "f");
|
|
87
|
+
}
|
|
88
|
+
get standards() {
|
|
89
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_standards, "f");
|
|
90
|
+
}
|
|
91
|
+
toJSON() {
|
|
92
|
+
return {
|
|
93
|
+
[GetCustomerAccountDataFields.COLUMN_AVG_CURRENT_SCORE]: this
|
|
94
|
+
.avgCurrentScore,
|
|
95
|
+
[GetCustomerAccountDataFields.COLUMN_CHECKS_AGG]: this.checksAgg,
|
|
96
|
+
[GetCustomerAccountDataFields.COLUMN_FILTERS]: this.filters,
|
|
97
|
+
[GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG]: this
|
|
98
|
+
.monthlyTrendAgg,
|
|
99
|
+
[GetCustomerAccountDataFields.COLUMN_PAGINATION]: this.pagination,
|
|
100
|
+
[GetCustomerAccountDataFields.COLUMN_PERIOD]: this.period,
|
|
101
|
+
[GetCustomerAccountDataFields.COLUMN_SCORES_AGG]: this.scoresAgg,
|
|
102
|
+
[GetCustomerAccountDataFields.COLUMN_RESULTS]: this.results,
|
|
103
|
+
[GetCustomerAccountDataFields.COLUMN_SEVERITIES_AGG]: this.severitiesAgg,
|
|
104
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG]: this.standardsAgg,
|
|
105
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS]: this.standards,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.GetCustomerAccountData = GetCustomerAccountData;
|
|
110
|
+
_GetCustomerAccountData_avgCurrentScore = new WeakMap(), _GetCustomerAccountData_checksAgg = new WeakMap(), _GetCustomerAccountData_filters = new WeakMap(), _GetCustomerAccountData_monthlyTrendAgg = new WeakMap(), _GetCustomerAccountData_pagination = new WeakMap(), _GetCustomerAccountData_period = new WeakMap(), _GetCustomerAccountData_results = new WeakMap(), _GetCustomerAccountData_scoresAgg = new WeakMap(), _GetCustomerAccountData_severitiesAgg = new WeakMap(), _GetCustomerAccountData_standardsAgg = new WeakMap(), _GetCustomerAccountData_standards = new WeakMap();
|
|
111
|
+
//# sourceMappingURL=getCustomerAccountData.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { AccountsAggType, FilterType, ScoreResultType, MonthlyTrendAggType, SeveritiesAggType, PaginationsType, PeriodsType, StandardType, ChecksAggType, ScoresAggType } from '../types/securityScoreGraphQLTypes';
|
|
3
|
+
import { SecurityScoreQueries } from '../types/queryArguments';
|
|
4
|
+
export declare enum GetCustomerDataFields {
|
|
5
|
+
COLUMN_ACCOUNTS_AGG = "accountsAgg",
|
|
6
|
+
COLUMN_AVG_CURRENT_SCORE = "avgCurrentScore",
|
|
7
|
+
COLUMN_CHECKS_AGG = "checksAgg",
|
|
8
|
+
COLUMN_FILTERS = "filters",
|
|
9
|
+
COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
|
|
10
|
+
COLUMN_PAGINATION = "pagination",
|
|
11
|
+
COLUMN_PERIOD = "period",
|
|
12
|
+
COLUMN_RESULTS = "results",
|
|
13
|
+
COLUMN_SCORES_AGG = "scoresAgg",
|
|
14
|
+
COLUMN_SEVERITIES_AGG = "severitiesAgg",
|
|
15
|
+
COLUMN_STANDARDS = "standards",
|
|
16
|
+
COLUMN_SUBSCRIPTION_REFERENCES = "subscriptionReferences"
|
|
17
|
+
}
|
|
18
|
+
export declare type GetCustomerDataType = {
|
|
19
|
+
[GetCustomerDataFields.COLUMN_ACCOUNTS_AGG]?: AccountsAggType;
|
|
20
|
+
[GetCustomerDataFields.COLUMN_AVG_CURRENT_SCORE]?: number;
|
|
21
|
+
[GetCustomerDataFields.COLUMN_CHECKS_AGG]?: ChecksAggType;
|
|
22
|
+
[GetCustomerDataFields.COLUMN_FILTERS]?: [FilterType];
|
|
23
|
+
[GetCustomerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
|
|
24
|
+
[GetCustomerDataFields.COLUMN_PAGINATION]?: PaginationsType;
|
|
25
|
+
[GetCustomerDataFields.COLUMN_PERIOD]?: PeriodsType;
|
|
26
|
+
[GetCustomerDataFields.COLUMN_RESULTS]?: [ScoreResultType];
|
|
27
|
+
[GetCustomerDataFields.COLUMN_SCORES_AGG]?: ScoresAggType;
|
|
28
|
+
[GetCustomerDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggType;
|
|
29
|
+
[GetCustomerDataFields.COLUMN_STANDARDS]?: [StandardType];
|
|
30
|
+
[GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES]?: number;
|
|
31
|
+
};
|
|
32
|
+
export declare type GetCustomerDataGraphQLResultType = {
|
|
33
|
+
[SecurityScoreQueries.GET_CUSTOMER_DATA]: GetCustomerDataType;
|
|
34
|
+
};
|
|
35
|
+
export declare class GetCustomerData extends AbstractEntity<GetCustomerDataType> {
|
|
36
|
+
#private;
|
|
37
|
+
constructor(getCustomerDataInput: GetCustomerDataType);
|
|
38
|
+
get accountsAgg(): AccountsAggType | undefined;
|
|
39
|
+
get avgCurrentScore(): number | undefined;
|
|
40
|
+
get checksAgg(): ChecksAggType | undefined;
|
|
41
|
+
get filters(): [FilterType] | undefined;
|
|
42
|
+
get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
|
|
43
|
+
get pagination(): PaginationsType | undefined;
|
|
44
|
+
get period(): PeriodsType | undefined;
|
|
45
|
+
get results(): [ScoreResultType] | undefined;
|
|
46
|
+
get scoresAgg(): ScoresAggType | undefined;
|
|
47
|
+
get severitiesAgg(): SeveritiesAggType | undefined;
|
|
48
|
+
get standards(): [StandardType] | undefined;
|
|
49
|
+
get subscriptionReferences(): number | undefined;
|
|
50
|
+
toJSON(): GetCustomerDataType;
|
|
51
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
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 _GetCustomerData_accountsAgg, _GetCustomerData_avgCurrentScore, _GetCustomerData_checksAgg, _GetCustomerData_filters, _GetCustomerData_monthlyTrendAgg, _GetCustomerData_pagination, _GetCustomerData_period, _GetCustomerData_results, _GetCustomerData_scoresAgg, _GetCustomerData_severitiesAgg, _GetCustomerData_standards, _GetCustomerData_subscriptionReferences;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GetCustomerData = exports.GetCustomerDataFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const queryArguments_1 = require("../types/queryArguments");
|
|
18
|
+
var GetCustomerDataFields;
|
|
19
|
+
(function (GetCustomerDataFields) {
|
|
20
|
+
GetCustomerDataFields["COLUMN_ACCOUNTS_AGG"] = "accountsAgg";
|
|
21
|
+
GetCustomerDataFields["COLUMN_AVG_CURRENT_SCORE"] = "avgCurrentScore";
|
|
22
|
+
GetCustomerDataFields["COLUMN_CHECKS_AGG"] = "checksAgg";
|
|
23
|
+
GetCustomerDataFields["COLUMN_FILTERS"] = "filters";
|
|
24
|
+
GetCustomerDataFields["COLUMN_MONTHLY_TREND_AGG"] = "monthlyTrendAgg";
|
|
25
|
+
GetCustomerDataFields["COLUMN_PAGINATION"] = "pagination";
|
|
26
|
+
GetCustomerDataFields["COLUMN_PERIOD"] = "period";
|
|
27
|
+
GetCustomerDataFields["COLUMN_RESULTS"] = "results";
|
|
28
|
+
GetCustomerDataFields["COLUMN_SCORES_AGG"] = "scoresAgg";
|
|
29
|
+
GetCustomerDataFields["COLUMN_SEVERITIES_AGG"] = "severitiesAgg";
|
|
30
|
+
GetCustomerDataFields["COLUMN_STANDARDS"] = "standards";
|
|
31
|
+
GetCustomerDataFields["COLUMN_SUBSCRIPTION_REFERENCES"] = "subscriptionReferences";
|
|
32
|
+
})(GetCustomerDataFields = exports.GetCustomerDataFields || (exports.GetCustomerDataFields = {}));
|
|
33
|
+
class GetCustomerData extends abstractEntity_1.AbstractEntity {
|
|
34
|
+
constructor(getCustomerDataInput) {
|
|
35
|
+
super(getCustomerDataInput);
|
|
36
|
+
_GetCustomerData_accountsAgg.set(this, void 0);
|
|
37
|
+
_GetCustomerData_avgCurrentScore.set(this, void 0);
|
|
38
|
+
_GetCustomerData_checksAgg.set(this, void 0);
|
|
39
|
+
_GetCustomerData_filters.set(this, void 0);
|
|
40
|
+
_GetCustomerData_monthlyTrendAgg.set(this, void 0);
|
|
41
|
+
_GetCustomerData_pagination.set(this, void 0);
|
|
42
|
+
_GetCustomerData_period.set(this, void 0);
|
|
43
|
+
_GetCustomerData_results.set(this, void 0);
|
|
44
|
+
_GetCustomerData_scoresAgg.set(this, void 0);
|
|
45
|
+
_GetCustomerData_severitiesAgg.set(this, void 0);
|
|
46
|
+
_GetCustomerData_standards.set(this, void 0);
|
|
47
|
+
_GetCustomerData_subscriptionReferences.set(this, void 0);
|
|
48
|
+
__classPrivateFieldSet(this, _GetCustomerData_accountsAgg, getCustomerDataInput[GetCustomerDataFields.COLUMN_ACCOUNTS_AGG], "f");
|
|
49
|
+
__classPrivateFieldSet(this, _GetCustomerData_avgCurrentScore, getCustomerDataInput[GetCustomerDataFields.COLUMN_AVG_CURRENT_SCORE], "f");
|
|
50
|
+
__classPrivateFieldSet(this, _GetCustomerData_checksAgg, getCustomerDataInput[GetCustomerDataFields.COLUMN_CHECKS_AGG], "f");
|
|
51
|
+
__classPrivateFieldSet(this, _GetCustomerData_filters, getCustomerDataInput[GetCustomerDataFields.COLUMN_FILTERS], "f");
|
|
52
|
+
__classPrivateFieldSet(this, _GetCustomerData_monthlyTrendAgg, getCustomerDataInput[GetCustomerDataFields.COLUMN_MONTHLY_TREND_AGG], "f");
|
|
53
|
+
__classPrivateFieldSet(this, _GetCustomerData_pagination, getCustomerDataInput[GetCustomerDataFields.COLUMN_PAGINATION], "f");
|
|
54
|
+
__classPrivateFieldSet(this, _GetCustomerData_period, getCustomerDataInput[GetCustomerDataFields.COLUMN_PERIOD], "f");
|
|
55
|
+
__classPrivateFieldSet(this, _GetCustomerData_results, getCustomerDataInput[GetCustomerDataFields.COLUMN_RESULTS], "f");
|
|
56
|
+
__classPrivateFieldSet(this, _GetCustomerData_scoresAgg, getCustomerDataInput[GetCustomerDataFields.COLUMN_SCORES_AGG], "f");
|
|
57
|
+
__classPrivateFieldSet(this, _GetCustomerData_severitiesAgg, getCustomerDataInput[GetCustomerDataFields.COLUMN_SEVERITIES_AGG], "f");
|
|
58
|
+
__classPrivateFieldSet(this, _GetCustomerData_standards, getCustomerDataInput[GetCustomerDataFields.COLUMN_STANDARDS], "f");
|
|
59
|
+
__classPrivateFieldSet(this, _GetCustomerData_subscriptionReferences, getCustomerDataInput[GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES], "f");
|
|
60
|
+
}
|
|
61
|
+
get accountsAgg() {
|
|
62
|
+
return __classPrivateFieldGet(this, _GetCustomerData_accountsAgg, "f");
|
|
63
|
+
}
|
|
64
|
+
get avgCurrentScore() {
|
|
65
|
+
return __classPrivateFieldGet(this, _GetCustomerData_avgCurrentScore, "f");
|
|
66
|
+
}
|
|
67
|
+
get checksAgg() {
|
|
68
|
+
return __classPrivateFieldGet(this, _GetCustomerData_checksAgg, "f");
|
|
69
|
+
}
|
|
70
|
+
get filters() {
|
|
71
|
+
return __classPrivateFieldGet(this, _GetCustomerData_filters, "f");
|
|
72
|
+
}
|
|
73
|
+
get monthlyTrendAgg() {
|
|
74
|
+
return __classPrivateFieldGet(this, _GetCustomerData_monthlyTrendAgg, "f");
|
|
75
|
+
}
|
|
76
|
+
get pagination() {
|
|
77
|
+
return __classPrivateFieldGet(this, _GetCustomerData_pagination, "f");
|
|
78
|
+
}
|
|
79
|
+
get period() {
|
|
80
|
+
return __classPrivateFieldGet(this, _GetCustomerData_period, "f");
|
|
81
|
+
}
|
|
82
|
+
get results() {
|
|
83
|
+
return __classPrivateFieldGet(this, _GetCustomerData_results, "f");
|
|
84
|
+
}
|
|
85
|
+
get scoresAgg() {
|
|
86
|
+
return __classPrivateFieldGet(this, _GetCustomerData_scoresAgg, "f");
|
|
87
|
+
}
|
|
88
|
+
get severitiesAgg() {
|
|
89
|
+
return __classPrivateFieldGet(this, _GetCustomerData_severitiesAgg, "f");
|
|
90
|
+
}
|
|
91
|
+
get standards() {
|
|
92
|
+
return __classPrivateFieldGet(this, _GetCustomerData_standards, "f");
|
|
93
|
+
}
|
|
94
|
+
get subscriptionReferences() {
|
|
95
|
+
return __classPrivateFieldGet(this, _GetCustomerData_subscriptionReferences, "f");
|
|
96
|
+
}
|
|
97
|
+
toJSON() {
|
|
98
|
+
return {
|
|
99
|
+
[GetCustomerDataFields.COLUMN_ACCOUNTS_AGG]: this.accountsAgg,
|
|
100
|
+
[GetCustomerDataFields.COLUMN_AVG_CURRENT_SCORE]: this.avgCurrentScore,
|
|
101
|
+
[GetCustomerDataFields.COLUMN_CHECKS_AGG]: this.checksAgg,
|
|
102
|
+
[GetCustomerDataFields.COLUMN_FILTERS]: this.filters,
|
|
103
|
+
[GetCustomerDataFields.COLUMN_MONTHLY_TREND_AGG]: this.monthlyTrendAgg,
|
|
104
|
+
[GetCustomerDataFields.COLUMN_PAGINATION]: this.pagination,
|
|
105
|
+
[GetCustomerDataFields.COLUMN_PERIOD]: this.period,
|
|
106
|
+
[GetCustomerDataFields.COLUMN_RESULTS]: this.results,
|
|
107
|
+
[GetCustomerDataFields.COLUMN_SCORES_AGG]: this.scoresAgg,
|
|
108
|
+
[GetCustomerDataFields.COLUMN_SEVERITIES_AGG]: this.severitiesAgg,
|
|
109
|
+
[GetCustomerDataFields.COLUMN_STANDARDS]: this.standards,
|
|
110
|
+
[GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES]: this
|
|
111
|
+
.subscriptionReferences,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.GetCustomerData = GetCustomerData;
|
|
116
|
+
_GetCustomerData_accountsAgg = new WeakMap(), _GetCustomerData_avgCurrentScore = new WeakMap(), _GetCustomerData_checksAgg = new WeakMap(), _GetCustomerData_filters = new WeakMap(), _GetCustomerData_monthlyTrendAgg = new WeakMap(), _GetCustomerData_pagination = new WeakMap(), _GetCustomerData_period = new WeakMap(), _GetCustomerData_results = new WeakMap(), _GetCustomerData_scoresAgg = new WeakMap(), _GetCustomerData_severitiesAgg = new WeakMap(), _GetCustomerData_standards = new WeakMap(), _GetCustomerData_subscriptionReferences = new WeakMap();
|
|
117
|
+
//# sourceMappingURL=getCustomerData.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { EndCustomersAggType, FilterType, MonthlyTrendAggType, PaginationsType, PeriodsType, ScoreResultType, SeveritiesAggType, ScoresAggType, ChecksAggType } from '../types/securityScoreGraphQLTypes';
|
|
3
|
+
import { SecurityScoreQueries } from '../types/queryArguments';
|
|
4
|
+
export declare enum GetPartnerDataFields {
|
|
5
|
+
COLUMN_AVG_CURRENT_SCORE = "avgCurrentScore",
|
|
6
|
+
COLUMN_CHECKS_AGG = "checksAgg",
|
|
7
|
+
COLUMN_END_CUSTOMERS_AGG = "endCustomersAgg",
|
|
8
|
+
COLUMN_FILTERS = "filters",
|
|
9
|
+
COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
|
|
10
|
+
COLUMN_PAGINATION = "pagination",
|
|
11
|
+
COLUMN_PERIOD = "period",
|
|
12
|
+
COLUMN_RESULTS = "results",
|
|
13
|
+
COLUMN_SCORES_AGG = "scoresAgg",
|
|
14
|
+
COLUMN_SEVERITIES_AGG = "severitiesAgg"
|
|
15
|
+
}
|
|
16
|
+
export declare type GetPartnerDataType = {
|
|
17
|
+
[GetPartnerDataFields.COLUMN_AVG_CURRENT_SCORE]?: number;
|
|
18
|
+
[GetPartnerDataFields.COLUMN_CHECKS_AGG]?: ChecksAggType;
|
|
19
|
+
[GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG]?: EndCustomersAggType;
|
|
20
|
+
[GetPartnerDataFields.COLUMN_FILTERS]?: [FilterType];
|
|
21
|
+
[GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
|
|
22
|
+
[GetPartnerDataFields.COLUMN_PAGINATION]?: PaginationsType;
|
|
23
|
+
[GetPartnerDataFields.COLUMN_PERIOD]?: PeriodsType;
|
|
24
|
+
[GetPartnerDataFields.COLUMN_RESULTS]?: [ScoreResultType];
|
|
25
|
+
[GetPartnerDataFields.COLUMN_SCORES_AGG]?: ScoresAggType;
|
|
26
|
+
[GetPartnerDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggType;
|
|
27
|
+
};
|
|
28
|
+
export declare type GetPartnerDataGraphQLResultType = {
|
|
29
|
+
[SecurityScoreQueries.GET_PARTNER_DATA]: GetPartnerDataType;
|
|
30
|
+
};
|
|
31
|
+
export declare class GetPartnerData extends AbstractEntity<GetPartnerDataType> {
|
|
32
|
+
#private;
|
|
33
|
+
constructor(getPartnerDataInput: GetPartnerDataType);
|
|
34
|
+
get avgCurrentScore(): number | undefined;
|
|
35
|
+
get checksAgg(): ChecksAggType | undefined;
|
|
36
|
+
get endCustomersAgg(): EndCustomersAggType | undefined;
|
|
37
|
+
get filters(): [FilterType] | undefined;
|
|
38
|
+
get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
|
|
39
|
+
get period(): PeriodsType | undefined;
|
|
40
|
+
get pagination(): PaginationsType | undefined;
|
|
41
|
+
get results(): [ScoreResultType] | undefined;
|
|
42
|
+
get scoresAgg(): ScoresAggType | undefined;
|
|
43
|
+
get severitiesAgg(): SeveritiesAggType | undefined;
|
|
44
|
+
toJSON(): GetPartnerDataType;
|
|
45
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 _GetPartnerData_avgCurrentScore, _GetPartnerData_checksAgg, _GetPartnerData_endCustomersAgg, _GetPartnerData_filters, _GetPartnerData_monthlyTrendAgg, _GetPartnerData_period, _GetPartnerData_pagination, _GetPartnerData_results, _GetPartnerData_scoresAgg, _GetPartnerData_severitiesAgg;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GetPartnerData = exports.GetPartnerDataFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const queryArguments_1 = require("../types/queryArguments");
|
|
18
|
+
var GetPartnerDataFields;
|
|
19
|
+
(function (GetPartnerDataFields) {
|
|
20
|
+
GetPartnerDataFields["COLUMN_AVG_CURRENT_SCORE"] = "avgCurrentScore";
|
|
21
|
+
GetPartnerDataFields["COLUMN_CHECKS_AGG"] = "checksAgg";
|
|
22
|
+
GetPartnerDataFields["COLUMN_END_CUSTOMERS_AGG"] = "endCustomersAgg";
|
|
23
|
+
GetPartnerDataFields["COLUMN_FILTERS"] = "filters";
|
|
24
|
+
GetPartnerDataFields["COLUMN_MONTHLY_TREND_AGG"] = "monthlyTrendAgg";
|
|
25
|
+
GetPartnerDataFields["COLUMN_PAGINATION"] = "pagination";
|
|
26
|
+
GetPartnerDataFields["COLUMN_PERIOD"] = "period";
|
|
27
|
+
GetPartnerDataFields["COLUMN_RESULTS"] = "results";
|
|
28
|
+
GetPartnerDataFields["COLUMN_SCORES_AGG"] = "scoresAgg";
|
|
29
|
+
GetPartnerDataFields["COLUMN_SEVERITIES_AGG"] = "severitiesAgg";
|
|
30
|
+
})(GetPartnerDataFields = exports.GetPartnerDataFields || (exports.GetPartnerDataFields = {}));
|
|
31
|
+
class GetPartnerData extends abstractEntity_1.AbstractEntity {
|
|
32
|
+
constructor(getPartnerDataInput) {
|
|
33
|
+
super(getPartnerDataInput);
|
|
34
|
+
_GetPartnerData_avgCurrentScore.set(this, void 0);
|
|
35
|
+
_GetPartnerData_checksAgg.set(this, void 0);
|
|
36
|
+
_GetPartnerData_endCustomersAgg.set(this, void 0);
|
|
37
|
+
_GetPartnerData_filters.set(this, void 0);
|
|
38
|
+
_GetPartnerData_monthlyTrendAgg.set(this, void 0);
|
|
39
|
+
_GetPartnerData_period.set(this, void 0);
|
|
40
|
+
_GetPartnerData_pagination.set(this, void 0);
|
|
41
|
+
_GetPartnerData_results.set(this, void 0);
|
|
42
|
+
_GetPartnerData_scoresAgg.set(this, void 0);
|
|
43
|
+
_GetPartnerData_severitiesAgg.set(this, void 0);
|
|
44
|
+
__classPrivateFieldSet(this, _GetPartnerData_avgCurrentScore, getPartnerDataInput[GetPartnerDataFields.COLUMN_AVG_CURRENT_SCORE], "f");
|
|
45
|
+
__classPrivateFieldSet(this, _GetPartnerData_checksAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_CHECKS_AGG], "f");
|
|
46
|
+
__classPrivateFieldSet(this, _GetPartnerData_endCustomersAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG], "f");
|
|
47
|
+
__classPrivateFieldSet(this, _GetPartnerData_filters, getPartnerDataInput[GetPartnerDataFields.COLUMN_FILTERS], "f");
|
|
48
|
+
__classPrivateFieldSet(this, _GetPartnerData_monthlyTrendAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG], "f");
|
|
49
|
+
__classPrivateFieldSet(this, _GetPartnerData_period, getPartnerDataInput[GetPartnerDataFields.COLUMN_PERIOD], "f");
|
|
50
|
+
__classPrivateFieldSet(this, _GetPartnerData_pagination, getPartnerDataInput[GetPartnerDataFields.COLUMN_PAGINATION], "f");
|
|
51
|
+
__classPrivateFieldSet(this, _GetPartnerData_results, getPartnerDataInput[GetPartnerDataFields.COLUMN_RESULTS], "f");
|
|
52
|
+
__classPrivateFieldSet(this, _GetPartnerData_scoresAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_SCORES_AGG], "f");
|
|
53
|
+
__classPrivateFieldSet(this, _GetPartnerData_severitiesAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_SEVERITIES_AGG], "f");
|
|
54
|
+
}
|
|
55
|
+
get avgCurrentScore() {
|
|
56
|
+
return __classPrivateFieldGet(this, _GetPartnerData_avgCurrentScore, "f");
|
|
57
|
+
}
|
|
58
|
+
get checksAgg() {
|
|
59
|
+
return __classPrivateFieldGet(this, _GetPartnerData_checksAgg, "f");
|
|
60
|
+
}
|
|
61
|
+
get endCustomersAgg() {
|
|
62
|
+
return __classPrivateFieldGet(this, _GetPartnerData_endCustomersAgg, "f");
|
|
63
|
+
}
|
|
64
|
+
get filters() {
|
|
65
|
+
return __classPrivateFieldGet(this, _GetPartnerData_filters, "f");
|
|
66
|
+
}
|
|
67
|
+
get monthlyTrendAgg() {
|
|
68
|
+
return __classPrivateFieldGet(this, _GetPartnerData_monthlyTrendAgg, "f");
|
|
69
|
+
}
|
|
70
|
+
get period() {
|
|
71
|
+
return __classPrivateFieldGet(this, _GetPartnerData_period, "f");
|
|
72
|
+
}
|
|
73
|
+
get pagination() {
|
|
74
|
+
return __classPrivateFieldGet(this, _GetPartnerData_pagination, "f");
|
|
75
|
+
}
|
|
76
|
+
get results() {
|
|
77
|
+
return __classPrivateFieldGet(this, _GetPartnerData_results, "f");
|
|
78
|
+
}
|
|
79
|
+
get scoresAgg() {
|
|
80
|
+
return __classPrivateFieldGet(this, _GetPartnerData_scoresAgg, "f");
|
|
81
|
+
}
|
|
82
|
+
get severitiesAgg() {
|
|
83
|
+
return __classPrivateFieldGet(this, _GetPartnerData_severitiesAgg, "f");
|
|
84
|
+
}
|
|
85
|
+
toJSON() {
|
|
86
|
+
return {
|
|
87
|
+
[GetPartnerDataFields.COLUMN_AVG_CURRENT_SCORE]: this.avgCurrentScore,
|
|
88
|
+
[GetPartnerDataFields.COLUMN_CHECKS_AGG]: this.checksAgg,
|
|
89
|
+
[GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG]: this.endCustomersAgg,
|
|
90
|
+
[GetPartnerDataFields.COLUMN_FILTERS]: this.filters,
|
|
91
|
+
[GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG]: this.monthlyTrendAgg,
|
|
92
|
+
[GetPartnerDataFields.COLUMN_PERIOD]: this.period,
|
|
93
|
+
[GetPartnerDataFields.COLUMN_PAGINATION]: this.pagination,
|
|
94
|
+
[GetPartnerDataFields.COLUMN_RESULTS]: this.results,
|
|
95
|
+
[GetPartnerDataFields.COLUMN_SCORES_AGG]: this.scoresAgg,
|
|
96
|
+
[GetPartnerDataFields.COLUMN_SEVERITIES_AGG]: this.severitiesAgg,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.GetPartnerData = GetPartnerData;
|
|
101
|
+
_GetPartnerData_avgCurrentScore = new WeakMap(), _GetPartnerData_checksAgg = new WeakMap(), _GetPartnerData_endCustomersAgg = new WeakMap(), _GetPartnerData_filters = new WeakMap(), _GetPartnerData_monthlyTrendAgg = new WeakMap(), _GetPartnerData_period = new WeakMap(), _GetPartnerData_pagination = new WeakMap(), _GetPartnerData_results = new WeakMap(), _GetPartnerData_scoresAgg = new WeakMap(), _GetPartnerData_severitiesAgg = new WeakMap();
|
|
102
|
+
//# sourceMappingURL=getPartnerData.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './securityScoreGraphQLClient';
|
|
2
|
+
export * from './types/securityScoreGraphQLQueries';
|
|
3
|
+
export * from './types/securityScoreGraphQLTypes';
|
|
4
|
+
export * from './types/queryArguments';
|
|
5
|
+
export * from './entities/getPartnerData';
|
|
6
|
+
export * from './entities/getCustomerData';
|
|
7
|
+
export * from './entities/getCustomerAccountData';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./securityScoreGraphQLClient"), exports);
|
|
18
|
+
__exportStar(require("./types/securityScoreGraphQLQueries"), exports);
|
|
19
|
+
__exportStar(require("./types/securityScoreGraphQLTypes"), exports);
|
|
20
|
+
__exportStar(require("./types/queryArguments"), exports);
|
|
21
|
+
__exportStar(require("./entities/getPartnerData"), exports);
|
|
22
|
+
__exportStar(require("./entities/getCustomerData"), exports);
|
|
23
|
+
__exportStar(require("./entities/getCustomerAccountData"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractGraphQLClient } from '../abstractGraphQLClient';
|
|
2
|
+
import { GetPartnerDataType } from './entities/getPartnerData';
|
|
3
|
+
import { GetCustomerDataType } from './entities/getCustomerData';
|
|
4
|
+
import { GetCustomerAccountDataType } from './entities/getCustomerAccountData';
|
|
5
|
+
import { GetPartnerDataQuery, GetCustomerDataQuery, GetCustomerAccountDataQuery } from './types/securityScoreGraphQLQueries';
|
|
6
|
+
export declare class SecurityScoreGraphQLClient extends AbstractGraphQLClient {
|
|
7
|
+
/**
|
|
8
|
+
* The base path of the API
|
|
9
|
+
*/
|
|
10
|
+
protected basePath: string;
|
|
11
|
+
/**
|
|
12
|
+
* The Path of graphql catalog API
|
|
13
|
+
*/
|
|
14
|
+
private GRAPHQL;
|
|
15
|
+
find<GraphQLResponseTypes>(request: string): Promise<GraphQLResponseTypes | null>;
|
|
16
|
+
getPartnerData(getPartnerDataQuery: GetPartnerDataQuery): Promise<GetPartnerDataType | null>;
|
|
17
|
+
getCustomerData(getCustomerDataQuery: GetCustomerDataQuery): Promise<GetCustomerDataType | null>;
|
|
18
|
+
getCustomerAccountData(getCustomerAccountDataQuery: GetCustomerAccountDataQuery): Promise<GetCustomerAccountDataType | null>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecurityScoreGraphQLClient = void 0;
|
|
4
|
+
const abstractGraphQLClient_1 = require("../abstractGraphQLClient");
|
|
5
|
+
const getPartnerData_1 = require("./entities/getPartnerData");
|
|
6
|
+
const getCustomerData_1 = require("./entities/getCustomerData");
|
|
7
|
+
const getCustomerAccountData_1 = require("./entities/getCustomerAccountData");
|
|
8
|
+
const queryArguments_1 = require("./types/queryArguments");
|
|
9
|
+
class SecurityScoreGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
/**
|
|
13
|
+
* The base path of the API
|
|
14
|
+
*/
|
|
15
|
+
this.basePath = 'security/';
|
|
16
|
+
/**
|
|
17
|
+
* The Path of graphql catalog API
|
|
18
|
+
*/
|
|
19
|
+
this.GRAPHQL = 'graphql/score';
|
|
20
|
+
}
|
|
21
|
+
async find(request) {
|
|
22
|
+
this.path = this.GRAPHQL;
|
|
23
|
+
try {
|
|
24
|
+
return await this.post(request);
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
const exception = this.mapToPublicApiException(error);
|
|
28
|
+
const { mustRetry } = await this.handleError(exception);
|
|
29
|
+
if (mustRetry) {
|
|
30
|
+
return await this.post(request);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
async getPartnerData(getPartnerDataQuery) {
|
|
36
|
+
const queryStr = this.stringifyQuery(getPartnerDataQuery);
|
|
37
|
+
const getPartnerDataResult = await this.find(queryStr);
|
|
38
|
+
if (getPartnerDataResult) {
|
|
39
|
+
return new getPartnerData_1.GetPartnerData(getPartnerDataResult[queryArguments_1.SecurityScoreQueries.GET_PARTNER_DATA]).toJSON();
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
async getCustomerData(getCustomerDataQuery) {
|
|
44
|
+
const queryStr = this.stringifyQuery(getCustomerDataQuery);
|
|
45
|
+
const getCustomerDataResult = await this.find(queryStr);
|
|
46
|
+
if (getCustomerDataResult) {
|
|
47
|
+
return new getCustomerData_1.GetCustomerData(getCustomerDataResult[queryArguments_1.SecurityScoreQueries.GET_CUSTOMER_DATA]).toJSON();
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
async getCustomerAccountData(getCustomerAccountDataQuery) {
|
|
52
|
+
const queryStr = this.stringifyQuery(getCustomerAccountDataQuery);
|
|
53
|
+
const getCustomerAccountDataResult = await this.find(queryStr);
|
|
54
|
+
if (getCustomerAccountDataResult) {
|
|
55
|
+
return new getCustomerAccountData_1.GetCustomerAccountData(getCustomerAccountDataResult[queryArguments_1.SecurityScoreQueries.GET_CUSTOMER_ACCOUNT_DATA]).toJSON();
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.SecurityScoreGraphQLClient = SecurityScoreGraphQLClient;
|
|
61
|
+
//# sourceMappingURL=securityScoreGraphQLClient.js.map
|