@arrowsphere/api-client 3.52.1-rc.bdj.1 → 3.53.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/catalog/catalogGraphQLClient.d.ts +3 -1
  3. package/build/catalog/catalogGraphQLClient.js +20 -0
  4. package/build/catalog/types/FindOneProductQueryOutput.d.ts +7 -1
  5. package/build/catalog/types/catalogGraphQLQueries.d.ts +10 -2
  6. package/build/catalog/types/catalogGraphQLSchemas.d.ts +3 -1
  7. package/build/catalog/types/catalogGraphQLTypes.d.ts +16 -0
  8. package/build/catalog/types/queryProductArguments.d.ts +16 -0
  9. package/build/graphqlApi/types/entities/partnertag.d.ts +0 -1
  10. package/build/publicGraphQLClient.d.ts +2 -0
  11. package/build/publicGraphQLClient.js +6 -0
  12. package/build/securityScore/entities/getAdminData.d.ts +16 -0
  13. package/build/securityScore/entities/getAdminData.js +8 -0
  14. package/build/securityScore/entities/getCustomerAccountData.d.ts +16 -0
  15. package/build/securityScore/entities/getCustomerAccountData.js +8 -0
  16. package/build/securityScore/entities/getCustomerData.d.ts +16 -0
  17. package/build/securityScore/entities/getCustomerData.js +8 -0
  18. package/build/securityScore/entities/getPartnerData.d.ts +16 -0
  19. package/build/securityScore/entities/getPartnerData.js +8 -0
  20. package/build/securityScore/securityScoreGraphQLClient.d.ts +4 -0
  21. package/build/securityScore/securityScoreGraphQLClient.js +4 -0
  22. package/build/securityScore/types/queryArguments.d.ts +4 -0
  23. package/build/securityScore/types/queryArguments.js +4 -0
  24. package/build/securityScore/types/securityScoreGraphQLQueries.d.ts +16 -0
  25. package/build/securityScore/types/securityScoreGraphQLSchemas.d.ts +64 -0
  26. package/build/securityScore/types/securityScoreGraphQLTypes.d.ts +188 -0
  27. package/build/wellArchitected/entities/getAdminData.d.ts +42 -0
  28. package/build/wellArchitected/entities/getAdminData.js +95 -0
  29. package/build/wellArchitected/entities/getCustomerAccountData.d.ts +42 -0
  30. package/build/wellArchitected/entities/getCustomerAccountData.js +96 -0
  31. package/build/wellArchitected/entities/getCustomerData.d.ts +45 -0
  32. package/build/wellArchitected/entities/getCustomerData.js +103 -0
  33. package/build/wellArchitected/entities/getPartnerData.d.ts +42 -0
  34. package/build/wellArchitected/entities/getPartnerData.js +95 -0
  35. package/build/wellArchitected/index.d.ts +8 -0
  36. package/build/wellArchitected/index.js +25 -0
  37. package/build/wellArchitected/types/queryArguments.d.ts +109 -0
  38. package/build/wellArchitected/types/queryArguments.js +94 -0
  39. package/build/wellArchitected/types/wellArchitectedGraphQLQueries.d.ts +75 -0
  40. package/build/wellArchitected/types/wellArchitectedGraphQLQueries.js +8 -0
  41. package/build/wellArchitected/types/wellArchitectedGraphQLSchemas.d.ts +125 -0
  42. package/build/wellArchitected/types/wellArchitectedGraphQLSchemas.js +3 -0
  43. package/build/wellArchitected/types/wellArchitectedGraphQLTypes.d.ts +339 -0
  44. package/build/wellArchitected/types/wellArchitectedGraphQLTypes.js +3 -0
  45. package/build/wellArchitected/wellArchitectedGraphQLClient.d.ts +21 -0
  46. package/build/wellArchitected/wellArchitectedGraphQLClient.js +65 -0
  47. package/package.json +1 -1
