ibm-cloud-sdk-core 3.0.1 → 3.2.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.
@@ -8,6 +8,7 @@
8
8
 
9
9
  import { AxiosInstance } from 'axios';
10
10
  import type { CookieJar } from 'tough-cookie';
11
+ import { Debugger } from 'debug';
11
12
  import { OutgoingHttpHeaders } from 'http';
12
13
  import { Stream } from 'stream';
13
14
 
@@ -64,6 +65,7 @@ export class BaseService {
64
65
  enableRetries(retryOptions?: RetryOptions): void;
65
66
  getAuthenticator(): any;
66
67
  getHttpClient(): AxiosInstance;
68
+ setDefaultHeaders(headers: OutgoingHttpHeaders): void;
67
69
  setEnableGzipCompression(setting: boolean): void;
68
70
  setServiceUrl(url: string): void;
69
71
  }
@@ -226,6 +228,9 @@ export function getMissingParams(params: {
226
228
  [key: string]: any;
227
229
  }, requires: string[]): null | Error;
228
230
 
231
+ // @public
232
+ export function getNewLogger(moduleName: string): SDKLogger;
233
+
229
234
  // @public
230
235
  function getOptions(createRequestMock: any): any;
231
236
 
@@ -345,6 +350,20 @@ export function readExternalSources(serviceName: string): any;
345
350
  // @public
346
351
  export function removeSuffix(str: string, suffix: string): string;
347
352
 
353
+ // @public (undocumented)
354
+ export interface SDKLogger {
355
+ // (undocumented)
356
+ debug: Debugger;
357
+ // (undocumented)
358
+ error: Debugger;
359
+ // (undocumented)
360
+ info: Debugger;
361
+ // (undocumented)
362
+ verbose: Debugger;
363
+ // (undocumented)
364
+ warn: Debugger;
365
+ }
366
+
348
367
  // @public
349
368
  export function streamToPromise(stream: Stream): Promise<any>;
350
369
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { AxiosInstance } from 'axios';
4
4
  import type { CookieJar } from 'tough-cookie';
5
+ import { Debugger } from 'debug';
5
6
  import { OutgoingHttpHeaders } from 'http';
6
7
  import { Stream } from 'stream';
7
8
 
