@barumetric/contracts 1.4.5 → 1.4.6

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.
@@ -87,6 +87,8 @@ export interface DeleteListingResponse {
87
87
  export interface GetListingsByUserRequest {
88
88
  userId: string;
89
89
  status?: ListingStatus | undefined;
90
+ take?: number | undefined;
91
+ skip?: number | undefined;
90
92
  }
91
93
 
92
94
  export interface GetListingsByCategoryRequest {
@@ -101,6 +103,7 @@ export interface GetListingResponse {
101
103
 
102
104
  export interface GetListingsByUserResponse {
103
105
  listings: Listing[];
106
+ total: number;
104
107
  }
105
108
 
106
109
  export interface GetListingsByCategoryResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barumetric/contracts",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -66,6 +66,8 @@ message DeleteListingResponse {
66
66
  message GetListingsByUserRequest {
67
67
  string user_id = 1;
68
68
  optional ListingStatus status = 2;
69
+ optional int32 take = 3;
70
+ optional int32 skip = 4;
69
71
  }
70
72
 
71
73
  message GetListingsByCategoryRequest {
@@ -80,6 +82,7 @@ message GetListingResponse {
80
82
 
81
83
  message GetListingsByUserResponse {
82
84
  repeated Listing listings = 1;
85
+ int32 total = 2;
83
86
  }
84
87
 
85
88
  message GetListingsByCategoryResponse {