@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
|
@@ -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
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractGraphQLClient } from '../abstractGraphQLClient';
|
|
2
|
-
import { GetAccountQuery } from './types/accountGraphQLQueries';
|
|
3
|
-
import { GetAccountType } from './types/accountGraphQLTypes';
|
|
4
|
-
export declare class AccountGraphQLClient extends AbstractGraphQLClient {
|
|
5
|
-
/**
|
|
6
|
-
* The base path of the API
|
|
7
|
-
*/
|
|
8
|
-
protected basePath: string;
|
|
9
|
-
findByQuery(query: GetAccountQuery): Promise<GetAccountType | null>;
|
|
10
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountGraphQLClient = void 0;
|
|
4
|
-
const abstractGraphQLClient_1 = require("../abstractGraphQLClient");
|
|
5
|
-
class AccountGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
/**
|
|
9
|
-
* The base path of the API
|
|
10
|
-
*/
|
|
11
|
-
this.basePath = '/v2';
|
|
12
|
-
}
|
|
13
|
-
async findByQuery(query) {
|
|
14
|
-
this.path = '/graphql';
|
|
15
|
-
console.info('GRAPHQL Query brut :', query);
|
|
16
|
-
const queryStr = this.stringifyQuery(query);
|
|
17
|
-
console.info('GRAPHQL Query after stringify :', queryStr);
|
|
18
|
-
try {
|
|
19
|
-
return await this.post(queryStr);
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.AccountGraphQLClient = AccountGraphQLClient;
|
|
27
|
-
//# sourceMappingURL=accountGraphQLClient.js.map
|
package/build/account/index.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Merge, Schema } from 'type-fest';
|
|
2
|
-
import { AccountAttributeType } from './accountGraphQLTypes';
|
|
3
|
-
import { AccountAttributeSchema } from './accountGraphQLSchemas';
|
|
4
|
-
export declare type GetAccountQuery = {
|
|
5
|
-
getUsers?: GetAccountQueryRequest;
|
|
6
|
-
};
|
|
7
|
-
export declare type GetAccountQueryRequest = Merge<{
|
|
8
|
-
__args: QueryAccountArgument;
|
|
9
|
-
}, AccountAttributeSchema>;
|
|
10
|
-
export declare type QueryAccountArgument = {
|
|
11
|
-
paginate?: PaginateAccountArgument;
|
|
12
|
-
searchBody?: SearchBodyAccountArgument;
|
|
13
|
-
};
|
|
14
|
-
export declare type PaginateAccountArgument = {
|
|
15
|
-
page: number;
|
|
16
|
-
perPage: number;
|
|
17
|
-
};
|
|
18
|
-
export declare type SearchBodyAccountArgument = {
|
|
19
|
-
keywords?: string;
|
|
20
|
-
keywordsByField?: KeywordsByFieldsAccountArgument[];
|
|
21
|
-
filters?: FiltersAccountArgument[];
|
|
22
|
-
exclusionFilters?: FiltersAccountArgument[];
|
|
23
|
-
sort?: SortAccountArgument[];
|
|
24
|
-
highlight?: boolean;
|
|
25
|
-
aggregatorFilter?: string[];
|
|
26
|
-
scopes?: string | string[] | string[][];
|
|
27
|
-
rights?: string[];
|
|
28
|
-
};
|
|
29
|
-
export declare type SortAccountArgument = {
|
|
30
|
-
name?: string;
|
|
31
|
-
order?: string;
|
|
32
|
-
};
|
|
33
|
-
export declare type KeywordsByFieldsAccountArgument = {
|
|
34
|
-
name?: string;
|
|
35
|
-
values?: string[];
|
|
36
|
-
operator?: string;
|
|
37
|
-
type?: string;
|
|
38
|
-
};
|
|
39
|
-
export declare type FiltersAccountArgument = {
|
|
40
|
-
name?: string;
|
|
41
|
-
value?: string | string[];
|
|
42
|
-
};
|
|
43
|
-
export declare type AccountSchema = Schema<AccountAttributeType, boolean>;
|