@hubs101/js-api-skd-client 1.0.10439 → 1.0.10442
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
2
2
|
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
|
-
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails,
|
|
3
|
+
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, GroupServerResponse, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
|
|
4
4
|
import { Page } from "../pages/types";
|
|
5
5
|
export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
|
|
6
6
|
export declare const _fetchAccounts: (basePath: string, token: string) => Promise<Account[]>;
|
|
@@ -120,4 +120,3 @@ export declare const _updatePortfolioBlogPage: (basePath: string, token: string,
|
|
|
120
120
|
value: File;
|
|
121
121
|
}[]) => Promise<any>;
|
|
122
122
|
export declare const _deletePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string) => Promise<any>;
|
|
123
|
-
export declare const _fetchMediaDirectories: (basePath: string, token: string, accountId: string, path: string) => Promise<Directory[]>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -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._fetchMyBookings = exports._createBooking = exports._checkBooking = exports._resendBookingEmail = exports._resendTicketEmail = exports._fetchEventAttendeeActions = 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.
|
|
13
|
+
exports._deletePortfolioBlogPage = exports._updatePortfolioBlogPage = exports._createBlogPage = exports._fetchBlogPages = 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._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 = 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* () {
|
|
@@ -631,9 +631,3 @@ const _deletePortfolioBlogPage = (basePath, token, portfolioId, blogPostId) => _
|
|
|
631
631
|
return response;
|
|
632
632
|
});
|
|
633
633
|
exports._deletePortfolioBlogPage = _deletePortfolioBlogPage;
|
|
634
|
-
const _fetchMediaDirectories = (basePath, token, accountId, path) => __awaiter(void 0, void 0, void 0, function* () {
|
|
635
|
-
const base = (0, base_1.getBasePath)(basePath);
|
|
636
|
-
const { data: portfolioPages } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/directories?path=${path}`, token);
|
|
637
|
-
return (portfolioPages === null || portfolioPages === void 0 ? void 0 : portfolioPages.data) || portfolioPages;
|
|
638
|
-
});
|
|
639
|
-
exports._fetchMediaDirectories = _fetchMediaDirectories;
|
package/lib/api/event/types.d.ts
CHANGED
|
@@ -504,7 +504,6 @@ export type EventServerResponse = {
|
|
|
504
504
|
};
|
|
505
505
|
design: {
|
|
506
506
|
themeColor: string;
|
|
507
|
-
secondaryThemeColor: string;
|
|
508
507
|
backgroundColor: string;
|
|
509
508
|
headerColor: string;
|
|
510
509
|
headerFontColor: string;
|
|
@@ -914,8 +913,4 @@ export type BlogPageInput = {
|
|
|
914
913
|
meta_author?: string;
|
|
915
914
|
meta_keywords?: string;
|
|
916
915
|
};
|
|
917
|
-
export type Directory = {
|
|
918
|
-
path: string;
|
|
919
|
-
directories: string[];
|
|
920
|
-
};
|
|
921
916
|
export {};
|
package/lib/api/pages/types.d.ts
CHANGED
|
@@ -24,15 +24,15 @@ export interface PageSetting {
|
|
|
24
24
|
}
|
|
25
25
|
export type PageInput = {
|
|
26
26
|
name: string;
|
|
27
|
+
language: string[];
|
|
27
28
|
type?: string;
|
|
28
29
|
content_html?: string;
|
|
29
|
-
content_text?: string;
|
|
30
|
-
language: string[];
|
|
31
30
|
documents?: string;
|
|
32
31
|
content_structure?: string;
|
|
33
32
|
event?: string;
|
|
34
33
|
dynamic?: boolean;
|
|
35
34
|
tags?: string[];
|
|
36
35
|
setting?: PageSetting;
|
|
36
|
+
content_text?: string;
|
|
37
37
|
published?: boolean;
|
|
38
38
|
};
|
package/lib/index.js
CHANGED
|
@@ -921,10 +921,6 @@ function EventAPIProvider(props) {
|
|
|
921
921
|
(0, api_1.validateConfig)(config);
|
|
922
922
|
return (0, authentication_1._deleteColocatedEvents)(config.baseUrl, config.token, id);
|
|
923
923
|
}), [config, config.baseUrl, config.token]);
|
|
924
|
-
const fetchMediaDirectories = react_1.default.useCallback((accountId, path) => __awaiter(this, void 0, void 0, function* () {
|
|
925
|
-
(0, api_1.validateConfig)(config);
|
|
926
|
-
return (0, event_1._fetchMediaDirectories)(config.baseUrl, config.token, accountId, path);
|
|
927
|
-
}), [config, config.baseUrl, config.token]);
|
|
928
924
|
return (react_1.default.createElement(EventAPIContext_1.default.Provider, { value: {
|
|
929
925
|
config,
|
|
930
926
|
init,
|
|
@@ -1140,7 +1136,6 @@ function EventAPIProvider(props) {
|
|
|
1140
1136
|
createColocatedEvents,
|
|
1141
1137
|
editColocatedEvents,
|
|
1142
1138
|
deleteColocatedEvents,
|
|
1143
|
-
fetchMediaDirectories,
|
|
1144
1139
|
} }, props.children));
|
|
1145
1140
|
}
|
|
1146
1141
|
exports.EventAPIProvider = EventAPIProvider;
|
|
@@ -1357,6 +1352,5 @@ exports.BaseAPI = {
|
|
|
1357
1352
|
createColocatedEvents: authentication_1._createColocatedEvents,
|
|
1358
1353
|
editColocatedEvents: authentication_1._editColocatedEvents,
|
|
1359
1354
|
deleteColocatedEvents: authentication_1._deleteColocatedEvents,
|
|
1360
|
-
fetchMediaDirectories: event_1._fetchMediaDirectories,
|
|
1361
1355
|
};
|
|
1362
1356
|
exports.useAPIContext = EventAPIContext_1.useAPIContext;
|
package/lib/types/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
|
|
2
2
|
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
|
|
3
3
|
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
4
|
-
import { Account, AccountInput, Answer, BlogPage, BlogPageInput, Booking, BookingDetails,
|
|
4
|
+
import { Account, AccountInput, Answer, BlogPage, BlogPageInput, Booking, BookingDetails, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, GroupServerResponse, GroupType, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
5
5
|
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
6
6
|
import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
|
|
7
7
|
import { GenericResponseServerType, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
|
|
@@ -312,7 +312,6 @@ export type BaseAPIType = {
|
|
|
312
312
|
editColocatedEvents: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
313
313
|
deleteColocatedEvents: (basePath: string, token: string, id: string) => Promise<string>;
|
|
314
314
|
updateVisibilityAttendee: (basePath: string, token: string, attendeeId: string, visibility: string) => Promise<SuccessResponse>;
|
|
315
|
-
fetchMediaDirectories: (basePath: string, token: string, accountId: string, path: string) => Promise<Directory[]>;
|
|
316
315
|
};
|
|
317
316
|
export type EventAPIType = {
|
|
318
317
|
config: BaseAPIConfigType;
|
|
@@ -553,7 +552,6 @@ export type EventAPIType = {
|
|
|
553
552
|
editColocatedEvents: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
554
553
|
deleteColocatedEvents: (id: string) => Promise<string>;
|
|
555
554
|
updateVisibilityAttendee: (attendeeId: string, visibility: string) => Promise<SuccessResponse>;
|
|
556
|
-
fetchMediaDirectories: (accountId: string, path: string) => Promise<Directory[]>;
|
|
557
555
|
};
|
|
558
556
|
export type BaseAPIConfigType = {
|
|
559
557
|
baseUrl?: string;
|