@hubs101/js-api-skd-client 1.0.10444 → 1.0.10447

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.
@@ -1,5 +1,5 @@
1
1
  import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, SuccessResponse, UserNotification } from "./types";
2
- import { Response } from "../../types/base";
2
+ import { APIResponse } from "../../types/base";
3
3
  import { Answer } from "../event/types";
4
4
  import { AttendeeReport } from "../types";
5
5
  export declare const _fetchAttendeeProfile: (basePath: string, token: string, attendeeId: string) => Promise<AttendeeProfile>;
@@ -12,28 +12,28 @@ export declare const _updateGlobalAttendee: (basePath: string, token: string, up
12
12
  export declare const _fetchMyConnections: (basePath: string, token: string) => Promise<Attendee[]>;
13
13
  export declare const _addConnection: (basePath: string, token: string, profile: string, leadsToken: string) => Promise<void>;
14
14
  export declare const _removeConnection: (basePath: string, token: string, profile: string) => Promise<void>;
15
- export declare const _pinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<Response>;
16
- export declare const _unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<Response>;
17
- export declare const _confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<Response>;
18
- export declare const _checkIn: (basePath: string, token: string, attendeeId: string) => Promise<Response>;
19
- export declare const _checkout: (basePath: string, token: string, attendeeId: string) => Promise<Response>;
15
+ export declare const _pinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
16
+ export declare const _unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
17
+ export declare const _confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
18
+ export declare const _checkIn: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
19
+ export declare const _checkout: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
20
20
  export declare const _sendAttendeeOnboardingAnswers: (basePath: string, token: string, attendeeId: string, body: {
21
21
  [key: string]: Answer;
22
- }) => Promise<Response>;
23
- export declare const _createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<Response>;
22
+ }) => Promise<APIResponse>;
23
+ export declare const _createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<APIResponse>;
24
24
  export declare const _importProfileFromLinkedIn: (basePath: string, token: string, body: {
25
25
  event?: string | undefined;
26
26
  callback_url: string;
27
27
  }) => Promise<string>;
28
- export declare const _reportAttendeeAction: (basePath: string, token: string, requestData: AttendeeReport) => Promise<Response>;
28
+ export declare const _reportAttendeeAction: (basePath: string, token: string, requestData: AttendeeReport) => Promise<APIResponse>;
29
29
  export declare const _fetchMyNotes: (basePath: string, token: string) => Promise<Note[]>;
30
- export declare const _createNote: (basePath: string, token: string, note: Note) => Promise<Response>;
31
- export declare const _updateNote: (basePath: string, token: string, noteId: string, note: NoteUpdateInput) => Promise<Response>;
32
- export declare const _deleteNote: (basePath: string, token: string, noteId: string) => Promise<Response>;
30
+ export declare const _createNote: (basePath: string, token: string, note: Note) => Promise<APIResponse>;
31
+ export declare const _updateNote: (basePath: string, token: string, noteId: string, note: NoteUpdateInput) => Promise<APIResponse>;
32
+ export declare const _deleteNote: (basePath: string, token: string, noteId: string) => Promise<APIResponse>;
33
33
  export declare const _fetchUserNotifications: (basePath: string, token: string) => Promise<UserNotification[]>;
34
- export declare const _markUserNotificationAsRead: (basePath: string, token: string, notificationId: string) => Promise<Response>;
35
- export declare const _deleteUserNotification: (basePath: string, token: string, notificationId: string) => Promise<Response>;
36
- export declare const _deleteAllUserNotifications: (basePath: string, token: string) => Promise<Response>;
34
+ export declare const _markUserNotificationAsRead: (basePath: string, token: string, notificationId: string) => Promise<APIResponse>;
35
+ export declare const _deleteUserNotification: (basePath: string, token: string, notificationId: string) => Promise<APIResponse>;
36
+ export declare const _deleteAllUserNotifications: (basePath: string, token: string) => Promise<APIResponse>;
37
37
  export declare const _confirmAttendee: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
38
38
  export declare const _resendConfirmationEmail: (basePath: string, token: string, attendeeId: string) => Promise<any>;
39
39
  export declare const _checkAvailabilityAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
@@ -1,11 +1,12 @@
1
1
  import { LoginResponse, ResetPasswordBody, SendResetPasswordBody } from "../context/types";
2
2
  import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "./types";
3
+ import { APIResponse } from "../../types/base";
3
4
  import { GroupType } from "../event/types";
4
5
  import { ResponsePaginationType } from "../public/types";
5
6
  export declare const _login: (basePath: string, email: string, password: string) => Promise<LoginResponse>;
6
- export declare const _logout: (basePath: string, token: string) => Promise<Response>;
7
- export declare const _resetPassword: (basePath: string, body: ResetPasswordBody) => Promise<Response>;
8
- export declare const _sendNewPassword: (basePath: string, userId: string, body: SendResetPasswordBody) => Promise<Response>;
7
+ export declare const _logout: (basePath: string, token: string) => Promise<APIResponse>;
8
+ export declare const _resetPassword: (basePath: string, body: ResetPasswordBody) => Promise<APIResponse>;
9
+ export declare const _sendNewPassword: (basePath: string, userId: string, body: SendResetPasswordBody) => Promise<APIResponse>;
9
10
  export declare const _fetchPaymentAccount: (basePath: string, token: string, paymentAccountId: string) => Promise<any>;
10
11
  export declare const _fetchPaymentAccounts: (basePath: string, token: string, accountId: string) => Promise<any>;
11
12
  export declare const _createPaymentAccount: (basePath: string, token: string, data: any) => Promise<any>;
@@ -1,4 +1,5 @@
1
+ import { APIResponse } from "../../types/base";
1
2
  import { CalendarEvent } from "./types";
2
3
  export declare const _fetchCalendarEvents: (basePath: string, token: string) => Promise<CalendarEvent[]>;
3
- export declare const _blockEvent: (basePath: string, token: string, event: string, startDate: string, endDate: string) => Promise<Response>;
4
- export declare const _unblockEvent: (basePath: string, token: string, availabilityId: string) => Promise<Response>;
4
+ export declare const _blockEvent: (basePath: string, token: string, event: string, startDate: string, endDate: string) => Promise<APIResponse>;
5
+ export declare const _unblockEvent: (basePath: string, token: string, availabilityId: string) => Promise<APIResponse>;
@@ -1,3 +1,4 @@
1
+ import { APIResponse } from "../../types/base";
1
2
  export type RegisterParams = {
2
3
  email: string;
3
4
  first_name: string;
@@ -88,7 +89,7 @@ export type EventAPIContextType = {
88
89
  logout: () => Promise<void>;
89
90
  register: () => Promise<void>;
90
91
  handleRegistrationDetails: (params: RegisterParams) => void;
91
- resetPassword: (baseUrl: string, body: ResetPasswordBody) => Promise<Response>;
92
+ resetPassword: (baseUrl: string, body: ResetPasswordBody) => Promise<APIResponse>;
92
93
  init: () => Promise<void>;
93
94
  getBasePath: () => PathType;
94
95
  getBaseResourcePath: () => string;
@@ -1,6 +1,7 @@
1
1
  import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
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, FileDetails, GroupServerResponse, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
4
+ import { APIResponse } from "../../types/base";
4
5
  import { Page } from "../pages/types";
5
6
  export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
6
7
  export declare const _fetchAccounts: (basePath: string, token: string) => Promise<Account[]>;
@@ -89,13 +90,13 @@ export declare const _createStream: (basePath: string, token: string, data: Stre
89
90
  export declare const _updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<{
90
91
  data: Stream;
91
92
  }>;
92
- export declare const _deleteStream: (basePath: string, token: string, streamId: string) => Promise<Response>;
93
+ export declare const _deleteStream: (basePath: string, token: string, streamId: string) => Promise<APIResponse>;
93
94
  export declare const _fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
94
95
  export declare const _fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
95
96
  export declare const _createExhibition: (basePath: string, token: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
96
- export declare const _importExhibition: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<Response>;
97
+ export declare const _importExhibition: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<APIResponse>;
97
98
  export declare const _updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
98
- export declare const _deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<Response>;
99
+ export declare const _deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<APIResponse>;
99
100
  export declare const _fetchPortfolios: (basePath: string, token: string, accountId: string) => Promise<Portfolio[]>;
100
101
  export declare const _deletePortfolio: (basePath: string, token: string, portfolioId: string) => Promise<any>;
101
102
  export declare const _assignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<any>;
@@ -123,3 +124,5 @@ export declare const _deletePortfolioBlogPage: (basePath: string, token: string,
123
124
  export declare const _fetchMediaDirectories: (basePath: string, token: string, accountId: string, path: string) => Promise<Directory>;
124
125
  export declare const _fetchMediaDirectoryFiles: (basePath: string, token: string, accountId: string, path: string) => Promise<DirectoryFiles>;
125
126
  export declare const _fetchMediaFileDetails: (basePath: string, token: string, accountId: string, filepath: string) => Promise<FileDetails>;
127
+ export declare const _uploadImageToFolder: (basePath: string, token: string, accountId: string, folderPath: string, file: any) => Promise<APIResponse>;
128
+ export declare const _renameFolder: (basePath: string, token: string, accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
@@ -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._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
13
  exports._fetchMediaDirectories = 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
- exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = void 0;
14
+ exports._renameFolder = exports._uploadImageToFolder = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = 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* () {
@@ -634,19 +634,35 @@ const _deletePortfolioBlogPage = (basePath, token, portfolioId, blogPostId) => _
634
634
  exports._deletePortfolioBlogPage = _deletePortfolioBlogPage;
635
635
  const _fetchMediaDirectories = (basePath, token, accountId, path) => __awaiter(void 0, void 0, void 0, function* () {
636
636
  const base = (0, base_1.getBasePath)(basePath);
637
- const { data: portfolioPages } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/directories?path=${path}`, token);
638
- return (portfolioPages === null || portfolioPages === void 0 ? void 0 : portfolioPages.data) || portfolioPages;
637
+ const { data } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/directories?path=${path}`, token);
638
+ return (data === null || data === void 0 ? void 0 : data.data) || data;
639
639
  });
640
640
  exports._fetchMediaDirectories = _fetchMediaDirectories;
641
641
  const _fetchMediaDirectoryFiles = (basePath, token, accountId, path) => __awaiter(void 0, void 0, void 0, function* () {
642
642
  const base = (0, base_1.getBasePath)(basePath);
643
- const { data: portfolioPages } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/files?path=${path}`, token);
644
- return (portfolioPages === null || portfolioPages === void 0 ? void 0 : portfolioPages.data) || portfolioPages;
643
+ const { data } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/files?path=${path}`, token);
644
+ return (data === null || data === void 0 ? void 0 : data.data) || data;
645
645
  });
646
646
  exports._fetchMediaDirectoryFiles = _fetchMediaDirectoryFiles;
647
647
  const _fetchMediaFileDetails = (basePath, token, accountId, filepath) => __awaiter(void 0, void 0, void 0, function* () {
648
648
  const base = (0, base_1.getBasePath)(basePath);
649
- const { data: portfolioPages } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/filedetails?filepath=${filepath}`, token);
650
- return (portfolioPages === null || portfolioPages === void 0 ? void 0 : portfolioPages.data) || portfolioPages;
649
+ const { data } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/filedetails?filepath=${filepath}`, token);
650
+ return (data === null || data === void 0 ? void 0 : data.data) || data;
651
651
  });
652
652
  exports._fetchMediaFileDetails = _fetchMediaFileDetails;
653
+ const _uploadImageToFolder = (basePath, token, accountId, folderPath, file) => __awaiter(void 0, void 0, void 0, function* () {
654
+ const base = (0, base_1.getBasePath)(basePath);
655
+ const { data } = yield (0, api_1.postFileRequestWE)(`${base.ACCOUNTS}/media/${accountId}/file?path=${folderPath}`, file, "", token);
656
+ return (data === null || data === void 0 ? void 0 : data.data) || data;
657
+ });
658
+ exports._uploadImageToFolder = _uploadImageToFolder;
659
+ const _renameFolder = (basePath, token, accountId, path, name_old, name_new) => __awaiter(void 0, void 0, void 0, function* () {
660
+ const base = (0, base_1.getBasePath)(basePath);
661
+ const { data } = yield (0, api_1.putRequest)(`${base.ACCOUNTS}/media/${accountId}/directory`, token, {
662
+ path,
663
+ name_old,
664
+ name: name_new,
665
+ });
666
+ return (data === null || data === void 0 ? void 0 : data.data) || data;
667
+ });
668
+ exports._renameFolder = _renameFolder;
@@ -1,12 +1,13 @@
1
+ import { APIResponse } from "../../types/base";
1
2
  import { EventMeetingStatisticsItem, MeetingItem } from "./types";
2
3
  export declare const _fetchMeetings: (basePath: string, token: string) => Promise<MeetingItem[]>;
3
4
  export declare const _fetchArrangedMeetings: (basePath: string, token: string, eventId: string) => Promise<MeetingItem[]>;
4
- export declare const _fetchLocation: (basePath: string, token: string, locationId: string) => Promise<Response>;
5
+ export declare const _fetchLocation: (basePath: string, token: string, locationId: string) => Promise<APIResponse>;
5
6
  export declare const _cancelMeeting: (basePath: string, token: string, meetingId: string) => Promise<MeetingItem>;
6
7
  export declare const _declineMeeting: (basePath: string, token: string, meetingId: string) => Promise<MeetingItem>;
7
8
  export declare const _confirmMeeting: (basePath: string, token: string, meetingId: string) => Promise<MeetingItem>;
8
- export declare const _rateMeeting: (basePath: string, token: string, meetingId: string, rate: string) => Promise<Response>;
9
- export declare const _deliverMeeting: (basePath: string, token: string, meetingId: string) => Promise<Response>;
9
+ export declare const _rateMeeting: (basePath: string, token: string, meetingId: string, rate: string) => Promise<APIResponse>;
10
+ export declare const _deliverMeeting: (basePath: string, token: string, meetingId: string) => Promise<APIResponse>;
10
11
  export declare const _createMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
11
12
  export declare const _createArrangedMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
12
13
  export declare const _editMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
@@ -1,3 +1,4 @@
1
+ import { APIResponse } from "../../types/base";
1
2
  import { CommentBody, Post, PostBody, UpdatePostBody } from "./types";
2
3
  export declare const _fetchPosts: (basePath: string, token: string, eventId: string) => Promise<Post[]>;
3
4
  export declare const _fetchPostDetails: (basePath: string, token: string, postId: string) => Promise<Post>;
@@ -8,5 +9,5 @@ export declare const _unlikeComment: (basePath: string, token: string, postId: s
8
9
  export declare const _addComment: (basePath: string, token: string, postId: string, body: CommentBody) => Promise<Comment>;
9
10
  export declare const _addPost: (basePath: string, token: string, body: PostBody) => Promise<Post>;
10
11
  export declare const _updatePost: (basePath: string, token: string, postId: string, body: UpdatePostBody) => Promise<Post>;
11
- export declare const _deletePost: (basePath: string, token: string, postId: string) => Promise<Response>;
12
+ export declare const _deletePost: (basePath: string, token: string, postId: string) => Promise<APIResponse>;
12
13
  export declare const _deleteComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>;
@@ -1,20 +1,21 @@
1
+ import { APIResponse } from "../../types/base";
1
2
  import { SessionReport } from "../types";
2
3
  import { Session, SessionFull, SessionInput } from "./types";
3
4
  export declare const _fetchAgenda: (basePath: string, token: string, eventId: string) => Promise<SessionFull[]>;
4
5
  export declare const _fetchZoomSignature: (basePath: string, token: string, account: string, meetingId: string) => Promise<string[]>;
5
- export declare const _pinSession: (basePath: string, token: string, sessionId: string) => Promise<Response>;
6
- export declare const _unpinSession: (basePath: string, token: string, sessionId: string) => Promise<Response>;
6
+ export declare const _pinSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
7
+ export declare const _unpinSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
7
8
  export declare const _rateSession: (basePath: string, token: string, sessionId: string, body: {
8
9
  name: number;
9
- }) => Promise<Response>;
10
- export declare const _reserveSeat: (basePath: string, token: string, sessionId: string) => Promise<Response>;
11
- export declare const _removeSeat: (basePath: string, token: string, sessionId: string) => Promise<Response>;
12
- export declare const _watchSession: (basePath: string, token: string, sessionId: string) => Promise<Response>;
10
+ }) => Promise<APIResponse>;
11
+ export declare const _reserveSeat: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
12
+ export declare const _removeSeat: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
13
+ export declare const _watchSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
13
14
  export declare const _postSessionComment: (basePath: string, token: string, sessionId: string, message: string) => Promise<Session>;
14
15
  export declare const _refetchSessionDiscussion: (basePath: string, token: string, sessionId: string) => Promise<Session>;
15
- export declare const _reportSessionAction: (basePath: string, token: string, sessionId: string, requestData: SessionReport) => Promise<Response>;
16
+ export declare const _reportSessionAction: (basePath: string, token: string, sessionId: string, requestData: SessionReport) => Promise<APIResponse>;
16
17
  export declare const _fetchSelectedEventSessions: (basePath: string, token: string, eventId: string) => Promise<Session[]>;
17
18
  export declare const _createSession: (basePath: string, token: string, data: SessionInput, files: any) => Promise<Session>;
18
19
  export declare const _updateSession: (basePath: string, token: string, sessionId: string, data: SessionInput, files: any) => Promise<Session>;
19
- export declare const _deleteSession: (basePath: string, token: string, sessionId: string) => Promise<Response>;
20
- export declare const _promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<Response>;
20
+ export declare const _deleteSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
21
+ export declare const _promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<APIResponse>;
package/lib/index.js CHANGED
@@ -933,6 +933,14 @@ function EventAPIProvider(props) {
933
933
  (0, api_1.validateConfig)(config);
934
934
  return (0, event_1._fetchMediaFileDetails)(config.baseUrl, config.token, accountId, path);
935
935
  }), [config, config.baseUrl, config.token]);
936
+ const uploadImageToFolder = react_1.default.useCallback((accountId, folderPath, file) => __awaiter(this, void 0, void 0, function* () {
937
+ (0, api_1.validateConfig)(config);
938
+ return (0, event_1._uploadImageToFolder)(config.baseUrl, config.token, accountId, folderPath, file);
939
+ }), [config, config.baseUrl, config.token]);
940
+ const renameFolder = react_1.default.useCallback((accountId, path, name_old, name_new) => __awaiter(this, void 0, void 0, function* () {
941
+ (0, api_1.validateConfig)(config);
942
+ return (0, event_1._renameFolder)(config.baseUrl, config.token, accountId, path, name_old, name_new);
943
+ }), [config, config.baseUrl, config.token]);
936
944
  return (react_1.default.createElement(EventAPIContext_1.default.Provider, { value: {
937
945
  config,
938
946
  init,
@@ -1151,6 +1159,8 @@ function EventAPIProvider(props) {
1151
1159
  fetchMediaDirectories,
1152
1160
  fetchMediaDirectoryFiles,
1153
1161
  fetchMediaFileDetails,
1162
+ uploadImageToFolder,
1163
+ renameFolder,
1154
1164
  } }, props.children));
1155
1165
  }
1156
1166
  exports.EventAPIProvider = EventAPIProvider;
@@ -1370,5 +1380,7 @@ exports.BaseAPI = {
1370
1380
  fetchMediaDirectories: event_1._fetchMediaDirectories,
1371
1381
  fetchMediaDirectoryFiles: event_1._fetchMediaDirectoryFiles,
1372
1382
  fetchMediaFileDetails: event_1._fetchMediaFileDetails,
1383
+ uploadImageToFolder: event_1._uploadImageToFolder,
1384
+ renameFolder: event_1._renameFolder,
1373
1385
  };
1374
1386
  exports.useAPIContext = EventAPIContext_1.useAPIContext;
@@ -191,49 +191,49 @@ export type BaseAPIType = {
191
191
  fetchMyConnections: (basePath: string, token: string) => Promise<Attendee[]>;
192
192
  addConnection: (basePath: string, token: string, profile: string, leadsToken: string) => Promise<void>;
193
193
  removeConnection: (basePath: string, token: string, profile: string) => Promise<void>;
194
- pinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<Response>;
195
- unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<Response>;
196
- confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<Response>;
197
- checkIn: (basePath: string, token: string, attendeeId: string) => Promise<Response>;
198
- checkout: (basePath: string, token: string, attendeeId: string) => Promise<Response>;
194
+ pinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
195
+ unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
196
+ confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
197
+ checkIn: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
198
+ checkout: (basePath: string, token: string, attendeeId: string) => Promise<APIResponse>;
199
199
  sendAttendeeOnboardingAnswers: (basePath: string, token: string, attendeeId: string, body: {
200
200
  [key: string]: Answer;
201
- }) => Promise<Response>;
202
- createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<Response>;
201
+ }) => Promise<APIResponse>;
202
+ createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<APIResponse>;
203
203
  importProfileFromLinkedIn: (basePath: string, token: string, body: {
204
204
  event?: string | undefined;
205
205
  callback_url: string;
206
206
  }) => Promise<string>;
