@arrowsphere/api-client 3.55.0-rc.fdi.7 → 3.56.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 +12 -0
- package/build/abstractGraphQLClient.d.ts +1 -6
- package/build/abstractGraphQLClient.js +3 -18
- package/build/graphqlApi/types/entities/partnertag.d.ts +1 -0
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +3 -1
- package/build/graphqlApi/types/graphqlApiQueries.js +1 -0
- package/build/index.d.ts +2 -1
- package/build/index.js +3 -2
- package/build/publicApiClient.d.ts +12 -2
- package/build/publicApiClient.js +21 -3
- package/build/publicGraphQLClient.d.ts +6 -9
- package/build/publicGraphQLClient.js +9 -18
- package/build/security/register/registerClient.d.ts +16 -0
- package/build/security/register/registerClient.js +16 -0
- package/build/security/standards/standardsClient.d.ts +12 -0
- package/build/security/standards/standardsClient.js +12 -0
- package/build/wellArchitected/index.d.ts +2 -0
- package/build/wellArchitected/index.js +2 -0
- package/build/wellArchitected/register/entity/registrationLink.d.ts +13 -0
- package/build/wellArchitected/register/entity/registrationLink.js +38 -0
- package/build/wellArchitected/register/index.d.ts +2 -0
- package/build/{account → wellArchitected/register}/index.js +2 -3
- package/build/wellArchitected/register/registerClient.d.ts +13 -0
- package/build/wellArchitected/register/registerClient.js +33 -0
- package/build/wellArchitected/standards/entities/checks/checks.d.ts +17 -0
- package/build/wellArchitected/standards/entities/checks/checks.js +46 -0
- package/build/wellArchitected/standards/entities/checks/securityChecks.d.ts +37 -0
- package/build/wellArchitected/standards/entities/checks/securityChecks.js +94 -0
- package/build/wellArchitected/standards/entities/resources/resources.d.ts +17 -0
- package/build/wellArchitected/standards/entities/resources/resources.js +46 -0
- package/build/wellArchitected/standards/entities/resources/securityResources.d.ts +16 -0
- package/build/wellArchitected/standards/entities/resources/securityResources.js +45 -0
- package/build/wellArchitected/standards/entities/standards/securityStandards.d.ts +28 -0
- package/build/wellArchitected/standards/entities/standards/securityStandards.js +73 -0
- package/build/wellArchitected/standards/entities/standards/standards.d.ts +17 -0
- package/build/wellArchitected/standards/entities/standards/standards.js +46 -0
- package/build/wellArchitected/standards/index.d.ts +7 -0
- package/build/wellArchitected/standards/index.js +24 -0
- package/build/wellArchitected/standards/standardsClient.d.ts +14 -0
- package/build/wellArchitected/standards/standardsClient.js +31 -0
- package/package.json +1 -1
- package/build/account/accountGraphQLClient.d.ts +0 -10
- package/build/account/accountGraphQLClient.js +0 -27
- package/build/account/index.d.ts +0 -3
- package/build/account/types/accountGraphQLQueries.d.ts +0 -43
- package/build/account/types/accountGraphQLQueries.js +0 -3
- package/build/account/types/accountGraphQLSchemas.d.ts +0 -34
- package/build/account/types/accountGraphQLSchemas.js +0 -3
- package/build/account/types/accountGraphQLTypes.d.ts +0 -66
- package/build/account/types/accountGraphQLTypes.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.56.0] - 2023-10-05
|
|
8
|
+
- The **security** endpoint is now considered deprecrated.
|
|
9
|
+
- Add the **register** and **standards** functions that used the **security** endpoint in the wellArchitected one.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## [3.55.0] - 2023-09-25
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- update graphql-api spec, add field labelsSeralized
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [3.54.0] - 2023-09-21
|
|
7
19
|
|
|
8
20
|
### Changed
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { GraphQLClient } from 'graphql-request';
|
|
2
2
|
import * as Dom from 'graphql-request/dist/types.dom';
|
|
3
|
-
import { Options
|
|
3
|
+
import { Options } from './abstractRestfulClient';
|
|
4
4
|
import { GetProductsType } from './catalog';
|
|
5
5
|
import { AbstractHttpClient } from './AbstractHttpClient';
|
|
6
6
|
export declare type GraphQLResponseTypes = GetProductsType;
|
|
7
|
-
export declare type ConfigurationsGraphQLClient = {
|
|
8
|
-
[ParameterKeys.IS_LOGGING]?: boolean;
|
|
9
|
-
};
|
|
10
7
|
export declare abstract class AbstractGraphQLClient extends AbstractHttpClient {
|
|
11
8
|
/**
|
|
12
9
|
* Must not be called directly.
|
|
@@ -15,8 +12,6 @@ export declare abstract class AbstractGraphQLClient extends AbstractHttpClient {
|
|
|
15
12
|
protected graphQLClient: GraphQLClient;
|
|
16
13
|
protected optionsHeader?: Dom.RequestInit['headers'];
|
|
17
14
|
protected options: Options;
|
|
18
|
-
protected isLogging: boolean;
|
|
19
|
-
constructor(configuration?: ConfigurationsGraphQLClient);
|
|
20
15
|
private getClientInstance;
|
|
21
16
|
setOptions(options: Options): this;
|
|
22
17
|
protected post<GraphQLResponseTypes>(query: string): Promise<GraphQLResponseTypes>;
|
|
@@ -25,17 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.AbstractGraphQLClient = void 0;
|
|
27
27
|
const graphql_request_1 = require("graphql-request");
|
|
28
|
-
const abstractRestfulClient_1 = require("./abstractRestfulClient");
|
|
29
28
|
const path = __importStar(require("path"));
|
|
30
29
|
const json_to_graphql_query_1 = require("json-to-graphql-query");
|
|
31
30
|
const AbstractHttpClient_1 = require("./AbstractHttpClient");
|
|
32
31
|
class AbstractGraphQLClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
33
|
-
constructor(
|
|
34
|
-
super();
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
35
34
|
this.options = {};
|
|
36
|
-
this.isLogging = configuration
|
|
37
|
-
? !!configuration[abstractRestfulClient_1.ParameterKeys.IS_LOGGING]
|
|
38
|
-
: false;
|
|
39
35
|
}
|
|
40
36
|
getClientInstance() {
|
|
41
37
|
var _a;
|
|
@@ -48,20 +44,9 @@ class AbstractGraphQLClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
48
44
|
async post(query) {
|
|
49
45
|
try {
|
|
50
46
|
this.applyHeaders();
|
|
51
|
-
|
|
52
|
-
console.info('GRAPHQL - Instance : ', this.getClientInstance());
|
|
53
|
-
console.info('GRAPHQL - Query : ', query);
|
|
54
|
-
}
|
|
55
|
-
const response = await this.getClientInstance().request(query);
|
|
56
|
-
if (this.isLogging) {
|
|
57
|
-
console.info('GRAPHQL - Response : ', response);
|
|
58
|
-
}
|
|
59
|
-
return response;
|
|
47
|
+
return await this.getClientInstance().request(query);
|
|
60
48
|
}
|
|
61
49
|
catch (error) {
|
|
62
|
-
if (this.isLogging) {
|
|
63
|
-
console.info('GRAPHQL - Error : ', error);
|
|
64
|
-
}
|
|
65
50
|
const exception = this.mapToPublicApiException(error);
|
|
66
51
|
const { mustRetry } = await this.handleError(exception);
|
|
67
52
|
if (mustRetry) {
|
|
@@ -77,13 +77,15 @@ export declare enum InputFilterValueField {
|
|
|
77
77
|
NAME = "name",
|
|
78
78
|
OPERATOR = "operator",
|
|
79
79
|
VALUE = "value",
|
|
80
|
-
EXCLUSION = "exclusion"
|
|
80
|
+
EXCLUSION = "exclusion",
|
|
81
|
+
HAVING = "having"
|
|
81
82
|
}
|
|
82
83
|
export declare type InputFilterValueType = {
|
|
83
84
|
[InputFilterValueField.NAME]?: string;
|
|
84
85
|
[InputFilterValueField.OPERATOR]?: ComparisonOperator;
|
|
85
86
|
[InputFilterValueField.VALUE]?: string[];
|
|
86
87
|
[InputFilterValueField.EXCLUSION]?: boolean;
|
|
88
|
+
[InputFilterValueField.HAVING]?: boolean;
|
|
87
89
|
};
|
|
88
90
|
export declare enum InputQueryOptionsField {
|
|
89
91
|
SKIP_PARTITION = "skipPartition"
|
|
@@ -69,6 +69,7 @@ var InputFilterValueField;
|
|
|
69
69
|
InputFilterValueField["OPERATOR"] = "operator";
|
|
70
70
|
InputFilterValueField["VALUE"] = "value";
|
|
71
71
|
InputFilterValueField["EXCLUSION"] = "exclusion";
|
|
72
|
+
InputFilterValueField["HAVING"] = "having";
|
|
72
73
|
})(InputFilterValueField = exports.InputFilterValueField || (exports.InputFilterValueField = {}));
|
|
73
74
|
var InputQueryOptionsField;
|
|
74
75
|
(function (InputQueryOptionsField) {
|
package/build/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from './axiosSingleton';
|
|
|
2
2
|
export * from './abstractRestfulClient';
|
|
3
3
|
export * from './abstractEntity';
|
|
4
4
|
export * from './abstractGraphQLClient';
|
|
5
|
-
export * from './account/';
|
|
6
5
|
export * from './campaign/';
|
|
7
6
|
export * from './cart/';
|
|
8
7
|
export * from './catalog/';
|
|
@@ -24,5 +23,7 @@ export * from './subscriptions/';
|
|
|
24
23
|
export * from './supportCenter/';
|
|
25
24
|
export * from './securityScore/';
|
|
26
25
|
export * from './user/';
|
|
26
|
+
export { WellArchitected };
|
|
27
|
+
import * as WellArchitected from './wellArchitected';
|
|
27
28
|
export { ContactInformation };
|
|
28
29
|
import * as ContactInformation from './contact';
|
package/build/index.js
CHANGED
|
@@ -26,12 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ContactInformation = void 0;
|
|
29
|
+
exports.ContactInformation = exports.WellArchitected = void 0;
|
|
30
30
|
__exportStar(require("./axiosSingleton"), exports);
|
|
31
31
|
__exportStar(require("./abstractRestfulClient"), exports);
|
|
32
32
|
__exportStar(require("./abstractEntity"), exports);
|
|
33
33
|
__exportStar(require("./abstractGraphQLClient"), exports);
|
|
34
|
-
__exportStar(require("./account/"), exports);
|
|
35
34
|
__exportStar(require("./campaign/"), exports);
|
|
36
35
|
__exportStar(require("./cart/"), exports);
|
|
37
36
|
__exportStar(require("./catalog/"), exports);
|
|
@@ -53,6 +52,8 @@ __exportStar(require("./subscriptions/"), exports);
|
|
|
53
52
|
__exportStar(require("./supportCenter/"), exports);
|
|
54
53
|
__exportStar(require("./securityScore/"), exports);
|
|
55
54
|
__exportStar(require("./user/"), exports);
|
|
55
|
+
const WellArchitected = __importStar(require("./wellArchitected"));
|
|
56
|
+
exports.WellArchitected = WellArchitected;
|
|
56
57
|
const ContactInformation = __importStar(require("./contact"));
|
|
57
58
|
exports.ContactInformation = ContactInformation;
|
|
58
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,13 +7,13 @@ import { OrdersClient } from './orders';
|
|
|
7
7
|
import { ContactClient } from './contact';
|
|
8
8
|
import { CampaignClient } from './campaign';
|
|
9
9
|
import { ConsumptionClient } from './consumption';
|
|
10
|
-
import {
|
|
11
|
-
import { RegisterClient } from './security';
|
|
10
|
+
import { WellArchitectedRegisterClient, WellArchitectedStandardsClient } from './wellArchitected';
|
|
12
11
|
import { CartClient } from './cart/cartClient';
|
|
13
12
|
import { SupportCenterClient } from './supportCenter';
|
|
14
13
|
import { CatalogClient } from './catalog';
|
|
15
14
|
import { UserClient } from './user';
|
|
16
15
|
import { NotificationsClient } from './notifications';
|
|
16
|
+
import { RegisterClient, StandardsClient } from './security';
|
|
17
17
|
/**
|
|
18
18
|
* Public API Client class, should be the main entry point for your calls
|
|
19
19
|
*/
|
|
@@ -61,8 +61,18 @@ export declare class PublicApiClient extends AbstractRestfulClient {
|
|
|
61
61
|
*/
|
|
62
62
|
getCampaignClient(configuration?: ConfigurationsClient): CampaignClient;
|
|
63
63
|
getConsumptionClient(configuration?: ConfigurationsClient): ConsumptionClient;
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated
|
|
66
|
+
* Prefer using getWellArchitectedStandardsClient
|
|
67
|
+
*/
|
|
64
68
|
getSecurityStandardsClient(configuration?: ConfigurationsClient): StandardsClient;
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated
|
|
71
|
+
* Prefer using getWellArchitectedRegisterClient
|
|
72
|
+
*/
|
|
65
73
|
getSecurityRegisterClient(configuration?: ConfigurationsClient): RegisterClient;
|
|
74
|
+
getWellArchitectedStandardsClient(configuration?: ConfigurationsClient): WellArchitectedStandardsClient;
|
|
75
|
+
getWellArchitectedRegisterClient(configuration?: ConfigurationsClient): WellArchitectedRegisterClient;
|
|
66
76
|
getCartClient(configuration?: ConfigurationsClient): CartClient;
|
|
67
77
|
getSupportCenterClient(configuration?: ConfigurationsClient): SupportCenterClient;
|
|
68
78
|
getCatalogClient(configuration?: ConfigurationsClient): CatalogClient;
|
package/build/publicApiClient.js
CHANGED
|
@@ -10,13 +10,13 @@ const orders_1 = require("./orders");
|
|
|
10
10
|
const contact_1 = require("./contact");
|
|
11
11
|
const campaign_1 = require("./campaign");
|
|
12
12
|
const consumption_1 = require("./consumption");
|
|
13
|
-
const
|
|
14
|
-
const security_1 = require("./security");
|
|
13
|
+
const wellArchitected_1 = require("./wellArchitected");
|
|
15
14
|
const cartClient_1 = require("./cart/cartClient");
|
|
16
15
|
const supportCenter_1 = require("./supportCenter");
|
|
17
16
|
const catalog_1 = require("./catalog");
|
|
18
17
|
const user_1 = require("./user");
|
|
19
18
|
const notifications_1 = require("./notifications");
|
|
19
|
+
const security_1 = require("./security");
|
|
20
20
|
/**
|
|
21
21
|
* Public API Client class, should be the main entry point for your calls
|
|
22
22
|
*/
|
|
@@ -109,16 +109,34 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
109
109
|
this.applyConfig(client);
|
|
110
110
|
return client;
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated
|
|
114
|
+
* Prefer using getWellArchitectedStandardsClient
|
|
115
|
+
*/
|
|
112
116
|
getSecurityStandardsClient(configuration) {
|
|
113
|
-
const client = new
|
|
117
|
+
const client = new security_1.StandardsClient(configuration);
|
|
114
118
|
this.applyConfig(client);
|
|
115
119
|
return client;
|
|
116
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated
|
|
123
|
+
* Prefer using getWellArchitectedRegisterClient
|
|
124
|
+
*/
|
|
117
125
|
getSecurityRegisterClient(configuration) {
|
|
118
126
|
const client = new security_1.RegisterClient(configuration);
|
|
119
127
|
this.applyConfig(client);
|
|
120
128
|
return client;
|
|
121
129
|
}
|
|
130
|
+
getWellArchitectedStandardsClient(configuration) {
|
|
131
|
+
const client = new wellArchitected_1.WellArchitectedStandardsClient(configuration);
|
|
132
|
+
this.applyConfig(client);
|
|
133
|
+
return client;
|
|
134
|
+
}
|
|
135
|
+
getWellArchitectedRegisterClient(configuration) {
|
|
136
|
+
const client = new wellArchitected_1.WellArchitectedRegisterClient(configuration);
|
|
137
|
+
this.applyConfig(client);
|
|
138
|
+
return client;
|
|
139
|
+
}
|
|
122
140
|
getCartClient(configuration) {
|
|
123
141
|
const client = new cartClient_1.CartClient(configuration);
|
|
124
142
|
this.applyConfig(client);
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { CatalogGraphQLClient } from './catalog';
|
|
2
|
-
import { AbstractGraphQLClient
|
|
1
|
+
import { CatalogGraphQLClient } from './catalog/catalogGraphQLClient';
|
|
2
|
+
import { AbstractGraphQLClient } from './abstractGraphQLClient';
|
|
3
3
|
import { SecurityScoreGraphQLClient } from './securityScore';
|
|
4
4
|
import { GraphqlApiClient } from './graphqlApi';
|
|
5
5
|
import { WellArchitectedGraphQLClient } from './wellArchitected';
|
|
6
|
-
import { AccountGraphQLClient } from './account';
|
|
7
6
|
export declare class PublicGraphQLClient extends AbstractGraphQLClient {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
getGraphqlApiClient(configuration?: ConfigurationsGraphQLClient): GraphqlApiClient;
|
|
13
|
-
getGraphqlAccountClient(configuration?: ConfigurationsGraphQLClient): AccountGraphQLClient;
|
|
7
|
+
getCatalogGraphQLClient(): CatalogGraphQLClient;
|
|
8
|
+
getSecurityScoreGraphQLClient(): SecurityScoreGraphQLClient;
|
|
9
|
+
getWellArchitectedGraphQLClient(): WellArchitectedGraphQLClient;
|
|
10
|
+
getGraphqlApiClient(): GraphqlApiClient;
|
|
14
11
|
private applyConfig;
|
|
15
12
|
}
|
|
@@ -1,38 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PublicGraphQLClient = void 0;
|
|
4
|
-
const
|
|
4
|
+
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
8
|
const wellArchitected_1 = require("./wellArchitected");
|
|
9
|
-
const account_1 = require("./account");
|
|
10
9
|
class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
getCatalogGraphQLClient(configuration) {
|
|
15
|
-
const client = new catalog_1.CatalogGraphQLClient(configuration);
|
|
16
|
-
this.applyConfig(client);
|
|
17
|
-
return client;
|
|
18
|
-
}
|
|
19
|
-
getSecurityScoreGraphQLClient(configuration) {
|
|
20
|
-
const client = new securityScore_1.SecurityScoreGraphQLClient(configuration);
|
|
10
|
+
getCatalogGraphQLClient() {
|
|
11
|
+
const client = new catalogGraphQLClient_1.CatalogGraphQLClient();
|
|
21
12
|
this.applyConfig(client);
|
|
22
13
|
return client;
|
|
23
14
|
}
|
|
24
|
-
|
|
25
|
-
const client = new
|
|
15
|
+
getSecurityScoreGraphQLClient() {
|
|
16
|
+
const client = new securityScore_1.SecurityScoreGraphQLClient();
|
|
26
17
|
this.applyConfig(client);
|
|
27
18
|
return client;
|
|
28
19
|
}
|
|
29
|
-
|
|
30
|
-
const client = new
|
|
20
|
+
getWellArchitectedGraphQLClient() {
|
|
21
|
+
const client = new wellArchitected_1.WellArchitectedGraphQLClient();
|
|
31
22
|
this.applyConfig(client);
|
|
32
23
|
return client;
|
|
33
24
|
}
|
|
34
|
-
|
|
35
|
-
const client = new
|
|
25
|
+
getGraphqlApiClient() {
|
|
26
|
+
const client = new graphqlApi_1.GraphqlApiClient();
|
|
36
27
|
this.applyConfig(client);
|
|
37
28
|
return client;
|
|
38
29
|
}
|
|
@@ -6,8 +6,24 @@ export declare class RegisterClient extends AbstractRestfulClient {
|
|
|
6
6
|
* The base path of the API
|
|
7
7
|
*/
|
|
8
8
|
protected basePath: string;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
* Prefer using the wellArchitected version
|
|
12
|
+
*/
|
|
9
13
|
register(subscriptionReference: string, parameters?: Parameters): Promise<GetResult<RegistrationLink>>;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
* Prefer using the wellArchitected version
|
|
17
|
+
*/
|
|
10
18
|
deregister(subscriptionReference: string, parameters?: Parameters): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
* Prefer using the wellArchitected version
|
|
22
|
+
*/
|
|
11
23
|
checkRegister(subscriptionReference: string, parameters?: Parameters): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated
|
|
26
|
+
* Prefer using the wellArchitected version
|
|
27
|
+
*/
|
|
12
28
|
triggerAsynchronousUpdate(subscriptionReference: string, parameters?: Parameters): Promise<void>;
|
|
13
29
|
}
|
|
@@ -12,18 +12,34 @@ class RegisterClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
12
12
|
*/
|
|
13
13
|
this.basePath = '/security';
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
* Prefer using the wellArchitected version
|
|
18
|
+
*/
|
|
15
19
|
async register(subscriptionReference, parameters = {}) {
|
|
16
20
|
this.path = `/${subscriptionReference}/register`;
|
|
17
21
|
return new getResult_1.GetResult(registrationLink_1.RegistrationLink, await this.post(parameters));
|
|
18
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* Prefer using the wellArchitected version
|
|
26
|
+
*/
|
|
19
27
|
async deregister(subscriptionReference, parameters = {}) {
|
|
20
28
|
this.path = `/${subscriptionReference}/deregister`;
|
|
21
29
|
return await this.post(parameters);
|
|
22
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
* Prefer using the wellArchitected version
|
|
34
|
+
*/
|
|
23
35
|
async checkRegister(subscriptionReference, parameters = {}) {
|
|
24
36
|
this.path = `/${subscriptionReference}/register/check`;
|
|
25
37
|
return await this.get(parameters);
|
|
26
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated
|
|
41
|
+
* Prefer using the wellArchitected version
|
|
42
|
+
*/
|
|
27
43
|
async triggerAsynchronousUpdate(subscriptionReference, parameters = {}) {
|
|
28
44
|
this.path = `/${subscriptionReference}/update`;
|
|
29
45
|
return await this.post(parameters);
|
|
@@ -13,17 +13,29 @@ export declare class StandardsClient extends AbstractRestfulClient {
|
|
|
13
13
|
* Prefer using listSecurityStandardsWithAccountReference
|
|
14
14
|
*/
|
|
15
15
|
listSecurityStandards(subscriptionReference: string, parameters?: Parameters): Promise<GetResult<Standards>>;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
* Prefer using the wellArchitected version
|
|
19
|
+
*/
|
|
16
20
|
listSecurityStandardsWithAccountReference(subscriptionReference: string, parameters: Parameters | undefined, accountReference: string): Promise<GetResult<Standards>>;
|
|
17
21
|
/**
|
|
18
22
|
* @deprecated
|
|
19
23
|
* Prefer using listSecurityChecksWithAccountReference
|
|
20
24
|
*/
|
|
21
25
|
listSecurityChecks(subscriptionReference: string, standardReference: string, parameters?: Parameters): Promise<GetResult<Checks>>;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
* Prefer using the wellArchitected version
|
|
29
|
+
*/
|
|
22
30
|
listSecurityChecksWithAccountReference(subscriptionReference: string, standardReference: string, accountReference: string, parameters?: Parameters): Promise<GetResult<Checks>>;
|
|
23
31
|
/**
|
|
24
32
|
* @deprecated
|
|
25
33
|
* Prefer using listSecurityResourcesWithAccountReference
|
|
26
34
|
*/
|
|
27
35
|
listSecurityResources(subscriptionReference: string, standardReference: string, checkReference: string, parameters?: Parameters): Promise<GetResult<Resources>>;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated
|
|
38
|
+
* Prefer using the wellArchitected version
|
|
39
|
+
*/
|
|
28
40
|
listSecurityResourcesWithAccountReference(subscriptionReference: string, standardReference: string, checkReference: string, accountReference: string, parameters?: Parameters): Promise<GetResult<Resources>>;
|
|
29
41
|
}
|
|
@@ -22,6 +22,10 @@ class StandardsClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
22
22
|
this.path = `/${subscriptionReference}/standards`;
|
|
23
23
|
return new getResult_1.GetResult(standards_1.Standards, await this.get(parameters));
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* Prefer using the wellArchitected version
|
|
28
|
+
*/
|
|
25
29
|
async listSecurityStandardsWithAccountReference(subscriptionReference, parameters = {}, accountReference) {
|
|
26
30
|
this.path = `/${subscriptionReference}/accounts/${accountReference}/standards`;
|
|
27
31
|
return new getResult_1.GetResult(standards_1.Standards, await this.get(parameters));
|
|
@@ -34,6 +38,10 @@ class StandardsClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
34
38
|
this.path = `/${subscriptionReference}/standards/${standardReference}/checks`;
|
|
35
39
|
return new getResult_1.GetResult(checks_1.Checks, await this.get(parameters));
|
|
36
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated
|
|
43
|
+
* Prefer using the wellArchitected version
|
|
44
|
+
*/
|
|
37
45
|
async listSecurityChecksWithAccountReference(subscriptionReference, standardReference, accountReference, parameters = {}) {
|
|
38
46
|
this.path = `/${subscriptionReference}/accounts/${accountReference}/standards/${standardReference}/checks`;
|
|
39
47
|
return new getResult_1.GetResult(checks_1.Checks, await this.get(parameters));
|
|
@@ -46,6 +54,10 @@ class StandardsClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
46
54
|
this.path = `/${subscriptionReference}/standards/${standardReference}/checks/${checkReference}/resources`;
|
|
47
55
|
return new getResult_1.GetResult(resources_1.Resources, await this.get(parameters));
|
|
48
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated
|
|
59
|
+
* Prefer using the wellArchitected version
|
|
60
|
+
*/
|
|
49
61
|
async listSecurityResourcesWithAccountReference(subscriptionReference, standardReference, checkReference, accountReference, parameters = {}) {
|
|
50
62
|
this.path = `/${subscriptionReference}/accounts/${accountReference}/standards/${standardReference}/checks/${checkReference}/resources`;
|
|
51
63
|
return new getResult_1.GetResult(resources_1.Resources, await this.get(parameters));
|
|
@@ -22,4 +22,6 @@ __exportStar(require("./entities/getAdminData"), exports);
|
|
|
22
22
|
__exportStar(require("./entities/getPartnerData"), exports);
|
|
23
23
|
__exportStar(require("./entities/getCustomerData"), exports);
|
|
24
24
|
__exportStar(require("./entities/getCustomerAccountData"), exports);
|
|
25
|
+
__exportStar(require("./register"), exports);
|
|
26
|
+
__exportStar(require("./standards"), exports);
|
|
25
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum RegistrationLinkFields {
|
|
3
|
+
COLUMN_REGISTRATION_LINK = "registrationLink"
|
|
4
|
+
}
|
|
5
|
+
export declare type RegistrationLinkType = {
|
|
6
|
+
[RegistrationLinkFields.COLUMN_REGISTRATION_LINK]: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class RegistrationLink extends AbstractEntity<RegistrationLinkType> {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(registrationLinkInput: RegistrationLinkType);
|
|
11
|
+
get registrationLink(): string;
|
|
12
|
+
toJSON(): RegistrationLinkType;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 _RegistrationLink_registrationLink;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.RegistrationLink = exports.RegistrationLinkFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var RegistrationLinkFields;
|
|
18
|
+
(function (RegistrationLinkFields) {
|
|
19
|
+
RegistrationLinkFields["COLUMN_REGISTRATION_LINK"] = "registrationLink";
|
|
20
|
+
})(RegistrationLinkFields = exports.RegistrationLinkFields || (exports.RegistrationLinkFields = {}));
|
|
21
|
+
class RegistrationLink extends abstractEntity_1.AbstractEntity {
|
|
22
|
+
constructor(registrationLinkInput) {
|
|
23
|
+
super(registrationLinkInput);
|
|
24
|
+
_RegistrationLink_registrationLink.set(this, void 0);
|
|
25
|
+
__classPrivateFieldSet(this, _RegistrationLink_registrationLink, registrationLinkInput[RegistrationLinkFields.COLUMN_REGISTRATION_LINK], "f");
|
|
26
|
+
}
|
|
27
|
+
get registrationLink() {
|
|
28
|
+
return __classPrivateFieldGet(this, _RegistrationLink_registrationLink, "f");
|
|
29
|
+
}
|
|
30
|
+
toJSON() {
|
|
31
|
+
return {
|
|
32
|
+
[RegistrationLinkFields.COLUMN_REGISTRATION_LINK]: this.registrationLink,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RegistrationLink = RegistrationLink;
|
|
37
|
+
_RegistrationLink_registrationLink = new WeakMap();
|
|
38
|
+
//# sourceMappingURL=registrationLink.js.map
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./accountGraphQLClient"), exports);
|
|
17
|
+
__exportStar(require("./entity/registrationLink"), exports);
|
|
18
|
+
__exportStar(require("./registerClient"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractRestfulClient, Parameters } from '../../abstractRestfulClient';
|
|
2
|
+
import { GetResult } from '../../getResult';
|
|
3
|
+
import { RegistrationLink } from './entity/registrationLink';
|
|
4
|
+
export declare class WellArchitectedRegisterClient extends AbstractRestfulClient {
|
|
5
|
+
/**
|
|
6
|
+
* The base path of the API
|
|
7
|
+
*/
|
|
8
|
+
protected basePath: string;
|
|
9
|
+
register(subscriptionReference: string, parameters?: Parameters): Promise<GetResult<RegistrationLink>>;
|
|
10
|
+
deregister(subscriptionReference: string, parameters?: Parameters): Promise<void>;
|
|
11
|
+
checkRegister(subscriptionReference: string, parameters?: Parameters): Promise<void>;
|
|
12
|
+
triggerAsynchronousUpdate(subscriptionReference: string, parameters?: Parameters): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WellArchitectedRegisterClient = void 0;
|
|
4
|
+
const abstractRestfulClient_1 = require("../../abstractRestfulClient");
|
|
5
|
+
const getResult_1 = require("../../getResult");
|
|
6
|
+
const registrationLink_1 = require("./entity/registrationLink");
|
|
7
|
+
class WellArchitectedRegisterClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
/**
|
|
11
|
+
* The base path of the API
|
|
12
|
+
*/
|
|
13
|
+
this.basePath = '/wellArchitected';
|
|
14
|
+
}
|
|
15
|
+
async register(subscriptionReference, parameters = {}) {
|
|
16
|
+
this.path = `/${subscriptionReference}/register`;
|
|
17
|
+
return new getResult_1.GetResult(registrationLink_1.RegistrationLink, await this.post(parameters));
|
|
18
|
+
}
|
|
19
|
+
async deregister(subscriptionReference, parameters = {}) {
|
|
20
|
+
this.path = `/${subscriptionReference}/deregister`;
|
|
21
|
+
return await this.post(parameters);
|
|
22
|
+
}
|
|
23
|
+
async checkRegister(subscriptionReference, parameters = {}) {
|
|
24
|
+
this.path = `/${subscriptionReference}/register/check`;
|
|
25
|
+
return await this.get(parameters);
|
|
26
|
+
}
|
|
27
|
+
async triggerAsynchronousUpdate(subscriptionReference, parameters = {}) {
|
|
28
|
+
this.path = `/${subscriptionReference}/update`;
|
|
29
|
+
return await this.post(parameters);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.WellArchitectedRegisterClient = WellArchitectedRegisterClient;
|
|
33
|
+
//# sourceMappingURL=registerClient.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
import { SecurityChecks, SecurityChecksType } from './securityChecks';
|
|
3
|
+
export declare enum ChecksFields {
|
|
4
|
+
COLUMN_CHECKS = "checks",
|
|
5
|
+
COLUMN_UPDATED_AT = "updatedAt"
|
|
6
|
+
}
|
|
7
|
+
export declare type ChecksType = {
|
|
8
|
+
[ChecksFields.COLUMN_CHECKS]: Array<SecurityChecksType>;
|
|
9
|
+
[ChecksFields.COLUMN_UPDATED_AT]: string;
|
|
10
|
+
};
|
|
11
|
+
export declare class Checks extends AbstractEntity<ChecksType> {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(checksDataInput: ChecksType);
|
|
14
|
+
get checks(): Array<SecurityChecks>;
|
|
15
|
+
get updatedAt(): string;
|
|
16
|
+
toJSON(): ChecksType;
|
|
17
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 _Checks_checks, _Checks_updatedAt;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Checks = exports.ChecksFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
+
const securityChecks_1 = require("./securityChecks");
|
|
18
|
+
var ChecksFields;
|
|
19
|
+
(function (ChecksFields) {
|
|
20
|
+
ChecksFields["COLUMN_CHECKS"] = "checks";
|
|
21
|
+
ChecksFields["COLUMN_UPDATED_AT"] = "updatedAt";
|
|
22
|
+
})(ChecksFields = exports.ChecksFields || (exports.ChecksFields = {}));
|
|
23
|
+
class Checks extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(checksDataInput) {
|
|
25
|
+
super(checksDataInput);
|
|
26
|
+
_Checks_checks.set(this, void 0);
|
|
27
|
+
_Checks_updatedAt.set(this, void 0);
|
|
28
|
+
__classPrivateFieldSet(this, _Checks_checks, checksDataInput[ChecksFields.COLUMN_CHECKS].map((securityChecks) => new securityChecks_1.SecurityChecks(securityChecks)), "f");
|
|
29
|
+
__classPrivateFieldSet(this, _Checks_updatedAt, checksDataInput[ChecksFields.COLUMN_UPDATED_AT], "f");
|
|
30
|
+
}
|
|
31
|
+
get checks() {
|
|
32
|
+
return __classPrivateFieldGet(this, _Checks_checks, "f");
|
|
33
|
+
}
|
|
34
|
+
get updatedAt() {
|
|
35
|
+
return __classPrivateFieldGet(this, _Checks_updatedAt, "f");
|
|
36
|
+
}
|
|
37
|
+
toJSON() {
|
|
38
|
+
return {
|
|
39
|
+
[ChecksFields.COLUMN_CHECKS]: this.checks.map((securityChecks) => securityChecks.toJSON()),
|
|
40
|
+
[ChecksFields.COLUMN_UPDATED_AT]: this.updatedAt,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.Checks = Checks;
|
|
45
|
+
_Checks_checks = new WeakMap(), _Checks_updatedAt = new WeakMap();
|
|
46
|
+
//# sourceMappingURL=checks.js.map
|