mblabs-roccato-backend-commons 1.0.71 → 1.0.72

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.
@@ -0,0 +1,20 @@
1
+ interface Credentials {
2
+ service: string;
3
+ server: string;
4
+ environment: string;
5
+ secretToken: string;
6
+ }
7
+ export declare namespace ElasticAPM {
8
+ namespace CaptureError {
9
+ interface Request {
10
+ data: {
11
+ error: Error | string;
12
+ };
13
+ credentials: Credentials;
14
+ }
15
+ }
16
+ }
17
+ export interface IElasticAPMService {
18
+ captureError(req: ElasticAPM.CaptureError.Request): Promise<void>;
19
+ }
20
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  export * from './aws';
2
2
  export * from './azure';
3
+ export * from './elastic-apm';
3
4
  export * from './firebase';
4
5
  export * from './gcp';
5
6
  export * from './grafana';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./aws"), exports);
18
18
  __exportStar(require("./azure"), exports);
19
+ __exportStar(require("./elastic-apm"), exports);
19
20
  __exportStar(require("./firebase"), exports);
20
21
  __exportStar(require("./gcp"), exports);
21
22
  __exportStar(require("./grafana"), exports);
@@ -0,0 +1,6 @@
1
+ import { ElasticAPM, IElasticAPMService } from '../interfaces';
2
+ declare class ElasticAPMService implements IElasticAPMService {
3
+ captureError(req: ElasticAPM.CaptureError.Request): Promise<void>;
4
+ }
5
+ declare const _default: ElasticAPMService;
6
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class ElasticAPMService {
4
+ captureError(req) {
5
+ throw new Error('Method not implemented.');
6
+ }
7
+ }
8
+ exports.default = new ElasticAPMService();
@@ -1,6 +1,7 @@
1
1
  import { AmazonCloudwatchService, AmazonPinpointService, AmazonS3Service, AmazonSecretManagerService, AmazonSQSService } from './aws';
2
2
  import { AzureApplicationInsightsService, AzureAuthService, AzureCalendarService, AzureCommunicationService, AzureKeyVaultService, AzureStorageBlobService } from './azure';
3
3
  import DateService from './date';
4
+ import ElasticAPMService from './elastic-apm';
4
5
  import FileService from './file';
5
6
  import FirebaseService from './firebase';
6
7
  import { GoogleAuthService, GoogleCalendarService, GoogleMonitorService, GoogleSecretsService, GoogleSheetsService, GoogleStorageService } from './gcp';
@@ -12,4 +13,4 @@ import NodeMailerService from './nodemailer';
12
13
  import RabbitMQService from './rabbit';
13
14
  import RedisService from './redis';
14
15
  import SendgridService from './sendgrid';
15
- export { AmazonCloudwatchService, AmazonPinpointService, AmazonS3Service, AmazonSecretManagerService, AmazonSQSService, AzureApplicationInsightsService, AzureAuthService, AzureCalendarService, AzureCommunicationService, AzureKeyVaultService, AzureStorageBlobService, DateService, FileService, FirebaseService, GoogleAuthService, GoogleCalendarService, GoogleMonitorService, GoogleSecretsService, GoogleSheetsService, GoogleStorageService, GrafanaService, I18nService, KafkaService, KeycloakService, NodeMailerService, RabbitMQService, RedisService, SendgridService, };
16
+ export { AmazonCloudwatchService, AmazonPinpointService, AmazonS3Service, AmazonSecretManagerService, AmazonSQSService, AzureApplicationInsightsService, AzureAuthService, AzureCalendarService, AzureCommunicationService, AzureKeyVaultService, AzureStorageBlobService, DateService, ElasticAPMService, FileService, FirebaseService, GoogleAuthService, GoogleCalendarService, GoogleMonitorService, GoogleSecretsService, GoogleSheetsService, GoogleStorageService, GrafanaService, I18nService, KafkaService, KeycloakService, NodeMailerService, RabbitMQService, RedisService, SendgridService, };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SendgridService = exports.RedisService = exports.RabbitMQService = exports.NodeMailerService = exports.KeycloakService = exports.KafkaService = exports.I18nService = exports.GrafanaService = exports.GoogleStorageService = exports.GoogleSheetsService = exports.GoogleSecretsService = exports.GoogleMonitorService = exports.GoogleCalendarService = exports.GoogleAuthService = exports.FirebaseService = exports.FileService = exports.DateService = exports.AzureStorageBlobService = exports.AzureKeyVaultService = exports.AzureCommunicationService = exports.AzureCalendarService = exports.AzureAuthService = exports.AzureApplicationInsightsService = exports.AmazonSQSService = exports.AmazonSecretManagerService = exports.AmazonS3Service = exports.AmazonPinpointService = exports.AmazonCloudwatchService = void 0;
6
+ exports.SendgridService = exports.RedisService = exports.RabbitMQService = exports.NodeMailerService = exports.KeycloakService = exports.KafkaService = exports.I18nService = exports.GrafanaService = exports.GoogleStorageService = exports.GoogleSheetsService = exports.GoogleSecretsService = exports.GoogleMonitorService = exports.GoogleCalendarService = exports.GoogleAuthService = exports.FirebaseService = exports.FileService = exports.ElasticAPMService = exports.DateService = exports.AzureStorageBlobService = exports.AzureKeyVaultService = exports.AzureCommunicationService = exports.AzureCalendarService = exports.AzureAuthService = exports.AzureApplicationInsightsService = exports.AmazonSQSService = exports.AmazonSecretManagerService = exports.AmazonS3Service = exports.AmazonPinpointService = exports.AmazonCloudwatchService = void 0;
7
7
  const aws_1 = require("./aws");
