@arrowsphere/api-client 3.28.0 → 3.29.0-rc.jpb.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/abstractEntity.js +14 -16
- package/build/abstractGraphQLClient.d.ts +4 -14
- package/build/abstractGraphQLClient.js +32 -24
- package/build/axiosSingleton.js +2 -2
- package/build/campaign/entities/campaign/banners/banners.js +32 -34
- package/build/campaign/entities/campaign/campaign.js +51 -53
- package/build/campaign/entities/campaign/landingPage/landingPage.js +24 -26
- package/build/campaign/entities/campaign/landingPage/landingPageBody.js +35 -37
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooter.js +29 -31
- package/build/campaign/entities/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +23 -25
- package/build/campaign/entities/campaign/landingPage/landingPageHeader.js +29 -31
- package/build/campaign/entities/campaign/rules/rules.js +29 -31
- package/build/campaign/entities/campaignAssets/assets/assets.js +17 -19
- package/build/campaign/entities/campaignAssets/campaignAssets.js +14 -16
- package/build/campaign/entities/v2/campaign/banner/banner.js +32 -34
- package/build/campaign/entities/v2/campaign/campaign.js +48 -50
- package/build/campaign/entities/v2/campaign/landingPage/landingPage.js +24 -26
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooter.js +34 -36
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeature.js +20 -22
- package/build/campaign/entities/v2/campaign/landingPage/landingPageFooter/landingPageFooterFeatureItem.js +32 -34
- package/build/campaign/entities/v2/campaign/landingPage/landingPageHeader.js +32 -34
- package/build/campaign/entities/v2/campaignList.js +14 -16
- package/build/campaign/index.js +5 -1
- package/build/cart/entities/index.js +5 -1
- package/build/cart/entities/item.js +26 -28
- package/build/cart/entities/itemList.js +14 -16
- package/build/cart/index.js +5 -1
- package/build/catalog/catalogGraphQLClient.d.ts +2 -0
- package/build/catalog/catalogGraphQLClient.js +14 -1
- package/build/catalog/entities/program.js +32 -34
- package/build/catalog/entities/programs.js +14 -16
- package/build/catalog/index.d.ts +2 -0
- package/build/catalog/index.js +7 -1
- 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/consumption/entities/bi/consumptionBI.js +28 -30
- package/build/consumption/entities/bi/period/period.js +17 -19
- package/build/consumption/entities/bi/top/top.js +23 -25
- package/build/consumption/entities/consumption/consumption.js +17 -19
- package/build/consumption/index.js +5 -1
- package/build/contact/entities/contact.js +44 -46
- package/build/contact/entities/contactCreate.js +14 -16
- package/build/contact/entities/contactList.js +14 -16
- package/build/contact/index.js +5 -1
- package/build/customers/entities/customers/contact/contact.js +29 -31
- package/build/customers/entities/customers/customer.js +71 -73
- package/build/customers/entities/customers/customerContact/customerContact.js +38 -40
- package/build/customers/entities/customers/customerContact/customerContactList.js +14 -16
- package/build/customers/entities/customers/details/details.js +29 -31
- package/build/customers/entities/dataCustomers.js +14 -16
- package/build/customers/entities/dataInvitation.js +29 -31
- package/build/customers/entities/invitations/company/company.js +14 -16
- package/build/customers/entities/invitations/contact/invitationContact.js +26 -28
- package/build/customers/index.js +5 -1
- 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/index.js +5 -1
- package/build/exception/publicApiClientException.d.ts +2 -1
- package/build/exception/publicApiClientException.js +2 -1
- package/build/general/entities/whoAmI.js +59 -61
- package/build/general/index.js +5 -1
- package/build/getResult.js +21 -23
- package/build/index.d.ts +1 -0
- package/build/index.js +6 -1
- package/build/licenses/entities/filterFindResult.js +17 -19
- package/build/licenses/entities/findResult.d.ts +1 -1
- package/build/licenses/entities/findResult.js +37 -39
- package/build/licenses/entities/getLicense/actionMessagesGetResult.js +26 -28
- package/build/licenses/entities/getLicense/actionsGetResult.js +41 -43
- package/build/licenses/entities/getLicense/buySellFindResult.js +17 -19
- package/build/licenses/entities/getLicense/licenseGetResult.js +105 -107
- package/build/licenses/entities/getLicense/licensePriceGetResult.js +20 -22
- package/build/licenses/entities/getLicense/orderGetResult.js +17 -19
- package/build/licenses/entities/getResult/getLicenseResult.js +14 -16
- package/build/licenses/entities/history/actionHistoryResult.js +23 -25
- package/build/licenses/entities/history/licenceHistoryResult.js +14 -16
- package/build/licenses/entities/license/activeSeatsFindResult.js +17 -19
- package/build/licenses/entities/license/configFindResult.js +20 -22
- package/build/licenses/entities/license/licenseFindResult.js +134 -136
- package/build/licenses/entities/license/priceFindResult.js +26 -28
- package/build/licenses/entities/license/warningFindResult.js +17 -19
- package/build/licenses/entities/offer/actionFlagsFindResult.js +20 -22
- package/build/licenses/entities/offer/offerFindResult.js +32 -34
- package/build/licenses/entities/offer/priceBandFindResult.js +35 -37
- package/build/licenses/entities/offer/priceband/billingFindResult.js +20 -22
- package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +14 -16
- package/build/licenses/entities/offer/priceband/identifiersFindResult.js +14 -16
- package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +26 -28
- package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +20 -22
- package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +17 -19
- package/build/licenses/index.js +5 -1
- package/build/orders/entities/dataListOrders.js +14 -16
- package/build/orders/entities/orders/order.js +39 -41
- package/build/orders/entities/orders/partner/partner.js +17 -19
- package/build/orders/entities/orders/products/identifiers/productIdentifiers.js +14 -16
- package/build/orders/entities/orders/products/identifiers/vendor/identifiersVendor.js +14 -16
- package/build/orders/entities/orders/products/prices/productPrices.js +32 -34
- package/build/orders/entities/orders/products/products.js +56 -58
- package/build/orders/entities/orders/products/program/productProgram.js +14 -16
- package/build/orders/entities/referenceLink.js +17 -19
- package/build/orders/index.js +5 -1
- package/build/pagination.js +29 -31
- package/build/security/index.js +5 -1
- package/build/security/register/entity/registrationLink.js +14 -16
- package/build/security/register/index.js +5 -1
- package/build/security/standards/entities/checks/checks.js +17 -19
- package/build/security/standards/entities/checks/securityChecks.js +38 -40
- package/build/security/standards/entities/resources/resources.js +26 -28
- package/build/security/standards/entities/resources/securityResources.js +17 -19
- package/build/security/standards/entities/standards/securityStandards.js +29 -31
- package/build/security/standards/entities/standards/standards.js +17 -19
- package/build/security/standards/index.js +5 -1
- package/build/securityScore/entities/getCustomerAccountData.d.ts +44 -0
- package/build/securityScore/entities/getCustomerAccountData.js +99 -0
- package/build/securityScore/entities/getCustomerData.d.ts +44 -0
- package/build/securityScore/entities/getCustomerData.js +99 -0
- package/build/securityScore/entities/getPartnerData.d.ts +39 -0
- package/build/securityScore/entities/getPartnerData.js +88 -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 +55 -0
- package/build/securityScore/types/securityScoreGraphQLQueries.js +7 -0
- package/build/securityScore/types/securityScoreGraphQLSchemas.d.ts +71 -0
- package/build/securityScore/types/securityScoreGraphQLSchemas.js +3 -0
- package/build/securityScore/types/securityScoreGraphQLTypes.d.ts +165 -0
- package/build/securityScore/types/securityScoreGraphQLTypes.js +3 -0
- package/build/shared/index.js +5 -1
- package/build/subscriptions/entities/subscription.js +56 -58
- package/build/subscriptions/entities/subscriptionsListResult.js +39 -41
- package/build/subscriptions/index.js +5 -1
- package/build/supportCenter/entities/issue/attachment.js +27 -29
- package/build/supportCenter/entities/issue/comment.js +29 -31
- package/build/supportCenter/entities/issue/issue.js +106 -108
- package/build/supportCenter/entities/topic.js +30 -32
- package/build/supportCenter/index.js +5 -1
- package/package.json +5 -3
|
@@ -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
|
|
@@ -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
|
|
@@ -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,55 @@
|
|
|
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';
|
|
6
|
+
export declare type GetPartnerDataQuery = {
|
|
7
|
+
[SecurityScoreQueries.GET_PARTNER_DATA]: {
|
|
8
|
+
__args?: {
|
|
9
|
+
searchBody?: SearchBodyArgument;
|
|
10
|
+
paginate?: PaginateArgument;
|
|
11
|
+
};
|
|
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;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare type GetCustomerDataQuery = {
|
|
23
|
+
[SecurityScoreQueries.GET_CUSTOMER_DATA]: {
|
|
24
|
+
__args?: {
|
|
25
|
+
searchBody?: SearchBodyArgument;
|
|
26
|
+
};
|
|
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;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare type GetCustomerAccountDataQuery = {
|
|
40
|
+
[SecurityScoreQueries.GET_CUSTOMER_ACCOUNT_DATA]: {
|
|
41
|
+
__args?: {
|
|
42
|
+
searchBody?: SearchBodyArgument;
|
|
43
|
+
};
|
|
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;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -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
|