@hubs101/js-api-skd-client 1.0.10444 → 1.0.10446
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/attendee/index.d.ts +15 -15
- package/lib/api/authentication/index.d.ts +4 -3
- package/lib/api/calendar/index.d.ts +3 -2
- package/lib/api/context/types.d.ts +2 -1
- package/lib/api/event/index.d.ts +4 -3
- package/lib/api/meetings/index.d.ts +4 -3
- package/lib/api/posts/index.d.ts +2 -1
- package/lib/api/sessions/index.d.ts +10 -9
- package/lib/types/base.d.ts +77 -77
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, SuccessResponse, UserNotification } from "./types";
|
|
2
|
-
import {
|
|
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<
|
|
16
|
-
export declare const _unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<
|
|
17
|
-
export declare const _confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<
|
|
18
|
-
export declare const _checkIn: (basePath: string, token: string, attendeeId: string) => Promise<
|
|
19
|
-
export declare const _checkout: (basePath: string, token: string, attendeeId: string) => Promise<
|
|
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<
|
|
23
|
-
export declare const _createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<
|
|
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<
|
|
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<
|
|
31
|
-
export declare const _updateNote: (basePath: string, token: string, noteId: string, note: NoteUpdateInput) => Promise<
|
|
32
|
-
export declare const _deleteNote: (basePath: string, token: string, noteId: string) => Promise<
|
|
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<
|
|
35
|
-
export declare const _deleteUserNotification: (basePath: string, token: string, notificationId: string) => Promise<
|
|
36
|
-
export declare const _deleteAllUserNotifications: (basePath: string, token: string) => Promise<
|
|
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<
|
|
7
|
-
export declare const _resetPassword: (basePath: string, body: ResetPasswordBody) => Promise<
|
|
8
|
-
export declare const _sendNewPassword: (basePath: string, userId: string, body: SendResetPasswordBody) => Promise<
|
|
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<
|
|
4
|
-
export declare const _unblockEvent: (basePath: string, token: string, availabilityId: string) => Promise<
|
|
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<
|
|
92
|
+
resetPassword: (baseUrl: string, body: ResetPasswordBody) => Promise<APIResponse>;
|
|
92
93
|
init: () => Promise<void>;
|
|
93
94
|
getBasePath: () => PathType;
|
|
94
95
|
getBaseResourcePath: () => string;
|
package/lib/api/event/index.d.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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<
|
|
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>;
|
|
@@ -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<
|
|
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<
|
|
9
|
-
export declare const _deliverMeeting: (basePath: string, token: string, meetingId: string) => Promise<
|
|
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>;
|
package/lib/api/posts/index.d.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
6
|
-
export declare const _unpinSession: (basePath: string, token: string, sessionId: string) => Promise<
|
|
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<
|
|
10
|
-
export declare const _reserveSeat: (basePath: string, token: string, sessionId: string) => Promise<
|
|
11
|
-
export declare const _removeSeat: (basePath: string, token: string, sessionId: string) => Promise<
|
|
12
|
-
export declare const _watchSession: (basePath: string, token: string, sessionId: string) => Promise<
|
|
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<
|
|
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<
|
|
20
|
-
export declare const _promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<
|
|
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/types/base.d.ts
CHANGED
|
@@ -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<
|
|
195
|
-
unpinAttendee: (basePath: string, token: string, attendeeId: string, pinAttendeeId: string) => Promise<
|
|
196
|
-
confirmMyEventInvitation: (basePath: string, token: string, attendeeId: string) => Promise<
|
|
197
|
-
checkIn: (basePath: string, token: string, attendeeId: string) => Promise<
|
|
198
|
-
checkout: (basePath: string, token: string, attendeeId: string) => Promise<
|
|
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<
|
|
202
|
-
createAttendee: (basePath: string, token: string, eventId: string, type: string, body: Attendee) => Promise<
|
|
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<
|
|
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<
|
|
210
|
-
updateNote: (basePath: string, token: string, noteId: string, note: Note) => Promise<
|
|
211
|
-
deleteNote: (basePath: string, token: string, noteId: string) => Promise<
|
|
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<
|
|
214
|
-
deleteUserNotification: (basePath: string, token: string, notificationId: string) => Promise<
|
|
215
|
-
deleteAllUserNotifications: (basePath: string, token: string) => Promise<
|
|
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<
|
|
219
|
-
unpinSession: (basePath: string, token: string, sessionId: string) => Promise<
|
|
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<
|
|
223
|
-
reserveSeat: (basePath: string, token: string, sessionId: string) => Promise<
|
|
224
|
-
removeSeat: (basePath: string, token: string, sessionId: string) => Promise<
|
|
225
|
-
watchSession: (basePath: string, token: string, sessionId: string) => Promise<
|
|
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<
|
|
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<
|
|
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<
|
|
236
|
-
deliverMeeting: (basePath: string, token: string, meetingId: string) => Promise<
|
|
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<
|
|
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<
|
|
254
|
-
unblockEvent: (basePath: string, token: string, availabilityId: string) => Promise<
|
|
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<
|
|
259
|
-
sendNewPassword: (basePath: string, userId: string, body: SendResetPasswordBody) => Promise<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
281
|
-
promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<
|
|
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<
|
|
286
|
-
assignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<
|
|
287
|
-
unassignPortfolio: (basePath: string, token: string, eventId: string, portfolioId: string) => Promise<
|
|
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<
|
|
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>;
|
|
@@ -437,48 +437,48 @@ export type EventAPIType = {
|
|
|
437
437
|
fetchMyConnections: () => Promise<Attendee[]>;
|
|
438
438
|
addConnection: (profile: string, leadsToken: string) => Promise<void>;
|
|
439
439
|
removeConnection: (profile: string) => Promise<void>;
|
|
440
|
-
pinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<
|
|
441
|
-
unpinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<
|
|
442
|
-
confirmMyEventInvitation: (attendeeId: string) => Promise<
|
|
443
|
-
checkIn: (attendeeId: string) => Promise<
|
|
444
|
-
checkout: (attendeeId: string) => Promise<
|
|
440
|
+
pinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
|
|
441
|
+
unpinAttendee: (attendeeId: string, pinAttendeeId: string) => Promise<APIResponse>;
|
|
442
|
+
confirmMyEventInvitation: (attendeeId: string) => Promise<APIResponse>;
|
|
443
|
+
checkIn: (attendeeId: string) => Promise<APIResponse>;
|
|
444
|
+
checkout: (attendeeId: string) => Promise<APIResponse>;
|
|
445
445
|
sendAttendeeOnboardingAnswers: (attendeeId: string, body: {
|
|
446
446
|
[key: string]: Answer;
|
|
447
|
-
}) => Promise<
|
|
448
|
-
createAttendee: (eventId: string, type: string, body: Attendee) => Promise<
|
|
447
|
+
}) => Promise<APIResponse>;
|
|
448
|
+
createAttendee: (eventId: string, type: string, body: Attendee) => Promise<APIResponse>;
|
|
449
449
|
importProfileFromLinkedIn: (body: {
|
|
450
450
|
event?: string | undefined;
|
|
451
451
|
callback_url: string;
|
|
452
452
|
}) => Promise<string>;
|
|
453
|
-
reportAttendeeAction: (requestData: AttendeeReport) => Promise<
|
|
453
|
+
reportAttendeeAction: (requestData: AttendeeReport) => Promise<APIResponse>;
|
|
454
454
|
fetchMyNotes: () => Promise<Note[]>;
|
|
455
|
-
createNote: (note: Note) => Promise<
|
|
456
|
-
updateNote: (noteId: string, note: NoteUpdateInput) => Promise<
|
|
457
|
-
deleteNote: (noteId: string) => Promise<
|
|
455
|
+
createNote: (note: Note) => Promise<APIResponse>;
|
|
456
|
+
updateNote: (noteId: string, note: NoteUpdateInput) => Promise<APIResponse>;
|
|
457
|
+
deleteNote: (noteId: string) => Promise<APIResponse>;
|
|
458
458
|
fetchUserNotifications: () => Promise<UserNotification[]>;
|
|
459
|
-
markUserNotificationAsRead: (notificationId: string) => Promise<
|
|
460
|
-
deleteUserNotification: (notificationId: string) => Promise<
|
|
461
|
-
deleteAllUserNotifications: () => Promise<
|
|
459
|
+
markUserNotificationAsRead: (notificationId: string) => Promise<APIResponse>;
|
|
460
|
+
deleteUserNotification: (notificationId: string) => Promise<APIResponse>;
|
|
461
|
+
deleteAllUserNotifications: () => Promise<APIResponse>;
|
|
462
462
|
fetchAgenda: (eventId: string) => Promise<Session[]>;
|
|
463
|
-
pinSession: (sessionId: string) => Promise<
|
|
464
|
-
unpinSession: (sessionId: string) => Promise<
|
|
463
|
+
pinSession: (sessionId: string) => Promise<APIResponse>;
|
|
464
|
+
unpinSession: (sessionId: string) => Promise<APIResponse>;
|
|
465
465
|
rateSession: (sessionId: string, body: {
|
|
466
466
|
name: number;
|
|
467
|
-
}) => Promise<
|
|
468
|
-
reserveSeat: (sessionId: string) => Promise<
|
|
469
|
-
removeSeat: (sessionId: string) => Promise<
|
|
470
|
-
watchSession: (sessionId: string) => Promise<
|
|
467
|
+
}) => Promise<APIResponse>;
|
|
468
|
+
reserveSeat: (sessionId: string) => Promise<APIResponse>;
|
|
469
|
+
removeSeat: (sessionId: string) => Promise<APIResponse>;
|
|
470
|
+
watchSession: (sessionId: string) => Promise<APIResponse>;
|
|
471
471
|
postSessionComment: (sessionId: string, message: string) => Promise<Session>;
|
|
472
472
|
refetchSessionDiscussion: (sessionId: string) => Promise<Session>;
|
|
473
|
-
reportSessionAction: (sessionId: string, requestData: SessionReport) => Promise<
|
|
473
|
+
reportSessionAction: (sessionId: string, requestData: SessionReport) => Promise<APIResponse>;
|
|
474
474
|
fetchMeetings: () => Promise<MeetingItem[]>;
|
|
475
475
|
fetchArrangedMeetings: (eventId: string) => Promise<MeetingItem[]>;
|
|
476
|
-
fetchLocation: (locationId: string) => Promise<
|
|
476
|
+
fetchLocation: (locationId: string) => Promise<APIResponse>;
|
|
477
477
|
cancelMeeting: (meetingId: string) => Promise<MeetingItem>;
|
|
478
478
|
declineMeeting: (meetingId: string) => Promise<MeetingItem>;
|
|
479
479
|
confirmMeeting: (meetingId: string) => Promise<MeetingItem>;
|
|
480
|
-
rateMeeting: (meetingId: string, rate: string) => Promise<
|
|
481
|
-
deliverMeeting: (meetingId: string) => Promise<
|
|
480
|
+
rateMeeting: (meetingId: string, rate: string) => Promise<APIResponse>;
|
|
481
|
+
deliverMeeting: (meetingId: string) => Promise<APIResponse>;
|
|
482
482
|
createMeeting: (body: MeetingItem) => Promise<MeetingItem>;
|
|
483
483
|
createArrangedMeeting: (body: MeetingItem) => Promise<MeetingItem>;
|
|
484
484
|
fetchZoomSignature: (account: string, meeting: string) => Promise<string[]>;
|
|
@@ -491,16 +491,16 @@ export type EventAPIType = {
|
|
|
491
491
|
addComment: (postId: string, body: CommentBody) => Promise<Comment>;
|
|
492
492
|
addPost: (body: PostBody) => Promise<Post>;
|
|
493
493
|
updatePost: (postId: string, body: UpdatePostBody) => Promise<Post>;
|
|
494
|
-
deletePost: (postId: string) => Promise<
|
|
494
|
+
deletePost: (postId: string) => Promise<APIResponse>;
|
|
495
495
|
deleteComment: (postId: string, commentId: string) => Promise<Post>;
|
|
496
496
|
fetchPages: (eventId: string, nbPage?: number, params?: string) => Promise<Page[]>;
|
|
497
497
|
fetchEventTracks: (eventId: string) => Promise<Track[]>;
|
|
498
498
|
fetchCalendarEvents: () => Promise<CalendarEvent[]>;
|
|
499
|
-
blockEvent: (event: string, startDate: string, endDate: string) => Promise<
|
|
500
|
-
unblockEvent: (availabilityId: string) => Promise<
|
|
499
|
+
blockEvent: (event: string, startDate: string, endDate: string) => Promise<APIResponse>;
|
|
500
|
+
unblockEvent: (availabilityId: string) => Promise<APIResponse>;
|
|
501
501
|
fetchAccounts: () => Promise<Account[]>;
|
|
502
502
|
fetchEventsForAccount: (accountId: string) => Promise<UserRegistrationsEvent[]>;
|
|
503
|
-
logout: () => Promise<
|
|
503
|
+
logout: () => Promise<APIResponse>;
|
|
504
504
|
fetchAllPublicEvents: (nbPage?: number, params?: string) => Promise<ResponsePaginationType<PublicEventItem>>;
|
|
505
505
|
fetchPublicExhibitions: (eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Exhibition>>;
|
|
506
506
|
fetchPublicAgenda: (eventId: string, nbPage?: number, params?: string) => Promise<ResponsePaginationType<Session>>;
|
|
@@ -510,24 +510,24 @@ export type EventAPIType = {
|
|
|
510
510
|
updateStream: (streamId: string, data: StreamInput) => Promise<{
|
|
511
511
|
data: Stream;
|
|
512
512
|
}>;
|
|
513
|
-
deleteStream: (streamId: string) => Promise<
|
|
513
|
+
deleteStream: (streamId: string) => Promise<APIResponse>;
|
|
514
514
|
fetchAllExhibitions: (eventId: string) => Promise<Exhibition[]>;
|
|
515
515
|
fetchMyExhibitions: () => Promise<Exhibition[]>;
|
|
516
516
|
createExhibition: (files: any, data: ExhibitionInput) => Promise<Exhibition>;
|
|
517
|
-
importExhibition: (eventId: string, eventSource: string) => Promise<
|
|
517
|
+
importExhibition: (eventId: string, eventSource: string) => Promise<APIResponse>;
|
|
518
518
|
updateExhibition: (exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
|
|
519
|
-
deleteExhibition: (exhibitionId: string) => Promise<
|
|
519
|
+
deleteExhibition: (exhibitionId: string) => Promise<APIResponse>;
|
|
520
520
|
fetchSelectedEventSessions: (eventId: string) => Promise<Session[]>;
|
|
521
521
|
createSession: (data: SessionInput, files: any) => Promise<Session>;
|
|
522
522
|
updateSession: (sessionId: string, data: SessionInput, files: any) => Promise<Session>;
|
|
523
|
-
deleteSession: (sessionId: string) => Promise<
|
|
524
|
-
promoteSession: (sessionId: string, promotionDate: string) => Promise<
|
|
523
|
+
deleteSession: (sessionId: string) => Promise<APIResponse>;
|
|
524
|
+
promoteSession: (sessionId: string, promotionDate: string) => Promise<APIResponse>;
|
|
525
525
|
editMeeting: (body: MeetingItem) => Promise<MeetingItem>;
|
|
526
526
|
fetchEventMeetingsStatistics: (eventId: string) => Promise<EventMeetingStatisticsItem[]>;
|
|
527
527
|
fetchPortfolios: (accountId: string) => Promise<Portfolio[]>;
|
|
528
|
-
deletePortfolio: (portfolioId: string) => Promise<
|
|
529
|
-
assignPortfolio: (eventId: string, portfolioId: string) => Promise<
|
|
530
|
-
unassignPortfolio: (eventId: string, portfolioId: string) => Promise<
|
|
528
|
+
deletePortfolio: (portfolioId: string) => Promise<APIResponse>;
|
|
529
|
+
assignPortfolio: (eventId: string, portfolioId: string) => Promise<APIResponse>;
|
|
530
|
+
unassignPortfolio: (eventId: string, portfolioId: string) => Promise<APIResponse>;
|
|
531
531
|
createPortfolio: (data: PortfolioInput, files: {
|
|
532
532
|
name: string;
|
|
533
533
|
value: File;
|
|
@@ -549,7 +549,7 @@ export type EventAPIType = {
|
|
|
549
549
|
name: string;
|
|
550
550
|
value: File;
|
|
551
551
|
}[]) => Promise<BlogPage>;
|
|
552
|
-
deletePortfolioBlogPage: (portfolioId: string, blogPostId: string) => Promise<
|
|
552
|
+
deletePortfolioBlogPage: (portfolioId: string, blogPostId: string) => Promise<APIResponse>;
|
|
553
553
|
fetchColocatedEvents: (accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
|
|
554
554
|
createColocatedEvents: (accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
555
555
|
editColocatedEvents: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
@@ -563,7 +563,7 @@ export type BaseAPIConfigType = {
|
|
|
563
563
|
baseUrl?: string;
|
|
564
564
|
token?: string;
|
|
565
565
|
};
|
|
566
|
-
export type
|
|
566
|
+
export type APIResponse = {
|
|
567
567
|
status?: string | number;
|
|
568
568
|
error?: string;
|
|
569
569
|
message?: string;
|