@arbiwallet/contracts 1.0.141 → 1.0.143
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 +34 -28
- package/gen/deposit.ts +3 -0
- package/package.json +1 -1
- package/proto/content.proto +34 -28
- package/proto/deposit.proto +3 -0
package/gen/content.ts
CHANGED
|
@@ -55,7 +55,7 @@ export interface GetPublicStoriesResponse {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export interface CreateBannerRequest {
|
|
58
|
-
imageUrl:
|
|
58
|
+
imageUrl: LocalizedString | undefined;
|
|
59
59
|
order: number;
|
|
60
60
|
link?: string | undefined;
|
|
61
61
|
}
|
|
@@ -94,8 +94,8 @@ export interface ReorderBannersResponse {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
export interface CreateFaqItemRequest {
|
|
97
|
-
question:
|
|
98
|
-
answer:
|
|
97
|
+
question: LocalizedString | undefined;
|
|
98
|
+
answer: LocalizedString | undefined;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export interface CreateFaqItemResponse {
|
|
@@ -180,11 +180,11 @@ export interface UpsertAboutResponse {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
export interface CreateFilialRequest {
|
|
183
|
-
imageUrl:
|
|
184
|
-
title:
|
|
183
|
+
imageUrl: LocalizedString | undefined;
|
|
184
|
+
title: LocalizedString | undefined;
|
|
185
185
|
address: string;
|
|
186
186
|
order: number;
|
|
187
|
-
description?:
|
|
187
|
+
description?: LocalizedString | undefined;
|
|
188
188
|
longitude?: number | undefined;
|
|
189
189
|
latitude?: number | undefined;
|
|
190
190
|
}
|
|
@@ -230,8 +230,8 @@ export interface GetPublicFilialsResponse {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
export interface CreatePartnerRequest {
|
|
233
|
-
imageUrl:
|
|
234
|
-
title:
|
|
233
|
+
imageUrl: LocalizedString | undefined;
|
|
234
|
+
title: LocalizedString | undefined;
|
|
235
235
|
url: string;
|
|
236
236
|
order: number;
|
|
237
237
|
}
|
|
@@ -322,8 +322,8 @@ export interface ReorderBlogsResponse {
|
|
|
322
322
|
|
|
323
323
|
export interface CreateDocumentRequest {
|
|
324
324
|
slug: string;
|
|
325
|
-
body:
|
|
326
|
-
title:
|
|
325
|
+
body: LocalizedString | undefined;
|
|
326
|
+
title: LocalizedString | undefined;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
export interface CreateDocumentResponse {
|
|
@@ -361,8 +361,8 @@ export interface DeleteDocumentResponse {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
export interface CreateStoryRequest {
|
|
364
|
-
iconUrl:
|
|
365
|
-
title:
|
|
364
|
+
iconUrl: LocalizedString | undefined;
|
|
365
|
+
title: LocalizedString | undefined;
|
|
366
366
|
values: StoryValue[];
|
|
367
367
|
}
|
|
368
368
|
|
|
@@ -399,42 +399,48 @@ export interface ReorderStoriesRequest {
|
|
|
399
399
|
export interface ReorderStoriesResponse {
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
+
export interface LocalizedString {
|
|
403
|
+
ru: string;
|
|
404
|
+
en: string;
|
|
405
|
+
th: string;
|
|
406
|
+
}
|
|
407
|
+
|
|
402
408
|
export interface Banner {
|
|
403
409
|
id: number;
|
|
404
|
-
imageUrl:
|
|
410
|
+
imageUrl: LocalizedString | undefined;
|
|
405
411
|
order: number;
|
|
406
412
|
link?: string | undefined;
|
|
407
413
|
}
|
|
408
414
|
|
|
409
415
|
export interface FaqItem {
|
|
410
416
|
id: number;
|
|
411
|
-
question:
|
|
412
|
-
answer:
|
|
417
|
+
question: LocalizedString | undefined;
|
|
418
|
+
answer: LocalizedString | undefined;
|
|
413
419
|
}
|
|
414
420
|
|
|
415
421
|
export interface About {
|
|
416
422
|
id: number;
|
|
417
|
-
imageUrl?:
|
|
418
|
-
body?:
|
|
423
|
+
imageUrl?: LocalizedString | undefined;
|
|
424
|
+
body?: LocalizedString | undefined;
|
|
419
425
|
latitude?: number | undefined;
|
|
420
426
|
longitude?: number | undefined;
|
|
421
427
|
}
|
|
422
428
|
|
|
423
429
|
export interface Filial {
|
|
424
430
|
id: number;
|
|
425
|
-
imageUrl:
|
|
426
|
-
title:
|
|
431
|
+
imageUrl: LocalizedString | undefined;
|
|
432
|
+
title: LocalizedString | undefined;
|
|
427
433
|
address: string;
|
|
428
434
|
order: number;
|
|
429
|
-
description?:
|
|
435
|
+
description?: LocalizedString | undefined;
|
|
430
436
|
longitude?: number | undefined;
|
|
431
437
|
latitude?: number | undefined;
|
|
432
438
|
}
|
|
433
439
|
|
|
434
440
|
export interface Partner {
|
|
435
441
|
id: number;
|
|
436
|
-
imageUrl:
|
|
437
|
-
title:
|
|
442
|
+
imageUrl: LocalizedString | undefined;
|
|
443
|
+
title: LocalizedString | undefined;
|
|
438
444
|
url: string;
|
|
439
445
|
order: number;
|
|
440
446
|
}
|
|
@@ -453,24 +459,24 @@ export interface Blog {
|
|
|
453
459
|
export interface Document {
|
|
454
460
|
id: number;
|
|
455
461
|
slug: string;
|
|
456
|
-
body:
|
|
462
|
+
body: LocalizedString | undefined;
|
|
457
463
|
createdAt: string;
|
|
458
464
|
updatedAt: string;
|
|
459
|
-
title:
|
|
465
|
+
title: LocalizedString | undefined;
|
|
460
466
|
}
|
|
461
467
|
|
|
462
468
|
export interface Story {
|
|
463
469
|
id: number;
|
|
464
|
-
iconUrl:
|
|
465
|
-
title:
|
|
470
|
+
iconUrl: LocalizedString | undefined;
|
|
471
|
+
title: LocalizedString | undefined;
|
|
466
472
|
values: StoryValue[];
|
|
467
473
|
order: number;
|
|
468
474
|
}
|
|
469
475
|
|
|
470
476
|
export interface StoryValue {
|
|
471
477
|
id: number;
|
|
472
|
-
imageUrl:
|
|
473
|
-
button?:
|
|
478
|
+
imageUrl: LocalizedString | undefined;
|
|
479
|
+
button?: LocalizedString | undefined;
|
|
474
480
|
link?: string | undefined;
|
|
475
481
|
}
|
|
476
482
|
|
package/gen/deposit.ts
CHANGED
|
@@ -113,6 +113,9 @@ export interface GetPaymentDillDepositStatusResponse {
|
|
|
113
113
|
completedAt?: string | undefined;
|
|
114
114
|
expiresAt?: string | undefined;
|
|
115
115
|
expiredAt?: string | undefined;
|
|
116
|
+
payoutStatus?: string | undefined;
|
|
117
|
+
payoutError?: string | undefined;
|
|
118
|
+
payoutId?: number | undefined;
|
|
116
119
|
}
|
|
117
120
|
|
|
118
121
|
export const DEPOSIT_V1_PACKAGE_NAME = "deposit.v1";
|
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.
|
|
4
|
+
"version": "1.0.143",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
package/proto/content.proto
CHANGED
|
@@ -120,7 +120,7 @@ message GetPublicStoriesResponse {
|
|
|
120
120
|
// --- BANNER MESSAGES ---
|
|
121
121
|
|
|
122
122
|
message CreateBannerRequest {
|
|
123
|
-
|
|
123
|
+
LocalizedString image_url = 1;
|
|
124
124
|
int32 order = 2;
|
|
125
125
|
optional string link = 3;
|
|
126
126
|
}
|
|
@@ -158,8 +158,8 @@ message ReorderBannersResponse {}
|
|
|
158
158
|
// --- FAQ MESSAGES ---
|
|
159
159
|
|
|
160
160
|
message CreateFaqItemRequest {
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
LocalizedString question = 1;
|
|
162
|
+
LocalizedString answer = 2;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
message CreateFaqItemResponse {
|
|
@@ -242,11 +242,11 @@ message UpsertAboutResponse {
|
|
|
242
242
|
// --- FILIAL MESSAGES ---
|
|
243
243
|
|
|
244
244
|
message CreateFilialRequest {
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
LocalizedString image_url = 1;
|
|
246
|
+
LocalizedString title = 2;
|
|
247
247
|
string address = 3;
|
|
248
248
|
int32 order = 4;
|
|
249
|
-
optional
|
|
249
|
+
optional LocalizedString description = 5;
|
|
250
250
|
optional double longitude = 6;
|
|
251
251
|
optional double latitude = 7;
|
|
252
252
|
}
|
|
@@ -290,8 +290,8 @@ message GetPublicFilialsResponse {
|
|
|
290
290
|
// --- PARTNER ---
|
|
291
291
|
|
|
292
292
|
message CreatePartnerRequest {
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
LocalizedString image_url = 1;
|
|
294
|
+
LocalizedString title = 2;
|
|
295
295
|
string url = 3;
|
|
296
296
|
int32 order = 4;
|
|
297
297
|
}
|
|
@@ -377,8 +377,8 @@ message ReorderBlogsResponse {}
|
|
|
377
377
|
|
|
378
378
|
message CreateDocumentRequest {
|
|
379
379
|
string slug = 1;
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
LocalizedString body = 2;
|
|
381
|
+
LocalizedString title = 3;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
message CreateDocumentResponse {
|
|
@@ -416,8 +416,8 @@ message DeleteDocumentResponse {}
|
|
|
416
416
|
// --- STORY ---
|
|
417
417
|
|
|
418
418
|
message CreateStoryRequest {
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
LocalizedString icon_url = 1;
|
|
420
|
+
LocalizedString title = 2;
|
|
421
421
|
repeated StoryValue values = 3;
|
|
422
422
|
}
|
|
423
423
|
|
|
@@ -453,42 +453,48 @@ message ReorderStoriesResponse {}
|
|
|
453
453
|
|
|
454
454
|
// --- MODELS ---
|
|
455
455
|
|
|
456
|
+
message LocalizedString {
|
|
457
|
+
string ru = 1;
|
|
458
|
+
string en = 2;
|
|
459
|
+
string th = 3;
|
|
460
|
+
}
|
|
461
|
+
|
|
456
462
|
message Banner {
|
|
457
463
|
int32 id = 1;
|
|
458
|
-
|
|
464
|
+
LocalizedString image_url = 2;
|
|
459
465
|
int32 order = 3;
|
|
460
466
|
optional string link = 4;
|
|
461
467
|
}
|
|
462
468
|
|
|
463
469
|
message FaqItem {
|
|
464
470
|
int32 id = 1;
|
|
465
|
-
|
|
466
|
-
|
|
471
|
+
LocalizedString question = 2;
|
|
472
|
+
LocalizedString answer = 3;
|
|
467
473
|
}
|
|
468
474
|
|
|
469
475
|
message About {
|
|
470
476
|
int32 id = 1;
|
|
471
|
-
optional
|
|
472
|
-
optional
|
|
477
|
+
optional LocalizedString image_url = 2;
|
|
478
|
+
optional LocalizedString body = 3;
|
|
473
479
|
optional double latitude = 4;
|
|
474
480
|
optional double longitude = 5;
|
|
475
481
|
}
|
|
476
482
|
|
|
477
483
|
message Filial {
|
|
478
484
|
int32 id = 1;
|
|
479
|
-
|
|
480
|
-
|
|
485
|
+
LocalizedString image_url = 2;
|
|
486
|
+
LocalizedString title = 3;
|
|
481
487
|
string address = 4;
|
|
482
488
|
int32 order = 5;
|
|
483
|
-
optional
|
|
489
|
+
optional LocalizedString description = 6;
|
|
484
490
|
optional double longitude = 7;
|
|
485
491
|
optional double latitude = 8;
|
|
486
492
|
}
|
|
487
493
|
|
|
488
494
|
message Partner {
|
|
489
495
|
int32 id = 1;
|
|
490
|
-
|
|
491
|
-
|
|
496
|
+
LocalizedString image_url = 2;
|
|
497
|
+
LocalizedString title = 3;
|
|
492
498
|
string url = 4;
|
|
493
499
|
int32 order = 5;
|
|
494
500
|
}
|
|
@@ -507,23 +513,23 @@ message Blog {
|
|
|
507
513
|
message Document {
|
|
508
514
|
int32 id = 1;
|
|
509
515
|
string slug = 2;
|
|
510
|
-
|
|
516
|
+
LocalizedString body = 3;
|
|
511
517
|
string created_at = 4;
|
|
512
518
|
string updated_at = 5;
|
|
513
|
-
|
|
519
|
+
LocalizedString title = 6;
|
|
514
520
|
}
|
|
515
521
|
|
|
516
522
|
message Story {
|
|
517
523
|
int32 id = 1;
|
|
518
|
-
|
|
519
|
-
|
|
524
|
+
LocalizedString icon_url = 2;
|
|
525
|
+
LocalizedString title = 3;
|
|
520
526
|
repeated StoryValue values = 4;
|
|
521
527
|
int32 order = 5;
|
|
522
528
|
}
|
|
523
529
|
|
|
524
530
|
message StoryValue {
|
|
525
531
|
int32 id = 1;
|
|
526
|
-
|
|
527
|
-
optional
|
|
532
|
+
LocalizedString image_url = 2;
|
|
533
|
+
optional LocalizedString button = 3;
|
|
528
534
|
optional string link = 4;
|
|
529
535
|
}
|
package/proto/deposit.proto
CHANGED
|
@@ -108,4 +108,7 @@ message GetPaymentDillDepositStatusResponse {
|
|
|
108
108
|
optional string completed_at = 18;
|
|
109
109
|
optional string expires_at = 19;
|
|
110
110
|
optional string expired_at = 20;
|
|
111
|
+
optional string payout_status = 21;
|
|
112
|
+
optional string payout_error = 22;
|
|
113
|
+
optional int64 payout_id = 23;
|
|
111
114
|
}
|