@arbiwallet/contracts 1.0.134 → 1.0.135

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.
package/gen/content.ts CHANGED
@@ -146,6 +146,23 @@ export interface ListMipifAutoReplyUsersResponse {
146
146
  users: MipifAutoReplyUser[];
147
147
  }
148
148
 
149
+ export interface SendMipifWinnerMessagesRequest {
150
+ telegramIds: string[];
151
+ text: string;
152
+ }
153
+
154
+ export interface MipifWinnerMessageResult {
155
+ telegramId: string;
156
+ ok: boolean;
157
+ error?: string | undefined;
158
+ }
159
+
160
+ export interface SendMipifWinnerMessagesResponse {
161
+ sentCount: number;
162
+ failedCount: number;
163
+ results: MipifWinnerMessageResult[];
164
+ }
165
+
149
166
  /** --- ABOUT --- */
150
167
  export interface GetAboutRequest {
151
168
  }
@@ -917,6 +934,8 @@ export const STORY_SERVICE_NAME = "StoryService";
917
934
 
918
935
  export interface MipifAutoReplyServiceClient {
919
936
  listMipifAutoReplyUsers(request: ListMipifAutoReplyUsersRequest): Observable<ListMipifAutoReplyUsersResponse>;
937
+
938
+ sendMipifWinnerMessages(request: SendMipifWinnerMessagesRequest): Observable<SendMipifWinnerMessagesResponse>;
920
939
  }
921
940
 
922
941
  export interface MipifAutoReplyServiceController {
@@ -926,11 +945,18 @@ export interface MipifAutoReplyServiceController {
926
945
  | Promise<ListMipifAutoReplyUsersResponse>
927
946
  | Observable<ListMipifAutoReplyUsersResponse>
928
947
  | ListMipifAutoReplyUsersResponse;
948
+
949
+ sendMipifWinnerMessages(
950
+ request: SendMipifWinnerMessagesRequest,
951
+ ):
952
+ | Promise<SendMipifWinnerMessagesResponse>
953
+ | Observable<SendMipifWinnerMessagesResponse>
954
+ | SendMipifWinnerMessagesResponse;
929
955
  }
930
956
 
931
957
  export function MipifAutoReplyServiceControllerMethods() {
932
958
  return function (constructor: Function) {
933
- const grpcMethods: string[] = ["listMipifAutoReplyUsers"];
959
+ const grpcMethods: string[] = ["listMipifAutoReplyUsers", "sendMipifWinnerMessages"];
934
960
  for (const method of grpcMethods) {
935
961
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
936
962
  GrpcMethod("MipifAutoReplyService", method)(constructor.prototype[method], method, descriptor);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbiwallet/contracts",
3
3
  "descriptions": "Generate and manage smart contracts for ArbiWallet",
4
- "version": "1.0.134",
4
+ "version": "1.0.135",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -75,6 +75,7 @@ service StoryService {
75
75
 
76
76
  service MipifAutoReplyService {
77
77
  rpc ListMipifAutoReplyUsers (ListMipifAutoReplyUsersRequest) returns (ListMipifAutoReplyUsersResponse);
78
+ rpc SendMipifWinnerMessages (SendMipifWinnerMessagesRequest) returns (SendMipifWinnerMessagesResponse);
78
79
  }
79
80
 
80
81
  // --- PUBLIC CONTENT MESSAGES ---
@@ -206,6 +207,23 @@ message ListMipifAutoReplyUsersResponse {
206
207
  repeated MipifAutoReplyUser users = 1;
207
208
  }
208
209
 
210
+ message SendMipifWinnerMessagesRequest {
211
+ repeated string telegram_ids = 1;
212
+ string text = 2;
213
+ }
214
+
215
+ message MipifWinnerMessageResult {
216
+ string telegram_id = 1;
217
+ bool ok = 2;
218
+ optional string error = 3;
219
+ }
220
+
221
+ message SendMipifWinnerMessagesResponse {
222
+ int32 sent_count = 1;
223
+ int32 failed_count = 2;
224
+ repeated MipifWinnerMessageResult results = 3;
225
+ }
226
+
209
227
  // --- ABOUT ---
210
228
  message GetAboutRequest {}
211
229