@arbiwallet/contracts 1.0.99 → 1.0.101

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
@@ -110,6 +110,53 @@ export interface UpsertAboutResponse {
110
110
  about: About | undefined;
111
111
  }
112
112
 
113
+ export interface CreateFilialRequest {
114
+ imageUrl: string;
115
+ title: string;
116
+ address: string;
117
+ order: number;
118
+ }
119
+
120
+ export interface CreateFilialResponse {
121
+ filial: Filial | undefined;
122
+ }
123
+
124
+ export interface GetFilialsRequest {
125
+ }
126
+
127
+ export interface GetFilialsResponse {
128
+ filials: Filial[];
129
+ }
130
+
131
+ export interface UpdateFilialRequest {
132
+ filial: Filial | undefined;
133
+ }
134
+
135
+ export interface UpdateFilialResponse {
136
+ filial: Filial | undefined;
137
+ }
138
+
139
+ export interface DeleteFilialRequest {
140
+ id: number;
141
+ }
142
+
143
+ export interface DeleteFilialResponse {
144
+ }
145
+
146
+ export interface ReorderFilialsRequest {
147
+ ids: number[];
148
+ }
149
+
150
+ export interface ReorderFilialsResponse {
151
+ }
152
+
153
+ export interface GetPublicFilialsRequest {
154
+ }
155
+
156
+ export interface GetPublicFilialsResponse {
157
+ filials: Filial[];
158
+ }
159
+
113
160
  export interface Banner {
114
161
  id: number;
115
162
  imageUrl: string;
@@ -130,6 +177,14 @@ export interface About {
130
177
  longitude?: number | undefined;
131
178
  }
132
179
 
180
+ export interface Filial {
181
+ id: number;
182
+ imageUrl: string;
183
+ title: string;
184
+ address: string;
185
+ order: number;
186
+ }
187
+
133
188
  export const CONTENT_V1_PACKAGE_NAME = "content.v1";
134
189
 
135
190
  export interface BannerServiceClient {
@@ -230,6 +285,8 @@ export interface PublicContentServiceClient {
230
285
  getPublicBanners(request: GetPublicBannersRequest): Observable<GetPublicBannersResponse>;
231
286
 
232
287
  getPublicFaqs(request: GetPublicFaqsRequest): Observable<GetPublicFaqsResponse>;
288
+
289
+ getPublicFilials(request: GetPublicFilialsRequest): Observable<GetPublicFilialsResponse>;
233
290
  }
234
291
 
235
292
  export interface PublicContentServiceController {
@@ -240,11 +297,15 @@ export interface PublicContentServiceController {
240
297
  getPublicFaqs(
241
298
  request: GetPublicFaqsRequest,
242
299
  ): Promise<GetPublicFaqsResponse> | Observable<GetPublicFaqsResponse> | GetPublicFaqsResponse;
300
+
301
+ getPublicFilials(
302
+ request: GetPublicFilialsRequest,
303
+ ): Promise<GetPublicFilialsResponse> | Observable<GetPublicFilialsResponse> | GetPublicFilialsResponse;
243
304
  }
244
305
 
245
306
  export function PublicContentServiceControllerMethods() {
246
307
  return function (constructor: Function) {
247
- const grpcMethods: string[] = ["getPublicBanners", "getPublicFaqs"];
308
+ const grpcMethods: string[] = ["getPublicBanners", "getPublicFaqs", "getPublicFilials"];
248
309
  for (const method of grpcMethods) {
249
310
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
250
311
  GrpcMethod("PublicContentService", method)(constructor.prototype[method], method, descriptor);
@@ -289,3 +350,54 @@ export function AboutServiceControllerMethods() {
289
350
  }
290
351
 
291
352
  export const ABOUT_SERVICE_NAME = "AboutService";
353
+
354
+ export interface FilialServiceClient {
355
+ createFilial(request: CreateFilialRequest): Observable<CreateFilialResponse>;
356
+
357
+ getFilials(request: GetFilialsRequest): Observable<GetFilialsResponse>;
358
+
359
+ updateFilial(request: UpdateFilialRequest): Observable<UpdateFilialResponse>;
360
+
361
+ deleteFilial(request: DeleteFilialRequest): Observable<DeleteFilialResponse>;
362
+
363
+ reorderFilials(request: ReorderFilialsRequest): Observable<ReorderFilialsResponse>;
364
+ }
365
+
366
+ export interface FilialServiceController {
367
+ createFilial(
368
+ request: CreateFilialRequest,
369
+ ): Promise<CreateFilialResponse> | Observable<CreateFilialResponse> | CreateFilialResponse;
370
+
371
+ getFilials(
372
+ request: GetFilialsRequest,
373
+ ): Promise<GetFilialsResponse> | Observable<GetFilialsResponse> | GetFilialsResponse;
374
+
375
+ updateFilial(
376
+ request: UpdateFilialRequest,
377
+ ): Promise<UpdateFilialResponse> | Observable<UpdateFilialResponse> | UpdateFilialResponse;
378
+
379
+ deleteFilial(
380
+ request: DeleteFilialRequest,
381
+ ): Promise<DeleteFilialResponse> | Observable<DeleteFilialResponse> | DeleteFilialResponse;
382
+
383
+ reorderFilials(
384
+ request: ReorderFilialsRequest,
385
+ ): Promise<ReorderFilialsResponse> | Observable<ReorderFilialsResponse> | ReorderFilialsResponse;
386
+ }
387
+
388
+ export function FilialServiceControllerMethods() {
389
+ return function (constructor: Function) {
390
+ const grpcMethods: string[] = ["createFilial", "getFilials", "updateFilial", "deleteFilial", "reorderFilials"];
391
+ for (const method of grpcMethods) {
392
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
393
+ GrpcMethod("FilialService", method)(constructor.prototype[method], method, descriptor);
394
+ }
395
+ const grpcStreamMethods: string[] = [];
396
+ for (const method of grpcStreamMethods) {
397
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
398
+ GrpcStreamMethod("FilialService", method)(constructor.prototype[method], method, descriptor);
399
+ }
400
+ };
401
+ }
402
+
403
+ export const FILIAL_SERVICE_NAME = "FilialService";
package/gen/deposit.ts CHANGED
@@ -50,6 +50,10 @@ export interface CreatePaymentDillDepositResponse {
50
50
  providerTransactionId?:
51
51
  | string
52
52
  | undefined;
53
+ /** Exact pay-in amount in major units from provider quote. */
54
+ payAmount?:
55
+ | string
56
+ | undefined;
53
57
  /** Pay-in amount in minor units (from payment microservice) */
54
58
  amountMinor?:
55
59
  | string
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.99",
4
+ "version": "1.0.101",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -20,6 +20,7 @@ service FaqService {
20
20
  service PublicContentService {
21
21
  rpc GetPublicBanners (GetPublicBannersRequest) returns (GetPublicBannersResponse);
22
22
  rpc GetPublicFaqs (GetPublicFaqsRequest) returns (GetPublicFaqsResponse);
23
+ rpc GetPublicFilials (GetPublicFilialsRequest) returns (GetPublicFilialsResponse);
23
24
  }
24
25
 
25
26
  service AboutService {
@@ -27,6 +28,14 @@ service AboutService {
27
28
  rpc UpsertAbout (UpsertAboutRequest) returns (UpsertAboutResponse);
28
29
  }
29
30
 
31
+ service FilialService {
32
+ rpc CreateFilial (CreateFilialRequest) returns (CreateFilialResponse);
33
+ rpc GetFilials (GetFilialsRequest) returns (GetFilialsResponse);
34
+ rpc UpdateFilial (UpdateFilialRequest) returns (UpdateFilialResponse);
35
+ rpc DeleteFilial (DeleteFilialRequest) returns (DeleteFilialResponse);
36
+ rpc ReorderFilials (ReorderFilialsRequest) returns (ReorderFilialsResponse);
37
+ }
38
+
30
39
  // --- PUBLIC CONTENT MESSAGES ---
31
40
  message GetPublicBannersRequest {}
32
41
 
@@ -123,6 +132,51 @@ message UpsertAboutResponse {
123
132
  About about = 1;
124
133
  }
125
134
 
135
+ // --- FILIAL MESSAGES ---
136
+
137
+ message CreateFilialRequest {
138
+ string image_url = 1;
139
+ string title = 2;
140
+ string address = 3;
141
+ int32 order = 4;
142
+ }
143
+
144
+ message CreateFilialResponse {
145
+ Filial filial = 1;
146
+ }
147
+
148
+ message GetFilialsRequest {}
149
+
150
+ message GetFilialsResponse {
151
+ repeated Filial filials = 1;
152
+ }
153
+
154
+ message UpdateFilialRequest {
155
+ Filial filial = 1;
156
+ }
157
+
158
+ message UpdateFilialResponse {
159
+ Filial filial = 1;
160
+ }
161
+
162
+ message DeleteFilialRequest {
163
+ int32 id = 1;
164
+ }
165
+
166
+ message DeleteFilialResponse {}
167
+
168
+ message ReorderFilialsRequest {
169
+ repeated int32 ids = 1;
170
+ }
171
+
172
+ message ReorderFilialsResponse {}
173
+
174
+ message GetPublicFilialsRequest {}
175
+
176
+ message GetPublicFilialsResponse {
177
+ repeated Filial filials = 1;
178
+ }
179
+
126
180
  // --- MODELS ---
127
181
 
128
182
  message Banner {
@@ -143,4 +197,12 @@ message About {
143
197
  optional string body = 3;
144
198
  optional double latitude = 4;
145
199
  optional double longitude = 5;
200
+ }
201
+
202
+ message Filial {
203
+ int32 id = 1;
204
+ string image_url = 2;
205
+ string title = 3;
206
+ string address = 4;
207
+ int32 order = 5;
146
208
  }
@@ -52,6 +52,8 @@ message CreatePaymentDillDepositResponse {
52
52
  optional string qr_link = 5;
53
53
  optional string redirect_url = 6;
54
54
  optional string provider_transaction_id = 7;
55
+ /** Exact pay-in amount in major units from provider quote. */
56
+ optional string pay_amount = 14;
55
57
  /** Pay-in amount in minor units (from payment microservice) */
56
58
  optional string amount_minor = 8;
57
59
  /** Pay-in currency (RUB | USDT) */