@lucaapp/service-utils 1.53.4 → 1.54.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,8 @@
1
+ interface Email {
2
+ compare(comparator: Email): boolean;
3
+ }
4
+ declare class Email implements Email {
5
+ private readonly email;
6
+ constructor(email: string);
7
+ }
8
+ export { Email };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Email = void 0;
4
+ class Email {
5
+ constructor(email) {
6
+ this.email = email.toLowerCase();
7
+ }
8
+ compare(comparator) {
9
+ return this.email === comparator.email.toLowerCase();
10
+ }
11
+ }
12
+ exports.Email = Email;
@@ -0,0 +1,2 @@
1
+ declare function createEmailDataType(): void;
2
+ export { createEmailDataType };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createEmailDataType = void 0;
4
+ const sequelize_1 = require("sequelize");
5
+ function createEmailDataType() {
6
+ class Email extends sequelize_1.DataTypes.CITEXT {
7
+ constructor() {
8
+ super();
9
+ }
10
+ toSql() {
11
+ return 'CITEXT';
12
+ }
13
+ }
14
+ Email.prototype.key = Email.key = 'Email';
15
+ sequelize_1.DataTypes.Email = sequelize_1.Utils.classToInvokable(Email);
16
+ }
17
+ exports.createEmailDataType = createEmailDataType;
@@ -0,0 +1 @@
1
+ export * from './email';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./email"), exports);
@@ -6,12 +6,15 @@ export interface ReservationReminder extends ConsumerNotification {
6
6
  type: NotificationType.RESERVATION_REMINDER;
7
7
  payload: {
8
8
  reservationId: string;
9
+ locationName: string;
10
+ timeToStartInHours: number;
9
11
  };
10
12
  }
11
13
  export interface ReservationResponse extends ConsumerNotification {
12
14
  type: NotificationType.RESERVATION_RESPONSE;
13
15
  payload: {
14
16
  reservationId: string;
17
+ locationName: string;
15
18
  accepted: boolean;
16
19
  };
17
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucaapp/service-utils",
3
- "version": "1.53.4",
3
+ "version": "1.54.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [