@arbiwallet/contracts 1.0.132 → 1.0.134

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
@@ -124,6 +124,28 @@ export interface DeleteFaqItemRequest {
124
124
  export interface DeleteFaqItemResponse {
125
125
  }
126
126
 
127
+ /** --- MIPIF AUTO REPLY --- */
128
+ export interface ListMipifAutoReplyUsersRequest {
129
+ }
130
+
131
+ export interface MipifAutoReplyUser {
132
+ id: number;
133
+ telegramId: string;
134
+ chatId: string;
135
+ username?: string | undefined;
136
+ firstName?: string | undefined;
137
+ lastName?: string | undefined;
138
+ matchedText?: string | undefined;
139
+ firstMatchedAt: string;
140
+ replySentAt: string;
141
+ createdAt: string;
142
+ updatedAt: string;
143
+ }
144
+
145
+ export interface ListMipifAutoReplyUsersResponse {
146
+ users: MipifAutoReplyUser[];
147
+ }
148
+
127
149
  /** --- ABOUT --- */
128
150
  export interface GetAboutRequest {
129
151
  }
@@ -892,3 +914,33 @@ export function StoryServiceControllerMethods() {
892
914
  }
893
915
 
894
916
  export const STORY_SERVICE_NAME = "StoryService";
917
+
918
+ export interface MipifAutoReplyServiceClient {
919
+ listMipifAutoReplyUsers(request: ListMipifAutoReplyUsersRequest): Observable<ListMipifAutoReplyUsersResponse>;
920
+ }
921
+
922
+ export interface MipifAutoReplyServiceController {
923
+ listMipifAutoReplyUsers(
924
+ request: ListMipifAutoReplyUsersRequest,
925
+ ):
926
+ | Promise<ListMipifAutoReplyUsersResponse>
927
+ | Observable<ListMipifAutoReplyUsersResponse>
928
+ | ListMipifAutoReplyUsersResponse;
929
+ }
930
+
931
+ export function MipifAutoReplyServiceControllerMethods() {
932
+ return function (constructor: Function) {
933
+ const grpcMethods: string[] = ["listMipifAutoReplyUsers"];
934
+ for (const method of grpcMethods) {
935
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
936
+ GrpcMethod("MipifAutoReplyService", method)(constructor.prototype[method], method, descriptor);
937
+ }
938
+ const grpcStreamMethods: string[] = [];
939
+ for (const method of grpcStreamMethods) {
940
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
941
+ GrpcStreamMethod("MipifAutoReplyService", method)(constructor.prototype[method], method, descriptor);
942
+ }
943
+ };
944
+ }
945
+
946
+ export const MIPIF_AUTO_REPLY_SERVICE_NAME = "MipifAutoReplyService";
package/gen/deposit.ts CHANGED
@@ -87,6 +87,34 @@ export interface HandlePaymentDillDepositWebhookResponse {
87
87
  status: string;
88
88
  }
89
89
 
90
+ export interface GetPaymentDillDepositStatusRequest {
91
+ userId: string;
92
+ depositId: string;
93
+ }
94
+
95
+ export interface GetPaymentDillDepositStatusResponse {
96
+ depositId: string;
97
+ status: string;
98
+ paymentCurrency?: string | undefined;
99
+ purpose?: string | undefined;
100
+ requestedCreditAmount?: string | undefined;
101
+ amountMajor?: string | undefined;
102
+ creditAmount?: string | undefined;
103
+ creditAsset?: string | undefined;
104
+ creditNetwork?: string | undefined;
105
+ providerTransactionId?: string | undefined;
106
+ ledgerDepositId?: string | undefined;
107
+ cardTopupStatus?: string | undefined;
108
+ cardTopupError?: string | undefined;
109
+ cardCreateStatus?: string | undefined;
110
+ cardCreateError?: string | undefined;
111
+ createdCardId?: number | undefined;
112
+ createdAt?: string | undefined;
113
+ completedAt?: string | undefined;
114
+ expiresAt?: string | undefined;
115
+ expiredAt?: string | undefined;
116
+ }
117
+
90
118
  export const DEPOSIT_V1_PACKAGE_NAME = "deposit.v1";
91
119
 
92
120
  export interface DepositIntegrationClient {
@@ -101,6 +129,10 @@ export interface DepositIntegrationClient {
101
129
  handlePaymentDillDepositWebhook(
102
130
  request: HandlePaymentDillDepositWebhookRequest,
103
131
  ): Observable<HandlePaymentDillDepositWebhookResponse>;
132
+
133
+ getPaymentDillDepositStatus(
134
+ request: GetPaymentDillDepositStatusRequest,
135
+ ): Observable<GetPaymentDillDepositStatusResponse>;
104
136
  }
105
137
 
106
138
  export interface DepositIntegrationController {
@@ -125,6 +157,13 @@ export interface DepositIntegrationController {
125
157
  | Promise<HandlePaymentDillDepositWebhookResponse>
126
158
  | Observable<HandlePaymentDillDepositWebhookResponse>
127
159
  | HandlePaymentDillDepositWebhookResponse;
160
+
161
+ getPaymentDillDepositStatus(
162
+ request: GetPaymentDillDepositStatusRequest,
163
+ ):
164
+ | Promise<GetPaymentDillDepositStatusResponse>
165
+ | Observable<GetPaymentDillDepositStatusResponse>
166
+ | GetPaymentDillDepositStatusResponse;
128
167
  }
129
168
 
130
169
  export function DepositIntegrationControllerMethods() {
@@ -133,6 +172,7 @@ export function DepositIntegrationControllerMethods() {
133
172
  "applyBitGoCustodyAck",
134
173
  "createPaymentDillDeposit",
135
174
  "handlePaymentDillDepositWebhook",
175
+ "getPaymentDillDepositStatus",
136
176
  ];
137
177
  for (const method of grpcMethods) {
138
178
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
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.132",
4
+ "version": "1.0.134",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -73,6 +73,10 @@ service StoryService {
73
73
  rpc ReorderStories (ReorderStoriesRequest) returns (ReorderStoriesResponse);
74
74
  }
75
75
 
76
+ service MipifAutoReplyService {
77
+ rpc ListMipifAutoReplyUsers (ListMipifAutoReplyUsersRequest) returns (ListMipifAutoReplyUsersResponse);
78
+ }
79
+
76
80
  // --- PUBLIC CONTENT MESSAGES ---
77
81
  message GetPublicBannersRequest {}
78
82
 
@@ -181,6 +185,27 @@ message DeleteFaqItemRequest {
181
185
 
182
186
  message DeleteFaqItemResponse {}
183
187
 
188
+ // --- MIPIF AUTO REPLY ---
189
+ message ListMipifAutoReplyUsersRequest {}
190
+
191
+ message MipifAutoReplyUser {
192
+ int32 id = 1;
193
+ string telegram_id = 2;
194
+ string chat_id = 3;
195
+ optional string username = 4;
196
+ optional string first_name = 5;
197
+ optional string last_name = 6;
198
+ optional string matched_text = 7;
199
+ string first_matched_at = 8;
200
+ string reply_sent_at = 9;
201
+ string created_at = 10;
202
+ string updated_at = 11;
203
+ }
204
+
205
+ message ListMipifAutoReplyUsersResponse {
206
+ repeated MipifAutoReplyUser users = 1;
207
+ }
208
+
184
209
  // --- ABOUT ---
185
210
  message GetAboutRequest {}
186
211
 
@@ -16,6 +16,9 @@ service DepositIntegration {
16
16
 
17
17
  rpc HandlePaymentDillDepositWebhook(HandlePaymentDillDepositWebhookRequest)
18
18
  returns (HandlePaymentDillDepositWebhookResponse);
19
+
20
+ rpc GetPaymentDillDepositStatus(GetPaymentDillDepositStatusRequest)
21
+ returns (GetPaymentDillDepositStatusResponse);
19
22
  }
20
23
 
21
24
  message ApplyBitGoCustodyAckRequest {
@@ -78,3 +81,31 @@ message HandlePaymentDillDepositWebhookResponse {
78
81
  string deposit_id = 2;
79
82
  string status = 3;
80
83
  }
84
+
85
+ message GetPaymentDillDepositStatusRequest {
86
+ string user_id = 1;
87
+ string deposit_id = 2;
88
+ }
89
+
90
+ message GetPaymentDillDepositStatusResponse {
91
+ string deposit_id = 1;
92
+ string status = 2;
93
+ optional string payment_currency = 3;
94
+ optional string purpose = 4;
95
+ optional string requested_credit_amount = 5;
96
+ optional string amount_major = 6;
97
+ optional string credit_amount = 7;
98
+ optional string credit_asset = 8;
99
+ optional string credit_network = 9;
100
+ optional string provider_transaction_id = 10;
101
+ optional string ledger_deposit_id = 11;
102
+ optional string card_topup_status = 12;
103
+ optional string card_topup_error = 13;
104
+ optional string card_create_status = 14;
105
+ optional string card_create_error = 15;
106
+ optional int64 created_card_id = 16;
107
+ optional string created_at = 17;
108
+ optional string completed_at = 18;
109
+ optional string expires_at = 19;
110
+ optional string expired_at = 20;
111
+ }