@hubs101/js-api-skd-client 1.0.10307 → 1.0.10308

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.
@@ -45,8 +45,8 @@ export declare const _unpinDocument: (basePath: string, token: string, eventId:
45
45
  export declare const _pinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
46
46
  export declare const _unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
47
47
  export declare const _fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
48
- export declare const _resendTicketEMail: (basePath: string, token: string, ticketId: string) => Promise<any>;
49
- export declare const _resendBookingEMail: (basePath: string, token: string, bookingId: string) => Promise<any>;
48
+ export declare const _resendTicketEmail: (basePath: string, token: string, ticketId: string) => Promise<any>;
49
+ export declare const _resendBookingEmail: (basePath: string, token: string, bookingId: string) => Promise<any>;
50
50
  export declare const _checkBooking: (basePath: string, body: any, lang: string) => Promise<any>;
51
51
  export declare const _createBooking: (basePath: string, body: any, lang: string) => Promise<any>;
52
52
  export declare const _fetchMyBookings: (basePath: string, token: string) => Promise<ResponsePaginationType<Booking>>;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports._assignTicket = exports._fetchMyBookings = exports._createBooking = exports._checkBooking = exports._resendBookingEMail = exports._resendTicketEMail = exports._fetchEventGroups = exports._unpinExhibition = exports._pinExhibition = exports._unpinDocument = exports._pinDocument = exports._reportExhibitionAction = exports._deleteDocument = exports._updateDocument = exports._createDocument = exports._assignDocumentToEvent = exports._fetchEventDocuments = exports._fetchUserRegistrationsEvents = exports._fetchEventStreams = exports._fetchEventLocations = exports._deleteLocation = exports._updateLocation = exports._createLocation = exports._fetchExhibitionDetails = exports._deleteDiscount = exports._updateDiscount = exports._createDiscount = exports._fetchEventDiscounts = exports._deleteTicket = exports._updateTicket = exports._createTicket = exports._deleteOption = exports._updateOption = exports._createOption = exports._deleteGroup = exports._updateGroup = exports._createGroup = exports._importAgenda = exports._fetchAttendeesAvailabilities = exports._updateEventTemplates = exports._fetchEventTemplates = exports._fetchEventNotifications = exports._sendSingleNotification = exports._sendNotification = exports._fetchEventDetails = exports._fetchExhibitions = exports._fetchEventsForAccount = exports._fetchTickets = exports._fetchAccounts = exports._fetchEventRegistrations = void 0;
12
+ exports._assignTicket = exports._fetchMyBookings = exports._createBooking = exports._checkBooking = exports._resendBookingEmail = exports._resendTicketEmail = exports._fetchEventGroups = exports._unpinExhibition = exports._pinExhibition = exports._unpinDocument = exports._pinDocument = exports._reportExhibitionAction = exports._deleteDocument = exports._updateDocument = exports._createDocument = exports._assignDocumentToEvent = exports._fetchEventDocuments = exports._fetchUserRegistrationsEvents = exports._fetchEventStreams = exports._fetchEventLocations = exports._deleteLocation = exports._updateLocation = exports._createLocation = exports._fetchExhibitionDetails = exports._deleteDiscount = exports._updateDiscount = exports._createDiscount = exports._fetchEventDiscounts = exports._deleteTicket = exports._updateTicket = exports._createTicket = exports._deleteOption = exports._updateOption = exports._createOption = exports._deleteGroup = exports._updateGroup = exports._createGroup = exports._importAgenda = exports._fetchAttendeesAvailabilities = exports._updateEventTemplates = exports._fetchEventTemplates = exports._fetchEventNotifications = exports._sendSingleNotification = exports._sendNotification = exports._fetchEventDetails = exports._fetchExhibitions = exports._fetchEventsForAccount = exports._fetchTickets = exports._fetchAccounts = exports._fetchEventRegistrations = void 0;
13
13
  exports._deleteExhibition = exports._updateExhibition = exports._importExhibition = exports._createExhibition = exports._fetchMyExhibitions = exports._fetchAllExhibitions = exports._deleteStream = exports._updateStream = exports._createStream = exports._fetchYoutubeContent = exports._fetchZoomContent = exports._createEvent = exports._unassignPaymentAccount = exports._assignPaymentAccount = exports._fetchEventOptions = exports._fetchEventTickets = exports._updateEvent = exports._deletePage = exports._updatePage = exports._createPage = exports._fetchEventPages = exports._updateAccountWithFiles = exports._fetchMySessions = exports._fetchEditableEvents = exports._fetchSpeakers = exports._fetchAccountDetails = exports._eventInvitationRegistration = exports._createFreeTrialAccount = exports._fetchEventOrderedTickets = exports._confirmBooking = exports._fetchEventBookings = exports._acceptInternTicket = exports._acceptTicket = exports._postTicketDetails = exports._fetchTicketDetails = void 0;
14
14
  const api_1 = require("../../utils/api");
15
15
  const base_1 = require("../../utils/base");
@@ -292,18 +292,18 @@ const _fetchEventGroups = (basePath, token, eventId) => __awaiter(void 0, void 0
292
292
  return groups;
293
293
  });
294
294
  exports._fetchEventGroups = _fetchEventGroups;
