@arbiwallet/contracts 1.0.144 → 1.0.146
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 +24 -30
- package/package.json +1 -1
- package/proto/content.proto +24 -30
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: string;
|
|
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: string;
|
|
98
|
+
answer: string;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export interface CreateFaqItemResponse {
|
|
@@ -181,10 +181,10 @@ export interface UpsertAboutResponse {
|
|
|
181
181
|
|
|
182
182
|
export interface CreateFilialRequest {
|
|
183
183
|
imageUrl: string;
|
|
184
|
-
title:
|
|
184
|
+
title: string;
|
|
185
185
|
address: string;
|
|
186
186
|
order: number;
|
|
187
|
-
description?:
|
|
187
|
+
description?: string | undefined;
|
|
188
188
|
longitude?: number | undefined;
|
|
189
189
|
latitude?: number | undefined;
|
|
190
190
|
}
|
|
@@ -231,7 +231,7 @@ export interface GetPublicFilialsResponse {
|
|
|
231
231
|
|
|
232
232
|
export interface CreatePartnerRequest {
|
|
233
233
|
imageUrl: string;
|
|
234
|
-
title:
|
|
234
|
+
title: string;
|
|
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: string;
|
|
326
|
+
title: string;
|
|
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: string;
|
|
365
|
+
title: string;
|
|
366
366
|
values: StoryValue[];
|
|
367
367
|
}
|
|
368
368
|
|
|
@@ -399,29 +399,23 @@ 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
|
-
|
|
408
402
|
export interface Banner {
|
|
409
403
|
id: number;
|
|
410
|
-
imageUrl:
|
|
404
|
+
imageUrl: string;
|
|
411
405
|
order: number;
|
|
412
406
|
link?: string | undefined;
|
|
413
407
|
}
|
|
414
408
|
|
|
415
409
|
export interface FaqItem {
|
|
416
410
|
id: number;
|
|
417
|
-
question:
|
|
418
|
-
answer:
|
|
411
|
+
question: string;
|
|
412
|
+
answer: string;
|
|
419
413
|
}
|
|
420
414
|
|
|
421
415
|
export interface About {
|
|
422
416
|
id: number;
|
|
423
|
-
imageUrl?:
|
|
424
|
-
body?:
|
|
417
|
+
imageUrl?: string | undefined;
|
|
418
|
+
body?: string | undefined;
|
|
425
419
|
latitude?: number | undefined;
|
|
426
420
|
longitude?: number | undefined;
|
|
427
421
|
}
|
|
@@ -429,10 +423,10 @@ export interface About {
|
|
|
429
423
|
export interface Filial {
|
|
430
424
|
id: number;
|
|
431
425
|
imageUrl: string;
|
|
432
|
-
title:
|
|
426
|
+
title: string;
|
|
433
427
|
address: string;
|
|
434
428
|
order: number;
|
|
435
|
-
description?:
|
|
429
|
+
description?: string | undefined;
|
|
436
430
|
longitude?: number | undefined;
|
|
437
431
|
latitude?: number | undefined;
|
|
438
432
|
}
|
|
@@ -440,7 +434,7 @@ export interface Filial {
|
|
|
440
434
|
export interface Partner {
|
|
441
435
|
id: number;
|
|
442
436
|
imageUrl: string;
|
|
443
|
-
title:
|
|
437
|
+
title: string;
|
|
444
438
|
url: string;
|
|
445
439
|
order: number;
|
|
446
440
|
}
|
|
@@ -459,24 +453,24 @@ export interface Blog {
|
|
|
459
453
|
export interface Document {
|
|
460
454
|
id: number;
|
|
461
455
|
slug: string;
|
|
462
|
-
body:
|
|
456
|
+
body: string;
|
|
463
457
|
createdAt: string;
|
|
464
458
|
updatedAt: string;
|
|
465
|
-
title:
|
|
459
|
+
title: string;
|
|
466
460
|
}
|
|
467
461
|
|
|
468
462
|
export interface Story {
|
|
469
463
|
id: number;
|
|
470
|
-
iconUrl:
|
|
471
|
-
title:
|
|
464
|
+
iconUrl: string;
|
|
465
|
+
title: string;
|
|
472
466
|
values: StoryValue[];
|
|
473
467
|
order: number;
|
|
474
468
|
}
|
|
475
469
|
|
|
476
470
|
export interface StoryValue {
|
|
477
471
|
id: number;
|
|
478
|
-
imageUrl:
|
|
479
|
-
button?:
|
|
472
|
+
imageUrl: string;
|
|
473
|
+
button?: string | undefined;
|
|
480
474
|
link?: string | undefined;
|
|
481
475
|
}
|
|
482
476
|
|
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.146",
|
|
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
|
+
string 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
|
+
string question = 1;
|
|
162
|
+
string answer = 2;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
message CreateFaqItemResponse {
|
|
@@ -243,10 +243,10 @@ message UpsertAboutResponse {
|
|
|
243
243
|
|
|
244
244
|
message CreateFilialRequest {
|
|
245
245
|
string image_url = 1;
|
|
246
|
-
|
|
246
|
+
string title = 2;
|
|
247
247
|
string address = 3;
|
|
248
248
|
int32 order = 4;
|
|
249
|
-
optional
|
|
249
|
+
optional string description = 5;
|
|
250
250
|
optional double longitude = 6;
|
|
251
251
|
optional double latitude = 7;
|
|
252
252
|
}
|
|
@@ -291,7 +291,7 @@ message GetPublicFilialsResponse {
|
|
|
291
291
|
|
|
292
292
|
message CreatePartnerRequest {
|
|
293
293
|
string image_url = 1;
|
|
294
|
-
|
|
294
|
+
string 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
|
+
string body = 2;
|
|
381
|
+
string 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
|
+
string icon_url = 1;
|
|
420
|
+
string title = 2;
|
|
421
421
|
repeated StoryValue values = 3;
|
|
422
422
|
}
|
|
423
423
|
|
|
@@ -453,29 +453,23 @@ 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
|
-
|
|
462
456
|
message Banner {
|
|
463
457
|
int32 id = 1;
|
|
464
|
-
|
|
458
|
+
string image_url = 2;
|
|
465
459
|
int32 order = 3;
|
|
466
460
|
optional string link = 4;
|
|
467
461
|
}
|
|
468
462
|
|
|
469
463
|
message FaqItem {
|
|
470
464
|
int32 id = 1;
|
|
471
|
-
|
|
472
|
-
|
|
465
|
+
string question = 2;
|
|
466
|
+
string answer = 3;
|
|
473
467
|
}
|
|
474
468
|
|
|
475
469
|
message About {
|
|
476
470
|
int32 id = 1;
|
|
477
|
-
optional
|
|
478
|
-
optional
|
|
471
|
+
optional string image_url = 2;
|
|
472
|
+
optional string body = 3;
|
|
479
473
|
optional double latitude = 4;
|
|
480
474
|
optional double longitude = 5;
|
|
481
475
|
}
|
|
@@ -483,10 +477,10 @@ message About {
|
|
|
483
477
|
message Filial {
|
|
484
478
|
int32 id = 1;
|
|
485
479
|
string image_url = 2;
|
|
486
|
-
|
|
480
|
+
string title = 3;
|
|
487
481
|
string address = 4;
|
|
488
482
|
int32 order = 5;
|
|
489
|
-
optional
|
|
483
|
+
optional string description = 6;
|
|
490
484
|
optional double longitude = 7;
|
|
491
485
|
optional double latitude = 8;
|
|
492
486
|
}
|
|
@@ -494,7 +488,7 @@ message Filial {
|
|
|
494
488
|
message Partner {
|
|
495
489
|
int32 id = 1;
|
|
496
490
|
string image_url = 2;
|
|
497
|
-
|
|
491
|
+
string title = 3;
|
|
498
492
|
string url = 4;
|
|
499
493
|
int32 order = 5;
|
|
500
494
|
}
|
|
@@ -513,23 +507,23 @@ message Blog {
|
|
|
513
507
|
message Document {
|
|
514
508
|
int32 id = 1;
|
|
515
509
|
string slug = 2;
|
|
516
|
-
|
|
510
|
+
string body = 3;
|
|
517
511
|
string created_at = 4;
|
|
518
512
|
string updated_at = 5;
|
|
519
|
-
|
|
513
|
+
string title = 6;
|
|
520
514
|
}
|
|
521
515
|
|
|
522
516
|
message Story {
|
|
523
517
|
int32 id = 1;
|
|
524
|
-
|
|
525
|
-
|
|
518
|
+
string icon_url = 2;
|
|
519
|
+
string title = 3;
|
|
526
520
|
repeated StoryValue values = 4;
|
|
527
521
|
int32 order = 5;
|
|
528
522
|
}
|
|
529
523
|
|
|
530
524
|
message StoryValue {
|
|
531
525
|
int32 id = 1;
|
|
532
|
-
|
|
533
|
-
optional
|
|
526
|
+
string image_url = 2;
|
|
527
|
+
optional string button = 3;
|
|
534
528
|
optional string link = 4;
|
|
535
529
|
}
|