@caronashow/api 0.6.0 → 0.7.1

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 { PoolerService } from "@caronashow/api";
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(PoolerService, transport);
33
+ const client = createClient(OnboardingService, transport);
34
34
 
35
- // Example: Using the positions service
36
- const position = await client.getPosition({ deviceId: "device-123" });
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
- - `Position` - Represents a device's location with latitude, longitude, altitude, speed, and heading
46
- - `DevicePosition` - Combines a device ID with its position
47
- - `Device` - Device information including ID and name
48
- - `User` - User information including ID, name, and associated devices
49
- - `Group` - Group information including ID, name, description, and associated users
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
- - `PositionsService` - Service for managing device positions
56
- - `sendPositions(positions: DevicePosition[]): Promise<SendPositionsResponse>` - Send multiple device position updates
57
- - `getGroup(groupId: string): Promise<GetGroupResponse>` - Get a group by ID, including user data and their devices
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
 
@@ -0,0 +1,240 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { ChatPreference, TimeOfDay } from "../../types/v1/common_pb";
3
+ import type { ParticipationMode } from "../../types/v1/user_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file caronashow/service/v1/onboarding.proto.
7
+ */
8
+ export declare const file_caronashow_service_v1_onboarding: GenFile;
9
+ /**
10
+ * Empty — the authenticated user is inferred from the session token.
11
+ *
12
+ * @generated from message caronashow.service.v1.GetOnboardingStatusRequest
13
+ */
14
+ export type GetOnboardingStatusRequest = Message<"caronashow.service.v1.GetOnboardingStatusRequest"> & {};
15
+ /**
16
+ * Describes the message caronashow.service.v1.GetOnboardingStatusRequest.
17
+ * Use `create(GetOnboardingStatusRequestSchema)` to create a new message.
18
+ */
19
+ export declare const GetOnboardingStatusRequestSchema: GenMessage<GetOnboardingStatusRequest>;
20
+ /**
21
+ * Indicates whether the user has already completed their onboarding flow.
22
+ *
23
+ * @generated from message caronashow.service.v1.GetOnboardingStatusResponse
24
+ */
25
+ export type GetOnboardingStatusResponse = Message<"caronashow.service.v1.GetOnboardingStatusResponse"> & {
26
+ /**
27
+ * True if the user has already completed onboarding.
28
+ * When false, the frontend should redirect to the onboarding flow.
29
+ *
30
+ * @generated from field: bool onboarding_completed = 1;
31
+ */
32
+ onboardingCompleted: boolean;
33
+ };
34
+ /**
35
+ * Describes the message caronashow.service.v1.GetOnboardingStatusResponse.
36
+ * Use `create(GetOnboardingStatusResponseSchema)` to create a new message.
37
+ */
38
+ export declare const GetOnboardingStatusResponseSchema: GenMessage<GetOnboardingStatusResponse>;
39
+ /**
40
+ * Aggregates all data collected across the 3-step onboarding form.
41
+ * The frontend manages the multi-step UI locally and submits everything here.
42
+ *
43
+ * @generated from message caronashow.service.v1.CompleteOnboardingRequest
44
+ */
45
+ export type CompleteOnboardingRequest = Message<"caronashow.service.v1.CompleteOnboardingRequest"> & {
46
+ /**
47
+ * Whether the user opted into the vulnerability group filter
48
+ * (e.g. women-only rides). This controls visibility of the per-ride toggle.
49
+ *
50
+ * @generated from field: bool enrolled_in_vulnerability_filter = 1;
51
+ */
52
+ enrolledInVulnerabilityFilter: boolean;
53
+ /**
54
+ * Whether the user accepted the organization's code of conduct and privacy policy.
55
+ *
56
+ * @generated from field: bool terms_accepted = 2;
57
+ */
58
+ termsAccepted: boolean;
59
+ /**
60
+ * The participation role the user selected (offer / search / explore).
61
+ *
62
+ * @generated from field: caronashow.types.v1.ParticipationMode participation_mode = 3;
63
+ */
64
+ participationMode: ParticipationMode;
65
+ /**
66
+ * Driver offer or passenger search setup — only one is set,
67
+ * depending on the selected participation mode.
68
+ * For EXPLORE mode neither branch is populated.
69
+ *
70
+ * @generated from oneof caronashow.service.v1.CompleteOnboardingRequest.setup
71
+ */
72
+ setup: {
73
+ /**
74
+ * Required when participation_mode is OFFER.
75
+ *
76
+ * @generated from field: caronashow.service.v1.DriverOfferSetup offer = 4;
77
+ */
78
+ value: DriverOfferSetup;
79
+ case: "offer";
80
+ } | {
81
+ /**
82
+ * Required when participation_mode is SEARCH.
83
+ *
84
+ * @generated from field: caronashow.service.v1.PassengerSearchSetup search = 5;
85
+ */
86
+ value: PassengerSearchSetup;
87
+ case: "search";
88
+ } | {
89
+ case: undefined;
90
+ value?: undefined;
91
+ };
92
+ };
93
+ /**
94
+ * Describes the message caronashow.service.v1.CompleteOnboardingRequest.
95
+ * Use `create(CompleteOnboardingRequestSchema)` to create a new message.
96
+ */
97
+ export declare const CompleteOnboardingRequestSchema: GenMessage<CompleteOnboardingRequest>;
98
+ /**
99
+ * Driver's vehicle and route preferences set during onboarding.
100
+ *
101
+ * @generated from message caronashow.service.v1.DriverOfferSetup
102
+ */
103
+ export type DriverOfferSetup = Message<"caronashow.service.v1.DriverOfferSetup"> & {
104
+ /**
105
+ * Make and model of the vehicle (e.g. "Honda Fit 2019").
106
+ *
107
+ * @generated from field: string vehicle_model = 1;
108
+ */
109
+ vehicleModel: string;
110
+ /**
111
+ * Exterior color of the vehicle (e.g. "Prata").
112
+ *
113
+ * @generated from field: string vehicle_color = 2;
114
+ */
115
+ vehicleColor: string;
116
+ /**
117
+ * License plate number for identification at pickup.
118
+ *
119
+ * @generated from field: string vehicle_plate = 3;
120
+ */
121
+ vehiclePlate: string;
122
+ /**
123
+ * Number of passenger seats the driver is willing to offer (1–6).
124
+ *
125
+ * @generated from field: int32 offered_seats = 4;
126
+ */
127
+ offeredSeats: number;
128
+ /**
129
+ * Street address or landmark where the driver picks up passengers.
130
+ *
131
+ * @generated from field: string origin_address = 5;
132
+ */
133
+ originAddress: string;
134
+ /**
135
+ * Time the driver departs from the origin toward the organization.
136
+ *
137
+ * @generated from field: caronashow.types.v1.TimeOfDay departure_time = 6;
138
+ */
139
+ departureTime?: TimeOfDay;
140
+ /**
141
+ * Time the driver leaves the organization to return home.
142
+ *
143
+ * @generated from field: caronashow.types.v1.TimeOfDay return_time = 7;
144
+ */
145
+ returnTime?: TimeOfDay;
146
+ /**
147
+ * Whether the driver is currently accepting ride requests.
148
+ *
149
+ * @generated from field: bool accepting_requests = 8;
150
+ */
151
+ acceptingRequests: boolean;
152
+ /**
153
+ * When true, only passengers enrolled in the vulnerability filter
154
+ * can see and request this ride.
155
+ *
156
+ * @generated from field: bool restricted_to_vulnerable_group = 9;
157
+ */
158
+ restrictedToVulnerableGroup: boolean;
159
+ };
160
+ /**
161
+ * Describes the message caronashow.service.v1.DriverOfferSetup.
162
+ * Use `create(DriverOfferSetupSchema)` to create a new message.
163
+ */
164
+ export declare const DriverOfferSetupSchema: GenMessage<DriverOfferSetup>;
165
+ /**
166
+ * Passenger's route and preference data set during onboarding.
167
+ *
168
+ * @generated from message caronashow.service.v1.PassengerSearchSetup
169
+ */
170
+ export type PassengerSearchSetup = Message<"caronashow.service.v1.PassengerSearchSetup"> & {
171
+ /**
172
+ * Street address or landmark where the passenger wants to be picked up.
173
+ *
174
+ * @generated from field: string origin_address = 1;
175
+ */
176
+ originAddress: string;
177
+ /**
178
+ * Preferred time the passenger wants to depart toward the organization.
179
+ *
180
+ * @generated from field: caronashow.types.v1.TimeOfDay departure_time = 2;
181
+ */
182
+ departureTime?: TimeOfDay;
183
+ /**
184
+ * Preferred time the passenger wants to leave the organization to return home.
185
+ *
186
+ * @generated from field: caronashow.types.v1.TimeOfDay return_time = 3;
187
+ */
188
+ returnTime?: TimeOfDay;
189
+ /**
190
+ * Passenger's conversation preference during the ride.
191
+ *
192
+ * @generated from field: caronashow.types.v1.ChatPreference chat_preference = 4;
193
+ */
194
+ chatPreference: ChatPreference;
195
+ };
196
+ /**
197
+ * Describes the message caronashow.service.v1.PassengerSearchSetup.
198
+ * Use `create(PassengerSearchSetupSchema)` to create a new message.
199
+ */
200
+ export declare const PassengerSearchSetupSchema: GenMessage<PassengerSearchSetup>;
201
+ /**
202
+ * Empty — a successful response means onboarding data was persisted.
203
+ * Errors are communicated via the standard gRPC error model.
204
+ *
205
+ * @generated from message caronashow.service.v1.CompleteOnboardingResponse
206
+ */
207
+ export type CompleteOnboardingResponse = Message<"caronashow.service.v1.CompleteOnboardingResponse"> & {};
208
+ /**
209
+ * Describes the message caronashow.service.v1.CompleteOnboardingResponse.
210
+ * Use `create(CompleteOnboardingResponseSchema)` to create a new message.
211
+ */
212
+ export declare const CompleteOnboardingResponseSchema: GenMessage<CompleteOnboardingResponse>;
213
+ /**
214
+ * @generated from service caronashow.service.v1.OnboardingService
215
+ */
216
+ export declare const OnboardingService: GenService<{
217
+ /**
218
+ * Returns whether the current user has already completed onboarding.
219
+ * Used on app startup to decide whether to redirect to onboarding or home.
220
+ *
221
+ * @generated from rpc caronashow.service.v1.OnboardingService.GetOnboardingStatus
222
+ */
223
+ getOnboardingStatus: {
224
+ methodKind: "unary";
225
+ input: typeof GetOnboardingStatusRequestSchema;
226
+ output: typeof GetOnboardingStatusResponseSchema;
227
+ };
228
+ /**
229
+ * Submits the entire onboarding payload in one request.
230
+ * Persists personal info, participation mode, and optionally
231
+ * the driver offer or passenger search setup depending on the mode.
232
+ *
233
+ * @generated from rpc caronashow.service.v1.OnboardingService.CompleteOnboarding
234
+ */
235
+ completeOnboarding: {
236
+ methodKind: "unary";
237
+ input: typeof CompleteOnboardingRequestSchema;
238
+ output: typeof CompleteOnboardingResponseSchema;
239
+ };
240
+ }>;
@@ -0,0 +1,107 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file caronashow/types/v1/common.proto.
5
+ */
6
+ export declare const file_caronashow_types_v1_common: GenFile;
7
+ /**
8
+ * A reusable time-of-day representation (no date component).
9
+ * Used for recurring schedule fields like departure and return times.
10
+ *
11
+ * @generated from message caronashow.types.v1.TimeOfDay
12
+ */
13
+ export type TimeOfDay = Message<"caronashow.types.v1.TimeOfDay"> & {
14
+ /**
15
+ * Hour of the day (0–23)
16
+ *
17
+ * @generated from field: int32 hours = 1;
18
+ */
19
+ hours: number;
20
+ /**
21
+ * Minute of the hour (0–59)
22
+ *
23
+ * @generated from field: int32 minutes = 2;
24
+ */
25
+ minutes: number;
26
+ };
27
+ /**
28
+ * Describes the message caronashow.types.v1.TimeOfDay.
29
+ * Use `create(TimeOfDaySchema)` to create a new message.
30
+ */
31
+ export declare const TimeOfDaySchema: GenMessage<TimeOfDay>;
32
+ /**
33
+ * Days of the week used for recurring ride schedules and availability.
34
+ *
35
+ * @generated from enum caronashow.types.v1.DayOfWeek
36
+ */
37
+ export declare enum DayOfWeek {
38
+ /**
39
+ * @generated from enum value: DAY_OF_WEEK_UNSPECIFIED = 0;
40
+ */
41
+ UNSPECIFIED = 0,
42
+ /**
43
+ * @generated from enum value: DAY_OF_WEEK_MONDAY = 1;
44
+ */
45
+ MONDAY = 1,
46
+ /**
47
+ * @generated from enum value: DAY_OF_WEEK_TUESDAY = 2;
48
+ */
49
+ TUESDAY = 2,
50
+ /**
51
+ * @generated from enum value: DAY_OF_WEEK_WEDNESDAY = 3;
52
+ */
53
+ WEDNESDAY = 3,
54
+ /**
55
+ * @generated from enum value: DAY_OF_WEEK_THURSDAY = 4;
56
+ */
57
+ THURSDAY = 4,
58
+ /**
59
+ * @generated from enum value: DAY_OF_WEEK_FRIDAY = 5;
60
+ */
61
+ FRIDAY = 5,
62
+ /**
63
+ * @generated from enum value: DAY_OF_WEEK_SATURDAY = 6;
64
+ */
65
+ SATURDAY = 6,
66
+ /**
67
+ * @generated from enum value: DAY_OF_WEEK_SUNDAY = 7;
68
+ */
69
+ SUNDAY = 7
70
+ }
71
+ /**
72
+ * Describes the enum caronashow.types.v1.DayOfWeek.
73
+ */
74
+ export declare const DayOfWeekSchema: GenEnum<DayOfWeek>;
75
+ /**
76
+ * Passenger's preferred level of conversation during the ride.
77
+ *
78
+ * @generated from enum caronashow.types.v1.ChatPreference
79
+ */
80
+ export declare enum ChatPreference {
81
+ /**
82
+ * @generated from enum value: CHAT_PREFERENCE_UNSPECIFIED = 0;
83
+ */
84
+ UNSPECIFIED = 0,
85
+ /**
86
+ * Likes to chat
87
+ *
88
+ * @generated from enum value: CHAT_PREFERENCE_OPEN = 1;
89
+ */
90
+ OPEN = 1,
91
+ /**
92
+ * Prefers silence
93
+ *
94
+ * @generated from enum value: CHAT_PREFERENCE_QUIET = 2;
95
+ */
96
+ QUIET = 2,
97
+ /**
98
+ * Depends on the day
99
+ *
100
+ * @generated from enum value: CHAT_PREFERENCE_INDIFFERENT = 3;
101
+ */
102
+ INDIFFERENT = 3
103
+ }
104
+ /**
105
+ * Describes the enum caronashow.types.v1.ChatPreference.
106
+ */
107
+ export declare const ChatPreferenceSchema: GenEnum<ChatPreference>;
@@ -1,36 +1,113 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Describes the file caronashow/types/v1/user.proto.
5
5
  */
