@caronashow/api 0.4.0 → 0.5.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.
@@ -0,0 +1,219 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file caronashow/pooler/v1/pooler.proto.
6
+ */
7
+ export declare const file_caronashow_pooler_v1_pooler: GenFile;
8
+ /**
9
+ * @generated from message caronashow.pooler.v1.Operation
10
+ */
11
+ export type Operation = Message<"caronashow.pooler.v1.Operation"> & {
12
+ /**
13
+ * @generated from field: string operation_id = 1;
14
+ */
15
+ operationId: string;
16
+ /**
17
+ * @generated from field: string dataset_id = 2;
18
+ */
19
+ datasetId: string;
20
+ /**
21
+ * @generated from field: google.protobuf.Timestamp started_at = 3;
22
+ */
23
+ startedAt?: Timestamp;
24
+ /**
25
+ * @generated from field: google.protobuf.Duration time_elapsed = 4;
26
+ */
27
+ timeElapsed?: Duration;
28
+ /**
29
+ * @generated from field: caronashow.pooler.v1.OperationState state = 5;
30
+ */
31
+ state: OperationState;
32
+ };
33
+ /**
34
+ * Describes the message caronashow.pooler.v1.Operation.
35
+ * Use `create(OperationSchema)` to create a new message.
36
+ */
37
+ export declare const OperationSchema: GenMessage<Operation>;
38
+ /**
39
+ * @generated from message caronashow.pooler.v1.ExecuteMatchingAlgorithmOnDatasetRequest
40
+ */
41
+ export type ExecuteMatchingAlgorithmOnDatasetRequest = Message<"caronashow.pooler.v1.ExecuteMatchingAlgorithmOnDatasetRequest"> & {
42
+ /**
43
+ * @generated from field: string dataset_id = 1;
44
+ */
45
+ datasetId: string;
46
+ /**
47
+ * @generated from field: caronashow.pooler.v1.MatchingAlgorithm algorithm = 2;
48
+ */
49
+ algorithm: MatchingAlgorithm;
50
+ };
51
+ /**
52
+ * Describes the message caronashow.pooler.v1.ExecuteMatchingAlgorithmOnDatasetRequest.
53
+ * Use `create(ExecuteMatchingAlgorithmOnDatasetRequestSchema)` to create a new message.
54
+ */
55
+ export declare const ExecuteMatchingAlgorithmOnDatasetRequestSchema: GenMessage<ExecuteMatchingAlgorithmOnDatasetRequest>;
56
+ /**
57
+ * @generated from message caronashow.pooler.v1.ExecuteMatchingAlgorithmOnDatasetResponse
58
+ */
59
+ export type ExecuteMatchingAlgorithmOnDatasetResponse = Message<"caronashow.pooler.v1.ExecuteMatchingAlgorithmOnDatasetResponse"> & {
60
+ /**
61
+ * @generated from field: caronashow.pooler.v1.Operation operation = 1;
62
+ */
63
+ operation?: Operation;
64
+ };
65
+ /**
66
+ * Describes the message caronashow.pooler.v1.ExecuteMatchingAlgorithmOnDatasetResponse.
67
+ * Use `create(ExecuteMatchingAlgorithmOnDatasetResponseSchema)` to create a new message.
68
+ */
69
+ export declare const ExecuteMatchingAlgorithmOnDatasetResponseSchema: GenMessage<ExecuteMatchingAlgorithmOnDatasetResponse>;
70
+ /**
71
+ * @generated from message caronashow.pooler.v1.ListOperationsRequest
72
+ */
73
+ export type ListOperationsRequest = Message<"caronashow.pooler.v1.ListOperationsRequest"> & {
74
+ /**
75
+ * @generated from field: optional int32 limit = 1;
76
+ */
77
+ limit?: number;
78
+ /**
79
+ * @generated from field: optional caronashow.pooler.v1.OperationState state = 2;
80
+ */
81
+ state?: OperationState;
82
+ };
83
+ /**
84
+ * Describes the message caronashow.pooler.v1.ListOperationsRequest.
85
+ * Use `create(ListOperationsRequestSchema)` to create a new message.
86
+ */
87
+ export declare const ListOperationsRequestSchema: GenMessage<ListOperationsRequest>;
88
+ /**
89
+ * @generated from message caronashow.pooler.v1.ListOperationsResponse
90
+ */
91
+ export type ListOperationsResponse = Message<"caronashow.pooler.v1.ListOperationsResponse"> & {
92
+ /**
93
+ * @generated from field: repeated caronashow.pooler.v1.Operation operations = 1;
94
+ */
95
+ operations: Operation[];
96
+ };
97
+ /**
98
+ * Describes the message caronashow.pooler.v1.ListOperationsResponse.
99
+ * Use `create(ListOperationsResponseSchema)` to create a new message.
100
+ */
101
+ export declare const ListOperationsResponseSchema: GenMessage<ListOperationsResponse>;
102
+ /**
103
+ * @generated from message caronashow.pooler.v1.GetStateOfOperationRequest
104
+ */
105
+ export type GetStateOfOperationRequest = Message<"caronashow.pooler.v1.GetStateOfOperationRequest"> & {
106
+ /**
107
+ * @generated from field: string operation_id = 1;
108
+ */
109
+ operationId: string;
110
+ };
111
+ /**
112
+ * Describes the message caronashow.pooler.v1.GetStateOfOperationRequest.
113
+ * Use `create(GetStateOfOperationRequestSchema)` to create a new message.
114
+ */
115
+ export declare const GetStateOfOperationRequestSchema: GenMessage<GetStateOfOperationRequest>;
116
+ /**
117
+ * @generated from message caronashow.pooler.v1.GetStateOfOperationResponse
118
+ */
119
+ export type GetStateOfOperationResponse = Message<"caronashow.pooler.v1.GetStateOfOperationResponse"> & {
120
+ /**
121
+ * @generated from field: caronashow.pooler.v1.Operation operation = 1;
122
+ */
123
+ operation?: Operation;
124
+ };
125
+ /**
126
+ * Describes the message caronashow.pooler.v1.GetStateOfOperationResponse.
127
+ * Use `create(GetStateOfOperationResponseSchema)` to create a new message.
128
+ */
129
+ export declare const GetStateOfOperationResponseSchema: GenMessage<GetStateOfOperationResponse>;
130
+ /**
131
+ * @generated from enum caronashow.pooler.v1.MatchingAlgorithm
132
+ */
133
+ export declare enum MatchingAlgorithm {
134
+ /**
135
+ * @generated from enum value: MATCHING_ALGORITHM_UNSPECIFIED = 0;
136
+ */
137
+ UNSPECIFIED = 0,
138
+ /**
139
+ * @generated from enum value: MATCHING_ALGORITHM_RANDOM = 1;
140
+ */
141
+ RANDOM = 1,
142
+ /**
143
+ * @generated from enum value: MATCHING_ALGORITHM_ROUTE_SIMILARITY = 2;
144
+ */
145
+ ROUTE_SIMILARITY = 2,
146
+ /**
147
+ * @generated from enum value: MATCHING_ALGORITHM_POINT_DISTANCE = 3;
148
+ */
149
+ POINT_DISTANCE = 3,
150
+ /**
151
+ * @generated from enum value: MATCHING_ALGORITHM_FULL = 4;
152
+ */
153
+ FULL = 4
154
+ }
155
+ /**
156
+ * Describes the enum caronashow.pooler.v1.MatchingAlgorithm.
157
+ */
158
+ export declare const MatchingAlgorithmSchema: GenEnum<MatchingAlgorithm>;
159
+ /**
160
+ * @generated from enum caronashow.pooler.v1.OperationState
161
+ */
162
+ export declare enum OperationState {
163
+ /**
164
+ * @generated from enum value: OPERATION_STATE_UNSPECIFIED = 0;
165
+ */
166
+ UNSPECIFIED = 0,
167
+ /**
168
+ * @generated from enum value: OPERATION_STATE_PENDING = 1;
169
+ */
170
+ PENDING = 1,
171
+ /**
172
+ * @generated from enum value: OPERATION_STATE_RUNNING = 2;
173
+ */
174
+ RUNNING = 2,
175
+ /**
176
+ * @generated from enum value: OPERATION_STATE_SUCCEEDED = 3;
177
+ */
178
+ SUCCEEDED = 3,
179
+ /**
180
+ * @generated from enum value: OPERATION_STATE_FAILED = 4;
181
+ */
182
+ FAILED = 4
183
+ }
184
+ /**
185
+ * Describes the enum caronashow.pooler.v1.OperationState.
186
+ */
187
+ export declare const OperationStateSchema: GenEnum<OperationState>;
188
+ /**
189
+ * Service executing the main carpooling algorithm on
190
+ * datasets defined directly in the database
191
+ *
192
+ * @generated from service caronashow.pooler.v1.PoolerService
193
+ */
194
+ export declare const PoolerService: GenService<{
195
+ /**
196
+ * @generated from rpc caronashow.pooler.v1.PoolerService.ExecuteMatchingAlgorithmOnDataset
197
+ */
198
+ executeMatchingAlgorithmOnDataset: {
199
+ methodKind: "unary";
200
+ input: typeof ExecuteMatchingAlgorithmOnDatasetRequestSchema;
201
+ output: typeof ExecuteMatchingAlgorithmOnDatasetResponseSchema;
202
+ };
203
+ /**
204
+ * @generated from rpc caronashow.pooler.v1.PoolerService.ListOperations
205
+ */
206
+ listOperations: {
207
+ methodKind: "unary";
208
+ input: typeof ListOperationsRequestSchema;
209
+ output: typeof ListOperationsResponseSchema;
210
+ };
211
+ /**
212
+ * @generated from rpc caronashow.pooler.v1.PoolerService.GetStateOfOperation
213
+ */
214
+ getStateOfOperation: {
215
+ methodKind: "unary";
216
+ input: typeof GetStateOfOperationRequestSchema;
217
+ output: typeof GetStateOfOperationResponseSchema;
218
+ };
219
+ }>;
@@ -0,0 +1,9 @@
1
+ import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ /**
3
+ * Describes the file caronashow/service/v1/map.proto.
4
+ */
5
+ export declare const file_caronashow_service_v1_map: GenFile;
6
+ /**
7
+ * @generated from service caronashow.service.v1.MapService
8
+ */
9
+ export declare const MapService: GenService<{}>;
@@ -0,0 +1,24 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file caronashow/types/v1/test_type.proto.
5
+ */
6
+ export declare const file_caronashow_types_v1_test_type: GenFile;
7
+ /**
8
+ * @generated from message caronashow.types.v1.TestType
9
+ */
10
+ export type TestType = Message<"caronashow.types.v1.TestType"> & {
11
+ /**
12
+ * @generated from field: string id = 1;
13
+ */
14
+ id: string;
15
+ /**
16
+ * @generated from field: string name = 2;
17
+ */
18
+ name: string;
19
+ };
20
+ /**
21
+ * Describes the message caronashow.types.v1.TestType.
22
+ * Use `create(TestTypeSchema)` to create a new message.
23
+ */
24
+ export declare const TestTypeSchema: GenMessage<TestType>;
@@ -0,0 +1,36 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file caronashow/types/v1/user.proto.
5
+ */
6
+ export declare const file_caronashow_types_v1_user: GenFile;
7
+ /**
8
+ * @generated from message caronashow.types.v1.User
9
+ */
10
+ export type User = Message<"caronashow.types.v1.User"> & {
11
+ /**
12
+ * @generated from field: string id = 1;
13
+ */
14
+ id: string;
15
+ /**
16
+ * @generated from field: string username = 2;
17
+ */
18
+ username: string;
19
+ /**
20
+ * @generated from field: string first_name = 3;
21
+ */
22
+ firstName: string;
23
+ /**
24
+ * @generated from field: string last_name = 4;
25
+ */
26
+ lastName: string;
27
+ /**
28
+ * @generated from field: string email = 5;
29
+ */
30
+ email: string;
31
+ };
32
+ /**
33
+ * Describes the message caronashow.types.v1.User.
34
+ * Use `create(UserSchema)` to create a new message.
35
+ */
36
+ export declare const UserSchema: GenMessage<User>;
@@ -0,0 +1,34 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file google/type/latlng.proto.
5
+ */
6
+ export declare const file_google_type_latlng: GenFile;
7
+ /**
8
+ * An object that represents a latitude/longitude pair. This is expressed as a
9
+ * pair of doubles to represent degrees latitude and degrees longitude. Unless
10
+ * specified otherwise, this object must conform to the
11
+ * <a href="https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version">
12
+ * WGS84 standard</a>. Values must be within normalized ranges.
13
+ *
14
+ * @generated from message google.type.LatLng
15
+ */
16
+ export type LatLng = Message<"google.type.LatLng"> & {
17
+ /**
18
+ * The latitude in degrees. It must be in the range [-90.0, +90.0].
19
+ *
20
+ * @generated from field: double latitude = 1;
21
+ */
22
+ latitude: number;
23
+ /**
24
+ * The longitude in degrees. It must be in the range [-180.0, +180.0].
25
+ *
26
+ * @generated from field: double longitude = 2;
27
+ */
28
+ longitude: number;
29
+ };
30
+ /**
31
+ * Describes the message google.type.LatLng.
32
+ * Use `create(LatLngSchema)` to create a new message.
33
+ */
34
+ export declare const LatLngSchema: GenMessage<LatLng>;