@barumetric/contracts 1.4.3 → 1.4.4

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.
@@ -53,6 +53,24 @@ export interface CreateListingResponse {
53
53
  id: string;
54
54
  }
55
55
 
56
+ export interface UpdateListingRequest {
57
+ id: string;
58
+ userId: string;
59
+ title: string;
60
+ description?: string | undefined;
61
+ price?: number | undefined;
62
+ categoryId: string;
63
+ latitude?: number | undefined;
64
+ longitude?: number | undefined;
65
+ videoUrl?: string | undefined;
66
+ status?: string | undefined;
67
+ attributes?: { [key: string]: any } | undefined;
68
+ }
69
+
70
+ export interface UpdateListingResponse {
71
+ id: string;
72
+ }
73
+
56
74
  export interface GetListingRequest {
57
75
  id: string;
58
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barumetric/contracts",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -32,6 +32,24 @@ message CreateListingResponse {
32
32
  string id = 1;
33
33
  }
34
34
 
35
+ message UpdateListingRequest {
36
+ string id = 1;
37
+ string user_id = 2;
38
+ string title = 3;
39
+ optional string description = 4;
40
+ optional float price = 5;
41
+ string category_id = 6;
42
+ optional float latitude = 7;
43
+ optional float longitude = 8;
44
+ optional string video_url = 9;
45
+ optional string status = 10;
46
+ optional google.protobuf.Struct attributes = 11;
47
+ }
48
+
49
+ message UpdateListingResponse {
50
+ string id = 1;
51
+ }
52
+
35
53
  message GetListingRequest {
36
54
  string id = 1;
37
55
  }