@@ -158,6 +159,12 @@ export declare class BaseService {
158
159
  * @param {string} url The base URL for the service.
159
160
  */
160
161
  setServiceUrl(url: string): void;
162
+ /**
163
+ * Set the HTTP headers to be sent in every request.
164
+ *
165
+ * @param {OutgoingHttpHeaders} headers The map of headers to include in requests.
166
+ */
167
+ setDefaultHeaders(headers: OutgoingHttpHeaders): void;
161
168
  /**
162
169
  * Turn request body compression on or off.
163
170
  *
@@ -713,6 +720,23 @@ export declare class BaseService {
713
720
  [key: string]: any;
714
721
  }, requires: string[]): null | Error;
715
722
 
723
+ /**
724
+ * Return a new logger, formatted with a particular name. The logging functions, in
725
+ * order of increasing verbosity, are: `error`, `warn`, `info`, `verbose`, and `debug`.
726
+ *
727
+ * The logger will be an instance of the `debug` package and utilizes its support for
728
+ * configuration with environment variables.
729
+ *
730
+ * Additionally, the logger will be turned on automatically if the "NODE_DEBUG"
731
+ * environment variable is set to "axios".
732
+ *
733
+ * @param {string} moduleName - the namespace for the logger. The name will appear in
734
+ * the logs and it will be the name used for configuring the log level.
735
+ *
736
+ * @returns {SDKLogger} the new logger
737
+ */
738
+ export declare function getNewLogger(moduleName: string): SDKLogger;
739
+
716
740
  /**
717
741
  * This method extracts the `options` property from the object passed into `createRequest`. This property is
718
742
  * an object containing all of the SDK method-specific information (like `path` and `body`) used to build a request.
@@ -1228,6 +1252,14 @@ export declare class BaseService {
1228
1252
  maxRetryInterval?: number;
1229
1253
  }
1230
1254
 
1255
+ export declare interface SDKLogger {
1256
+ error: Debugger;
1257
+ warn: Debugger;
1258
+ info: Debugger;
1259
+ verbose: Debugger;
1260
+ debug: Debugger;
1261
+ }
1262
+
1231
1263
  /**
1232
1264
  * Helper method that can be bound to a stream - it captures all of the results, and returns a promise that resolves to the final buffer
1233
1265
  * or array of text chunks
package/index.d.ts CHANGED
@@ -24,3 +24,4 @@ export { default as qs } from './lib/querystring';
24
24
  export { default as contentType } from './lib/content-type';
25
25
  export * from './lib/stream-to-promise';
26
26
  export { unitTestUtils };
27
+ export { getNewLogger, SDKLogger } from './lib/get-new-logger';
package/index.js CHANGED
@@ -39,3 +39,5 @@ exports.qs = querystring_1.default;
39
39
  var content_type_1 = require("./lib/content-type");
40
40
  exports.contentType = content_type_1.default;
41
41
  __export(require("./lib/stream-to-promise"));
42
+ var get_new_logger_1 = require("./lib/get-new-logger");
43
+ exports.getNewLogger = get_new_logger_1.getNewLogger;
@@ -87,6 +87,12 @@ export declare class BaseService {
87
87
  * @param {string} url The base URL for the service.
88
88
  */
89
89
  setServiceUrl(url: string): void;
90
+ /**
91
+ * Set the HTTP headers to be sent in every request.
92
+ *
93
+ * @param {OutgoingHttpHeaders} headers The map of headers to include in requests.
94
+ */
95
+ setDefaultHeaders(headers: OutgoingHttpHeaders): void;
90
96
  /**
91
97
  * Turn request body compression on or off.
92
98
  *
@@ -106,6 +106,18 @@ var BaseService = /** @class */ (function () {
106
106
  this.baseOptions.serviceUrl = helper_1.stripTrailingSlash(url);
107
107
  }
108
108
  };
109
+ /**
110
+ * Set the HTTP headers to be sent in every request.
111
+ *
112
+ * @param {OutgoingHttpHeaders} headers The map of headers to include in requests.
113
+ */
114
+ BaseService.prototype.setDefaultHeaders = function (headers) {
115
+ if (typeof headers !== 'object') {
116
+ // do nothing, for now
117
+ return;
118
+ }
119
+ this.baseOptions.headers = headers;
120
+ };
109
121
  /**
110
122
  * Turn request body compression on or off.
111
123
  *
@@ -0,0 +1,39 @@
1
+ /**
2
+ * (C) Copyright IBM Corp. 2022.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Debugger } from 'debug';
17
+ export interface SDKLogger {
18
+ error: Debugger;
19
+ warn: Debugger;
20
+ info: Debugger;
21
+ verbose: Debugger;
22
+ debug: Debugger;
23
+ }
24
+ /**
25
+ * Return a new logger, formatted with a particular name. The logging functions, in
26
+ * order of increasing verbosity, are: `error`, `warn`, `info`, `verbose`, and `debug`.
27
+ *
28
+ * The logger will be an instance of the `debug` package and utilizes its support for
29
+ * configuration with environment variables.
30
+ *
31
+ * Additionally, the logger will be turned on automatically if the "NODE_DEBUG"
32
+ * environment variable is set to "axios".
33
+ *
34
+ * @param {string} moduleName - the namespace for the logger. The name will appear in
35
+ * the logs and it will be the name used for configuring the log level.
36
+ *
37
+ * @returns {SDKLogger} the new logger
38
+ */
39
+ export declare function getNewLogger(moduleName: string): SDKLogger;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /**
3
+ * (C) Copyright IBM Corp. 2022.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ var debug_1 = __importDefault(require("debug"));
22
+ /**
23
+ * Return a new logger, formatted with a particular name. The logging functions, in
24
+ * order of increasing verbosity, are: `error`, `warn`, `info`, `verbose`, and `debug`.
25
+ *
26
+ * The logger will be an instance of the `debug` package and utilizes its support for
27
+ * configuration with environment variables.
28
+ *
29
+ * Additionally, the logger will be turned on automatically if the "NODE_DEBUG"
30
+ * environment variable is set to "axios".
31
+ *
32
+ * @param {string} moduleName - the namespace for the logger. The name will appear in
33
+ * the logs and it will be the name used for configuring the log level.
34
+ *
35
+ * @returns {SDKLogger} the new logger
36
+ */
37
+ function getNewLogger(moduleName) {
38
+ var debug = debug_1.default(moduleName + ":debug");
39
+ var error = debug_1.default(moduleName + ":error");
40
+ var info = debug_1.default(moduleName + ":info");
41
+ var verbose = debug_1.default(moduleName + ":verbose");
42
+ var warn = debug_1.default(moduleName + ":warning");
43
+ // enable loggers if axios flag is set & mimic log levels severity
44
+ if (process.env.NODE_DEBUG === 'axios') {
45
+ debug.enabled = true;
46
+ }
47
+ if (debug.enabled) {
48
+ verbose.enabled = true;
49
+ }
50
+ if (verbose.enabled) {
51
+ info.enabled = true;
52
+ }
53
+ if (info.enabled) {
54
+ warn.enabled = true;
55
+ }
56
+ if (warn.enabled) {
57
+ error.enabled = true;
58
+ }
59
+ var newLogger = {
60
+ debug: debug,
61
+ error: error,
62
+ info: info,
63
+ verbose: verbose,
64
+ warn: warn,
65
+ };
66
+ return newLogger;
67
+ }
68
+ exports.getNewLogger = getNewLogger;
package/lib/logger.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * (C) Copyright IBM Corp. 2019, 2021.
2
+ * (C) Copyright IBM Corp. 2019, 2022.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import logger from 'debug';
17
- declare const _default: {
18
- debug: logger.Debugger;
19
- error: logger.Debugger;
20
- info: logger.Debugger;
21
- verbose: logger.Debugger;
22
- warn: logger.Debugger;
23
- };
16
+ declare const _default: import("./get-new-logger").SDKLogger;
24
17
  export default _default;
package/lib/logger.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * (C) Copyright IBM Corp. 2019, 2021.
3
+ * (C) Copyright IBM Corp. 2019, 2022.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -14,37 +14,6 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- var __importDefault = (this && this.__importDefault) || function (mod) {
18
- return (mod && mod.__esModule) ? mod : { "default": mod };
19
- };
20
17
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var debug_1 = __importDefault(require("debug"));
22
- var debug = debug_1.default('ibm-cloud-sdk-core:debug');
23
- var error = debug_1.default('ibm-cloud-sdk-core:error');
24
- var info = debug_1.default('ibm-cloud-sdk-core:info');
25
- var verbose = debug_1.default('ibm-cloud-sdk-core:verbose');
26
- var warn = debug_1.default('ibm-cloud-sdk-core:warning');
27
- // enable loggers if axios flag is set & mimic log levels severity
28
- if (process.env.NODE_DEBUG === 'axios') {
29
- debug.enabled = true;
30
- }
31
- if (debug.enabled) {
32
- verbose.enabled = true;
33
- }
34
- if (verbose.enabled) {
35
- info.enabled = true;
36
- }
37
- if (info.enabled) {
38
- warn.enabled = true;
39
- }
40
- if (warn.enabled) {
41
- error.enabled = true;
42
- }
43
- // export loggers;
44
- exports.default = {
45
- debug: debug,
46
- error: error,
47
- info: info,
48
- verbose: verbose,
49
- warn: warn,
50
- };
18
+ var get_new_logger_1 = require("./get-new-logger");
19
+ exports.default = get_new_logger_1.getNewLogger('ibm-cloud-sdk-core');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ibm-cloud-sdk-core",
3
- "version": "3.0.1",
3
+ "version": "3.2.0",
4
4
  "description": "Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.",
5
5
  "main": "index.js",
6
6
  "typings": "./es/index.d.ts",
@@ -1088,6 +1088,53 @@
1088
1088
  "parameters": [],
1089
1089
  "name": "getHttpClient"
1090
1090
  },
