@nethr/common 0.0.14 → 0.0.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.
@@ -4,4 +4,5 @@ export * from "./custom-error";
4
4
  export * from "./database-connection-error";
5
5
  export * from "./not-found-error";
6
6
  export * from "./request-validation-error";
7
+ export * from "./payment-created-event";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
@@ -20,4 +20,5 @@ __exportStar(require("./custom-error"), exports);
20
20
  __exportStar(require("./database-connection-error"), exports);
21
21
  __exportStar(require("./not-found-error"), exports);
22
22
  __exportStar(require("./request-validation-error"), exports);
23
+ __exportStar(require("./payment-created-event"), exports);
23
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,yDAAuC;AACvC,iDAA+B;AAC/B,8DAA4C;AAC5C,oDAAkC;AAClC,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,yDAAuC;AACvC,iDAA+B;AAC/B,8DAA4C;AAC5C,oDAAkC;AAClC,6DAA2C;AAC3C,0DAAwC"}
@@ -0,0 +1,10 @@
1
+ import { Subjects } from "../events";
2
+ export interface PaymentCreatedEvent {
3
+ subject: Subjects.PaymentCreated;
4
+ data: {
5
+ id: string;
6
+ orderId: string;
7
+ stripeId: string;
8
+ };
9
+ }
10
+ //# sourceMappingURL=payment-created-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-created-event.d.ts","sourceRoot":"","sources":["../../src/errors/payment-created-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC;IACjC,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=payment-created-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-created-event.js","sourceRoot":"","sources":["../../src/errors/payment-created-event.ts"],"names":[],"mappings":""}
@@ -3,6 +3,7 @@ export declare enum Subjects {
3
3
  TicketUpdated = "ticket:updated",
4
4
  OrderCreated = "order:created",
5
5
  OrderCancelled = "order:cancelled",
6
- ExpirationComplete = "expiration:complete"
6
+ ExpirationComplete = "expiration:complete",
7
+ PaymentCreated = "payment:created"
7
8
  }
8
9
  //# sourceMappingURL=subjects.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subjects.d.ts","sourceRoot":"","sources":["../../../src/events/types/subjects.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,aAAa,mBAAmB;IAChC,aAAa,mBAAmB;IAEhC,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAElC,kBAAkB,wBAAwB;CAC3C"}
1
+ {"version":3,"file":"subjects.d.ts","sourceRoot":"","sources":["../../../src/events/types/subjects.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,aAAa,mBAAmB;IAChC,aAAa,mBAAmB;IAEhC,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAElC,kBAAkB,wBAAwB;IAE1C,cAAc,oBAAoB;CACnC"}
@@ -8,5 +8,6 @@ var Subjects;
8
8
  Subjects["OrderCreated"] = "order:created";
9
9
  Subjects["OrderCancelled"] = "order:cancelled";
10
10
  Subjects["ExpirationComplete"] = "expiration:complete";
11
+ Subjects["PaymentCreated"] = "payment:created";
11
12
  })(Subjects || (exports.Subjects = Subjects = {}));
12
13
  //# sourceMappingURL=subjects.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subjects.js","sourceRoot":"","sources":["../../../src/events/types/subjects.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,4CAAgC,CAAA;IAChC,4CAAgC,CAAA;IAEhC,0CAA8B,CAAA;IAC9B,8CAAkC,CAAA;IAElC,sDAA0C,CAAA;AAC5C,CAAC,EARW,QAAQ,wBAAR,QAAQ,QAQnB"}
1
+ {"version":3,"file":"subjects.js","sourceRoot":"","sources":["../../../src/events/types/subjects.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,4CAAgC,CAAA;IAChC,4CAAgC,CAAA;IAEhC,0CAA8B,CAAA;IAC9B,8CAAkC,CAAA;IAElC,sDAA0C,CAAA;IAE1C,8CAAkC,CAAA;AACpC,CAAC,EAVW,QAAQ,wBAAR,QAAQ,QAUnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethr/common",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [