@arrowsphere/api-client 3.28.0-rc.bdj.4 → 3.28.0-rc.bdj.5

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.
@@ -0,0 +1,44 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { CheckByStandardType, FilterType, ScoreResultType, MonthlyTrendAggType, IssuesAggType, SeveritiesAggType, PeriodsType, StandardType, StandardsAggType } from '../types/securityScoreGraphQLTypes';
3
+ import { SecurityScoreQueries } from '../types/queryArguments';
4
+ export declare enum GetCustomerAccountDataFields {
5
+ COLUMN_AVG_CURRENT_SCORE = "avgCurrentScore",
6
+ COLUMN_CHECKS = "checks",
7
+ COLUMN_FILTERS = "filters",
8
+ COLUMN_ISSUE_AGG = "issueAgg",
9
+ COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
10
+ COLUMN_PERIOD = "period",
11
+ COLUMN_RESULT = "result",
12
+ COLUMN_SEVERITY_AGG = "severityAgg",
13
+ COLUMN_STANDARDS_AGG = "standardsAgg",
14
+ COLUMN_STANDARDS = "standards"
15
+ }
16
+ export declare type GetCustomerAccountDataType = {
17
+ [GetCustomerAccountDataFields.COLUMN_AVG_CURRENT_SCORE]?: number;
18
+ [GetCustomerAccountDataFields.COLUMN_CHECKS]?: [CheckByStandardType];
19
+ [GetCustomerAccountDataFields.COLUMN_FILTERS]?: [FilterType];
20
+ [GetCustomerAccountDataFields.COLUMN_ISSUE_AGG]?: IssuesAggType;
21
+ [GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
22
+ [GetCustomerAccountDataFields.COLUMN_PERIOD]?: PeriodsType;
23
+ [GetCustomerAccountDataFields.COLUMN_RESULT]?: ScoreResultType;
24
+ [GetCustomerAccountDataFields.COLUMN_SEVERITY_AGG]?: SeveritiesAggType;
25
+ [GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG]?: StandardsAggType;
26
+ [GetCustomerAccountDataFields.COLUMN_STANDARDS]?: [StandardType];
27
+ };
28
+ export declare type GetCustomerAccountDataGraphQLResultType = {
29
+ [SecurityScoreQueries.GET_CUSTOMER_ACCOUNT_DATA]: GetCustomerAccountDataType;
30
+ };
31
+ export declare class GetCustomerAccountData extends AbstractEntity<GetCustomerAccountDataType> {
32
+ #private;
33
+ constructor(getCustomerAccountDataInput: GetCustomerAccountDataType);
34
+ get avgCurrentScore(): number | undefined;
35
+ get checks(): [CheckByStandardType] | undefined;
36
+ get filters(): [FilterType] | undefined;
37
+ get issueAgg(): IssuesAggType | undefined;
38
+ get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
39
+ get period(): PeriodsType | undefined;
40
+ get result(): ScoreResultType | undefined;
41
+ get standardsAgg(): StandardsAggType | undefined;
42
+ get standards(): [StandardType] | undefined;
43
+ toJSON(): GetCustomerAccountDataType;
44
+ }
@@ -0,0 +1,99 @@
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_checks, _GetCustomerAccountData_filters, _GetCustomerAccountData_issueAgg, _GetCustomerAccountData_monthlyTrendAgg, _GetCustomerAccountData_period, _GetCustomerAccountData_result, _GetCustomerAccountData_severityAgg, _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"] = "checks";
22
+ GetCustomerAccountDataFields["COLUMN_FILTERS"] = "filters";
23
+ GetCustomerAccountDataFields["COLUMN_ISSUE_AGG"] = "issueAgg";
24
+ GetCustomerAccountDataFields["COLUMN_MONTHLY_TREND_AGG"] = "monthlyTrendAgg";
25
+ GetCustomerAccountDataFields["COLUMN_PERIOD"] = "period";
26
+ GetCustomerAccountDataFields["COLUMN_RESULT"] = "result";
27
+ GetCustomerAccountDataFields["COLUMN_SEVERITY_AGG"] = "severityAgg";
28
+ GetCustomerAccountDataFields["COLUMN_STANDARDS_AGG"] = "standardsAgg";
29
+ GetCustomerAccountDataFields["COLUMN_STANDARDS"] = "standards";
30
+ })(GetCustomerAccountDataFields = exports.GetCustomerAccountDataFields || (exports.GetCustomerAccountDataFields = {}));
31
+ class GetCustomerAccountData extends abstractEntity_1.AbstractEntity {
32
+ constructor(getCustomerAccountDataInput) {
33
+ super(getCustomerAccountDataInput);
34
+ _GetCustomerAccountData_avgCurrentScore.set(this, void 0);
35
+ _GetCustomerAccountData_checks.set(this, void 0);
36
+ _GetCustomerAccountData_filters.set(this, void 0);
37
+ _GetCustomerAccountData_issueAgg.set(this, void 0);
38
+ _GetCustomerAccountData_monthlyTrendAgg.set(this, void 0);
39
+ _GetCustomerAccountData_period.set(this, void 0);
40
+ _GetCustomerAccountData_result.set(this, void 0);
41
+ _GetCustomerAccountData_severityAgg.set(this, void 0);
42
+ _GetCustomerAccountData_standardsAgg.set(this, void 0);
43
+ _GetCustomerAccountData_standards.set(this, void 0);
44
+ __classPrivateFieldSet(this, _GetCustomerAccountData_avgCurrentScore, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_AVG_CURRENT_SCORE], "f");
45
+ __classPrivateFieldSet(this, _GetCustomerAccountData_checks, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_CHECKS], "f");
46
+ __classPrivateFieldSet(this, _GetCustomerAccountData_filters, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_FILTERS], "f");
47
+ __classPrivateFieldSet(this, _GetCustomerAccountData_issueAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_ISSUE_AGG], "f");
48
+ __classPrivateFieldSet(this, _GetCustomerAccountData_monthlyTrendAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG], "f");
49
+ __classPrivateFieldSet(this, _GetCustomerAccountData_period, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_PERIOD], "f");
50
+ __classPrivateFieldSet(this, _GetCustomerAccountData_result, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_RESULT], "f");
51
+ __classPrivateFieldSet(this, _GetCustomerAccountData_severityAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_SEVERITY_AGG], "f");
52
+ __classPrivateFieldSet(this, _GetCustomerAccountData_standardsAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG], "f");
53
+ __classPrivateFieldSet(this, _GetCustomerAccountData_standards, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_STANDARDS], "f");
54
+ }
55
+ get avgCurrentScore() {
56
+ return __classPrivateFieldGet(this, _GetCustomerAccountData_avgCurrentScore, "f");
57
+ }
58
+ get checks() {
59
+ return __classPrivateFieldGet(this, _GetCustomerAccountData_checks, "f");
60
+ }
61
+ get filters() {
62
+ return __classPrivateFieldGet(this, _GetCustomerAccountData_filters, "f");
63
+ }
64
+ get issueAgg() {
65
+ return __classPrivateFieldGet(this, _GetCustomerAccountData_issueAgg, "f");
66
+ }
67
+ get monthlyTrendAgg() {
68
+ return __classPrivateFieldGet(this, _GetCustomerAccountData_monthlyTrendAgg, "f");
69
+ }
70
+ get period() {
71
+ return __classPrivateFieldGet(this, _GetCustomerAccountData_period, "f");
72
+ }
73
+ get result() {
74
+ return __classPrivateFieldGet(this, _GetCustomerAccountData_result, "f");
75
+ }
76
+ get standardsAgg() {
77
+ return __classPrivateFieldGet(this, _GetCustomerAccountData_standardsAgg, "f");
78
+ }
79
+ get standards() {
80
+ return __classPrivateFieldGet(this, _GetCustomerAccountData_standards, "f");
81
+ }
82
+ toJSON() {
83
+ return {
84
+ [GetCustomerAccountDataFields.COLUMN_AVG_CURRENT_SCORE]: __classPrivateFieldGet(this, _GetCustomerAccountData_avgCurrentScore, "f"),
85
+ [GetCustomerAccountDataFields.COLUMN_CHECKS]: __classPrivateFieldGet(this, _GetCustomerAccountData_checks, "f"),
86
+ [GetCustomerAccountDataFields.COLUMN_FILTERS]: __classPrivateFieldGet(this, _GetCustomerAccountData_filters, "f"),
87
+ [GetCustomerAccountDataFields.COLUMN_ISSUE_AGG]: __classPrivateFieldGet(this, _GetCustomerAccountData_issueAgg, "f"),
88
+ [GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG]: __classPrivateFieldGet(this, _GetCustomerAccountData_monthlyTrendAgg, "f"),
89
+ [GetCustomerAccountDataFields.COLUMN_PERIOD]: __classPrivateFieldGet(this, _GetCustomerAccountData_period, "f"),
90
+ [GetCustomerAccountDataFields.COLUMN_RESULT]: __classPrivateFieldGet(this, _GetCustomerAccountData_result, "f"),
91
+ [GetCustomerAccountDataFields.COLUMN_SEVERITY_AGG]: __classPrivateFieldGet(this, _GetCustomerAccountData_severityAgg, "f"),
92
+ [GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG]: __classPrivateFieldGet(this, _GetCustomerAccountData_standardsAgg, "f"),
93
+ [GetCustomerAccountDataFields.COLUMN_STANDARDS]: __classPrivateFieldGet(this, _GetCustomerAccountData_standards, "f"),
94
+ };
95
+ }
96
+ }
97
+ exports.GetCustomerAccountData = GetCustomerAccountData;
98
+ _GetCustomerAccountData_avgCurrentScore = new WeakMap(), _GetCustomerAccountData_checks = new WeakMap(), _GetCustomerAccountData_filters = new WeakMap(), _GetCustomerAccountData_issueAgg = new WeakMap(), _GetCustomerAccountData_monthlyTrendAgg = new WeakMap(), _GetCustomerAccountData_period = new WeakMap(), _GetCustomerAccountData_result = new WeakMap(), _GetCustomerAccountData_severityAgg = new WeakMap(), _GetCustomerAccountData_standardsAgg = new WeakMap(), _GetCustomerAccountData_standards = new WeakMap();
99
+ //# sourceMappingURL=getCustomerAccountData.js.map
@@ -0,0 +1,44 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { AccountsAggType, FilterType, ScoreResultType, MonthlyTrendAggType, IssuesAggType, SeveritiesAggType, PeriodsType, StandardType } 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_FILTERS = "filters",
8
+ COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
9
+ COLUMN_PERIOD = "period",
10
+ COLUMN_RESULTS = "results",
11
+ COLUMN_ISSUE_AGG = "issueAgg",
12
+ COLUMN_SEVERITY_AGG = "severityAgg",
13
+ COLUMN_STANDARDS = "standards",
14
+ COLUMN_SUBSCRIPTION_REFERENCES = "subscriptionReferences"
15
+ }
16
+ export declare type GetCustomerDataType = {
17
+ [GetCustomerDataFields.COLUMN_ACCOUNTS_AGG]?: AccountsAggType;
18
+ [GetCustomerDataFields.COLUMN_AVG_CURRENT_SCORE]?: number;
19
+ [GetCustomerDataFields.COLUMN_FILTERS]?: [FilterType];
20
+ [GetCustomerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
21
+ [GetCustomerDataFields.COLUMN_PERIOD]?: PeriodsType;
22
+ [GetCustomerDataFields.COLUMN_RESULTS]?: [ScoreResultType];
23
+ [GetCustomerDataFields.COLUMN_ISSUE_AGG]?: IssuesAggType;
24
+ [GetCustomerDataFields.COLUMN_SEVERITY_AGG]?: SeveritiesAggType;
25
+ [GetCustomerDataFields.COLUMN_STANDARDS]?: [StandardType];
26
+ [GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES]?: number;
27
+ };
28
+ export declare type GetCustomerDataGraphQLResultType = {
29
+ [SecurityScoreQueries.GET_CUSTOMER_DATA]: GetCustomerDataType;
30
+ };
31
+ export declare class GetCustomerData extends AbstractEntity<GetCustomerDataType> {
32
+ #private;
33
+ constructor(getCustomerDataInput: GetCustomerDataType);
34
+ get accountsAgg(): AccountsAggType | undefined;
35
+ get avgCurrentScore(): number | undefined;
36
+ get filters(): [FilterType] | undefined;
37
+ get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
38
+ get period(): PeriodsType | undefined;
39
+ get results(): [ScoreResultType] | undefined;
40
+ get issueAgg(): IssuesAggType | undefined;
41
+ get standards(): [StandardType] | undefined;
42
+ get subscriptionReferences(): number | undefined;
43
+ toJSON(): GetCustomerDataType;
44
+ }
@@ -0,0 +1,99 @@
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_filters, _GetCustomerData_monthlyTrendAgg, _GetCustomerData_period, _GetCustomerData_results, _GetCustomerData_issueAgg, _GetCustomerData_severityAgg, _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_FILTERS"] = "filters";
23
+ GetCustomerDataFields["COLUMN_MONTHLY_TREND_AGG"] = "monthlyTrendAgg";
24
+ GetCustomerDataFields["COLUMN_PERIOD"] = "period";
25
+ GetCustomerDataFields["COLUMN_RESULTS"] = "results";
26
+ GetCustomerDataFields["COLUMN_ISSUE_AGG"] = "issueAgg";
27
+ GetCustomerDataFields["COLUMN_SEVERITY_AGG"] = "severityAgg";
28
+ GetCustomerDataFields["COLUMN_STANDARDS"] = "standards";
29
+ GetCustomerDataFields["COLUMN_SUBSCRIPTION_REFERENCES"] = "subscriptionReferences";
30
+ })(GetCustomerDataFields = exports.GetCustomerDataFields || (exports.GetCustomerDataFields = {}));
31
+ class GetCustomerData extends abstractEntity_1.AbstractEntity {
32
+ constructor(getCustomerDataInput) {
33
+ super(getCustomerDataInput);
34
+ _GetCustomerData_accountsAgg.set(this, void 0);
35
+ _GetCustomerData_avgCurrentScore.set(this, void 0);
36
+ _GetCustomerData_filters.set(this, void 0);
37
+ _GetCustomerData_monthlyTrendAgg.set(this, void 0);
38
+ _GetCustomerData_period.set(this, void 0);
39
+ _GetCustomerData_results.set(this, void 0);
40
+ _GetCustomerData_issueAgg.set(this, void 0);
41
+ _GetCustomerData_severityAgg.set(this, void 0);
42
+ _GetCustomerData_standards.set(this, void 0);
43
+ _GetCustomerData_subscriptionReferences.set(this, void 0);
44
+ __classPrivateFieldSet(this, _GetCustomerData_accountsAgg, getCustomerDataInput[GetCustomerDataFields.COLUMN_ACCOUNTS_AGG], "f");
45
+ __classPrivateFieldSet(this, _GetCustomerData_avgCurrentScore, getCustomerDataInput[GetCustomerDataFields.COLUMN_AVG_CURRENT_SCORE], "f");
46
+ __classPrivateFieldSet(this, _GetCustomerData_filters, getCustomerDataInput[GetCustomerDataFields.COLUMN_FILTERS], "f");
47
+ __classPrivateFieldSet(this, _GetCustomerData_monthlyTrendAgg, getCustomerDataInput[GetCustomerDataFields.COLUMN_MONTHLY_TREND_AGG], "f");
48
+ __classPrivateFieldSet(this, _GetCustomerData_period, getCustomerDataInput[GetCustomerDataFields.COLUMN_PERIOD], "f");
49
+ __classPrivateFieldSet(this, _GetCustomerData_results, getCustomerDataInput[GetCustomerDataFields.COLUMN_RESULTS], "f");
50
+ __classPrivateFieldSet(this, _GetCustomerData_issueAgg, getCustomerDataInput[GetCustomerDataFields.COLUMN_ISSUE_AGG], "f");
51
+ __classPrivateFieldSet(this, _GetCustomerData_severityAgg, getCustomerDataInput[GetCustomerDataFields.COLUMN_SEVERITY_AGG], "f");
52
+ __classPrivateFieldSet(this, _GetCustomerData_standards, getCustomerDataInput[GetCustomerDataFields.COLUMN_STANDARDS], "f");
53
+ __classPrivateFieldSet(this, _GetCustomerData_subscriptionReferences, getCustomerDataInput[GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES], "f");
54
+ }
55
+ get accountsAgg() {
56
+ return __classPrivateFieldGet(this, _GetCustomerData_accountsAgg, "f");
57
+ }
58
+ get avgCurrentScore() {
59
+ return __classPrivateFieldGet(this, _GetCustomerData_avgCurrentScore, "f");
60
+ }
61
+ get filters() {
62
+ return __classPrivateFieldGet(this, _GetCustomerData_filters, "f");
63
+ }
64
+ get monthlyTrendAgg() {
65
+ return __classPrivateFieldGet(this, _GetCustomerData_monthlyTrendAgg, "f");
66
+ }
67
+ get period() {
68
+ return __classPrivateFieldGet(this, _GetCustomerData_period, "f");
69
+ }
70
+ get results() {
71
+ return __classPrivateFieldGet(this, _GetCustomerData_results, "f");
72
+ }
73
+ get issueAgg() {
74
+ return __classPrivateFieldGet(this, _GetCustomerData_issueAgg, "f");
75
+ }
76
+ get standards() {
77
+ return __classPrivateFieldGet(this, _GetCustomerData_standards, "f");
78
+ }
79
+ get subscriptionReferences() {
80
+ return __classPrivateFieldGet(this, _GetCustomerData_subscriptionReferences, "f");
81
+ }
82
+ toJSON() {
83
+ return {
84
+ [GetCustomerDataFields.COLUMN_ACCOUNTS_AGG]: __classPrivateFieldGet(this, _GetCustomerData_accountsAgg, "f"),
85
+ [GetCustomerDataFields.COLUMN_AVG_CURRENT_SCORE]: __classPrivateFieldGet(this, _GetCustomerData_avgCurrentScore, "f"),
86
+ [GetCustomerDataFields.COLUMN_FILTERS]: __classPrivateFieldGet(this, _GetCustomerData_filters, "f"),
87
+ [GetCustomerDataFields.COLUMN_MONTHLY_TREND_AGG]: __classPrivateFieldGet(this, _GetCustomerData_monthlyTrendAgg, "f"),
88
+ [GetCustomerDataFields.COLUMN_PERIOD]: __classPrivateFieldGet(this, _GetCustomerData_period, "f"),
89
+ [GetCustomerDataFields.COLUMN_RESULTS]: __classPrivateFieldGet(this, _GetCustomerData_results, "f"),
90
+ [GetCustomerDataFields.COLUMN_ISSUE_AGG]: __classPrivateFieldGet(this, _GetCustomerData_issueAgg, "f"),
91
+ [GetCustomerDataFields.COLUMN_SEVERITY_AGG]: __classPrivateFieldGet(this, _GetCustomerData_severityAgg, "f"),
92
+ [GetCustomerDataFields.COLUMN_STANDARDS]: __classPrivateFieldGet(this, _GetCustomerData_standards, "f"),
93
+ [GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES]: __classPrivateFieldGet(this, _GetCustomerData_subscriptionReferences, "f"),
94
+ };
95
+ }
96
+ }
97
+ exports.GetCustomerData = GetCustomerData;
98
+ _GetCustomerData_accountsAgg = new WeakMap(), _GetCustomerData_avgCurrentScore = new WeakMap(), _GetCustomerData_filters = new WeakMap(), _GetCustomerData_monthlyTrendAgg = new WeakMap(), _GetCustomerData_period = new WeakMap(), _GetCustomerData_results = new WeakMap(), _GetCustomerData_issueAgg = new WeakMap(), _GetCustomerData_severityAgg = new WeakMap(), _GetCustomerData_standards = new WeakMap(), _GetCustomerData_subscriptionReferences = new WeakMap();
99
+ //# sourceMappingURL=getCustomerData.js.map
@@ -0,0 +1,39 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { FilterType, ScoreResultType, MonthlyTrendAggType, EndCustomersAggType, IssuesAggType, SeveritiesAggType, PeriodsType } from '../types/securityScoreGraphQLTypes';
3
+ import { SecurityScoreQueries } from '../types/queryArguments';
4
+ export declare enum GetPartnerDataFields {
5
+ COLUMN_FILTERS = "filters",
6
+ COLUMN_RESULTS = "results",
7
+ COLUMN_AVG_CURRENT_SCORE = "avgCurrentScore",
8
+ COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
9
+ COLUMN_END_CUSTOMERS_AGG = "endCustomersAgg",
10
+ COLUMN_ISSUE_AGG = "issueAgg",
11
+ COLUMN_SEVERITY_AGG = "severityAgg",
12
+ COLUMN_PERIOD = "period"
13
+ }
14
+ export declare type GetPartnerDataType = {
15
+ [GetPartnerDataFields.COLUMN_FILTERS]?: [FilterType];
16
+ [GetPartnerDataFields.COLUMN_RESULTS]?: [ScoreResultType];
17
+ [GetPartnerDataFields.COLUMN_AVG_CURRENT_SCORE]?: number;
18
+ [GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
19
+ [GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG]?: EndCustomersAggType;
20
+ [GetPartnerDataFields.COLUMN_ISSUE_AGG]?: IssuesAggType;
21
+ [GetPartnerDataFields.COLUMN_SEVERITY_AGG]?: SeveritiesAggType;
22
+ [GetPartnerDataFields.COLUMN_PERIOD]?: PeriodsType;
23
+ };
24
+ export declare type GetPartnerDataGraphQLResultType = {
25
+ [SecurityScoreQueries.GET_PARTNER_DATA]: GetPartnerDataType;
26
+ };
27
+ export declare class GetPartnerData extends AbstractEntity<GetPartnerDataType> {
28
+ #private;
29
+ constructor(getPartnerDataInput: GetPartnerDataType);
30
+ get filters(): [FilterType] | undefined;
31
+ get results(): [ScoreResultType] | undefined;
32
+ get avgCurrentScore(): number | undefined;
33
+ get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
34
+ get endCustomersAgg(): EndCustomersAggType | undefined;
35
+ get issueAgg(): IssuesAggType | undefined;
36
+ get severityAgg(): SeveritiesAggType | undefined;
37
+ get period(): PeriodsType | undefined;
38
+ toJSON(): GetPartnerDataType;
39
+ }
@@ -0,0 +1,88 @@
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_filters, _GetPartnerData_results, _GetPartnerData_avgCurrentScore, _GetPartnerData_monthlyTrendAgg, _GetPartnerData_endCustomersAgg, _GetPartnerData_issueAgg, _GetPartnerData_severityAgg, _GetPartnerData_period;
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_FILTERS"] = "filters";
21
+ GetPartnerDataFields["COLUMN_RESULTS"] = "results";
22
+ GetPartnerDataFields["COLUMN_AVG_CURRENT_SCORE"] = "avgCurrentScore";
23
+ GetPartnerDataFields["COLUMN_MONTHLY_TREND_AGG"] = "monthlyTrendAgg";
24
+ GetPartnerDataFields["COLUMN_END_CUSTOMERS_AGG"] = "endCustomersAgg";
25
+ GetPartnerDataFields["COLUMN_ISSUE_AGG"] = "issueAgg";
26
+ GetPartnerDataFields["COLUMN_SEVERITY_AGG"] = "severityAgg";
27
+ GetPartnerDataFields["COLUMN_PERIOD"] = "period";
28
+ })(GetPartnerDataFields = exports.GetPartnerDataFields || (exports.GetPartnerDataFields = {}));
29
+ class GetPartnerData extends abstractEntity_1.AbstractEntity {
30
+ constructor(getPartnerDataInput) {
31
+ super(getPartnerDataInput);
32
+ _GetPartnerData_filters.set(this, void 0);
33
+ _GetPartnerData_results.set(this, void 0);
34
+ _GetPartnerData_avgCurrentScore.set(this, void 0);
35
+ _GetPartnerData_monthlyTrendAgg.set(this, void 0);
36
+ _GetPartnerData_endCustomersAgg.set(this, void 0);
37
+ _GetPartnerData_issueAgg.set(this, void 0);
38
+ _GetPartnerData_severityAgg.set(this, void 0);
39
+ _GetPartnerData_period.set(this, void 0);
40
+ __classPrivateFieldSet(this, _GetPartnerData_filters, getPartnerDataInput[GetPartnerDataFields.COLUMN_FILTERS], "f");
41
+ __classPrivateFieldSet(this, _GetPartnerData_results, getPartnerDataInput[GetPartnerDataFields.COLUMN_RESULTS], "f");
42
+ __classPrivateFieldSet(this, _GetPartnerData_avgCurrentScore, getPartnerDataInput[GetPartnerDataFields.COLUMN_AVG_CURRENT_SCORE], "f");
43
+ __classPrivateFieldSet(this, _GetPartnerData_monthlyTrendAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG], "f");
44
+ __classPrivateFieldSet(this, _GetPartnerData_endCustomersAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG], "f");
45
+ __classPrivateFieldSet(this, _GetPartnerData_issueAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_ISSUE_AGG], "f");
46
+ __classPrivateFieldSet(this, _GetPartnerData_severityAgg, getPartnerDataInput[GetPartnerDataFields.COLUMN_SEVERITY_AGG], "f");
47
+ __classPrivateFieldSet(this, _GetPartnerData_period, getPartnerDataInput[GetPartnerDataFields.COLUMN_PERIOD], "f");
48
+ }
49
+ get filters() {
50
+ return __classPrivateFieldGet(this, _GetPartnerData_filters, "f");
51
+ }
52
+ get results() {
53
+ return __classPrivateFieldGet(this, _GetPartnerData_results, "f");
54
+ }
55
+ get avgCurrentScore() {
56
+ return __classPrivateFieldGet(this, _GetPartnerData_avgCurrentScore, "f");
57
+ }
58
+ get monthlyTrendAgg() {
59
+ return __classPrivateFieldGet(this, _GetPartnerData_monthlyTrendAgg, "f");
60
+ }
61
+ get endCustomersAgg() {
62
+ return __classPrivateFieldGet(this, _GetPartnerData_endCustomersAgg, "f");
63
+ }
64
+ get issueAgg() {
65
+ return __classPrivateFieldGet(this, _GetPartnerData_issueAgg, "f");
66
+ }
67
+ get severityAgg() {
68
+ return __classPrivateFieldGet(this, _GetPartnerData_severityAgg, "f");
69
+ }
70
+ get period() {
71
+ return __classPrivateFieldGet(this, _GetPartnerData_period, "f");
72
+ }
73
+ toJSON() {
74
+ return {
75
+ [GetPartnerDataFields.COLUMN_FILTERS]: __classPrivateFieldGet(this, _GetPartnerData_filters, "f"),
76
+ [GetPartnerDataFields.COLUMN_RESULTS]: __classPrivateFieldGet(this, _GetPartnerData_results, "f"),
77
+ [GetPartnerDataFields.COLUMN_AVG_CURRENT_SCORE]: __classPrivateFieldGet(this, _GetPartnerData_avgCurrentScore, "f"),
78
+ [GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG]: __classPrivateFieldGet(this, _GetPartnerData_monthlyTrendAgg, "f"),
79
+ [GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG]: __classPrivateFieldGet(this, _GetPartnerData_endCustomersAgg, "f"),
80
+ [GetPartnerDataFields.COLUMN_ISSUE_AGG]: __classPrivateFieldGet(this, _GetPartnerData_issueAgg, "f"),
81
+ [GetPartnerDataFields.COLUMN_SEVERITY_AGG]: __classPrivateFieldGet(this, _GetPartnerData_severityAgg, "f"),
82
+ [GetPartnerDataFields.COLUMN_PERIOD]: __classPrivateFieldGet(this, _GetPartnerData_period, "f"),
83
+ };
84
+ }
85
+ }
86
+ exports.GetPartnerData = GetPartnerData;
87
+ _GetPartnerData_filters = new WeakMap(), _GetPartnerData_results = new WeakMap(), _GetPartnerData_avgCurrentScore = new WeakMap(), _GetPartnerData_monthlyTrendAgg = new WeakMap(), _GetPartnerData_endCustomersAgg = new WeakMap(), _GetPartnerData_issueAgg = new WeakMap(), _GetPartnerData_severityAgg = new WeakMap(), _GetPartnerData_period = new WeakMap();
88
+ //# sourceMappingURL=getPartnerData.js.map
@@ -1,2 +1,7 @@
1
1
  export * from './securityScoreGraphQLClient';
