@hubs101/js-api-skd-client 1.0.10548 → 1.0.10549
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 +10 -1
- 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
|
@@ -142,3 +142,4 @@ export declare const _importTickets: (basePath: string, token: string, eventId:
|
|
|
142
142
|
export declare const _fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
|
|
143
143
|
export declare const _activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
144
144
|
export declare const _deactivateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
145
|
+
export declare const _fetchAccountDocuments: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<DocumentType>>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports._resendTicketEmail = 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 = void 0;
|
|
13
13
|
exports._fetchPortfolioEvents = exports._fetchPortfolioDetails = exports._updatePortfolio = exports._createPortfolio = exports._unassignPortfolio = exports._assignPortfolio = exports._deletePortfolio = exports._fetchPortfolios = 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._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 = void 0;
|
|
14
|
-
exports._deactivateDataManagers = exports._activateDataManagers = exports._fetchPublicEventAdvertisement = exports._importTickets = exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._renameFolder = exports._uploadImageToFolder = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = exports._updatePortfolioBlogPage = exports._createBlogPage = exports._fetchBlogPages = void 0;
|
|
14
|
+
exports._fetchAccountDocuments = exports._deactivateDataManagers = exports._activateDataManagers = exports._fetchPublicEventAdvertisement = exports._importTickets = exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._renameFolder = exports._uploadImageToFolder = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = exports._updatePortfolioBlogPage = exports._createBlogPage = exports._fetchBlogPages = void 0;
|
|
15
15
|
const api_1 = require("../../utils/api");
|
|
16
16
|
const base_1 = require("../../utils/base");
|
|
17
17
|
const _fetchEventRegistrations = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -760,3 +760,12 @@ const _deactivateDataManagers = (basePath, token, eventId, attendeeIds) => __awa
|
|
|
760
760
|
return ((_h = attendees === null || attendees === void 0 ? void 0 : attendees.data) === null || _h === void 0 ? void 0 : _h.data) || (attendees === null || attendees === void 0 ? void 0 : attendees.data) || attendees;
|
|
761
761
|
});
|
|
762
762
|
exports._deactivateDataManagers = _deactivateDataManagers;
|
|
763
|
+
const _fetchAccountDocuments = (basePath, token, accountId, params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
764
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
765
|
+
const url = params
|
|
766
|
+
? `${base.ACCOUNTS}/${accountId}/documents?${params}`
|
|
767
|
+
: `${base.ACCOUNTS}/${accountId}/documents`;
|
|
768
|
+
const response = yield (0, api_1.getRequest)(url, token);
|
|
769
|
+
return (response === null || response === void 0 ? void 0 : response.data) || response;
|
|
770
|
+
});
|
|
771
|
+
exports._fetchAccountDocuments = _fetchAccountDocuments;
|
package/lib/index.js
CHANGED
|
@@ -185,6 +185,10 @@ function EventAPIProvider(props) {
|
|
|
185
185
|
(0, api_1.validateConfig)(config);
|
|
186
186
|
return (0, event_1._fetchAccountBookings)(config.baseUrl, config.token, accountId, params);
|
|
187
187
|
}), [config, config.baseUrl, config.token]);
|
|
188
|
+
const fetchAccountDocuments = (0, react_1.useCallback)((accountId, params) => __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
(0, api_1.validateConfig)(config);
|
|
190
|
+
return (0, event_1._fetchAccountDocuments)(config.baseUrl, config.token, accountId, params);
|
|
191
|
+
}), [config, config.baseUrl, config.token]);
|
|
188
192
|
const resendTicketEmail = react_1.default.useCallback((ticketId) => __awaiter(this, void 0, void 0, function* () {
|
|
189
193
|
(0, api_1.validateConfig)(config);
|
|
190
194
|
return (0, event_1._resendTicketEmail)(config.baseUrl, config.token, ticketId);
|
|
@@ -1061,6 +1065,7 @@ function EventAPIProvider(props) {
|
|
|
1061
1065
|
fetchAccountGroups,
|
|
1062
1066
|
fetchEventAttendeeActions,
|
|
1063
1067
|
fetchAccountBookings,
|
|
1068
|
+
fetchAccountDocuments,
|
|
1064
1069
|
resendBookingEmail,
|
|
1065
1070
|
resendTicketEmail,
|
|
1066
1071
|
postTicketDetails,
|
|
@@ -1303,6 +1308,7 @@ exports.BaseAPI = {
|
|
|
1303
1308
|
fetchAccountGroups: authentication_1._fetchAccountGroups,
|
|
1304
1309
|
fetchEventAttendeeActions: event_1._fetchEventAttendeeActions,
|
|
1305
1310
|
fetchAccountBookings: event_1._fetchAccountBookings,
|
|
1311
|
+
fetchAccountDocuments: event_1._fetchAccountDocuments,
|
|
1306
1312
|
resendTicketEmail: event_1._resendTicketEmail,
|
|
1307
1313
|
resendBookingEmail: event_1._resendBookingEmail,
|
|
1308
1314
|
postTicketDetails: event_1._postTicketDetails,
|
package/lib/types/base.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export type BaseAPIType = {
|
|
|
100
100
|
fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
|
|
101
101
|
fetchEventAttendeeActions: (basePath: string, token: string, eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
|
|
102
102
|
fetchAccountBookings: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
|
|
103
|
+
fetchAccountDocuments: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<DocumentType>>;
|
|
103
104
|
resendTicketEmail: (basePath: string, token: string, ticketId: string) => Promise<any>;
|
|
104
105
|
resendBookingEmail: (basePath: string, token: string, bookingId: string) => Promise<any>;
|
|
105
106
|
postTicketDetails: (basePath: string, eventId: string, profileId: string, access: string, body: any) => Promise<any>;
|
|
@@ -375,6 +376,7 @@ export type EventAPIType = {
|
|
|
375
376
|
fetchAccountGroups: (accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
|
|
376
377
|
fetchEventAttendeeActions: (eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
|
|
377
378
|
fetchAccountBookings: (accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
|
|
379
|
+
fetchAccountDocuments: (accountId: string, params?: string) => Promise<ResponsePaginationType<DocumentType>>;
|
|
378
380
|
resendTicketEmail: (ticketId: string) => Promise<any>;
|
|
379
381
|
resendBookingEmail: (bookingId: string) => Promise<any>;
|
|
380
382
|
postTicketDetails: (eventId: string, profileId: string, access: string, body: any) => Promise<ResponsePaginationType<BookingDetails>>;
|