@candesk/contracts 7.1.5 → 7.1.7

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.4
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.4
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.4
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.4
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.4
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.4
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.4
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 });
@@ -60,7 +60,6 @@ export interface DeleteNotificationsResponse {
60
60
  }
61
61
  export interface StaffNotificationSettingsResponse {
62
62
  emailEnabled: boolean;
63
- telegramEnabled: boolean;
64
63
  isTelegramLinked: boolean;
65
64
  }
66
65
  export interface GetStaffNotificationSettingsRequest {
@@ -69,7 +68,6 @@ export interface GetStaffNotificationSettingsRequest {
69
68
  export interface UpdateStaffNotificationSettingsRequest {
70
69
  staffId: string;
71
70
  emailEnabled: boolean;
72
- telegramEnabled: boolean;
73
71
  }
74
72
  export interface CreateStaffTelegramLinkRequest {
75
73
  staffId: string;
@@ -86,6 +84,12 @@ export interface CompleteStaffTelegramLinkResponse {
86
84
  export interface UnlinkStaffTelegramRequest {
87
85
  staffId: string;
88
86
  }
87
+ export interface GetStaffTelegramStatusRequest {
88
+ chatId: string;
89
+ }
90
+ export interface GetStaffTelegramStatusResponse {
91
+ linked: boolean;
92
+ }
89
93
  export interface NotificationService {
90
94
  listNotifications(request: ListNotificationsRequest): Promise<ListNotificationsResponse>;
91
95
  markNotificationsRead(request: MarkNotificationsReadRequest): Promise<MarkNotificationsReadResponse>;
@@ -95,4 +99,5 @@ export interface NotificationService {
95
99
  createStaffTelegramLink(request: CreateStaffTelegramLinkRequest): Promise<CreateStaffTelegramLinkResponse>;
96
100
  completeStaffTelegramLink(request: CompleteStaffTelegramLinkRequest): Promise<CompleteStaffTelegramLinkResponse>;
97
101
  unlinkStaffTelegram(request: UnlinkStaffTelegramRequest): Promise<StaffNotificationSettingsResponse>;
102
+ getStaffTelegramStatus(request: GetStaffTelegramStatusRequest): Promise<GetStaffTelegramStatusResponse>;
98
103
  }
@@ -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.4
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 });
@@ -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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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 });
@@ -61,7 +61,6 @@ export interface DeleteNotificationsResponse {
61
61
  }
62
62
  export interface StaffNotificationSettingsResponse {
63
63
  emailEnabled: boolean;
64
- telegramEnabled: boolean;
65
64
  isTelegramLinked: boolean;
66
65
  }
67
66
  export interface GetStaffNotificationSettingsRequest {
@@ -70,7 +69,6 @@ export interface GetStaffNotificationSettingsRequest {
70
69
  export interface UpdateStaffNotificationSettingsRequest {
71
70
  staffId: string;
72
71
  emailEnabled: boolean;
73
- telegramEnabled: boolean;
74
72
  }
75
73
  export interface CreateStaffTelegramLinkRequest {
76
74
  staffId: string;
@@ -87,6 +85,12 @@ export interface CompleteStaffTelegramLinkResponse {
87
85
  export interface UnlinkStaffTelegramRequest {
88
86
  staffId: string;
89
87
  }
88
+ export interface GetStaffTelegramStatusRequest {
89
+ chatId: string;
90
+ }
91
+ export interface GetStaffTelegramStatusResponse {
92
+ linked: boolean;
93
+ }
90
94
  export declare const NOTIFICATION_V1_PACKAGE_NAME = "notification.v1";
91
95
  export interface NotificationServiceClient {
92
96
  listNotifications(request: ListNotificationsRequest): Observable<ListNotificationsResponse>;
@@ -97,6 +101,7 @@ export interface NotificationServiceClient {
97
101
  createStaffTelegramLink(request: CreateStaffTelegramLinkRequest): Observable<CreateStaffTelegramLinkResponse>;
98
102
  completeStaffTelegramLink(request: CompleteStaffTelegramLinkRequest): Observable<CompleteStaffTelegramLinkResponse>;
99
103
  unlinkStaffTelegram(request: UnlinkStaffTelegramRequest): Observable<StaffNotificationSettingsResponse>;
104
+ getStaffTelegramStatus(request: GetStaffTelegramStatusRequest): Observable<GetStaffTelegramStatusResponse>;
100
105
  }
101
106
  export interface NotificationServiceController {
102
107
  listNotifications(request: ListNotificationsRequest): Promise<ListNotificationsResponse> | Observable<ListNotificationsResponse> | ListNotificationsResponse;
@@ -107,6 +112,7 @@ export interface NotificationServiceController {
107
112
  createStaffTelegramLink(request: CreateStaffTelegramLinkRequest): Promise<CreateStaffTelegramLinkResponse> | Observable<CreateStaffTelegramLinkResponse> | CreateStaffTelegramLinkResponse;
108
113
  completeStaffTelegramLink(request: CompleteStaffTelegramLinkRequest): Promise<CompleteStaffTelegramLinkResponse> | Observable<CompleteStaffTelegramLinkResponse> | CompleteStaffTelegramLinkResponse;
109
114
  unlinkStaffTelegram(request: UnlinkStaffTelegramRequest): Promise<StaffNotificationSettingsResponse> | Observable<StaffNotificationSettingsResponse> | StaffNotificationSettingsResponse;
115
+ getStaffTelegramStatus(request: GetStaffTelegramStatusRequest): Promise<GetStaffTelegramStatusResponse> | Observable<GetStaffTelegramStatusResponse> | GetStaffTelegramStatusResponse;
110
116
  }
111
117
  export declare function NotificationServiceControllerMethods(): (constructor: Function) => void;
112
118
  export declare const NOTIFICATION_SERVICE_NAME = "NotificationService";
@@ -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.4
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 });
@@ -48,6 +48,7 @@ function NotificationServiceControllerMethods() {
48
48
  "createStaffTelegramLink",
49
49
  "completeStaffTelegramLink",
50
50
  "unlinkStaffTelegram",
51
+ "getStaffTelegramStatus",
51
52
  ];
52
53
  for (const method of grpcMethods) {
53
54
  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.4
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.4
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.4
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.4
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.4
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.5",
3
+ "version": "7.1.7",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -11,6 +11,7 @@ service NotificationService {
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 {
@@ -72,8 +73,7 @@ message DeleteNotificationsResponse {}
72
73
 
73
74
  message StaffNotificationSettingsResponse {
74
75
  bool email_enabled = 1;
75
- bool telegram_enabled = 2;
76
- bool is_telegram_linked = 3;
76
+ bool is_telegram_linked = 2;
77
77
  }
78
78
 
79
79
  message GetStaffNotificationSettingsRequest {
@@ -83,7 +83,6 @@ message GetStaffNotificationSettingsRequest {
83
83
  message UpdateStaffNotificationSettingsRequest {
84
84
  string staff_id = 1;
85
85
  bool email_enabled = 2;
86
- bool telegram_enabled = 3;
87
86
  }
88
87
 
89
88
  message CreateStaffTelegramLinkRequest {
@@ -104,3 +103,11 @@ message CompleteStaffTelegramLinkResponse {}
104
103
  message UnlinkStaffTelegramRequest {
105
104
  string staff_id = 1;
106
105
  }
106
+
107
+ message GetStaffTelegramStatusRequest {
108
+ string chat_id = 1;
109
+ }
110
+
111
+ message GetStaffTelegramStatusResponse {
112
+ bool linked = 1;
113
+ }