@reservamos/browser-analytics 1.0.11 → 1.0.13

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.
@@ -1,6 +1,6 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- import { AnonymousProfile, GetRecommendedSeatsPayload, GetRecommendedSeatsResponse, GetRecommendedTripsPayload, RecommendedPlacesResponse, RecommendedSeatsPayload, RecommendedSeatsResponse, RecommendedTripsResponse } from '@reservamos/js-api-client/core';
3
+ import { AnonymousProfile, CreateFrequentPassengersResponse, FrequentPassengersResponse, GetRecommendedSeatsPayload, GetRecommendedSeatsResponse, GetRecommendedTripsPayload, RecommendedPlacesResponse, RecommendedSeatsPayload, RecommendedSeatsResponse, RecommendedTripsResponse } from '@reservamos/js-api-client/core';
4
4
  import { z } from 'zod';
5
5
 
6
6
  declare const customEventSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[
@@ -954,33 +954,97 @@ declare const CreateAnonymousProfileSchema: z.ZodEffects<z.ZodObject<{
954
954
  cpf: z.ZodOptional<z.ZodString>;
955
955
  passport: z.ZodOptional<z.ZodString>;
956
956
  rg: z.ZodOptional<z.ZodString>;
957
+ firstName: z.ZodOptional<z.ZodString>;
958
+ lastName: z.ZodOptional<z.ZodString>;
957
959
  }, "strip", z.ZodTypeAny, {
958
960
  email?: string | undefined;
959
961
  phone?: string | undefined;
962
+ firstName?: string | undefined;
963
+ lastName?: string | undefined;
960
964
  cpf?: string | undefined;
961
965
  passport?: string | undefined;
962
966
  rg?: string | undefined;
963
967
  }, {
964
968
  email?: string | undefined;
965
969
  phone?: string | undefined;
970
+ firstName?: string | undefined;
971
+ lastName?: string | undefined;
966
972
  cpf?: string | undefined;
967
973
  passport?: string | undefined;
968
974
  rg?: string | undefined;
969
975
  }>, {
970
976
  email?: string | undefined;
971
977
  phone?: string | undefined;
978
+ firstName?: string | undefined;
979
+ lastName?: string | undefined;
972
980
  cpf?: string | undefined;
973
981
  passport?: string | undefined;
974
982
  rg?: string | undefined;
975
983
  }, {
976
984
  email?: string | undefined;
977
985
  phone?: string | undefined;
986
+ firstName?: string | undefined;
987
+ lastName?: string | undefined;
978
988
  cpf?: string | undefined;
979
989
  passport?: string | undefined;
980
990
  rg?: string | undefined;
981
991
  }>;
982
992
  export type CreateAnonymousProfileProps = z.infer<typeof CreateAnonymousProfileSchema>;
983
993
  declare function createAnonymousProfile(payload: CreateAnonymousProfileProps): Promise<AnonymousProfile | undefined>;
994
+ declare const CreateFrequentPassengersSchema: z.ZodObject<{
995
+ passengers: z.ZodArray<z.ZodObject<{
996
+ id: z.ZodNumber;
997
+ first_name: z.ZodString;
998
+ last_name: z.ZodString;
999
+ second_last_name: z.ZodString;
1000
+ category: z.ZodString;
1001
+ bus_category: z.ZodString;
1002
+ gender: z.ZodString;
1003
+ email: z.ZodString;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ id: number;
1006
+ email: string;
1007
+ first_name: string;
1008
+ last_name: string;
1009
+ second_last_name: string;
1010
+ category: string;
1011
+ bus_category: string;
1012
+ gender: string;
1013
+ }, {
1014
+ id: number;
1015
+ email: string;
1016
+ first_name: string;
1017
+ last_name: string;
1018
+ second_last_name: string;
1019
+ category: string;
1020
+ bus_category: string;
1021
+ gender: string;
1022
+ }>, "many">;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ passengers: {
1025
+ id: number;
1026
+ email: string;
1027
+ first_name: string;
1028
+ last_name: string;
1029
+ second_last_name: string;
1030
+ category: string;
1031
+ bus_category: string;
1032
+ gender: string;
1033
+ }[];
1034
+ }, {
1035
+ passengers: {
1036
+ id: number;
1037
+ email: string;
1038
+ first_name: string;
1039
+ last_name: string;
1040
+ second_last_name: string;
1041
+ category: string;
1042
+ bus_category: string;
1043
+ gender: string;
1044
+ }[];
1045
+ }>;
1046
+ export type CreateFrequentPassengersSchemaProps = z.infer<typeof CreateFrequentPassengersSchema>;
1047
+ declare function createFrequentPassengers(payload: CreateFrequentPassengersSchemaProps): Promise<CreateFrequentPassengersResponse>;
984
1048
  declare const CreateRecommendedSeatsSchema: z.ZodObject<{
985
1049
  bus_type: z.ZodString;
986
1050
  selected_seats: z.ZodString;
@@ -1175,6 +1239,7 @@ declare const InitConfigSchema: z.ZodObject<{
1175
1239
  export type InitConfig = z.infer<typeof InitConfigSchema>;
1176
1240
  declare function init(config: InitConfig): Promise<void>;
1177
1241
  declare function isTrackerReady(): boolean;
1242
+ declare function getFrequentPassengers(): Promise<FrequentPassengersResponse>;
1178
1243
  declare function getRecommendedPlaces(): Promise<RecommendedPlacesResponse>;
1179
1244
  declare const analytics: {
1180
1245
  init: typeof init;
@@ -1192,6 +1257,8 @@ declare const analytics: {
1192
1257
  createRecommendedSeats: typeof createRecommendedSeats;
1193
1258
  getRecommendedSeats: typeof createRecommendedSeats$1;
1194
1259
  getRecommendedTrips: typeof getRecommendedTrips;
1260
+ createFrequentPassengers: typeof createFrequentPassengers;
1261
+ getFrequentPassengers: typeof getFrequentPassengers;
1195
1262
  };
1196
1263
  track: {
1197
1264
  search: typeof trackSearch$1;