@barumetric/contracts 1.3.28 → 1.4.0
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/images.ts +2 -3
- package/gen/ts/listings.ts +0 -4
- package/gen/ts/media.ts +1 -0
- package/package.json +1 -1
- package/proto/images.proto +6 -7
- package/proto/listings.proto +0 -2
- package/proto/media.proto +1 -0
- package/gen/ts/google/protobuf/wrappers.ts +0 -101
package/gen/ts/images.ts
CHANGED
|
@@ -12,13 +12,12 @@ import { Timestamp } from "./google/protobuf/timestamp";
|
|
|
12
12
|
export const protobufPackage = "images.v1";
|
|
13
13
|
|
|
14
14
|
export interface GetStatusImagesRequest {
|
|
15
|
-
|
|
15
|
+
listingId: string;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface GetStatusImagesResponse {
|
|
19
|
-
tempId: string;
|
|
20
|
-
status: string;
|
|
21
19
|
listingId: string;
|
|
20
|
+
status: string;
|
|
22
21
|
imageCount: number;
|
|
23
22
|
results: ImageProcessing[];
|
|
24
23
|
createdAt: Timestamp | undefined;
|
package/gen/ts/listings.ts
CHANGED
|
@@ -109,8 +109,6 @@ export const LISTINGS_V1_PACKAGE_NAME = "listings.v1";
|
|
|
109
109
|
wrappers[".google.protobuf.Struct"] = { fromObject: Struct.wrap, toObject: Struct.unwrap } as any;
|
|
110
110
|
|
|
111
111
|
export interface ListingsServiceClient {
|
|
112
|
-
/** Получение данных через gRPC */
|
|
113
|
-
|
|
114
112
|
createListing(request: CreateListingRequest): Observable<CreateListingResponse>;
|
|
115
113
|
|
|
116
114
|
getListing(request: GetListingRequest): Observable<GetListingResponse>;
|
|
@@ -121,8 +119,6 @@ export interface ListingsServiceClient {
|
|
|
121
119
|
}
|
|
122
120
|
|
|
123
121
|
export interface ListingsServiceController {
|
|
124
|
-
/** Получение данных через gRPC */
|
|
125
|
-
|
|
126
122
|
createListing(
|
|
127
123
|
request: CreateListingRequest,
|
|
128
124
|
): Promise<CreateListingResponse> | Observable<CreateListingResponse> | CreateListingResponse;
|
package/gen/ts/media.ts
CHANGED
package/package.json
CHANGED
package/proto/images.proto
CHANGED
|
@@ -10,17 +10,16 @@ service ImagesService {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
message GetStatusImagesRequest {
|
|
13
|
-
string
|
|
13
|
+
string listing_id = 1;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
message GetStatusImagesResponse {
|
|
17
|
-
|
|
17
|
+
string listing_id = 1;
|
|
18
18
|
string status = 2;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
google.protobuf.Timestamp
|
|
23
|
-
google.protobuf.Timestamp completed_at = 7;
|
|
19
|
+
int32 image_count = 3;
|
|
20
|
+
repeated ImageProcessing results = 4;
|
|
21
|
+
google.protobuf.Timestamp created_at = 5;
|
|
22
|
+
google.protobuf.Timestamp completed_at = 6;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
message ImageProcessing {
|
package/proto/listings.proto
CHANGED
|
@@ -3,11 +3,9 @@ syntax = "proto3";
|
|
|
3
3
|
package listings.v1;
|
|
4
4
|
|
|
5
5
|
import "google/protobuf/empty.proto";
|
|
6
|
-
import "google/protobuf/wrappers.proto";
|
|
7
6
|
import "google/protobuf/struct.proto";
|
|
8
7
|
|
|
9
8
|
service ListingsService {
|
|
10
|
-
// Получение данных через gRPC
|
|
11
9
|
rpc CreateListing (CreateListingRequest) returns (CreateListingResponse);
|
|
12
10
|
rpc GetListing (GetListingRequest) returns (GetListingResponse);
|
|
13
11
|
rpc GetListingsByUser (GetListingsByUserRequest) returns (GetListingsByUserResponse);
|
package/proto/media.proto
CHANGED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.0
|
|
4
|
-
// protoc v3.21.12
|
|
5
|
-
// source: google/protobuf/wrappers.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
|
|
9
|
-
export const protobufPackage = "google.protobuf";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Wrapper message for `double`.
|
|
13
|
-
*
|
|
14
|
-
* The JSON representation for `DoubleValue` is JSON number.
|
|
15
|
-
*/
|
|
16
|
-
export interface DoubleValue {
|
|
17
|
-
/** The double value. */
|
|
18
|
-
value: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Wrapper message for `float`.
|
|
23
|
-
*
|
|
24
|
-
* The JSON representation for `FloatValue` is JSON number.
|
|
25
|
-
*/
|
|
26
|
-
export interface FloatValue {
|
|
27
|
-
/** The float value. */
|
|
28
|
-
value: number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Wrapper message for `int64`.
|
|
33
|
-
*
|
|
34
|
-
* The JSON representation for `Int64Value` is JSON string.
|
|
35
|
-
*/
|
|
36
|
-
export interface Int64Value {
|
|
37
|
-
/** The int64 value. */
|
|
38
|
-
value: number;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Wrapper message for `uint64`.
|
|
43
|
-
*
|
|
44
|
-
* The JSON representation for `UInt64Value` is JSON string.
|
|
45
|
-
*/
|
|
46
|
-
export interface UInt64Value {
|
|
47
|
-
/** The uint64 value. */
|
|
48
|
-
value: number;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Wrapper message for `int32`.
|
|
53
|
-
*
|
|
54
|
-
* The JSON representation for `Int32Value` is JSON number.
|
|
55
|
-
*/
|
|
56
|
-
export interface Int32Value {
|
|
57
|
-
/** The int32 value. */
|
|
58
|
-
value: number;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Wrapper message for `uint32`.
|
|
63
|
-
*
|
|
64
|
-
* The JSON representation for `UInt32Value` is JSON number.
|
|
65
|
-
*/
|
|
66
|
-
export interface UInt32Value {
|
|
67
|
-
/** The uint32 value. */
|
|
68
|
-
value: number;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Wrapper message for `bool`.
|
|
73
|
-
*
|
|
74
|
-
* The JSON representation for `BoolValue` is JSON `true` and `false`.
|
|
75
|
-
*/
|
|
76
|
-
export interface BoolValue {
|
|
77
|
-
/** The bool value. */
|
|
78
|
-
value: boolean;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Wrapper message for `string`.
|
|
83
|
-
*
|
|
84
|
-
* The JSON representation for `StringValue` is JSON string.
|
|
85
|
-
*/
|
|
86
|
-
export interface StringValue {
|
|
87
|
-
/** The string value. */
|
|
88
|
-
value: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Wrapper message for `bytes`.
|
|
93
|
-
*
|
|
94
|
-
* The JSON representation for `BytesValue` is JSON string.
|
|
95
|
-
*/
|
|
96
|
-
export interface BytesValue {
|
|
97
|
-
/** The bytes value. */
|
|
98
|
-
value: Uint8Array;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|