@misalon/common 1.0.20 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Subjects } from './subjects';
|
2
|
+
export interface AppointmentApprovedEvent {
|
3
|
+
subject: Subjects.AppointmentApproved;
|
4
|
+
data: {
|
5
|
+
id: string;
|
6
|
+
service: {
|
7
|
+
id: string;
|
8
|
+
name: string;
|
9
|
+
};
|
10
|
+
userId: string;
|
11
|
+
date: string;
|
12
|
+
time: string;
|
13
|
+
status: string;
|
14
|
+
version: number;
|
15
|
+
};
|
16
|
+
}
|
package/build/index.d.ts
CHANGED
@@ -16,6 +16,7 @@ export * from './events/salon-service-created-event';
|
|
16
16
|
export * from './events/salon-service-updated-event';
|
17
17
|
export * from "./events/appointment-created-event";
|
18
18
|
export * from "./events/appointment-cancelled-event";
|
19
|
+
export * from "./events/appointment-approved-event";
|
19
20
|
export * from './events/type/service-category';
|
20
21
|
export * from './events/type/status';
|
21
22
|
export * from './permissions/index';
|
package/build/index.js
CHANGED
@@ -32,6 +32,7 @@ __exportStar(require("./events/salon-service-created-event"), exports);
|
|
32
32
|
__exportStar(require("./events/salon-service-updated-event"), exports);
|
33
33
|
__exportStar(require("./events/appointment-created-event"), exports);
|
34
34
|
__exportStar(require("./events/appointment-cancelled-event"), exports);
|
35
|
+
__exportStar(require("./events/appointment-approved-event"), exports);
|
35
36
|
__exportStar(require("./events/type/service-category"), exports);
|
36
37
|
__exportStar(require("./events/type/status"), exports);
|
37
38
|
__exportStar(require("./permissions/index"), exports);
|
@@ -8,5 +8,6 @@ exports.Roles = {
|
|
8
8
|
exports.RestrictedActions = {
|
9
9
|
CREATE_APPOINTMENT: [exports.Roles.ADMIN], // Admins restricted from creating appointments
|
10
10
|
CANCEL_APPOINTMENT: [exports.Roles.ADMIN], // Admins restricted from canceling appointments
|
11
|
+
APPROVE_APPOINTMENT: [exports.Roles.USER], // users restricted from approving appointments
|
11
12
|
MANAGE_SERVICES: [exports.Roles.USER], // Users restricted from managing salon services
|
12
13
|
};
|