2
+ export * from './types/securityScoreGraphQLQueries';
2
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';
@@ -15,5 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./securityScoreGraphQLClient"), exports);
18
+ __exportStar(require("./types/securityScoreGraphQLQueries"), exports);
18
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);
19
24
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,7 @@
1
1
  import { AbstractGraphQLClient } from '../abstractGraphQLClient';
2
- import { GetPartnerDataType, GetCustomerDataType, GetCustomerAccountDataType } from './types/securityScoreGraphQLTypes';
2
+ import { GetPartnerDataType } from './entities/getPartnerData';
3
+ import { GetCustomerDataType } from './entities/getCustomerData';
4
+ import { GetCustomerAccountDataType } from './entities/getCustomerAccountData';
3
5
  import { GetPartnerDataQuery, GetCustomerDataQuery, GetCustomerAccountDataQuery } from './types/securityScoreGraphQLQueries';
4
6
  export declare class SecurityScoreGraphQLClient extends AbstractGraphQLClient {
5
7
  /**
@@ -10,8 +12,8 @@ export declare class SecurityScoreGraphQLClient extends AbstractGraphQLClient {
10
12
  * The Path of graphql catalog API
11
13
  */
12
14
  private GRAPHQL;
13
- find<GraphQLResponseTypes>(request: string): Promise<GraphQLResponseTypes>;
14
- getPartnerData(getPartnerDataQuery: GetPartnerDataQuery): Promise<GetPartnerDataType>;
15
- getCustomerData(getCustomerDataQuery: GetCustomerDataQuery): Promise<GetCustomerDataType>;
16
- getCustomerAccountData(getCustomerAccountDataQuery: GetCustomerAccountDataQuery): Promise<GetCustomerAccountDataType>;
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>;
17
19
  }
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SecurityScoreGraphQLClient = void 0;
4
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");
5
9
  class SecurityScoreGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
