@caronashow/api 0.7.0 → 0.8.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/README.md
CHANGED
|
@@ -21,7 +21,7 @@ bun install @caronashow/api
|
|
|
21
21
|
```typescript
|
|
22
22
|
import { createClient } from "@connectrpc/connect";
|
|
23
23
|
import { createGrpcWebTransport } from "@connectrpc/connect-web";
|
|
24
|
-
import {
|
|
24
|
+
import { OnboardingService } from "@caronashow/api";
|
|
25
25
|
|
|
26
26
|
// Create a transport
|
|
27
27
|
const transport = createGrpcWebTransport({
|
|
@@ -30,10 +30,10 @@ const transport = createGrpcWebTransport({
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
// Create the client
|
|
33
|
-
const client = createClient(
|
|
33
|
+
const client = createClient(OnboardingService, transport);
|
|
34
34
|
|
|
35
|
-
//
|
|
36
|
-
const
|
|
35
|
+
// Check if the current user has completed onboarding
|
|
36
|
+
const status = await client.getOnboardingStatus({});
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
### API Documentation
|
|
@@ -42,20 +42,21 @@ const position = await client.getPosition({ deviceId: "device-123" });
|
|
|
42
42
|
|
|
43
43
|
The package includes the following type definitions:
|
|
44
44
|
|
|
45
|
-
- `
|
|
46
|
-
- `
|
|
47
|
-
- `
|
|
48
|
-
- `
|
|
49
|
-
- `
|
|
45
|
+
- `User` - User information including ID, name, email, participation mode, tier, avatar, and org
|
|
46
|
+
- `TimeOfDay` - A time without a date component (hours, minutes)
|
|
47
|
+
- `DayOfWeek` - Enum for days of the week
|
|
48
|
+
- `ChatPreference` - Passenger's conversation preference (open, quiet, indifferent)
|
|
49
|
+
- `ParticipationMode` - User's role in the system (offer, search, explore)
|
|
50
|
+
- `DriverOfferSetup` - Driver's vehicle and route preferences
|
|
51
|
+
- `PassengerSearchSetup` - Passenger's pickup and schedule preferences
|
|
50
52
|
|
|
51
53
|
#### Services
|
|
52
54
|
|
|
53
55
|
This is not a full list of services. These are just some examples.
|
|
54
56
|
|
|
55
|
-
- `
|
|
56
|
-
- `
|
|
57
|
-
- `
|
|
58
|
-
- `getGroupPositions(groupId: string): Promise<GetGroupPositionsResponse>` - Get positions for all devices in a group
|
|
57
|
+
- `OnboardingService` - One-shot onboarding flow
|
|
58
|
+
- `getOnboardingStatus({}): Promise<GetOnboardingStatusResponse>` - Check if the current user has completed onboarding
|
|
59
|
+
- `completeOnboarding(request: CompleteOnboardingRequest): Promise<CompleteOnboardingResponse>` - Submit all onboarding data
|
|
59
60
|
|
|
60
61
|
## Development
|
|
61
62
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Address } from "../../types/v1/address_pb";
|
|
2
3
|
import type { ChatPreference, TimeOfDay } from "../../types/v1/common_pb";
|
|
3
4
|
import type { ParticipationMode } from "../../types/v1/user_pb";
|
|
4
5
|
import type { Message } from "@bufbuild/protobuf";
|
|
@@ -128,9 +129,9 @@ export type DriverOfferSetup = Message<"caronashow.service.v1.DriverOfferSetup">
|
|
|
128
129
|
/**
|
|
129
130
|
* Street address or landmark where the driver picks up passengers.
|
|
130
131
|
*
|
|
131
|
-
* @generated from field:
|
|
132
|
+
* @generated from field: caronashow.types.v1.Address origin_address = 5;
|
|
132
133
|
*/
|
|
133
|
-
originAddress
|
|
134
|
+
originAddress?: Address;
|
|
134
135
|
/**
|
|
135
136
|
* Time the driver departs from the origin toward the organization.
|
|
136
137
|
*
|
|
@@ -171,9 +172,9 @@ export type PassengerSearchSetup = Message<"caronashow.service.v1.PassengerSearc
|
|
|
171
172
|
/**
|
|
172
173
|
* Street address or landmark where the passenger wants to be picked up.
|
|
173
174
|
*
|
|
174
|
-
* @generated from field:
|
|
175
|
+
* @generated from field: caronashow.types.v1.Address origin_address = 1;
|
|
175
176
|
*/
|
|
176
|
-
originAddress
|
|
177
|
+
originAddress?: Address;
|
|
177
178
|
/**
|
|
178
179
|
* Preferred time the passenger wants to depart toward the organization.
|
|
179
180
|
*
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { LatLng } from "../../../google/type/latlng_pb";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file caronashow/types/v1/address.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_caronashow_types_v1_address: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* A physical address enriched with Google Places data.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message caronashow.types.v1.Address
|
|
12
|
+
*/
|
|
13
|
+
export type Address = Message<"caronashow.types.v1.Address"> & {
|
|
14
|
+
/**
|
|
15
|
+
* Google-assigned stable identifier for the place.
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string place_id = 1;
|
|
18
|
+
*/
|
|
19
|
+
placeId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Full human-readable address string as returned by the Places API.
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: string formatted_address = 2;
|
|
24
|
+
*/
|
|
25
|
+
formattedAddress: string;
|
|
26
|
+
/**
|
|
27
|
+
* Street name without the street number.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string street = 3;
|
|
30
|
+
*/
|
|
31
|
+
street: string;
|
|
32
|
+
/**
|
|
33
|
+
* Street number component of the address.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: string number = 4;
|
|
36
|
+
*/
|
|
37
|
+
number: string;
|
|
38
|
+
/**
|
|
39
|
+
* Apartment, suite, or other subpremise identifier.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: string complement = 5;
|
|
42
|
+
*/
|
|
43
|
+
complement: string;
|
|
44
|
+
/**
|
|
45
|
+
* Neighborhood or sublocality district within the city.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: string neighborhood = 6;
|
|
48
|
+
*/
|
|
49
|
+
neighborhood: string;
|
|
50
|
+
/**
|
|
51
|
+
* City or administrative area level 2.
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: string city = 7;
|
|
54
|
+
*/
|
|
55
|
+
city: string;
|
|
56
|
+
/**
|
|
57
|
+
* State or administrative area level 1.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: string state = 8;
|
|
60
|
+
*/
|
|
61
|
+
state: string;
|
|
62
|
+
/**
|
|
63
|
+
* Postal code for the address.
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: string postal_code = 9;
|
|
66
|
+
*/
|
|
67
|
+
postalCode: string;
|
|
68
|
+
/**
|
|
69
|
+
* Country component of the address.
|
|
70
|
+
*
|
|
71
|
+
* @generated from field: string country = 10;
|
|
72
|
+
*/
|
|
73
|
+
country: string;
|
|
74
|
+
/**
|
|
75
|
+
* Geographic coordinates (latitude/longitude) of the address.
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: google.type.LatLng location = 11;
|
|
78
|
+
*/
|
|
79
|
+
location?: LatLng;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Describes the message caronashow.types.v1.Address.
|
|
83
|
+
* Use `create(AddressSchema)` to create a new message.
|
|
84
|
+
*/
|
|
85
|
+
export declare const AddressSchema: GenMessage<Address>;
|
package/dist/index.cjs
CHANGED
|
@@ -41,6 +41,8 @@ var exports_src = {};
|
|
|
41
41
|
__export(exports_src, {
|
|
42
42
|
file_google_type_latlng: () => file_google_type_latlng,
|
|
43
43
|
file_caronashow_types_v1_user: () => file_caronashow_types_v1_user,
|
|
44
|
+
file_caronashow_types_v1_common: () => file_caronashow_types_v1_common,
|
|
45
|
+
file_caronashow_service_v1_onboarding: () => file_caronashow_service_v1_onboarding,
|
|
44
46
|
file_caronashow_service_v1_map: () => file_caronashow_service_v1_map,
|
|
45
47
|
file_caronashow_pooler_v1_pooler: () => file_caronashow_pooler_v1_pooler,
|
|
46
48
|
file_caronashow_poc_v1_routes: () => file_caronashow_poc_v1_routes,
|
|
@@ -49,6 +51,7 @@ __export(exports_src, {
|
|
|
49
51
|
file_caronashow_poc_v1_groups: () => file_caronashow_poc_v1_groups,
|
|
50
52
|
VehicleSchema: () => VehicleSchema,
|
|
51
53
|
UserSchema: () => UserSchema,
|
|
54
|
+
TimeOfDaySchema: () => TimeOfDaySchema,
|
|
52
55
|
RouteTargetTypeSchema: () => RouteTargetTypeSchema,
|
|
53
56
|
RouteTargetType: () => RouteTargetType,
|
|
54
57
|
PoolerService: () => PoolerService,
|
|
@@ -58,6 +61,7 @@ __export(exports_src, {
|
|
|
58
61
|
PersonRank: () => PersonRank,
|
|
59
62
|
PersonIconSchema: () => PersonIconSchema,
|
|
60
63
|
PersonIcon: () => PersonIcon,
|
|
64
|
+
PassengerSearchSetupSchema: () => PassengerSearchSetupSchema,
|
|
61
65
|
PassengerPointSchema: () => PassengerPointSchema,
|
|
62
66
|
ParticipationModeSchema: () => ParticipationModeSchema,
|
|
63
67
|
ParticipationMode: () => ParticipationMode,
|
|
@@ -66,6 +70,7 @@ __export(exports_src, {
|
|
|
66
70
|
OperationStateSchema: () => OperationStateSchema,
|
|
67
71
|
OperationState: () => OperationState,
|
|
68
72
|
OperationSchema: () => OperationSchema,
|
|
73
|
+
OnboardingService: () => OnboardingService,
|
|
69
74
|
MatchingAlgorithmSchema: () => MatchingAlgorithmSchema,
|
|
70
75
|
MatchingAlgorithm: () => MatchingAlgorithm,
|
|
71
76
|
MatchGroupSchema: () => MatchGroupSchema,
|
|
@@ -77,6 +82,8 @@ __export(exports_src, {
|
|
|
77
82
|
GetStateOfOperationRequestSchema: () => GetStateOfOperationRequestSchema,
|
|
78
83
|
GetOptimizedRoutesResponseSchema: () => GetOptimizedRoutesResponseSchema,
|
|
79
84
|
GetOptimizedRoutesRequestSchema: () => GetOptimizedRoutesRequestSchema,
|
|
85
|
+
GetOnboardingStatusResponseSchema: () => GetOnboardingStatusResponseSchema,
|
|
86
|
+
GetOnboardingStatusRequestSchema: () => GetOnboardingStatusRequestSchema,
|
|
80
87
|
GetMapPointsResponseSchema: () => GetMapPointsResponseSchema,
|
|
81
88
|
GetMapPointsRequestSchema: () => GetMapPointsRequestSchema,
|
|
82
89
|
GetMapPointGroupsResponseSchema: () => GetMapPointGroupsResponseSchema,
|
|
@@ -86,9 +93,16 @@ __export(exports_src, {
|
|
|
86
93
|
ExecuteMatchingAlgorithmOnDatasetResponseSchema: () => ExecuteMatchingAlgorithmOnDatasetResponseSchema,
|
|
87
94
|
ExecuteMatchingAlgorithmOnDatasetRequestSchema: () => ExecuteMatchingAlgorithmOnDatasetRequestSchema,
|
|
88
95
|
DriverPointSchema: () => DriverPointSchema,
|
|
96
|
+
DriverOfferSetupSchema: () => DriverOfferSetupSchema,
|
|
89
97
|
DirectRouteSchema: () => DirectRouteSchema,
|
|
98
|
+
DayOfWeekSchema: () => DayOfWeekSchema,
|
|
99
|
+
DayOfWeek: () => DayOfWeek,
|
|
90
100
|
DatasetSchema: () => DatasetSchema,
|
|
91
101
|
Dataset: () => Dataset,
|
|
102
|
+
CompleteOnboardingResponseSchema: () => CompleteOnboardingResponseSchema,
|
|
103
|
+
CompleteOnboardingRequestSchema: () => CompleteOnboardingRequestSchema,
|
|
104
|
+
ChatPreferenceSchema: () => ChatPreferenceSchema,
|
|
105
|
+
ChatPreference: () => ChatPreference,
|
|
92
106
|
AddressSchema: () => AddressSchema
|
|
93
107
|
});
|
|
94
108
|
module.exports = __toCommonJS(exports_src);
|
|
@@ -3101,6 +3115,33 @@ var PoolerService = /* @__PURE__ */ serviceDesc(file_caronashow_pooler_v1_pooler
|
|
|
3101
3115
|
// src/gen/caronashow/service/v1/map_pb.ts
|
|
3102
3116
|
var file_caronashow_service_v1_map = /* @__PURE__ */ fileDesc("Ch9jYXJvbmFzaG93L3NlcnZpY2UvdjEvbWFwLnByb3RvEhVjYXJvbmFzaG93LnNlcnZpY2UudjEyDAoKTWFwU2VydmljZULdAQoZY29tLmNhcm9uYXNob3cuc2VydmljZS52MUIITWFwUHJvdG9QAVpAZ2l0bGFiLmNvbS9jYXJvbmFzaG93L2FwaS9nby9nZW4vY2Fyb25hc2hvdy9zZXJ2aWNlL3YxO3NlcnZpY2V2MaICA0NTWKoCFUNhcm9uYXNob3cuU2VydmljZS5WMcoCFUNhcm9uYXNob3dcU2VydmljZVxWMeICIUNhcm9uYXNob3dcU2VydmljZVxWMVxHUEJNZXRhZGF0YeoCF0Nhcm9uYXNob3c6OlNlcnZpY2U6OlYxYgZwcm90bzM");
|
|
3103
3117
|
var MapService = /* @__PURE__ */ serviceDesc(file_caronashow_service_v1_map, 0);
|
|
3118
|
+
// src/gen/caronashow/types/v1/address_pb.ts
|
|
3119
|
+
var file_caronashow_types_v1_address = /* @__PURE__ */ fileDesc("CiFjYXJvbmFzaG93L3R5cGVzL3YxL2FkZHJlc3MucHJvdG8SE2Nhcm9uYXNob3cudHlwZXMudjEi6gEKB0FkZHJlc3MSEAoIcGxhY2VfaWQYASABKAkSGQoRZm9ybWF0dGVkX2FkZHJlc3MYAiABKAkSDgoGc3RyZWV0GAMgASgJEg4KBm51bWJlchgEIAEoCRISCgpjb21wbGVtZW50GAUgASgJEhQKDG5laWdoYm9yaG9vZBgGIAEoCRIMCgRjaXR5GAcgASgJEg0KBXN0YXRlGAggASgJEhMKC3Bvc3RhbF9jb2RlGAkgASgJEg8KB2NvdW50cnkYCiABKAkSJQoIbG9jYXRpb24YCyABKAsyEy5nb29nbGUudHlwZS5MYXRMbmdC0wEKF2NvbS5jYXJvbmFzaG93LnR5cGVzLnYxQgxBZGRyZXNzUHJvdG9QAVo8Z2l0bGFiLmNvbS9jYXJvbmFzaG93L2FwaS9nby9nZW4vY2Fyb25hc2hvdy90eXBlcy92MTt0eXBlc3YxogIDQ1RYqgITQ2Fyb25hc2hvdy5UeXBlcy5WMcoCE0Nhcm9uYXNob3dcVHlwZXNcVjHiAh9DYXJvbmFzaG93XFR5cGVzXFYxXEdQQk1ldGFkYXRh6gIVQ2Fyb25hc2hvdzo6VHlwZXM6OlYxYgZwcm90bzM", [file_google_type_latlng]);
|
|
3120
|
+
|
|
3121
|
+
// src/gen/caronashow/types/v1/common_pb.ts
|
|
3122
|
+
var file_caronashow_types_v1_common = /* @__PURE__ */ fileDesc("CiBjYXJvbmFzaG93L3R5cGVzL3YxL2NvbW1vbi5wcm90bxITY2Fyb25hc2hvdy50eXBlcy52MSIrCglUaW1lT2ZEYXkSDQoFaG91cnMYASABKAUSDwoHbWludXRlcxgCIAEoBSrYAQoJRGF5T2ZXZWVrEhsKF0RBWV9PRl9XRUVLX1VOU1BFQ0lGSUVEEAASFgoSREFZX09GX1dFRUtfTU9OREFZEAESFwoTREFZX09GX1dFRUtfVFVFU0RBWRACEhkKFURBWV9PRl9XRUVLX1dFRE5FU0RBWRADEhgKFERBWV9PRl9XRUVLX1RIVVJTREFZEAQSFgoSREFZX09GX1dFRUtfRlJJREFZEAUSGAoUREFZX09GX1dFRUtfU0FUVVJEQVkQBhIWChJEQVlfT0ZfV0VFS19TVU5EQVkQByqHAQoOQ2hhdFByZWZlcmVuY2USHwobQ0hBVF9QUkVGRVJFTkNFX1VOU1BFQ0lGSUVEEAASGAoUQ0hBVF9QUkVGRVJFTkNFX09QRU4QARIZChVDSEFUX1BSRUZFUkVOQ0VfUVVJRVQQAhIfChtDSEFUX1BSRUZFUkVOQ0VfSU5ESUZGRVJFTlQQA0LSAQoXY29tLmNhcm9uYXNob3cudHlwZXMudjFCC0NvbW1vblByb3RvUAFaPGdpdGxhYi5jb20vY2Fyb25hc2hvdy9hcGkvZ28vZ2VuL2Nhcm9uYXNob3cvdHlwZXMvdjE7dHlwZXN2MaICA0NUWKoCE0Nhcm9uYXNob3cuVHlwZXMuVjHKAhNDYXJvbmFzaG93XFR5cGVzXFYx4gIfQ2Fyb25hc2hvd1xUeXBlc1xWMVxHUEJNZXRhZGF0YeoCFUNhcm9uYXNob3c6OlR5cGVzOjpWMWIGcHJvdG8z");
|
|
3123
|
+
var TimeOfDaySchema = /* @__PURE__ */ messageDesc(file_caronashow_types_v1_common, 0);
|
|
3124
|
+
var DayOfWeek;
|
|
3125
|
+
((DayOfWeek2) => {
|
|
3126
|
+
DayOfWeek2[DayOfWeek2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
3127
|
+
DayOfWeek2[DayOfWeek2["MONDAY"] = 1] = "MONDAY";
|
|
3128
|
+
DayOfWeek2[DayOfWeek2["TUESDAY"] = 2] = "TUESDAY";
|
|
3129
|
+
DayOfWeek2[DayOfWeek2["WEDNESDAY"] = 3] = "WEDNESDAY";
|
|
3130
|
+
DayOfWeek2[DayOfWeek2["THURSDAY"] = 4] = "THURSDAY";
|
|
3131
|
+
DayOfWeek2[DayOfWeek2["FRIDAY"] = 5] = "FRIDAY";
|
|
3132
|
+
DayOfWeek2[DayOfWeek2["SATURDAY"] = 6] = "SATURDAY";
|
|
3133
|
+
DayOfWeek2[DayOfWeek2["SUNDAY"] = 7] = "SUNDAY";
|
|
3134
|
+
})(DayOfWeek ||= {});
|
|
3135
|
+
var DayOfWeekSchema = /* @__PURE__ */ enumDesc(file_caronashow_types_v1_common, 0);
|
|
3136
|
+
var ChatPreference;
|
|
3137
|
+
((ChatPreference2) => {
|
|
3138
|
+
ChatPreference2[ChatPreference2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
3139
|
+
ChatPreference2[ChatPreference2["OPEN"] = 1] = "OPEN";
|
|
3140
|
+
ChatPreference2[ChatPreference2["QUIET"] = 2] = "QUIET";
|
|
3141
|
+
ChatPreference2[ChatPreference2["INDIFFERENT"] = 3] = "INDIFFERENT";
|
|
3142
|
+
})(ChatPreference ||= {});
|
|
3143
|
+
var ChatPreferenceSchema = /* @__PURE__ */ enumDesc(file_caronashow_types_v1_common, 1);
|
|
3144
|
+
|
|
3104
3145
|
// src/gen/caronashow/types/v1/user_pb.ts
|
|
3105
3146
|
var file_caronashow_types_v1_user = /* @__PURE__ */ fileDesc("Ch5jYXJvbmFzaG93L3R5cGVzL3YxL3VzZXIucHJvdG8SE2Nhcm9uYXNob3cudHlwZXMudjEijgIKBFVzZXISCgoCaWQYASABKAkSEgoKZmlyc3RfbmFtZRgCIAEoCRIRCglsYXN0X25hbWUYAyABKAkSDQoFZW1haWwYBCABKAkSKAogZW5yb2xsZWRfaW5fdnVsbmVyYWJpbGl0eV9maWx0ZXIYBSABKAgSSgoaY3VycmVudF9wYXJ0aWNpcGF0aW9uX21vZGUYBiABKA4yJi5jYXJvbmFzaG93LnR5cGVzLnYxLlBhcnRpY2lwYXRpb25Nb2RlEgwKBHRpZXIYByABKAkSEgoKYXZhdGFyX3VybBgIIAEoCRIOCgZvcmdfaWQYCSABKAkSHAoUb25ib2FyZGluZ19jb21wbGV0ZWQYCiABKAgqlAEKEVBhcnRpY2lwYXRpb25Nb2RlEiIKHlBBUlRJQ0lQQVRJT05fTU9ERV9VTlNQRUNJRklFRBAAEhwKGFBBUlRJQ0lQQVRJT05fTU9ERV9PRkZFUhABEh0KGVBBUlRJQ0lQQVRJT05fTU9ERV9TRUFSQ0gQAhIeChpQQVJUSUNJUEFUSU9OX01PREVfRVhQTE9SRRADQtABChdjb20uY2Fyb25hc2hvdy50eXBlcy52MUIJVXNlclByb3RvUAFaPGdpdGxhYi5jb20vY2Fyb25hc2hvdy9hcGkvZ28vZ2VuL2Nhcm9uYXNob3cvdHlwZXMvdjE7dHlwZXN2MaICA0NUWKoCE0Nhcm9uYXNob3cuVHlwZXMuVjHKAhNDYXJvbmFzaG93XFR5cGVzXFYx4gIfQ2Fyb25hc2hvd1xUeXBlc1xWMVxHUEJNZXRhZGF0YeoCFUNhcm9uYXNob3c6OlR5cGVzOjpWMWIGcHJvdG8z");
|
|
3106
3147
|
var UserSchema = /* @__PURE__ */ messageDesc(file_caronashow_types_v1_user, 0);
|
|
@@ -3112,3 +3153,13 @@ var ParticipationMode;
|
|
|
3112
3153
|
ParticipationMode2[ParticipationMode2["EXPLORE"] = 3] = "EXPLORE";
|
|
3113
3154
|
})(ParticipationMode ||= {});
|
|
3114
3155
|
var ParticipationModeSchema = /* @__PURE__ */ enumDesc(file_caronashow_types_v1_user, 0);
|
|
3156
|
+
|
|
3157
|
+
// src/gen/caronashow/service/v1/onboarding_pb.ts
|
|
3158
|
+
var file_caronashow_service_v1_onboarding = /* @__PURE__ */ fileDesc("CiZjYXJvbmFzaG93L3NlcnZpY2UvdjEvb25ib2FyZGluZy5wcm90bxIVY2Fyb25hc2hvdy5zZXJ2aWNlLnYxIhwKGkdldE9uYm9hcmRpbmdTdGF0dXNSZXF1ZXN0IjsKG0dldE9uYm9hcmRpbmdTdGF0dXNSZXNwb25zZRIcChRvbmJvYXJkaW5nX2NvbXBsZXRlZBgBIAEoCCKjAgoZQ29tcGxldGVPbmJvYXJkaW5nUmVxdWVzdBIoCiBlbnJvbGxlZF9pbl92dWxuZXJhYmlsaXR5X2ZpbHRlchgBIAEoCBIWCg50ZXJtc19hY2NlcHRlZBgCIAEoCBJCChJwYXJ0aWNpcGF0aW9uX21vZGUYAyABKA4yJi5jYXJvbmFzaG93LnR5cGVzLnYxLlBhcnRpY2lwYXRpb25Nb2RlEjgKBW9mZmVyGAQgASgLMicuY2Fyb25hc2hvdy5zZXJ2aWNlLnYxLkRyaXZlck9mZmVyU2V0dXBIABI9CgZzZWFyY2gYBSABKAsyKy5jYXJvbmFzaG93LnNlcnZpY2UudjEuUGFzc2VuZ2VyU2VhcmNoU2V0dXBIAEIHCgVzZXR1cCLVAgoQRHJpdmVyT2ZmZXJTZXR1cBIVCg12ZWhpY2xlX21vZGVsGAEgASgJEhUKDXZlaGljbGVfY29sb3IYAiABKAkSFQoNdmVoaWNsZV9wbGF0ZRgDIAEoCRIVCg1vZmZlcmVkX3NlYXRzGAQgASgFEjQKDm9yaWdpbl9hZGRyZXNzGAUgASgLMhwuY2Fyb25hc2hvdy50eXBlcy52MS5BZGRyZXNzEjYKDmRlcGFydHVyZV90aW1lGAYgASgLMh4uY2Fyb25hc2hvdy50eXBlcy52MS5UaW1lT2ZEYXkSMwoLcmV0dXJuX3RpbWUYByABKAsyHi5jYXJvbmFzaG93LnR5cGVzLnYxLlRpbWVPZkRheRIaChJhY2NlcHRpbmdfcmVxdWVzdHMYCCABKAgSJgoecmVzdHJpY3RlZF90b192dWxuZXJhYmxlX2dyb3VwGAkgASgIIvcBChRQYXNzZW5nZXJTZWFyY2hTZXR1cBI0Cg5vcmlnaW5fYWRkcmVzcxgBIAEoCzIcLmNhcm9uYXNob3cudHlwZXMudjEuQWRkcmVzcxI2Cg5kZXBhcnR1cmVfdGltZRgCIAEoCzIeLmNhcm9uYXNob3cudHlwZXMudjEuVGltZU9mRGF5EjMKC3JldHVybl90aW1lGAMgASgLMh4uY2Fyb25hc2hvdy50eXBlcy52MS5UaW1lT2ZEYXkSPAoPY2hhdF9wcmVmZXJlbmNlGAQgASgOMiMuY2Fyb25hc2hvdy50eXBlcy52MS5DaGF0UHJlZmVyZW5jZSIcChpDb21wbGV0ZU9uYm9hcmRpbmdSZXNwb25zZTKMAgoRT25ib2FyZGluZ1NlcnZpY2USfAoTR2V0T25ib2FyZGluZ1N0YXR1cxIxLmNhcm9uYXNob3cuc2VydmljZS52MS5HZXRPbmJvYXJkaW5nU3RhdHVzUmVxdWVzdBoyLmNhcm9uYXNob3cuc2VydmljZS52MS5HZXRPbmJvYXJkaW5nU3RhdHVzUmVzcG9uc2USeQoSQ29tcGxldGVPbmJvYXJkaW5nEjAuY2Fyb25hc2hvdy5zZXJ2aWNlLnYxLkNvbXBsZXRlT25ib2FyZGluZ1JlcXVlc3QaMS5jYXJvbmFzaG93LnNlcnZpY2UudjEuQ29tcGxldGVPbmJvYXJkaW5nUmVzcG9uc2VC5AEKGWNvbS5jYXJvbmFzaG93LnNlcnZpY2UudjFCD09uYm9hcmRpbmdQcm90b1ABWkBnaXRsYWIuY29tL2Nhcm9uYXNob3cvYXBpL2dvL2dlbi9jYXJvbmFzaG93L3NlcnZpY2UvdjE7c2VydmljZXYxogIDQ1NYqgIVQ2Fyb25hc2hvdy5TZXJ2aWNlLlYxygIVQ2Fyb25hc2hvd1xTZXJ2aWNlXFYx4gIhQ2Fyb25hc2hvd1xTZXJ2aWNlXFYxXEdQQk1ldGFkYXRh6gIXQ2Fyb25hc2hvdzo6U2VydmljZTo6VjFiBnByb3RvMw", [file_caronashow_types_v1_address, file_caronashow_types_v1_common, file_caronashow_types_v1_user]);
|
|
3159
|
+
var GetOnboardingStatusRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 0);
|
|
3160
|
+
var GetOnboardingStatusResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 1);
|
|
3161
|
+
var CompleteOnboardingRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 2);
|
|
3162
|
+
var DriverOfferSetupSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 3);
|
|
3163
|
+
var PassengerSearchSetupSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 4);
|
|
3164
|
+
var CompleteOnboardingResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 5);
|
|
3165
|
+
var OnboardingService = /* @__PURE__ */ serviceDesc(file_caronashow_service_v1_onboarding, 0);
|
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,7 @@ export * from "./gen/caronashow/poc/v1/points_pb";
|
|
|
4
4
|
export * from "./gen/caronashow/poc/v1/routes_pb";
|
|
5
5
|
export * from "./gen/caronashow/pooler/v1/pooler_pb";
|
|
6
6
|
export * from "./gen/caronashow/service/v1/map_pb";
|
|
7
|
+
export * from "./gen/caronashow/service/v1/onboarding_pb";
|
|
8
|
+
export * from "./gen/caronashow/types/v1/common_pb";
|
|
7
9
|
export * from "./gen/caronashow/types/v1/user_pb";
|
|
8
10
|
export * from "./gen/google/type/latlng_pb";
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"module": "src/index.ts",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.8.0",
|
|
7
7
|
"description": "CaronaShow API definitions",
|
|
8
8
|
"author": "Lucas Santos <zerowhy.server@protonmail.com>",
|
|
9
9
|
"license": "MIT",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "https://gitlab.com/caronashow/api.git"
|
|
32
|
+
"url": "git+https://gitlab.com/caronashow/api.git"
|
|
33
33
|
}
|
|
34
34
|
}
|