@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
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* For field __args
|
|
3
|
+
*/
|
|
4
|
+
export declare enum OperatorArgument {
|
|
5
|
+
OR = "OR",
|
|
6
|
+
AND = "AND",
|
|
7
|
+
BETWEEN = "BETWEEN"
|
|
8
|
+
}
|
|
9
|
+
export declare enum PeriodInputFields {
|
|
10
|
+
FROM = "from",
|
|
11
|
+
TO = "to"
|
|
12
|
+
}
|
|
13
|
+
export declare enum PaginateFields {
|
|
14
|
+
PAGE = "page",
|
|
15
|
+
PER_PAGE = "perPage"
|
|
16
|
+
}
|
|
17
|
+
export declare enum SearchBodyFields {
|
|
18
|
+
FILTERS = "filters",
|
|
19
|
+
EXCLUSION_FILTERS = "exclusionFilters",
|
|
20
|
+
SORT = "sort",
|
|
21
|
+
SUBSCRIPTION_REFERENCE = "subscriptionReference",
|
|
22
|
+
MARKETPLACE = "marketplace",
|
|
23
|
+
MONTHLY_TREND_PERIOD = "monthlyTrendPeriod",
|
|
24
|
+
PERIOD = "period"
|
|
25
|
+
}
|
|
26
|
+
export declare enum SearchFilterFields {
|
|
27
|
+
NAMES = "names",
|
|
28
|
+
VALUES = "values",
|
|
29
|
+
OPERATOR = "operator",
|
|
30
|
+
FILTERS = "filters"
|
|
31
|
+
}
|
|
32
|
+
export declare enum SearchFilterValues {
|
|
33
|
+
ACCOUNT = "account",
|
|
34
|
+
ACCOUNT_ID = "account.id",
|
|
35
|
+
ACCOUNT_REFERENCE = "account.reference",
|
|
36
|
+
ACCOUNT_NAME = "account.name",
|
|
37
|
+
ACCOUNT_STANDARDS = "account.standards",
|
|
38
|
+
ACCOUNT_STANDARDS_REFERENCE = "account.standards.reference",
|
|
39
|
+
ACCOUNT_STANDARDS_NAME = "account.standards.name",
|
|
40
|
+
ACCOUNT_STANDARDS_TOTAL = "account.standards.total",
|
|
41
|
+
ACCOUNT_STANDARDS_PASSED = "account.standards.passed",
|
|
42
|
+
ACCOUNT_STANDARDS_FAILED = "account.standards.failed",
|
|
43
|
+
ACCOUNT_STANDARDS_SCORE = "account.standards.score",
|
|
44
|
+
ACCOUNT_STANDARDS_MAX_SCORE = "account.standards.maxScore",
|
|
45
|
+
ACCOUNT_STANDARDS_CHECKS = "account.standards.checks",
|
|
46
|
+
ACCOUNT_STANDARDS_CHECKS_ID = "account.standards.checks.id",
|
|
47
|
+
ACCOUNT_STANDARDS_CHECKS_REFERENCE = "account.standards.checks.reference",
|
|
48
|
+
ACCOUNT_STANDARDS_CHECKS_NAME = "account.standards.checks.name",
|
|
49
|
+
ACCOUNT_STANDARDS_CHECKS_DESCRIPTION = "account.standards.checks.description",
|
|
50
|
+
ACCOUNT_STANDARDS_CHECKS_SEVERITY = "account.standards.checks.severity",
|
|
51
|
+
ACCOUNT_STANDARDS_CHECKS_PROCESSED = "account.standards.checks.processed",
|
|
52
|
+
ACCOUNT_STANDARDS_CHECKS_FLAGGED = "account.standards.checks.flagged",
|
|
53
|
+
ACCOUNT_STANDARDS_CHECKS_IS_FAILED = "account.standards.checks.isFailed",
|
|
54
|
+
ACCOUNT_STANDARDS_CHECKS_SCORE = "account.standards.checks.score",
|
|
55
|
+
ACCOUNT_FAILED = "account.failed",
|
|
56
|
+
ACCOUNT_PASSED = "account.passed",
|
|
57
|
+
ACCOUNT_SCORE = "account.score",
|
|
58
|
+
ACCOUNT_TOTAL = "account.total",
|
|
59
|
+
REGISTRATION = "registration",
|
|
60
|
+
REGISTRATION_ACCOUNT_REFERENCE = "registration.accountReference",
|
|
61
|
+
REGISTRATION_SUBSCRIPTION_REFERENCE = "registration.subscription.reference",
|
|
62
|
+
REGISTRATION_CUSTOMER_ID = "registration.customer.id",
|
|
63
|
+
REGISTRATION_CUSTOMER_NAME = "registration.customer.name",
|
|
64
|
+
REGISTRATION_CUSTOMER_REFERENCE = "registration.customer.reference",
|
|
65
|
+
REGISTRATION_RESELLER_ID = "registration.reseller.id",
|
|
66
|
+
REGISTRATION_RESELLER_NAME = "registration.reseller.name",
|
|
67
|
+
REGISTRATION_RESELLER_REFERENCE = "registration.reseller.reference",
|
|
68
|
+
REGISTRATION_VENDOR_CODE = "registration.vendorCode",
|
|
69
|
+
REGISTRATION_MARKETPLACE = "registration.marketplace",
|
|
70
|
+
UPDATED_AT = "updatedAt",
|
|
71
|
+
UPDATED_BY = "updatedBy"
|
|
72
|
+
}
|
|
73
|
+
export declare enum SortFields {
|
|
74
|
+
NAME = "name",
|
|
75
|
+
ORDER = "order"
|
|
76
|
+
}
|
|
77
|
+
export declare enum SecurityScoreQueries {
|
|
78
|
+
GET_PARTNER_DATA = "getPartnerData",
|
|
79
|
+
GET_CUSTOMER_DATA = "getCustomerData",
|
|
80
|
+
GET_CUSTOMER_ACCOUNT_DATA = "getCustomerAccountData"
|
|
81
|
+
}
|
|
82
|
+
export declare type PaginateArgument = {
|
|
83
|
+
[PaginateFields.PAGE]?: number;
|
|
84
|
+
[PaginateFields.PER_PAGE]?: number;
|
|
85
|
+
};
|
|
86
|
+
export declare type SearchBodyArgument = {
|
|
87
|
+
[SearchBodyFields.FILTERS]?: [SearchFilterArgument];
|
|
88
|
+
[SearchBodyFields.EXCLUSION_FILTERS]?: [SearchFilterArgument];
|
|
89
|
+
[SearchBodyFields.SORT]?: [SortArgument];
|
|
90
|
+
[SearchBodyFields.SUBSCRIPTION_REFERENCE]?: [[string]];
|
|
91
|
+
[SearchBodyFields.MARKETPLACE]?: [[string]];
|
|
92
|
+
[SearchBodyFields.MONTHLY_TREND_PERIOD]?: PeriodInputArgument;
|
|
93
|
+
[SearchBodyFields.PERIOD]?: PeriodInputArgument;
|
|
94
|
+
};
|
|
95
|
+
export declare type PeriodInputArgument = {
|
|
96
|
+
[PeriodInputFields.FROM]: string;
|
|
97
|
+
[PeriodInputFields.TO]: string;
|
|
98
|
+
};
|
|
99
|
+
export declare type SearchFilterArgument = {
|
|
100
|
+
[SearchFilterFields.NAMES]?: [string];
|
|
101
|
+
[SearchFilterFields.VALUES]?: [[string]];
|
|
102
|
+
[SearchFilterFields.OPERATOR]?: OperatorArgument;
|
|
103
|
+
[SearchFilterFields.FILTERS]?: [SearchFilterArgument];
|
|
104
|
+
};
|
|
105
|
+
export declare type SortArgument = {
|
|
106
|
+
[SortFields.NAME]?: string;
|
|
107
|
+
[SortFields.ORDER]?: string;
|
|
108
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecurityScoreQueries = exports.SortFields = exports.SearchFilterValues = exports.SearchFilterFields = exports.SearchBodyFields = exports.PaginateFields = exports.PeriodInputFields = exports.OperatorArgument = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* For field __args
|
|
6
|
+
*/
|
|
7
|
+
var OperatorArgument;
|
|
8
|
+
(function (OperatorArgument) {
|
|
9
|
+
OperatorArgument["OR"] = "OR";
|
|
10
|
+
OperatorArgument["AND"] = "AND";
|
|
11
|
+
OperatorArgument["BETWEEN"] = "BETWEEN";
|
|
12
|
+
})(OperatorArgument = exports.OperatorArgument || (exports.OperatorArgument = {}));
|
|
13
|
+
var PeriodInputFields;
|
|
14
|
+
(function (PeriodInputFields) {
|
|
15
|
+
PeriodInputFields["FROM"] = "from";
|
|
16
|
+
PeriodInputFields["TO"] = "to";
|
|
17
|
+
})(PeriodInputFields = exports.PeriodInputFields || (exports.PeriodInputFields = {}));
|
|
18
|
+
var PaginateFields;
|
|
19
|
+
(function (PaginateFields) {
|
|
20
|
+
PaginateFields["PAGE"] = "page";
|
|
21
|
+
PaginateFields["PER_PAGE"] = "perPage";
|
|
22
|
+
})(PaginateFields = exports.PaginateFields || (exports.PaginateFields = {}));
|
|
23
|
+
var SearchBodyFields;
|
|
24
|
+
(function (SearchBodyFields) {
|
|
25
|
+
SearchBodyFields["FILTERS"] = "filters";
|
|
26
|
+
SearchBodyFields["EXCLUSION_FILTERS"] = "exclusionFilters";
|
|
27
|
+
SearchBodyFields["SORT"] = "sort";
|
|
28
|
+
SearchBodyFields["SUBSCRIPTION_REFERENCE"] = "subscriptionReference";
|
|
29
|
+
SearchBodyFields["MARKETPLACE"] = "marketplace";
|
|
30
|
+
SearchBodyFields["MONTHLY_TREND_PERIOD"] = "monthlyTrendPeriod";
|
|
31
|
+
SearchBodyFields["PERIOD"] = "period";
|
|
32
|
+
})(SearchBodyFields = exports.SearchBodyFields || (exports.SearchBodyFields = {}));
|
|
33
|
+
var SearchFilterFields;
|
|
34
|
+
(function (SearchFilterFields) {
|
|
35
|
+
SearchFilterFields["NAMES"] = "names";
|
|
36
|
+
SearchFilterFields["VALUES"] = "values";
|
|
37
|
+
SearchFilterFields["OPERATOR"] = "operator";
|
|
38
|
+
SearchFilterFields["FILTERS"] = "filters";
|
|
39
|
+
})(SearchFilterFields = exports.SearchFilterFields || (exports.SearchFilterFields = {}));
|
|
40
|
+
var SearchFilterValues;
|
|
41
|
+
(function (SearchFilterValues) {
|
|
42
|
+
SearchFilterValues["ACCOUNT"] = "account";
|
|
43
|
+
SearchFilterValues["ACCOUNT_ID"] = "account.id";
|
|
44
|
+
SearchFilterValues["ACCOUNT_REFERENCE"] = "account.reference";
|
|
45
|
+
SearchFilterValues["ACCOUNT_NAME"] = "account.name";
|
|
46
|
+
SearchFilterValues["ACCOUNT_STANDARDS"] = "account.standards";
|
|
47
|
+
SearchFilterValues["ACCOUNT_STANDARDS_REFERENCE"] = "account.standards.reference";
|
|
48
|
+
SearchFilterValues["ACCOUNT_STANDARDS_NAME"] = "account.standards.name";
|
|
49
|
+
SearchFilterValues["ACCOUNT_STANDARDS_TOTAL"] = "account.standards.total";
|
|
50
|
+
SearchFilterValues["ACCOUNT_STANDARDS_PASSED"] = "account.standards.passed";
|
|
51
|
+
SearchFilterValues["ACCOUNT_STANDARDS_FAILED"] = "account.standards.failed";
|
|
52
|
+
SearchFilterValues["ACCOUNT_STANDARDS_SCORE"] = "account.standards.score";
|
|
53
|
+
SearchFilterValues["ACCOUNT_STANDARDS_MAX_SCORE"] = "account.standards.maxScore";
|
|
54
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS"] = "account.standards.checks";
|
|
55
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_ID"] = "account.standards.checks.id";
|
|
56
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_REFERENCE"] = "account.standards.checks.reference";
|
|
57
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_NAME"] = "account.standards.checks.name";
|
|
58
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_DESCRIPTION"] = "account.standards.checks.description";
|
|
59
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_SEVERITY"] = "account.standards.checks.severity";
|
|
60
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_PROCESSED"] = "account.standards.checks.processed";
|
|
61
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_FLAGGED"] = "account.standards.checks.flagged";
|
|
62
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_IS_FAILED"] = "account.standards.checks.isFailed";
|
|
63
|
+
SearchFilterValues["ACCOUNT_STANDARDS_CHECKS_SCORE"] = "account.standards.checks.score";
|
|
64
|
+
SearchFilterValues["ACCOUNT_FAILED"] = "account.failed";
|
|
65
|
+
SearchFilterValues["ACCOUNT_PASSED"] = "account.passed";
|
|
66
|
+
SearchFilterValues["ACCOUNT_SCORE"] = "account.score";
|
|
67
|
+
SearchFilterValues["ACCOUNT_TOTAL"] = "account.total";
|
|
68
|
+
SearchFilterValues["REGISTRATION"] = "registration";
|
|
69
|
+
SearchFilterValues["REGISTRATION_ACCOUNT_REFERENCE"] = "registration.accountReference";
|
|
70
|
+
SearchFilterValues["REGISTRATION_SUBSCRIPTION_REFERENCE"] = "registration.subscription.reference";
|
|
71
|
+
SearchFilterValues["REGISTRATION_CUSTOMER_ID"] = "registration.customer.id";
|
|
72
|
+
SearchFilterValues["REGISTRATION_CUSTOMER_NAME"] = "registration.customer.name";
|
|
73
|
+
SearchFilterValues["REGISTRATION_CUSTOMER_REFERENCE"] = "registration.customer.reference";
|
|
74
|
+
SearchFilterValues["REGISTRATION_RESELLER_ID"] = "registration.reseller.id";
|
|
75
|
+
SearchFilterValues["REGISTRATION_RESELLER_NAME"] = "registration.reseller.name";
|
|
76
|
+
SearchFilterValues["REGISTRATION_RESELLER_REFERENCE"] = "registration.reseller.reference";
|
|
77
|
+
SearchFilterValues["REGISTRATION_VENDOR_CODE"] = "registration.vendorCode";
|
|
78
|
+
SearchFilterValues["REGISTRATION_MARKETPLACE"] = "registration.marketplace";
|
|
79
|
+
SearchFilterValues["UPDATED_AT"] = "updatedAt";
|
|
80
|
+
SearchFilterValues["UPDATED_BY"] = "updatedBy";
|
|
81
|
+
})(SearchFilterValues = exports.SearchFilterValues || (exports.SearchFilterValues = {}));
|
|
82
|
+
var SortFields;
|
|
83
|
+
(function (SortFields) {
|
|
84
|
+
SortFields["NAME"] = "name";
|
|
85
|
+
SortFields["ORDER"] = "order";
|
|
86
|
+
})(SortFields = exports.SortFields || (exports.SortFields = {}));
|
|
87
|
+
var SecurityScoreQueries;
|
|
88
|
+
(function (SecurityScoreQueries) {
|
|
89
|
+
SecurityScoreQueries["GET_PARTNER_DATA"] = "getPartnerData";
|
|
90
|
+
SecurityScoreQueries["GET_CUSTOMER_DATA"] = "getCustomerData";
|
|
91
|
+
SecurityScoreQueries["GET_CUSTOMER_ACCOUNT_DATA"] = "getCustomerAccountData";
|
|
92
|
+
})(SecurityScoreQueries = exports.SecurityScoreQueries || (exports.SecurityScoreQueries = {}));
|
|
93
|
+
//# sourceMappingURL=queryArguments.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { SearchBodyArgument, PaginateArgument, SecurityScoreQueries } from './queryArguments';
|
|
2
|
+
import { AccountsAggSchema, ChecksAggSchema, EndCustomersAggSchema, FilterSchema, MonthlyTrendAggSchema, PaginationSchema, PeriodsSchema, ScoreResultSchema, ScoresAggSchema, SeveritiesAggSchema, StandardsAggSchema, StandardSchema, StandardWithCheckSchema } from './securityScoreGraphQLSchemas';
|
|
3
|
+
import { GetPartnerDataFields } from '../entities/getPartnerData';
|
|
4
|
+
import { GetCustomerDataFields } from '../entities/getCustomerData';
|
|
5
|
+
import { GetCustomerAccountDataFields } from '../entities/getCustomerAccountData';
|
|
6
|
+
export declare type GetPartnerDataQuery = {
|
|
7
|
+
[SecurityScoreQueries.GET_PARTNER_DATA]: {
|
|
8
|
+
__args?: {
|
|
9
|
+
searchBody?: SearchBodyArgument;
|
|
10
|
+
paginate?: PaginateArgument;
|
|
11
|
+
};
|
|
12
|
+
[GetPartnerDataFields.COLUMN_AVG_CURRENT_SCORE]?: boolean;
|
|
13
|
+
[GetPartnerDataFields.COLUMN_CHECKS_AGG]?: ChecksAggSchema;
|
|
14
|
+
[GetPartnerDataFields.COLUMN_END_CUSTOMERS_AGG]?: EndCustomersAggSchema;
|
|
15
|
+
[GetPartnerDataFields.COLUMN_FILTERS]?: FilterSchema;
|
|
16
|
+
[GetPartnerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggSchema;
|
|
17
|
+
[GetPartnerDataFields.COLUMN_PAGINATION]?: PaginationSchema;
|
|
18
|
+
[GetPartnerDataFields.COLUMN_PERIOD]?: PeriodsSchema;
|
|
19
|
+
[GetPartnerDataFields.COLUMN_RESULTS]?: ScoreResultSchema;
|
|
20
|
+
[GetPartnerDataFields.COLUMN_SCORES_AGG]?: ScoresAggSchema;
|
|
21
|
+
[GetPartnerDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggSchema;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare type GetCustomerDataQuery = {
|
|
25
|
+
[SecurityScoreQueries.GET_CUSTOMER_DATA]: {
|
|
26
|
+
__args?: {
|
|
27
|
+
searchBody?: SearchBodyArgument;
|
|
28
|
+
paginate?: PaginateArgument;
|
|
29
|
+
};
|
|
30
|
+
[GetCustomerDataFields.COLUMN_ACCOUNTS_AGG]?: AccountsAggSchema;
|
|
31
|
+
[GetCustomerDataFields.COLUMN_AVG_CURRENT_SCORE]?: boolean;
|
|
32
|
+
[GetCustomerDataFields.COLUMN_CHECKS_AGG]?: ChecksAggSchema;
|
|
33
|
+
[GetCustomerDataFields.COLUMN_FILTERS]?: FilterSchema;
|
|
34
|
+
[GetCustomerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggSchema;
|
|
35
|
+
[GetCustomerDataFields.COLUMN_PAGINATION]?: PaginationSchema;
|
|
36
|
+
[GetCustomerDataFields.COLUMN_PERIOD]?: PeriodsSchema;
|
|
37
|
+
[GetCustomerDataFields.COLUMN_RESULTS]?: ScoreResultSchema;
|
|
38
|
+
[GetCustomerDataFields.COLUMN_SCORES_AGG]?: ScoresAggSchema;
|
|
39
|
+
[GetCustomerDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggSchema;
|
|
40
|
+
[GetCustomerDataFields.COLUMN_STANDARDS]?: StandardSchema;
|
|
41
|
+
[GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES]?: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare type GetCustomerAccountDataQuery = {
|
|
45
|
+
[SecurityScoreQueries.GET_CUSTOMER_ACCOUNT_DATA]: {
|
|
46
|
+
__args?: {
|
|
47
|
+
searchBody?: SearchBodyArgument;
|
|
48
|
+
paginate?: PaginateArgument;
|
|
49
|
+
};
|
|
50
|
+
[GetCustomerAccountDataFields.COLUMN_AVG_CURRENT_SCORE]?: boolean;
|
|
51
|
+
[GetCustomerAccountDataFields.COLUMN_CHECKS_AGG]?: ChecksAggSchema;
|
|
52
|
+
[GetCustomerAccountDataFields.COLUMN_FILTERS]?: FilterSchema;
|
|
53
|
+
[GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggSchema;
|
|
54
|
+
[GetCustomerAccountDataFields.COLUMN_PAGINATION]?: PaginationSchema;
|
|
55
|
+
[GetCustomerAccountDataFields.COLUMN_PERIOD]?: PeriodsSchema;
|
|
56
|
+
[GetCustomerAccountDataFields.COLUMN_RESULTS]?: ScoreResultSchema;
|
|
57
|
+
[GetCustomerAccountDataFields.COLUMN_SCORES_AGG]?: ScoresAggSchema;
|
|
58
|
+
[GetCustomerAccountDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggSchema;
|
|
59
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG]?: StandardsAggSchema;
|
|
60
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS]?: StandardWithCheckSchema;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
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");
|
|
7
|
+
//# sourceMappingURL=securityScoreGraphQLQueries.js.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Merge, Schema } from 'type-fest';
|
|
2
|
+
import { AccountType, CheckType, FilterValuesType, MonthlyTrendAggType, PeriodsType, RegistrationType, StandardAggType, StandardType, EndCustomerByDateAggType, AccountByDateAggType, CheckAggType, PaginationsType, ScoreByDateAggType, StandardWithCheckType, ChecksByStandardType, CheckByDateType, NameCountByDateAggType, EndCustomerAggType, SeverityAggType, AccountAggType, StandardByDateAggType, ScoreByMonthAggType, ScoresAggType } from './securityScoreGraphQLTypes';
|
|
3
|
+
declare type MissingFieldsOfMonthlyTrendAggSchema = {
|
|
4
|
+
scores?: Schema<ScoreByMonthAggType, boolean>;
|
|
5
|
+
};
|
|
6
|
+
export declare type MonthlyTrendAggSchema = Merge<Schema<MonthlyTrendAggType, boolean>, MissingFieldsOfMonthlyTrendAggSchema>;
|
|
7
|
+
export declare type PaginationSchema = Schema<PaginationsType, boolean>;
|
|
8
|
+
declare type EndCustomerByDateAggSchema = Schema<EndCustomerByDateAggType, boolean>;
|
|
9
|
+
declare type MissingFieldsInEndCustomerAggSchema = {
|
|
10
|
+
data?: EndCustomerByDateAggSchema;
|
|
11
|
+
};
|
|
12
|
+
declare type EndCustomerAggSchema = Merge<Schema<EndCustomerAggType, boolean>, MissingFieldsInEndCustomerAggSchema>;
|
|
13
|
+
export declare type EndCustomersAggSchema = {
|
|
14
|
+
customers?: EndCustomerAggSchema;
|
|
15
|
+
};
|
|
16
|
+
declare type AccountByDateAggSchema = Schema<AccountByDateAggType, boolean>;
|
|
17
|
+
declare type MissingFieldsInAccountAggSchema = {
|
|
18
|
+
data?: AccountByDateAggSchema;
|
|
19
|
+
};
|
|
20
|
+
declare type AccountAggSchema = Merge<Schema<AccountAggType, boolean>, MissingFieldsInAccountAggSchema>;
|
|
21
|
+
export declare type AccountsAggSchema = {
|
|
22
|
+
accounts?: AccountAggSchema;
|
|
23
|
+
};
|
|
24
|
+
declare type FilterValuesSchema = Schema<FilterValuesType, boolean>;
|
|
25
|
+
export declare type FilterSchema = {
|
|
26
|
+
name?: boolean;
|
|
27
|
+
values?: FilterValuesSchema;
|
|
28
|
+
};
|
|
29
|
+
declare type NameCountByDateAggSchema = Schema<NameCountByDateAggType, boolean>;
|
|
30
|
+
declare type MissingFieldsInCheckDataAggSchema = {
|
|
31
|
+
data?: NameCountByDateAggSchema;
|
|
32
|
+
};
|
|
33
|
+
declare type CheckAggAggSchema = Merge<Schema<CheckAggType, boolean>, MissingFieldsInCheckDataAggSchema>;
|
|
34
|
+
export declare type ChecksAggSchema = {
|
|
35
|
+
checks?: CheckAggAggSchema;
|
|
36
|
+
};
|
|
37
|
+
export declare type PeriodsSchema = Schema<PeriodsType, boolean>;
|
|
38
|
+
declare type CheckSchema = Schema<CheckType, boolean>;
|
|
39
|
+
declare type MissingFieldsInStandardType = {
|
|
40
|
+
checks?: CheckSchema;
|
|
41
|
+
};
|
|
42
|
+
export declare type StandardSchema = Merge<Schema<StandardType, boolean>, MissingFieldsInStandardType>;
|
|
43
|
+
declare type MissingFieldsInAccountSchema = {
|
|
44
|
+
standards?: StandardSchema;
|
|
45
|
+
};
|
|
46
|
+
declare type AccountSchema = Merge<Schema<AccountType, boolean>, MissingFieldsInAccountSchema>;
|
|
47
|
+
declare type RegistrationSchema = Schema<RegistrationType, boolean>;
|
|
48
|
+
export declare type ScoreResultSchema = {
|
|
49
|
+
account?: AccountSchema;
|
|
50
|
+
registration?: RegistrationSchema;
|
|
51
|
+
};
|
|
52
|
+
export declare type SeverityAggSchema = Merge<Schema<SeverityAggType, boolean>, MissingFieldsInCheckDataAggSchema>;
|
|
53
|
+
export declare type SeveritiesAggSchema = {
|
|
54
|
+
severities?: SeverityAggSchema;
|
|
55
|
+
};
|
|
56
|
+
declare type StandardByDateAggSchema = Schema<StandardByDateAggType, boolean>;
|
|
57
|
+
declare type MissingFieldsInStandardAggSchema = {
|
|
58
|
+
data?: StandardByDateAggSchema;
|
|
59
|
+
};
|
|
60
|
+
declare type StandardAggSchema = Merge<Schema<StandardAggType, boolean>, MissingFieldsInStandardAggSchema>;
|
|
61
|
+
export declare type StandardsAggSchema = {
|
|
62
|
+
standards?: StandardAggSchema;
|
|
63
|
+
};
|
|
64
|
+
declare type ScoreByDateAggSchema = Schema<ScoreByDateAggType, boolean>;
|
|
65
|
+
declare type MissingFieldsInScoresAggSchema = {
|
|
66
|
+
scores?: ScoreByDateAggSchema;
|
|
67
|
+
};
|
|
68
|
+
export declare type ScoresAggSchema = Merge<Schema<ScoresAggType, boolean>, MissingFieldsInScoresAggSchema>;
|
|
69
|
+
declare type CheckByDateSchema = Schema<CheckByDateType, boolean>;
|
|
70
|
+
declare type MissingFieldsInChecksByStandardSchema = {
|
|
71
|
+
data?: CheckByDateSchema;
|
|
72
|
+
};
|
|
73
|
+
declare type ChecksByStandardSchema = Merge<Schema<ChecksByStandardType, boolean>, MissingFieldsInChecksByStandardSchema>;
|
|
74
|
+
declare type MissingFieldsInStandardWithCheckSchema = {
|
|
75
|
+
checks?: ChecksByStandardSchema;
|
|
76
|
+
};
|
|
77
|
+
export declare type StandardWithCheckSchema = Merge<Schema<StandardWithCheckType, boolean>, MissingFieldsInStandardWithCheckSchema>;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
export declare type FilterType = {
|
|
2
|
+
name?: string;
|
|
3
|
+
values?: [FilterValuesType];
|
|
4
|
+
};
|
|
5
|
+
export declare type FilterValuesType = {
|
|
6
|
+
count?: number;
|
|
7
|
+
value?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type PaginationsType = {
|
|
10
|
+
currentPage?: number;
|
|
11
|
+
next?: string;
|
|
12
|
+
perPage?: number;
|
|
13
|
+
previous?: string;
|
|
14
|
+
total?: number;
|
|
15
|
+
totalPage?: number;
|
|
16
|
+
};
|
|
17
|
+
export declare type SubscriptionRegistrationType = {
|
|
18
|
+
reference: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type CustomerRegistrationType = {
|
|
21
|
+
name?: string;
|
|
22
|
+
reference?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare type ResellerRegistrationType = {
|
|
25
|
+
name?: string;
|
|
26
|
+
reference?: string;
|
|
27
|
+
};
|
|
28
|
+
export declare type RegistrationType = {
|
|
29
|
+
accountReference?: string;
|
|
30
|
+
customer?: CustomerRegistrationType;
|
|
31
|
+
marketplace?: string;
|
|
32
|
+
reseller?: ResellerRegistrationType;
|
|
33
|
+
subscription?: SubscriptionRegistrationType;
|
|
34
|
+
vendorCode?: string;
|
|
35
|
+
};
|
|
36
|
+
export declare type CheckType = {
|
|
37
|
+
description?: string;
|
|
38
|
+
flagged?: number;
|
|
39
|
+
isFailed?: boolean;
|
|
40
|
+
name?: string;
|
|
41
|
+
processed?: number;
|
|
42
|
+
reference?: string;
|
|
43
|
+
score?: number;
|
|
44
|
+
severity?: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type StandardType = {
|
|
47
|
+
checks?: [CheckType];
|
|
48
|
+
failed?: number;
|
|
49
|
+
name?: string;
|
|
50
|
+
passed?: number;
|
|
51
|
+
reference?: string;
|
|
52
|
+
score?: number;
|
|
53
|
+
total?: number;
|
|
54
|
+
};
|
|
55
|
+
export declare type AccountType = {
|
|
56
|
+
failed?: number;
|
|
57
|
+
name?: string;
|
|
58
|
+
passed?: number;
|
|
59
|
+
reference?: string;
|
|
60
|
+
score?: number;
|
|
61
|
+
standards?: [StandardType];
|
|
62
|
+
total?: number;
|
|
63
|
+
};
|
|
64
|
+
export declare type ScoreResultType = {
|
|
65
|
+
account?: AccountType;
|
|
66
|
+
registration?: RegistrationType;
|
|
67
|
+
};
|
|
68
|
+
export declare type NameCountByDateAggType = {
|
|
69
|
+
count?: number;
|
|
70
|
+
date?: string;
|
|
71
|
+
};
|
|
72
|
+
export declare type SeverityAggType = {
|
|
73
|
+
data?: [NameCountByDateAggType];
|
|
74
|
+
last?: NameCountByDateAggType;
|
|
75
|
+
name?: string;
|
|
76
|
+
progression?: number;
|
|
77
|
+
};
|
|
78
|
+
export declare type SeveritiesAggType = {
|
|
79
|
+
severities: [SeverityAggType];
|
|
80
|
+
};
|
|
81
|
+
export declare type CheckAggType = {
|
|
82
|
+
data?: [NameCountByDateAggType];
|
|
83
|
+
last?: NameCountByDateAggType;
|
|
84
|
+
name?: string;
|
|
85
|
+
progression?: number;
|
|
86
|
+
reference?: string;
|
|
87
|
+
vendorCode?: string;
|
|
88
|
+
};
|
|
89
|
+
export declare type ChecksAggType = {
|
|
90
|
+
checks: [CheckAggType];
|
|
91
|
+
};
|
|
92
|
+
export declare type EndCustomerByDateAggType = {
|
|
93
|
+
accounts?: number;
|
|
94
|
+
avgCurrentScore?: number;
|
|
95
|
+
date?: string;
|
|
96
|
+
failed?: number;
|
|
97
|
+
passed?: number;
|
|
98
|
+
total?: number;
|
|
99
|
+
subscriptionReferences?: number;
|
|
100
|
+
};
|
|
101
|
+
export declare type EndCustomerAggType = {
|
|
102
|
+
data?: [EndCustomerByDateAggType];
|
|
103
|
+
last?: EndCustomerByDateAggType;
|
|
104
|
+
name?: string;
|
|
105
|
+
progression?: number;
|
|
106
|
+
reference?: string;
|
|
107
|
+
};
|
|
108
|
+
export declare type EndCustomersAggType = {
|
|
109
|
+
customers: [EndCustomerAggType];
|
|
110
|
+
};
|
|
111
|
+
export declare type ScoreByMonthAggType = {
|
|
112
|
+
avgCurrentScore?: number;
|
|
113
|
+
date?: string;
|
|
114
|
+
};
|
|
115
|
+
export declare type MonthlyTrendAggType = {
|
|
116
|
+
avgCurrentScore: number;
|
|
117
|
+
period: PeriodsType;
|
|
118
|
+
scores: [ScoreByMonthAggType];
|
|
119
|
+
};
|
|
120
|
+
export declare type ScoreByDateAggType = {
|
|
121
|
+
avgCurrentScore?: number;
|
|
122
|
+
date?: string;
|
|
123
|
+
failed?: number;
|
|
124
|
+
passed?: number;
|
|
125
|
+
total?: number;
|
|
126
|
+
};
|
|
127
|
+
export declare type ScoresAggType = {
|
|
128
|
+
last?: ScoreByDateAggType;
|
|
129
|
+
scores?: [ScoreByDateAggType];
|
|
130
|
+
total?: number;
|
|
131
|
+
};
|
|
132
|
+
export declare type AccountByDateAggType = {
|
|
133
|
+
avgCurrentScore: number;
|
|
134
|
+
date: string;
|
|
135
|
+
failed: number;
|
|
136
|
+
passed: number;
|
|
137
|
+
total?: number;
|
|
138
|
+
};
|
|
139
|
+
export declare type AccountAggType = {
|
|
140
|
+
data?: [AccountByDateAggType];
|
|
141
|
+
last?: AccountByDateAggType;
|
|
142
|
+
name?: string;
|
|
143
|
+
progression?: number;
|
|
144
|
+
reference?: string;
|
|
145
|
+
};
|
|
146
|
+
export declare type AccountsAggType = {
|
|
147
|
+
accounts: [AccountAggType];
|
|
148
|
+
};
|
|
149
|
+
export declare type StandardByDateAggType = {
|
|
150
|
+
date?: string;
|
|
151
|
+
score?: number;
|
|
152
|
+
failed?: number;
|
|
153
|
+
passed?: number;
|
|
154
|
+
total?: number;
|
|
155
|
+
};
|
|
156
|
+
export declare type StandardAggType = {
|
|
157
|
+
data?: [StandardByDateAggType];
|
|
158
|
+
last?: StandardByDateAggType;
|
|
159
|
+
name?: string;
|
|
160
|
+
progression?: number;
|
|
161
|
+
reference?: string;
|
|
162
|
+
};
|
|
163
|
+
export declare type StandardsAggType = {
|
|
164
|
+
standards: [StandardAggType];
|
|
165
|
+
};
|
|
166
|
+
export declare type CheckByDateType = {
|
|
167
|
+
date?: string;
|
|
168
|
+
flagged?: number;
|
|
169
|
+
isFailed?: boolean;
|
|
170
|
+
processed?: number;
|
|
171
|
+
score?: number;
|
|
172
|
+
};
|
|
173
|
+
export declare type ChecksByStandardType = {
|
|
174
|
+
data?: [CheckByDateType];
|
|
175
|
+
description?: string;
|
|
176
|
+
last?: CheckByDateType;
|
|
177
|
+
name?: string;
|
|
178
|
+
progression?: number;
|
|
179
|
+
reference?: string;
|
|
180
|
+
severity?: string;
|
|
181
|
+
};
|
|
182
|
+
export declare type StandardWithCheckType = {
|
|
183
|
+
checks?: [ChecksByStandardType];
|
|
184
|
+
name?: string;
|
|
185
|
+
reference?: string;
|
|
186
|
+
};
|
|
187
|
+
export declare type PeriodsType = {
|
|
188
|
+
from?: string;
|
|
189
|
+
to?: string;
|
|
190
|
+
};
|
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.29.0
|
|
7
|
+
"version": "3.29.0",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
@@ -84,7 +84,9 @@
|
|
|
84
84
|
"axios": "1.1.3",
|
|
85
85
|
"graphql": "^16.3.0",
|
|
86
86
|
"graphql-request": "4.2.0",
|
|
87
|
+
"json-to-graphql-query": "^2.2.5",
|
|
87
88
|
"lodash": "^4.17.21",
|
|
89
|
+
"type-fest": "^2.19.0",
|
|
88
90
|
"validatorjs": "3.22.1"
|
|
89
91
|
}
|
|
90
92
|
}
|