@@ -0,0 +1,339 @@
1
+ /**
2
+ * Filter Types
3
+ */
4
+ export declare type FilterType = {
5
+ name?: string;
6
+ values?: FilterValuesType[];
7
+ };
8
+ export declare type FilterValuesType = {
9
+ count?: number;
10
+ value?: string;
11
+ };
12
+ export declare type WellArchitectedPaginationType = {
13
+ currentPage?: number;
14
+ next?: string;
15
+ perPage?: number;
16
+ previous?: string;
17
+ total?: number;
18
+ totalPage?: number;
19
+ };
20
+ /**
21
+ * ElasticSearch Types
22
+ */
23
+ export declare type SubscriptionRegistrationType = {
24
+ reference: string;
25
+ };
26
+ export declare type CustomerRegistrationType = {
27
+ name?: string;
28
+ reference?: string;
29
+ };
30
+ export declare type ResellerRegistrationType = {
31
+ name?: string;
32
+ reference?: string;
33
+ };
34
+ export declare type RegistrationType = {
35
+ accountReference?: string;
36
+ customer?: CustomerRegistrationType;
37
+ marketplace?: string;
38
+ reseller?: ResellerRegistrationType;
39
+ subscription?: SubscriptionRegistrationType;
40
+ vendorCode?: string;
41
+ };
42
+ export declare type CheckType = {
43
+ description?: string;
44
+ flagged?: number;
45
+ group?: string;
46
+ isFailed?: boolean;
47
+ name?: string;
48
+ processed?: number;
49
+ reference?: string;
50
+ score?: number;
51
+ severity?: string;
52
+ };
53
+ export declare type StandardType = {
54
+ currentScore?: number;
55
+ checks?: CheckType[];
56
+ failed?: number;
57
+ maxScore?: number;
58
+ name?: string;
59
+ passed?: number;
60
+ reference?: string;
61
+ score?: number;
62
+ total?: number;
63
+ };
64
+ export declare type AccountType = {
65
+ failed?: number;
66
+ name?: string;
67
+ passed?: number;
68
+ reference?: string;
69
+ score?: number;
70
+ standards?: StandardType[];
71
+ total?: number;
72
+ };
73
+ export declare type ScoreResultType = {
74
+ account?: AccountType;
75
+ registration?: RegistrationType;
76
+ };
77
+ /**
78
+ * Generic Types
79
+ */
80
+ export declare type WellArchitectedPeriodType = {
81
+ from?: string;
82
+ to?: string;
83
+ };
84
+ /**
85
+ * Severity Aggregation Types
86
+ */
87
+ export declare type SeverityByDateAggType = {
88
+ date: string;
89
+ value: number;
90
+ };
91
+ export declare type SeverityAggType = {
92
+ data: SeverityByDateAggType[];
93
+ last: SeverityByDateAggType;
94
+ name: string;
95
+ progression: number;
96
+ };
97
+ export declare type SeveritiesAggType = {
98
+ severities: SeverityAggType[];
99
+ };
100
+ /**
101
+ * Check Aggregation Types
102
+ */
103
+ export declare type CheckCountByDateAggType = {
104
+ accounts?: number;
105
+ count?: number;
106
+ customers?: number;
107
+ date?: string;
108
+ partners?: number;
109
+ };
110
+ export declare type CheckAggType = {
111
+ data?: CheckCountByDateAggType[];
112
+ last?: CheckCountByDateAggType;
113
+ name?: string;
114
+ progression?: number;
115
+ reference?: string;
116
+ vendorCode?: string;
117
+ };
118
+ export declare type ChecksAggType = {
119
+ checks: CheckAggType[];
120
+ };
121
+ /**
122
+ * Subscription Aggregation Types
123
+ */
124
+ export declare type SubscriptionAggType = {
125
+ reference: string;
126
+ updatedAt: string;
127
+ };
128
+ export declare type SubscriptionsAggType = {
129
+ count: number;
130
+ subscriptions: SubscriptionAggType[];
131
+ };
132
+ /**
133
+ * EndCustomer Aggregation Types
134
+ */
135
+ export declare type EndCustomerByDateAggType = {
136
+ accounts?: number;
137
+ date?: string;
138
+ failed?: number;
139
+ name?: string;
140
+ passed?: number;
141
+ score?: number;
142
+ scoreUnit?: string;
143
+ subscriptionReferences?: number;
144
+ total?: number;
145
+ };
146
+ export declare type EndCustomerAggType = {
147
+ data?: EndCustomerByDateAggType[];
148
+ last?: EndCustomerByDateAggType;
149
+ name?: string;
150
+ progression?: number;
151
+ reference?: string;
152
+ };
153
+ export declare type UnregisteredOfferIaasSubscriptionType = {
154
+ partnerRef?: string;
155
+ friendlyName?: string;
156
+ vendorSubscriptionId?: string;
157
+ };
158
+ export declare type UnregisteredOfferIaasType = {
159
+ sku?: string;
160
+ name?: string;
161
+ subscriptions?: UnregisteredOfferIaasSubscriptionType[];
162
+ };
163
+ export declare type UnregisteredOfferSaasType = {
164
+ name?: string;
165
+ subscription?: string;
166
+ };
167
+ export declare type UnregisteredOffersType = {
168
+ iaas?: UnregisteredOfferIaasType[];
169
+ saas?: UnregisteredOfferSaasType[];
170
+ };
171
+ export declare type UnregisteredEndCustomerAggType = {
172
+ name?: string;
173
+ reference?: string;
174
+ offers?: UnregisteredOffersType;
175
+ };
176
+ export declare type EndCustomersAggType = {
177
+ customers?: EndCustomerAggType[];
178
+ unregisteredCustomers?: UnregisteredEndCustomerAggType[];
179
+ };
180
+ /**
181
+ * Partners Aggregation Types
182
+ */
183
+ export declare type PartnerByDateAggType = {
184
+ date?: string;
185
+ failed?: number;
186
+ name?: string;
187
+ passed?: number;
188
+ score?: number;
189
+ scoreUnit?: string;
190
+ total?: number;
191
+ };
192
+ export declare type PartnerAggType = {
193
+ data?: PartnerByDateAggType[];
194
+ last?: PartnerByDateAggType;
195
+ name?: string;
196
+ progression?: number;
197
+ reference?: string;
198
+ };
199
+ export declare type PartnersAggType = {
200
+ partners?: PartnerAggType[];
201
+ };
202
+ /**
203
+ * Monthly Aggregation Types
204
+ */
205
+ export declare type ScoreByMonthSeverityType = {
206
+ name: string;
207
+ value: number;
208
+ };
209
+ export declare type ScoreByMonthAggType = {
210
+ date: string;
211
+ score?: number;
212
+ scoreUnit?: string;
213
+ severities?: ScoreByMonthSeverityType[];
214
+ };
215
+ export declare type MonthlyTrendAggType = {
216
+ period?: WellArchitectedPeriodType;
217
+ score?: number;
218
+ scores?: ScoreByMonthAggType[];
219
+ scoreUnit?: string;
220
+ };
221
+ /**
222
+ * Score Aggregation Types
223
+ */
224
+ export declare type ScoreByDateAggType = {
225
+ date?: string;
226
+ failed?: number;
227
+ passed?: number;
228
+ score?: number;
229
+ scoreUnit?: string;
230
+ total?: number;
231
+ };
232
+ export declare type ScoresAggType = {
233
+ last?: ScoreByDateAggType;
234
+ progression?: number;
235
+ scores?: ScoreByDateAggType[];
236
+ };
237
+ /**
238
+ * Account Aggregation Types
239
+ */
240
+ export declare type AccountByDateAggType = {
241
+ date?: string;
242
+ failed?: number;
243
+ name?: string;
244
+ passed?: number;
245
+ score?: number;
246
+ scoreUnit?: string;
247
+ total?: number;
248
+ };
249
+ export declare type AccountAggType = {
250
+ data?: AccountByDateAggType[];
251
+ last?: AccountByDateAggType;
252
+ name?: string;
253
+ progression?: number;
254
+ reference?: string;
255
+ };
256
+ export declare type AccountsAggType = {
257
+ accounts?: AccountAggType[];
258
+ unregisteredAccounts?: UnregisteredOffersType;
259
+ };
260
+ /**
261
+ * Standard Aggregation Types
262
+ */
263
+ export declare type StandardByDateAggType = {
264
+ date?: string;
265
+ failed?: number;
266
+ passed?: number;
267
+ score?: number;
268
+ scoreUnit?: string;
269
+ total?: number;
270
+ };
271
+ export declare type StandardAggType = {
272
+ data?: StandardByDateAggType[];
273
+ last?: StandardByDateAggType;
274
+ name?: string;
275
+ progression?: number;
276
+ reference?: string;
277
+ };
278
+ export declare type StandardsAggType = {
279
+ standards: StandardAggType[];
280
+ };
281
+ /**
282
+ * Marketplace Aggregation Types
283
+ */
284
+ export declare type MarketplacePartnerAggByDateAggType = {
285
+ date?: string;
286
+ failed?: number;
287
+ passed?: number;
288
+ score?: number;
289
+ scoreUnit?: string;
290
+ total?: number;
291
+ };
292
+ export declare type MarketplaceByDateAggType = {
293
+ date?: string;
294
+ score?: number;
295
+ scoreUnit?: string;
296
+ };
297
+ export declare type MarketplacePartnerAggType = {
298
+ data?: MarketplacePartnerAggByDateAggType[];
299
+ last?: MarketplacePartnerAggByDateAggType;
300
+ name?: string;
301
+ reference?: string;
302
+ progression?: number;
303
+ };
304
+ export declare type MarketplaceAggType = {
305
+ data?: MarketplaceByDateAggType[];
306
+ last?: MarketplaceByDateAggType;
307
+ name?: string;
308
+ partners?: MarketplacePartnerAggType[];
309
+ progression?: number;
310
+ };
311
+ export declare type MarketplacesAggType = {
312
+ marketplaces: MarketplaceAggType[];
313
+ };
314
+ /**
315
+ * Standard with Check Types
316
+ */
317
+ export declare type CheckByDateType = {
318
+ date?: string;
319
+ flagged?: number;
320
+ isFailed?: boolean;
321
+ name?: string;
322
+ processed?: number;
323
+ score?: number;
324
+ scoreUnit?: string;
325
+ };
326
+ export declare type ChecksByStandardType = {
327
+ data?: CheckByDateType[];
328
+ description?: string;
329
+ last?: CheckByDateType;
330
+ name?: string;
331
+ progression?: number;
332
+ reference?: string;
333
+ severity?: string;
334
+ };
335
+ export declare type StandardWithCheckType = {
336
+ checks: ChecksByStandardType[];
337
+ name?: string;
338
+ reference?: string;
339
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=wellArchitectedGraphQLTypes.js.map
@@ -0,0 +1,21 @@
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, GetAdminDataQuery } from './types/wellArchitectedGraphQLQueries';
6
+ import { GetAdminDataType } from './entities/getAdminData';
7
+ export declare class WellArchitectedGraphQLClient extends AbstractGraphQLClient {
8
+ /**
9
+ * The base path of the API
10
+ */
11
+ protected basePath: string;
12
+ /**
13
+ * The Path of graphql catalog API
14
+ */
15
+ private GRAPHQL;
16
+ find<GraphQLResponseTypes>(request: string): Promise<GraphQLResponseTypes | null>;
17
+ getPartnerData(getPartnerDataQuery: GetPartnerDataQuery): Promise<GetPartnerDataType | null>;
18
+ getAdminData(getAdminDataQuery: GetAdminDataQuery): Promise<GetAdminDataType | null>;
19
+ getCustomerData(getCustomerDataQuery: GetCustomerDataQuery): Promise<GetCustomerDataType | null>;
20
+ getCustomerAccountData(getCustomerAccountDataQuery: GetCustomerAccountDataQuery): Promise<GetCustomerAccountDataType | null>;
21
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WellArchitectedGraphQLClient = 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
+ const getAdminData_1 = require("./entities/getAdminData");
10
+ class WellArchitectedGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
11
+ constructor() {
12
+ super(...arguments);
13
+ /**
14
+ * The base path of the API
15
+ */
16
+ this.basePath = '/wellArchitected';
17
+ /**
18
+ * The Path of graphql catalog API
19
+ */
20
+ this.GRAPHQL = '/graphql/score';
21
+ }
22
+ async find(request) {
23
+ this.path = this.GRAPHQL;
24
+ try {
25
+ return await this.post(request);
26
+ }
27
+ catch (error) {
28
+ return null;
29
+ }
30
+ }
31
+ async getPartnerData(getPartnerDataQuery) {
32
+ const queryStr = this.stringifyQuery(getPartnerDataQuery);
33
+ const getPartnerDataResult = await this.find(queryStr);
34
+ if (getPartnerDataResult) {
35
+ return new getPartnerData_1.GetPartnerData(getPartnerDataResult[queryArguments_1.WellArchitectedQueries.GET_PARTNER_DATA]).toJSON();
36
+ }
37
+ return null;
38
+ }
39
+ async getAdminData(getAdminDataQuery) {
40
+ const queryStr = this.stringifyQuery(getAdminDataQuery);
41
+ const getAdminDataResult = await this.find(queryStr);
42
+ if (getAdminDataResult) {
43
+ return new getAdminData_1.GetAdminData(getAdminDataResult[queryArguments_1.WellArchitectedQueries.GET_ADMIN_DATA]).toJSON();
44
+ }
45
+ return null;
46
+ }
47
+ async getCustomerData(getCustomerDataQuery) {
48
+ const queryStr = this.stringifyQuery(getCustomerDataQuery);
49
+ const getCustomerDataResult = await this.find(queryStr);
50
+ if (getCustomerDataResult) {
51
+ return new getCustomerData_1.GetCustomerData(getCustomerDataResult[queryArguments_1.WellArchitectedQueries.GET_CUSTOMER_DATA]).toJSON();
52
+ }
53
+ return null;
54
+ }
55
+ async getCustomerAccountData(getCustomerAccountDataQuery) {
56
+ const queryStr = this.stringifyQuery(getCustomerAccountDataQuery);
57
+ const getCustomerAccountDataResult = await this.find(queryStr);
58
+ if (getCustomerAccountDataResult) {
59
+ return new getCustomerAccountData_1.GetCustomerAccountData(getCustomerAccountDataResult[queryArguments_1.WellArchitectedQueries.GET_CUSTOMER_ACCOUNT_DATA]).toJSON();
60
+ }
61
+ return null;
62
+ }
63
+ }
64
+ exports.WellArchitectedGraphQLClient = WellArchitectedGraphQLClient;
65
+ //# sourceMappingURL=wellArchitectedGraphQLClient.js.map
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.52.1-rc.bdj.1",
7
+ "version": "3.53.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",