1091
+ {
1092
+ "kind": "Method",
1093
+ "canonicalReference": "ibm-cloud-sdk-core!BaseService#setDefaultHeaders:member(1)",
1094
+ "docComment": "/**\n * Set the HTTP headers to be sent in every request.\n *\n * @param headers - The map of headers to include in requests.\n */\n",
1095
+ "excerptTokens": [
1096
+ {
1097
+ "kind": "Content",
1098
+ "text": "setDefaultHeaders(headers: "
1099
+ },
1100
+ {
1101
+ "kind": "Reference",
1102
+ "text": "OutgoingHttpHeaders",
1103
+ "canonicalReference": "!\"\\\"http\\\"\".OutgoingHttpHeaders:interface"
1104
+ },
1105
+ {
1106
+ "kind": "Content",
1107
+ "text": "): "
1108
+ },
1109
+ {
1110
+ "kind": "Content",
1111
+ "text": "void"
1112
+ },
1113
+ {
1114
+ "kind": "Content",
1115
+ "text": ";"
1116
+ }
1117
+ ],
1118
+ "isOptional": false,
1119
+ "isStatic": false,
1120
+ "returnTypeTokenRange": {
1121
+ "startIndex": 3,
1122
+ "endIndex": 4
1123
+ },
1124
+ "releaseTag": "Public",
1125
+ "overloadIndex": 1,
1126
+ "parameters": [
1127
+ {
1128
+ "parameterName": "headers",
1129
+ "parameterTypeTokenRange": {
1130
+ "startIndex": 1,
1131
+ "endIndex": 2
1132
+ },
1133
+ "isOptional": false
1134
+ }
1135
+ ],
1136
+ "name": "setDefaultHeaders"
1137
+ },
1091
1138
  {
1092
1139
  "kind": "Method",
1093
1140
  "canonicalReference": "ibm-cloud-sdk-core!BaseService#setEnableGzipCompression:member(1)",
@@ -3355,6 +3402,51 @@
3355
3402
  ],
