Type aliases
AttendanceFlag
AttendanceFlag: "NOSHOW" | "CHECKEDIN" | "ALL"
Variables
Const attendeeMock
attendee
Mock: Factory<IAttendee, "team" | "costs" | "resource_uri" | "id" | "changed" | "created" | "quantity" | "variant_id" | "profile" | "barcodes" | "answers" | "checked_in" | "cancelled" | "refunded" | "affiliate" | "guestlist_id" | "invited_by" | "status" | "ticket_class_name" | "delivery_method" | "event_id" | "order_id" | "ticket_class_id"> = factory.Async.makeFactory<IAttendee>({cancelled: false,checked_in: false,profile: profileChild,refunded: false})
Const baseURL
baseURL: string = "https://www.eventbriteapi.com/v3/events/"
Const ebEventAttendeesMock
eb
EventAttendeesMock: Factory<IEBEventAttendees, "pagination" | "attendees"> = factory.Async.makeFactory<IEBEventAttendees>({attendees: attendeeMock.buildList(1)})
Const profileChild
profile
Child: Promise<IProfile> = profileMock.build()
Const profileMock
profile
Mock: Factory<IProfile, "first_name" | "last_name" | "addresses" | "cell_phone" | "email" | "name"> = factory.Async.makeFactory<IProfile>({first_name: faker.name.firstName(),last_name: faker.name.lastName(),// tslint:disable-next-line:object-literal-sort-keyscell_phone: faker.phone.phoneNumber()})
Const rest
rest: RestClient = new rm.RestClient('ebCheckins', baseURL)
Functions
getAttendeesForEvent
-
Parameters
-
accessToken: string
-
eventID: string
-
Returns Promise<IAttendee[]>
hasRegisteredForEvent
- hasRegisteredForEvent(accessToken: string, eventID: string, attendeeID: string): Promise<boolean>
-
Parameters
-
accessToken: string
-
eventID: string
-
attendeeID: string
Returns Promise<boolean>
Get attendees that are checked-in for an Eventbrite event