@hubs101/js-api-skd-client 1.0.10231 → 1.0.10246

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
@@ -13,7 +13,7 @@ Accessing API via stateless interface:
13
13
  ## Using EventAPIProvider
14
14
 
15
15
  1. Wrap app with Provider:
16
- `import { EventAPIProvider } from 'event-app-api';`
16
+ `import { EventAPIProvider } from '@hubs101/js-api-skd-client';`
17
17
  2. Access api via hook:
18
18
  ` const { fetchAttendees } = useAPIContext();`
19
19
 
@@ -422,6 +422,19 @@ export type StreamConfig = {
422
422
  password: string;
423
423
  reference: string;
424
424
  };
425
+ export type OnboardingQuestionOption = {
426
+ order: number;
427
+ answer: string;
428
+ };
429
+ export type BookingQuestion = {
430
+ id: string;
431
+ question: string;
432
+ order: number;
433
+ required: boolean;
434
+ answers: OnboardingQuestionOption[];
435
+ type: string;
436
+ style: string;
437
+ };
425
438
  export type EventServerResponse = {
426
439
  id: string;
427
440
  name: string;
@@ -474,6 +487,7 @@ export type EventServerResponse = {
474
487
  menu: any;
475
488
  promotion: unknown;
476
489
  onboarding_questions: Question[];
490
+ booking_questions: BookingQuestion[];
477
491
  streaming: unknown;
478
492
  setting: {
479
493
  domain: string;
@@ -276,7 +276,7 @@ export type EventAPIType = {
276
276
  unpinExhibition: (exhibitionId: string) => Promise<boolean>;
277
277
  fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
278
278
  assignTicket: (bookingId: string, ticketId: string, data: any) => Promise<any>;
279
- acceptTicket: (ticketId: string, body: any) => Promise<any>;
279
+ acceptTicket: (ticketId: string, access: string, body: any) => Promise<any>;
280
280
  fetchTicketDetails: (eventId: string, profileId: string, access: string) => Promise<ResponsePaginationType<BookingDetails>>;
281
281
  fetchEventBookings: (eventId: string) => Promise<ResponsePaginationType<Booking>>;
282
282
  createFreeTrialAccount: (data: any) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10231",
3
+ "version": "1.0.10246",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",