@arrowsphere/api-client 3.52.0 → 3.53.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/CHANGELOG.md +6 -0
- package/build/catalog/catalogGraphQLClient.d.ts +3 -1
- package/build/catalog/catalogGraphQLClient.js +20 -0
- package/build/catalog/types/FindOneProductQueryOutput.d.ts +7 -1
- package/build/catalog/types/catalogGraphQLQueries.d.ts +10 -2
- package/build/catalog/types/catalogGraphQLSchemas.d.ts +3 -1
- package/build/catalog/types/catalogGraphQLTypes.d.ts +16 -0
- package/build/catalog/types/queryProductArguments.d.ts +16 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +2 -1
- package/build/publicGraphQLClient.d.ts +2 -0
- package/build/publicGraphQLClient.js +6 -0
- package/build/wellArchitected/entities/getAdminData.d.ts +42 -0
- package/build/wellArchitected/entities/getAdminData.js +95 -0
- package/build/wellArchitected/entities/getCustomerAccountData.d.ts +42 -0
- package/build/wellArchitected/entities/getCustomerAccountData.js +96 -0
- package/build/wellArchitected/entities/getCustomerData.d.ts +45 -0
- package/build/wellArchitected/entities/getCustomerData.js +103 -0
- package/build/wellArchitected/entities/getPartnerData.d.ts +42 -0
- package/build/wellArchitected/entities/getPartnerData.js +95 -0
- package/build/wellArchitected/index.d.ts +8 -0
- package/build/wellArchitected/index.js +25 -0
- package/build/wellArchitected/types/queryArguments.d.ts +109 -0
- package/build/wellArchitected/types/queryArguments.js +94 -0
- package/build/wellArchitected/types/wellArchitectedGraphQLQueries.d.ts +75 -0
- package/build/wellArchitected/types/wellArchitectedGraphQLQueries.js +8 -0
- package/build/wellArchitected/types/wellArchitectedGraphQLSchemas.d.ts +125 -0
- package/build/wellArchitected/types/wellArchitectedGraphQLSchemas.js +3 -0
- package/build/wellArchitected/types/wellArchitectedGraphQLTypes.d.ts +339 -0
- package/build/wellArchitected/types/wellArchitectedGraphQLTypes.js +3 -0
- package/build/wellArchitected/wellArchitectedGraphQLClient.d.ts +21 -0
- package/build/wellArchitected/wellArchitectedGraphQLClient.js +65 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
## [3.53.0] - 2023-09-23
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Creating the Well Architected GraphQL client, to support both Security Dashboard & Cost Optimization Dashboard.
|
|
11
|
+
|
|
6
12
|
## [3.52.0] - 2023-09-15
|
|
7
13
|
|
|
8
14
|
### Changed
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbstractGraphQLClient } from '../abstractGraphQLClient';
|
|
2
|
-
import { GetPriceBandType, GetProductsType, GetProductType } from './types/catalogGraphQLTypes';
|
|
2
|
+
import { GetExchangeRatesType, GetExchangeRateValueType, GetPriceBandType, GetProductsType, GetProductType } from './types/catalogGraphQLTypes';
|
|
3
3
|
import { CatalogQueries, CatalogQuery } from './types/catalogGraphQLQueries';
|
|
4
4
|
export declare class CatalogGraphQLClient extends AbstractGraphQLClient {
|
|
5
5
|
/**
|
|
@@ -19,4 +19,6 @@ export declare class CatalogGraphQLClient extends AbstractGraphQLClient {
|
|
|
19
19
|
findProductsByQuery(query: Pick<CatalogQueries, 'getProducts'>): Promise<GetProductsType | null>;
|
|
20
20
|
findOneProductByQuery(query: Pick<CatalogQueries, 'product'>): Promise<GetProductType | null>;
|
|
21
21
|
findOnePriceBandByQuery(query: Pick<CatalogQueries, 'priceBand'>): Promise<GetPriceBandType | null>;
|
|
22
|
+
getExchangeRates(query: Pick<CatalogQueries, 'getExchangeRates'>): Promise<GetExchangeRatesType | null>;
|
|
23
|
+
findExchangeRateValue(query: Pick<CatalogQueries, 'exchangeRate'>): Promise<GetExchangeRateValueType | null>;
|
|
22
24
|
}
|
|
@@ -60,6 +60,26 @@ class CatalogGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient
|
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
+
async getExchangeRates(query) {
|
|
64
|
+
this.path = this.GRAPHQL;
|
|
65
|
+
const queryStr = this.stringifyQuery(query);
|
|
66
|
+
try {
|
|
67
|
+
return await this.post(queryStr);
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
async findExchangeRateValue(query) {
|
|
74
|
+
this.path = this.GRAPHQL;
|
|
75
|
+
const queryStr = this.stringifyQuery(query);
|
|
76
|
+
try {
|
|
77
|
+
return await this.post(queryStr);
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
63
83
|
}
|
|
64
84
|
exports.CatalogGraphQLClient = CatalogGraphQLClient;
|
|
65
85
|
//# sourceMappingURL=catalogGraphQLClient.js.map
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { PriceBandType, ProductType } from './catalogGraphQLTypes';
|
|
1
|
+
import { ExchangeRateType, ExchangeRateValueType, PriceBandType, ProductType } from './catalogGraphQLTypes';
|
|
2
2
|
export declare type FindOneProductQueryOutput = {
|
|
3
3
|
product: ProductType;
|
|
4
4
|
};
|
|
5
5
|
export declare type FindOnePriceBandQueryOutput = {
|
|
6
6
|
priceBand: PriceBandType;
|
|
7
7
|
};
|
|
8
|
+
export declare type FindExchangeRatesQueryOutput = {
|
|
9
|
+
exchangeRates: ExchangeRateType[];
|
|
10
|
+
};
|
|
11
|
+
export declare type FindExchangeRateValueQueryOutput = {
|
|
12
|
+
exchangeRate: ExchangeRateValueType;
|
|
13
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryPriceBandArguments, QueryProductArguments } from './queryProductArguments';
|
|
2
|
-
import { FiltersSchema, PaginationSchema, PriceBandSchema, ProductSchema } from './catalogGraphQLSchemas';
|
|
1
|
+
import { QueryExchangeRatesArguments, QueryExchangeRateValueArguments, QueryPriceBandArguments, QueryProductArguments } from './queryProductArguments';
|
|
2
|
+
import { ExchangeRateSchema, ExchangeRateValueSchema, FiltersSchema, PaginationSchema, PriceBandSchema, ProductSchema } from './catalogGraphQLSchemas';
|
|
3
3
|
import { Merge } from 'type-fest';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated
|
|
@@ -12,6 +12,8 @@ export declare type CatalogQuery = {
|
|
|
12
12
|
* Represent the Catalog Schema of Public API
|
|
13
13
|
*/
|
|
14
14
|
export declare type CatalogQueries = {
|
|
15
|
+
getExchangeRates?: GetExchangeRatesQuery;
|
|
16
|
+
exchangeRate?: GetExchangeRateValueQuery;
|
|
15
17
|
getProducts?: GetPaginatedProductsQuery;
|
|
16
18
|
priceBand?: GetPriceBandQuery;
|
|
17
19
|
product?: GetProductQuery;
|
|
@@ -29,3 +31,9 @@ export declare type GetProductQuery = Merge<{
|
|
|
29
31
|
export declare type GetPriceBandQuery = Merge<{
|
|
30
32
|
__args: QueryPriceBandArguments;
|
|
31
33
|
}, PriceBandSchema>;
|
|
34
|
+
export declare type GetExchangeRatesQuery = Merge<{
|
|
35
|
+
__args: QueryExchangeRatesArguments;
|
|
36
|
+
}, ExchangeRateSchema>;
|
|
37
|
+
export declare type GetExchangeRateValueQuery = Merge<{
|
|
38
|
+
__args: QueryExchangeRateValueArguments;
|
|
39
|
+
}, ExchangeRateValueSchema>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AttributeType, FiltersType, IdentifiersType, PaginationType, PriceBandType, PricesType, ProductType, PromotionType, RelatedOfferType } from './catalogGraphQLTypes';
|
|
1
|
+
import { AttributeType, ExchangeRateType, ExchangeRateValueType, FiltersType, IdentifiersType, PaginationType, PriceBandType, PricesType, ProductType, PromotionType, RelatedOfferType } from './catalogGraphQLTypes';
|
|
2
2
|
import { Merge, Schema } from 'type-fest';
|
|
3
3
|
export declare type PaginationSchema = Schema<PaginationType, boolean>;
|
|
4
4
|
export declare type FiltersSchema = Schema<FiltersType, boolean>;
|
|
@@ -29,4 +29,6 @@ declare type MissingFieldsOfPriceBandSchema = {
|
|
|
29
29
|
*/
|
|
30
30
|
export declare type PriceBandSchema = Merge<Schema<PriceBandType, boolean>, MissingFieldsOfPriceBandSchema>;
|
|
31
31
|
export declare type PriceBandPriceSchema = Schema<PricesType, boolean>;
|
|
32
|
+
export declare type ExchangeRateSchema = Schema<ExchangeRateType, boolean>;
|
|
33
|
+
export declare type ExchangeRateValueSchema = Schema<ExchangeRateValueType, boolean>;
|
|
32
34
|
export {};
|
|
@@ -7,6 +7,12 @@ export declare type GetProductType = {
|
|
|
7
7
|
export declare type GetPriceBandType = {
|
|
8
8
|
priceBand?: PriceBandType;
|
|
9
9
|
};
|
|
10
|
+
export declare type GetExchangeRatesType = {
|
|
11
|
+
exchangeRates?: ExchangeRateType[];
|
|
12
|
+
};
|
|
13
|
+
export declare type GetExchangeRateValueType = {
|
|
14
|
+
exchangeRate?: ExchangeRateValueType;
|
|
15
|
+
};
|
|
10
16
|
export declare type PaginatedProductsType = {
|
|
11
17
|
filters?: Array<FiltersType>;
|
|
12
18
|
pagination?: PaginationType;
|
|
@@ -264,6 +270,16 @@ export declare type PromotionType = {
|
|
|
264
270
|
applicableFor?: number;
|
|
265
271
|
checkEligibility?: boolean;
|
|
266
272
|
};
|
|
273
|
+
export declare type ExchangeRateType = {
|
|
274
|
+
toEur: string;
|
|
275
|
+
unitTextName: string;
|
|
276
|
+
unitTextSymbol: string;
|
|
277
|
+
};
|
|
278
|
+
export declare type ExchangeRateValueType = {
|
|
279
|
+
unitTextName: string;
|
|
280
|
+
unitTextSymbol: string;
|
|
281
|
+
value: number;
|
|
282
|
+
};
|
|
267
283
|
export declare type AttributesParameters = {
|
|
268
284
|
name?: string;
|
|
269
285
|
label?: string;
|
|
@@ -12,6 +12,22 @@ export declare type QueryPriceBandArguments = {
|
|
|
12
12
|
paginate?: PaginateArgument;
|
|
13
13
|
searchBody: SearchBodyPriceBandsArgument;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* For field __args
|
|
17
|
+
*/
|
|
18
|
+
export declare type QueryExchangeRatesArguments = {
|
|
19
|
+
paginate?: PaginateArgument;
|
|
20
|
+
searchBody?: SearchBodyArgument;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* For field __args
|
|
24
|
+
*/
|
|
25
|
+
export declare type QueryExchangeRateValueArguments = {
|
|
26
|
+
from: string;
|
|
27
|
+
paginate?: PaginateArgument;
|
|
28
|
+
searchBody?: SearchBodyArgument;
|
|
29
|
+
to: string;
|
|
30
|
+
};
|
|
15
31
|
export declare type PaginateArgument = {
|
|
16
32
|
page: number;
|
|
17
33
|
perPage: number;
|
package/build/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export * from './shared/';
|
|
|
21
21
|
export * from './security/';
|
|
22
22
|
export * from './subscriptions/';
|
|
23
23
|
export * from './supportCenter/';
|
|
24
|
-
export * from './securityScore/';
|
|
25
24
|
export * from './user/';
|
|
25
|
+
export * from './wellArchitected/';
|
|
26
26
|
export { ContactInformation };
|
|
27
27
|
import * as ContactInformation from './contact';
|
package/build/index.js
CHANGED
|
@@ -50,8 +50,9 @@ __exportStar(require("./shared/"), exports);
|
|
|
50
50
|
__exportStar(require("./security/"), exports);
|
|
51
51
|
__exportStar(require("./subscriptions/"), exports);
|
|
52
52
|
__exportStar(require("./supportCenter/"), exports);
|
|
53
|
-
|
|
53
|
+
// export * from './securityScore/';
|
|
54
54
|
__exportStar(require("./user/"), exports);
|
|
55
|
+
__exportStar(require("./wellArchitected/"), exports);
|
|
55
56
|
const ContactInformation = __importStar(require("./contact"));
|
|
56
57
|
exports.ContactInformation = ContactInformation;
|
|
57
58
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,9 +2,11 @@ import { CatalogGraphQLClient } from './catalog/catalogGraphQLClient';
|
|
|
2
2
|
import { AbstractGraphQLClient } from './abstractGraphQLClient';
|
|
3
3
|
import { SecurityScoreGraphQLClient } from './securityScore';
|
|
4
4
|
import { GraphqlApiClient } from './graphqlApi';
|
|
5
|
+
import { WellArchitectedGraphQLClient } from './wellArchitected';
|
|
5
6
|
export declare class PublicGraphQLClient extends AbstractGraphQLClient {
|
|
6
7
|
getCatalogGraphQLClient(): CatalogGraphQLClient;
|
|
7
8
|
getSecurityScoreGraphQLClient(): SecurityScoreGraphQLClient;
|
|
9
|
+
getWellArchitectedGraphQLClient(): WellArchitectedGraphQLClient;
|
|
8
10
|
getGraphqlApiClient(): GraphqlApiClient;
|
|
9
11
|
private applyConfig;
|
|
10
12
|
}
|
|
@@ -5,6 +5,7 @@ const catalogGraphQLClient_1 = require("./catalog/catalogGraphQLClient");
|
|
|
5
5
|
const abstractGraphQLClient_1 = require("./abstractGraphQLClient");
|
|
6
6
|
const securityScore_1 = require("./securityScore");
|
|
7
7
|
const graphqlApi_1 = require("./graphqlApi");
|
|
8
|
+
const wellArchitected_1 = require("./wellArchitected");
|
|
8
9
|
class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
9
10
|
getCatalogGraphQLClient() {
|
|
10
11
|
const client = new catalogGraphQLClient_1.CatalogGraphQLClient();
|
|
@@ -16,6 +17,11 @@ class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient
|
|
|
16
17
|
this.applyConfig(client);
|
|
17
18
|
return client;
|
|
18
19
|
}
|
|
20
|
+
getWellArchitectedGraphQLClient() {
|
|
21
|
+
const client = new wellArchitected_1.WellArchitectedGraphQLClient();
|
|
22
|
+
this.applyConfig(client);
|
|
23
|
+
return client;
|
|
24
|
+
}
|
|
19
25
|
getGraphqlApiClient() {
|
|
20
26
|
const client = new graphqlApi_1.GraphqlApiClient();
|
|
21
27
|
this.applyConfig(client);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { ChecksAggType, MarketplacesAggType, MonthlyTrendAggType, WellArchitectedPaginationType, PartnersAggType, WellArchitectedPeriodType, ScoreResultType, ScoresAggType, SeveritiesAggType } from '../types/wellArchitectedGraphQLTypes';
|
|
3
|
+
import { WellArchitectedQueries } from '../types/queryArguments';
|
|
4
|
+
export declare enum GetAdminDataFields {
|
|
5
|
+
COLUMN_CHECKS_AGG = "checksAgg",
|
|
6
|
+
COLUMN_MARKETPLACES_AGG = "marketplacesAgg",
|
|
7
|
+
COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
|
|
8
|
+
COLUMN_PARTNERS_AGG = "partnersAgg",
|
|
9
|
+
COLUMN_PAGINATION = "pagination",
|
|
10
|
+
COLUMN_PERIOD = "period",
|
|
11
|
+
COLUMN_RESULTS = "results",
|
|
12
|
+
COLUMN_SCORES_AGG = "scoresAgg",
|
|
13
|
+
COLUMN_SEVERITIES_AGG = "severitiesAgg"
|
|
14
|
+
}
|
|
15
|
+
export declare type GetAdminDataType = {
|
|
16
|
+
[GetAdminDataFields.COLUMN_CHECKS_AGG]?: ChecksAggType;
|
|
17
|
+
[GetAdminDataFields.COLUMN_MARKETPLACES_AGG]?: MarketplacesAggType;
|
|
18
|
+
[GetAdminDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
|
|
19
|
+
[GetAdminDataFields.COLUMN_PARTNERS_AGG]?: PartnersAggType;
|
|
20
|
+
[GetAdminDataFields.COLUMN_PAGINATION]?: WellArchitectedPaginationType;
|
|
21
|
+
[GetAdminDataFields.COLUMN_PERIOD]?: WellArchitectedPeriodType;
|
|
22
|
+
[GetAdminDataFields.COLUMN_RESULTS]?: ScoreResultType[];
|
|
23
|
+
[GetAdminDataFields.COLUMN_SCORES_AGG]?: ScoresAggType;
|
|
24
|
+
[GetAdminDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggType;
|
|
25
|
+
};
|
|
26
|
+
export declare type GetAdminDataGraphQLResultType = {
|
|
27
|
+
[WellArchitectedQueries.GET_ADMIN_DATA]: GetAdminDataType;
|
|
28
|
+
};
|
|
29
|
+
export declare class GetAdminData extends AbstractEntity<GetAdminDataType> {
|
|
30
|
+
#private;
|
|
31
|
+
constructor(getAdminDataInput: GetAdminDataType);
|
|
32
|
+
get checksAgg(): ChecksAggType | undefined;
|
|
33
|
+
get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
|
|
34
|
+
get marketplacesAgg(): MarketplacesAggType | undefined;
|
|
35
|
+
get partnersAgg(): PartnersAggType | undefined;
|
|
36
|
+
get period(): WellArchitectedPeriodType | undefined;
|
|
37
|
+
get pagination(): WellArchitectedPaginationType | undefined;
|
|
38
|
+
get results(): ScoreResultType[] | undefined;
|
|
39
|
+
get scoresAgg(): ScoresAggType | undefined;
|
|
40
|
+
get severitiesAgg(): SeveritiesAggType | undefined;
|
|
41
|
+
toJSON(): GetAdminDataType;
|
|
42
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 _GetAdminData_checksAgg, _GetAdminData_marketplacesAgg, _GetAdminData_monthlyTrendAgg, _GetAdminData_partnersAgg, _GetAdminData_period, _GetAdminData_pagination, _GetAdminData_results, _GetAdminData_scoresAgg, _GetAdminData_severitiesAgg;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GetAdminData = exports.GetAdminDataFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const queryArguments_1 = require("../types/queryArguments");
|
|
18
|
+
var GetAdminDataFields;
|
|
19
|
+
(function (GetAdminDataFields) {
|
|
20
|
+
GetAdminDataFields["COLUMN_CHECKS_AGG"] = "checksAgg";
|
|
21
|
+
GetAdminDataFields["COLUMN_MARKETPLACES_AGG"] = "marketplacesAgg";
|
|
22
|
+
GetAdminDataFields["COLUMN_MONTHLY_TREND_AGG"] = "monthlyTrendAgg";
|
|
23
|
+
GetAdminDataFields["COLUMN_PARTNERS_AGG"] = "partnersAgg";
|
|
24
|
+
GetAdminDataFields["COLUMN_PAGINATION"] = "pagination";
|
|
25
|
+
GetAdminDataFields["COLUMN_PERIOD"] = "period";
|
|
26
|
+
GetAdminDataFields["COLUMN_RESULTS"] = "results";
|
|
27
|
+
GetAdminDataFields["COLUMN_SCORES_AGG"] = "scoresAgg";
|
|
28
|
+
GetAdminDataFields["COLUMN_SEVERITIES_AGG"] = "severitiesAgg";
|
|
29
|
+
})(GetAdminDataFields = exports.GetAdminDataFields || (exports.GetAdminDataFields = {}));
|
|
30
|
+
class GetAdminData extends abstractEntity_1.AbstractEntity {
|
|
31
|
+
constructor(getAdminDataInput) {
|
|
32
|
+
super(getAdminDataInput);
|
|
33
|
+
_GetAdminData_checksAgg.set(this, void 0);
|
|
34
|
+
_GetAdminData_marketplacesAgg.set(this, void 0);
|
|
35
|
+
_GetAdminData_monthlyTrendAgg.set(this, void 0);
|
|
36
|
+
_GetAdminData_partnersAgg.set(this, void 0);
|
|
37
|
+
_GetAdminData_period.set(this, void 0);
|
|
38
|
+
_GetAdminData_pagination.set(this, void 0);
|
|
39
|
+
_GetAdminData_results.set(this, void 0);
|
|
40
|
+
_GetAdminData_scoresAgg.set(this, void 0);
|
|
41
|
+
_GetAdminData_severitiesAgg.set(this, void 0);
|
|
42
|
+
__classPrivateFieldSet(this, _GetAdminData_checksAgg, getAdminDataInput[GetAdminDataFields.COLUMN_CHECKS_AGG], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _GetAdminData_marketplacesAgg, getAdminDataInput[GetAdminDataFields.COLUMN_MARKETPLACES_AGG], "f");
|
|
44
|
+
__classPrivateFieldSet(this, _GetAdminData_monthlyTrendAgg, getAdminDataInput[GetAdminDataFields.COLUMN_MONTHLY_TREND_AGG], "f");
|
|
45
|
+
__classPrivateFieldSet(this, _GetAdminData_partnersAgg, getAdminDataInput[GetAdminDataFields.COLUMN_PARTNERS_AGG], "f");
|
|
46
|
+
__classPrivateFieldSet(this, _GetAdminData_period, getAdminDataInput[GetAdminDataFields.COLUMN_PERIOD], "f");
|
|
47
|
+
__classPrivateFieldSet(this, _GetAdminData_pagination, getAdminDataInput[GetAdminDataFields.COLUMN_PAGINATION], "f");
|
|
48
|
+
__classPrivateFieldSet(this, _GetAdminData_results, getAdminDataInput[GetAdminDataFields.COLUMN_RESULTS], "f");
|
|
49
|
+
__classPrivateFieldSet(this, _GetAdminData_scoresAgg, getAdminDataInput[GetAdminDataFields.COLUMN_SCORES_AGG], "f");
|
|
50
|
+
__classPrivateFieldSet(this, _GetAdminData_severitiesAgg, getAdminDataInput[GetAdminDataFields.COLUMN_SEVERITIES_AGG], "f");
|
|
51
|
+
}
|
|
52
|
+
get checksAgg() {
|
|
53
|
+
return __classPrivateFieldGet(this, _GetAdminData_checksAgg, "f");
|
|
54
|
+
}
|
|
55
|
+
get monthlyTrendAgg() {
|
|
56
|
+
return __classPrivateFieldGet(this, _GetAdminData_monthlyTrendAgg, "f");
|
|
57
|
+
}
|
|
58
|
+
get marketplacesAgg() {
|
|
59
|
+
return __classPrivateFieldGet(this, _GetAdminData_marketplacesAgg, "f");
|
|
60
|
+
}
|
|
61
|
+
get partnersAgg() {
|
|
62
|
+
return __classPrivateFieldGet(this, _GetAdminData_partnersAgg, "f");
|
|
63
|
+
}
|
|
64
|
+
get period() {
|
|
65
|
+
return __classPrivateFieldGet(this, _GetAdminData_period, "f");
|
|
66
|
+
}
|
|
67
|
+
get pagination() {
|
|
68
|
+
return __classPrivateFieldGet(this, _GetAdminData_pagination, "f");
|
|
69
|
+
}
|
|
70
|
+
get results() {
|
|
71
|
+
return __classPrivateFieldGet(this, _GetAdminData_results, "f");
|
|
72
|
+
}
|
|
73
|
+
get scoresAgg() {
|
|
74
|
+
return __classPrivateFieldGet(this, _GetAdminData_scoresAgg, "f");
|
|
75
|
+
}
|
|
76
|
+
get severitiesAgg() {
|
|
77
|
+
return __classPrivateFieldGet(this, _GetAdminData_severitiesAgg, "f");
|
|
78
|
+
}
|
|
79
|
+
toJSON() {
|
|
80
|
+
return {
|
|
81
|
+
[GetAdminDataFields.COLUMN_CHECKS_AGG]: this.checksAgg,
|
|
82
|
+
[GetAdminDataFields.COLUMN_MARKETPLACES_AGG]: this.marketplacesAgg,
|
|
83
|
+
[GetAdminDataFields.COLUMN_MONTHLY_TREND_AGG]: this.monthlyTrendAgg,
|
|
84
|
+
[GetAdminDataFields.COLUMN_PARTNERS_AGG]: this.partnersAgg,
|
|
85
|
+
[GetAdminDataFields.COLUMN_PERIOD]: this.period,
|
|
86
|
+
[GetAdminDataFields.COLUMN_PAGINATION]: this.pagination,
|
|
87
|
+
[GetAdminDataFields.COLUMN_RESULTS]: this.results,
|
|
88
|
+
[GetAdminDataFields.COLUMN_SCORES_AGG]: this.scoresAgg,
|
|
89
|
+
[GetAdminDataFields.COLUMN_SEVERITIES_AGG]: this.severitiesAgg,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.GetAdminData = GetAdminData;
|
|
94
|
+
_GetAdminData_checksAgg = new WeakMap(), _GetAdminData_marketplacesAgg = new WeakMap(), _GetAdminData_monthlyTrendAgg = new WeakMap(), _GetAdminData_partnersAgg = new WeakMap(), _GetAdminData_period = new WeakMap(), _GetAdminData_pagination = new WeakMap(), _GetAdminData_results = new WeakMap(), _GetAdminData_scoresAgg = new WeakMap(), _GetAdminData_severitiesAgg = new WeakMap();
|
|
95
|
+
//# sourceMappingURL=getAdminData.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { ChecksAggType, MonthlyTrendAggType, WellArchitectedPaginationType, WellArchitectedPeriodType, ScoreResultType, ScoresAggType, SeveritiesAggType, StandardsAggType, StandardWithCheckType } from '../types/wellArchitectedGraphQLTypes';
|
|
3
|
+
import { WellArchitectedQueries } from '../types/queryArguments';
|
|
4
|
+
export declare enum GetCustomerAccountDataFields {
|
|
5
|
+
COLUMN_CHECKS_AGG = "checksAgg",
|
|
6
|
+
COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
|
|
7
|
+
COLUMN_PAGINATION = "pagination",
|
|
8
|
+
COLUMN_PERIOD = "period",
|
|
9
|
+
COLUMN_RESULTS = "results",
|
|
10
|
+
COLUMN_SCORES_AGG = "scoresAgg",
|
|
11
|
+
COLUMN_SEVERITIES_AGG = "severitiesAgg",
|
|
12
|
+
COLUMN_STANDARDS_AGG = "standardsAgg",
|
|
13
|
+
COLUMN_STANDARDS = "standards"
|
|
14
|
+
}
|
|
15
|
+
export declare type GetCustomerAccountDataType = {
|
|
16
|
+
[GetCustomerAccountDataFields.COLUMN_CHECKS_AGG]?: ChecksAggType;
|
|
17
|
+
[GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
|
|
18
|
+
[GetCustomerAccountDataFields.COLUMN_PAGINATION]?: WellArchitectedPaginationType;
|
|
19
|
+
[GetCustomerAccountDataFields.COLUMN_PERIOD]?: WellArchitectedPeriodType;
|
|
20
|
+
[GetCustomerAccountDataFields.COLUMN_RESULTS]?: ScoreResultType[];
|
|
21
|
+
[GetCustomerAccountDataFields.COLUMN_SCORES_AGG]?: ScoresAggType;
|
|
22
|
+
[GetCustomerAccountDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggType;
|
|
23
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG]?: StandardsAggType;
|
|
24
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS]?: StandardWithCheckType[];
|
|
25
|
+
};
|
|
26
|
+
export declare type GetCustomerAccountDataGraphQLResultType = {
|
|
27
|
+
[WellArchitectedQueries.GET_CUSTOMER_ACCOUNT_DATA]: GetCustomerAccountDataType;
|
|
28
|
+
};
|
|
29
|
+
export declare class GetCustomerAccountData extends AbstractEntity<GetCustomerAccountDataType> {
|
|
30
|
+
#private;
|
|
31
|
+
constructor(getCustomerAccountDataInput: GetCustomerAccountDataType);
|
|
32
|
+
get checksAgg(): ChecksAggType | undefined;
|
|
33
|
+
get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
|
|
34
|
+
get pagination(): WellArchitectedPaginationType | undefined;
|
|
35
|
+
get period(): WellArchitectedPeriodType | undefined;
|
|
36
|
+
get scoresAgg(): ScoresAggType | undefined;
|
|
37
|
+
get results(): ScoreResultType[] | undefined;
|
|
38
|
+
get severitiesAgg(): SeveritiesAggType | undefined;
|
|
39
|
+
get standardsAgg(): StandardsAggType | undefined;
|
|
40
|
+
get standards(): StandardWithCheckType[] | undefined;
|
|
41
|
+
toJSON(): GetCustomerAccountDataType;
|
|
42
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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_checksAgg, _GetCustomerAccountData_monthlyTrendAgg, _GetCustomerAccountData_pagination, _GetCustomerAccountData_period, _GetCustomerAccountData_results, _GetCustomerAccountData_scoresAgg, _GetCustomerAccountData_severitiesAgg, _GetCustomerAccountData_standardsAgg, _GetCustomerAccountData_standards;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GetCustomerAccountData = exports.GetCustomerAccountDataFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
const queryArguments_1 = require("../types/queryArguments");
|
|
18
|
+
var GetCustomerAccountDataFields;
|
|
19
|
+
(function (GetCustomerAccountDataFields) {
|
|
20
|
+
GetCustomerAccountDataFields["COLUMN_CHECKS_AGG"] = "checksAgg";
|
|
21
|
+
GetCustomerAccountDataFields["COLUMN_MONTHLY_TREND_AGG"] = "monthlyTrendAgg";
|
|
22
|
+
GetCustomerAccountDataFields["COLUMN_PAGINATION"] = "pagination";
|
|
23
|
+
GetCustomerAccountDataFields["COLUMN_PERIOD"] = "period";
|
|
24
|
+
GetCustomerAccountDataFields["COLUMN_RESULTS"] = "results";
|
|
25
|
+
GetCustomerAccountDataFields["COLUMN_SCORES_AGG"] = "scoresAgg";
|
|
26
|
+
GetCustomerAccountDataFields["COLUMN_SEVERITIES_AGG"] = "severitiesAgg";
|
|
27
|
+
GetCustomerAccountDataFields["COLUMN_STANDARDS_AGG"] = "standardsAgg";
|
|
28
|
+
GetCustomerAccountDataFields["COLUMN_STANDARDS"] = "standards";
|
|
29
|
+
})(GetCustomerAccountDataFields = exports.GetCustomerAccountDataFields || (exports.GetCustomerAccountDataFields = {}));
|
|
30
|
+
class GetCustomerAccountData extends abstractEntity_1.AbstractEntity {
|
|
31
|
+
constructor(getCustomerAccountDataInput) {
|
|
32
|
+
super(getCustomerAccountDataInput);
|
|
33
|
+
_GetCustomerAccountData_checksAgg.set(this, void 0);
|
|
34
|
+
_GetCustomerAccountData_monthlyTrendAgg.set(this, void 0);
|
|
35
|
+
_GetCustomerAccountData_pagination.set(this, void 0);
|
|
36
|
+
_GetCustomerAccountData_period.set(this, void 0);
|
|
37
|
+
_GetCustomerAccountData_results.set(this, void 0);
|
|
38
|
+
_GetCustomerAccountData_scoresAgg.set(this, void 0);
|
|
39
|
+
_GetCustomerAccountData_severitiesAgg.set(this, void 0);
|
|
40
|
+
_GetCustomerAccountData_standardsAgg.set(this, void 0);
|
|
41
|
+
_GetCustomerAccountData_standards.set(this, void 0);
|
|
42
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_checksAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_CHECKS_AGG], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_monthlyTrendAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG], "f");
|
|
44
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_pagination, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_PAGINATION], "f");
|
|
45
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_period, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_PERIOD], "f");
|
|
46
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_results, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_RESULTS], "f");
|
|
47
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_scoresAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_SCORES_AGG], "f");
|
|
48
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_severitiesAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_SEVERITIES_AGG], "f");
|
|
49
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_standardsAgg, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG], "f");
|
|
50
|
+
__classPrivateFieldSet(this, _GetCustomerAccountData_standards, getCustomerAccountDataInput[GetCustomerAccountDataFields.COLUMN_STANDARDS], "f");
|
|
51
|
+
}
|
|
52
|
+
get checksAgg() {
|
|
53
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_checksAgg, "f");
|
|
54
|
+
}
|
|
55
|
+
get monthlyTrendAgg() {
|
|
56
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_monthlyTrendAgg, "f");
|
|
57
|
+
}
|
|
58
|
+
get pagination() {
|
|
59
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_pagination, "f");
|
|
60
|
+
}
|
|
61
|
+
get period() {
|
|
62
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_period, "f");
|
|
63
|
+
}
|
|
64
|
+
get scoresAgg() {
|
|
65
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_scoresAgg, "f");
|
|
66
|
+
}
|
|
67
|
+
get results() {
|
|
68
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_results, "f");
|
|
69
|
+
}
|
|
70
|
+
get severitiesAgg() {
|
|
71
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_severitiesAgg, "f");
|
|
72
|
+
}
|
|
73
|
+
get standardsAgg() {
|
|
74
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_standardsAgg, "f");
|
|
75
|
+
}
|
|
76
|
+
get standards() {
|
|
77
|
+
return __classPrivateFieldGet(this, _GetCustomerAccountData_standards, "f");
|
|
78
|
+
}
|
|
79
|
+
toJSON() {
|
|
80
|
+
return {
|
|
81
|
+
[GetCustomerAccountDataFields.COLUMN_CHECKS_AGG]: this.checksAgg,
|
|
82
|
+
[GetCustomerAccountDataFields.COLUMN_MONTHLY_TREND_AGG]: this
|
|
83
|
+
.monthlyTrendAgg,
|
|
84
|
+
[GetCustomerAccountDataFields.COLUMN_PAGINATION]: this.pagination,
|
|
85
|
+
[GetCustomerAccountDataFields.COLUMN_PERIOD]: this.period,
|
|
86
|
+
[GetCustomerAccountDataFields.COLUMN_SCORES_AGG]: this.scoresAgg,
|
|
87
|
+
[GetCustomerAccountDataFields.COLUMN_RESULTS]: this.results,
|
|
88
|
+
[GetCustomerAccountDataFields.COLUMN_SEVERITIES_AGG]: this.severitiesAgg,
|
|
89
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS_AGG]: this.standardsAgg,
|
|
90
|
+
[GetCustomerAccountDataFields.COLUMN_STANDARDS]: this.standards,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.GetCustomerAccountData = GetCustomerAccountData;
|
|
95
|
+
_GetCustomerAccountData_checksAgg = new WeakMap(), _GetCustomerAccountData_monthlyTrendAgg = new WeakMap(), _GetCustomerAccountData_pagination = new WeakMap(), _GetCustomerAccountData_period = new WeakMap(), _GetCustomerAccountData_results = new WeakMap(), _GetCustomerAccountData_scoresAgg = new WeakMap(), _GetCustomerAccountData_severitiesAgg = new WeakMap(), _GetCustomerAccountData_standardsAgg = new WeakMap(), _GetCustomerAccountData_standards = new WeakMap();
|
|
96
|
+
//# sourceMappingURL=getCustomerAccountData.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
import { AccountsAggType, ScoreResultType, MonthlyTrendAggType, SeveritiesAggType, WellArchitectedPaginationType, WellArchitectedPeriodType, ChecksAggType, ScoresAggType, StandardWithCheckType } from '../types/wellArchitectedGraphQLTypes';
|
|
3
|
+
import { WellArchitectedQueries } from '../types/queryArguments';
|
|
4
|
+
export declare enum GetCustomerDataFields {
|
|
5
|
+
COLUMN_ACCOUNTS_AGG = "accountsAgg",
|
|
6
|
+
COLUMN_CHECKS_AGG = "checksAgg",
|
|
7
|
+
COLUMN_MONTHLY_TREND_AGG = "monthlyTrendAgg",
|
|
8
|
+
COLUMN_PAGINATION = "pagination",
|
|
9
|
+
COLUMN_PERIOD = "period",
|
|
10
|
+
COLUMN_RESULTS = "results",
|
|
11
|
+
COLUMN_SCORES_AGG = "scoresAgg",
|
|
12
|
+
COLUMN_SEVERITIES_AGG = "severitiesAgg",
|
|
13
|
+
COLUMN_STANDARDS = "standards",
|
|
14
|
+
COLUMN_SUBSCRIPTION_REFERENCES = "subscriptionReferences"
|
|
15
|
+
}
|
|
16
|
+
export declare type GetCustomerDataType = {
|
|
17
|
+
[GetCustomerDataFields.COLUMN_ACCOUNTS_AGG]?: AccountsAggType;
|
|
18
|
+
[GetCustomerDataFields.COLUMN_CHECKS_AGG]?: ChecksAggType;
|
|
19
|
+
[GetCustomerDataFields.COLUMN_MONTHLY_TREND_AGG]?: MonthlyTrendAggType;
|
|
20
|
+
[GetCustomerDataFields.COLUMN_PAGINATION]?: WellArchitectedPaginationType;
|
|
21
|
+
[GetCustomerDataFields.COLUMN_PERIOD]?: WellArchitectedPeriodType;
|
|
22
|
+
[GetCustomerDataFields.COLUMN_RESULTS]?: ScoreResultType[];
|
|
23
|
+
[GetCustomerDataFields.COLUMN_SCORES_AGG]?: ScoresAggType;
|
|
24
|
+
[GetCustomerDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggType;
|
|
25
|
+
[GetCustomerDataFields.COLUMN_STANDARDS]?: StandardWithCheckType[];
|
|
26
|
+
[GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES]?: number;
|
|
27
|
+
};
|
|
28
|
+
export declare type GetCustomerDataGraphQLResultType = {
|
|
29
|
+
[WellArchitectedQueries.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 checksAgg(): ChecksAggType | undefined;
|
|
36
|
+
get monthlyTrendAgg(): MonthlyTrendAggType | undefined;
|
|
37
|
+
get pagination(): WellArchitectedPaginationType | undefined;
|
|
38
|
+
get period(): WellArchitectedPeriodType | undefined;
|
|
39
|
+
get results(): ScoreResultType[] | undefined;
|
|
40
|
+
get scoresAgg(): ScoresAggType | undefined;
|
|
41
|
+
get severitiesAgg(): SeveritiesAggType | undefined;
|
|
42
|
+
get standards(): StandardWithCheckType[] | undefined;
|
|
43
|
+
get subscriptionReferences(): number | undefined;
|
|
44
|
+
toJSON(): GetCustomerDataType;
|
|
45
|
+
}
|