@lucaapp/service-utils 1.55.4 → 1.55.6

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,5 +1,4 @@
1
- import { InternalLanguages } from 'lib/negotiator/language';
2
- import 'moment-timezone';
1
+ import { InternalLanguages } from '../negotiator/language';
3
2
  export declare const getFormattedDate: (timestamp: Date, language?: InternalLanguages) => string;
4
3
  export declare const getFormattedDateTime: (timestamp: Date, language?: InternalLanguages) => string;
5
4
  export declare const getFormattedTime: (timestamp: Date) => string;
@@ -4,8 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getFormattedTime = exports.getFormattedDateTime = exports.getFormattedDate = void 0;
7
- const moment_1 = __importDefault(require("moment"));
8
- require("moment-timezone");
7
+ const moment_timezone_1 = __importDefault(require("moment-timezone"));
9
8
  const TIMEZONE = 'Europe/Berlin';
10
9
  const getFormattedDate = (timestamp, language) => {
11
10
  if (language === 'en') {
@@ -21,9 +20,9 @@ const getFormattedDateTime = (timestamp, language) => {
21
20
  return getFormattedDateTimeDE(timestamp);
22
21
  };
23
22
  exports.getFormattedDateTime = getFormattedDateTime;
24
- const getFormattedTime = (timestamp) => (0, moment_1.default)(timestamp).tz(TIMEZONE).format('HH:mm');
23
+ const getFormattedTime = (timestamp) => (0, moment_timezone_1.default)(timestamp).tz(TIMEZONE).format('HH:mm');
25
24
  exports.getFormattedTime = getFormattedTime;
26
- const getFormattedDateTimeDE = (timestamp) => (0, moment_1.default)(timestamp).tz(TIMEZONE).format('DD.MM.YYYY, HH:mm');
27
- const getFormattedDateTimeEN = (timestamp) => (0, moment_1.default)(timestamp).tz(TIMEZONE).format('YYYY-MM-DD, HH:mm');
28
- const getFormattedDateDE = (timestamp) => (0, moment_1.default)(timestamp).tz(TIMEZONE).format('DD.MM.YYYY');
29
- const getFormattedDateEN = (timestamp) => (0, moment_1.default)(timestamp).tz(TIMEZONE).format('YYYY-MM-DD');
25
+ const getFormattedDateTimeDE = (timestamp) => (0, moment_timezone_1.default)(timestamp).tz(TIMEZONE).format('DD.MM.YYYY, HH:mm');
26
+ const getFormattedDateTimeEN = (timestamp) => (0, moment_timezone_1.default)(timestamp).tz(TIMEZONE).format('YYYY-MM-DD, HH:mm');
27
+ const getFormattedDateDE = (timestamp) => (0, moment_timezone_1.default)(timestamp).tz(TIMEZONE).format('DD.MM.YYYY');
28
+ const getFormattedDateEN = (timestamp) => (0, moment_timezone_1.default)(timestamp).tz(TIMEZONE).format('YYYY-MM-DD');
@@ -16,6 +16,7 @@ export interface ReservationResponse extends ConsumerNotification {
16
16
  reservationId: string;
17
17
  locationName: string;
18
18
  confirmed: boolean;
19
+ startTime: string;
19
20
  };
20
21
  }
21
22
  export declare enum NotificationType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucaapp/service-utils",
3
- "version": "1.55.4",
3
+ "version": "1.55.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -33,7 +33,6 @@
33
33
  "kafkajs": "2.1.0",
34
34
  "libphonenumber-js": "1.9.44",
35
35
  "lodash": "^4.17.21",
36
- "moment": "2.30.1",
37
36
  "moment-timezone": "^0.5.44",
38
37
  "negotiator": "^0.6.3",
39
38
  "pino-http": "9.0.0",