@nomalism-com/api 0.13.14 → 0.13.15
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/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -265,6 +265,7 @@ interface IServiceExternalPath {
|
|
|
265
265
|
interface IOptions {
|
|
266
266
|
processEnvironment: IEnvironment;
|
|
267
267
|
services: Record<IService, string>;
|
|
268
|
+
gatewayUrl?: string;
|
|
268
269
|
apikey?: string;
|
|
269
270
|
}
|
|
270
271
|
export interface IModuleConstructor {
|
|
@@ -405,5 +406,5 @@ export declare class API {
|
|
|
405
406
|
SavedEmPicking: SavedEmPickingClass;
|
|
406
407
|
EmailTemplate: EmailTemplateClass;
|
|
407
408
|
EmailTemplateAttachment: EmailTemplateAttachmentClass;
|
|
408
|
-
constructor({ processEnvironment, services, apikey }: IOptions);
|
|
409
|
+
constructor({ processEnvironment, services, gatewayUrl, apikey }: IOptions);
|
|
409
410
|
}
|
package/dist/index.js
CHANGED
|
@@ -298,7 +298,7 @@ var serviceEnum = [
|
|
|
298
298
|
];
|
|
299
299
|
var API = (function () {
|
|
300
300
|
function API(_a) {
|
|
301
|
-
var processEnvironment = _a.processEnvironment, services = _a.services, apikey = _a.apikey;
|
|
301
|
+
var processEnvironment = _a.processEnvironment, services = _a.services, gatewayUrl = _a.gatewayUrl, apikey = _a.apikey;
|
|
302
302
|
var _this = this;
|
|
303
303
|
this.processEnvironment = processEnvironment || 'localhost';
|
|
304
304
|
this.defaultHeaders = apikey
|
|
@@ -307,6 +307,7 @@ var API = (function () {
|
|
|
307
307
|
}
|
|
308
308
|
: undefined;
|
|
309
309
|
this.client = axios_1.default.create({
|
|
310
|
+
baseURL: gatewayUrl,
|
|
310
311
|
headers: this.defaultHeaders,
|
|
311
312
|
});
|
|
312
313
|
var getServicePaths = function (service) {
|