207
- reportAttendeeAction: (basePath: string, token: string, requestData: AttendeeReport) => Promise<Response>;
207
+ reportAttendeeAction: (basePath: string, token: string, requestData: AttendeeReport) => Promise<APIResponse>;
208
208
  fetchMyNotes: (basePath: string, token: string) => Promise<Note[]>;
209
- createNote: (basePath: string, token: string, note: Note) => Promise<Response>;
210
- updateNote: (basePath: string, token: string, noteId: string, note: Note) => Promise<Response>;
211
- deleteNote: (basePath: string, token: string, noteId: string) => Promise<Response>;
209
+ createNote: (basePath: string, token: string, note: Note) => Promise<APIResponse>;
210
+ updateNote: (basePath: string, token: string, noteId: string, note: Note) => Promise<APIResponse>;
211
+ deleteNote: (basePath: string, token: string, noteId: string) => Promise<APIResponse>;
212
212
  fetchUserNotifications: (basePath: string, token: string) => Promise<UserNotification[]>;
213
- markUserNotificationAsRead: (basePath: string, token: string, notificationId: string) => Promise<Response>;
214
- deleteUserNotification: (basePath: string, token: string, notificationId: string) => Promise<Response>;
215
- deleteAllUserNotifications: (basePath: string, token: string) => Promise<Response>;
213
+ markUserNotificationAsRead: (basePath: string, token: string, notificationId: string) => Promise<APIResponse>;
214
+ deleteUserNotification: (basePath: string, token: string, notificationId: string) => Promise<APIResponse>;
215
+ deleteAllUserNotifications: (basePath: string, token: string) => Promise<APIResponse>;
216
216
  fetchAgenda: (basePath: string, token: string, eventId: string) => Promise<SessionFull[]>;
