@hubs101/js-api-skd-client 1.0.10318 → 1.0.10320

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
@@ -20,7 +20,7 @@ Accessing API via stateless interface:
20
20
 
21
21
  ## Creating new release
22
22
 
23
- 1. Commit al changes to git.
23
+ 1. Commit al changes to git
24
24
  2. Prepare build: `npm run build`
25
25
  3. Create new patch version run: `npm version patch`
26
26
  4. Publish package to NPM: `npm publish`
@@ -282,12 +282,28 @@ export type Note = {
282
282
  message: string;
283
283
  reference: string;
284
284
  event: string;
285
- detail: unknown;
285
+ detail?: {
286
+ title: string;
287
+ subtitle: {
288
+ start_date: string;
289
+ end_date: string;
290
+ };
291
+ url: string;
292
+ eventName: string;
293
+ };
286
294
  updateDate: string;
287
295
  };
288
296
  export type NoteUpdateInput = {
289
297
  message: string;
290
- detail?: unknown;
298
+ detail?: {
299
+ title: string;
300
+ subtitle: {
301
+ start_date: string;
302
+ end_date: string;
303
+ };
304
+ url: string;
305
+ eventName: string;
306
+ };
291
307
  };
292
308
  export type NoteInput = {
293
309
  type: NOTE_TYPE;
@@ -50,7 +50,6 @@ export declare const _resendBookingEmail: (basePath: string, token: string, book
50
50
  export declare const _checkBooking: (basePath: string, body: any, lang: string) => Promise<any>;
51
51
  export declare const _createBooking: (basePath: string, body: any, lang: string) => Promise<any>;
52
52
  export declare const _fetchMyBookings: (basePath: string, token: string) => Promise<ResponsePaginationType<Booking>>;
53
- export declare const _fetchAccountBookings: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
54
53
  export declare const _assignTicket: (basePath: string, token: string, bookingId: string, ticketId: string, data: any) => Promise<any>;
55
54
  export declare const _fetchTicketDetails: (basePath: string, eventId: string, profileId: string, access: string) => Promise<ResponsePaginationType<BookingDetails>>;
56
55
  export declare const _postTicketDetails: (basePath: string, eventId: string, profileId: string, access: string, body: any) => Promise<any>;
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports._fetchAccountBookings = exports._fetchMyBookings = exports._createBooking = exports._checkBooking = exports._resendBookingEmail = exports._resendTicketEmail = 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
- 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 = void 0;
12
+ exports._assignTicket = exports._fetchMyBookings = exports._createBooking = exports._checkBooking = exports._resendBookingEmail = exports._resendTicketEmail = 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
+ 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 = void 0;
14
14
  const api_1 = require("../../utils/api");
15
15
  const base_1 = require("../../utils/base");
16
16
  const _fetchEventRegistrations = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
@@ -323,15 +323,6 @@ const _fetchMyBookings = (basePath, token) => __awaiter(void 0, void 0, void 0,
323
323
  return response;
324
324
  });
325
325
  exports._fetchMyBookings = _fetchMyBookings;
326
- const _fetchAccountBookings = (basePath, token, accountId, params) => __awaiter(void 0, void 0, void 0, function* () {
327
- const base = (0, base_1.getBasePath)(basePath);
328
- const url = params
329
- ? `${base.ACCOUNTS}/${accountId}/bookings?limit=2000${params}`
330
- : `${base.ACCOUNTS}/${accountId}/bookings?limit=2000`;
331
- const response = yield (0, api_1.getRequest)(url, token);
332
- return response;
333
- });
334
- exports._fetchAccountBookings = _fetchAccountBookings;
335
326
  const _assignTicket = (basePath, token, bookingId, ticketId, data) => __awaiter(void 0, void 0, void 0, function* () {
336
327
  const base = (0, base_1.getBasePath)(basePath);
337
328
  const response = yield (0, api_1.postFilesAndDataRequest)(`${base.BOOKINGS}/${bookingId}/assign/${ticketId}`, data, [], token);
@@ -61,8 +61,9 @@ export type SessionServerResponse = {
61
61
  advertisement?: PrerecordedVideo | null;
62
62
  collaboration: Collaboration;
63
63
  priority: number;
64
+ speakers?: Attendee[];
65
+ documents?: DocumentType[];
64
66
  promoted_at: string;
65
- speakers?: any[];
66
67
  };
67
68
  export type PrerecordedVideo = {
68
69
  videoType: string;
@@ -102,10 +103,10 @@ export type SessionFull = {
102
103
  heartCount: number;
103
104
  priority: number;
104
105
  discussion: SessionDiscussion | null;
105
- documents: DocumentType[];
106
106
  like_list: string[];
107
107
  watch_list: string[];
108
108
  speakers: Attendee[];
109
+ documents: DocumentType[];
109
110
  };
110
111
  export type SessionDiscussion = {
111
112
  commentCount: number;
package/lib/index.js CHANGED
@@ -140,10 +140,6 @@ function EventAPIProvider(props) {
140
140
  (0, api_1.validateConfig)(config);
141
141
  return (0, event_1._fetchEventGroups)(config.baseUrl, config.token, eventId);
142
142
  }), [config, config.baseUrl, config.token]);
143
- const fetchAccountBookings = (0, react_1.useCallback)((accountId, params) => __awaiter(this, void 0, void 0, function* () {
144
- (0, api_1.validateConfig)(config);
145
- return (0, event_1._fetchAccountBookings)(config.baseUrl, config.token, accountId, params);
146
- }), [config, config.baseUrl, config.token]);
147
143
  const resendTicketEmail = react_1.default.useCallback((ticketId) => __awaiter(this, void 0, void 0, function* () {
148
144
  (0, api_1.validateConfig)(config);
149
145
  return (0, event_1._resendTicketEmail)(config.baseUrl, config.token, ticketId);
@@ -851,7 +847,6 @@ function EventAPIProvider(props) {
851
847
  pinExhibition,
852
848
  unpinExhibition,
853
849
  fetchEventGroups,
854
- fetchAccountBookings,
855
850
  resendBookingEmail,
856
851
  resendTicketEmail,
857
852
  postTicketDetails,
@@ -1043,7 +1038,6 @@ exports.BaseAPI = {
1043
1038
  pinExhibition: event_1._pinExhibition,
1044
1039
  unpinExhibition: event_1._unpinExhibition,
1045
1040
  fetchEventGroups: event_1._fetchEventGroups,
1046
- fetchAccountBookings: event_1._fetchAccountBookings,
1047
1041
  resendTicketEmail: event_1._resendTicketEmail,
1048
1042
  resendBookingEmail: event_1._resendBookingEmail,
1049
1043
  postTicketDetails: event_1._postTicketDetails,
@@ -85,7 +85,6 @@ export type BaseAPIType = {
85
85
  unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
86
86
  getPublicRegistrationForm: (basePath: string, eventId: string) => Promise<any>;
87
87
  fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
88
- fetchAccountBookings: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
89
88
  resendTicketEmail: (basePath: string, token: string, ticketId: string) => Promise<any>;
90
89
  resendBookingEmail: (basePath: string, token: string, bookingId: string) => Promise<any>;
91
90
  postTicketDetails: (basePath: string, eventId: string, profileId: string, access: string, body: any) => Promise<any>;
@@ -294,7 +293,6 @@ export type EventAPIType = {
294
293
  pinExhibition: (exhibitionId: string) => Promise<boolean>;
295
294
  unpinExhibition: (exhibitionId: string) => Promise<boolean>;
296
295
  fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
297
- fetchAccountBookings: (accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
298
296
  resendTicketEmail: (ticketId: string) => Promise<any>;
299
297
  resendBookingEmail: (bookingId: string) => Promise<any>;
300
298
  postTicketDetails: (eventId: string, profileId: string, access: string, body: any) => Promise<ResponsePaginationType<BookingDetails>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10318",
3
+ "version": "1.0.10320",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",
@@ -27,6 +27,7 @@
27
27
  ],
28
28
  "license": "ISC",
29
29
  "dependencies": {
30
+ "@hubs101/js-api-skd-client": "^1.0.10314",
30
31
  "@types/react": "*",
31
32
  "react": "^18.2.0"
32
33
  },