@devopness/sdk-js
Advanced tools
Comparing version 1.22.0 to 1.23.0
@@ -18,2 +18,3 @@ import { ConfigurationOptions } from './services/ApiBaseService'; | ||
import { SocialAccountService } from './services/SocialAccountService'; | ||
import { LogService } from './services/LogService'; | ||
export declare class DevopnessApiClient { | ||
@@ -26,2 +27,3 @@ actions: ActionsApiService; | ||
environments: EnvironmentService; | ||
logs: LogService; | ||
networkRules: NetworkRuleService; | ||
@@ -28,0 +30,0 @@ projects: ProjectService; |
@@ -21,10 +21,9 @@ "use strict"; | ||
const SocialAccountService_1 = require("./services/SocialAccountService"); | ||
const LogService_1 = require("./services/LogService"); | ||
class DevopnessApiClient { | ||
constructor(options) { | ||
ApiBaseService_1.ApiBaseService.configuration = new ApiBaseService_1.Configuration(options || {}); | ||
// we'd better initialize the services explicitly, instead of auto initialize them on property | ||
// declaration in the beginning of the class, cause some (or all) of them might need constructor | ||
// parameters. Furthermore, we ensure all assertions for required parameters (like the | ||
// above check for `baseUrl`) are quickly returned to the end user before spending | ||
// time loading extra resources | ||
// we initialize the services explicitly, instead of auto initialize them on property declaration in the beginning of the class, | ||
// cause some (or all) of them depend on `ApiBaseService.configuration` property be set. Furthermore, we ensure all assertions | ||
// for non provided required parameters are quickly returned to the end user before spending time loading extra resources | ||
this.actions = new actions_api_1.ActionsApiService(); | ||
@@ -36,2 +35,3 @@ this.applications = new ApplicationService_1.ApplicationService(); | ||
this.environments = new EnvironmentService_1.EnvironmentService(); | ||
this.logs = new LogService_1.LogService(); | ||
this.networkRules = new NetworkRuleService_1.NetworkRuleService(); | ||
@@ -38,0 +38,0 @@ this.projects = new ProjectService_1.ProjectService(); |
{ | ||
"name": "@devopness/sdk-js", | ||
"version": "1.22.0", | ||
"version": "1.23.0", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
321223
227
8634