217
217
  fetchZoomSignature: (basePath: string, token: string, account: string, zoomSdkKey: string) => Promise<string[]>;
218
- pinSession: (basePath: string, token: string, sessionId: string) => Promise<Response>;
219
- unpinSession: (basePath: string, token: string, sessionId: string) => Promise<Response>;
218
+ pinSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
219
+ unpinSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
220
220
  rateSession: (basePath: string, token: string, sessionId: string, body: {
221
221
  name: number;
222
- }) => Promise<Response>;
223
- reserveSeat: (basePath: string, token: string, sessionId: string) => Promise<Response>;
224
- removeSeat: (basePath: string, token: string, sessionId: string) => Promise<Response>;
225
- watchSession: (basePath: string, token: string, sessionId: string) => Promise<Response>;
222
+ }) => Promise<APIResponse>;
223
+ reserveSeat: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
224
+ removeSeat: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
225
+ watchSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
226
226
  postSessionComment: (basePath: string, token: string, sessionId: string, message: string) => Promise<Session>;
227
227
  refetchSessionDiscussion: (basePath: string, token: string, sessionId: string) => Promise<Session>;
228
- reportSessionAction: (basePath: string, token: string, sessionId: string, requestData: SessionReport) => Promise<Response>;
228
+ reportSessionAction: (basePath: string, token: string, sessionId: string, requestData: SessionReport) => Promise<APIResponse>;
229
229
  fetchMeetings: (basePath: string, token: string) => Promise<MeetingItem[]>;
