@hubs101/js-api-skd-client 1.0.10671 → 1.0.10673
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 +2 -1
- 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
|
@@ -2,7 +2,7 @@ import { GenericResponseServerType, PublicAdResponse, ResponsePaginationType, Re
|
|
|
2
2
|
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
3
|
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FaqInput, FileDetails, GroupServerResponse, KeyTopicInput, KeyTopicResponse, OptionServerResponse, Portfolio, PortfolioInput, Blog, BlogInput, StatisticInput, StatisticResponse, Stream, StreamInput, TestimonialInput, TestimonialResponse, TicketServerResponse, UserRegistrationsEvent, ZoomParams, CreateOfferInput, OfferServerResponse, SpeakerAdvertInput, ExhibitionBulkUpdateInput, SessionBulkUpdateInput, OnsiteInput, EventSpeaker } from "./types";
|
|
4
4
|
import { APIResponse } from "../../types/base";
|
|
5
|
-
import { Attendee } from "../attendee/types";
|
|
5
|
+
import { Attendee, SuccessResponse } from "../attendee/types";
|
|
6
6
|
import type { AttendeeProfile } from "../attendee/types";
|
|
7
7
|
import { Page } from "../pages/types";
|
|
8
8
|
export declare const _fetchEventSpeakers: (basePath: string, token: string, eventId: string) => Promise<EventSpeaker[]>;
|
|
@@ -185,6 +185,7 @@ export declare const _importEventWebsiteContent: (basePath: string, token: strin
|
|
|
185
185
|
export declare const _fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
|
|
186
186
|
export declare const _activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
187
187
|
export declare const _deactivateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
188
|
+
export declare const _updateAttendeeMeetingHost: (basePath: string, token: string, eventId: string, attendeeId: string, isMeetingHost: boolean) => Promise<SuccessResponse>;
|
|
188
189
|
export declare const _fetchAccountDocuments: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<DocumentType>>;
|
|
189
190
|
export declare const _fetchAccountProfiles: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<AttendeeProfile>>;
|
|
190
191
|
export declare const _updateEventTargetGroups: (basePath: string, token: string, eventId: string, data: {
|
package/lib/api/event/index.js
CHANGED
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports._fetchEventAttendeeActions = exports._fetchPublicEventGroups = exports._fetchEventGroups = exports._unpinExhibition = exports._pinExhibition = exports._unpinDocument = exports._pinDocument = exports._reportExhibitionAction = exports._deleteDocument = exports._updateDocument = exports._createExhibitionDocument = 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._deleteSpeakerRole = exports._updateSpeakerRole = 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 = exports._fetchEventSpeakers = void 0;
|
|
13
13
|
exports._sendOffer = exports._updateOffer = exports._fetchOfferDetails = exports._fetchOffers = exports._createOffer = exports._importOnboardingQuestions = exports._deleteExhibition = exports._bulkExhibitionsOrder = 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._fetchSpeakerById = exports._fetchSpeakers = exports._fetchAccountDetails = exports._eventInvitationRegistration = exports._createFreeTrialAccount = exports._fetchEventOrderedTickets = exports._confirmBooking = exports._fetchEventBookings = exports._acceptInternTicket = exports._acceptTicket = exports._postTicketDetails = exports._fetchTicketDetails = exports._assignTicket = exports._fetchAccountBookings = exports._fetchMyBookings = exports._createBooking = exports._checkBooking = exports._resendBookingEmail = exports._resendTicketEmail = void 0;
|
|
14
|
-
exports.
|
|
15
|
-
exports._updateEventSessions = exports._updateEventOnsite = exports._updateEventExhibitions = void 0;
|
|
14
|
+
exports._updateEventFaqs = exports._updateEventTickets = exports._updateEventSurveys = exports._updateEventCitations = exports._updateEventTargetGroups = exports._fetchAccountProfiles = exports._fetchAccountDocuments = exports._updateAttendeeMeetingHost = exports._deactivateDataManagers = exports._activateDataManagers = exports._fetchPublicEventAdvertisement = exports._importEventWebsiteContent = exports._importTickets = exports._updateKeyTopic = exports._createKeyTopic = exports._updateStatistic = exports._createStatistic = exports._updateTestimonial = exports._createTestimonial = exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._renameFolder = exports._uploadFileToFolder = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = exports._updatePortfolioBlogPage = exports._createBlogPage = exports._fetchBlogPages = exports._fetchBlogEventsBySlug = exports._fetchPortfolioEvents = exports._fetchBlogEvents = exports._fetchBlogDetails = exports._updateBlog = exports._createBlog = exports._unassignBlog = exports._assignBlog = exports._deleteBlog = exports._fetchBlogs = exports._fetchPortfolioDetails = exports._updatePortfolio = exports._createPortfolio = exports._unassignPortfolio = exports._assignPortfolio = exports._deletePortfolio = exports._fetchPortfolios = exports._approveOffer = void 0;
|
|
15
|
+
exports._updateEventSessions = exports._updateEventOnsite = exports._updateEventExhibitions = exports._updateEventSpeakerAdverts = void 0;
|
|
16
16
|
const api_1 = require("../../utils/api");
|
|
17
17
|
const base_1 = require("../../utils/base");
|
|
18
18
|
const _fetchEventSpeakers = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -926,6 +926,12 @@ const _deactivateDataManagers = (basePath, token, eventId, attendeeIds) => __awa
|
|
|
926
926
|
return ((_a = attendees === null || attendees === void 0 ? void 0 : attendees.data) === null || _a === void 0 ? void 0 : _a.data) || (attendees === null || attendees === void 0 ? void 0 : attendees.data) || attendees;
|
|
927
927
|
});
|
|
928
928
|
exports._deactivateDataManagers = _deactivateDataManagers;
|
|
929
|
+
const _updateAttendeeMeetingHost = (basePath, token, eventId, attendeeId, isMeetingHost) => __awaiter(void 0, void 0, void 0, function* () {
|
|
930
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
931
|
+
const response = yield (0, api_1.putRequest)(`${base.EVENTS}/${eventId}/meeting-host?attendee_list=${attendeeId}&is_meeting_host=${isMeetingHost ? 1 : 0}`, token, {});
|
|
932
|
+
return response;
|
|
933
|
+
});
|
|
934
|
+
exports._updateAttendeeMeetingHost = _updateAttendeeMeetingHost;
|
|
929
935
|
const _fetchAccountDocuments = (basePath, token, accountId, params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
930
936
|
const base = (0, base_1.getBasePath)(basePath);
|
|
931
937
|
const url = params
|
package/lib/index.js
CHANGED
|
@@ -185,6 +185,10 @@ function EventAPIProvider(props) {
|
|
|
185
185
|
(0, api_1.validateConfig)(config);
|
|
186
186
|
return (0, attendee_1._updateVisibilityAttendee)(config.baseUrl, config.token, attendeeId, visibility);
|
|
187
187
|
}), [config, config.baseUrl, config.token]);
|
|
188
|
+
const updateAttendeeMeetingHost = (0, react_1.useCallback)((eventId, attendeeId, isMeetingHost) => __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
(0, api_1.validateConfig)(config);
|
|
190
|
+
return (0, event_1._updateAttendeeMeetingHost)(config.baseUrl, config.token, eventId, attendeeId, isMeetingHost);
|
|
191
|
+
}), [config, config.baseUrl, config.token]);
|
|
188
192
|
const fetchAccountGroups = (0, react_1.useCallback)((accountId, type) => __awaiter(this, void 0, void 0, function* () {
|
|
189
193
|
(0, api_1.validateConfig)(config);
|
|
190
194
|
return (0, authentication_1._fetchAccountGroups)(config.baseUrl, config.token, accountId, type);
|
|
@@ -1279,6 +1283,7 @@ function EventAPIProvider(props) {
|
|
|
1279
1283
|
deleteMediaDirectoryFiles,
|
|
1280
1284
|
updateAccountGroup,
|
|
1281
1285
|
updateVisibilityAttendee,
|
|
1286
|
+
updateAttendeeMeetingHost,
|
|
1282
1287
|
fetchAccountGroups,
|
|
1283
1288
|
fetchEventAttendeeActions,
|
|
1284
1289
|
fetchAccountBookings,
|
|
@@ -1572,6 +1577,7 @@ exports.BaseAPI = {
|
|
|
1572
1577
|
deleteMediaDirectoryFiles: event_1._deleteMediaDirectoryFiles,
|
|
1573
1578
|
updateAccountGroup: authentication_1._updateAccountGroup,
|
|
1574
1579
|
updateVisibilityAttendee: attendee_1._updateVisibilityAttendee,
|
|
1580
|
+
updateAttendeeMeetingHost: event_1._updateAttendeeMeetingHost,
|
|
1575
1581
|
fetchAccountGroups: authentication_1._fetchAccountGroups,
|
|
1576
1582
|
fetchEventAttendeeActions: event_1._fetchEventAttendeeActions,
|
|
1577
1583
|
fetchAccountBookings: event_1._fetchAccountBookings,
|
package/lib/types/base.d.ts
CHANGED
|
@@ -388,6 +388,7 @@ export type BaseAPIType = {
|
|
|
388
388
|
fetchColocatedAgenda: (basePath: string, eventId: string) => Promise<SessionFull[]>;
|
|
389
389
|
activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
390
390
|
deactivateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
391
|
+
updateAttendeeMeetingHost: (basePath: string, token: string, eventId: string, attendeeId: string, isMeetingHost: boolean) => Promise<SuccessResponse>;
|
|
391
392
|
fetchFeeds: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<FeedType>>;
|
|
392
393
|
fetchPublicFeeds: (basePath: string, accountId: string, params?: string) => Promise<ResponsePaginationType<FeedType>>;
|
|
393
394
|
fetchPublicOffer: (basePath: string, offerId: string, userId: string, access: string) => Promise<OfferServerResponse>;
|
|
@@ -713,6 +714,7 @@ export type EventAPIType = {
|
|
|
713
714
|
editColocatedEvents: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
714
715
|
deleteColocatedEvents: (id: string) => Promise<string>;
|
|
715
716
|
updateVisibilityAttendee: (attendeeId: string, visibility: string) => Promise<SuccessResponse>;
|
|
717
|
+
updateAttendeeMeetingHost: (eventId: string, attendeeId: string, isMeetingHost: boolean) => Promise<SuccessResponse>;
|
|
716
718
|
fetchMediaDirectories: (accountId: string, path: string) => Promise<Directory>;
|
|
717
719
|
fetchMediaDirectoryFiles: (accountId: string, path: string) => Promise<DirectoryFiles>;
|
|
718
720
|
fetchMediaFileDetails: (accountId: string, filepath: string) => Promise<FileDetails>;
|