3356
3403
  "name": "getMissingParams"
3357
3404
  },
3405
+ {
3406
+ "kind": "Function",
3407
+ "canonicalReference": "ibm-cloud-sdk-core!getNewLogger:function(1)",
3408
+ "docComment": "/**\n * Return a new logger, formatted with a particular name. The logging functions, in order of increasing verbosity, are: `error`, `warn`, `info`, `verbose`, and `debug`.\n *\n * The logger will be an instance of the `debug` package and utilizes its support for configuration with environment variables.\n *\n * Additionally, the logger will be turned on automatically if the \"NODE_DEBUG\" environment variable is set to \"axios\".\n *\n * @param moduleName - the namespace for the logger. The name will appear in the logs and it will be the name used for configuring the log level.\n *\n * @returns {SDKLogger} the new logger\n */\n",
3409
+ "excerptTokens": [
3410
+ {
3411
+ "kind": "Content",
3412
+ "text": "export declare function getNewLogger(moduleName: "
3413
+ },
3414
+ {
3415
+ "kind": "Content",
3416
+ "text": "string"
3417
+ },
3418
+ {
3419
+ "kind": "Content",
3420
+ "text": "): "
3421
+ },
3422
+ {
3423
+ "kind": "Reference",
3424
+ "text": "SDKLogger",
3425
+ "canonicalReference": "ibm-cloud-sdk-core!SDKLogger:interface"
3426
+ },
3427
+ {
3428
+ "kind": "Content",
3429
+ "text": ";"
3430
+ }
3431
+ ],
3432
+ "returnTypeTokenRange": {
3433
+ "startIndex": 3,
3434
+ "endIndex": 4
3435
+ },
3436
+ "releaseTag": "Public",
3437
+ "overloadIndex": 1,
3438
+ "parameters": [
3439
+ {
3440
+ "parameterName": "moduleName",
3441
+ "parameterTypeTokenRange": {
3442
+ "startIndex": 1,
3443
+ "endIndex": 2
3444
+ },
3445
+ "isOptional": false
3446
+ }
3447
+ ],
3448
+ "name": "getNewLogger"
3449
+ },
3358
3450
  {
3359
3451
  "kind": "Function",
3360
3452
  "canonicalReference": "ibm-cloud-sdk-core!getQueryParam:function(1)",
@@ -5196,6 +5288,157 @@
5196
5288
  ],
