@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.
@@ -37,11 +37,11 @@ export enum ListingStatus {
37
37
  }
38
38
 
39
39
  export interface CreateListingRequest {
40
- userId: string | undefined;
41
- title: string | undefined;
40
+ userId: string;
41
+ title: string;
42
42
  description?: string | undefined;
43
43
  price?: number | undefined;
44
- categoryId: string | undefined;
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 | undefined;
53
+ id: string;
54
54
  }
55
55
 
56
56
  /** Запросы для получения данных */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barumetric/contracts",
3
- "version": "1.3.27",
3
+ "version": "1.3.28",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -15,20 +15,20 @@ service ListingsService {
15
15
  }
16
16
 
17
17
  message CreateListingRequest {
18
- google.protobuf.StringValue user_id = 1;
19
- google.protobuf.StringValue title = 2;
20
- optional google.protobuf.StringValue description = 3;
21
- optional google.protobuf.Int64Value price = 4;
22
- google.protobuf.StringValue category_id = 5;
23
- optional google.protobuf.FloatValue latitude = 6;
24
- optional google.protobuf.FloatValue longitude = 7;
25
- optional google.protobuf.StringValue video_url = 8;
26
- optional google.protobuf.StringValue status = 9;
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
- google.protobuf.StringValue id = 1;
31
+ string id = 1;
32
32
  }
33
33
 
34
34
  // Запросы для получения данных