@hubs101/js-api-skd-client 1.0.10477 → 1.0.10478
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/event/index.d.ts +3 -3
- package/lib/api/event/index.js +2 -2
- package/lib/index.js +5 -5
- package/lib/types/base.d.ts +6 -6
- package/package.json +1 -1
package/lib/api/event/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, OptionServerResponse, Portfolio, PortfolioInput, ResponseAPIType1, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
|
|
2
|
-
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
1
|
import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
2
|
+
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
|
+
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, OptionServerResponse, Portfolio, PortfolioInput, ResponseAPIType1, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
|
|
4
4
|
import { APIResponse } from "../../types/base";
|
|
5
5
|
import { Page } from "../pages/types";
|
|
6
6
|
export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
|
|
@@ -129,4 +129,4 @@ export declare const _deleteMediaDirectoryFiles: (basePath: string, token: strin
|
|
|
129
129
|
export declare const _addMediaFolder: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
130
130
|
export declare const _updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: {
|
|
131
131
|
website_content: Record<string, string | boolean>[];
|
|
132
|
-
}) => Promise<ResponseAPIType1>;
|
|
132
|
+
}, files: any) => Promise<ResponseAPIType1>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -668,9 +668,9 @@ const _addMediaFolder = (basePath, token, accountId, path, name) => __awaiter(vo
|
|
|
668
668
|
return response;
|
|
669
669
|
});
|
|
670
670
|
exports._addMediaFolder = _addMediaFolder;
|
|
671
|
-
const _updateEventWebsite = (basePath, token, eventId, keyData, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
671
|
+
const _updateEventWebsite = (basePath, token, eventId, keyData, data, files) => __awaiter(void 0, void 0, void 0, function* () {
|
|
672
672
|
const base = (0, base_1.getBasePath)(basePath);
|
|
673
|
-
const response = yield (0, api_1.
|
|
673
|
+
const response = yield (0, api_1.postFilesAndDataRequest)(`${base.EVENTS}/${eventId}/websitedata/${keyData}`, data, files, token, "put");
|
|
674
674
|
return response === null || response === void 0 ? void 0 : response.result;
|
|
675
675
|
});
|
|
676
676
|
exports._updateEventWebsite = _updateEventWebsite;
|
package/lib/index.js
CHANGED
|
@@ -41,15 +41,15 @@ const event_1 = require("./api/event");
|
|
|
41
41
|
const posts_1 = require("./api/posts");
|
|
42
42
|
// index.ts
|
|
43
43
|
const attendee_1 = require("./api/attendee");
|
|
44
|
+
const authentication_1 = require("./api/authentication");
|
|
44
45
|
const calendar_1 = require("./api/calendar");
|
|
45
46
|
const meetings_1 = require("./api/meetings");
|
|
46
|
-
const
|
|
47
|
+
const public_1 = require("./api/public");
|
|
47
48
|
const sessions_1 = require("./api/sessions");
|
|
48
49
|
const tracks_1 = require("./api/tracks");
|
|
49
|
-
const public_1 = require("./api/public");
|
|
50
50
|
const pages_1 = require("./api/pages");
|
|
51
|
-
const hooks_1 = require("./utils/hooks");
|
|
52
51
|
const api_1 = require("./utils/api");
|
|
52
|
+
const hooks_1 = require("./utils/hooks");
|
|
53
53
|
function EventAPIProvider(props) {
|
|
54
54
|
const [config, setConfig] = (0, hooks_1.useSetState)({});
|
|
55
55
|
const init = react_1.default.useCallback((baseUrl, email, password) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -150,9 +150,9 @@ function EventAPIProvider(props) {
|
|
|
150
150
|
(0, api_1.validateConfig)(config);
|
|
151
151
|
return (0, event_1._addMediaFolder)(config.baseUrl, config.token, accountId, path, name);
|
|
152
152
|
}), [config, config.baseUrl, config.token]);
|
|
153
|
-
const updateEventWebsite = (0, react_1.useCallback)((eventId, keyData, data) => __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const updateEventWebsite = (0, react_1.useCallback)((eventId, keyData, files, data) => __awaiter(this, void 0, void 0, function* () {
|
|
154
154
|
(0, api_1.validateConfig)(config);
|
|
155
|
-
return (0, event_1._updateEventWebsite)(config.baseUrl, config.token, eventId, keyData, data);
|
|
155
|
+
return (0, event_1._updateEventWebsite)(config.baseUrl, config.token, eventId, keyData, data, files);
|
|
156
156
|
}), [config, config.baseUrl, config.token]);
|
|
157
157
|
const deleteMediaDirectoryFiles = (0, react_1.useCallback)((accountId, filepath) => __awaiter(this, void 0, void 0, function* () {
|
|
158
158
|
(0, api_1.validateConfig)(config);
|
package/lib/types/base.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Account, AccountInput, Answer, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, GroupType, OptionServerResponse, Portfolio, PortfolioInput, ResponseAPIType1, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
2
1
|
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
|
|
3
|
-
import { AttendeeReport, ExhibitionReport, FetchCurrentEventAttendeesActionsResponse, SessionReport, SuccessResponse } from "../api/types";
|
|
4
2
|
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
|
|
5
|
-
import {
|
|
3
|
+
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
4
|
+
import { Account, AccountInput, Answer, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, GroupType, OptionServerResponse, Portfolio, PortfolioInput, ResponseAPIType1, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
6
5
|
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
6
|
+
import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
|
|
7
7
|
import { GenericResponseServerType, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
|
|
8
|
-
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
9
8
|
import { Session, SessionFull, SessionInput } from "../api/sessions/types";
|
|
9
|
+
import { AttendeeReport, ExhibitionReport, FetchCurrentEventAttendeesActionsResponse, SessionReport, SuccessResponse } from "../api/types";
|
|
10
10
|
import { CalendarEvent } from "../api/calendar/types";
|
|
11
11
|
import { Page } from "../api/pages/types";
|
|
12
12
|
import { Track } from "../api/tracks/types";
|
|
@@ -93,7 +93,7 @@ export type BaseAPIType = {
|
|
|
93
93
|
addMediaFolder: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
94
94
|
updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: {
|
|
95
95
|
website_content: Record<string, string | boolean>[];
|
|
96
|
-
}) => Promise<ResponseAPIType1>;
|
|
96
|
+
}, files: any) => Promise<ResponseAPIType1>;
|
|
97
97
|
deleteMediaDirectoryFiles: (basePath: string, token: string, accountId: string, filepath: string) => Promise<APIResponse>;
|
|
98
98
|
updateAccountGroup: (basePath: string, token: string, accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
|
|
99
99
|
fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
|
|
@@ -345,7 +345,7 @@ export type EventAPIType = {
|
|
|
345
345
|
addMediaFolder: (accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
346
346
|
updateEventWebsite: (eventId: string, keyData: string, data: {
|
|
347
347
|
website_content: Record<string, string | boolean>[];
|
|
348
|
-
}) => Promise<ResponseAPIType1>;
|
|
348
|
+
}, files: any) => Promise<ResponseAPIType1>;
|
|
349
349
|
deleteMediaDirectoryFiles: (accountId: string, filepath: string) => Promise<APIResponse>;
|
|
350
350
|
updateAccountGroup: (accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
|
|
351
351
|
fetchAccountGroups: (accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
|