@candesk/contracts 7.1.3 → 7.1.4

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.
@@ -55,6 +55,7 @@ export interface Staff {
55
55
  email?: string | undefined;
56
56
  avatarKey?: string | undefined;
57
57
  absence?: StaffAbsence | undefined;
58
+ lastSeenAt?: string | undefined;
58
59
  }
59
60
  export interface StaffAddress {
60
61
  street: string;
@@ -67,6 +68,11 @@ export interface StaffAbsence {
67
68
  from: string;
68
69
  until: string;
69
70
  }
71
+ export interface TouchStaffPresenceRequest {
72
+ id: string;
73
+ }
74
+ export interface TouchStaffPresenceResponse {
75
+ }
70
76
  export interface StaffService {
71
77
  listStaff(request: ListStaffRequest): Promise<ListStaffResponse>;
72
78
  saveStaff(request: SaveStaffRequest): Promise<SaveStaffResponse>;
@@ -74,4 +80,5 @@ export interface StaffService {
74
80
  setStaffAvatar(request: SetStaffAvatarRequest): Promise<SetStaffAvatarResponse>;
75
81
  setStaffAbsence(request: SetStaffAbsenceRequest): Promise<SetStaffAbsenceResponse>;
76
82
  deleteStaff(request: DeleteStaffRequest): Promise<DeleteStaffResponse>;
83
+ touchStaffPresence(request: TouchStaffPresenceRequest): Promise<TouchStaffPresenceResponse>;
77
84
  }
@@ -491,11 +491,6 @@ export interface GetRequestStatsResponse {
491
491
  days: RequestStatsDay[];
492
492
  doctors: DoctorReviewStats[];
493
493
  }
494
- export interface TouchDoctorPresenceRequest {
495
- doctorId: string;
496
- }
497
- export interface TouchDoctorPresenceResponse {
498
- }
499
494
  export interface TreatmentService {
500
495
  getQuestionnaire(request: GetQuestionnaireRequest): Promise<GetQuestionnaireResponse>;
501
496
  saveQuestionnaire(request: SaveQuestionnaireRequest): Promise<SaveQuestionnaireResponse>;
@@ -528,5 +523,4 @@ export interface TreatmentService {
528
523
  listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse>;
529
524
  listAppointments(request: ListAppointmentsRequest): Promise<ListAppointmentsResponse>;
530
525
  getRequestStats(request: GetRequestStatsRequest): Promise<GetRequestStatsResponse>;
531
- touchDoctorPresence(request: TouchDoctorPresenceRequest): Promise<TouchDoctorPresenceResponse>;
532
526
  }
@@ -56,6 +56,7 @@ export interface Staff {
56
56
  email?: string | undefined;
57
57
  avatarKey?: string | undefined;
58
58
  absence?: StaffAbsence | undefined;
59
+ lastSeenAt?: string | undefined;
59
60
  }
60
61
  export interface StaffAddress {
61
62
  street: string;
@@ -68,6 +69,11 @@ export interface StaffAbsence {
68
69
  from: string;
69
70
  until: string;
70
71
  }
72
+ export interface TouchStaffPresenceRequest {
73
+ id: string;
74
+ }
75
+ export interface TouchStaffPresenceResponse {
76
+ }
71
77
  export declare const STAFF_V1_PACKAGE_NAME = "staff.v1";
72
78
  export interface StaffServiceClient {
73
79
  listStaff(request: ListStaffRequest): Observable<ListStaffResponse>;
@@ -76,6 +82,7 @@ export interface StaffServiceClient {
76
82
  setStaffAvatar(request: SetStaffAvatarRequest): Observable<SetStaffAvatarResponse>;
77
83
  setStaffAbsence(request: SetStaffAbsenceRequest): Observable<SetStaffAbsenceResponse>;
78
84
  deleteStaff(request: DeleteStaffRequest): Observable<DeleteStaffResponse>;
85
+ touchStaffPresence(request: TouchStaffPresenceRequest): Observable<TouchStaffPresenceResponse>;
79
86
  }
80
87
  export interface StaffServiceController {
81
88
  listStaff(request: ListStaffRequest): Promise<ListStaffResponse> | Observable<ListStaffResponse> | ListStaffResponse;
@@ -84,6 +91,7 @@ export interface StaffServiceController {
84
91
  setStaffAvatar(request: SetStaffAvatarRequest): Promise<SetStaffAvatarResponse> | Observable<SetStaffAvatarResponse> | SetStaffAvatarResponse;
85
92
  setStaffAbsence(request: SetStaffAbsenceRequest): Promise<SetStaffAbsenceResponse> | Observable<SetStaffAbsenceResponse> | SetStaffAbsenceResponse;
86
93
  deleteStaff(request: DeleteStaffRequest): Promise<DeleteStaffResponse> | Observable<DeleteStaffResponse> | DeleteStaffResponse;
94
+ touchStaffPresence(request: TouchStaffPresenceRequest): Promise<TouchStaffPresenceResponse> | Observable<TouchStaffPresenceResponse> | TouchStaffPresenceResponse;
87
95
  }
88
96
  export declare function StaffServiceControllerMethods(): (constructor: Function) => void;
89
97
  export declare const STAFF_SERVICE_NAME = "StaffService";
@@ -21,6 +21,7 @@ function StaffServiceControllerMethods() {
21
21
  "setStaffAvatar",
22
22
  "setStaffAbsence",
23
23
  "deleteStaff",
24
+ "touchStaffPresence",
24
25
  ];
25
26
  for (const method of grpcMethods) {
26
27
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
@@ -492,11 +492,6 @@ export interface GetRequestStatsResponse {
492
492
  days: RequestStatsDay[];
493
493
  doctors: DoctorReviewStats[];
494
494
  }
495
- export interface TouchDoctorPresenceRequest {
496
- doctorId: string;
497
- }
498
- export interface TouchDoctorPresenceResponse {
499
- }
500
495
  export declare const TREATMENT_V1_PACKAGE_NAME = "treatment.v1";
501
496
  export interface TreatmentServiceClient {
502
497
  getQuestionnaire(request: GetQuestionnaireRequest): Observable<GetQuestionnaireResponse>;
@@ -530,7 +525,6 @@ export interface TreatmentServiceClient {
530
525
  listAppointmentSlots(request: ListAppointmentSlotsRequest): Observable<ListAppointmentSlotsResponse>;
531
526
  listAppointments(request: ListAppointmentsRequest): Observable<ListAppointmentsResponse>;
532
527
  getRequestStats(request: GetRequestStatsRequest): Observable<GetRequestStatsResponse>;
533
- touchDoctorPresence(request: TouchDoctorPresenceRequest): Observable<TouchDoctorPresenceResponse>;
534
528
  }
535
529
  export interface TreatmentServiceController {
536
530
  getQuestionnaire(request: GetQuestionnaireRequest): Promise<GetQuestionnaireResponse> | Observable<GetQuestionnaireResponse> | GetQuestionnaireResponse;
@@ -564,7 +558,6 @@ export interface TreatmentServiceController {
564
558
  listAppointmentSlots(request: ListAppointmentSlotsRequest): Promise<ListAppointmentSlotsResponse> | Observable<ListAppointmentSlotsResponse> | ListAppointmentSlotsResponse;
565
559
  listAppointments(request: ListAppointmentsRequest): Promise<ListAppointmentsResponse> | Observable<ListAppointmentsResponse> | ListAppointmentsResponse;
566
560
  getRequestStats(request: GetRequestStatsRequest): Promise<GetRequestStatsResponse> | Observable<GetRequestStatsResponse> | GetRequestStatsResponse;
567
- touchDoctorPresence(request: TouchDoctorPresenceRequest): Promise<TouchDoctorPresenceResponse> | Observable<TouchDoctorPresenceResponse> | TouchDoctorPresenceResponse;
568
561
  }
569
562
  export declare function TreatmentServiceControllerMethods(): (constructor: Function) => void;
570
563
  export declare const TREATMENT_SERVICE_NAME = "TreatmentService";
@@ -170,7 +170,6 @@ function TreatmentServiceControllerMethods() {
170
170
  "listAppointmentSlots",
171
171
  "listAppointments",
172
172
  "getRequestStats",
173
- "touchDoctorPresence",
174
173
  ];
175
174
  for (const method of grpcMethods) {
176
175
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "7.1.3",
3
+ "version": "7.1.4",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
package/proto/staff.proto CHANGED
@@ -9,6 +9,7 @@ service StaffService {
9
9
  rpc SetStaffAvatar (SetStaffAvatarRequest) returns (SetStaffAvatarResponse);
10
10
  rpc SetStaffAbsence (SetStaffAbsenceRequest) returns (SetStaffAbsenceResponse);
11
11
  rpc DeleteStaff (DeleteStaffRequest) returns (DeleteStaffResponse);
12
+ rpc TouchStaffPresence (TouchStaffPresenceRequest) returns (TouchStaffPresenceResponse);
12
13
  }
13
14
 
14
15
  message ListStaffRequest {
@@ -78,6 +79,7 @@ message Staff {
78
79
  optional string email = 7;
79
80
  optional string avatar_key = 8;
80
81
  optional StaffAbsence absence = 9;
82
+ optional string last_seen_at = 10;
81
83
  }
82
84
 
83
85
  message StaffAddress {
@@ -92,3 +94,9 @@ message StaffAbsence {
92
94
  string from = 1;
93
95
  string until = 2;
94
96
  }
97
+
98
+ message TouchStaffPresenceRequest {
99
+ string id = 1;
100
+ }
101
+
102
+ message TouchStaffPresenceResponse {}
@@ -34,7 +34,6 @@ service TreatmentService {
34
34
  rpc ListAppointmentSlots (ListAppointmentSlotsRequest) returns (ListAppointmentSlotsResponse);
35
35
  rpc ListAppointments (ListAppointmentsRequest) returns (ListAppointmentsResponse);
36
36
  rpc GetRequestStats (GetRequestStatsRequest) returns (GetRequestStatsResponse);
37
- rpc TouchDoctorPresence (TouchDoctorPresenceRequest) returns (TouchDoctorPresenceResponse);
38
37
  }
39
38
 
40
39
  enum QuestionnaireStatus {
@@ -599,9 +598,3 @@ message GetRequestStatsResponse {
599
598
  repeated RequestStatsDay days = 5;
600
599
  repeated DoctorReviewStats doctors = 6;
601
600
  }
602
-
603
- message TouchDoctorPresenceRequest {
604
- string doctor_id = 1;
605
- }
606
-
607
- message TouchDoctorPresenceResponse {}