6
6
  export declare const file_caronashow_types_v1_user: GenFile;
7
7
  /**
8
+ * Core user profile synced from SSO and enriched during onboarding.
9
+ *
8
10
  * @generated from message caronashow.types.v1.User
9
11
  */
10
12
  export type User = Message<"caronashow.types.v1.User"> & {
11
13
  /**
14
+ * Unique user identifier assigned by the system.
15
+ *
12
16
  * @generated from field: string id = 1;
13
17
  */
14
18
  id: string;
15
19
  /**
16
- * @generated from field: string username = 2;
17
- */
18
- username: string;
19
- /**
20
- * @generated from field: string first_name = 3;
20
+ * User's given name, synced from the organization's SSO.
21
+ *
22
+ * @generated from field: string first_name = 2;
21
23
  */
22
24
  firstName: string;
23
25
  /**
24
- * @generated from field: string last_name = 4;
26
+ * User's surname, synced from the organization's SSO.
27
+ *
28
+ * @generated from field: string last_name = 3;
25
29
  */
26
30
  lastName: string;
27
31
  /**
28
- * @generated from field: string email = 5;
32
+ * Corporate email used for SSO authentication and notifications.
33
+ *
34
+ * @generated from field: string email = 4;
29
35
  */
30
36
  email: string;
37
+ /**
38
+ * Whether the user opted into the vulnerability group filter
39
+ * (e.g. women-only rides). When true, the user can both enable
40
+ * the filter on their offers and see offers restricted to the group.
41
+ *
42
+ * @generated from field: bool enrolled_in_vulnerability_filter = 5;
43
+ */
44
+ enrolledInVulnerabilityFilter: boolean;
45
+ /**
46
+ * The participation mode selected during or after onboarding.
47
+ *
48
+ * @generated from field: caronashow.types.v1.ParticipationMode current_participation_mode = 6;
49
+ */
50
+ currentParticipationMode: ParticipationMode;
51
+ /**
52
+ * User's loyalty or reputation tier (e.g. Bronze, Prata, Ouro).
53
+ *
54
+ * @generated from field: string tier = 7;
55
+ */
56
+ tier: string;
57
+ /**
58
+ * URL of the user's uploaded profile avatar photo.
59
+ *
60
+ * @generated from field: string avatar_url = 8;
61
+ */
62
+ avatarUrl: string;
63
+ /**
64
+ * Identifier of the organization the user belongs to.
65
+ *
66
+ * @generated from field: string org_id = 9;
67
+ */
68
+ orgId: string;
69
+ /**
70
+ * Whether the user has completed the onboarding flow.
71
+ *
72
+ * @generated from field: bool onboarding_completed = 10;
73
+ */
74
+ onboardingCompleted: boolean;
31
75
  };
