@hubs101/js-api-skd-client 1.0.10264 → 1.0.10265

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.
@@ -51,6 +51,7 @@ export declare const _fetchTicketDetails: (basePath: string, eventId: string, pr
51
51
  export declare const _acceptTicket: (basePath: string, ticketId: string, access: string, body: any) => Promise<any>;
52
52
  export declare const _acceptInternTicket: (basePath: string, token: string, ticketId: string, body: any) => Promise<any>;
53
53
  export declare const _fetchEventBookings: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<Booking>>;
54
+ export declare const _fetchEventOrderedTickets: (basePath: string, token: string, eventId: string) => Promise<any>;
54
55
  export declare const _createFreeTrialAccount: (basePath: string, token: string, data: any) => Promise<any>;
55
56
  export declare const _eventInvitationRegistration: (basePath: string, token: string, userId: string, data: any) => Promise<any>;
56
57
  export declare const _fetchAccountDetails: (basePath: string, token: string, accountId: string) => Promise<any>;
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports._fetchEventBookings = exports._acceptInternTicket = exports._acceptTicket = exports._fetchTicketDetails = exports._assignTicket = exports._fetchMyBookings = 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
- 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 = void 0;
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 = void 0;
14
14
  const api_1 = require("../../utils/api");
15
15
  const base_1 = require("../../utils/base");
16
16
  const _fetchEventRegistrations = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
@@ -324,10 +324,16 @@ const _acceptInternTicket = (basePath, token, ticketId, body) => __awaiter(void
324
324
  exports._acceptInternTicket = _acceptInternTicket;
325
325
  const _fetchEventBookings = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
326
326
  const base = (0, base_1.getBasePath)(basePath);
327
- const bookings = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/bookings?limit=1000`, token);
327
+ const bookings = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/bookings?limit=2000`, token);
328
328
  return bookings;
329
329
  });
330
330
  exports._fetchEventBookings = _fetchEventBookings;
331
+ const _fetchEventOrderedTickets = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
332
+ const base = (0, base_1.getBasePath)(basePath);
333
+ const orderedTickets = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/ordered-tickets?limit=2000`, token);
334
+ return orderedTickets;
335
+ });
336
+ exports._fetchEventOrderedTickets = _fetchEventOrderedTickets;
331
337
  const _createFreeTrialAccount = (basePath, token, data) => __awaiter(void 0, void 0, void 0, function* () {
332
338
  const base = (0, base_1.getBasePath)(basePath);
333
339
  const response = yield (0, api_1.postRequestWE)(base.ACCOUNT_TRIAL, data, token);
package/lib/index.js CHANGED
@@ -140,6 +140,10 @@ 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 fetchEventOrderedTickets = react_1.default.useCallback((eventId) => __awaiter(this, void 0, void 0, function* () {
144
+ (0, api_1.validateConfig)(config);
145
+ return (0, event_1._fetchEventOrderedTickets)(config.baseUrl, config.token, eventId);
146
+ }), [config, config.baseUrl, config.token]);
143
147
  const acceptInternTicket = (0, react_1.useCallback)((ticketId, body) => __awaiter(this, void 0, void 0, function* () {
144
148
  (0, api_1.validateConfig)(config);
145
149
  return (0, event_1._acceptInternTicket)(config.baseUrl, config.token, ticketId, body);
@@ -807,6 +811,7 @@ function EventAPIProvider(props) {
807
811
  pinExhibition,
808
812
  unpinExhibition,
809
813
  fetchEventGroups,
814
+ fetchEventOrderedTickets,
810
815
  acceptInternTicket,
811
816
  fetchTickets,
812
817
  getPublicRegistrationForm,
@@ -988,6 +993,7 @@ exports.BaseAPI = {
988
993
  pinExhibition: event_1._pinExhibition,
989
994
  unpinExhibition: event_1._unpinExhibition,
990
995
  fetchEventGroups: event_1._fetchEventGroups,
996
+ fetchEventOrderedTickets: event_1._fetchEventOrderedTickets,
991
997
  acceptInternTicket: event_1._acceptInternTicket,
992
998
  fetchTickets: event_1._fetchTickets,
993
999
  getPublicRegistrationForm: public_1._getPublicRegistrationForm,
@@ -84,6 +84,7 @@ export type BaseAPIType = {
84
84
  unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
85
85
  getPublicRegistrationForm: (basePath: string, eventId: string) => Promise<any>;
86
86
  fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
87
+ fetchEventOrderedTickets: (basePath: string, token: string, eventId: string) => Promise<any>;
87
88
  acceptInternTicket: (basePath: string, token: string, ticketId: string, body: any) => Promise<any>;
88
89
  fetchTickets: (basePath: string, token: string) => Promise<ResponsePaginationType<BookingDetails>>;
89
90
  fetchMyBookings: (basePath: string, token: string) => Promise<ResponsePaginationType<Booking>>;
@@ -280,6 +281,7 @@ export type EventAPIType = {
280
281
  pinExhibition: (exhibitionId: string) => Promise<boolean>;
281
282
  unpinExhibition: (exhibitionId: string) => Promise<boolean>;
282
283
  fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
284
+ fetchEventOrderedTickets: (basePath: string, token: string, eventId: string) => Promise<any>;
283
285
  acceptInternTicket: (ticketId: string, body: any) => Promise<any>;
284
286
  fetchTickets: () => Promise<ResponsePaginationType<BookingDetails>>;
285
287
  getPublicRegistrationForm: (eventId: 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.10264",
3
+ "version": "1.0.10265",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",