@hubs101/js-api-skd-client 1.0.10331 → 1.0.10333
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/README.md +1 -1
- package/lib/api/attendee/types.d.ts +18 -2
- package/lib/api/event/index.d.ts +2 -1
- package/lib/api/event/index.js +7 -1
- package/lib/api/event/types.d.ts +12 -0
- package/lib/api/sessions/types.d.ts +3 -2
- package/lib/constants/api.d.ts +2 -0
- package/lib/constants/api.js +2 -0
- package/lib/index.js +19 -12
- package/lib/types/base.d.ts +4 -1
- package/lib/utils/base.js +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Accessing API via stateless interface:
|
|
|
20
20
|
|
|
21
21
|
## Creating new release
|
|
22
22
|
|
|
23
|
-
1. Commit al changes to git
|
|
23
|
+
1. Commit al changes to git
|
|
24
24
|
2. Prepare build: `npm run build`
|
|
25
25
|
3. Create new patch version run: `npm version patch`
|
|
26
26
|
4. Publish package to NPM: `npm publish`
|
|
@@ -282,12 +282,28 @@ export type Note = {
|
|
|
282
282
|
message: string;
|
|
283
283
|
reference: string;
|
|
284
284
|
event: string;
|
|
285
|
-
detail
|
|
285
|
+
detail?: {
|
|
286
|
+
title: string;
|
|
287
|
+
subtitle: {
|
|
288
|
+
start_date: string;
|
|
289
|
+
end_date: string;
|
|
290
|
+
};
|
|
291
|
+
url: string;
|
|
292
|
+
eventName: string;
|
|
293
|
+
};
|
|
286
294
|
updateDate: string;
|
|
287
295
|
};
|
|
288
296
|
export type NoteUpdateInput = {
|
|
289
297
|
message: string;
|
|
290
|
-
detail?:
|
|
298
|
+
detail?: {
|
|
299
|
+
title: string;
|
|
300
|
+
subtitle: {
|
|
301
|
+
start_date: string;
|
|
302
|
+
end_date: string;
|
|
303
|
+
};
|
|
304
|
+
url: string;
|
|
305
|
+
eventName: string;
|
|
306
|
+
};
|
|
291
307
|
};
|
|
292
308
|
export type NoteInput = {
|
|
293
309
|
type: NOTE_TYPE;
|
package/lib/api/event/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
2
2
|
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
|
-
import { Account, AccountInput, Booking, BookingDetails, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, GroupServerResponse, OptionServerResponse, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
|
|
3
|
+
import { Account, AccountInput, Booking, BookingDetails, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, GroupServerResponse, OptionServerResponse, Portfolio, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
|
|
4
4
|
export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
|
|
5
5
|
export declare const _fetchAccounts: (basePath: string, token: string) => Promise<Account[]>;
|
|
6
6
|
export declare const _fetchTickets: (basePath: string, token: string) => Promise<ResponsePaginationType<BookingDetails>>;
|
|
@@ -95,3 +95,4 @@ export declare const _createExhibition: (basePath: string, token: string, files:
|
|
|
95
95
|
export declare const _importExhibition: (basePath: string, token: string, eventId: string, eventSource: string) => Promise<Response>;
|
|
96
96
|
export declare const _updateExhibition: (basePath: string, token: string, exhibitionId: string, files: any, data: ExhibitionInput) => Promise<Exhibition>;
|
|
97
97
|
export declare const _deleteExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<Response>;
|
|
98
|
+
export declare const _fetchPortfolios: (basePath: string, token: string, accountId: string) => Promise<Portfolio[]>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports._fetchMyBookings = exports._createBooking = exports._checkBooking = exports._resendBookingEmail = exports._resendTicketEmail = exports._fetchEventAttendeeActions = exports._fetchEventGroups = exports._unpinExhibition = exports._pinExhibition = exports._unpinDocument = exports._pinDocument = exports._reportExhibitionAction = exports._deleteDocument = exports._updateDocument = exports._createDocument = exports._assignDocumentToEvent = exports._fetchEventDocuments = exports._fetchUserRegistrationsEvents = exports._fetchEventStreams = exports._fetchEventLocations = exports._deleteLocation = exports._updateLocation = exports._createLocation = exports._fetchExhibitionDetails = exports._deleteDiscount = exports._updateDiscount = exports._createDiscount = exports._fetchEventDiscounts = exports._deleteTicket = exports._updateTicket = exports._createTicket = exports._deleteOption = exports._updateOption = exports._createOption = exports._deleteGroup = exports._updateGroup = exports._createGroup = exports._importAgenda = exports._fetchAttendeesAvailabilities = exports._updateEventTemplates = exports._fetchEventTemplates = exports._fetchEventNotifications = exports._sendSingleNotification = exports._sendNotification = exports._fetchEventDetails = exports._fetchExhibitions = exports._fetchEventsForAccount = exports._fetchTickets = exports._fetchAccounts = exports._fetchEventRegistrations = void 0;
|
|
13
|
-
exports._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;
|
|
13
|
+
exports._fetchPortfolios = exports._deleteExhibition = exports._updateExhibition = exports._importExhibition = exports._createExhibition = exports._fetchMyExhibitions = exports._fetchAllExhibitions = exports._deleteStream = exports._updateStream = exports._createStream = exports._fetchYoutubeContent = exports._fetchZoomContent = exports._createEvent = exports._unassignPaymentAccount = exports._assignPaymentAccount = exports._fetchEventOptions = exports._fetchEventTickets = exports._updateEvent = exports._deletePage = exports._updatePage = exports._createPage = exports._fetchEventPages = exports._updateAccountWithFiles = exports._fetchMySessions = exports._fetchEditableEvents = exports._fetchSpeakers = exports._fetchAccountDetails = exports._eventInvitationRegistration = exports._createFreeTrialAccount = exports._fetchEventOrderedTickets = exports._confirmBooking = exports._fetchEventBookings = exports._acceptInternTicket = exports._acceptTicket = exports._postTicketDetails = exports._fetchTicketDetails = exports._assignTicket = exports._fetchAccountBookings = void 0;
|
|
14
14
|
const api_1 = require("../../utils/api");
|
|
15
15
|
const base_1 = require("../../utils/base");
|
|
16
16
|
const _fetchEventRegistrations = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -551,3 +551,9 @@ const _deleteExhibition = (basePath, token, exhibitionId) => __awaiter(void 0, v
|
|
|
551
551
|
return result;
|
|
552
552
|
});
|
|
553
553
|
exports._deleteExhibition = _deleteExhibition;
|
|
554
|
+
const _fetchPortfolios = (basePath, token, accountId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
555
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
556
|
+
const { data: accountPortfolios } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/${accountId}/portfolios`, token);
|
|
557
|
+
return accountPortfolios;
|
|
558
|
+
});
|
|
559
|
+
exports._fetchPortfolios = _fetchPortfolios;
|
package/lib/api/event/types.d.ts
CHANGED
|
@@ -756,4 +756,16 @@ export type DiscountServerResponse = {
|
|
|
756
756
|
expire_at: null | string;
|
|
757
757
|
updated_at: string;
|
|
758
758
|
};
|
|
759
|
+
export type Portfolio = {
|
|
760
|
+
id: string;
|
|
761
|
+
account?: string;
|
|
762
|
+
name: string;
|
|
763
|
+
slug: string;
|
|
764
|
+
number_of_events: number;
|
|
765
|
+
published: boolean;
|
|
766
|
+
created_at: string;
|
|
767
|
+
updated_at: string;
|
|
768
|
+
created_by: string;
|
|
769
|
+
updated_by: string;
|
|
770
|
+
};
|
|
759
771
|
export {};
|
|
@@ -61,8 +61,9 @@ export type SessionServerResponse = {
|
|
|
61
61
|
advertisement?: PrerecordedVideo | null;
|
|
62
62
|
collaboration: Collaboration;
|
|
63
63
|
priority: number;
|
|
64
|
+
speakers?: Attendee[];
|
|
65
|
+
documents?: DocumentType[];
|
|
64
66
|
promoted_at: string;
|
|
65
|
-
speakers?: any[];
|
|
66
67
|
};
|
|
67
68
|
export type PrerecordedVideo = {
|
|
68
69
|
videoType: string;
|
|
@@ -102,10 +103,10 @@ export type SessionFull = {
|
|
|
102
103
|
heartCount: number;
|
|
103
104
|
priority: number;
|
|
104
105
|
discussion: SessionDiscussion | null;
|
|
105
|
-
documents: DocumentType[];
|
|
106
106
|
like_list: string[];
|
|
107
107
|
watch_list: string[];
|
|
108
108
|
speakers: Attendee[];
|
|
109
|
+
documents: DocumentType[];
|
|
109
110
|
};
|
|
110
111
|
export type SessionDiscussion = {
|
|
111
112
|
commentCount: number;
|
package/lib/constants/api.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare const API_PROD_PATH: Readonly<{
|
|
|
56
56
|
DISCOUNTS: `${string}/discounts`;
|
|
57
57
|
LOCATIONS: `${string}/locations`;
|
|
58
58
|
PAGES: `${string}/pages`;
|
|
59
|
+
PORTFOLIOS: `${string}/portfolios`;
|
|
59
60
|
PAYMENT_ACCOUNTS: `${string}/payment-account`;
|
|
60
61
|
ACCOUNT_TRIAL: `${string}/accounts/trial`;
|
|
61
62
|
INVITATION: `${string}/invitation`;
|
|
@@ -109,6 +110,7 @@ export declare const API_STAGE_PATH: Readonly<{
|
|
|
109
110
|
DISCOUNTS: `${string}/discounts`;
|
|
110
111
|
LOCATIONS: `${string}/locations`;
|
|
111
112
|
PAGES: `${string}/pages`;
|
|
113
|
+
PORTFOLIOS: `${string}/portfolios`;
|
|
112
114
|
PAYMENT_ACCOUNTS: `${string}/payment-account`;
|
|
113
115
|
ACCOUNT_TRIAL: `${string}/accounts/trial`;
|
|
114
116
|
INVITATION: `${string}/invitation`;
|
package/lib/constants/api.js
CHANGED
|
@@ -58,6 +58,7 @@ exports.API_PROD_PATH = Object.freeze({
|
|
|
58
58
|
DISCOUNTS: `${exports.PRODUCTION_URL}/discounts`,
|
|
59
59
|
LOCATIONS: `${exports.PRODUCTION_URL}/locations`,
|
|
60
60
|
PAGES: `${exports.PRODUCTION_URL}/pages`,
|
|
61
|
+
PORTFOLIOS: `${exports.PRODUCTION_URL}/portfolios`,
|
|
61
62
|
PAYMENT_ACCOUNTS: `${exports.PRODUCTION_URL}/payment-account`,
|
|
62
63
|
ACCOUNT_TRIAL: `${exports.UNAUTHORIZED_PRODUCTION_URL}/accounts/trial`,
|
|
63
64
|
INVITATION: `${exports.UNAUTHORIZED_PRODUCTION_URL}/invitation`,
|
|
@@ -111,6 +112,7 @@ exports.API_STAGE_PATH = Object.freeze({
|
|
|
111
112
|
DISCOUNTS: `${exports.STAGING_URL}/discounts`,
|
|
112
113
|
LOCATIONS: `${exports.STAGING_URL}/locations`,
|
|
113
114
|
PAGES: `${exports.STAGING_URL}/pages`,
|
|
115
|
+
PORTFOLIOS: `${exports.STAGING_URL}/portfolios`,
|
|
114
116
|
PAYMENT_ACCOUNTS: `${exports.STAGING_URL}/payment-account`,
|
|
115
117
|
ACCOUNT_TRIAL: `${exports.UNAUTHORIZED_STAGING_URL}/accounts/trial`,
|
|
116
118
|
INVITATION: `${exports.UNAUTHORIZED_STAGING_URL}/invitation`,
|
package/lib/index.js
CHANGED
|
@@ -33,6 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.useAPIContext = exports.BaseAPI = exports.EventAPIProvider = void 0;
|
|
36
|
+
/* eslint-disable prefer-arrow/prefer-arrow-functions */
|
|
36
37
|
const react_1 = __importStar(require("react"));
|
|
37
38
|
// index.ts
|
|
38
39
|
const attendee_1 = require("./api/attendee");
|
|
@@ -52,7 +53,7 @@ function EventAPIProvider(props) {
|
|
|
52
53
|
const [config, setConfig] = (0, hooks_1.useSetState)({});
|
|
53
54
|
const init = react_1.default.useCallback((baseUrl, email, password) => __awaiter(this, void 0, void 0, function* () {
|
|
54
55
|
try {
|
|
55
|
-
const { token
|
|
56
|
+
const { token } = yield (0, authentication_1._login)(baseUrl, email, password);
|
|
56
57
|
if (token) {
|
|
57
58
|
setConfig({ token, baseUrl });
|
|
58
59
|
}
|
|
@@ -62,20 +63,20 @@ function EventAPIProvider(props) {
|
|
|
62
63
|
throw Error("Login Failed");
|
|
63
64
|
}
|
|
64
65
|
}), []);
|
|
65
|
-
const initWithToken = react_1.default.useCallback((baseUrl, token) =>
|
|
66
|
+
const initWithToken = react_1.default.useCallback((baseUrl, token) => {
|
|
66
67
|
if (!token || !baseUrl) {
|
|
67
68
|
return false;
|
|
68
69
|
}
|
|
69
70
|
setConfig({ token, baseUrl });
|
|
70
71
|
return true;
|
|
71
|
-
}
|
|
72
|
-
const initWithoutToken = react_1.default.useCallback((baseUrl) =>
|
|
72
|
+
}, [config]);
|
|
73
|
+
const initWithoutToken = react_1.default.useCallback((baseUrl) => {
|
|
73
74
|
if (!baseUrl) {
|
|
74
75
|
return false;
|
|
75
76
|
}
|
|
76
77
|
setConfig({ baseUrl });
|
|
77
78
|
return true;
|
|
78
|
-
}
|
|
79
|
+
}, [config]);
|
|
79
80
|
const fetchEventRegistrations = react_1.default.useCallback((eventId) => __awaiter(this, void 0, void 0, function* () {
|
|
80
81
|
(0, api_1.validateConfig)(config);
|
|
81
82
|
const eventRegistrations = yield (0, event_1._fetchEventRegistrations)(config.baseUrl, config.token, eventId);
|
|
@@ -116,10 +117,10 @@ function EventAPIProvider(props) {
|
|
|
116
117
|
const documents = yield (0, event_1._fetchEventDocuments)(config.baseUrl, config.token, eventId);
|
|
117
118
|
return documents;
|
|
118
119
|
}), [config, config.baseUrl, config.token]);
|
|
119
|
-
const reportExhibitionAction = react_1.default.useCallback((exhibitionId, requestData) =>
|
|
120
|
+
const reportExhibitionAction = react_1.default.useCallback((exhibitionId, requestData) => {
|
|
120
121
|
(0, api_1.validateConfig)(config);
|
|
121
122
|
void (0, event_1._reportExhibitionAction)(config.baseUrl, config.token, exhibitionId, requestData);
|
|
122
|
-
}
|
|
123
|
+
}, [config, config.baseUrl, config.token]);
|
|
123
124
|
const pinDocument = react_1.default.useCallback((eventId, exhibitionId) => __awaiter(this, void 0, void 0, function* () {
|
|
124
125
|
(0, api_1.validateConfig)(config);
|
|
125
126
|
return (0, event_1._pinDocument)(config.baseUrl, config.token, eventId, exhibitionId);
|
|
@@ -463,10 +464,10 @@ function EventAPIProvider(props) {
|
|
|
463
464
|
(0, api_1.validateConfig)(config);
|
|
464
465
|
return (0, event_1._updateEvent)(config.baseUrl, config.token, eventId, data, files);
|
|
465
466
|
}), [config, config.baseUrl, config.token]);
|
|
466
|
-
const resendConfirmationEmail = (0, react_1.useCallback)((attendeeId) =>
|
|
467
|
+
const resendConfirmationEmail = (0, react_1.useCallback)((attendeeId) => {
|
|
467
468
|
(0, api_1.validateConfig)(config);
|
|
468
|
-
(0, attendee_1._resendConfirmationEmail)(config.baseUrl, config.token, attendeeId);
|
|
469
|
-
}
|
|
469
|
+
void (0, attendee_1._resendConfirmationEmail)(config.baseUrl, config.token, attendeeId);
|
|
470
|
+
}, [config, config.baseUrl, config.token]);
|
|
470
471
|
const createEvent = (0, react_1.useCallback)((data, files) => __awaiter(this, void 0, void 0, function* () {
|
|
471
472
|
(0, api_1.validateConfig)(config);
|
|
472
473
|
return (0, event_1._createEvent)(config.baseUrl, config.token, data, files);
|
|
@@ -507,11 +508,11 @@ function EventAPIProvider(props) {
|
|
|
507
508
|
(0, api_1.validateConfig)(config);
|
|
508
509
|
return (0, attendee_1._updateAttendee)(config.baseUrl, config.token, updatedAttendee, attendeeId);
|
|
509
510
|
}), [config, config.baseUrl, config.token]);
|
|
510
|
-
const updateGlobalAttendeeImage = react_1.default.useCallback((file, param
|
|
511
|
+
const updateGlobalAttendeeImage = react_1.default.useCallback((file, param) => __awaiter(this, void 0, void 0, function* () {
|
|
511
512
|
(0, api_1.validateConfig)(config);
|
|
512
513
|
return (0, attendee_1._updateGlobalAttendeeImage)(config.baseUrl, config.token, file, param);
|
|
513
514
|
}), [config, config.baseUrl, config.token]);
|
|
514
|
-
const updateGlobalAttendee = react_1.default.useCallback((updatedAttendee
|
|
515
|
+
const updateGlobalAttendee = react_1.default.useCallback((updatedAttendee) => __awaiter(this, void 0, void 0, function* () {
|
|
515
516
|
(0, api_1.validateConfig)(config);
|
|
516
517
|
return (0, attendee_1._updateGlobalAttendee)(config.baseUrl, config.token, updatedAttendee);
|
|
517
518
|
}), [config, config.baseUrl, config.token]);
|
|
@@ -836,6 +837,10 @@ function EventAPIProvider(props) {
|
|
|
836
837
|
(0, api_1.validateConfig)(config);
|
|
837
838
|
return (0, meetings_1._fetchEventMeetingsStatistics)(config.baseUrl, config.token, eventId);
|
|
838
839
|
}), [config, config.baseUrl, config.token]);
|
|
840
|
+
const fetchPortfolios = react_1.default.useCallback((accountId) => __awaiter(this, void 0, void 0, function* () {
|
|
841
|
+
(0, api_1.validateConfig)(config);
|
|
842
|
+
return (0, event_1._fetchPortfolios)(config.baseUrl, config.token, accountId);
|
|
843
|
+
}), [config, config.baseUrl, config.token]);
|
|
839
844
|
return (react_1.default.createElement(EventAPIContext_1.default.Provider, { value: {
|
|
840
845
|
config,
|
|
841
846
|
init,
|
|
@@ -1030,6 +1035,7 @@ function EventAPIProvider(props) {
|
|
|
1030
1035
|
promoteSession,
|
|
1031
1036
|
editMeeting,
|
|
1032
1037
|
fetchEventMeetingsStatistics,
|
|
1038
|
+
fetchPortfolios,
|
|
1033
1039
|
} }, props.children));
|
|
1034
1040
|
}
|
|
1035
1041
|
exports.EventAPIProvider = EventAPIProvider;
|
|
@@ -1225,5 +1231,6 @@ exports.BaseAPI = {
|
|
|
1225
1231
|
promoteSession: sessions_1._promoteSession,
|
|
1226
1232
|
editMeeting: meetings_1._editMeeting,
|
|
1227
1233
|
fetchEventMeetingsStatistics: meetings_1._fetchEventMeetingsStatistics,
|
|
1234
|
+
fetchPortfolios: event_1._fetchPortfolios,
|
|
1228
1235
|
};
|
|
1229
1236
|
exports.useAPIContext = EventAPIContext_1.useAPIContext;
|
package/lib/types/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNo
|
|
|
2
2
|
import { RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
|
|
3
3
|
import { CalendarEvent } from "../api/calendar/types";
|
|
4
4
|
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
5
|
-
import { Account, AccountInput, Answer, Booking, BookingDetails, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, GroupServerResponse, OptionServerResponse, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
5
|
+
import { Account, AccountInput, Answer, Booking, BookingDetails, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, GroupServerResponse, OptionServerResponse, Portfolio, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
6
6
|
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
7
7
|
import { Page } from "../api/pages/types";
|
|
8
8
|
import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
|
|
@@ -70,6 +70,7 @@ export type ClientBase = {
|
|
|
70
70
|
PUBLIC_BOOKINGS: string;
|
|
71
71
|
ACTIONS_EVENTS: string;
|
|
72
72
|
ACTIONS_ATTENDEE: string;
|
|
73
|
+
PORTFOLIOS: string;
|
|
73
74
|
};
|
|
74
75
|
export type BaseAPIType = {
|
|
75
76
|
fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
|
|
@@ -277,6 +278,7 @@ export type BaseAPIType = {
|
|
|
277
278
|
promoteSession: (basePath: string, token: string, sessionId: string, promotionDate: string) => Promise<Response>;
|
|
278
279
|
editMeeting: (basePath: string, token: string, body: MeetingItem) => Promise<MeetingItem>;
|
|
279
280
|
fetchEventMeetingsStatistics: (basePath: string, token: string, eventId: string) => Promise<EventMeetingStatisticsItem[]>;
|
|
281
|
+
fetchPortfolios: (basePath: string, token: string, accountId: string) => Promise<Portfolio[]>;
|
|
280
282
|
};
|
|
281
283
|
export type EventAPIType = {
|
|
282
284
|
config: BaseAPIConfigType;
|
|
@@ -484,6 +486,7 @@ export type EventAPIType = {
|
|
|
484
486
|
promoteSession: (sessionId: string, promotionDate: string) => Promise<Response>;
|
|
485
487
|
editMeeting: (body: MeetingItem) => Promise<MeetingItem>;
|
|
486
488
|
fetchEventMeetingsStatistics: (eventId: string) => Promise<EventMeetingStatisticsItem[]>;
|
|
489
|
+
fetchPortfolios: (accountId: string) => Promise<Portfolio[]>;
|
|
487
490
|
};
|
|
488
491
|
export type BaseAPIConfigType = {
|
|
489
492
|
baseUrl?: string;
|
package/lib/utils/base.js
CHANGED
|
@@ -7,6 +7,7 @@ const getBasePath = (basePath) => {
|
|
|
7
7
|
const publicBasePath = `${basePath}/public`;
|
|
8
8
|
return Object.freeze({
|
|
9
9
|
ACCOUNTS: `${authorizedBasePath}/accounts`,
|
|
10
|
+
PORTFOLIOS: `${authorizedBasePath}/portfolios`,
|
|
10
11
|
ADMIN: `${authorizedBasePath}/admin`,
|
|
11
12
|
ATTENDEES: `${authorizedBasePath}/attendees`,
|
|
12
13
|
AUTH: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubs101/js-api-skd-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10333",
|
|
4
4
|
"author": "Liveware",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest --config jestconfig.json",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "ISC",
|
|
29
29
|
"dependencies": {
|
|
30
|
+
"@hubs101/js-api-skd-client": "^1.0.10314",
|
|
30
31
|
"@types/react": "*",
|
|
31
32
|
"react": "^18.2.0"
|
|
32
33
|
},
|