295
- const _resendTicketEMail = (basePath, token, ticketId) => __awaiter(void 0, void 0, void 0, function* () {
295
+ const _resendTicketEmail = (basePath, token, ticketId) => __awaiter(void 0, void 0, void 0, function* () {
296
296
  const base = (0, base_1.getBasePath)(basePath);
297
297
  const response = yield (0, api_1.getRequest)(`${base.TICKETS}/${ticketId}/resend-ticket-email`, token);
298
298
  return response;
299
299
  });
300
- exports._resendTicketEMail = _resendTicketEMail;
301
- const _resendBookingEMail = (basePath, token, bookingId) => __awaiter(void 0, void 0, void 0, function* () {
300
+ exports._resendTicketEmail = _resendTicketEmail;
301
+ const _resendBookingEmail = (basePath, token, bookingId) => __awaiter(void 0, void 0, void 0, function* () {
302
302
  const base = (0, base_1.getBasePath)(basePath);
303
303
  const response = yield (0, api_1.getRequest)(`${base.BOOKINGS}/${bookingId}/resend-booking-email`, token);
304
304
  return response;
305
305
  });
306
- exports._resendBookingEMail = _resendBookingEMail;
306
+ exports._resendBookingEmail = _resendBookingEmail;
307
307
  const _checkBooking = (basePath, body, lang) => __awaiter(void 0, void 0, void 0, function* () {
308
308
  const base = (0, base_1.getBasePath)(basePath);
309
309
  const response = yield (0, api_1.postRequestJSON)(`${base.PUBLIC_BOOKINGS}/check?lang=${lang}`, body, null, { "Content-Type": "application/json" });
package/lib/index.js CHANGED
@@ -140,13 +140,13 @@ function EventAPIProvider(props) {
140
140
  (0, api_1.validateConfig)(config);
141
141
  return (0, event_1._fetchEventGroups)(config.baseUrl, config.token, eventId);
142
142
  }), [config, config.baseUrl, config.token]);
143
- const resendTicketEMail = react_1.default.useCallback((ticketId) => __awaiter(this, void 0, void 0, function* () {
143
+ const resendTicketEmail = react_1.default.useCallback((ticketId) => __awaiter(this, void 0, void 0, function* () {
144
144
  (0, api_1.validateConfig)(config);
145
- return (0, event_1._resendTicketEMail)(config.baseUrl, config.token, ticketId);
145
+ return (0, event_1._resendTicketEmail)(config.baseUrl, config.token, ticketId);
146
146
  }), [config, config.baseUrl, config.token]);
147
- const resendBookingEMail = (0, react_1.useCallback)((bookingId) => __awaiter(this, void 0, void 0, function* () {
147
+ const resendBookingEmail = (0, react_1.useCallback)((bookingId) => __awaiter(this, void 0, void 0, function* () {
148
148
  (0, api_1.validateConfig)(config);
149
- return (0, event_1._resendBookingEMail)(config.baseUrl, config.token, bookingId);
149
+ return (0, event_1._resendBookingEmail)(config.baseUrl, config.token, bookingId);
150
150
  }), [config, config.baseUrl, config.token]);
151
151
  const postTicketDetails = (0, react_1.useCallback)((eventId, profileId, access, body) => __awaiter(this, void 0, void 0, function* () {
152
152
  (0, api_1.validateConfig)(config);
@@ -847,8 +847,8 @@ function EventAPIProvider(props) {
847
847
  pinExhibition,
848
848
  unpinExhibition,
849
849
  fetchEventGroups,
850
- resendBookingEMail,
851
- resendTicketEMail,
850
+ resendBookingEmail,
851
+ resendTicketEmail,
852
852
  postTicketDetails,
853
853
  confirmAttendee,
854
854
  checkBooking,
@@ -1038,8 +1038,8 @@ exports.BaseAPI = {
1038
1038
  pinExhibition: event_1._pinExhibition,
1039
1039
  unpinExhibition: event_1._unpinExhibition,
1040
1040
  fetchEventGroups: event_1._fetchEventGroups,
1041
- resendTicketEMail: event_1._resendTicketEMail,
1042
- resendBookingEMail: event_1._resendBookingEMail,
1041
+ resendTicketEmail: event_1._resendTicketEmail,
1042
+ resendBookingEmail: event_1._resendBookingEmail,
1043
1043
  postTicketDetails: event_1._postTicketDetails,
1044
1044
  confirmAttendee: attendee_1._confirmAttendee,
1045
1045
  checkBooking: event_1._checkBooking,
@@ -85,8 +85,8 @@ export type BaseAPIType = {
85
85
  unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
86
86
  getPublicRegistrationForm: (basePath: string, eventId: string) => Promise<any>;
87
87
  fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
88
- resendTicketEMail: (basePath: string, token: string, ticketId: string) => Promise<any>;
89
- resendBookingEMail: (basePath: string, token: string, bookingId: string) => Promise<any>;
88
+ resendTicketEmail: (basePath: string, token: string, ticketId: string) => Promise<any>;
89
+ resendBookingEmail: (basePath: string, token: string, bookingId: string) => Promise<any>;
90
90
  postTicketDetails: (basePath: string, eventId: string, profileId: string, access: string, body: any) => Promise<any>;
91
91
  confirmAttendee: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
92
92
  checkBooking: (basePath: string, body: any, lang: string) => Promise<any>;
@@ -291,8 +291,8 @@ export type EventAPIType = {
291
291
  pinExhibition: (exhibitionId: string) => Promise<boolean>;
292
292
  unpinExhibition: (exhibitionId: string) => Promise<boolean>;
293
293
  fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
294
- resendTicketEMail: (ticketId: string) => Promise<any>;
295
- resendBookingEMail: (bookingId: string) => Promise<any>;
294
+ resendTicketEmail: (ticketId: string) => Promise<any>;
295
+ resendBookingEmail: (bookingId: string) => Promise<any>;
296
296
  postTicketDetails: (eventId: string, profileId: string, access: string, body: any) => Promise<ResponsePaginationType<BookingDetails>>;
297
297
  confirmAttendee: (attendeeId: string, data: any) => Promise<any>;
298
298
  checkBooking: (body: any, lang: string) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10307",
3
+ "version": "1.0.10308",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",