@hubs101/js-api-skd-client 1.0.10474 → 1.0.10476
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 +5 -3
- package/lib/index.js +3 -3
- package/lib/types/base.d.ts +10 -6
- package/package.json +1 -1
package/lib/api/event/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
2
|
-
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
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
|
+
import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/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[]>;
|
|
@@ -127,4 +127,6 @@ export declare const _fetchMediaFileDetails: (basePath: string, token: string, a
|
|
|
127
127
|
export declare const _deleteMediaDirectories: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
128
128
|
export declare const _deleteMediaDirectoryFiles: (basePath: string, token: string, accountId: string, filepath: string) => Promise<APIResponse>;
|
|
129
129
|
export declare const _addMediaFolder: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
130
|
-
export declare const _updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data:
|
|
130
|
+
export declare const _updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: {
|
|
131
|
+
website_content: Record<string, string | boolean>[];
|
|
132
|
+
}) => Promise<ResponseAPIType1>;
|
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");
|
|
45
44
|
const calendar_1 = require("./api/calendar");
|
|
46
45
|
const meetings_1 = require("./api/meetings");
|
|
47
|
-
const
|
|
46
|
+
const authentication_1 = require("./api/authentication");
|
|
48
47
|
const sessions_1 = require("./api/sessions");
|
|
49
48
|
const tracks_1 = require("./api/tracks");
|
|
49
|
+
const public_1 = require("./api/public");
|
|
50
50
|
const pages_1 = require("./api/pages");
|
|
51
|
-
const api_1 = require("./utils/api");
|
|
52
51
|
const hooks_1 = require("./utils/hooks");
|
|
52
|
+
const api_1 = require("./utils/api");
|
|
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* () {
|
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";
|
|
1
2
|
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
|
|
3
|
+
import { AttendeeReport, ExhibitionReport, FetchCurrentEventAttendeesActionsResponse, SessionReport, SuccessResponse } from "../api/types";
|
|
2
4
|
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
|
|
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";
|
|
5
|
-
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
6
5
|
import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
|
|
6
|
+
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
7
7
|
import { GenericResponseServerType, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
|
|
8
|
+
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
8
9
|
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";
|
|
@@ -91,7 +91,9 @@ export type BaseAPIType = {
|
|
|
91
91
|
fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
|
|
92
92
|
deleteMediaDirectories: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
93
93
|
addMediaFolder: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
94
|
-
updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data:
|
|
94
|
+
updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: {
|
|
95
|
+
website_content: Record<string, string | boolean>[];
|
|
96
|
+
}) => Promise<ResponseAPIType1>;
|
|
95
97
|
deleteMediaDirectoryFiles: (basePath: string, token: string, accountId: string, filepath: string) => Promise<APIResponse>;
|
|
96
98
|
updateAccountGroup: (basePath: string, token: string, accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
|
|
97
99
|
fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
|
|
@@ -341,7 +343,9 @@ export type EventAPIType = {
|
|
|
341
343
|
fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
|
|
342
344
|
deleteMediaDirectories: (accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
343
345
|
addMediaFolder: (accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
344
|
-
updateEventWebsite: (eventId: string, keyData: string, data:
|
|
346
|
+
updateEventWebsite: (eventId: string, keyData: string, data: {
|
|
347
|
+
website_content: Record<string, string | boolean>[];
|
|
348
|
+
}) => Promise<ResponseAPIType1>;
|
|
345
349
|
deleteMediaDirectoryFiles: (accountId: string, filepath: string) => Promise<APIResponse>;
|
|
346
350
|
updateAccountGroup: (accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
|
|
347
351
|
fetchAccountGroups: (accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
|