@hubs101/js-api-skd-client 1.0.10475 → 1.0.10477
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/types.d.ts +4 -4
- package/lib/index.js +3 -3
- 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 { 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[]>;
|
|
@@ -128,5 +128,5 @@ export declare const _deleteMediaDirectories: (basePath: string, token: string,
|
|
|
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
130
|
export declare const _updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: {
|
|
131
|
-
website_content: Record<string, string>[];
|
|
131
|
+
website_content: Record<string, string | boolean>[];
|
|
132
132
|
}) => Promise<ResponseAPIType1>;
|
package/lib/api/event/types.d.ts
CHANGED
|
@@ -553,10 +553,10 @@ export type EventServerResponse = {
|
|
|
553
553
|
}[];
|
|
554
554
|
webinar: string;
|
|
555
555
|
website_content: {
|
|
556
|
-
keytopics: Record<string, string>[];
|
|
557
|
-
targetgroups: Record<string, string>[];
|
|
558
|
-
testimonials: Record<string, string>[];
|
|
559
|
-
whoattend: Record<string, string>[];
|
|
556
|
+
keytopics: Record<string, string | boolean>[];
|
|
557
|
+
targetgroups: Record<string, string | boolean>[];
|
|
558
|
+
testimonials: Record<string, string | boolean>[];
|
|
559
|
+
whoattend: Record<string, string | boolean>[];
|
|
560
560
|
};
|
|
561
561
|
};
|
|
562
562
|
export type AccountInput = {
|
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";
|
|
@@ -92,7 +92,7 @@ export type BaseAPIType = {
|
|
|
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
94
|
updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: {
|
|
95
|
-
website_content: Record<string, string>[];
|
|
95
|
+
website_content: Record<string, string | boolean>[];
|
|
96
96
|
}) => 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>;
|
|
@@ -344,7 +344,7 @@ export type EventAPIType = {
|
|
|
344
344
|
deleteMediaDirectories: (accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
345
345
|
addMediaFolder: (accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
346
346
|
updateEventWebsite: (eventId: string, keyData: string, data: {
|
|
347
|
-
website_content: Record<string, string>[];
|
|
347
|
+
website_content: Record<string, string | boolean>[];
|
|
348
348
|
}) => Promise<ResponseAPIType1>;
|
|
349
349
|
deleteMediaDirectoryFiles: (accountId: string, filepath: string) => Promise<APIResponse>;
|
|
350
350
|
updateAccountGroup: (accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
|