@hubs101/js-api-skd-client 1.0.10549 → 1.0.10551
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 +0 -0
- package/lib/api/attendee/index.js +22 -22
- package/lib/api/attendee/types.d.ts +0 -0
- package/lib/api/attendee/types.js +1 -1
- package/lib/api/authentication/index.d.ts +7 -1
- package/lib/api/authentication/index.js +39 -3
- package/lib/api/authentication/types.d.ts +93 -0
- package/lib/api/authentication/types.js +0 -0
- package/lib/api/calendar/index.d.ts +0 -0
- package/lib/api/calendar/index.js +0 -0
- package/lib/api/calendar/types.d.ts +0 -0
- package/lib/api/calendar/types.js +0 -0
- package/lib/api/context/EventAPIContext.d.ts +0 -0
- package/lib/api/context/EventAPIContext.js +0 -0
- package/lib/api/context/types.d.ts +0 -0
- package/lib/api/context/types.js +0 -0
- package/lib/api/event/index.d.ts +0 -0
- package/lib/api/event/index.js +14 -14
- package/lib/api/event/types.d.ts +0 -0
- package/lib/api/event/types.js +3 -3
- package/lib/api/meetings/index.d.ts +0 -0
- package/lib/api/meetings/index.js +2 -2
- package/lib/api/meetings/types.d.ts +0 -0
- package/lib/api/meetings/types.js +0 -0
- package/lib/api/pages/index.d.ts +0 -0
- package/lib/api/pages/index.js +0 -0
- package/lib/api/pages/types.d.ts +0 -0
- package/lib/api/pages/types.js +0 -0
- package/lib/api/posts/index.d.ts +0 -0
- package/lib/api/posts/index.js +2 -2
- package/lib/api/posts/types.d.ts +0 -0
- package/lib/api/posts/types.js +0 -0
- package/lib/api/public/index.d.ts +0 -0
- package/lib/api/public/index.js +0 -0
- package/lib/api/public/types.d.ts +0 -0
- package/lib/api/public/types.js +0 -0
- package/lib/api/sessions/index.d.ts +0 -0
- package/lib/api/sessions/index.js +0 -0
- package/lib/api/sessions/types.d.ts +0 -0
- package/lib/api/sessions/types.js +0 -0
- package/lib/api/tracks/index.d.ts +0 -0
- package/lib/api/tracks/index.js +0 -0
- package/lib/api/tracks/types.d.ts +0 -0
- package/lib/api/tracks/types.js +0 -0
- package/lib/api/types.d.ts +0 -0
- package/lib/api/types.js +0 -0
- package/lib/constants/api.d.ts +80 -80
- package/lib/constants/api.js +0 -0
- package/lib/index.d.ts +0 -0
- package/lib/index.js +55 -9
- package/lib/types/base.d.ts +14 -2
- package/lib/types/base.js +0 -0
- package/lib/utils/api.d.ts +0 -0
- package/lib/utils/api.js +10 -10
- package/lib/utils/base.d.ts +0 -0
- package/lib/utils/base.js +1 -1
- package/lib/utils/hooks.d.ts +0 -0
- package/lib/utils/hooks.js +0 -0
- package/package.json +1 -1
|
File without changes
|
|
@@ -26,10 +26,10 @@ const _fetchAttendees = (basePath, token, eventId) => __awaiter(void 0, void 0,
|
|
|
26
26
|
});
|
|
27
27
|
exports._fetchAttendees = _fetchAttendees;
|
|
28
28
|
const _fetchColocatedAttendees = (basePath, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
29
|
-
var
|
|
29
|
+
var _a;
|
|
30
30
|
const base = (0, base_1.getBasePath)(basePath);
|
|
31
31
|
const attendees = yield (0, api_1.getRequest)(`${base.PUBLIC_EVENTS}/${eventId}/colocated-attendees`);
|
|
32
|
-
return ((
|
|
32
|
+
return ((_a = attendees === null || attendees === void 0 ? void 0 : attendees.data) === null || _a === void 0 ? void 0 : _a.data) || (attendees === null || attendees === void 0 ? void 0 : attendees.data) || attendees;
|
|
33
33
|
});
|
|
34
34
|
exports._fetchColocatedAttendees = _fetchColocatedAttendees;
|
|
35
35
|
const _fetchMyUser = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -39,52 +39,52 @@ const _fetchMyUser = (basePath, token) => __awaiter(void 0, void 0, void 0, func
|
|
|
39
39
|
});
|
|
40
40
|
exports._fetchMyUser = _fetchMyUser;
|
|
41
41
|
const _updateAttendeeImage = (basePath, token, file, param, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
|
-
var
|
|
42
|
+
var _a;
|
|
43
43
|
const base = (0, base_1.getBasePath)(basePath);
|
|
44
44
|
const attendee = yield (0, api_1.postFileRequestWE)(`${base.ATTENDEES}/${attendeeId}`, file, param, token);
|
|
45
|
-
return ((
|
|
45
|
+
return ((_a = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _a === void 0 ? void 0 : _a.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
46
46
|
});
|
|
47
47
|
exports._updateAttendeeImage = _updateAttendeeImage;
|
|
48
48
|
const _updateAttendeeImageNative = (basePath, token, file, param, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
|
-
var
|
|
49
|
+
var _a;
|
|
50
50
|
const base = (0, base_1.getBasePath)(basePath);
|
|
51
51
|
const attendee = yield (0, api_1.postFileRequest)(`${base.ATTENDEES}/${attendeeId}`, file, param, token);
|
|
52
|
-
return ((
|
|
52
|
+
return ((_a = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _a === void 0 ? void 0 : _a.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
53
53
|
});
|
|
54
54
|
exports._updateAttendeeImageNative = _updateAttendeeImageNative;
|
|
55
55
|
const _updateAttendee = (basePath, token, updatedAttendee, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
56
|
-
var
|
|
56
|
+
var _a;
|
|
57
57
|
const base = (0, base_1.getBasePath)(basePath);
|
|
58
58
|
const attendee = yield (0, api_1.putRequest)(`${base.ATTENDEES}/${attendeeId}`, token, Object.assign({}, updatedAttendee));
|
|
59
|
-
return ((
|
|
59
|
+
return ((_a = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _a === void 0 ? void 0 : _a.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
60
60
|
});
|
|
61
61
|
exports._updateAttendee = _updateAttendee;
|
|
62
62
|
const _updateGlobalAttendeeImage = (basePath, token, file, param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
-
var
|
|
63
|
+
var _a;
|
|
64
64
|
const base = (0, base_1.getBasePath)(basePath);
|
|
65
65
|
const attendee = yield (0, api_1.postFileRequestWE)(base.PROFILE, file, param, token);
|
|
66
|
-
return ((
|
|
66
|
+
return ((_a = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _a === void 0 ? void 0 : _a.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
67
67
|
});
|
|
68
68
|
exports._updateGlobalAttendeeImage = _updateGlobalAttendeeImage;
|
|
69
69
|
const _updateGlobalAttendeeImageNative = (basePath, token, file, param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
70
|
-
var
|
|
70
|
+
var _a;
|
|
71
71
|
const base = (0, base_1.getBasePath)(basePath);
|
|
72
72
|
const attendee = yield (0, api_1.postFileRequest)(base.PROFILE, file, param, token);
|
|
73
|
-
return ((
|
|
73
|
+
return ((_a = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _a === void 0 ? void 0 : _a.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
74
74
|
});
|
|
75
75
|
exports._updateGlobalAttendeeImageNative = _updateGlobalAttendeeImageNative;
|
|
76
76
|
const _updateGlobalAttendee = (basePath, token, updatedAttendee) => __awaiter(void 0, void 0, void 0, function* () {
|
|
77
|
-
var
|
|
77
|
+
var _a;
|
|
78
78
|
const base = (0, base_1.getBasePath)(basePath);
|
|
79
79
|
const attendee = yield (0, api_1.putRequest)(base.PROFILE, token, Object.assign({}, updatedAttendee));
|
|
80
|
-
return ((
|
|
80
|
+
return ((_a = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _a === void 0 ? void 0 : _a.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
81
81
|
});
|
|
82
82
|
exports._updateGlobalAttendee = _updateGlobalAttendee;
|
|
83
83
|
const _fetchMyConnections = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
84
|
-
var
|
|
84
|
+
var _a;
|
|
85
85
|
const base = (0, base_1.getBasePath)(basePath);
|
|
86
86
|
const myConnections = yield (0, api_1.getRequest)(base.CONNECTIONS, token);
|
|
87
|
-
return ((
|
|
87
|
+
return ((_a = myConnections === null || myConnections === void 0 ? void 0 : myConnections.data) === null || _a === void 0 ? void 0 : _a.data) || (myConnections === null || myConnections === void 0 ? void 0 : myConnections.data) || myConnections;
|
|
88
88
|
});
|
|
89
89
|
exports._fetchMyConnections = _fetchMyConnections;
|
|
90
90
|
const _addConnection = (basePath, token, profile, leadsToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -159,10 +159,10 @@ const _reportAttendeeAction = (basePath, token, requestData) => __awaiter(void 0
|
|
|
159
159
|
});
|
|
160
160
|
exports._reportAttendeeAction = _reportAttendeeAction;
|
|
161
161
|
const _fetchMyNotes = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
162
|
-
var
|
|
162
|
+
var _a;
|
|
163
163
|
const base = (0, base_1.getBasePath)(basePath);
|
|
164
164
|
const myNotes = yield (0, api_1.getRequest)(`${base.NOTES}`, token);
|
|
165
|
-
return ((
|
|
165
|
+
return ((_a = myNotes === null || myNotes === void 0 ? void 0 : myNotes.data) === null || _a === void 0 ? void 0 : _a.data) || (myNotes === null || myNotes === void 0 ? void 0 : myNotes.data) || myNotes;
|
|
166
166
|
});
|
|
167
167
|
exports._fetchMyNotes = _fetchMyNotes;
|
|
168
168
|
const _createNote = (basePath, token, note) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -184,10 +184,10 @@ const _deleteNote = (basePath, token, noteId) => __awaiter(void 0, void 0, void
|
|
|
184
184
|
});
|
|
185
185
|
exports._deleteNote = _deleteNote;
|
|
186
186
|
const _fetchUserNotifications = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
187
|
-
var
|
|
187
|
+
var _a;
|
|
188
188
|
const base = (0, base_1.getBasePath)(basePath);
|
|
189
189
|
const userNotifications = yield (0, api_1.getRequest)(`${base.USER_NOTIFICATIONS}`, token);
|
|
190
|
-
return (((
|
|
190
|
+
return (((_a = userNotifications === null || userNotifications === void 0 ? void 0 : userNotifications.data) === null || _a === void 0 ? void 0 : _a.data) ||
|
|
191
191
|
(userNotifications === null || userNotifications === void 0 ? void 0 : userNotifications.data) ||
|
|
192
192
|
userNotifications);
|
|
193
193
|
});
|
|
@@ -270,9 +270,9 @@ const _updateVisibilityAttendee = (basePath, token, attendeeId, visibility) => _
|
|
|
270
270
|
});
|
|
271
271
|
exports._updateVisibilityAttendee = _updateVisibilityAttendee;
|
|
272
272
|
const _fetchAttendeeDetails = (basePath, token, attendeeId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
273
|
-
var
|
|
273
|
+
var _a;
|
|
274
274
|
const base = (0, base_1.getBasePath)(basePath);
|
|
275
275
|
const attendee = yield (0, api_1.getRequest)(`${base.ATTENDEES}/${attendeeId}`, token);
|
|
276
|
-
return ((
|
|
276
|
+
return ((_a = attendee === null || attendee === void 0 ? void 0 : attendee.data) === null || _a === void 0 ? void 0 : _a.data) || (attendee === null || attendee === void 0 ? void 0 : attendee.data) || attendee;
|
|
277
277
|
});
|
|
278
278
|
exports._fetchAttendeeDetails = _fetchAttendeeDetails;
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoginResponse, ResetPasswordBody, SendResetPasswordBody } from "../context/types";
|
|
2
|
-
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, RegisterManagerInput, ResponseAccountEventsType, SessionType } from "./types";
|
|
2
|
+
import { ColocatedEventDetailsResponse, ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, RegisterManagerInput, ResponseAccountEventsType, SessionType, FeedType, FeedInputType, FeedDetailsType } from "./types";
|
|
3
3
|
import { APIResponse } from "../../types/base";
|
|
4
4
|
import { AccountDetails, GroupType } from "../event/types";
|
|
5
5
|
import { ResponsePaginationType } from "../public/types";
|
|
@@ -26,6 +26,7 @@ export declare const _fetchAccountGroups: (basePath: string, token: string, acco
|
|
|
26
26
|
export declare const _createAccountGroup: (basePath: string, token: string, accountId: string, data: GroupInputType) => Promise<GroupResponseType>;
|
|
27
27
|
export declare const _updateAccountGroup: (basePath: string, token: string, accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
|
|
28
28
|
export declare const _fetchColocatedEvents: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
|
|
29
|
+
export declare const _fetchColocatedEventDetails: (basePath: string, token: string, accountId: string, eventId: string) => Promise<ColocatedEventDetailsResponse>;
|
|
29
30
|
export declare const _createColocatedEvents: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
30
31
|
export declare const _editColocatedEvents: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
31
32
|
export declare const _deleteColocatedEvents: (basePath: string, token: string, id: string) => Promise<string>;
|
|
@@ -36,3 +37,8 @@ export declare const _fetchSessionTypes: (basePath: string, token: string, accou
|
|
|
36
37
|
export declare const _updateSessionTypes: (basePath: string, token: string, accountId: string, data: {
|
|
37
38
|
session_types: string;
|
|
38
39
|
}) => Promise<AccountDetails>;
|
|
40
|
+
export declare const _fetchFeeds: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<FeedType>>;
|
|
41
|
+
export declare const _fetchFeed: (basePath: string, token: string, accountId: string, feedId: string) => Promise<FeedDetailsType>;
|
|
42
|
+
export declare const _createFeed: (basePath: string, token: string, accountId: string, data: FeedInputType, files: any[]) => Promise<FeedType>;
|
|
43
|
+
export declare const _updateFeed: (basePath: string, token: string, accountId: string, feedId: string, data: FeedInputType, files: any[]) => Promise<any>;
|
|
44
|
+
export declare const _deleteFeed: (basePath: string, token: string, accountId: string, feedId: string) => Promise<any>;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports._updateSessionTypes = exports._fetchSessionTypes = exports._updatePackages = exports._deleteColocatedEvents = exports._editColocatedEvents = exports._createColocatedEvents = exports._fetchColocatedEvents = exports._updateAccountGroup = exports._createAccountGroup = exports._fetchAccountGroups = exports._fetchEventsByAccount = exports._fetchAccountEvents = exports._deletePaymentAccount = exports._deleteFinanceManager = exports._inviteFinanceManager = exports._confirmManagerNative = exports._confirmManager = exports._registerManagerNative = exports._registerManager = exports._deleteContentManager = exports._inviteContentManager = exports._updatePaymentAccount = exports._createPaymentAccount = exports._fetchPaymentAccounts = exports._fetchPaymentAccount = exports._sendNewPassword = exports._resetPassword = exports._logout = exports._login = void 0;
|
|
12
|
+
exports._deleteFeed = exports._updateFeed = exports._createFeed = exports._fetchFeed = exports._fetchFeeds = exports._updateSessionTypes = exports._fetchSessionTypes = exports._updatePackages = exports._deleteColocatedEvents = exports._editColocatedEvents = exports._createColocatedEvents = exports._fetchColocatedEventDetails = exports._fetchColocatedEvents = exports._updateAccountGroup = exports._createAccountGroup = exports._fetchAccountGroups = exports._fetchEventsByAccount = exports._fetchAccountEvents = exports._deletePaymentAccount = exports._deleteFinanceManager = exports._inviteFinanceManager = exports._confirmManagerNative = exports._confirmManager = exports._registerManagerNative = exports._registerManager = exports._deleteContentManager = exports._inviteContentManager = exports._updatePaymentAccount = exports._createPaymentAccount = exports._fetchPaymentAccounts = exports._fetchPaymentAccount = exports._sendNewPassword = exports._resetPassword = exports._logout = exports._login = void 0;
|
|
13
13
|
const api_1 = require("../../utils/api");
|
|
14
14
|
const base_1 = require("../../utils/base");
|
|
15
15
|
const _login = (basePath, email, password) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -160,6 +160,12 @@ const _fetchColocatedEvents = (basePath, token, accountId) => __awaiter(void 0,
|
|
|
160
160
|
return groups;
|
|
161
161
|
});
|
|
162
162
|
exports._fetchColocatedEvents = _fetchColocatedEvents;
|
|
163
|
+
const _fetchColocatedEventDetails = (basePath, token, accountId, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
164
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
165
|
+
const eventDetails = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/${accountId}/colocated-events/${eventId}`, token);
|
|
166
|
+
return (eventDetails === null || eventDetails === void 0 ? void 0 : eventDetails.data) || eventDetails;
|
|
167
|
+
});
|
|
168
|
+
exports._fetchColocatedEventDetails = _fetchColocatedEventDetails;
|
|
163
169
|
const _createColocatedEvents = (basePath, token, accountId, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
164
170
|
const base = (0, base_1.getBasePath)(basePath);
|
|
165
171
|
const groups = yield (0, api_1.postRequestWE)(`${base.ACCOUNTS}/${accountId}/colocated-events`, data, token);
|
|
@@ -192,9 +198,39 @@ const _fetchSessionTypes = (basePath, token, accountId) => __awaiter(void 0, voi
|
|
|
192
198
|
});
|
|
193
199
|
exports._fetchSessionTypes = _fetchSessionTypes;
|
|
194
200
|
const _updateSessionTypes = (basePath, token, accountId, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
195
|
-
var
|
|
201
|
+
var _a;
|
|
196
202
|
const base = (0, base_1.getBasePath)(basePath);
|
|
197
203
|
const res = yield (0, api_1.putRequest)(`${base.ACCOUNTS}/${accountId}/session-types`, token, data);
|
|
198
|
-
return ((
|
|
204
|
+
return ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) || (res === null || res === void 0 ? void 0 : res.data) || res;
|
|
199
205
|
});
|
|
200
206
|
exports._updateSessionTypes = _updateSessionTypes;
|
|
207
|
+
const _fetchFeeds = (basePath, token, accountId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
208
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
209
|
+
const feeds = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/${accountId}/feeds`, token);
|
|
210
|
+
return feeds;
|
|
211
|
+
});
|
|
212
|
+
exports._fetchFeeds = _fetchFeeds;
|
|
213
|
+
const _fetchFeed = (basePath, token, accountId, feedId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
214
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
215
|
+
const feed = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/${accountId}/feeds/${feedId}`, token);
|
|
216
|
+
return (feed === null || feed === void 0 ? void 0 : feed.data) || feed;
|
|
217
|
+
});
|
|
218
|
+
exports._fetchFeed = _fetchFeed;
|
|
219
|
+
const _createFeed = (basePath, token, accountId, data, files) => __awaiter(void 0, void 0, void 0, function* () {
|
|
220
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
221
|
+
const feed = yield (0, api_1.postFilesAndDataRequest)(`${base.ACCOUNTS}/${accountId}/feeds`, data, files, token);
|
|
222
|
+
return feed;
|
|
223
|
+
});
|
|
224
|
+
exports._createFeed = _createFeed;
|
|
225
|
+
const _updateFeed = (basePath, token, accountId, feedId, data, files) => __awaiter(void 0, void 0, void 0, function* () {
|
|
226
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
227
|
+
const response = yield (0, api_1.postFilesAndDataRequest)(`${base.ACCOUNTS}/${accountId}/feeds/${feedId}`, data, files !== null && files !== void 0 ? files : [], token, "put");
|
|
228
|
+
return response;
|
|
229
|
+
});
|
|
230
|
+
exports._updateFeed = _updateFeed;
|
|
231
|
+
const _deleteFeed = (basePath, token, accountId, feedId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
232
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
233
|
+
const response = yield (0, api_1.deleteRequestWE)(`${base.ACCOUNTS}/${accountId}/feeds/${feedId}`, token);
|
|
234
|
+
return response;
|
|
235
|
+
});
|
|
236
|
+
exports._deleteFeed = _deleteFeed;
|
|
@@ -81,3 +81,96 @@ export type SessionType = {
|
|
|
81
81
|
description_en: string;
|
|
82
82
|
event_type: "onsite" | "virtual" | "hybrid";
|
|
83
83
|
};
|
|
84
|
+
export type ColocatedEventDetailsEvent = {
|
|
85
|
+
event_id: string;
|
|
86
|
+
event_name: string;
|
|
87
|
+
event_start_date: string;
|
|
88
|
+
event_end_date: string;
|
|
89
|
+
event_timezone: string;
|
|
90
|
+
};
|
|
91
|
+
export type ColocatedEventDetailsResponse = {
|
|
92
|
+
event_colocated_id: string;
|
|
93
|
+
event_colocated_name: string;
|
|
94
|
+
events: ColocatedEventDetailsEvent[];
|
|
95
|
+
};
|
|
96
|
+
export type FeedType = {
|
|
97
|
+
id: string;
|
|
98
|
+
headline: string;
|
|
99
|
+
sub_headline: string;
|
|
100
|
+
about: string;
|
|
101
|
+
slug: string;
|
|
102
|
+
tags: string;
|
|
103
|
+
published: boolean;
|
|
104
|
+
design: {
|
|
105
|
+
design_feature_image?: string;
|
|
106
|
+
design_cover_image?: string;
|
|
107
|
+
[key: string]: any;
|
|
108
|
+
};
|
|
109
|
+
content: {
|
|
110
|
+
content_type?: string;
|
|
111
|
+
content_reference?: string;
|
|
112
|
+
[key: string]: any;
|
|
113
|
+
};
|
|
114
|
+
type: "pdf" | "video" | "article" | "webinar" | "survey";
|
|
115
|
+
inbound: string;
|
|
116
|
+
events: string;
|
|
117
|
+
portfolios: string;
|
|
118
|
+
language: string;
|
|
119
|
+
updated_by?: string;
|
|
120
|
+
updated_at: string;
|
|
121
|
+
};
|
|
122
|
+
export type FeedDetailsType = {
|
|
123
|
+
id: string;
|
|
124
|
+
headline: string;
|
|
125
|
+
sub_headline: string;
|
|
126
|
+
about: string;
|
|
127
|
+
slug: string;
|
|
128
|
+
tags: string;
|
|
129
|
+
published: boolean;
|
|
130
|
+
design: {
|
|
131
|
+
design_feature_image?: string;
|
|
132
|
+
design_cover_image?: string;
|
|
133
|
+
[key: string]: any;
|
|
134
|
+
};
|
|
135
|
+
content: {
|
|
136
|
+
content_type?: string;
|
|
137
|
+
content_reference?: string;
|
|
138
|
+
[key: string]: any;
|
|
139
|
+
};
|
|
140
|
+
type: "pdf" | "video" | "article" | "webinar" | "survey";
|
|
141
|
+
inbound: string;
|
|
142
|
+
events: {
|
|
143
|
+
id: string;
|
|
144
|
+
name: string;
|
|
145
|
+
}[];
|
|
146
|
+
portfolios: {
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
}[];
|
|
150
|
+
language: string;
|
|
151
|
+
updated_by?: string;
|
|
152
|
+
updated_at: string;
|
|
153
|
+
};
|
|
154
|
+
export type FeedInputType = {
|
|
155
|
+
headline: string;
|
|
156
|
+
sub_headline: string;
|
|
157
|
+
about: string;
|
|
158
|
+
slug: string;
|
|
159
|
+
tags: string;
|
|
160
|
+
published: number;
|
|
161
|
+
design: {
|
|
162
|
+
design_feature_image?: string;
|
|
163
|
+
design_cover_image?: string;
|
|
164
|
+
[key: string]: any;
|
|
165
|
+
};
|
|
166
|
+
content: {
|
|
167
|
+
content_type?: string;
|
|
168
|
+
content_reference?: string;
|
|
169
|
+
[key: string]: any;
|
|
170
|
+
};
|
|
171
|
+
type: "pdf" | "video" | "article" | "webinar" | "survey";
|
|
172
|
+
inbound: string;
|
|
173
|
+
events: string;
|
|
174
|
+
portfolios: string;
|
|
175
|
+
language: string;
|
|
176
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/api/context/types.js
CHANGED
|
File without changes
|
package/lib/api/event/index.d.ts
CHANGED
|
File without changes
|
package/lib/api/event/index.js
CHANGED
|
@@ -46,10 +46,10 @@ const _fetchExhibitions = (basePath, token, eventId) => __awaiter(void 0, void 0
|
|
|
46
46
|
});
|
|
47
47
|
exports._fetchExhibitions = _fetchExhibitions;
|
|
48
48
|
const _fetchEventDetails = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
|
-
var
|
|
49
|
+
var _a;
|
|
50
50
|
const base = (0, base_1.getBasePath)(basePath);
|
|
51
51
|
const eventDetails = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}`, token);
|
|
52
|
-
return ((
|
|
52
|
+
return ((_a = eventDetails === null || eventDetails === void 0 ? void 0 : eventDetails.data) === null || _a === void 0 ? void 0 : _a.data) || (eventDetails === null || eventDetails === void 0 ? void 0 : eventDetails.data) || eventDetails;
|
|
53
53
|
});
|
|
54
54
|
exports._fetchEventDetails = _fetchEventDetails;
|
|
55
55
|
const _sendNotification = (basePath, token, eventId, message, date, url) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -185,10 +185,10 @@ const _deleteDiscount = (basePath, token, discountId) => __awaiter(void 0, void
|
|
|
185
185
|
});
|
|
186
186
|
exports._deleteDiscount = _deleteDiscount;
|
|
187
187
|
const _fetchExhibitionDetails = (basePath, token, exhibitionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
188
|
-
var
|
|
188
|
+
var _a;
|
|
189
189
|
const base = (0, base_1.getBasePath)(basePath);
|
|
190
190
|
const exhibitionDetails = yield (0, api_1.getRequest)(`${base.EXHIBITIONS}/${exhibitionId}`, token);
|
|
191
|
-
return (((
|
|
191
|
+
return (((_a = exhibitionDetails === null || exhibitionDetails === void 0 ? void 0 : exhibitionDetails.data) === null || _a === void 0 ? void 0 : _a.data) ||
|
|
192
192
|
(exhibitionDetails === null || exhibitionDetails === void 0 ? void 0 : exhibitionDetails.data) ||
|
|
193
193
|
exhibitionDetails);
|
|
194
194
|
});
|
|
@@ -212,10 +212,10 @@ const _deleteLocation = (basePath, token, locationId) => __awaiter(void 0, void
|
|
|
212
212
|
});
|
|
213
213
|
exports._deleteLocation = _deleteLocation;
|
|
214
214
|
const _fetchEventLocations = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
215
|
-
var
|
|
215
|
+
var _a;
|
|
216
216
|
const base = (0, base_1.getBasePath)(basePath);
|
|
217
217
|
const { data: eventLocations } = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/locations`, token);
|
|
218
|
-
return ((
|
|
218
|
+
return ((_a = eventLocations === null || eventLocations === void 0 ? void 0 : eventLocations.data) === null || _a === void 0 ? void 0 : _a.data) || (eventLocations === null || eventLocations === void 0 ? void 0 : eventLocations.data) || eventLocations;
|
|
219
219
|
});
|
|
220
220
|
exports._fetchEventLocations = _fetchEventLocations;
|
|
221
221
|
const _fetchEventStreams = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -225,19 +225,19 @@ const _fetchEventStreams = (basePath, token, eventId) => __awaiter(void 0, void
|
|
|
225
225
|
});
|
|
226
226
|
exports._fetchEventStreams = _fetchEventStreams;
|
|
227
227
|
const _fetchUserRegistrationsEvents = (basePath, token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
228
|
-
var
|
|
228
|
+
var _a;
|
|
229
229
|
const base = (0, base_1.getBasePath)(basePath);
|
|
230
230
|
const { data: userRegistrationsEvents } = yield (0, api_1.getRequest)(`${base.USERS}/registrations`, token);
|
|
231
|
-
return (((
|
|
231
|
+
return (((_a = userRegistrationsEvents === null || userRegistrationsEvents === void 0 ? void 0 : userRegistrationsEvents.data) === null || _a === void 0 ? void 0 : _a.data) ||
|
|
232
232
|
(userRegistrationsEvents === null || userRegistrationsEvents === void 0 ? void 0 : userRegistrationsEvents.data) ||
|
|
233
233
|
userRegistrationsEvents);
|
|
234
234
|
});
|
|
235
235
|
exports._fetchUserRegistrationsEvents = _fetchUserRegistrationsEvents;
|
|
236
236
|
const _fetchEventDocuments = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
237
|
-
var
|
|
237
|
+
var _a;
|
|
238
238
|
const base = (0, base_1.getBasePath)(basePath);
|
|
239
239
|
const { data: eventDocuments } = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/documents`, token);
|
|
240
|
-
return ((
|
|
240
|
+
return ((_a = eventDocuments === null || eventDocuments === void 0 ? void 0 : eventDocuments.data) === null || _a === void 0 ? void 0 : _a.data) || (eventDocuments === null || eventDocuments === void 0 ? void 0 : eventDocuments.data) || eventDocuments;
|
|
241
241
|
});
|
|
242
242
|
exports._fetchEventDocuments = _fetchEventDocuments;
|
|
243
243
|
const _assignDocumentToEvent = (basePath, token, eventId, documentId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -745,19 +745,19 @@ const _fetchPublicEventAdvertisement = (basePath, eventId) => __awaiter(void 0,
|
|
|
745
745
|
});
|
|
746
746
|
exports._fetchPublicEventAdvertisement = _fetchPublicEventAdvertisement;
|
|
747
747
|
const _activateDataManagers = (basePath, token, eventId, attendeeIds) => __awaiter(void 0, void 0, void 0, function* () {
|
|
748
|
-
var
|
|
748
|
+
var _a;
|
|
749
749
|
const base = (0, base_1.getBasePath)(basePath);
|
|
750
750
|
const attendeeIdsString = attendeeIds.join("%2");
|
|
751
751
|
const attendees = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/data-manager?attendee_list=${attendeeIdsString}`, null, token);
|
|
752
|
-
return ((
|
|
752
|
+
return ((_a = attendees === null || attendees === void 0 ? void 0 : attendees.data) === null || _a === void 0 ? void 0 : _a.data) || (attendees === null || attendees === void 0 ? void 0 : attendees.data) || attendees;
|
|
753
753
|
});
|
|
754
754
|
exports._activateDataManagers = _activateDataManagers;
|
|
755
755
|
const _deactivateDataManagers = (basePath, token, eventId, attendeeIds) => __awaiter(void 0, void 0, void 0, function* () {
|
|
756
|
-
var
|
|
756
|
+
var _a;
|
|
757
757
|
const base = (0, base_1.getBasePath)(basePath);
|
|
758
758
|
const attendeeIdsString = attendeeIds.join("%2");
|
|
759
759
|
const attendees = yield (0, api_1.deleteRequestWE)(`${base.EVENTS}/${eventId}/data-manager?attendee_list=${attendeeIdsString}`, token);
|
|
760
|
-
return ((
|
|
760
|
+
return ((_a = attendees === null || attendees === void 0 ? void 0 : attendees.data) === null || _a === void 0 ? void 0 : _a.data) || (attendees === null || attendees === void 0 ? void 0 : attendees.data) || attendees;
|
|
761
761
|
});
|
|
762
762
|
exports._deactivateDataManagers = _deactivateDataManagers;
|
|
763
763
|
const _fetchAccountDocuments = (basePath, token, accountId, params) => __awaiter(void 0, void 0, void 0, function* () {
|
package/lib/api/event/types.d.ts
CHANGED
|
File without changes
|
package/lib/api/event/types.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MENU_ITEM_TYPE = exports.DEFAULT_MENU_ITEM = exports.DEFAULT_MENU_TYPES = exports.MENU_ITEM_STYLING_TYPE = exports.MENU_ITEM_STYLING = exports.MENU_ITEM_TYPES = exports.GROUP_STYLE = void 0;
|
|
4
4
|
exports.GROUP_STYLE = [
|
|
5
|
-
{ "": "" },
|
|
6
|
-
{ "1": "default" },
|
|
7
|
-
{ "2": "highlighted" },
|
|
5
|
+
{ "": "" }, // unassigned, top of the list
|
|
6
|
+
{ "1": "default" }, // BP
|
|
7
|
+
{ "2": "highlighted" }, // PP
|
|
8
8
|
{ "3": "big" }, // LP
|
|
9
9
|
];
|
|
10
10
|
exports.MENU_ITEM_TYPES = {
|
|
File without changes
|
|
@@ -20,10 +20,10 @@ const _fetchMeetings = (basePath, token) => __awaiter(void 0, void 0, void 0, fu
|
|
|
20
20
|
});
|
|
21
21
|
exports._fetchMeetings = _fetchMeetings;
|
|
22
22
|
const _fetchArrangedMeetings = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
-
var
|
|
23
|
+
var _a;
|
|
24
24
|
const base = (0, base_1.getBasePath)(basePath);
|
|
25
25
|
const response = yield (0, api_1.getRequest)(`${base.EVENTS}/${eventId}/meetings/arranged`, token);
|
|
26
|
-
return ((
|
|
26
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.data) || (response === null || response === void 0 ? void 0 : response.data) || response;
|
|
27
27
|
});
|
|
28
28
|
exports._fetchArrangedMeetings = _fetchArrangedMeetings;
|
|
29
29
|
const _fetchLocation = (basePath, token, locationId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
File without changes
|
|
File without changes
|
package/lib/api/pages/index.d.ts
CHANGED
|
File without changes
|
package/lib/api/pages/index.js
CHANGED
|
File without changes
|
package/lib/api/pages/types.d.ts
CHANGED
|
File without changes
|
package/lib/api/pages/types.js
CHANGED
|
File without changes
|
package/lib/api/posts/index.d.ts
CHANGED
|
File without changes
|
package/lib/api/posts/index.js
CHANGED
|
@@ -20,10 +20,10 @@ const _fetchPosts = (basePath, token, eventId) => __awaiter(void 0, void 0, void
|
|
|
20
20
|
});
|
|
21
21
|
exports._fetchPosts = _fetchPosts;
|
|
22
22
|
const _fetchPostDetails = (basePath, token, postId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
-
var
|
|
23
|
+
var _a;
|
|
24
24
|
const base = (0, base_1.getBasePath)(basePath);
|
|
25
25
|
const postDetails = yield (0, api_1.getRequest)(`${base.POSTS}/${postId}`, token);
|
|
26
|
-
return ((
|
|
26
|
+
return ((_a = postDetails === null || postDetails === void 0 ? void 0 : postDetails.data) === null || _a === void 0 ? void 0 : _a.data) || (postDetails === null || postDetails === void 0 ? void 0 : postDetails.data) || postDetails;
|
|
27
27
|
});
|
|
28
28
|
exports._fetchPostDetails = _fetchPostDetails;
|
|
29
29
|
const _likePost = (basePath, token, postId) => __awaiter(void 0, void 0, void 0, function* () {
|
package/lib/api/posts/types.d.ts
CHANGED
|
File without changes
|
package/lib/api/posts/types.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/api/public/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/api/public/types.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/api/tracks/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/api/tracks/types.js
CHANGED
|
File without changes
|
package/lib/api/types.d.ts
CHANGED
|
File without changes
|
package/lib/api/types.js
CHANGED
|
File without changes
|
package/lib/constants/api.d.ts
CHANGED
|
@@ -4,120 +4,120 @@ export declare const PRODUCTION_URL_UNAUTHORIZED = "https://api.we-conect.com";
|
|
|
4
4
|
export declare const STAGING_URL_UNAUTHORIZED = "https://api-staging.hubs101.com";
|
|
5
5
|
export declare const WEB_APP_STAGE = "https://staging.hubs101.com";
|
|
6
6
|
export declare const WEB_APP_PROD = "https://app.hubs101.com";
|
|
7
|
-
export declare const PRODUCTION_URL
|
|
8
|
-
export declare const STAGING_URL
|
|
9
|
-
export declare const UNAUTHORIZED_PRODUCTION_URL
|
|
10
|
-
export declare const UNAUTHORIZED_STAGING_URL
|
|
7
|
+
export declare const PRODUCTION_URL = "https://api.we-conect.com/api/v1";
|
|
8
|
+
export declare const STAGING_URL = "https://api-staging.hubs101.com/api/v1";
|
|
9
|
+
export declare const UNAUTHORIZED_PRODUCTION_URL = "https://api.we-conect.com/v1";
|
|
10
|
+
export declare const UNAUTHORIZED_STAGING_URL = "https://api-staging.hubs101.com/v1";
|
|
11
11
|
export declare const BASE_PROD_RESOURCE_URL = "https://media.hubs101.com/";
|
|
12
12
|
export declare const BASE_STAGE_RESOURCE_URL = "https://staging-media.hubs101.com/";
|
|
13
13
|
export declare const API_PROD_PATH: Readonly<{
|
|
14
|
-
ACCOUNTS:
|
|
15
|
-
ATTENDEES:
|
|
14
|
+
ACCOUNTS: "https://api.we-conect.com/api/v1/accounts";
|
|
15
|
+
ATTENDEES: "https://api.we-conect.com/api/v1/attendees";
|
|
16
16
|
AUTH: {
|
|
17
17
|
LOGIN: string;
|
|
18
18
|
LOGOUT: string;
|
|
19
19
|
TOKEN_REFRESH: string;
|
|
20
20
|
RESET_PASSWORD: string;
|
|
21
21
|
};
|
|
22
|
-
CONNECTIONS:
|
|
23
|
-
EVENTS:
|
|
24
|
-
PROFILE:
|
|
25
|
-
USERS:
|
|
26
|
-
SESSIONS:
|
|
27
|
-
TRACKS:
|
|
28
|
-
EXHIBITIONS:
|
|
29
|
-
USER_EVENTS:
|
|
22
|
+
CONNECTIONS: "https://api.we-conect.com/api/v1/users/connections";
|
|
23
|
+
EVENTS: "https://api.we-conect.com/api/v1/events";
|
|
24
|
+
PROFILE: "https://api.we-conect.com/api/v1/users/profile";
|
|
25
|
+
USERS: "https://api.we-conect.com/api/v1/users";
|
|
26
|
+
SESSIONS: "https://api.we-conect.com/api/v1/sessions";
|
|
27
|
+
TRACKS: "https://api.we-conect.com/api/v1/tracks";
|
|
28
|
+
EXHIBITIONS: "https://api.we-conect.com/api/v1/exhibitions";
|
|
29
|
+
USER_EVENTS: "https://api.we-conect.com/api/v1/users/events";
|
|
30
30
|
REGISTER: "https://api.we-conect.com/v1/register";
|
|
31
31
|
ZOOM: {
|
|
32
32
|
SIGNATURE: string;
|
|
33
33
|
};
|
|
34
|
-
MEETINGS_USERS_API_KEY:
|
|
35
|
-
LOCATION_API_KEY:
|
|
36
|
-
MEETINGS_API_KEY:
|
|
37
|
-
POSTS:
|
|
38
|
-
LINKEDIN_IMPORT_PROFILE:
|
|
39
|
-
ACTIONS_EXHIBITIONS:
|
|
40
|
-
ACTIONS_ATTENDEES:
|
|
41
|
-
YOUTUBE_SDK_API:
|
|
42
|
-
DOCUMENTS:
|
|
43
|
-
ACTIONS_SESSIONS:
|
|
34
|
+
MEETINGS_USERS_API_KEY: "https://api.we-conect.com/api/v1/users/meetings";
|
|
35
|
+
LOCATION_API_KEY: "https://api.we-conect.com/api/v1/locations";
|
|
36
|
+
MEETINGS_API_KEY: "https://api.we-conect.com/api/v1/meetings";
|
|
37
|
+
POSTS: "https://api.we-conect.com/api/v1/posts";
|
|
38
|
+
LINKEDIN_IMPORT_PROFILE: "https://api.we-conect.com/api/v1/linkedin/authorization";
|
|
39
|
+
ACTIONS_EXHIBITIONS: "https://api.we-conect.com/api/v1/actions/exhibitions";
|
|
40
|
+
ACTIONS_ATTENDEES: "https://api.we-conect.com/api/v1/actions/profiles";
|
|
41
|
+
YOUTUBE_SDK_API: "https://api.we-conect.com/api/v1/sdk/youtube";
|
|
42
|
+
DOCUMENTS: "https://api.we-conect.com/api/v1/documents";
|
|
43
|
+
ACTIONS_SESSIONS: "https://api.we-conect.com/api/v1/actions/sessions";
|
|
44
44
|
TERMS_URL: "https://hubs101.com/terms-of-use";
|
|
45
45
|
PRIVACY_URL: "https://hubs101.com/privacy-policy";
|
|
46
46
|
VERSIONS: "https://api.we-conect.com/versions";
|
|
47
47
|
PASSWORD_ACTIVATION: "https://api.we-conect.com/v1/activation";
|
|
48
|
-
VIMEO_VIEW:
|
|
49
|
-
NOTES:
|
|
50
|
-
MEETINGS_ARRANGE:
|
|
51
|
-
USER_NOTIFICATIONS:
|
|
52
|
-
NOTIFICATIONS:
|
|
53
|
-
GROUPS:
|
|
54
|
-
OPTIONS:
|
|
55
|
-
TICKETS:
|
|
56
|
-
DISCOUNTS:
|
|
57
|
-
LOCATIONS:
|
|
58
|
-
PAGES:
|
|
59
|
-
PORTFOLIOS:
|
|
60
|
-
PAYMENT_ACCOUNTS:
|
|
61
|
-
ACCOUNT_TRIAL:
|
|
62
|
-
INVITATION:
|
|
63
|
-
BOOKINGS:
|
|
64
|
-
PUBLIC_BOOKINGS:
|
|
48
|
+
VIMEO_VIEW: "https://api.we-conect.com/api/v1/sdk/vimeo/mobile";
|
|
49
|
+
NOTES: "https://api.we-conect.com/api/v1/users/notes";
|
|
50
|
+
MEETINGS_ARRANGE: "https://api.we-conect.com/api/v1/meetings/arrange";
|
|
51
|
+
USER_NOTIFICATIONS: "https://api.we-conect.com/api/v1/users/notifications";
|
|
52
|
+
NOTIFICATIONS: "https://api.we-conect.com/api/v1/notifications";
|
|
53
|
+
GROUPS: "https://api.we-conect.com/api/v1/groups";
|
|
54
|
+
OPTIONS: "https://api.we-conect.com/api/v1/options";
|
|
55
|
+
TICKETS: "https://api.we-conect.com/api/v1/tickets";
|
|
56
|
+
DISCOUNTS: "https://api.we-conect.com/api/v1/discounts";
|
|
57
|
+
LOCATIONS: "https://api.we-conect.com/api/v1/locations";
|
|
58
|
+
PAGES: "https://api.we-conect.com/api/v1/pages";
|
|
59
|
+
PORTFOLIOS: "https://api.we-conect.com/api/v1/portfolios";
|
|
60
|
+
PAYMENT_ACCOUNTS: "https://api.we-conect.com/api/v1/payment-account";
|
|
61
|
+
ACCOUNT_TRIAL: "https://api.we-conect.com/v1/accounts/trial";
|
|
62
|
+
INVITATION: "https://api.we-conect.com/v1/invitation";
|
|
63
|
+
BOOKINGS: "https://api.we-conect.com/api/v1/bookings";
|
|
64
|
+
PUBLIC_BOOKINGS: "https://api.we-conect.com/v1/bookings";
|
|
65
65
|
}>;
|
|
66
66
|
export declare const API_STAGE_PATH: Readonly<{
|
|
67
|
-
ACCOUNTS:
|
|
68
|
-
ATTENDEES:
|
|
67
|
+
ACCOUNTS: "https://api-staging.hubs101.com/api/v1/accounts";
|
|
68
|
+
ATTENDEES: "https://api-staging.hubs101.com/api/v1/attendees";
|
|
69
69
|
AUTH: {
|
|
70
70
|
LOGIN: string;
|
|
71
71
|
LOGOUT: string;
|
|
72
72
|
TOKEN_REFRESH: string;
|
|
73
73
|
RESET_PASSWORD: string;
|
|
74
74
|
};
|
|
75
|
-
CONNECTIONS:
|
|
76
|
-
EVENTS:
|
|
77
|
-
PROFILE:
|
|
78
|
-
USERS:
|
|
79
|
-
SESSIONS:
|
|
80
|
-
TRACKS:
|
|
81
|
-
EXHIBITIONS:
|
|
82
|
-
USER_EVENTS:
|
|
75
|
+
CONNECTIONS: "https://api-staging.hubs101.com/api/v1/users/connections";
|
|
76
|
+
EVENTS: "https://api-staging.hubs101.com/api/v1/events";
|
|
77
|
+
PROFILE: "https://api-staging.hubs101.com/api/v1/users/profile";
|
|
78
|
+
USERS: "https://api-staging.hubs101.com/api/v1/users";
|
|
79
|
+
SESSIONS: "https://api-staging.hubs101.com/api/v1/sessions";
|
|
80
|
+
TRACKS: "https://api-staging.hubs101.com/api/v1/tracks";
|
|
81
|
+
EXHIBITIONS: "https://api-staging.hubs101.com/api/v1/exhibitions";
|
|
82
|
+
USER_EVENTS: "https://api-staging.hubs101.com/api/v1/users/events";
|
|
83
83
|
REGISTER: "https://api-staging.hubs101.com/v1/register";
|
|
84
84
|
ZOOM: {
|
|
85
85
|
SIGNATURE: string;
|
|
86
86
|
};
|
|
87
|
-
MEETINGS_USERS_API_KEY:
|
|
88
|
-
LOCATION_API_KEY:
|
|
89
|
-
MEETINGS_API_KEY:
|
|
90
|
-
POSTS:
|
|
91
|
-
LINKEDIN_IMPORT_PROFILE:
|
|
92
|
-
ACTIONS_EXHIBITIONS:
|
|
93
|
-
ACTIONS_ATTENDEES:
|
|
94
|
-
YOUTUBE_SDK_API:
|
|
95
|
-
DOCUMENTS:
|
|
96
|
-
ACTIONS_SESSIONS:
|
|
87
|
+
MEETINGS_USERS_API_KEY: "https://api-staging.hubs101.com/api/v1/users/meetings";
|
|
88
|
+
LOCATION_API_KEY: "https://api-staging.hubs101.com/api/v1/locations";
|
|
89
|
+
MEETINGS_API_KEY: "https://api-staging.hubs101.com/api/v1/meetings";
|
|
90
|
+
POSTS: "https://api-staging.hubs101.com/api/v1/posts";
|
|
91
|
+
LINKEDIN_IMPORT_PROFILE: "https://api-staging.hubs101.com/api/v1/linkedin/authorization";
|
|
92
|
+
ACTIONS_EXHIBITIONS: "https://api-staging.hubs101.com/api/v1/actions/exhibitions";
|
|
93
|
+
ACTIONS_ATTENDEES: "https://api-staging.hubs101.com/api/v1/actions/profiles";
|
|
94
|
+
YOUTUBE_SDK_API: "https://api-staging.hubs101.com/api/v1/sdk/youtube";
|
|
95
|
+
DOCUMENTS: "https://api-staging.hubs101.com/api/v1/documents";
|
|
96
|
+
ACTIONS_SESSIONS: "https://api-staging.hubs101.com/api/v1/actions/sessions";
|
|
97
97
|
TERMS_URL: "https://hubs101.com/terms-of-use";
|
|
98
98
|
PRIVACY_URL: "https://hubs101.com/privacy-policy";
|
|
99
99
|
VERSIONS: "https://api-staging.hubs101.com/versions";
|
|
100
100
|
PASSWORD_ACTIVATION: "https://api-staging.hubs101.com/v1/activation";
|
|
101
101
|
JITSI_RAW: "https://staging.hubs101.com/virtual-meeting-raw";
|
|
102
|
-
VIMEO_VIEW:
|
|
103
|
-
NOTES:
|
|
104
|
-
MEETINGS_ARRANGE:
|
|
105
|
-
USER_NOTIFICATIONS:
|
|
106
|
-
NOTIFICATIONS:
|
|
107
|
-
GROUPS:
|
|
108
|
-
OPTIONS:
|
|
109
|
-
TICKETS:
|
|
110
|
-
DISCOUNTS:
|
|
111
|
-
LOCATIONS:
|
|
112
|
-
PAGES:
|
|
113
|
-
PORTFOLIOS:
|
|
114
|
-
PAYMENT_ACCOUNTS:
|
|
115
|
-
ACCOUNT_TRIAL:
|
|
116
|
-
INVITATION:
|
|
117
|
-
BOOKINGS:
|
|
118
|
-
PUBLIC_BOOKINGS:
|
|
119
|
-
ACTIONS_EVENTS:
|
|
120
|
-
ACTIONS_ATTENDEE:
|
|
102
|
+
VIMEO_VIEW: "https://api-staging.hubs101.com/api/v1/sdk/vimeo/mobile";
|
|
103
|
+
NOTES: "https://api-staging.hubs101.com/api/v1/users/notes";
|
|
104
|
+
MEETINGS_ARRANGE: "https://api-staging.hubs101.com/api/v1/meetings/arrange";
|
|
105
|
+
USER_NOTIFICATIONS: "https://api-staging.hubs101.com/api/v1/users/notifications";
|
|
106
|
+
NOTIFICATIONS: "https://api-staging.hubs101.com/api/v1/notifications";
|
|
107
|
+
GROUPS: "https://api-staging.hubs101.com/api/v1/groups";
|
|
108
|
+
OPTIONS: "https://api-staging.hubs101.com/api/v1/options";
|
|
109
|
+
TICKETS: "https://api-staging.hubs101.com/api/v1/tickets";
|
|
110
|
+
DISCOUNTS: "https://api-staging.hubs101.com/api/v1/discounts";
|
|
111
|
+
LOCATIONS: "https://api-staging.hubs101.com/api/v1/locations";
|
|
112
|
+
PAGES: "https://api-staging.hubs101.com/api/v1/pages";
|
|
113
|
+
PORTFOLIOS: "https://api-staging.hubs101.com/api/v1/portfolios";
|
|
114
|
+
PAYMENT_ACCOUNTS: "https://api-staging.hubs101.com/api/v1/payment-account";
|
|
115
|
+
ACCOUNT_TRIAL: "https://api-staging.hubs101.com/v1/accounts/trial";
|
|
116
|
+
INVITATION: "https://api-staging.hubs101.com/v1/invitation";
|
|
117
|
+
BOOKINGS: "https://api-staging.hubs101.com/api/v1/bookings";
|
|
118
|
+
PUBLIC_BOOKINGS: "https://api-staging.hubs101.com/v1/bookings";
|
|
119
|
+
ACTIONS_EVENTS: "https://api-staging.hubs101.com/api/v1/actions/events";
|
|
120
|
+
ACTIONS_ATTENDEE: "https://api-staging.hubs101.com/api/v1/actions/attendees";
|
|
121
121
|
}>;
|
|
122
122
|
export declare const ACTION_NAME: {
|
|
123
123
|
readonly VIEW: "view";
|
package/lib/constants/api.js
CHANGED
|
File without changes
|
package/lib/index.d.ts
CHANGED
|
File without changes
|
package/lib/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -32,7 +42,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
42
|
});
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.useAPIContext = exports.BaseAPI =
|
|
45
|
+
exports.useAPIContext = exports.BaseAPI = void 0;
|
|
46
|
+
exports.EventAPIProvider = EventAPIProvider;
|
|
36
47
|
const EventAPIContext_1 = __importStar(require("./api/context/EventAPIContext"));
|
|
37
48
|
/* eslint-disable prefer-arrow/prefer-arrow-functions */
|
|
38
49
|
const react_1 = __importStar(require("react"));
|
|
@@ -965,6 +976,30 @@ function EventAPIProvider(props) {
|
|
|
965
976
|
(0, api_1.validateConfig)(config);
|
|
966
977
|
return (0, authentication_1._fetchColocatedEvents)(config.baseUrl, config.token, accountId);
|
|
967
978
|
}), [config, config.baseUrl, config.token]);
|
|
979
|
+
const fetchColocatedEventDetails = (0, react_1.useCallback)((accountId, eventId) => __awaiter(this, void 0, void 0, function* () {
|
|
980
|
+
(0, api_1.validateConfig)(config);
|
|
981
|
+
return (0, authentication_1._fetchColocatedEventDetails)(config.baseUrl, config.token, accountId, eventId);
|
|
982
|
+
}), [config, config.baseUrl, config.token]);
|
|
983
|
+
const fetchFeeds = (0, react_1.useCallback)((accountId) => __awaiter(this, void 0, void 0, function* () {
|
|
984
|
+
(0, api_1.validateConfig)(config);
|
|
985
|
+
return (0, authentication_1._fetchFeeds)(config.baseUrl, config.token, accountId);
|
|
986
|
+
}), [config, config.baseUrl, config.token]);
|
|
987
|
+
const fetchFeed = (0, react_1.useCallback)((accountId, feedId) => __awaiter(this, void 0, void 0, function* () {
|
|
988
|
+
(0, api_1.validateConfig)(config);
|
|
989
|
+
return (0, authentication_1._fetchFeed)(config.baseUrl, config.token, accountId, feedId);
|
|
990
|
+
}), [config, config.baseUrl, config.token]);
|
|
991
|
+
const createFeed = (0, react_1.useCallback)((accountId, data, files) => __awaiter(this, void 0, void 0, function* () {
|
|
992
|
+
(0, api_1.validateConfig)(config);
|
|
993
|
+
return (0, authentication_1._createFeed)(config.baseUrl, config.token, accountId, data, files);
|
|
994
|
+
}), [config, config.baseUrl, config.token]);
|
|
995
|
+
const updateFeed = (0, react_1.useCallback)((accountId, feedId, data, files) => __awaiter(this, void 0, void 0, function* () {
|
|
996
|
+
(0, api_1.validateConfig)(config);
|
|
997
|
+
return (0, authentication_1._updateFeed)(config.baseUrl, config.token, accountId, feedId, data, files);
|
|
998
|
+
}), [config, config.baseUrl, config.token]);
|
|
999
|
+
const deleteFeed = (0, react_1.useCallback)((accountId, feedId) => __awaiter(this, void 0, void 0, function* () {
|
|
1000
|
+
(0, api_1.validateConfig)(config);
|
|
1001
|
+
return (0, authentication_1._deleteFeed)(config.baseUrl, config.token, accountId, feedId);
|
|
1002
|
+
}), [config, config.baseUrl, config.token]);
|
|
968
1003
|
const createColocatedEvents = (0, react_1.useCallback)((accountId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
969
1004
|
(0, api_1.validateConfig)(config);
|
|
970
1005
|
return (0, authentication_1._createColocatedEvents)(config.baseUrl, config.token, accountId, data);
|
|
@@ -1260,6 +1295,12 @@ function EventAPIProvider(props) {
|
|
|
1260
1295
|
updatePortfolioBlogPage,
|
|
1261
1296
|
deletePortfolioBlogPage,
|
|
1262
1297
|
fetchColocatedEvents,
|
|
1298
|
+
fetchFeeds,
|
|
1299
|
+
fetchFeed,
|
|
1300
|
+
createFeed,
|
|
1301
|
+
updateFeed,
|
|
1302
|
+
deleteFeed,
|
|
1303
|
+
fetchColocatedEventDetails,
|
|
1263
1304
|
createColocatedEvents,
|
|
1264
1305
|
editColocatedEvents,
|
|
1265
1306
|
deleteColocatedEvents,
|
|
@@ -1282,7 +1323,6 @@ function EventAPIProvider(props) {
|
|
|
1282
1323
|
fetchSessionTypes,
|
|
1283
1324
|
} }, props.children));
|
|
1284
1325
|
}
|
|
1285
|
-
exports.EventAPIProvider = EventAPIProvider;
|
|
1286
1326
|
exports.BaseAPI = {
|
|
1287
1327
|
fetchEventRegistrations: event_1._fetchEventRegistrations,
|
|
1288
1328
|
fetchExhibitions: event_1._fetchExhibitions,
|
|
@@ -1505,6 +1545,12 @@ exports.BaseAPI = {
|
|
|
1505
1545
|
updatePortfolioBlogPage: event_1._updatePortfolioBlogPage,
|
|
1506
1546
|
deletePortfolioBlogPage: event_1._deletePortfolioBlogPage,
|
|
1507
1547
|
fetchColocatedEvents: authentication_1._fetchColocatedEvents,
|
|
1548
|
+
fetchFeeds: authentication_1._fetchFeeds,
|
|
1549
|
+
fetchFeed: authentication_1._fetchFeed,
|
|
1550
|
+
createFeed: authentication_1._createFeed,
|
|
1551
|
+
updateFeed: authentication_1._updateFeed,
|
|
1552
|
+
deleteFeed: authentication_1._deleteFeed,
|
|
1553
|
+
fetchColocatedEventDetails: authentication_1._fetchColocatedEventDetails,
|
|
1508
1554
|
createColocatedEvents: authentication_1._createColocatedEvents,
|
|
1509
1555
|
editColocatedEvents: authentication_1._editColocatedEvents,
|
|
1510
1556
|
deleteColocatedEvents: authentication_1._deleteColocatedEvents,
|
package/lib/types/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
|
|
2
|
-
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType, SessionType } from "../api/authentication/types";
|
|
2
|
+
import { ColocatedEventDetailsResponse, ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PackageType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType, SessionType, FeedType, FeedInputType, FeedDetailsType } from "../api/authentication/types";
|
|
3
3
|
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
4
4
|
import { Account, AccountDetails, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, GroupType, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
5
5
|
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
@@ -322,6 +322,7 @@ export type BaseAPIType = {
|
|
|
322
322
|
}[]) => Promise<BlogPage>;
|
|
323
323
|
deletePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string) => Promise<APIResponse>;
|
|
324
324
|
fetchColocatedEvents: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
|
|
325
|
+
fetchColocatedEventDetails: (basePath: string, token: string, accountId: string, eventId: string) => Promise<ColocatedEventDetailsResponse>;
|
|
325
326
|
createColocatedEvents: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
326
327
|
editColocatedEvents: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
327
328
|
deleteColocatedEvents: (basePath: string, token: string, id: string) => Promise<string>;
|
|
@@ -345,6 +346,11 @@ export type BaseAPIType = {
|
|
|
345
346
|
fetchColocatedAgenda: (basePath: string, eventId: string) => Promise<SessionFull[]>;
|
|
346
347
|
activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
347
348
|
deactivateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
349
|
+
fetchFeeds: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<FeedType>>;
|
|
350
|
+
fetchFeed: (basePath: string, token: string, accountId: string, feedId: string) => Promise<FeedDetailsType>;
|
|
351
|
+
createFeed: (basePath: string, token: string, accountId: string, data: FeedInputType, files: any[]) => Promise<FeedType>;
|
|
352
|
+
updateFeed: (basePath: string, token: string, accountId: string, feedId: string, data: FeedInputType, files: any[]) => Promise<FeedType>;
|
|
353
|
+
deleteFeed: (basePath: string, token: string, accountId: string, feedId: string) => Promise<any>;
|
|
348
354
|
};
|
|
349
355
|
export type EventAPIType = {
|
|
350
356
|
config: BaseAPIConfigType;
|
|
@@ -595,6 +601,7 @@ export type EventAPIType = {
|
|
|
595
601
|
}[]) => Promise<BlogPage>;
|
|
596
602
|
deletePortfolioBlogPage: (portfolioId: string, blogPostId: string) => Promise<APIResponse>;
|
|
597
603
|
fetchColocatedEvents: (accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
|
|
604
|
+
fetchColocatedEventDetails: (accountId: string, eventId: string) => Promise<ColocatedEventDetailsResponse>;
|
|
598
605
|
createColocatedEvents: (accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
599
606
|
editColocatedEvents: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
|
|
600
607
|
deleteColocatedEvents: (id: string) => Promise<string>;
|
|
@@ -613,11 +620,16 @@ export type EventAPIType = {
|
|
|
613
620
|
session_types: string;
|
|
614
621
|
}) => Promise<AccountDetails>;
|
|
615
622
|
fetchEventsByAccount: (accountId: string, params?: string) => Promise<ResponseAccountEventsType>;
|
|
616
|
-
importTickets: (eventId: string, ticketsList: string[]) => Promise<
|
|
623
|
+
importTickets: (eventId: string, ticketsList: string[]) => Promise<ResponsePaginationType<TicketServerResponse>>;
|
|
617
624
|
fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
|
|
618
625
|
fetchColocatedAgenda: (eventId: string) => Promise<SessionFull[]>;
|
|
619
626
|
activateDataManagers: (eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
620
627
|
deactivateDataManagers: (eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
|
628
|
+
fetchFeeds: (accountId: string) => Promise<ResponsePaginationType<FeedType>>;
|
|
629
|
+
fetchFeed: (accountId: string, feedId: string) => Promise<FeedDetailsType>;
|
|
630
|
+
createFeed: (accountId: string, data: FeedInputType, files: any[]) => Promise<FeedType>;
|
|
631
|
+
updateFeed: (accountId: string, feedId: string, data: FeedInputType, files: any[]) => Promise<FeedType>;
|
|
632
|
+
deleteFeed: (accountId: string, feedId: string) => Promise<any>;
|
|
621
633
|
};
|
|
622
634
|
export type BaseAPIConfigType = {
|
|
623
635
|
baseUrl?: string;
|
package/lib/types/base.js
CHANGED
|
File without changes
|
package/lib/utils/api.d.ts
CHANGED
|
File without changes
|
package/lib/utils/api.js
CHANGED
|
@@ -164,7 +164,7 @@ const postFileRequest = (url, file, param, token) => __awaiter(void 0, void 0, v
|
|
|
164
164
|
return data === null || data === void 0 ? void 0 : data.result;
|
|
165
165
|
});
|
|
166
166
|
exports.postFileRequest = postFileRequest;
|
|
167
|
-
const putRequest = (
|
|
167
|
+
const putRequest = (url_1, token_1, body_1, ...args_1) => __awaiter(void 0, [url_1, token_1, body_1, ...args_1], void 0, function* (url, token, body, withoutStatus = true) {
|
|
168
168
|
let form;
|
|
169
169
|
if (body) {
|
|
170
170
|
form = new FormData();
|
|
@@ -174,7 +174,7 @@ const putRequest = (url, token, body, withoutStatus = true) => __awaiter(void 0,
|
|
|
174
174
|
form.append("_method", "put");
|
|
175
175
|
}
|
|
176
176
|
const response = yield fetch(url, {
|
|
177
|
-
method: "POST",
|
|
177
|
+
method: "POST", // Don't change it according changes happened in backend https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
|
|
178
178
|
headers: {
|
|
179
179
|
accept: "application/json",
|
|
180
180
|
Authorization: `Bearer ${token}`,
|
|
@@ -204,7 +204,7 @@ const patchRequest = (url, token, body) => __awaiter(void 0, void 0, void 0, fun
|
|
|
204
204
|
form.append("_method", "patch");
|
|
205
205
|
}
|
|
206
206
|
const response = yield fetch(url, {
|
|
207
|
-
method: "POST",
|
|
207
|
+
method: "POST", // Don't change it according changes happened in backend https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
|
|
208
208
|
headers: {
|
|
209
209
|
accept: "application/json",
|
|
210
210
|
"Content-Type": "multipart/form-data",
|
|
@@ -278,7 +278,7 @@ const validateBaseUrl = (config) => {
|
|
|
278
278
|
};
|
|
279
279
|
exports.validateBaseUrl = validateBaseUrl;
|
|
280
280
|
const postFilesAndDataRequest = (url, payload, files, token, method) => __awaiter(void 0, void 0, void 0, function* () {
|
|
281
|
-
var
|
|
281
|
+
var _a, _b;
|
|
282
282
|
const getFormData = (object) => Object.keys(object).reduce((form, key) => {
|
|
283
283
|
form.append(key, object[key]);
|
|
284
284
|
return form;
|
|
@@ -318,7 +318,7 @@ const postFilesAndDataRequest = (url, payload, files, token, method) => __awaite
|
|
|
318
318
|
}
|
|
319
319
|
if (data.status === 400 && data.invalid_fields) {
|
|
320
320
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
321
|
-
throw new Error((
|
|
321
|
+
throw new Error((_a = Object.values(data === null || data === void 0 ? void 0 : data.invalid_fields)) === null || _a === void 0 ? void 0 : _a.join(", "));
|
|
322
322
|
}
|
|
323
323
|
const isSuccess = (data === null || data === void 0 ? void 0 : data.status) >= 200 && (data === null || data === void 0 ? void 0 : data.status) <= 299;
|
|
324
324
|
if (!isSuccess && !(data === null || data === void 0 ? void 0 : data.result)) {
|
|
@@ -327,7 +327,7 @@ const postFilesAndDataRequest = (url, payload, files, token, method) => __awaite
|
|
|
327
327
|
if (!isSuccess && data.message) {
|
|
328
328
|
throw new Error(data.message);
|
|
329
329
|
}
|
|
330
|
-
return (
|
|
330
|
+
return (_b = data === null || data === void 0 ? void 0 : data.result) !== null && _b !== void 0 ? _b : data === null || data === void 0 ? void 0 : data.message;
|
|
331
331
|
});
|
|
332
332
|
exports.postFilesAndDataRequest = postFilesAndDataRequest;
|
|
333
333
|
const postRequestWithRetry = (url, body, token, headers, retries) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -358,7 +358,7 @@ const postRequestWithRetry = (url, body, token, headers, retries) => __awaiter(v
|
|
|
358
358
|
});
|
|
359
359
|
exports.postRequestWithRetry = postRequestWithRetry;
|
|
360
360
|
const postRequestWE = (url, body, token, headers) => __awaiter(void 0, void 0, void 0, function* () {
|
|
361
|
-
var
|
|
361
|
+
var _a;
|
|
362
362
|
let form;
|
|
363
363
|
if (body) {
|
|
364
364
|
if (headers &&
|
|
@@ -386,7 +386,7 @@ const postRequestWE = (url, body, token, headers) => __awaiter(void 0, void 0, v
|
|
|
386
386
|
throw new Error("errors.api-40900000");
|
|
387
387
|
}
|
|
388
388
|
if (data.status === 400 && data.invalid_fields) {
|
|
389
|
-
throw new Error((
|
|
389
|
+
throw new Error((_a = Object.values(data === null || data === void 0 ? void 0 : data.invalid_fields)) === null || _a === void 0 ? void 0 : _a.toString());
|
|
390
390
|
}
|
|
391
391
|
if (String(data.status).startsWith("4")) {
|
|
392
392
|
throw new Error(data.message);
|
|
@@ -431,7 +431,7 @@ const postFileRequestWE = (url, file, param, token) => __awaiter(void 0, void 0,
|
|
|
431
431
|
});
|
|
432
432
|
exports.postFileRequestWE = postFileRequestWE;
|
|
433
433
|
const postRequestJSON = (url, body, token, headers) => __awaiter(void 0, void 0, void 0, function* () {
|
|
434
|
-
var
|
|
434
|
+
var _a;
|
|
435
435
|
let form;
|
|
436
436
|
if (body) {
|
|
437
437
|
if ((headers &&
|
|
@@ -462,7 +462,7 @@ const postRequestJSON = (url, body, token, headers) => __awaiter(void 0, void 0,
|
|
|
462
462
|
throw new Error("errors.api-40900000");
|
|
463
463
|
}
|
|
464
464
|
if (data.status === 400 && data.invalid_fields) {
|
|
465
|
-
throw new Error((
|
|
465
|
+
throw new Error((_a = Object.values(data === null || data === void 0 ? void 0 : data.invalid_fields)) === null || _a === void 0 ? void 0 : _a.toString());
|
|
466
466
|
}
|
|
467
467
|
if (String(data.status).startsWith("4")) {
|
|
468
468
|
throw new Error(data.message);
|
package/lib/utils/base.d.ts
CHANGED
|
File without changes
|
package/lib/utils/base.js
CHANGED
|
@@ -37,7 +37,7 @@ const getBasePath = (basePath) => {
|
|
|
37
37
|
LINKEDIN_IMPORT_PROFILE: `${authorizedBasePath}/linkedin/authorization`,
|
|
38
38
|
ACTIONS_EXHIBITIONS: `${authorizedBasePath}/actions/exhibitions`,
|
|
39
39
|
ACTIONS_ATTENDEES: `${authorizedBasePath}/actions/profiles`,
|
|
40
|
-
YOUTUBE_SDK_API: `${authorizedBasePath}/sdk/zoom/youtube`,
|
|
40
|
+
YOUTUBE_SDK_API: `${authorizedBasePath}/sdk/zoom/youtube`, // Remove zoom from path once changed in backend
|
|
41
41
|
DOCUMENTS: `${authorizedBasePath}/documents`,
|
|
42
42
|
LOCATIONS: `${authorizedBasePath}/locations`,
|
|
43
43
|
PAGES: `${authorizedBasePath}/pages`,
|
package/lib/utils/hooks.d.ts
CHANGED
|
File without changes
|
package/lib/utils/hooks.js
CHANGED
|
File without changes
|