@aloma.io/integration-sdk 3.8.17 → 3.8.19

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.
@@ -105,9 +105,7 @@ export declare abstract class AbstractController {
105
105
  __healthCheck(configSchema: {
106
106
  [key: string]: ConfigField;
107
107
  }): Promise<void>;
108
- defaultConfigCheck(configSchema: {
109
- [key: string]: ConfigField;
110
- }): Promise<void>;
108
+ private defaultConfigCheck;
111
109
  _doStart(config: any, oauth: any, newTask: any, updateTask: any, getClient: any, getBlob: any, getBlobContent: any, createBlob: any): Promise<void>;
112
110
  _doStop(isShutdown?: boolean): Promise<void>;
113
111
  }
@@ -137,7 +137,7 @@ export class AbstractController {
137
137
  if (!field)
138
138
  return;
139
139
  if (!field.optional && config[key] == null) {
140
- return `${field.name} is required`;
140
+ return `Configuration: ${field.name} is required`;
141
141
  }
142
142
  })
143
143
  .filter((what) => !!what);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.8.17",
3
+ "version": "3.8.19",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -1,6 +1,6 @@
1
- import {ConfigField} from '../index.mjs';
1
+ import { ConfigField } from '../index.mjs';
2
2
  import Fetcher from '../internal/fetcher/fetcher.mjs';
3
- import {OAuth} from '../internal/fetcher/oauth-fetcher.mjs';
3
+ import { OAuth } from '../internal/fetcher/oauth-fetcher.mjs';
4
4
 
5
5
  export abstract class AbstractController {
6
6
  /**
@@ -183,7 +183,7 @@ export abstract class AbstractController {
183
183
  }
184
184
  }
185
185
 
186
- async defaultConfigCheck(configSchema: {[key: string]: ConfigField}): Promise<void> {
186
+ private async defaultConfigCheck(configSchema: {[key: string]: ConfigField}): Promise<void> {
187
187
  const config = this.config;
188
188
 
189
189
  const missing = Object.entries(configSchema)
@@ -191,7 +191,7 @@ export abstract class AbstractController {
191
191
  if (!field) return;
192
192
 
193
193
  if (!field.optional && config[key] == null) {
194
- return `${field.name} is required`;
194
+ return `Configuration: ${field.name} is required`;
195
195
  }
196
196
  })
197
197
  .filter((what) => !!what);