5197
5289
  "name": "removeSuffix"
5198
5290
  },
5291
+ {
5292
+ "kind": "Interface",
5293
+ "canonicalReference": "ibm-cloud-sdk-core!SDKLogger:interface",
5294
+ "docComment": "",
5295
+ "excerptTokens": [
5296
+ {
5297
+ "kind": "Content",
5298
+ "text": "export interface SDKLogger "
5299
+ }
5300
+ ],
5301
+ "releaseTag": "Public",
5302
+ "name": "SDKLogger",
5303
+ "members": [
5304
+ {
5305
+ "kind": "PropertySignature",
5306
+ "canonicalReference": "ibm-cloud-sdk-core!SDKLogger#debug:member",
5307
+ "docComment": "",
5308
+ "excerptTokens": [
5309
+ {
5310
+ "kind": "Content",
5311
+ "text": "debug: "
5312
+ },
5313
+ {
5314
+ "kind": "Reference",
5315
+ "text": "Debugger",
5316
+ "canonicalReference": "@types/debug!~debug.Debugger:interface"
5317
+ },
5318
+ {
5319
+ "kind": "Content",
5320
+ "text": ";"
5321
+ }
5322
+ ],
5323
+ "isOptional": false,
5324
+ "releaseTag": "Public",
5325
+ "name": "debug",
5326
+ "propertyTypeTokenRange": {
5327
+ "startIndex": 1,
5328
+ "endIndex": 2
5329
+ }
5330
+ },
5331
+ {
5332
+ "kind": "PropertySignature",
5333
+ "canonicalReference": "ibm-cloud-sdk-core!SDKLogger#error:member",
5334
+ "docComment": "",
5335
+ "excerptTokens": [
5336
+ {
5337
+ "kind": "Content",
5338
+ "text": "error: "
5339
+ },
5340
+ {
5341
+ "kind": "Reference",
5342
+ "text": "Debugger",
5343
+ "canonicalReference": "@types/debug!~debug.Debugger:interface"
5344
+ },
5345
+ {
5346
+ "kind": "Content",
5347
+ "text": ";"
5348
+ }
5349
+ ],
5350
+ "isOptional": false,
5351
+ "releaseTag": "Public",
5352
+ "name": "error",
5353
+ "propertyTypeTokenRange": {
5354
+ "startIndex": 1,
5355
+ "endIndex": 2
5356
+ }
5357
+ },
5358
+ {
5359
+ "kind": "PropertySignature",
5360
+ "canonicalReference": "ibm-cloud-sdk-core!SDKLogger#info:member",
5361
+ "docComment": "",
5362
+ "excerptTokens": [
5363
+ {
5364
+ "kind": "Content",
5365
+ "text": "info: "
5366
+ },
5367
+ {
5368
+ "kind": "Reference",
5369
+ "text": "Debugger",
5370
+ "canonicalReference": "@types/debug!~debug.Debugger:interface"
5371
+ },
5372
+ {
5373
+ "kind": "Content",
5374
+ "text": ";"
5375
+ }
5376
+ ],
5377
+ "isOptional": false,
5378
+ "releaseTag": "Public",
5379
+ "name": "info",
5380
+ "propertyTypeTokenRange": {
5381
+ "startIndex": 1,
5382
+ "endIndex": 2
5383
+ }
5384
+ },
5385
+ {
5386
+ "kind": "PropertySignature",
5387
+ "canonicalReference": "ibm-cloud-sdk-core!SDKLogger#verbose:member",
5388
+ "docComment": "",
5389
+ "excerptTokens": [
5390
+ {
5391
+ "kind": "Content",
5392
+ "text": "verbose: "
5393
+ },
5394
+ {
5395
+ "kind": "Reference",
5396
+ "text": "Debugger",
5397
+ "canonicalReference": "@types/debug!~debug.Debugger:interface"
5398
+ },
5399
+ {
5400
+ "kind": "Content",
5401
+ "text": ";"
5402
+ }
5403
+ ],
5404
+ "isOptional": false,
5405
+ "releaseTag": "Public",
5406
+ "name": "verbose",
5407
+ "propertyTypeTokenRange": {
5408
+ "startIndex": 1,
5409
+ "endIndex": 2
5410
+ }
5411
+ },
5412
+ {
5413
+ "kind": "PropertySignature",
5414
+ "canonicalReference": "ibm-cloud-sdk-core!SDKLogger#warn:member",
5415
+ "docComment": "",
5416
+ "excerptTokens": [
5417
+ {
5418
+ "kind": "Content",
5419
+ "text": "warn: "
5420
+ },
5421
+ {
5422
+ "kind": "Reference",
5423
+ "text": "Debugger",
5424
+ "canonicalReference": "@types/debug!~debug.Debugger:interface"
5425
+ },
5426
+ {
5427
+ "kind": "Content",
5428
+ "text": ";"
5429
+ }
5430
+ ],
5431
+ "isOptional": false,
5432
+ "releaseTag": "Public",
5433
+ "name": "warn",
5434
+ "propertyTypeTokenRange": {
5435
+ "startIndex": 1,
5436
+ "endIndex": 2
5437
+ }
5438
+ }
5439
+ ],
5440
+ "extendsTokenRanges": []
5441
+ },
5199
5442
  {
5200
5443
  "kind": "Function",
5201
5444
  "canonicalReference": "ibm-cloud-sdk-core!streamToPromise:function(1)",
@@ -8,6 +8,7 @@
8
8
 
9
9
  import { AxiosInstance } from 'axios';
10
10
  import type { CookieJar } from 'tough-cookie';
11
+ import { Debugger } from 'debug';
11
12
  import { OutgoingHttpHeaders } from 'http';
12
13
  import { Stream } from 'stream';
13
14
 
@@ -64,6 +65,7 @@ export class BaseService {
64
65
  enableRetries(retryOptions?: RetryOptions): void;
65
66
  getAuthenticator(): any;
66
67
  getHttpClient(): AxiosInstance;
68
+ setDefaultHeaders(headers: OutgoingHttpHeaders): void;
67
69
  setEnableGzipCompression(setting: boolean): void;
68
70
  setServiceUrl(url: string): void;
69
71
  }
@@ -226,6 +228,9 @@ export function getMissingParams(params: {
226
228
  [key: string]: any;
227
229
  }, requires: string[]): null | Error;
228
230
 
231
+ // @public
232
+ export function getNewLogger(moduleName: string): SDKLogger;
233
+
229
234
  // @public
230
235
  function getOptions(createRequestMock: any): any;
231
236
 
@@ -345,6 +350,20 @@ export function readExternalSources(serviceName: string): any;
345
350
  // @public
346
351
  export function removeSuffix(str: string, suffix: string): string;
347
352
 
353
+ // @public (undocumented)
354
+ export interface SDKLogger {
355
+ // (undocumented)
356
+ debug: Debugger;
357
+ // (undocumented)
358
+ error: Debugger;
359
+ // (undocumented)
360
+ info: Debugger;
361
+ // (undocumented)
362
+ verbose: Debugger;
363
+ // (undocumented)
364
+ warn: Debugger;
365
+ }
366
+
348
367
  // @public
349
368
  export function streamToPromise(stream: Stream): Promise<any>;
350
369