@apipass/event-notification 0.0.14-alpha.0 → 0.0.17-alpha.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.
@@ -1,6 +1,6 @@
1
1
  import { AWSEventNotificationOptions } from "./event-notification-options";
2
- import { EventNotificationService } from "./event-notification-service";
3
- export declare class AWSEventNotificationService implements EventNotificationService {
2
+ import { EventNotificationServiceFactory } from './event-notification-service-factory';
3
+ export declare class AWSEventNotificationService implements EventNotificationServiceFactory {
4
4
  private readonly logger;
5
5
  private region;
6
6
  private accountId;
@@ -12,4 +12,4 @@ class EventNotificationServiceFactory {
12
12
  }
13
13
  }
14
14
  exports.EventNotificationServiceFactory = EventNotificationServiceFactory;
15
- //# sourceMappingURL=event-notification-service.js.map
15
+ //# sourceMappingURL=event-notification-service-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-notification-service-factory.js","sourceRoot":"","sources":["../src/event-notification-service-factory.ts"],"names":[],"mappings":";;;AACA,qFAA+E;AAC/E,6EAAqE;AAErE,MAAa,+BAA+B;IAExC,MAAM,CAAC,cAAc,CAAC,IAAY;QAC9B,QAAQ,IAAI,EAAE;YACV,KAAK,kDAAqB,CAAC,GAAG,CAAC,CAAC,OAAO,4DAA2B,CAAA;YAClE,OAAO,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;SACjE;IACL,CAAC;CACJ;AARD,0EAQC"}
@@ -11,12 +11,12 @@ exports.EventNotificationModule = void 0;
11
11
  const config_1 = require("@nestjs/config");
12
12
  const common_1 = require("@nestjs/common");
13
13
  const event_notification_constants_1 = require("./event-notification-constants");
14
- const event_notification_service_1 = require("./event-notification-service");
14
+ const event_notification_service_factory_1 = require("./event-notification-service-factory");
15
15
  let EventNotificationModule = EventNotificationModule_1 = class EventNotificationModule {
16
16
  static forRoot(options) {
17
17
  const serviceProvider = {
18
18
  provide: event_notification_constants_1.EVENT_NOTIFICATION_SERVICE,
19
- useClass: event_notification_service_1.EventNotificationServiceFactory.createInstance(options.type),
19
+ useClass: event_notification_service_factory_1.EventNotificationServiceFactory.createInstance(options.type),
20
20
  };
21
21
  return {
22
22
  module: EventNotificationModule_1,
@@ -33,7 +33,7 @@ let EventNotificationModule = EventNotificationModule_1 = class EventNotificatio
33
33
  static forRootAsync(asyncOptions) {
34
34
  const serviceProvider = {
35
35
  provide: event_notification_constants_1.EVENT_NOTIFICATION_SERVICE,
36
- useClass: event_notification_service_1.EventNotificationServiceFactory.createInstance(asyncOptions.type),
36
+ useClass: event_notification_service_factory_1.EventNotificationServiceFactory.createInstance(asyncOptions.type),
37
37
  };
38
38
  return {
39
39
  module: EventNotificationModule_1,
@@ -1 +1 @@
1
- {"version":3,"file":"event-notification.module.js","sourceRoot":"","sources":["../src/event-notification.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA8C;AAC9C,2CAAyE;AACzE,iFAAuG;AAEvG,6EAA+E;AAIxE,IAAM,uBAAuB,+BAA7B,MAAM,uBAAuB;IAEhC,MAAM,CAAC,OAAO,CAAC,OAAiC;QAE5C,MAAM,eAAe,GAAa;YAC9B,OAAO,EAAE,yDAA0B;YACnC,QAAQ,EAAE,4DAA+B,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC;SACzE,CAAA;QAED,OAAO;YACH,MAAM,EAAE,yBAAuB;YAC/B,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,CAAC,qBAAY,CAAC;YACvB,SAAS,EAAE,CAAE,eAAe,EAAG;oBAC3B,OAAO,EAAE,wDAAyB;oBAClC,QAAQ,EAAE,OAAO;iBACpB;aACA;YACD,OAAO,EAAE,CAAE,eAAe,CAAE;SAC/B,CAAA;IACL,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,YAA2C;QAE3D,MAAM,eAAe,GAAa;YAC9B,OAAO,EAAE,yDAA0B;YACnC,QAAQ,EAAE,4DAA+B,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,CAAC;SAC9E,CAAA;QAED,OAAO;YACH,MAAM,EAAE,yBAAuB;YAC/B,SAAS,EAAE;gBACP,eAAe;gBACf;oBACI,OAAO,EAAE,wDAAyB;oBAClC,UAAU,EAAE,YAAY,CAAC,UAAU;oBACnC,MAAM,EAAE,YAAY,CAAC,MAAM;iBAC9B;aACJ;YACD,OAAO,EAAE;gBACL,eAAe;aAClB;SACJ,CAAC;IAEN,CAAC;CAEJ,CAAA;AA9CY,uBAAuB;IAFnC,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,uBAAuB,CA8CnC;AA9CY,0DAAuB"}
1
+ {"version":3,"file":"event-notification.module.js","sourceRoot":"","sources":["../src/event-notification.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA8C;AAC9C,2CAAyE;AACzE,iFAAuG;AAEvG,6FAAuF;AAIhF,IAAM,uBAAuB,+BAA7B,MAAM,uBAAuB;IAEhC,MAAM,CAAC,OAAO,CAAC,OAAiC;QAE5C,MAAM,eAAe,GAAa;YAC9B,OAAO,EAAE,yDAA0B;YACnC,QAAQ,EAAE,oEAA+B,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC;SACzE,CAAA;QAED,OAAO;YACH,MAAM,EAAE,yBAAuB;YAC/B,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,CAAC,qBAAY,CAAC;YACvB,SAAS,EAAE,CAAE,eAAe,EAAG;oBAC3B,OAAO,EAAE,wDAAyB;oBAClC,QAAQ,EAAE,OAAO;iBACpB;aACA;YACD,OAAO,EAAE,CAAE,eAAe,CAAE;SAC/B,CAAA;IACL,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,YAA2C;QAE3D,MAAM,eAAe,GAAa;YAC9B,OAAO,EAAE,yDAA0B;YACnC,QAAQ,EAAE,oEAA+B,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,CAAC;SAC9E,CAAA;QAED,OAAO;YACH,MAAM,EAAE,yBAAuB;YAC/B,SAAS,EAAE;gBACP,eAAe;gBACf;oBACI,OAAO,EAAE,wDAAyB;oBAClC,UAAU,EAAE,YAAY,CAAC,UAAU;oBACnC,MAAM,EAAE,YAAY,CAAC,MAAM;iBAC9B;aACJ;YACD,OAAO,EAAE;gBACL,eAAe;aAClB;SACJ,CAAC;IAEN,CAAC;CAEJ,CAAA;AA9CY,uBAAuB;IAFnC,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,uBAAuB,CA8CnC;AA9CY,0DAAuB"}
package/lib/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './event-notification.module';
2
- export * from './event-notification-service';
2
+ export * from './event-notification-service-factory';
3
3
  export * from './event-notification-options';
4
4
  export * from './event-notification-constants';
5
+ export { EVENT_NOTIFICATION_SERVICE, EVENT_NOTIFICATION_OPTION } from './event-notification-constants';
package/lib/index.js CHANGED
@@ -14,8 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.EVENT_NOTIFICATION_OPTION = exports.EVENT_NOTIFICATION_SERVICE = void 0;
17
18
  __exportStar(require("./event-notification.module"), exports);
18
- __exportStar(require("./event-notification-service"), exports);
19
+ __exportStar(require("./event-notification-service-factory"), exports);
19
20
  __exportStar(require("./event-notification-options"), exports);
20
21
  __exportStar(require("./event-notification-constants"), exports);
22
+ var event_notification_constants_1 = require("./event-notification-constants");
23
+ Object.defineProperty(exports, "EVENT_NOTIFICATION_SERVICE", { enumerable: true, get: function () { return event_notification_constants_1.EVENT_NOTIFICATION_SERVICE; } });
24
+ Object.defineProperty(exports, "EVENT_NOTIFICATION_OPTION", { enumerable: true, get: function () { return event_notification_constants_1.EVENT_NOTIFICATION_OPTION; } });
21
25
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,+DAA6C;AAC7C,+DAA6C;AAC7C,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,uEAAqD;AACrD,+DAA6C;AAC7C,iEAA+C;AAC/C,+EAAuG;AAA9F,0IAAA,0BAA0B,OAAA;AAAE,yIAAA,yBAAyB,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apipass/event-notification",
3
- "version": "0.0.14-alpha.0",
3
+ "version": "0.0.17-alpha.0",
4
4
  "description": "> TODO: description",
5
5
  "author": "Nathan Lemos <nathan@apipass.com.br>",
6
6
  "license": "ISC",
@@ -25,5 +25,5 @@
25
25
  "scripts": {
26
26
  "tsc": "tsc"
27
27
  },
28
- "gitHead": "69fe1b611236c2c8355da6ce0a6547b2d023c029"
28
+ "gitHead": "446d18c608debba4f280d53f6cabf7e594b378a3"
29
29
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-notification-service.js","sourceRoot":"","sources":["../src/event-notification-service.ts"],"names":[],"mappings":";;;AACA,qFAA+E;AAC/E,6EAAqE;AAErE,MAAa,+BAA+B;IACxC,MAAM,CAAC,cAAc,CAAC,IAAY;QAC9B,QAAQ,IAAI,EAAE;YACV,KAAK,kDAAqB,CAAC,GAAG,CAAC,CAAC,OAAO,4DAA2B,CAAA;YAClE,OAAO,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAA;SAChE;IACL,CAAC;CACJ;AAPD,0EAOC"}