@arrowsphere/api-client 3.57.1-rc.sdj.0 → 3.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,10 +3,11 @@
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
- ## [Unreleased]
6
+ ## [3.57.1] - 2023-10-13
7
+
8
+ ### Changed
9
+ - Fixing the missing pillar in the wellArchitected ressources endpoint
7
10
 
8
- ### Added
9
- - Add public api billing exports types client
10
11
 
11
12
  ## [3.57.0] - 2023-10-10
12
13
 
@@ -8,7 +8,7 @@ export declare class WellArchitectedStandardsClient extends AbstractRestfulClien
8
8
  * The base path of the API
9
9
  */
10
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>>;
11
+ listSecurityStandardsWithAccountReference(subscriptionReference: string, parameters: Parameters | undefined, accountReference: string, pillar: string): Promise<GetResult<Standards>>;
12
+ listSecurityChecksWithAccountReference(subscriptionReference: string, standardReference: string, accountReference: string, parameters: Parameters | undefined, pillar: string): Promise<GetResult<Checks>>;
13
+ listSecurityResourcesWithAccountReference(subscriptionReference: string, standardReference: string, checkReference: string, accountReference: string, pillar: string, parameters?: Parameters): Promise<GetResult<Resources>>;
14
14
  }
@@ -14,16 +14,16 @@ class WellArchitectedStandardsClient extends abstractRestfulClient_1.AbstractRes
14
14
  */
15
15
  this.basePath = '/wellArchitected';
16
16
  }
