@hubs101/js-api-skd-client 1.0.10549 → 1.0.10550

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.
@@ -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 } 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>;
@@ -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._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);
@@ -81,3 +81,15 @@ 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
+ };
package/lib/index.js CHANGED
@@ -965,6 +965,10 @@ function EventAPIProvider(props) {
965
965
  (0, api_1.validateConfig)(config);
966
966
  return (0, authentication_1._fetchColocatedEvents)(config.baseUrl, config.token, accountId);
967
967
  }), [config, config.baseUrl, config.token]);
968
+ const fetchColocatedEventDetails = (0, react_1.useCallback)((accountId, eventId) => __awaiter(this, void 0, void 0, function* () {
969
+ (0, api_1.validateConfig)(config);
970
+ return (0, authentication_1._fetchColocatedEventDetails)(config.baseUrl, config.token, accountId, eventId);
971
+ }), [config, config.baseUrl, config.token]);
968
972
  const createColocatedEvents = (0, react_1.useCallback)((accountId, data) => __awaiter(this, void 0, void 0, function* () {
969
973
  (0, api_1.validateConfig)(config);
970
974
  return (0, authentication_1._createColocatedEvents)(config.baseUrl, config.token, accountId, data);
@@ -1260,6 +1264,7 @@ function EventAPIProvider(props) {
1260
1264
  updatePortfolioBlogPage,
1261
1265
  deletePortfolioBlogPage,
1262
1266
  fetchColocatedEvents,
1267
+ fetchColocatedEventDetails,
1263
1268
  createColocatedEvents,
1264
1269
  editColocatedEvents,
1265
1270
  deleteColocatedEvents,
@@ -1505,6 +1510,7 @@ exports.BaseAPI = {
1505
1510
  updatePortfolioBlogPage: event_1._updatePortfolioBlogPage,
1506
1511
  deletePortfolioBlogPage: event_1._deletePortfolioBlogPage,
1507
1512
  fetchColocatedEvents: authentication_1._fetchColocatedEvents,
1513
+ fetchColocatedEventDetails: authentication_1._fetchColocatedEventDetails,
1508
1514
  createColocatedEvents: authentication_1._createColocatedEvents,
1509
1515
  editColocatedEvents: authentication_1._editColocatedEvents,
1510
1516
  deleteColocatedEvents: authentication_1._deleteColocatedEvents,
@@ -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 } 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>;
@@ -595,6 +596,7 @@ export type EventAPIType = {
595
596
  }[]) => Promise<BlogPage>;
596
597
  deletePortfolioBlogPage: (portfolioId: string, blogPostId: string) => Promise<APIResponse>;
597
598
  fetchColocatedEvents: (accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
599
+ fetchColocatedEventDetails: (accountId: string, eventId: string) => Promise<ColocatedEventDetailsResponse>;
598
600
  createColocatedEvents: (accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
599
601
  editColocatedEvents: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
600
602
  deleteColocatedEvents: (id: string) => Promise<string>;
@@ -613,7 +615,7 @@ export type EventAPIType = {
613
615
  session_types: string;
614
616
  }) => Promise<AccountDetails>;
615
617
  fetchEventsByAccount: (accountId: string, params?: string) => Promise<ResponseAccountEventsType>;
616
- importTickets: (eventId: string, ticketsList: string[]) => Promise<GenericResponseServerType<any[]>>;
618
+ importTickets: (eventId: string, ticketsList: string[]) => Promise<ResponsePaginationType<TicketServerResponse>>;
617
619
  fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
618
620
  fetchColocatedAgenda: (eventId: string) => Promise<SessionFull[]>;
619
621
  activateDataManagers: (eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10549",
3
+ "version": "1.0.10550",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",