@arrowsphere/api-client 3.55.0 → 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 +6 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +3 -1
- package/build/publicApiClient.d.ts +12 -2
- package/build/publicApiClient.js +21 -3
- 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/wellArchitected/register/index.js +19 -0
- 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/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.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
|
+
|
|
6
12
|
## [3.55.0] - 2023-09-25
|
|
7
13
|
|
|
8
14
|
### Changed
|
package/build/index.d.ts
CHANGED
|
@@ -23,5 +23,7 @@ export * from './subscriptions/';
|
|
|
23
23
|
export * from './supportCenter/';
|
|
24
24
|
export * from './securityScore/';
|
|
25
25
|
export * from './user/';
|
|
26
|
+
export { WellArchitected };
|
|
27
|
+
import * as WellArchitected from './wellArchitected';
|
|
26
28
|
export { ContactInformation };
|
|
27
29
|
import * as ContactInformation from './contact';
|
package/build/index.js
CHANGED
|
@@ -26,7 +26,7 @@ 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);
|
|
@@ -52,6 +52,8 @@ __exportStar(require("./subscriptions/"), exports);
|
|
|
52
52
|
__exportStar(require("./supportCenter/"), exports);
|
|
53
53
|
__exportStar(require("./securityScore/"), exports);
|
|
54
54
|
__exportStar(require("./user/"), exports);
|
|
55
|
+
const WellArchitected = __importStar(require("./wellArchitected"));
|
|
56
|
+
exports.WellArchitected = WellArchitected;
|
|
55
57
|
const ContactInformation = __importStar(require("./contact"));
|
|
56
58
|
exports.ContactInformation = ContactInformation;
|
|
57
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);
|
|
@@ -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
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./entity/registrationLink"), exports);
|
|
18
|
+
__exportStar(require("./registerClient"), exports);
|
|
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
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
export declare enum SecurityChecksFields {
|
|
3
|
+
COLUMN_DESCRIPTION = "description",
|
|
4
|
+
COLUMN_FLAGGED = "flagged",
|
|
5
|
+
COLUMN_IS_FAILED = "isFailed",
|
|
6
|
+
COLUMN_METADATA = "metadata",
|
|
7
|
+
COLUMN_NAME = "name",
|
|
8
|
+
COLUMN_PROCESSED = "processed",
|
|
9
|
+
COLUMN_REFERENCE = "reference",
|
|
10
|
+
COLUMN_SCORE = "score",
|
|
11
|
+
COLUMN_SEVERITY = "severity"
|
|
12
|
+
}
|
|
13
|
+
export declare type SecurityChecksType = {
|
|
14
|
+
[SecurityChecksFields.COLUMN_DESCRIPTION]: string;
|
|
15
|
+
[SecurityChecksFields.COLUMN_FLAGGED]: number;
|
|
16
|
+
[SecurityChecksFields.COLUMN_IS_FAILED]: boolean;
|
|
17
|
+
[SecurityChecksFields.COLUMN_METADATA]: Array<string>;
|
|
18
|
+
[SecurityChecksFields.COLUMN_NAME]: string;
|
|
19
|
+
[SecurityChecksFields.COLUMN_PROCESSED]: number;
|
|
20
|
+
[SecurityChecksFields.COLUMN_REFERENCE]: string;
|
|
21
|
+
[SecurityChecksFields.COLUMN_SCORE]: number;
|
|
22
|
+
[SecurityChecksFields.COLUMN_SEVERITY]: string;
|
|
23
|
+
};
|
|
24
|
+
export declare class SecurityChecks extends AbstractEntity<SecurityChecksType> {
|
|
25
|
+
#private;
|
|
26
|
+
constructor(securityChecksDataInput: SecurityChecksType);
|
|
27
|
+
get description(): string;
|
|
28
|
+
get flagged(): number;
|
|
29
|
+
get isFailed(): boolean;
|
|
30
|
+
get metadata(): Array<string>;
|
|
31
|
+
get name(): string;
|
|
32
|
+
get processed(): number;
|
|
33
|
+
get reference(): string;
|
|
34
|
+
get score(): number;
|
|
35
|
+
get severity(): string;
|
|
36
|
+
toJSON(): SecurityChecksType;
|
|
37
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 _SecurityChecks_description, _SecurityChecks_flagged, _SecurityChecks_isFailed, _SecurityChecks_metadata, _SecurityChecks_name, _SecurityChecks_processed, _SecurityChecks_reference, _SecurityChecks_score, _SecurityChecks_severity;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SecurityChecks = exports.SecurityChecksFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
+
var SecurityChecksFields;
|
|
18
|
+
(function (SecurityChecksFields) {
|
|
19
|
+
SecurityChecksFields["COLUMN_DESCRIPTION"] = "description";
|
|
20
|
+
SecurityChecksFields["COLUMN_FLAGGED"] = "flagged";
|
|
21
|
+
SecurityChecksFields["COLUMN_IS_FAILED"] = "isFailed";
|
|
22
|
+
SecurityChecksFields["COLUMN_METADATA"] = "metadata";
|
|
23
|
+
SecurityChecksFields["COLUMN_NAME"] = "name";
|
|
24
|
+
SecurityChecksFields["COLUMN_PROCESSED"] = "processed";
|
|
25
|
+
SecurityChecksFields["COLUMN_REFERENCE"] = "reference";
|
|
26
|
+
SecurityChecksFields["COLUMN_SCORE"] = "score";
|
|
27
|
+
SecurityChecksFields["COLUMN_SEVERITY"] = "severity";
|
|
28
|
+
})(SecurityChecksFields = exports.SecurityChecksFields || (exports.SecurityChecksFields = {}));
|
|
29
|
+
class SecurityChecks extends abstractEntity_1.AbstractEntity {
|
|
30
|
+
constructor(securityChecksDataInput) {
|
|
31
|
+
super(securityChecksDataInput);
|
|
32
|
+
_SecurityChecks_description.set(this, void 0);
|
|
33
|
+
_SecurityChecks_flagged.set(this, void 0);
|
|
34
|
+
_SecurityChecks_isFailed.set(this, void 0);
|
|
35
|
+
_SecurityChecks_metadata.set(this, void 0);
|
|
36
|
+
_SecurityChecks_name.set(this, void 0);
|
|
37
|
+
_SecurityChecks_processed.set(this, void 0);
|
|
38
|
+
_SecurityChecks_reference.set(this, void 0);
|
|
39
|
+
_SecurityChecks_score.set(this, void 0);
|
|
40
|
+
_SecurityChecks_severity.set(this, void 0);
|
|
41
|
+
__classPrivateFieldSet(this, _SecurityChecks_description, securityChecksDataInput[SecurityChecksFields.COLUMN_DESCRIPTION], "f");
|
|
42
|
+
__classPrivateFieldSet(this, _SecurityChecks_flagged, securityChecksDataInput[SecurityChecksFields.COLUMN_FLAGGED], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _SecurityChecks_isFailed, securityChecksDataInput[SecurityChecksFields.COLUMN_IS_FAILED], "f");
|
|
44
|
+
__classPrivateFieldSet(this, _SecurityChecks_metadata, securityChecksDataInput[SecurityChecksFields.COLUMN_METADATA], "f");
|
|
45
|
+
__classPrivateFieldSet(this, _SecurityChecks_name, securityChecksDataInput[SecurityChecksFields.COLUMN_NAME], "f");
|
|
46
|
+
__classPrivateFieldSet(this, _SecurityChecks_processed, securityChecksDataInput[SecurityChecksFields.COLUMN_PROCESSED], "f");
|
|
47
|
+
__classPrivateFieldSet(this, _SecurityChecks_reference, securityChecksDataInput[SecurityChecksFields.COLUMN_REFERENCE], "f");
|
|
48
|
+
__classPrivateFieldSet(this, _SecurityChecks_score, securityChecksDataInput[SecurityChecksFields.COLUMN_SCORE], "f");
|
|
49
|
+
__classPrivateFieldSet(this, _SecurityChecks_severity, securityChecksDataInput[SecurityChecksFields.COLUMN_SEVERITY], "f");
|
|
50
|
+
}
|
|
51
|
+
get description() {
|
|
52
|
+
return __classPrivateFieldGet(this, _SecurityChecks_description, "f");
|
|
53
|
+
}
|
|
54
|
+
get flagged() {
|
|
55
|
+
return __classPrivateFieldGet(this, _SecurityChecks_flagged, "f");
|
|
56
|
+
}
|
|
57
|
+
get isFailed() {
|
|
58
|
+
return __classPrivateFieldGet(this, _SecurityChecks_isFailed, "f");
|
|
59
|
+
}
|
|
60
|
+
get metadata() {
|
|
61
|
+
return __classPrivateFieldGet(this, _SecurityChecks_metadata, "f");
|
|
62
|
+
}
|
|
63
|
+
get name() {
|
|
64
|
+
return __classPrivateFieldGet(this, _SecurityChecks_name, "f");
|
|
65
|
+
}
|
|
66
|
+
get processed() {
|
|
67
|
+
return __classPrivateFieldGet(this, _SecurityChecks_processed, "f");
|
|
68
|
+
}
|
|
69
|
+
get reference() {
|
|
70
|
+
return __classPrivateFieldGet(this, _SecurityChecks_reference, "f");
|
|
71
|
+
}
|
|
72
|
+
get score() {
|
|
73
|
+
return __classPrivateFieldGet(this, _SecurityChecks_score, "f");
|
|
74
|
+
}
|
|
75
|
+
get severity() {
|
|
76
|
+
return __classPrivateFieldGet(this, _SecurityChecks_severity, "f");
|
|
77
|
+
}
|
|
78
|
+
toJSON() {
|
|
79
|
+
return {
|
|
80
|
+
[SecurityChecksFields.COLUMN_DESCRIPTION]: this.description,
|
|
81
|
+
[SecurityChecksFields.COLUMN_FLAGGED]: this.flagged,
|
|
82
|
+
[SecurityChecksFields.COLUMN_IS_FAILED]: this.isFailed,
|
|
83
|
+
[SecurityChecksFields.COLUMN_METADATA]: this.metadata,
|
|
84
|
+
[SecurityChecksFields.COLUMN_NAME]: this.name,
|
|
85
|
+
[SecurityChecksFields.COLUMN_PROCESSED]: this.processed,
|
|
86
|
+
[SecurityChecksFields.COLUMN_REFERENCE]: this.reference,
|
|
87
|
+
[SecurityChecksFields.COLUMN_SCORE]: this.score,
|
|
88
|
+
[SecurityChecksFields.COLUMN_SEVERITY]: this.severity,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.SecurityChecks = SecurityChecks;
|
|
93
|
+
_SecurityChecks_description = new WeakMap(), _SecurityChecks_flagged = new WeakMap(), _SecurityChecks_isFailed = new WeakMap(), _SecurityChecks_metadata = new WeakMap(), _SecurityChecks_name = new WeakMap(), _SecurityChecks_processed = new WeakMap(), _SecurityChecks_reference = new WeakMap(), _SecurityChecks_score = new WeakMap(), _SecurityChecks_severity = new WeakMap();
|
|
94
|
+
//# sourceMappingURL=securityChecks.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
import { SecurityResources, SecurityResourcesType } from './securityResources';
|
|
3
|
+
export declare enum ResourcesFields {
|
|
4
|
+
COLUMN_HEADERS = "headers",
|
|
5
|
+
COLUMN_RESOURCES = "resources"
|
|
6
|
+
}
|
|
7
|
+
export declare type ResourcesType = {
|
|
8
|
+
[ResourcesFields.COLUMN_HEADERS]: Array<string>;
|
|
9
|
+
[ResourcesFields.COLUMN_RESOURCES]: Array<SecurityResourcesType>;
|
|
10
|
+
};
|
|
11
|
+
export declare class Resources extends AbstractEntity<ResourcesType> {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(resources: ResourcesType);
|
|
14
|
+
get resources(): Array<SecurityResources>;
|
|
15
|
+
get headers(): Array<string>;
|
|
16
|
+
toJSON(): ResourcesType;
|
|
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 _Resources_headers, _Resources_resources;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Resources = exports.ResourcesFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
+
const securityResources_1 = require("./securityResources");
|
|
18
|
+
var ResourcesFields;
|
|
19
|
+
(function (ResourcesFields) {
|
|
20
|
+
ResourcesFields["COLUMN_HEADERS"] = "headers";
|
|
21
|
+
ResourcesFields["COLUMN_RESOURCES"] = "resources";
|
|
22
|
+
})(ResourcesFields = exports.ResourcesFields || (exports.ResourcesFields = {}));
|
|
23
|
+
class Resources extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(resources) {
|
|
25
|
+
super(resources);
|
|
26
|
+
_Resources_headers.set(this, void 0);
|
|
27
|
+
_Resources_resources.set(this, void 0);
|
|
28
|
+
__classPrivateFieldSet(this, _Resources_headers, resources[ResourcesFields.COLUMN_HEADERS], "f");
|
|
29
|
+
__classPrivateFieldSet(this, _Resources_resources, resources[ResourcesFields.COLUMN_RESOURCES].map((securityResources) => new securityResources_1.SecurityResources(securityResources)), "f");
|
|
30
|
+
}
|
|
31
|
+
get resources() {
|
|
32
|
+
return __classPrivateFieldGet(this, _Resources_resources, "f");
|
|
33
|
+
}
|
|
34
|
+
get headers() {
|
|
35
|
+
return __classPrivateFieldGet(this, _Resources_headers, "f");
|
|
36
|
+
}
|
|
37
|
+
toJSON() {
|
|
38
|
+
return {
|
|
39
|
+
[ResourcesFields.COLUMN_HEADERS]: this.headers,
|
|
40
|
+
[ResourcesFields.COLUMN_RESOURCES]: this.resources.map((securityResources) => securityResources.toJSON()),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.Resources = Resources;
|
|
45
|
+
_Resources_headers = new WeakMap(), _Resources_resources = new WeakMap();
|
|
46
|
+
//# sourceMappingURL=resources.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
export declare enum SecurityResourcesFields {
|
|
3
|
+
COLUMN_STATUS = "status",
|
|
4
|
+
COLUMN_VALUES = "values"
|
|
5
|
+
}
|
|
6
|
+
export declare type SecurityResourcesType = {
|
|
7
|
+
[SecurityResourcesFields.COLUMN_STATUS]: string;
|
|
8
|
+
[SecurityResourcesFields.COLUMN_VALUES]: Array<string>;
|
|
9
|
+
};
|
|
10
|
+
export declare class SecurityResources extends AbstractEntity<SecurityResourcesType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(securityResources: SecurityResourcesType);
|
|
13
|
+
get status(): string;
|
|
14
|
+
get values(): Array<string>;
|
|
15
|
+
toJSON(): SecurityResourcesType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 _SecurityResources_status, _SecurityResources_values;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SecurityResources = exports.SecurityResourcesFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
+
var SecurityResourcesFields;
|
|
18
|
+
(function (SecurityResourcesFields) {
|
|
19
|
+
SecurityResourcesFields["COLUMN_STATUS"] = "status";
|
|
20
|
+
SecurityResourcesFields["COLUMN_VALUES"] = "values";
|
|
21
|
+
})(SecurityResourcesFields = exports.SecurityResourcesFields || (exports.SecurityResourcesFields = {}));
|
|
22
|
+
class SecurityResources extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(securityResources) {
|
|
24
|
+
super(securityResources);
|
|
25
|
+
_SecurityResources_status.set(this, void 0);
|
|
26
|
+
_SecurityResources_values.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _SecurityResources_status, securityResources[SecurityResourcesFields.COLUMN_STATUS], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _SecurityResources_values, securityResources[SecurityResourcesFields.COLUMN_VALUES], "f");
|
|
29
|
+
}
|
|
30
|
+
get status() {
|
|
31
|
+
return __classPrivateFieldGet(this, _SecurityResources_status, "f");
|
|
32
|
+
}
|
|
33
|
+
get values() {
|
|
34
|
+
return __classPrivateFieldGet(this, _SecurityResources_values, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[SecurityResourcesFields.COLUMN_STATUS]: this.status,
|
|
39
|
+
[SecurityResourcesFields.COLUMN_VALUES]: this.values,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.SecurityResources = SecurityResources;
|
|
44
|
+
_SecurityResources_status = new WeakMap(), _SecurityResources_values = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=securityResources.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
export declare enum SecurityStandardsFields {
|
|
3
|
+
COLUMN_FAILED = "failed",
|
|
4
|
+
COLUMN_NAME = "name",
|
|
5
|
+
COLUMN_PASSED = "passed",
|
|
6
|
+
COLUMN_REFERENCE = "reference",
|
|
7
|
+
COLUMN_SCORE = "score",
|
|
8
|
+
COLUMN_TOTAL = "total"
|
|
9
|
+
}
|
|
10
|
+
export declare type SecurityStandardsType = {
|
|
11
|
+
[SecurityStandardsFields.COLUMN_FAILED]: number;
|
|
12
|
+
[SecurityStandardsFields.COLUMN_NAME]: string;
|
|
13
|
+
[SecurityStandardsFields.COLUMN_PASSED]: number;
|
|
14
|
+
[SecurityStandardsFields.COLUMN_REFERENCE]: string;
|
|
15
|
+
[SecurityStandardsFields.COLUMN_SCORE]: number;
|
|
16
|
+
[SecurityStandardsFields.COLUMN_TOTAL]: number;
|
|
17
|
+
};
|
|
18
|
+
export declare class SecurityStandards extends AbstractEntity<SecurityStandardsType> {
|
|
19
|
+
#private;
|
|
20
|
+
constructor(standardsSecurityDataInput: SecurityStandardsType);
|
|
21
|
+
get failed(): number;
|
|
22
|
+
get name(): string;
|
|
23
|
+
get passed(): number;
|
|
24
|
+
get reference(): string;
|
|
25
|
+
get score(): number;
|
|
26
|
+
get total(): number;
|
|
27
|
+
toJSON(): SecurityStandardsType;
|
|
28
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 _SecurityStandards_failed, _SecurityStandards_name, _SecurityStandards_passed, _SecurityStandards_reference, _SecurityStandards_score, _SecurityStandards_total;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SecurityStandards = exports.SecurityStandardsFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
+
var SecurityStandardsFields;
|
|
18
|
+
(function (SecurityStandardsFields) {
|
|
19
|
+
SecurityStandardsFields["COLUMN_FAILED"] = "failed";
|
|
20
|
+
SecurityStandardsFields["COLUMN_NAME"] = "name";
|
|
21
|
+
SecurityStandardsFields["COLUMN_PASSED"] = "passed";
|
|
22
|
+
SecurityStandardsFields["COLUMN_REFERENCE"] = "reference";
|
|
23
|
+
SecurityStandardsFields["COLUMN_SCORE"] = "score";
|
|
24
|
+
SecurityStandardsFields["COLUMN_TOTAL"] = "total";
|
|
25
|
+
})(SecurityStandardsFields = exports.SecurityStandardsFields || (exports.SecurityStandardsFields = {}));
|
|
26
|
+
class SecurityStandards extends abstractEntity_1.AbstractEntity {
|
|
27
|
+
constructor(standardsSecurityDataInput) {
|
|
28
|
+
super(standardsSecurityDataInput);
|
|
29
|
+
_SecurityStandards_failed.set(this, void 0);
|
|
30
|
+
_SecurityStandards_name.set(this, void 0);
|
|
31
|
+
_SecurityStandards_passed.set(this, void 0);
|
|
32
|
+
_SecurityStandards_reference.set(this, void 0);
|
|
33
|
+
_SecurityStandards_score.set(this, void 0);
|
|
34
|
+
_SecurityStandards_total.set(this, void 0);
|
|
35
|
+
__classPrivateFieldSet(this, _SecurityStandards_failed, standardsSecurityDataInput[SecurityStandardsFields.COLUMN_FAILED], "f");
|
|
36
|
+
__classPrivateFieldSet(this, _SecurityStandards_name, standardsSecurityDataInput[SecurityStandardsFields.COLUMN_NAME], "f");
|
|
37
|
+
__classPrivateFieldSet(this, _SecurityStandards_passed, standardsSecurityDataInput[SecurityStandardsFields.COLUMN_PASSED], "f");
|
|
38
|
+
__classPrivateFieldSet(this, _SecurityStandards_reference, standardsSecurityDataInput[SecurityStandardsFields.COLUMN_REFERENCE], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _SecurityStandards_score, standardsSecurityDataInput[SecurityStandardsFields.COLUMN_SCORE], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _SecurityStandards_total, standardsSecurityDataInput[SecurityStandardsFields.COLUMN_TOTAL], "f");
|
|
41
|
+
}
|
|
42
|
+
get failed() {
|
|
43
|
+
return __classPrivateFieldGet(this, _SecurityStandards_failed, "f");
|
|
44
|
+
}
|
|
45
|
+
get name() {
|
|
46
|
+
return __classPrivateFieldGet(this, _SecurityStandards_name, "f");
|
|
47
|
+
}
|
|
48
|
+
get passed() {
|
|
49
|
+
return __classPrivateFieldGet(this, _SecurityStandards_passed, "f");
|
|
50
|
+
}
|
|
51
|
+
get reference() {
|
|
52
|
+
return __classPrivateFieldGet(this, _SecurityStandards_reference, "f");
|
|
53
|
+
}
|
|
54
|
+
get score() {
|
|
55
|
+
return __classPrivateFieldGet(this, _SecurityStandards_score, "f");
|
|
56
|
+
}
|
|
57
|
+
get total() {
|
|
58
|
+
return __classPrivateFieldGet(this, _SecurityStandards_total, "f");
|
|
59
|
+
}
|
|
60
|
+
toJSON() {
|
|
61
|
+
return {
|
|
62
|
+
[SecurityStandardsFields.COLUMN_FAILED]: this.failed,
|
|
63
|
+
[SecurityStandardsFields.COLUMN_NAME]: this.name,
|
|
64
|
+
[SecurityStandardsFields.COLUMN_PASSED]: this.passed,
|
|
65
|
+
[SecurityStandardsFields.COLUMN_REFERENCE]: this.reference,
|
|
66
|
+
[SecurityStandardsFields.COLUMN_SCORE]: this.score,
|
|
67
|
+
[SecurityStandardsFields.COLUMN_TOTAL]: this.total,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.SecurityStandards = SecurityStandards;
|
|
72
|
+
_SecurityStandards_failed = new WeakMap(), _SecurityStandards_name = new WeakMap(), _SecurityStandards_passed = new WeakMap(), _SecurityStandards_reference = new WeakMap(), _SecurityStandards_score = new WeakMap(), _SecurityStandards_total = new WeakMap();
|
|
73
|
+
//# sourceMappingURL=securityStandards.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
import { SecurityStandards, SecurityStandardsType } from './securityStandards';
|
|
3
|
+
export declare enum StandardsFields {
|
|
4
|
+
COLUMN_STANDARDS = "standards",
|
|
5
|
+
COLUMN_UPDATED_AT = "updatedAt"
|
|
6
|
+
}
|
|
7
|
+
export declare type StandardsType = {
|
|
8
|
+
[StandardsFields.COLUMN_STANDARDS]: Array<SecurityStandardsType>;
|
|
9
|
+
[StandardsFields.COLUMN_UPDATED_AT]: string;
|
|
10
|
+
};
|
|
11
|
+
export declare class Standards extends AbstractEntity<StandardsType> {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(standardsDataInput: StandardsType);
|
|
14
|
+
get standards(): Array<SecurityStandards>;
|
|
15
|
+
get updatedAt(): string;
|
|
16
|
+
toJSON(): StandardsType;
|
|
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 _Standards_standards, _Standards_updatedAt;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Standards = exports.StandardsFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
+
const securityStandards_1 = require("./securityStandards");
|
|
18
|
+
var StandardsFields;
|
|
19
|
+
(function (StandardsFields) {
|
|
20
|
+
StandardsFields["COLUMN_STANDARDS"] = "standards";
|
|
21
|
+
StandardsFields["COLUMN_UPDATED_AT"] = "updatedAt";
|
|
22
|
+
})(StandardsFields = exports.StandardsFields || (exports.StandardsFields = {}));
|
|
23
|
+
class Standards extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(standardsDataInput) {
|
|
25
|
+
super(standardsDataInput);
|
|
26
|
+
_Standards_standards.set(this, void 0);
|
|
27
|
+
_Standards_updatedAt.set(this, void 0);
|
|
28
|
+
__classPrivateFieldSet(this, _Standards_standards, standardsDataInput[StandardsFields.COLUMN_STANDARDS].map((securityStandards) => new securityStandards_1.SecurityStandards(securityStandards)), "f");
|
|
29
|
+
__classPrivateFieldSet(this, _Standards_updatedAt, standardsDataInput[StandardsFields.COLUMN_UPDATED_AT], "f");
|
|
30
|
+
}
|
|
31
|
+
get standards() {
|
|
32
|
+
return __classPrivateFieldGet(this, _Standards_standards, "f");
|
|
33
|
+
}
|
|
34
|
+
get updatedAt() {
|
|
35
|
+
return __classPrivateFieldGet(this, _Standards_updatedAt, "f");
|
|
36
|
+
}
|
|
37
|
+
toJSON() {
|
|
38
|
+
return {
|
|
39
|
+
[StandardsFields.COLUMN_STANDARDS]: this.standards.map((securityStandards) => securityStandards.toJSON()),
|
|
40
|
+
[StandardsFields.COLUMN_UPDATED_AT]: this.updatedAt,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.Standards = Standards;
|
|
45
|
+
_Standards_standards = new WeakMap(), _Standards_updatedAt = new WeakMap();
|
|
46
|
+
//# sourceMappingURL=standards.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './entities/standards/securityStandards';
|
|
2
|
+
export * from './entities/standards/standards';
|
|
3
|
+
export * from './entities/checks/securityChecks';
|
|
4
|
+
export * from './entities/checks/checks';
|
|
5
|
+
export * from './entities/resources/securityResources';
|
|
6
|
+
export * from './entities/resources/resources';
|
|
7
|
+
export * from './standardsClient';
|
|
@@ -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("./entities/standards/securityStandards"), exports);
|
|
18
|
+
__exportStar(require("./entities/standards/standards"), exports);
|
|
19
|
+
__exportStar(require("./entities/checks/securityChecks"), exports);
|
|
20
|
+
__exportStar(require("./entities/checks/checks"), exports);
|
|
21
|
+
__exportStar(require("./entities/resources/securityResources"), exports);
|
|
22
|
+
__exportStar(require("./entities/resources/resources"), exports);
|
|
23
|
+
__exportStar(require("./standardsClient"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AbstractRestfulClient, Parameters } from '../../abstractRestfulClient';
|
|
2
|
+
import { Standards } from './entities/standards/standards';
|
|
3
|
+
import { GetResult } from '../../getResult';
|
|
4
|
+
import { Checks } from './entities/checks/checks';
|
|
5
|
+
import { Resources } from './entities/resources/resources';
|
|
6
|
+
export declare class WellArchitectedStandardsClient extends AbstractRestfulClient {
|
|
7
|
+
/**
|
|
8
|
+
* The base path of the API
|
|
9
|
+
*/
|
|
10
|
+
protected basePath: string;
|
|
11
|
+
listSecurityStandardsWithAccountReference(subscriptionReference: string, parameters: Parameters | undefined, accountReference: string): Promise<GetResult<Standards>>;
|
|
12
|
+
listSecurityChecksWithAccountReference(subscriptionReference: string, standardReference: string, accountReference: string, parameters?: Parameters): Promise<GetResult<Checks>>;
|
|
13
|
+
listSecurityResourcesWithAccountReference(subscriptionReference: string, standardReference: string, checkReference: string, accountReference: string, parameters?: Parameters): Promise<GetResult<Resources>>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WellArchitectedStandardsClient = void 0;
|
|
4
|
+
const abstractRestfulClient_1 = require("../../abstractRestfulClient");
|
|
5
|
+
const standards_1 = require("./entities/standards/standards");
|
|
6
|
+
const getResult_1 = require("../../getResult");
|
|
7
|
+
const checks_1 = require("./entities/checks/checks");
|
|
8
|
+
const resources_1 = require("./entities/resources/resources");
|
|
9
|
+
class WellArchitectedStandardsClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
/**
|
|
13
|
+
* The base path of the API
|
|
14
|
+
*/
|
|
15
|
+
this.basePath = '/wellArchitected';
|
|
16
|
+
}
|
|
17
|
+
async listSecurityStandardsWithAccountReference(subscriptionReference, parameters = {}, accountReference) {
|
|
18
|
+
this.path = `/${subscriptionReference}/accounts/${accountReference}/standards`;
|
|
19
|
+
return new getResult_1.GetResult(standards_1.Standards, await this.get(parameters));
|
|
20
|
+
}
|
|
21
|
+
async listSecurityChecksWithAccountReference(subscriptionReference, standardReference, accountReference, parameters = {}) {
|
|
22
|
+
this.path = `/${subscriptionReference}/accounts/${accountReference}/standards/${standardReference}/checks`;
|
|
23
|
+
return new getResult_1.GetResult(checks_1.Checks, await this.get(parameters));
|
|
24
|
+
}
|
|
25
|
+
async listSecurityResourcesWithAccountReference(subscriptionReference, standardReference, checkReference, accountReference, parameters = {}) {
|
|
26
|
+
this.path = `/${subscriptionReference}/accounts/${accountReference}/standards/${standardReference}/checks/${checkReference}/resources`;
|
|
27
|
+
return new getResult_1.GetResult(resources_1.Resources, await this.get(parameters));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.WellArchitectedStandardsClient = WellArchitectedStandardsClient;
|
|
31
|
+
//# sourceMappingURL=standardsClient.js.map
|
package/package.json
CHANGED