32
76
  /**
33
77
  * Describes the message caronashow.types.v1.User.
34
78
  * Use `create(UserSchema)` to create a new message.
35
79
  */
36
80
  export declare const UserSchema: GenMessage<User>;
81
+ /**
82
+ * How the user intends to participate in the carpooling system.
83
+ *
84
+ * @generated from enum caronashow.types.v1.ParticipationMode
85
+ */
86
+ export declare enum ParticipationMode {
87
+ /**
88
+ * @generated from enum value: PARTICIPATION_MODE_UNSPECIFIED = 0;
89
+ */
90
+ UNSPECIFIED = 0,
91
+ /**
92
+ * User drives and offers empty seats
93
+ *
94
+ * @generated from enum value: PARTICIPATION_MODE_OFFER = 1;
95
+ */
96
+ OFFER = 1,
97
+ /**
98
+ * User looks for rides as a passenger
99
+ *
100
+ * @generated from enum value: PARTICIPATION_MODE_SEARCH = 2;
101
+ */
102
+ SEARCH = 2,
103
+ /**
104
+ * User browses without committing to a role
105
+ *
106
+ * @generated from enum value: PARTICIPATION_MODE_EXPLORE = 3;
107
+ */
108
+ EXPLORE = 3
109
+ }
110
+ /**
111
+ * Describes the enum caronashow.types.v1.ParticipationMode.
112
+ */
113
+ export declare const ParticipationModeSchema: GenEnum<ParticipationMode>;
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,12 +61,16 @@ __export(exports_src, {
58
61
  PersonRank: () => PersonRank,
59
62
  PersonIconSchema: () => PersonIconSchema,
60
63
  PersonIcon: () => PersonIcon,
64
+ PassengerSearchSetupSchema: () => PassengerSearchSetupSchema,
61
65
  PassengerPointSchema: () => PassengerPointSchema,
66
+ ParticipationModeSchema: () => ParticipationModeSchema,
67
+ ParticipationMode: () => ParticipationMode,
62
68
  OrganizationPointSchema: () => OrganizationPointSchema,
63
69
  OptimizedRouteSchema: () => OptimizedRouteSchema,
64
70
  OperationStateSchema: () => OperationStateSchema,
65
71
  OperationState: () => OperationState,
66
72
  OperationSchema: () => OperationSchema,
73
+ OnboardingService: () => OnboardingService,
67
74
  MatchingAlgorithmSchema: () => MatchingAlgorithmSchema,
68
75
  MatchingAlgorithm: () => MatchingAlgorithm,
69
76
  MatchGroupSchema: () => MatchGroupSchema,
@@ -75,6 +82,8 @@ __export(exports_src, {
75
82
  GetStateOfOperationRequestSchema: () => GetStateOfOperationRequestSchema,
76
83
  GetOptimizedRoutesResponseSchema: () => GetOptimizedRoutesResponseSchema,
77
84
  GetOptimizedRoutesRequestSchema: () => GetOptimizedRoutesRequestSchema,
85
+ GetOnboardingStatusResponseSchema: () => GetOnboardingStatusResponseSchema,
86
+ GetOnboardingStatusRequestSchema: () => GetOnboardingStatusRequestSchema,
78
87
  GetMapPointsResponseSchema: () => GetMapPointsResponseSchema,
79
88
  GetMapPointsRequestSchema: () => GetMapPointsRequestSchema,
80
89
  GetMapPointGroupsResponseSchema: () => GetMapPointGroupsResponseSchema,
@@ -84,9 +93,16 @@ __export(exports_src, {
84
93
  ExecuteMatchingAlgorithmOnDatasetResponseSchema: () => ExecuteMatchingAlgorithmOnDatasetResponseSchema,
85
94
  ExecuteMatchingAlgorithmOnDatasetRequestSchema: () => ExecuteMatchingAlgorithmOnDatasetRequestSchema,
86
95
  DriverPointSchema: () => DriverPointSchema,
96
+ DriverOfferSetupSchema: () => DriverOfferSetupSchema,
87
97
  DirectRouteSchema: () => DirectRouteSchema,
98
+ DayOfWeekSchema: () => DayOfWeekSchema,
99
+ DayOfWeek: () => DayOfWeek,
88
100
  DatasetSchema: () => DatasetSchema,
89
101
  Dataset: () => Dataset,
102
+ CompleteOnboardingResponseSchema: () => CompleteOnboardingResponseSchema,
103
+ CompleteOnboardingRequestSchema: () => CompleteOnboardingRequestSchema,
104
+ ChatPreferenceSchema: () => ChatPreferenceSchema,
105
+ ChatPreference: () => ChatPreference,
90
106
  AddressSchema: () => AddressSchema
91
107
  });
92
108
  module.exports = __toCommonJS(exports_src);
@@ -3099,6 +3115,48 @@ var PoolerService = /* @__PURE__ */ serviceDesc(file_caronashow_pooler_v1_pooler
3099
3115
  // src/gen/caronashow/service/v1/map_pb.ts
3100
3116
  var file_caronashow_service_v1_map = /* @__PURE__ */ fileDesc("Ch9jYXJvbmFzaG93L3NlcnZpY2UvdjEvbWFwLnByb3RvEhVjYXJvbmFzaG93LnNlcnZpY2UudjEyDAoKTWFwU2VydmljZULdAQoZY29tLmNhcm9uYXNob3cuc2VydmljZS52MUIITWFwUHJvdG9QAVpAZ2l0bGFiLmNvbS9jYXJvbmFzaG93L2FwaS9nby9nZW4vY2Fyb25hc2hvdy9zZXJ2aWNlL3YxO3NlcnZpY2V2MaICA0NTWKoCFUNhcm9uYXNob3cuU2VydmljZS5WMcoCFUNhcm9uYXNob3dcU2VydmljZVxWMeICIUNhcm9uYXNob3dcU2VydmljZVxWMVxHUEJNZXRhZGF0YeoCF0Nhcm9uYXNob3c6OlNlcnZpY2U6OlYxYgZwcm90bzM");
3101
3117
  var MapService = /* @__PURE__ */ serviceDesc(file_caronashow_service_v1_map, 0);
3118
+ // src/gen/caronashow/types/v1/common_pb.ts
3119
+ var file_caronashow_types_v1_common = /* @__PURE__ */ fileDesc("CiBjYXJvbmFzaG93L3R5cGVzL3YxL2NvbW1vbi5wcm90bxITY2Fyb25hc2hvdy50eXBlcy52MSIrCglUaW1lT2ZEYXkSDQoFaG91cnMYASABKAUSDwoHbWludXRlcxgCIAEoBSrYAQoJRGF5T2ZXZWVrEhsKF0RBWV9PRl9XRUVLX1VOU1BFQ0lGSUVEEAASFgoSREFZX09GX1dFRUtfTU9OREFZEAESFwoTREFZX09GX1dFRUtfVFVFU0RBWRACEhkKFURBWV9PRl9XRUVLX1dFRE5FU0RBWRADEhgKFERBWV9PRl9XRUVLX1RIVVJTREFZEAQSFgoSREFZX09GX1dFRUtfRlJJREFZEAUSGAoUREFZX09GX1dFRUtfU0FUVVJEQVkQBhIWChJEQVlfT0ZfV0VFS19TVU5EQVkQByqHAQoOQ2hhdFByZWZlcmVuY2USHwobQ0hBVF9QUkVGRVJFTkNFX1VOU1BFQ0lGSUVEEAASGAoUQ0hBVF9QUkVGRVJFTkNFX09QRU4QARIZChVDSEFUX1BSRUZFUkVOQ0VfUVVJRVQQAhIfChtDSEFUX1BSRUZFUkVOQ0VfSU5ESUZGRVJFTlQQA0LSAQoXY29tLmNhcm9uYXNob3cudHlwZXMudjFCC0NvbW1vblByb3RvUAFaPGdpdGxhYi5jb20vY2Fyb25hc2hvdy9hcGkvZ28vZ2VuL2Nhcm9uYXNob3cvdHlwZXMvdjE7dHlwZXN2MaICA0NUWKoCE0Nhcm9uYXNob3cuVHlwZXMuVjHKAhNDYXJvbmFzaG93XFR5cGVzXFYx4gIfQ2Fyb25hc2hvd1xUeXBlc1xWMVxHUEJNZXRhZGF0YeoCFUNhcm9uYXNob3c6OlR5cGVzOjpWMWIGcHJvdG8z");
3120
+ var TimeOfDaySchema = /* @__PURE__ */ messageDesc(file_caronashow_types_v1_common, 0);
3121
+ var DayOfWeek;
3122
+ ((DayOfWeek2) => {
3123
+ DayOfWeek2[DayOfWeek2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3124
+ DayOfWeek2[DayOfWeek2["MONDAY"] = 1] = "MONDAY";
3125
+ DayOfWeek2[DayOfWeek2["TUESDAY"] = 2] = "TUESDAY";
3126
+ DayOfWeek2[DayOfWeek2["WEDNESDAY"] = 3] = "WEDNESDAY";
3127
+ DayOfWeek2[DayOfWeek2["THURSDAY"] = 4] = "THURSDAY";
3128
+ DayOfWeek2[DayOfWeek2["FRIDAY"] = 5] = "FRIDAY";
3129
+ DayOfWeek2[DayOfWeek2["SATURDAY"] = 6] = "SATURDAY";
3130
+ DayOfWeek2[DayOfWeek2["SUNDAY"] = 7] = "SUNDAY";
3131
+ })(DayOfWeek ||= {});
3132
+ var DayOfWeekSchema = /* @__PURE__ */ enumDesc(file_caronashow_types_v1_common, 0);
3133
+ var ChatPreference;
3134
+ ((ChatPreference2) => {
3135
+ ChatPreference2[ChatPreference2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3136
+ ChatPreference2[ChatPreference2["OPEN"] = 1] = "OPEN";
3137
+ ChatPreference2[ChatPreference2["QUIET"] = 2] = "QUIET";
3138
+ ChatPreference2[ChatPreference2["INDIFFERENT"] = 3] = "INDIFFERENT";
3139
+ })(ChatPreference ||= {});
3140
+ var ChatPreferenceSchema = /* @__PURE__ */ enumDesc(file_caronashow_types_v1_common, 1);
3141
+
3102
3142
  // src/gen/caronashow/types/v1/user_pb.ts
3103
- var file_caronashow_types_v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0lQQVRJT05fTU9ERV9PRkZFUhABEh0KGVBBUlRJQ0lQQVRJT05fTU9ERV9TRUFSQ0gQAhIeChpQQVJUSUNJUEFUSU9OX01PREVfRVhQTE9SRRADQtABChdjb20uY2Fyb25hc2hvdy50eXBlcy52MUIJVXNlclByb3RvUAFaPGdpdGxhYi5jb20vY2Fyb25hc2hvdy9hcGkvZ28vZ2VuL2Nhcm9uYXNob3cvdHlwZXMvdjE7dHlwZXN2MaICA0NUWKoCE0Nhcm9uYXNob3cuVHlwZXMuVjHKAhNDYXJvbmFzaG93XFR5cGVzXFYx4gIfQ2Fyb25hc2hvd1xUeXBlc1xWMVxHUEJNZXRhZGF0YeoCFUNhcm9uYXNob3c6OlR5cGVzOjpWMWIGcHJvdG8z");
3104
3144
  var UserSchema = /* @__PURE__ */ messageDesc(file_caronashow_types_v1_user, 0);
3145
+ var ParticipationMode;
3146
+ ((ParticipationMode2) => {
3147
+ ParticipationMode2[ParticipationMode2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3148
+ ParticipationMode2[ParticipationMode2["OFFER"] = 1] = "OFFER";
3149
+ ParticipationMode2[ParticipationMode2["SEARCH"] = 2] = "SEARCH";
3150
+ ParticipationMode2[ParticipationMode2["EXPLORE"] = 3] = "EXPLORE";
3151
+ })(ParticipationMode ||= {});
3152
+ var ParticipationModeSchema = /* @__PURE__ */ enumDesc(file_caronashow_types_v1_user, 0);
3153
+
3154
+ // src/gen/caronashow/service/v1/onboarding_pb.ts
3155
+ var file_caronashow_service_v1_onboarding = /* @__PURE__ */ fileDesc("CiZjYXJvbmFzaG93L3NlcnZpY2UvdjEvb25ib2FyZGluZy5wcm90bxIVY2Fyb25hc2hvdy5zZXJ2aWNlLnYxIhwKGkdldE9uYm9hcmRpbmdTdGF0dXNSZXF1ZXN0IjsKG0dldE9uYm9hcmRpbmdTdGF0dXNSZXNwb25zZRIcChRvbmJvYXJkaW5nX2NvbXBsZXRlZBgBIAEoCCKjAgoZQ29tcGxldGVPbmJv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UHJlZmVyZW5jZSIcChpDb21wbGV0ZU9uYm9hcmRpbmdSZXNwb25zZTKMAgoRT25ib2FyZGluZ1NlcnZpY2USfAoTR2V0T25ib2FyZGluZ1N0YXR1cxIxLmNhcm9uYXNob3cuc2VydmljZS52MS5HZXRPbmJvYXJkaW5nU3RhdHVzUmVxdWVzdBoyLmNhcm9uYXNob3cuc2VydmljZS52MS5HZXRPbmJvYXJkaW5nU3RhdHVzUmVzcG9uc2USeQoSQ29tcGxldGVPbmJvYXJkaW5nEjAuY2Fyb25hc2hvdy5zZXJ2aWNlLnYxLkNvbXBsZXRlT25ib2FyZGluZ1JlcXVlc3QaMS5jYXJvbmFzaG93LnNlcnZpY2UudjEuQ29tcGxldGVPbmJvYXJkaW5nUmVzcG9uc2VC5AEKGWNvbS5jYXJvbmFzaG93LnNlcnZpY2UudjFCD09uYm9hcmRpbmdQcm90b1ABWkBnaXRsYWIuY29tL2Nhcm9uYXNob3cvYXBpL2dvL2dlbi9jYXJvbmFzaG93L3NlcnZpY2UvdjE7c2VydmljZXYxogIDQ1NYqgIVQ2Fyb25hc2hvdy5TZXJ2aWNlLlYxygIVQ2Fyb25hc2hvd1xTZXJ2aWNlXFYx4gIhQ2Fyb25hc2hvd1xTZXJ2aWNlXFYxXEdQQk1ldGFkYXRh6gIXQ2Fyb25hc2hvdzo6U2VydmljZTo6VjFiBnByb3RvMw", [file_caronashow_types_v1_common, file_caronashow_types_v1_user]);
3156
+ var GetOnboardingStatusRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 0);
3157
+ var GetOnboardingStatusResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 1);
3158
+ var CompleteOnboardingRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 2);
3159
+ var DriverOfferSetupSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 3);
3160
+ var PassengerSearchSetupSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 4);
3161
+ var CompleteOnboardingResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_service_v1_onboarding, 5);
3162
+ 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.0",
6
+ "version": "0.7.1",
7
7
  "description": "CaronaShow API definitions",
8
8
  "author": "Lucas Santos <zerowhy.server@protonmail.com>",
9
9
  "license": "MIT",