230
230
  fetchArrangedMeetings: (basePath: string, token: string, eventId: string) => Promise<MeetingItem[]>;
231
- fetchLocation: (basePath: string, token: string, locationId: string) => Promise<Response>;
231
+ fetchLocation: (basePath: string, token: string, locationId: string) => Promise<APIResponse>;
232
232
  cancelMeeting: (basePath: string, token: string, meetingId: string) => Promise<MeetingItem>;
233
233
  declineMeeting: (basePath: string, token: string, meetingId: string) => Promise<MeetingItem>;
234
234
  confirmMeeting: (basePath: string, token: string, meetingId: string) => Promise<MeetingItem>;
235
- rateMeeting: (basePath: string, token: string, meetingId: string, rate: string) => Promise<Response>;
236
- deliverMeeting: (basePath: string, token: string, meetingId: string) => Promise<Response>;
235
+ rateMeeting: (basePath: string, token: string, meetingId: string, rate: string) => Promise<APIResponse>;
236
+ deliverMeeting: (basePath: string, token: string, meetingId: string) => Promise<APIResponse>;
237
237
  createMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
238
238
  createArrangedMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
239
239
  fetchPosts: (basePath: string, token: string, eventId: string) => Promise<Post[]>;
@@ -245,46 +245,46 @@ export type BaseAPIType = {
245
245
  addComment: (basePath: string, token: string, postId: string, body: CommentBody) => Promise<Comment>;
246
246
  addPost: (basePath: string, token: string, body: PostBody) => Promise<Post>;
247
247
  updatePost: (basePath: string, token: string, postId: string, body: UpdatePostBody) => Promise<Post>;
248
- deletePost: (basePath: string, token: string, postId: string) => Promise<Response>;
248
+ deletePost: (basePath: string, token: string, postId: string) => Promise<APIResponse>;
249
249
  deleteComment: (basePath: string, token: string, postId: string, commentId: string) => Promise<Post>;
250
250
  fetchPages: (basePath: string, token: string, eventId: string, nbPage?: number, params?: string) => Promise<Page[]>;
251
251
  fetchEventTracks: (basePath: string, token: string, eventId: string) => Promise<Track[]>;
252
252
  fetchCalendarEvents: (basePath: string, token: string) => Promise<CalendarEvent[]>;
253
- blockEvent: (basePath: string, token: string, event: string, startDate: string, endDate: string) => Promise<Response>;
254
- unblockEvent: (basePath: string, token: string, availabilityId: string) => Promise<Response>;
253
+ blockEvent: (basePath: string, token: string, event: string, startDate: string, endDate: string) => Promise<APIResponse>;
254
+ unblockEvent: (basePath: string, token: string, availabilityId: string) => Promise<APIResponse>;
255
255
  fetchAccounts: (basePath: string, token: string) => Promise<Account[]>;
256
256
  fetchEventsForAccount: (basePath: string, token: string, accountId: string) => Promise<Event[]>;
257
257
  login: (basePath: string, email: string, password: string) => Promise<LoginResponse>;
258
- resetPassword: (basePath: string, body: ResetPasswordBody) => Promise<Response>;
259
- sendNewPassword: (basePath: string, userId: string, body: SendResetPasswordBody) => Promise<Response>;
258
+ resetPassword: (basePath: string, body: ResetPasswordBody) => Promise<APIResponse>;
259
+ sendNewPassword: (basePath: string, userId: string, body: SendResetPasswordBody) => Promise<APIResponse>;
260
260
  fetchAllPublicEvents: (basePath: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<PublicEventItem>>;
261
261
  fetchPublicExhibitions: (basePath: string, eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Exhibition>>;
262
262
  fetchPublicAgenda: (basePath: string, eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Session>>;
263
- logout: (basePath: string, token: string) => Promise<Response>;
263
+ logout: (basePath: string, token: string) => Promise<APIResponse>;
264
264
  fetchZoomContent: (basePath: string, token: string, body: ZoomParams) => Promise<string>;
265
265
  fetchYoutubeContent: (basePath: string, token: string, reference: string) => Promise<string>;
266
266
  createStream: (basePath: string, token: string, data: StreamInput) => Promise<Stream>;
267
267
  updateStream: (basePath: string, token: string, streamId: string, data: StreamInput) => Promise<{
268
268
  data: Stream;
269
269
  }>;
270
- deleteStream: (basePath: string, token: string, streamId: string) => Promise<Response>;
270
+ deleteStream: (basePath: string, token: string, streamId: string) => Promise<APIResponse>;
271
271
  fetchAllExhibitions: (basePath: string, token: string, eventId: string) => Promise<Exhibition[]>;
272
272
  fetchMyExhibitions: (basePath: string, token: string) => Promise<Exhibition[]>;
273
273
  createExhibition: (basePath: string, token: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
274
- importExhibition: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<Response>;
274
+ importExhibition: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<APIResponse>;
275
275
  updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
276
- deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<Response>;
276
+ deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<APIResponse>;
277
277
  fetchSelectedEventSessions: (basePath: string, token: string, eventId: string) => Promise<Session[]>;
278
278
  createSession: (basePath: string, token: string, data: SessionInput, files: any) => Promise<Session>;
279
279
  updateSession: (basePath: string, token: string, sessionId: string, data: SessionInput, files: any) => Promise<Session>;
280
- deleteSession: (basePath: string, token: string, sessionId: string) => Promise<Response>;
281
- promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<Response>;
280
+ deleteSession: (basePath: string, token: string, sessionId: string) => Promise<APIResponse>;
281
+ promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<APIResponse>;
282
282
  editMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
283
283
  fetchEventMeetingsStatistics: (basePath: string, token: string, eventId: string) => Promise<EventMeetingStatisticsItem[]>;
284
284
  fetchPortfolios: (basePath: string, token: string, accountId: string) => Promise<Portfolio[]>;
285
- deletePortfolio: (basePath: string, token: string, portfolioId: string) => Promise<Response>;
286
- assignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<Response>;
287
- unassignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<Response>;
285
+ deletePortfolio: (basePath: string, token: string, portfolioId: string) => Promise<APIResponse>;
286
+ assignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<APIResponse>;
287
+ unassignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<APIResponse>;
288
288
  createPortfolio: (basePath: string, token: string, data: PortfolioInput, files: {
289
289
  name: string;
290
290
  value: File;
@@ -306,7 +306,7 @@ export type BaseAPIType = {
306
306
  name: string;
307
307
  value: File;
308
308
  }[]) => Promise<BlogPage>;
309
- deletePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string) => Promise<Response>;
309
+ deletePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string) => Promise<APIResponse>;
310
310
  fetchColocatedEvents: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
311
311
  createColocatedEvents: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
312
312
  editColocatedEvents: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
@@ -315,6 +315,8 @@ export type BaseAPIType = {
315
315
  fetchMediaDirectories: (basePath: string, token: string, accountId: string, path: string) => Promise<Directory>;
316
316
  fetchMediaDirectoryFiles: (basePath: string, token: string, accountId: string, path: string) => Promise<DirectoryFiles>;
317
317
  fetchMediaFileDetails: (basePath: string, token: string, accountId: string, filepath: string) => Promise<FileDetails>;
318
+ uploadImageToFolder: (basePath: string, token: string, accountId: string, folderPath: string, file: any) => Promise<APIResponse>;
319
+ renameFolder: (basePath: string, token: string, accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
318
320
  };
319
321
  export type EventAPIType = {
320
322
  config: BaseAPIConfigType;
@@ -437,48 +439,48 @@ export type EventAPIType = {
437
439
  fetchMyConnections: () => Promise<Attendee[]>;
438
440
  addConnection: (profile: string, leadsToken: string) => Promise<void>;
439
441
  removeConnection: (profile: string) => Promise<void>;
440
- pinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<Response>;
441
- unpinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<Response>;
442
- confirmMyEventInvitation: (attendeeId: string) => Promise<Response>;
443
- checkIn: (attendeeId: string) => Promise<Response>;
444
- checkout: (attendeeId: string) => Promise<Response>;
442
+ pinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
443
+ unpinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
444
+ confirmMyEventInvitation: (attendeeId: string) => Promise<APIResponse>;
445
+ checkIn: (attendeeId: string) => Promise<APIResponse>;
446
+ checkout: (attendeeId: string) => Promise<APIResponse>;
445
447
  sendAttendeeOnboardingAnswers: (attendeeId: string, body: {
446
448
  [key: string]: Answer;
447
- }) => Promise<Response>;
448
- createAttendee: (eventId: string, type: string, body: Attendee) => Promise<Response>;
449
+ }) => Promise<APIResponse>;
450
+ createAttendee: (eventId: string, type: string, body: Attendee) => Promise<APIResponse>;
449
451
  importProfileFromLinkedIn: (body: {
450
452
  event?: string | undefined;
451
453
  callback_url: string;
452
454
  }) => Promise<string>;
453
- reportAttendeeAction: (requestData: AttendeeReport) => Promise<Response>;
455
+ reportAttendeeAction: (requestData: AttendeeReport) => Promise<APIResponse>;
454
456
  fetchMyNotes: () => Promise<Note[]>;
455
- createNote: (note: Note) => Promise<Response>;
456
- updateNote: (noteId: string, note: NoteUpdateInput) => Promise<Response>;
457
- deleteNote: (noteId: string) => Promise<Response>;
457
+ createNote: (note: Note) => Promise<APIResponse>;
458
+ updateNote: (noteId: string, note: NoteUpdateInput) => Promise<APIResponse>;
459
+ deleteNote: (noteId: string) => Promise<APIResponse>;
458
460
  fetchUserNotifications: () => Promise<UserNotification[]>;
459
- markUserNotificationAsRead: (notificationId: string) => Promise<Response>;
460
- deleteUserNotification: (notificationId: string) => Promise<Response>;
461
- deleteAllUserNotifications: () => Promise<Response>;
461
+ markUserNotificationAsRead: (notificationId: string) => Promise<APIResponse>;
462
+ deleteUserNotification: (notificationId: string) => Promise<APIResponse>;
463
+ deleteAllUserNotifications: () => Promise<APIResponse>;
462
464
  fetchAgenda: (eventId: string) => Promise<Session[]>;
463
- pinSession: (sessionId: string) => Promise<Response>;
464
- unpinSession: (sessionId: string) => Promise<Response>;
465
+ pinSession: (sessionId: string) => Promise<APIResponse>;
466
+ unpinSession: (sessionId: string) => Promise<APIResponse>;
465
467
  rateSession: (sessionId: string, body: {
466
468
  name: number;
467
- }) => Promise<Response>;
468
- reserveSeat: (sessionId: string) => Promise<Response>;
469
- removeSeat: (sessionId: string) => Promise<Response>;
470
- watchSession: (sessionId: string) => Promise<Response>;
469
+ }) => Promise<APIResponse>;
470
+ reserveSeat: (sessionId: string) => Promise<APIResponse>;
471
+ removeSeat: (sessionId: string) => Promise<APIResponse>;
472
+ watchSession: (sessionId: string) => Promise<APIResponse>;
471
473
  postSessionComment: (sessionId: string, message: string) => Promise<Session>;
472
474
  refetchSessionDiscussion: (sessionId: string) => Promise<Session>;
473
- reportSessionAction: (sessionId: string, requestData: SessionReport) => Promise<Response>;
475
+ reportSessionAction: (sessionId: string, requestData: SessionReport) => Promise<APIResponse>;
474
476
  fetchMeetings: () => Promise<MeetingItem[]>;
475
477
  fetchArrangedMeetings: (eventId: string) => Promise<MeetingItem[]>;
476
- fetchLocation: (locationId: string) => Promise<Response>;
478
+ fetchLocation: (locationId: string) => Promise<APIResponse>;
477
479
  cancelMeeting: (meetingId: string) => Promise<MeetingItem>;
478
480
  declineMeeting: (meetingId: string) => Promise<MeetingItem>;
479
481
  confirmMeeting: (meetingId: string) => Promise<MeetingItem>;
480
- rateMeeting: (meetingId: string, rate: string) => Promise<Response>;
481
- deliverMeeting: (meetingId: string) => Promise<Response>;
482
+ rateMeeting: (meetingId: string, rate: string) => Promise<APIResponse>;
483
+ deliverMeeting: (meetingId: string) => Promise<APIResponse>;
482
484
  createMeeting: (body: MeetingItem) => Promise<MeetingItem>;
483
485
  createArrangedMeeting: (body: MeetingItem) => Promise<MeetingItem>;
484
486
  fetchZoomSignature: (account: string, meeting: string) => Promise<string[]>;
@@ -491,16 +493,16 @@ export type EventAPIType = {
491
493
  addComment: (postId: string, body: CommentBody) => Promise<Comment>;
492
494
  addPost: (body: PostBody) => Promise<Post>;
493
495
  updatePost: (postId: string, body: UpdatePostBody) => Promise<Post>;
494
- deletePost: (postId: string) => Promise<Response>;
496
+ deletePost: (postId: string) => Promise<APIResponse>;
495
497
  deleteComment: (postId: string, commentId: string) => Promise<Post>;
496
498
  fetchPages: (eventId: string, nbPage?: number, params?: string) => Promise<Page[]>;
497
499
  fetchEventTracks: (eventId: string) => Promise<Track[]>;
498
500
  fetchCalendarEvents: () => Promise<CalendarEvent[]>;
499
- blockEvent: (event: string, startDate: string, endDate: string) => Promise<Response>;
500
- unblockEvent: (availabilityId: string) => Promise<Response>;
501
+ blockEvent: (event: string, startDate: string, endDate: string) => Promise<APIResponse>;
502
+ unblockEvent: (availabilityId: string) => Promise<APIResponse>;
501
503
  fetchAccounts: () => Promise<Account[]>;
502
504
  fetchEventsForAccount: (accountId: string) => Promise<UserRegistrationsEvent[]>;
503
- logout: () => Promise<Response>;
505
+ logout: () => Promise<APIResponse>;
504
506
  fetchAllPublicEvents: (nbPage?: number, params?: string) => Promise<ResponsePaginationType<PublicEventItem>>;
505
507
  fetchPublicExhibitions: (eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Exhibition>>;
506
508
  fetchPublicAgenda: (eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Session>>;
@@ -510,24 +512,24 @@ export type EventAPIType = {
510
512
  updateStream: (streamId: string, data: StreamInput) => Promise<{
511
513
  data: Stream;
512
514
  }>;
513
- deleteStream: (streamId: string) => Promise<Response>;
515
+ deleteStream: (streamId: string) => Promise<APIResponse>;
514
516
  fetchAllExhibitions: (eventId: string) => Promise<Exhibition[]>;
515
517
  fetchMyExhibitions: () => Promise<Exhibition[]>;
516
518
  createExhibition: (files: any, data: ExhibitionInput) => Promise<Exhibition>;
517
- importExhibition: (eventId: string, eventSource: string) => Promise<Response>;
519
+ importExhibition: (eventId: string, eventSource: string) => Promise<APIResponse>;
518
520
  updateExhibition: (exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
519
- deleteExhibition: (exhibitionId: string) => Promise<Response>;
521
+ deleteExhibition: (exhibitionId: string) => Promise<APIResponse>;
520
522
  fetchSelectedEventSessions: (eventId: string) => Promise<Session[]>;
521
523
  createSession: (data: SessionInput, files: any) => Promise<Session>;
522
524
  updateSession: (sessionId: string, data: SessionInput, files: any) => Promise<Session>;
523
- deleteSession: (sessionId: string) => Promise<Response>;
524
- promoteSession: (sessionId: string, promotionDate: string) => Promise<Response>;
525
+ deleteSession: (sessionId: string) => Promise<APIResponse>;
526
+ promoteSession: (sessionId: string, promotionDate: string) => Promise<APIResponse>;
525
527
  editMeeting: (body: MeetingItem) => Promise<MeetingItem>;
526
528
  fetchEventMeetingsStatistics: (eventId: string) => Promise<EventMeetingStatisticsItem[]>;
527
529
  fetchPortfolios: (accountId: string) => Promise<Portfolio[]>;
528
- deletePortfolio: (portfolioId: string) => Promise<Response>;
529
- assignPortfolio: (eventId: string, portfolioId: string) => Promise<Response>;
530
- unassignPortfolio: (eventId: string, portfolioId: string) => Promise<Response>;
530
+ deletePortfolio: (portfolioId: string) => Promise<APIResponse>;
531
+ assignPortfolio: (eventId: string, portfolioId: string) => Promise<APIResponse>;
532
+ unassignPortfolio: (eventId: string, portfolioId: string) => Promise<APIResponse>;
531
533
  createPortfolio: (data: PortfolioInput, files: {
532
534
  name: string;
533
535
  value: File;
@@ -549,7 +551,7 @@ export type EventAPIType = {
549
551
  name: string;
550
552
  value: File;
551
553
  }[]) => Promise<BlogPage>;
552
- deletePortfolioBlogPage: (portfolioId: string, blogPostId: string) => Promise<Response>;
554
+ deletePortfolioBlogPage: (portfolioId: string, blogPostId: string) => Promise<APIResponse>;
553
555
  fetchColocatedEvents: (accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
554
556
  createColocatedEvents: (accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
555
557
  editColocatedEvents: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
@@ -558,12 +560,14 @@ export type EventAPIType = {
558
560
  fetchMediaDirectories: (accountId: string, path: string) => Promise<Directory>;
559
561
  fetchMediaDirectoryFiles: (accountId: string, path: string) => Promise<DirectoryFiles>;
560
562
  fetchMediaFileDetails: (accountId: string, filepath: string) => Promise<FileDetails>;
563
+ uploadImageToFolder: (accountId: string, folderPath: string, file: any) => Promise<APIResponse>;
564
+ renameFolder: (accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
561
565
  };
562
566
  export type BaseAPIConfigType = {
563
567
  baseUrl?: string;
564
568
  token?: string;
565
569
  };
566
- export type Response = {
570
+ export type APIResponse = {
567
571
  status?: string | number;
568
572
  error?: string;
569
573
  message?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10444",
3
+ "version": "1.0.10447",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",