@hubs101/js-api-skd-client 1.0.10258 → 1.0.10259
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/lib/api/event/index.d.ts +1 -0
- package/lib/api/event/index.js +8 -2
- package/lib/index.js +6 -0
- package/lib/types/base.d.ts +2 -0
- package/package.json +1 -1
package/lib/api/event/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare const _fetchMyBookings: (basePath: string, token: string) => Prom
|
|
|
49
49
|
export declare const _assignTicket: (basePath: string, token: string, bookingId: string, ticketId: string, data: any) => Promise<any>;
|
|
50
50
|
export declare const _fetchTicketDetails: (basePath: string, eventId: string, profileId: string, access: string) => Promise<ResponsePaginationType<BookingDetails>>;
|
|
51
51
|
export declare const _acceptTicket: (basePath: string, ticketId: string, access: string, body: any) => Promise<any>;
|
|
52
|
+
export declare const _acceptInternTicket: (basePath: string, token: string, ticketId: string, body: any) => Promise<any>;
|
|
52
53
|
export declare const _fetchEventBookings: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<Booking>>;
|
|
53
54
|
export declare const _createFreeTrialAccount: (basePath: string, token: string, data: any) => Promise<any>;
|
|
54
55
|
export declare const _eventInvitationRegistration: (basePath: string, token: string, userId: string, data: any) => Promise<any>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
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._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 = void 0;
|
|
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._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;
|
|
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* () {
|
|
@@ -316,6 +316,12 @@ const _acceptTicket = (basePath, ticketId, access, body) => __awaiter(void 0, vo
|
|
|
316
316
|
return response;
|
|
317
317
|
});
|
|
318
318
|
exports._acceptTicket = _acceptTicket;
|
|
319
|
+
const _acceptInternTicket = (basePath, token, ticketId, body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
320
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
321
|
+
const response = yield (0, api_1.postRequestWE)(`${base.TICKETS}/${ticketId}/accept`, body, token);
|
|
322
|
+
return response;
|
|
323
|
+
});
|
|
324
|
+
exports._acceptInternTicket = _acceptInternTicket;
|
|
319
325
|
const _fetchEventBookings = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
320
326
|
const base = (0, base_1.getBasePath)(basePath);
|
|
321
327
|
const bookings = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/bookings?limit=1000`, 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 acceptInternTicket = (0, react_1.useCallback)((ticketId, body) => __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
(0, api_1.validateConfig)(config);
|
|
145
|
+
return (0, event_1._acceptInternTicket)(config.baseUrl, config.token, ticketId, body);
|
|
146
|
+
}), [config, config.baseUrl, config.token]);
|
|
143
147
|
const fetchTickets = (0, react_1.useCallback)(() => __awaiter(this, void 0, void 0, function* () {
|
|
144
148
|
(0, api_1.validateConfig)(config);
|
|
145
149
|
return (0, event_1._fetchTickets)(config.baseUrl, config.token);
|
|
@@ -799,6 +803,7 @@ function EventAPIProvider(props) {
|
|
|
799
803
|
pinExhibition,
|
|
800
804
|
unpinExhibition,
|
|
801
805
|
fetchEventGroups,
|
|
806
|
+
acceptInternTicket,
|
|
802
807
|
fetchTickets,
|
|
803
808
|
getPublicRegistrationForm,
|
|
804
809
|
fetchMyBookings,
|
|
@@ -978,6 +983,7 @@ exports.BaseAPI = {
|
|
|
978
983
|
pinExhibition: event_1._pinExhibition,
|
|
979
984
|
unpinExhibition: event_1._unpinExhibition,
|
|
980
985
|
fetchEventGroups: event_1._fetchEventGroups,
|
|
986
|
+
acceptInternTicket: event_1._acceptInternTicket,
|
|
981
987
|
fetchTickets: event_1._fetchTickets,
|
|
982
988
|
getPublicRegistrationForm: public_1._getPublicRegistrationForm,
|
|
983
989
|
fetchMyBookings: event_1._fetchMyBookings,
|
package/lib/types/base.d.ts
CHANGED
|
@@ -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
|
+
acceptInternTicket: (basePath: string, token: string, ticketId: string, body: any) => Promise<any>;
|
|
87
88
|
fetchTickets: (basePath: string, token: string) => Promise<ResponsePaginationType<BookingDetails>>;
|
|
88
89
|
fetchMyBookings: (basePath: string, token: string) => Promise<ResponsePaginationType<Booking>>;
|
|
89
90
|
assignTicket: (basePath: string, token: string, bookingId: string, ticketId: string, data: any) => Promise<any>;
|
|
@@ -278,6 +279,7 @@ export type EventAPIType = {
|
|
|
278
279
|
pinExhibition: (exhibitionId: string) => Promise<boolean>;
|
|
279
280
|
unpinExhibition: (exhibitionId: string) => Promise<boolean>;
|
|
280
281
|
fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
|
|
282
|
+
acceptInternTicket: (ticketId: string, body: any) => Promise<any>;
|
|
281
283
|
fetchTickets: () => Promise<ResponsePaginationType<BookingDetails>>;
|
|
282
284
|
getPublicRegistrationForm: (eventId: string) => Promise<any>;
|
|
283
285
|
fetchMyBookings: () => Promise<ResponsePaginationType<Booking>>;
|