@hubs101/js-api-skd-client 1.0.10464 → 1.0.10466

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/README.md CHANGED
@@ -1,3 +1,13 @@
1
+ ![Node version](https://img.shields.io/badge/node-%3E%3D%2012.0.0-brightgreen)
2
+ ![npm](https://img.shields.io/npm/dm/hubs101/js-api-skd-client)
3
+ ![npm bundle size](https://packagephobia.com/badge?p=js-api-skd-client)
4
+ ![npm total downloads](https://img.shields.io/npm/dt/js-api-skd-client)
5
+ ![GitHub dependency status](https://img.shields.io/github/dependency-status/We-Conect/hubs101-js-api-skd-client/main)
6
+
7
+ ## Install Size
8
+
9
+ Check out the package's install size on [Packagephobia](https://packagephobia.com/result?p=js-api-skd-client).
10
+
1
11
  ## API Doc
2
12
 
3
13
  [API Documentation](https://github.com/We-Conect/event-app-api/blob/main/src/README.md)
@@ -1,6 +1,6 @@
1
1
  import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
2
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, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } 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[]>;
@@ -127,3 +127,4 @@ 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: Record<string, string>[]) => Promise<ResponseAPIType1>;
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports._fetchMyBookings = exports._createBooking = exports._checkBooking = exports._resendBookingEmail = exports._resendTicketEmail = exports._fetchEventAttendeeActions = exports._fetchEventGroups = exports._unpinExhibition = exports._pinExhibition = exports._unpinDocument = exports._pinDocument = exports._reportExhibitionAction = exports._deleteDocument = exports._updateDocument = exports._createDocument = exports._assignDocumentToEvent = exports._fetchEventDocuments = exports._fetchUserRegistrationsEvents = exports._fetchEventStreams = exports._fetchEventLocations = exports._deleteLocation = exports._updateLocation = exports._createLocation = exports._fetchExhibitionDetails = exports._deleteDiscount = exports._updateDiscount = exports._createDiscount = exports._fetchEventDiscounts = exports._deleteTicket = exports._updateTicket = exports._createTicket = exports._deleteOption = exports._updateOption = exports._createOption = exports._deleteGroup = exports._updateGroup = exports._createGroup = exports._importAgenda = exports._fetchAttendeesAvailabilities = exports._updateEventTemplates = exports._fetchEventTemplates = exports._fetchEventNotifications = exports._sendSingleNotification = exports._sendNotification = exports._fetchEventDetails = exports._fetchExhibitions = exports._fetchEventsForAccount = exports._fetchTickets = exports._fetchAccounts = exports._fetchEventRegistrations = void 0;
13
13
  exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = exports._updatePortfolioBlogPage = exports._createBlogPage = exports._fetchBlogPages = exports._fetchPortfolioEvents = exports._fetchPortfolioDetails = exports._updatePortfolio = exports._createPortfolio = exports._unassignPortfolio = exports._assignPortfolio = exports._deletePortfolio = exports._fetchPortfolios = exports._deleteExhibition = exports._updateExhibition = exports._importExhibition = exports._createExhibition = exports._fetchMyExhibitions = exports._fetchAllExhibitions = exports._deleteStream = exports._updateStream = exports._createStream = exports._fetchYoutubeContent = exports._fetchZoomContent = exports._createEvent = exports._unassignPaymentAccount = exports._assignPaymentAccount = exports._fetchEventOptions = exports._fetchEventTickets = exports._updateEvent = exports._deletePage = exports._updatePage = exports._createPage = exports._fetchEventPages = exports._updateAccountWithFiles = exports._fetchMySessions = exports._fetchEditableEvents = exports._fetchSpeakers = exports._fetchAccountDetails = exports._eventInvitationRegistration = exports._createFreeTrialAccount = exports._fetchEventOrderedTickets = exports._confirmBooking = exports._fetchEventBookings = exports._acceptInternTicket = exports._acceptTicket = exports._postTicketDetails = exports._fetchTicketDetails = exports._assignTicket = exports._fetchAccountBookings = void 0;
14
- exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = void 0;
14
+ exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = void 0;
15
15
  const api_1 = require("../../utils/api");
16
16
  const base_1 = require("../../utils/base");
17
17
  const _fetchEventRegistrations = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
@@ -668,3 +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* () {
672
+ const base = (0, base_1.getBasePath)(basePath);
673
+ const response = yield (0, api_1.putRequest)(`${base.EVENTS}/${eventId}/websitedata/${keyData}`, token, data);
674
+ return response === null || response === void 0 ? void 0 : response.result;
675
+ });
676
+ exports._updateEventWebsite = _updateEventWebsite;
@@ -927,4 +927,10 @@ export type FileDetails = {
927
927
  updated_at: string;
928
928
  size: number;
929
929
  };
930
+ export type ResponseAPIType1 = {
931
+ status: number;
932
+ result: {
933
+ data: Record<string, string>[];
934
+ };
935
+ };
930
936
  export {};
@@ -1,5 +1,5 @@
1
- import { APIResponse } from "../../types/base";
2
1
  import { EventMeetingStatisticsItem, MeetingItem } from "./types";
2
+ import { APIResponse } from "../../types/base";
3
3
  export declare const _fetchMeetings: (basePath: string, token: string) => Promise<MeetingItem[]>;
4
4
  export declare const _fetchArrangedMeetings: (basePath: string, token: string, eventId: string) => Promise<MeetingItem[]>;
5
5
  export declare const _fetchLocation: (basePath: string, token: string, locationId: string) => Promise<APIResponse>;
package/lib/index.js CHANGED
@@ -149,6 +149,10 @@ function EventAPIProvider(props) {
149
149
  (0, api_1.validateConfig)(config);
150
150
  return (0, event_1._addMediaFolder)(config.baseUrl, config.token, accountId, path, name);
151
151
  }), [config, config.baseUrl, config.token]);
152
+ const updateEventWebsite = (0, react_1.useCallback)((eventId, keyData, data) => __awaiter(this, void 0, void 0, function* () {
153
+ (0, api_1.validateConfig)(config);
154
+ return (0, event_1._updateEventWebsite)(config.baseUrl, config.token, eventId, keyData, data);
155
+ }), [config, config.baseUrl, config.token]);
152
156
  const deleteMediaDirectoryFiles = (0, react_1.useCallback)((accountId, filepath) => __awaiter(this, void 0, void 0, function* () {
153
157
  (0, api_1.validateConfig)(config);
154
158
  return (0, event_1._deleteMediaDirectoryFiles)(config.baseUrl, config.token, accountId, filepath);
@@ -966,6 +970,7 @@ function EventAPIProvider(props) {
966
970
  fetchEventGroups,
967
971
  deleteMediaDirectories,
968
972
  addMediaFolder,
973
+ updateEventWebsite,
969
974
  deleteMediaDirectoryFiles,
970
975
  updateAccountGroup,
971
976
  updateVisibilityAttendee,
@@ -1186,6 +1191,7 @@ exports.BaseAPI = {
1186
1191
  fetchEventGroups: event_1._fetchEventGroups,
1187
1192
  deleteMediaDirectories: event_1._deleteMediaDirectories,
1188
1193
  addMediaFolder: event_1._addMediaFolder,
1194
+ updateEventWebsite: event_1._updateEventWebsite,
1189
1195
  deleteMediaDirectoryFiles: event_1._deleteMediaDirectoryFiles,
1190
1196
  updateAccountGroup: authentication_1._updateAccountGroup,
1191
1197
  updateVisibilityAttendee: attendee_1._updateVisibilityAttendee,
@@ -1,7 +1,7 @@
1
1
  import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
2
2
  import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
3
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, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/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
5
  import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
6
6
  import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
7
7
  import { GenericResponseServerType, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
@@ -91,6 +91,7 @@ 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: Record<string, string>[]) => Promise<ResponseAPIType1>;
94
95
  deleteMediaDirectoryFiles: (basePath: string, token: string, accountId: string, filepath: string) => Promise<APIResponse>;
95
96
  updateAccountGroup: (basePath: string, token: string, accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
96
97
  fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
@@ -340,6 +341,7 @@ export type EventAPIType = {
340
341
  fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
341
342
  deleteMediaDirectories: (accountId: string, path: string, name: string) => Promise<APIResponse>;
342
343
  addMediaFolder: (accountId: string, path: string, name: string) => Promise<APIResponse>;
344
+ updateEventWebsite: (eventId: string, keyData: string, data: Record<string, string>[]) => Promise<ResponseAPIType1>;
343
345
  deleteMediaDirectoryFiles: (accountId: string, filepath: string) => Promise<APIResponse>;
344
346
  updateAccountGroup: (accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
345
347
  fetchAccountGroups: (accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10464",
3
+ "version": "1.0.10466",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",