@misalon/common 1.0.19 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- package/build/events/appointment-approved-events.d.ts +16 -0
- package/build/events/appointment-approved-events.js +2 -0
- package/build/events/appointment-created-event.d.ts +20 -0
- package/build/events/appointment-created-event.js +2 -0
- package/build/events/subjects.d.ts +2 -1
- package/build/events/subjects.js +1 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
@@ -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
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Subjects } from "./subjects";
|
2
|
+
import { ServiceCategory } from "./type/service-category";
|
3
|
+
export interface AppointmentCreatedEvent {
|
4
|
+
subject: Subjects.AppointmentCreated;
|
5
|
+
data: {
|
6
|
+
id: string;
|
7
|
+
service: {
|
8
|
+
id: string;
|
9
|
+
name: string;
|
10
|
+
price: number;
|
11
|
+
duration: number;
|
12
|
+
category: ServiceCategory;
|
13
|
+
};
|
14
|
+
userId: string;
|
15
|
+
date: string;
|
16
|
+
time: string;
|
17
|
+
status: string;
|
18
|
+
version: number;
|
19
|
+
};
|
20
|
+
}
|
@@ -2,5 +2,6 @@ export declare enum Subjects {
|
|
2
2
|
ServiceCreated = "service:created",
|
3
3
|
ServiceUpdated = "service:updated",
|
4
4
|
AppointmentCreated = "appointment:created",
|
5
|
-
AppointmentCancelled = "appointment:cancelled"
|
5
|
+
AppointmentCancelled = "appointment:cancelled",
|
6
|
+
AppointmentApproved = "appointment:approved"
|
6
7
|
}
|
package/build/events/subjects.js
CHANGED
@@ -7,4 +7,5 @@ var Subjects;
|
|
7
7
|
Subjects["ServiceUpdated"] = "service:updated";
|
8
8
|
Subjects["AppointmentCreated"] = "appointment:created";
|
9
9
|
Subjects["AppointmentCancelled"] = "appointment:cancelled";
|
10
|
+
Subjects["AppointmentApproved"] = "appointment:approved";
|
10
11
|
})(Subjects || (exports.Subjects = Subjects = {}));
|
package/build/index.d.ts
CHANGED
@@ -14,7 +14,7 @@ export * from './events/base-publisher';
|
|
14
14
|
export * from './events/subjects';
|
15
15
|
export * from './events/salon-service-created-event';
|
16
16
|
export * from './events/salon-service-updated-event';
|
17
|
-
export * from "./events/appointment
|
17
|
+
export * from "./events/appointment-created-event";
|
18
18
|
export * from "./events/appointment-cancelled-event";
|
19
19
|
export * from './events/type/service-category';
|
20
20
|
export * from './events/type/status';
|
package/build/index.js
CHANGED
@@ -30,7 +30,7 @@ __exportStar(require("./events/base-publisher"), exports);
|
|
30
30
|
__exportStar(require("./events/subjects"), exports);
|
31
31
|
__exportStar(require("./events/salon-service-created-event"), exports);
|
32
32
|
__exportStar(require("./events/salon-service-updated-event"), exports);
|
33
|
-
__exportStar(require("./events/appointment
|
33
|
+
__exportStar(require("./events/appointment-created-event"), exports);
|
34
34
|
__exportStar(require("./events/appointment-cancelled-event"), exports);
|
35
35
|
__exportStar(require("./events/type/service-category"), exports);
|
36
36
|
__exportStar(require("./events/type/status"), exports);
|