8
8
  Object.defineProperty(exports, "AmazonCloudwatchService", { enumerable: true, get: function () { return aws_1.AmazonCloudwatchService; } });
9
9
  Object.defineProperty(exports, "AmazonPinpointService", { enumerable: true, get: function () { return aws_1.AmazonPinpointService; } });
@@ -19,6 +19,8 @@ Object.defineProperty(exports, "AzureKeyVaultService", { enumerable: true, get:
19
19
  Object.defineProperty(exports, "AzureStorageBlobService", { enumerable: true, get: function () { return azure_1.AzureStorageBlobService; } });
20
20
  const date_1 = __importDefault(require("./date"));
21
21
  exports.DateService = date_1.default;
22
+ const elastic_apm_1 = __importDefault(require("./elastic-apm"));
23
+ exports.ElasticAPMService = elastic_apm_1.default;
22
24
  const file_1 = __importDefault(require("./file"));
23
25
  exports.FileService = file_1.default;
24
26
  const firebase_1 = __importDefault(require("./firebase"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mblabs-roccato-backend-commons",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,21 @@
1
+ interface Credentials {
2
+ service: string;
3
+ server: string;
4
+ environment: string;
5
+ secretToken: string;
6
+ }
7
+
8
+ export namespace ElasticAPM {
9
+ export namespace CaptureError {
10
+ export interface Request {
11
+ data: {
12
+ error: Error | string;
13
+ };
14
+ credentials: Credentials;
15
+ }
16
+ }
17
+ }
18
+
19
+ export interface IElasticAPMService {
20
+ captureError (req: ElasticAPM.CaptureError.Request): Promise<void>;
21
+ }
@@ -1,5 +1,6 @@
1
1
  export * from './aws';
2
2
  export * from './azure';
3
+ export * from './elastic-apm';
3
4
  export * from './firebase';
4
5
  export * from './gcp';
5
6
  export * from './grafana';
@@ -0,0 +1,9 @@
1
+ import { ElasticAPM, IElasticAPMService } from '../interfaces';
2
+
3
+ class ElasticAPMService implements IElasticAPMService {
4
+ captureError (req: ElasticAPM.CaptureError.Request): Promise<void> {
5
+ throw new Error('Method not implemented.');
6
+ }
7
+ }
8
+
9
+ export default new ElasticAPMService();
@@ -14,6 +14,7 @@ import {
14
14
  AzureStorageBlobService,
15
15
  } from './azure';
16
16
  import DateService from './date';
17
+ import ElasticAPMService from './elastic-apm';
17
18
  import FileService from './file';
18
19
  import FirebaseService from './firebase';
19
20
  import {
@@ -46,6 +47,7 @@ export {
46
47
  AzureKeyVaultService,
47
48
  AzureStorageBlobService,
48
49
  DateService,
50
+ ElasticAPMService,
49
51
  FileService,
50
52
  FirebaseService,
51
53
  GoogleAuthService,