6
10
  constructor() {
7
11
  super(...arguments);
@@ -16,19 +20,41 @@ class SecurityScoreGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQL
16
20
  }
17
21
  async find(request) {
18
22
  this.path = this.GRAPHQL;
19
- return await this.post(request);
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;
20
34
  }
21
35
  async getPartnerData(getPartnerDataQuery) {
22
36
  const queryStr = this.stringifyQuery(getPartnerDataQuery);
23
- return this.find(queryStr);
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;
24
42
  }
25
43
  async getCustomerData(getCustomerDataQuery) {
26
44
  const queryStr = this.stringifyQuery(getCustomerDataQuery);
27
- return this.find(queryStr);
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;
28
50
  }
29
51
  async getCustomerAccountData(getCustomerAccountDataQuery) {
30
52
  const queryStr = this.stringifyQuery(getCustomerAccountDataQuery);
31
- return this.find(queryStr);
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;
32
58
  }
33
59
  }
34
60
  exports.SecurityScoreGraphQLClient = SecurityScoreGraphQLClient;
@@ -1,50 +1,55 @@
1
- import { SearchBodyArgument, PaginateArgument } from './queryArguments';
2
- import { AccountsAggSchema, CheckSchema, EndCustomersAggSchema, FilterSchema, IssuesAggSchema, MonthlyTrendAggSchema, PeriodsSchema, ScoreResultSchema, SeveritiesAggSchema, StandardsAggSchema, StandardSchema } from './securityScoreGraphQLSchemas';
1
+ import { SearchBodyArgument, PaginateArgument, SecurityScoreQueries } from './queryArguments';
2
+ import { AccountsAggSchema, CheckByStandardSchema, EndCustomersAggSchema, FilterSchema, IssuesAggSchema, MonthlyTrendAggSchema, PeriodsSchema, ScoreResultSchema, SeveritiesAggSchema, StandardsAggSchema, StandardSchema } from './securityScoreGraphQLSchemas';
3
+ import { GetPartnerDataFields } from '../entities/getPartnerData';
4
+ import { GetCustomerDataFields } from '../entities/getCustomerData';
5
+ import { GetCustomerAccountDataFields } from '../entities/getCustomerAccountData';
3
6
  export declare type GetPartnerDataQuery = {
4
- getPartnerData: {
7
+ [SecurityScoreQueries.GET_PARTNER_DATA]: {
5
8
  __args?: {
6
9
  searchBody?: SearchBodyArgument;
7
10
  paginate?: PaginateArgument;
8
11
  };
9
- filters?: FilterSchema;
10
- results?: ScoreResultSchema;
11
- avgCurrentScore?: boolean;
12
- monthlyTrendAgg?: MonthlyTrendAggSchema;
13
- endCustomersAgg?: EndCustomersAggSchema;
14
- issueAgg?: IssuesAggSchema;
15
- severityAgg?: SeveritiesAggSchema;
16
- period?: PeriodsSchema;
12
+ [GetPartnerDataFields.COLUMN_FILTERS]?: FilterSchema;
13
+ [GetPartnerDataFields.COLUMN_RESULTS]?: ScoreResultSchema;
14
+ [GetPartnerDataFields.COLUMN_AVG_CURRENT_SCORE]?: boolean;
15
+ [GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggSchema;
16
+ [GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG]?: EndCustomersAggSchema;
17
+ [GetPartnerDataFields.COLUMN_ISSUE_AGG]?: IssuesAggSchema;
18
+ [GetPartnerDataFields.COLUMN_SEVERITY_AGG]?: SeveritiesAggSchema;
19
+ [GetPartnerDataFields.COLUMN_PERIOD]?: PeriodsSchema;
17
20
  };
18
21
  };
19
22
  export declare type GetCustomerDataQuery = {
20
- getCustomerData: {
23
+ [SecurityScoreQueries.GET_CUSTOMER_DATA]: {
21
24
  __args?: {
22
25
  searchBody?: SearchBodyArgument;
23
26
  };
24
- filters?: FilterSchema;
25
- accountsAgg?: AccountsAggSchema;
26
- severityAgg?: SeveritiesAggSchema;
27
- period?: PeriodsSchema;
28
- avgCurrentScore?: boolean;
29
- monthlyTrendAgg?: MonthlyTrendAggSchema;
30
- results?: ScoreResultSchema;
31
- standards?: StandardSchema;
32
- subscriptionReferences?: boolean;
27
+ [GetCustomerDataFields.COLUMN_FILTERS]?: FilterSchema;
28
+ [GetCustomerDataFields.COLUMN_ACCOUNTS_AGG]?: AccountsAggSchema;
29
+ [GetCustomerDataFields.COLUMN_SEVERITY_AGG]?: SeveritiesAggSchema;
30
+ [GetCustomerDataFields.COLUMN_PERIOD]?: PeriodsSchema;
31
+ [GetCustomerDataFields.COLUMN_AVG_CURRENT_SCORE]?: boolean;
32
+ [GetCustomerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggSchema;
33
+ [GetCustomerDataFields.COLUMN_ISSUE_AGG]?: IssuesAggSchema;
34
+ [GetCustomerDataFields.COLUMN_RESULTS]?: ScoreResultSchema;
35
+ [GetCustomerDataFields.COLUMN_STANDARDS]?: StandardSchema;
36
+ [GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES]?: boolean;
33
37
  };
34
38
  };
35
39
  export declare type GetCustomerAccountDataQuery = {
36
- getCustomerAccountData: {
40
+ [SecurityScoreQueries.GET_CUSTOMER_ACCOUNT_DATA]: {
37
41
  __args?: {
38
42
  searchBody?: SearchBodyArgument;
39
43
  };
40
- filters?: [FilterSchema];
41
- avgCurrentScore?: boolean;
42
- standardsAgg?: StandardsAggSchema;
43
- severityAgg?: SeveritiesAggSchema;
44
- period?: PeriodsSchema;
45
- checks?: CheckSchema;
46
- monthlyTrendAgg?: MonthlyTrendAggSchema;
47
- result?: ScoreResultSchema;
48
- standards?: StandardSchema;
44
+ [GetCustomerAccountDataFields.COLUMN_FILTERS]?: [FilterSchema];
45
+ [GetCustomerAccountDataFields.COLUMN_ISSUE_AGG]?: IssuesAggSchema;
46
+ [GetCustomerAccountDataFields.COLUMN_AVG_CURRENT_SCORE]?: boolean;
47
+ [GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG]?: StandardsAggSchema;
48
+ [GetCustomerAccountDataFields.COLUMN_SEVERITY_AGG]?: SeveritiesAggSchema;
49
+ [GetCustomerAccountDataFields.COLUMN_PERIOD]?: PeriodsSchema;
50
+ [GetCustomerAccountDataFields.COLUMN_CHECKS]?: CheckByStandardSchema;
51
+ [GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggSchema;
52
+ [GetCustomerAccountDataFields.COLUMN_RESULT]?: ScoreResultSchema;
53
+ [GetCustomerAccountDataFields.COLUMN_STANDARDS]?: StandardSchema;
49
54
  };
50
55
  };
@@ -1,3 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const queryArguments_1 = require("./queryArguments");
4
+ const getPartnerData_1 = require("../entities/getPartnerData");
5
+ const getCustomerData_1 = require("../entities/getCustomerData");
6
+ const getCustomerAccountData_1 = require("../entities/getCustomerAccountData");
3
7
  //# sourceMappingURL=securityScoreGraphQLQueries.js.map
@@ -1,5 +1,5 @@
1
1
  import { Merge, Schema } from 'type-fest';
2
- import { AccountType, CheckType, CompareAccountAggType, CompareEndCustomerAggType, CompareStandardAggType, FilterValuesType, IssueDataAggType, MonthlyTrendAggType, NameCountByDateType, PeriodsType, RegistrationType, ScoreByMonthType, StandardAggType, StandardType } from './securityScoreGraphQLTypes';
2
+ import { AccountType, CheckType, CheckByStandardType, CompareAccountAggType, CompareEndCustomerAggType, CompareStandardAggType, FilterValuesType, IssueDataAggType, MonthlyTrendAggType, NameCountByDateType, PeriodsType, RegistrationType, ScoreByMonthType, StandardAggType, StandardType } from './securityScoreGraphQLTypes';
3
3
  declare type MissingFieldsOfMonthlyTrendAggSchema = {
4
4
  scores?: Schema<ScoreByMonthType, boolean>;
5
5
  };
@@ -42,10 +42,11 @@ export declare type IssuesAggSchema = {
42
42
  issues: IssueDataAggSchema;
43
43
  };
44
44
  export declare type PeriodsSchema = Schema<PeriodsType, boolean>;
45
- export declare type CheckSchema = Schema<CheckType, boolean>;
45
+ export declare type CheckByStandardSchema = Schema<CheckByStandardType, boolean>;
46
46
  declare type MissingFieldsInStandardType = {
47
47
  checks?: CheckSchema;
48
48
  };
49
+ export declare type CheckSchema = Schema<CheckType, boolean>;
49
50
  export declare type StandardSchema = Merge<Schema<StandardType, boolean>, MissingFieldsInStandardType>;
50
51
  declare type MissingFieldsInAccountSchema = {
51
52
  standards: StandardSchema;
@@ -37,6 +37,7 @@ export declare type CheckType = {
37
37
  };
38
38
  export declare type StandardType = {
39
39
  name?: string;
40
+ reference?: string;
40
41
  checks?: [CheckType];
41
42
  failed?: number;
42
43
  passed?: number;
@@ -63,12 +64,14 @@ export declare type NameCountByDateType = {
63
64
  export declare type NameAggType = {
64
65
  name?: string;
65
66
  data?: [NameCountByDateType];
67
+ last?: NameCountByDateType;
66
68
  progression?: number;
67
69
  };
68
70
  export declare type IssueDataAggType = {
69
71
  name?: string;
70
72
  reference?: string;
71
73
  vendorCode?: string;
74
+ last?: NameCountByDateType;
72
75
  data?: [NameCountByDateType];
73
76
  progression?: number;
74
77
  };
@@ -108,16 +111,6 @@ export declare type MonthlyTrendAggType = {
108
111
  avgCurrentScore?: number;
109
112
  scores?: [ScoreByMonthType];
110
113
  };
111
- export declare type GetPartnerDataType = {
112
- filters?: [FilterType];
113
- results?: [ScoreResultType];
114
- avgCurrentScore?: number;
115
- monthlyTrendAgg?: MonthlyTrendAggType;
116
- endCustomersAgg?: EndCustomersAggType;
117
- issueAgg?: IssuesAggType;
118
- severityAgg?: SeveritiesAggType;
119
- period?: PeriodsType;
120
- };
121
114
  export declare type CompareAccountAggType = {
122
115
  date?: string;
123
116
  avgCurrentScore?: number;
@@ -125,25 +118,15 @@ export declare type CompareAccountAggType = {
125
118
  passed?: number;
126
119
  };
127
120
  export declare type AccountAggType = {
128
- accountRef?: string;
121
+ name?: string;
122
+ last?: CompareAccountAggType;
123
+ reference?: string;
129
124
  data?: [CompareAccountAggType];
130
125
  progression?: number;
131
126
  };
132
127
  export declare type AccountsAggType = {
133
128
  accounts: [AccountAggType];
134
129
  };
135
- export declare type GetCustomerDataType = {
136
- accountsAgg?: AccountsAggType;
137
- avgCurrentScore?: number;
138
- filters?: [FilterType];
139
- monthlyTrendAgg?: MonthlyTrendAggType;
140
- period?: PeriodsType;
141
- results?: [ScoreResultType];
142
- issueAgg?: IssuesAggType;
143
- severityAgg?: SeveritiesAggType;
144
- standards?: [StandardType];
145
- subscriptionReferences?: number;
146
- };
147
130
  export declare type CompareStandardAggType = {
148
131
  date?: string;
149
132
  score?: number;
@@ -153,21 +136,30 @@ export declare type CompareStandardAggType = {
153
136
  export declare type StandardAggType = {
154
137
  name?: string;
155
138
  reference?: string;
139
+ last?: CompareStandardAggType;
156
140
  data?: [CompareStandardAggType];
157
141
  progression?: number;
158
142
  };
159
143
  export declare type StandardsAggType = {
160
144
  standards: [StandardAggType];
161
145
  };
162
- export declare type GetCustomerAccountDataType = {
163
- avgCurrentScore?: number;
164
- checks?: [CheckType];
165
- filters?: [FilterType];
166
- issueAgg?: IssuesAggType;
167
- monthlyTrendAgg?: MonthlyTrendAggType;
168
- period?: PeriodsType;
169
- result?: ScoreResultType;
170
- severityAgg?: SeveritiesAggType;
171
- standardsAgg?: StandardsAggType;
172
- standards?: [StandardType];
146
+ export declare type CompareCheckType = {
147
+ date?: string;
148
+ processed?: number;
149
+ isFailed?: boolean;
150
+ flagged?: number;
151
+ score?: number;
152
+ };
153
+ export declare type ChecksByStandardType = {
154
+ data?: [CompareCheckType];
155
+ last?: CompareCheckType;
156
+ name?: string;
157
+ description?: string;
158
+ reference?: string;
159
+ severity?: string;
160
+ progression?: number;
161
+ };
162
+ export declare type CheckByStandardType = {
163
+ standard?: string;
164
+ checks?: [ChecksByStandardType];
173
165
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.28.0-rc.bdj.4",
7
+ "version": "3.28.0-rc.bdj.5",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",