@candesk/contracts 7.1.6 → 7.1.8

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,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/audit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: audit.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: catalog.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/kyc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: kyc.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/media.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: media.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24,6 +24,11 @@ export declare enum NotificationType {
24
24
  NOTIFICATION_TYPE_TREATMENT_REQUEST_REJECTED = 20,
25
25
  UNRECOGNIZED = -1
26
26
  }
27
+ export declare enum StaffNotificationType {
28
+ STAFF_NOTIFICATION_TYPE_UNSPECIFIED = 0,
29
+ STAFF_NOTIFICATION_TYPE_NEW_REQUESTS = 1,
30
+ UNRECOGNIZED = -1
31
+ }
27
32
  export interface Notification {
28
33
  id: string;
29
34
  type: NotificationType;
@@ -58,16 +63,23 @@ export interface DeleteNotificationsRequest {
58
63
  }
59
64
  export interface DeleteNotificationsResponse {
60
65
  }
66
+ export interface StaffNotificationPreference {
67
+ type: StaffNotificationType;
68
+ email: boolean;
69
+ telegram: boolean;
70
+ }
61
71
  export interface StaffNotificationSettingsResponse {
62
- emailEnabled: boolean;
63
72
  isTelegramLinked: boolean;
73
+ preferences: StaffNotificationPreference[];
64
74
  }
65
75
  export interface GetStaffNotificationSettingsRequest {
66
76
  staffId: string;
67
77
  }
68
- export interface UpdateStaffNotificationSettingsRequest {
78
+ export interface UpdateStaffNotificationPreferenceRequest {
69
79
  staffId: string;
70
- emailEnabled: boolean;
80
+ type: StaffNotificationType;
81
+ email?: boolean | undefined;
82
+ telegram?: boolean | undefined;
71
83
  }
72
84
  export interface CreateStaffTelegramLinkRequest {
73
85
  staffId: string;
@@ -84,13 +96,20 @@ export interface CompleteStaffTelegramLinkResponse {
84
96
  export interface UnlinkStaffTelegramRequest {
85
97
  staffId: string;
86
98
  }
99
+ export interface GetStaffTelegramStatusRequest {
100
+ chatId: string;
101
+ }
102
+ export interface GetStaffTelegramStatusResponse {
103
+ linked: boolean;
104
+ }
87
105
  export interface NotificationService {
88
106
  listNotifications(request: ListNotificationsRequest): Promise<ListNotificationsResponse>;
89
107
  markNotificationsRead(request: MarkNotificationsReadRequest): Promise<MarkNotificationsReadResponse>;
90
108
  deleteNotifications(request: DeleteNotificationsRequest): Promise<DeleteNotificationsResponse>;
91
109
  getStaffNotificationSettings(request: GetStaffNotificationSettingsRequest): Promise<StaffNotificationSettingsResponse>;
92
- updateStaffNotificationSettings(request: UpdateStaffNotificationSettingsRequest): Promise<StaffNotificationSettingsResponse>;
110
+ updateStaffNotificationPreference(request: UpdateStaffNotificationPreferenceRequest): Promise<StaffNotificationSettingsResponse>;
93
111
  createStaffTelegramLink(request: CreateStaffTelegramLinkRequest): Promise<CreateStaffTelegramLinkResponse>;
94
112
  completeStaffTelegramLink(request: CompleteStaffTelegramLinkRequest): Promise<CompleteStaffTelegramLinkResponse>;
95
113
  unlinkStaffTelegram(request: UnlinkStaffTelegramRequest): Promise<StaffNotificationSettingsResponse>;
114
+ getStaffTelegramStatus(request: GetStaffTelegramStatusRequest): Promise<GetStaffTelegramStatusResponse>;
96
115
  }
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: notification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.NotificationType = exports.protobufFileName = exports.protobufPackage = void 0;
8
+ exports.StaffNotificationType = exports.NotificationType = exports.protobufFileName = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  exports.protobufPackage = "notification.v1";
11
11
  exports.protobufFileName = "notification.proto";
@@ -34,3 +34,9 @@ var NotificationType;
34
34
  NotificationType[NotificationType["NOTIFICATION_TYPE_TREATMENT_REQUEST_REJECTED"] = 20] = "NOTIFICATION_TYPE_TREATMENT_REQUEST_REJECTED";
35
35
  NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
36
36
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
37
+ var StaffNotificationType;
38
+ (function (StaffNotificationType) {
39
+ StaffNotificationType[StaffNotificationType["STAFF_NOTIFICATION_TYPE_UNSPECIFIED"] = 0] = "STAFF_NOTIFICATION_TYPE_UNSPECIFIED";
40
+ StaffNotificationType[StaffNotificationType["STAFF_NOTIFICATION_TYPE_NEW_REQUESTS"] = 1] = "STAFF_NOTIFICATION_TYPE_NEW_REQUESTS";
41
+ StaffNotificationType[StaffNotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
42
+ })(StaffNotificationType || (exports.StaffNotificationType = StaffNotificationType = {}));
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: payment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: review.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/staff.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: staff.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: treatment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/user.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: user.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: audit.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: catalog.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/kyc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: kyc.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: media.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,6 +25,11 @@ export declare enum NotificationType {
25
25
  NOTIFICATION_TYPE_TREATMENT_REQUEST_REJECTED = 20,
26
26
  UNRECOGNIZED = -1
27
27
  }
28
+ export declare enum StaffNotificationType {
29
+ STAFF_NOTIFICATION_TYPE_UNSPECIFIED = 0,
30
+ STAFF_NOTIFICATION_TYPE_NEW_REQUESTS = 1,
31
+ UNRECOGNIZED = -1
32
+ }
28
33
  export interface Notification {
29
34
  id: string;
30
35
  type: NotificationType;
@@ -59,16 +64,23 @@ export interface DeleteNotificationsRequest {
59
64
  }
60
65
  export interface DeleteNotificationsResponse {
61
66
  }
67
+ export interface StaffNotificationPreference {
68
+ type: StaffNotificationType;
69
+ email: boolean;
70
+ telegram: boolean;
71
+ }
62
72
  export interface StaffNotificationSettingsResponse {
63
- emailEnabled: boolean;
64
73
  isTelegramLinked: boolean;
74
+ preferences: StaffNotificationPreference[];
65
75
  }
66
76
  export interface GetStaffNotificationSettingsRequest {
67
77
  staffId: string;
68
78
  }
69
- export interface UpdateStaffNotificationSettingsRequest {
79
+ export interface UpdateStaffNotificationPreferenceRequest {
70
80
  staffId: string;
71
- emailEnabled: boolean;
81
+ type: StaffNotificationType;
82
+ email?: boolean | undefined;
83
+ telegram?: boolean | undefined;
72
84
  }
73
85
  export interface CreateStaffTelegramLinkRequest {
74
86
  staffId: string;
@@ -85,26 +97,34 @@ export interface CompleteStaffTelegramLinkResponse {
85
97
  export interface UnlinkStaffTelegramRequest {
86
98
  staffId: string;
87
99
  }
100
+ export interface GetStaffTelegramStatusRequest {
101
+ chatId: string;
102
+ }
103
+ export interface GetStaffTelegramStatusResponse {
104
+ linked: boolean;
105
+ }
88
106
  export declare const NOTIFICATION_V1_PACKAGE_NAME = "notification.v1";
89
107
  export interface NotificationServiceClient {
90
108
  listNotifications(request: ListNotificationsRequest): Observable<ListNotificationsResponse>;
91
109
  markNotificationsRead(request: MarkNotificationsReadRequest): Observable<MarkNotificationsReadResponse>;
92
110
  deleteNotifications(request: DeleteNotificationsRequest): Observable<DeleteNotificationsResponse>;
93
111
  getStaffNotificationSettings(request: GetStaffNotificationSettingsRequest): Observable<StaffNotificationSettingsResponse>;
94
- updateStaffNotificationSettings(request: UpdateStaffNotificationSettingsRequest): Observable<StaffNotificationSettingsResponse>;
112
+ updateStaffNotificationPreference(request: UpdateStaffNotificationPreferenceRequest): Observable<StaffNotificationSettingsResponse>;
95
113
  createStaffTelegramLink(request: CreateStaffTelegramLinkRequest): Observable<CreateStaffTelegramLinkResponse>;
96
114
  completeStaffTelegramLink(request: CompleteStaffTelegramLinkRequest): Observable<CompleteStaffTelegramLinkResponse>;
97
115
  unlinkStaffTelegram(request: UnlinkStaffTelegramRequest): Observable<StaffNotificationSettingsResponse>;
116
+ getStaffTelegramStatus(request: GetStaffTelegramStatusRequest): Observable<GetStaffTelegramStatusResponse>;
98
117
  }
99
118
  export interface NotificationServiceController {
100
119
  listNotifications(request: ListNotificationsRequest): Promise<ListNotificationsResponse> | Observable<ListNotificationsResponse> | ListNotificationsResponse;
101
120
  markNotificationsRead(request: MarkNotificationsReadRequest): Promise<MarkNotificationsReadResponse> | Observable<MarkNotificationsReadResponse> | MarkNotificationsReadResponse;
102
121
  deleteNotifications(request: DeleteNotificationsRequest): Promise<DeleteNotificationsResponse> | Observable<DeleteNotificationsResponse> | DeleteNotificationsResponse;
103
122
  getStaffNotificationSettings(request: GetStaffNotificationSettingsRequest): Promise<StaffNotificationSettingsResponse> | Observable<StaffNotificationSettingsResponse> | StaffNotificationSettingsResponse;
104
- updateStaffNotificationSettings(request: UpdateStaffNotificationSettingsRequest): Promise<StaffNotificationSettingsResponse> | Observable<StaffNotificationSettingsResponse> | StaffNotificationSettingsResponse;
123
+ updateStaffNotificationPreference(request: UpdateStaffNotificationPreferenceRequest): Promise<StaffNotificationSettingsResponse> | Observable<StaffNotificationSettingsResponse> | StaffNotificationSettingsResponse;
105
124
  createStaffTelegramLink(request: CreateStaffTelegramLinkRequest): Promise<CreateStaffTelegramLinkResponse> | Observable<CreateStaffTelegramLinkResponse> | CreateStaffTelegramLinkResponse;
106
125
  completeStaffTelegramLink(request: CompleteStaffTelegramLinkRequest): Promise<CompleteStaffTelegramLinkResponse> | Observable<CompleteStaffTelegramLinkResponse> | CompleteStaffTelegramLinkResponse;
107
126
  unlinkStaffTelegram(request: UnlinkStaffTelegramRequest): Promise<StaffNotificationSettingsResponse> | Observable<StaffNotificationSettingsResponse> | StaffNotificationSettingsResponse;
127
+ getStaffTelegramStatus(request: GetStaffTelegramStatusRequest): Promise<GetStaffTelegramStatusResponse> | Observable<GetStaffTelegramStatusResponse> | GetStaffTelegramStatusResponse;
108
128
  }
109
129
  export declare function NotificationServiceControllerMethods(): (constructor: Function) => void;
110
130
  export declare const NOTIFICATION_SERVICE_NAME = "NotificationService";
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: notification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.NOTIFICATION_SERVICE_NAME = exports.NOTIFICATION_V1_PACKAGE_NAME = exports.NotificationType = exports.protobufFileName = exports.protobufPackage = void 0;
8
+ exports.NOTIFICATION_SERVICE_NAME = exports.NOTIFICATION_V1_PACKAGE_NAME = exports.StaffNotificationType = exports.NotificationType = exports.protobufFileName = exports.protobufPackage = void 0;
9
9
  exports.NotificationServiceControllerMethods = NotificationServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
@@ -36,6 +36,12 @@ var NotificationType;
36
36
  NotificationType[NotificationType["NOTIFICATION_TYPE_TREATMENT_REQUEST_REJECTED"] = 20] = "NOTIFICATION_TYPE_TREATMENT_REQUEST_REJECTED";
37
37
  NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
38
38
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
39
+ var StaffNotificationType;
40
+ (function (StaffNotificationType) {
41
+ StaffNotificationType[StaffNotificationType["STAFF_NOTIFICATION_TYPE_UNSPECIFIED"] = 0] = "STAFF_NOTIFICATION_TYPE_UNSPECIFIED";
42
+ StaffNotificationType[StaffNotificationType["STAFF_NOTIFICATION_TYPE_NEW_REQUESTS"] = 1] = "STAFF_NOTIFICATION_TYPE_NEW_REQUESTS";
43
+ StaffNotificationType[StaffNotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
44
+ })(StaffNotificationType || (exports.StaffNotificationType = StaffNotificationType = {}));
39
45
  exports.NOTIFICATION_V1_PACKAGE_NAME = "notification.v1";
40
46
  function NotificationServiceControllerMethods() {
41
47
  return function (constructor) {
@@ -44,10 +50,11 @@ function NotificationServiceControllerMethods() {
44
50
  "markNotificationsRead",
45
51
  "deleteNotifications",
46
52
  "getStaffNotificationSettings",
47
- "updateStaffNotificationSettings",
53
+ "updateStaffNotificationPreference",
48
54
  "createStaffTelegramLink",
49
55
  "completeStaffTelegramLink",
50
56
  "unlinkStaffTelegram",
57
+ "getStaffTelegramStatus",
51
58
  ];
52
59
  for (const method of grpcMethods) {
53
60
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: payment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: review.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: staff.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: treatment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/user.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.5
4
+ // protoc-gen-ts_proto v2.19.0
5
5
  // protoc v3.21.12
6
6
  // source: user.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "7.1.6",
3
+ "version": "7.1.8",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -7,10 +7,11 @@ service NotificationService {
7
7
  rpc MarkNotificationsRead (MarkNotificationsReadRequest) returns (MarkNotificationsReadResponse);
8
8
  rpc DeleteNotifications (DeleteNotificationsRequest) returns (DeleteNotificationsResponse);
9
9
  rpc GetStaffNotificationSettings (GetStaffNotificationSettingsRequest) returns (StaffNotificationSettingsResponse);
10
- rpc UpdateStaffNotificationSettings (UpdateStaffNotificationSettingsRequest) returns (StaffNotificationSettingsResponse);
10
+ rpc UpdateStaffNotificationPreference (UpdateStaffNotificationPreferenceRequest) returns (StaffNotificationSettingsResponse);
11
11
  rpc CreateStaffTelegramLink (CreateStaffTelegramLinkRequest) returns (CreateStaffTelegramLinkResponse);
12
12
  rpc CompleteStaffTelegramLink (CompleteStaffTelegramLinkRequest) returns (CompleteStaffTelegramLinkResponse);
13
13
  rpc UnlinkStaffTelegram (UnlinkStaffTelegramRequest) returns (StaffNotificationSettingsResponse);
14
+ rpc GetStaffTelegramStatus (GetStaffTelegramStatusRequest) returns (GetStaffTelegramStatusResponse);
14
15
  }
15
16
 
16
17
  enum NotificationType {
@@ -70,18 +71,31 @@ message DeleteNotificationsRequest {
70
71
 
71
72
  message DeleteNotificationsResponse {}
72
73
 
74
+ enum StaffNotificationType {
75
+ STAFF_NOTIFICATION_TYPE_UNSPECIFIED = 0;
76
+ STAFF_NOTIFICATION_TYPE_NEW_REQUESTS = 1;
77
+ }
78
+
79
+ message StaffNotificationPreference {
80
+ StaffNotificationType type = 1;
81
+ bool email = 2;
82
+ bool telegram = 3;
83
+ }
84
+
73
85
  message StaffNotificationSettingsResponse {
74
- bool email_enabled = 1;
75
- bool is_telegram_linked = 2;
86
+ bool is_telegram_linked = 1;
87
+ repeated StaffNotificationPreference preferences = 2;
76
88
  }
77
89
 
78
90
  message GetStaffNotificationSettingsRequest {
79
91
  string staff_id = 1;
80
92
  }
81
93
 
82
- message UpdateStaffNotificationSettingsRequest {
94
+ message UpdateStaffNotificationPreferenceRequest {
83
95
  string staff_id = 1;
84
- bool email_enabled = 2;
96
+ StaffNotificationType type = 2;
97
+ optional bool email = 3;
98
+ optional bool telegram = 4;
85
99
  }
86
100
 
87
101
  message CreateStaffTelegramLinkRequest {
@@ -102,3 +116,11 @@ message CompleteStaffTelegramLinkResponse {}
102
116
  message UnlinkStaffTelegramRequest {
103
117
  string staff_id = 1;
104
118
  }
119
+
120
+ message GetStaffTelegramStatusRequest {
121
+ string chat_id = 1;
122
+ }
123
+
124
+ message GetStaffTelegramStatusResponse {
125
+ bool linked = 1;
126
+ }