@barumetric/contracts 1.3.27 → 1.3.28
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/ts/listings.ts +4 -4
- package/package.json +1 -1
- package/proto/listings.proto +10 -10
package/gen/ts/listings.ts
CHANGED
|
@@ -37,11 +37,11 @@ export enum ListingStatus {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface CreateListingRequest {
|
|
40
|
-
userId: string
|
|
41
|
-
title: string
|
|
40
|
+
userId: string;
|
|
41
|
+
title: string;
|
|
42
42
|
description?: string | undefined;
|
|
43
43
|
price?: number | undefined;
|
|
44
|
-
categoryId: string
|
|
44
|
+
categoryId: string;
|
|
45
45
|
latitude?: number | undefined;
|
|
46
46
|
longitude?: number | undefined;
|
|
47
47
|
videoUrl?: string | undefined;
|
|
@@ -50,7 +50,7 @@ export interface CreateListingRequest {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export interface CreateListingResponse {
|
|
53
|
-
id: string
|
|
53
|
+
id: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/** Запросы для получения данных */
|
package/package.json
CHANGED
package/proto/listings.proto
CHANGED
|
@@ -15,20 +15,20 @@ service ListingsService {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
message CreateListingRequest {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
optional
|
|
21
|
-
optional
|
|
22
|
-
|
|
23
|
-
optional
|
|
24
|
-
optional
|
|
25
|
-
optional
|
|
26
|
-
optional
|
|
18
|
+
string user_id = 1;
|
|
19
|
+
string title = 2;
|
|
20
|
+
optional string description = 3;
|
|
21
|
+
optional float price = 4;
|
|
22
|
+
string category_id = 5;
|
|
23
|
+
optional float latitude = 6;
|
|
24
|
+
optional float longitude = 7;
|
|
25
|
+
optional string video_url = 8;
|
|
26
|
+
optional string status = 9;
|
|
27
27
|
optional google.protobuf.Struct attributes = 10;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
message CreateListingResponse {
|
|
31
|
-
|
|
31
|
+
string id = 1;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
// Запросы для получения данных
|