@lucaapp/service-utils 1.1.0 → 1.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.
@@ -0,0 +1,18 @@
1
+ declare type Operator = {
2
+ uuid: string;
3
+ firstName: string;
4
+ lastName: string;
5
+ email: string;
6
+ username: string;
7
+ activated: boolean;
8
+ phone: string | null;
9
+ businessEntityName: string | null;
10
+ businessEntityStreetName: string | null;
11
+ businessEntityStreetNumber: string | null;
12
+ businessEntityZipCode: string | null;
13
+ businessEntityCity: string | null;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ deletedAt: Date | null;
17
+ };
18
+ export type { Operator };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +1,20 @@
1
1
  import type { Payment } from './events/payment';
2
2
  import type { Consumer } from './events/consumer';
3
+ import type { Operator } from './events/operator';
3
4
  declare enum KafkaTopic {
4
5
  PAYMENTS = "PAYMENTS",
5
- CONSUMERS = "CONSUMERS"
6
+ CONSUMERS = "CONSUMERS",
7
+ OPERATORS = "OPERATORS"
6
8
  }
7
9
  declare type MessageFormats = {
8
10
  [KafkaTopic.PAYMENTS]: Payment;
9
11
  [KafkaTopic.CONSUMERS]: Consumer;
12
+ [KafkaTopic.OPERATORS]: Operator;
10
13
  };
11
14
  declare const MessageIssuer: {
12
15
  PAYMENTS: string;
13
16
  CONSUMERS: string;
17
+ OPERATORS: string;
14
18
  };
15
19
  export { KafkaTopic, MessageIssuer };
16
20
  export type { MessageFormats };
@@ -5,10 +5,12 @@ var KafkaTopic;
5
5
  (function (KafkaTopic) {
6
6
  KafkaTopic["PAYMENTS"] = "PAYMENTS";
7
7
  KafkaTopic["CONSUMERS"] = "CONSUMERS";
8
+ KafkaTopic["OPERATORS"] = "OPERATORS";
8
9
  })(KafkaTopic || (KafkaTopic = {}));
9
10
  exports.KafkaTopic = KafkaTopic;
10
11
  const MessageIssuer = {
11
12
  [KafkaTopic.PAYMENTS]: 'backend-pay',
12
13
  [KafkaTopic.CONSUMERS]: 'backend',
14
+ [KafkaTopic.OPERATORS]: 'backend',
13
15
  };
14
16
  exports.MessageIssuer = MessageIssuer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucaapp/service-utils",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -34,9 +34,10 @@
34
34
  "typescript": "^4.7.4"
35
35
  },
36
36
  "dependencies": {
37
+ "@types/express": "4.17.13",
37
38
  "@hapi/boom": "^10.0.0",
38
39
  "axios": "^0.27.2",
39
- "jose": "^4.8.3",
40
+ "jose": "4.9.2",
40
41
  "kafkajs": "2.1.0",
41
42
  "moment": "^2.29.4"
42
43
  }