@lucaapp/service-utils 1.63.0 → 1.64.1

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.
@@ -5,6 +5,7 @@ export type Operator = {
5
5
  email: string;
6
6
  username: string;
7
7
  activated: boolean;
8
+ emailVerified: boolean;
8
9
  phone: string | null;
9
10
  businessEntityName: string | null;
10
11
  businessEntityStreetName: string | null;
@@ -0,0 +1,6 @@
1
+ export type PaymentSyncError = {
2
+ paymentId: string;
3
+ externalSystem: string;
4
+ syncFailureReason: string;
5
+ action: 'create' | 'delete';
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,6 +11,7 @@ import { Reservation } from './events/reservation';
11
11
  import { ReservationPrePayment } from './events/reservationPrePayment';
12
12
  import { ConsumerPushNotification } from './events/consumerPushNotification';
13
13
  import { OperatorLocationGroup } from '../../types/operatorLocationGroup';
14
+ import { PaymentSyncError } from './events/paymentSyncError';
14
15
  declare enum KafkaTopic {
15
16
  PAYMENTS = "payments",
16
17
  CONSUMERS = "consumers",
@@ -23,6 +24,7 @@ declare enum KafkaTopic {
23
24
  RESERVATION_FEES = "reservation_fees",
24
25
  RESERVATION_PRE_PAYMENT = "reservation_pre_payment",
25
26
  CONSUMER_PUSH_NOTIFICATION = "consumer_push_notifications",
27
+ PAYMENT_SYNC_ERRORS = "payment_sync_errors",
26
28
  WS_EVENT_backend = "wsevent_backend",
27
29
  WS_EVENT_backend_pay = "wsevent_backend-pay",
28
30
  WS_EVENT_backend_pos = "wsevent_backend-pos"
@@ -39,6 +41,7 @@ type MessageFormats = {
39
41
  [KafkaTopic.RESERVATION_FEES]: ReservationFee;
40
42
  [KafkaTopic.RESERVATION_PRE_PAYMENT]: ReservationPrePayment;
41
43
  [KafkaTopic.CONSUMER_PUSH_NOTIFICATION]: ConsumerPushNotification;
44
+ [KafkaTopic.PAYMENT_SYNC_ERRORS]: PaymentSyncError;
42
45
  [KafkaTopic.WS_EVENT_backend]: WsEvent;
43
46
  [KafkaTopic.WS_EVENT_backend_pay]: WsEvent;
44
47
  [KafkaTopic.WS_EVENT_backend_pos]: WsEvent;
@@ -55,6 +58,7 @@ declare const MessageIssuer: {
55
58
  reservation_fees: Service;
56
59
  reservation_pre_payment: Service;
57
60
  consumer_push_notifications: Service;
61
+ payment_sync_errors: Service;
58
62
  wsevent_backend: Service;
59
63
  "wsevent_backend-pay": Service;
60
64
  "wsevent_backend-pos": Service;
@@ -15,6 +15,7 @@ var KafkaTopic;
15
15
  KafkaTopic["RESERVATION_FEES"] = "reservation_fees";
16
16
  KafkaTopic["RESERVATION_PRE_PAYMENT"] = "reservation_pre_payment";
17
17
  KafkaTopic["CONSUMER_PUSH_NOTIFICATION"] = "consumer_push_notifications";
18
+ KafkaTopic["PAYMENT_SYNC_ERRORS"] = "payment_sync_errors";
18
19
  KafkaTopic["WS_EVENT_backend"] = "wsevent_backend";
19
20
  KafkaTopic["WS_EVENT_backend_pay"] = "wsevent_backend-pay";
20
21
  KafkaTopic["WS_EVENT_backend_pos"] = "wsevent_backend-pos";
@@ -31,6 +32,7 @@ const MessageIssuer = {
31
32
  [KafkaTopic.RESERVATION_FEES]: serviceIdentity_1.Service.BACKEND_PAY,
32
33
  [KafkaTopic.RESERVATION_PRE_PAYMENT]: serviceIdentity_1.Service.BACKEND_PAY,
33
34
  [KafkaTopic.CONSUMER_PUSH_NOTIFICATION]: serviceIdentity_1.Service.BACKEND,
35
+ [KafkaTopic.PAYMENT_SYNC_ERRORS]: serviceIdentity_1.Service.BACKEND_POS,
34
36
  [KafkaTopic.WS_EVENT_backend]: serviceIdentity_1.Service.BACKEND,
35
37
  [KafkaTopic.WS_EVENT_backend_pay]: serviceIdentity_1.Service.BACKEND_PAY,
36
38
  [KafkaTopic.WS_EVENT_backend_pos]: serviceIdentity_1.Service.BACKEND_POS,
@@ -22,6 +22,7 @@ class LoggerFactory {
22
22
  {
23
23
  target: 'pino/file',
24
24
  options: { destination: 1 },
25
+ level: logLevel,
25
26
  },
26
27
  ...(sentryDsn
27
28
  ? [
@@ -38,6 +39,7 @@ class LoggerFactory {
38
39
  context: ['reqId'],
39
40
  minLevel: minLevel ?? 50,
40
41
  },
42
+ level: logLevel,
41
43
  },
42
44
  ]
43
45
  : []),
@@ -6,6 +6,7 @@ declare enum Service {
6
6
  BACKEND_ATTESTATION = "backend-attestation",
7
7
  BACKEND_PUBSUB = "backend-pubsub",
8
8
  BACKEND_AI = "backend-ai",
9
- BACKEND_PYTHON = "backend-python"
9
+ BACKEND_PYTHON = "backend-python",
10
+ BACKEND_LINK = "backend-link"
10
11
  }
11
12
  export { Service };
@@ -11,4 +11,5 @@ var Service;
11
11
  Service["BACKEND_PUBSUB"] = "backend-pubsub";
12
12
  Service["BACKEND_AI"] = "backend-ai";
13
13
  Service["BACKEND_PYTHON"] = "backend-python";
14
+ Service["BACKEND_LINK"] = "backend-link";
14
15
  })(Service || (exports.Service = Service = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucaapp/service-utils",
3
- "version": "1.63.0",
3
+ "version": "1.64.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@asteasolutions/zod-to-openapi": "6.1.0",
22
- "@hapi/boom": "^10.0.0",
23
- "@sentry/node": "^9.3.0",
24
- "@tsconfig/node18": "1.0.1",
22
+ "@hapi/boom": "^10.0.1",
23
+ "@sentry/node": "^9.10.1",
24
+ "@tsconfig/node22": "22.0.0",
25
25
  "@types/express": "4.17.15",
26
26
  "@types/express-serve-static-core": "^4.17.43",
27
- "@types/node": "18.18.2",
27
+ "@types/node": "22.13.11",
28
28
  "@types/response-time": "^2.3.8",
29
29
  "@types/swagger-ui-express": "4.1.3",
30
30
  "axios": "^1.8.2",
@@ -51,39 +51,40 @@
51
51
  "@apidevtools/swagger-parser": "10.0.3"
52
52
  },
53
53
  "devDependencies": {
54
- "@types/busboy": "^1.5.3",
54
+ "@types/busboy": "^1.5.4",
55
55
  "@types/lodash": "^4.14.187",
56
56
  "@types/negotiator": "^0.6.1",
57
57
  "@types/pino-http": "5.8.4",
58
- "@types/supertest": "2.0.11",
58
+ "@types/supertest": "2.0.16",
59
59
  "@types/uuid": "^8.3.4",
60
60
  "@typescript-eslint/eslint-plugin": "^7.15.0",
61
61
  "@typescript-eslint/parser": "^7.15.0",
62
- "@vitest/coverage-v8": "3.0.4",
63
- "conventional-changelog-conventionalcommits": "^5.0.0",
62
+ "@vitest/coverage-v8": "3.1.1",
63
+ "conventional-changelog-conventionalcommits": "^8.0.0",
64
64
  "eslint": "8.57.0",
65
65
  "eslint-plugin-prettier": "4.2.1",
66
66
  "eslint-plugin-vitest": "0.4.1",
67
- "improved-yarn-audit": "^3.0.0",
67
+ "improved-yarn-audit": "^3.0.3",
68
68
  "prettier": "2.7.1",
69
- "semantic-release": "^19.0.3",
70
- "semantic-release-monorepo": "^7.0.5",
69
+ "semantic-release": "^19.0.5",
70
+ "semantic-release-monorepo": "^7.0.8",
71
71
  "supertest": "^6.3.3",
72
72
  "typescript": "5.5.3",
73
73
  "vite-tsconfig-paths": "4.3.2",
74
- "vitest": "3.0.5"
74
+ "vitest": "3.1.1"
75
75
  },
76
76
  "resolutions": {
77
77
  "yaml": "2.2.2",
78
- "semver": "7.5.2",
79
- "follow-redirects": "1.15.6",
78
+ "semver": "7.7.1",
79
+ "follow-redirects": "1.15.9",
80
80
  "braces": "3.0.3",
81
- "send": "0.19.0",
81
+ "send": "0.19.1",
82
82
  "rollup": "4.22.4",
83
- "cookie": ">= 0.7.0",
83
+ "cookie": ">= 1.0.2",
84
84
  "string-width": "4.2.3",
85
85
  "@types/express": "4.17.15",
86
- "esbuild": "^0.25.0",
87
- "axios": "^1.8.2"
86
+ "esbuild": "^0.25.5",
87
+ "axios": "^1.8.2",
88
+ "vite": "6.2.5"
88
89
  }
89
90
  }