17
- async listSecurityStandardsWithAccountReference(subscriptionReference, parameters = {}, accountReference) {
18
- this.path = `/${subscriptionReference}/accounts/${accountReference}/standards`;
17
+ async listSecurityStandardsWithAccountReference(subscriptionReference, parameters = {}, accountReference, pillar) {
18
+ this.path = `/${subscriptionReference}/${pillar}/accounts/${accountReference}/standards`;
19
19
  return new getResult_1.GetResult(standards_1.Standards, await this.get(parameters));
20
20
  }
21
- async listSecurityChecksWithAccountReference(subscriptionReference, standardReference, accountReference, parameters = {}) {
22
- this.path = `/${subscriptionReference}/accounts/${accountReference}/standards/${standardReference}/checks`;
21
+ async listSecurityChecksWithAccountReference(subscriptionReference, standardReference, accountReference, parameters = {}, pillar) {
22
+ this.path = `/${subscriptionReference}/${pillar}/accounts/${accountReference}/standards/${standardReference}/checks`;
23
23
  return new getResult_1.GetResult(checks_1.Checks, await this.get(parameters));
24
24
  }
25
- async listSecurityResourcesWithAccountReference(subscriptionReference, standardReference, checkReference, accountReference, parameters = {}) {
26
- this.path = `/${subscriptionReference}/accounts/${accountReference}/standards/${standardReference}/checks/${checkReference}/resources`;
25
+ async listSecurityResourcesWithAccountReference(subscriptionReference, standardReference, checkReference, accountReference, pillar, parameters = {}) {
26
+ this.path = `/${subscriptionReference}/${pillar}/accounts/${accountReference}/standards/${standardReference}/checks/${checkReference}/resources`;
27
27
  return new getResult_1.GetResult(resources_1.Resources, await this.get(parameters));
28
28
  }
29
29
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.57.1-rc.sdj.0",
7
+ "version": "3.57.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",
@@ -1,10 +0,0 @@
1
- import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
2
- import { DataExportsTypes } from './entities/Erp/Export/Type/dataExportsTypes';
3
- import { GetResult } from '../getResult';
4
- export declare class BillingClient extends AbstractRestfulClient {
5
- protected basePath: string;
6
- /**
7
- * To get all the erp exports types
8
- */
9
- getExportsTypes(parameters?: Parameters): Promise<GetResult<DataExportsTypes>>;
10
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BillingClient = void 0;
4
- const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
- const dataExportsTypes_1 = require("./entities/Erp/Export/Type/dataExportsTypes");
6
- const getResult_1 = require("../getResult");
7
- class BillingClient extends abstractRestfulClient_1.AbstractRestfulClient {
8
- constructor() {
9
- super(...arguments);
10
- this.basePath = '/billing';
11
- }
12
- /**
13
- * To get all the erp exports types
14
- */
15
- async getExportsTypes(parameters = {}) {
16
- this.path = `/erp/exports/types`;
17
- return new getResult_1.GetResult(dataExportsTypes_1.DataExportsTypes, await this.get(parameters));
18
- }
19
- }
20
- exports.BillingClient = BillingClient;
21
- //# sourceMappingURL=BillingClient.js.map
@@ -1,16 +0,0 @@
1
- import { AbstractEntity } from '../../../../../abstractEntity';
2
- import { ExportType } from './exportType';
3
- export declare enum DataExportsTypesFields {
4
- COLUMN_EXPORTS_TYPES = "exportTypes"
5
- }
6
- export declare type DataExportsTypesType = {
7
- [DataExportsTypesFields.COLUMN_EXPORTS_TYPES]: Array<{
8
- [k: string]: string;
9
- }>;
10
- };
11
- export declare class DataExportsTypes extends AbstractEntity<DataExportsTypesType> {
12
- #private;
13
- constructor(ExportsTypesDataInput: DataExportsTypesType);
14
- get ExportsTypes(): Array<ExportType>;
15
- toJSON(): DataExportsTypesType;
16
- }
@@ -1,42 +0,0 @@
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 _DataExportsTypes_ExportsTypes;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.DataExportsTypes = exports.DataExportsTypesFields = void 0;
16
- const abstractEntity_1 = require("../../../../../abstractEntity");
17
- const exportType_1 = require("./exportType");
18
- var DataExportsTypesFields;
19
- (function (DataExportsTypesFields) {
20
- DataExportsTypesFields["COLUMN_EXPORTS_TYPES"] = "exportTypes";
21
- })(DataExportsTypesFields = exports.DataExportsTypesFields || (exports.DataExportsTypesFields = {}));
22
- class DataExportsTypes extends abstractEntity_1.AbstractEntity {
23
- constructor(ExportsTypesDataInput) {
24
- super(ExportsTypesDataInput);
25
- _DataExportsTypes_ExportsTypes.set(this, void 0);
26
- __classPrivateFieldSet(this, _DataExportsTypes_ExportsTypes, ExportsTypesDataInput[DataExportsTypesFields.COLUMN_EXPORTS_TYPES].map((result) => new exportType_1.ExportType({
27
- name: Object.values(result)[0],
28
- reference: Object.keys(result)[0],
29
- })), "f");
30
- }
31
- get ExportsTypes() {
32
- return __classPrivateFieldGet(this, _DataExportsTypes_ExportsTypes, "f");
33
- }
34
- toJSON() {
35
- return {
36
- [DataExportsTypesFields.COLUMN_EXPORTS_TYPES]: this.ExportsTypes.map((result) => result.toJSON()),
37
- };
38
- }
39
- }
40
- exports.DataExportsTypes = DataExportsTypes;
41
- _DataExportsTypes_ExportsTypes = new WeakMap();
42
- //# sourceMappingURL=dataExportsTypes.js.map
@@ -1,16 +0,0 @@
1
- import { AbstractEntity } from '../../../../../abstractEntity';
2
- export declare enum ExportTypeFields {
3
- COLUMN_NAME = "name",
4
- COLUMN_REFERENCE = "reference"
5
- }
6
- export declare type ExportTypeType = {
7
- [ExportTypeFields.COLUMN_NAME]: string;
8
- [ExportTypeFields.COLUMN_REFERENCE]: string;
9
- };
10
- export declare class ExportType extends AbstractEntity<ExportTypeType> {
11
- #private;
12
- constructor(getExportTypesDataInput: ExportTypeType);
13
- get Name(): string;
14
- get Reference(): string;
15
- toJSON(): ExportTypeType;
16
- }
@@ -1,45 +0,0 @@
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 _ExportType_name, _ExportType_reference;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ExportType = exports.ExportTypeFields = void 0;
16
- const abstractEntity_1 = require("../../../../../abstractEntity");
17
- var ExportTypeFields;
18
- (function (ExportTypeFields) {
19
- ExportTypeFields["COLUMN_NAME"] = "name";
20
- ExportTypeFields["COLUMN_REFERENCE"] = "reference";
21
- })(ExportTypeFields = exports.ExportTypeFields || (exports.ExportTypeFields = {}));
22
- class ExportType extends abstractEntity_1.AbstractEntity {
23
- constructor(getExportTypesDataInput) {
24
- super(getExportTypesDataInput);
25
- _ExportType_name.set(this, void 0);
26
- _ExportType_reference.set(this, void 0);
27
- __classPrivateFieldSet(this, _ExportType_name, getExportTypesDataInput[ExportTypeFields.COLUMN_NAME], "f");
28
- __classPrivateFieldSet(this, _ExportType_reference, getExportTypesDataInput[ExportTypeFields.COLUMN_REFERENCE], "f");
29
- }
30
- get Name() {
31
- return __classPrivateFieldGet(this, _ExportType_name, "f");
32
- }
33
- get Reference() {
34
- return __classPrivateFieldGet(this, _ExportType_reference, "f");
35
- }
36
- toJSON() {
37
- return {
38
- [ExportTypeFields.COLUMN_NAME]: this.Name,
39
- [ExportTypeFields.COLUMN_REFERENCE]: this.Reference,
40
- };
41
- }
42
- }
43
- exports.ExportType = ExportType;
44
- _ExportType_name = new WeakMap(), _ExportType_reference = new WeakMap();
45
- //# sourceMappingURL=exportType.js.map
@@ -1,2 +0,0 @@
1
- export * from './BillingClient';
2
- export * from './entities/Erp/Export/Type/exportType';
@@ -1,19 +0,0 @@
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("./BillingClient"), exports);
18
- __exportStar(require("./entities/Erp/Export/Type/exportType"), exports);
19
- //# sourceMappingURL=index.js.map