@hubs101/js-api-skd-client 1.0.10307 → 1.0.10309

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.
@@ -124,7 +124,6 @@ const _deletePaymentAccount = (basePath, token, paymentAccountId) => __awaiter(v
124
124
  });
125
125
  exports._deletePaymentAccount = _deletePaymentAccount;
126
126
  const _fetchAccountEvents = (basePath, token, url) => __awaiter(void 0, void 0, void 0, function* () {
127
- const base = (0, base_1.getBasePath)(basePath);
128
127
  const response = yield (0, api_1.getRequest)(url, token);
129
128
  return response;
130
129
  });
@@ -45,8 +45,8 @@ export declare const _unpinDocument: (basePath: string, token: string, eventId:
45
45
  export declare const _pinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
46
46
  export declare const _unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
47
47
  export declare const _fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
48
- export declare const _resendTicketEMail: (basePath: string, token: string, ticketId: string) => Promise<any>;
49
- export declare const _resendBookingEMail: (basePath: string, token: string, bookingId: string) => Promise<any>;
48
+ export declare const _resendTicketEmail: (basePath: string, token: string, ticketId: string) => Promise<any>;
49
+ export declare const _resendBookingEmail: (basePath: string, token: string, bookingId: string) => Promise<any>;
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>>;
@@ -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._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;
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
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");
@@ -253,7 +253,8 @@ const _deleteDocument = (basePath, token, documentId) => __awaiter(void 0, void
253
253
  exports._deleteDocument = _deleteDocument;
254
254
  const _reportExhibitionAction = (basePath, token, exhibitionId, requestData) => __awaiter(void 0, void 0, void 0, function* () {
255
255
  const base = (0, base_1.getBasePath)(basePath);
256
- void (0, api_1.postRequestWE)(`${base.ACTIONS_EXHIBITIONS}/${exhibitionId}`, requestData, token);
256
+ const response = yield (0, api_1.postRequestWE)(`${base.ACTIONS_EXHIBITIONS}/${exhibitionId}`, requestData, token);
257
+ return response;
257
258
  });
258
259
  exports._reportExhibitionAction = _reportExhibitionAction;
259
260
  const _pinDocument = (basePath, token, eventId, documentId) => __awaiter(void 0, void 0, void 0, function* () {
@@ -292,18 +293,18 @@ const _fetchEventGroups = (basePath, token, eventId) => __awaiter(void 0, void 0
292
293
  return groups;
293
294
  });
294
295
  exports._fetchEventGroups = _fetchEventGroups;
295
- const _resendTicketEMail = (basePath, token, ticketId) => __awaiter(void 0, void 0, void 0, function* () {
296
+ const _resendTicketEmail = (basePath, token, ticketId) => __awaiter(void 0, void 0, void 0, function* () {
296
297
  const base = (0, base_1.getBasePath)(basePath);
297
298
  const response = yield (0, api_1.getRequest)(`${base.TICKETS}/${ticketId}/resend-ticket-email`, token);
298
299
  return response;
299
300
  });
300
- exports._resendTicketEMail = _resendTicketEMail;
301
- const _resendBookingEMail = (basePath, token, bookingId) => __awaiter(void 0, void 0, void 0, function* () {
301
+ exports._resendTicketEmail = _resendTicketEmail;
302
+ const _resendBookingEmail = (basePath, token, bookingId) => __awaiter(void 0, void 0, void 0, function* () {
302
303
  const base = (0, base_1.getBasePath)(basePath);
303
304
  const response = yield (0, api_1.getRequest)(`${base.BOOKINGS}/${bookingId}/resend-booking-email`, token);
304
305
  return response;
305
306
  });
306
- exports._resendBookingEMail = _resendBookingEMail;
307
+ exports._resendBookingEmail = _resendBookingEmail;
307
308
  const _checkBooking = (basePath, body, lang) => __awaiter(void 0, void 0, void 0, function* () {
308
309
  const base = (0, base_1.getBasePath)(basePath);
309
310
  const response = yield (0, api_1.postRequestJSON)(`${base.PUBLIC_BOOKINGS}/check?lang=${lang}`, body, null, { "Content-Type": "application/json" });
@@ -388,19 +389,16 @@ const _fetchAccountDetails = (basePath, token, accountId) => __awaiter(void 0, v
388
389
  });
389
390
  exports._fetchAccountDetails = _fetchAccountDetails;
390
391
  const _fetchSpeakers = (basePath, token, url) => __awaiter(void 0, void 0, void 0, function* () {
391
- const base = (0, base_1.getBasePath)(basePath);
392
392
  const response = yield (0, api_1.getRequest)(url, token);
393
393
  return response;
394
394
  });
395
395
  exports._fetchSpeakers = _fetchSpeakers;
396
396
  const _fetchEditableEvents = (basePath, token, url) => __awaiter(void 0, void 0, void 0, function* () {
397
- const base = (0, base_1.getBasePath)(basePath);
398
397
  const response = yield (0, api_1.getRequest)(url, token);
399
398
  return response;
400
399
  });
401
400
  exports._fetchEditableEvents = _fetchEditableEvents;
402
401
  const _fetchMySessions = (basePath, token, url) => __awaiter(void 0, void 0, void 0, function* () {
403
- const base = (0, base_1.getBasePath)(basePath);
404
402
  const response = yield (0, api_1.getRequest)(url, token);
405
403
  return response;
406
404
  });
@@ -66,7 +66,7 @@ exports._postSessionComment = _postSessionComment;
66
66
  const _refetchSessionDiscussion = (basePath, token, sessionId) => __awaiter(void 0, void 0, void 0, function* () {
67
67
  var _a;
68
68
  const base = (0, base_1.getBasePath)(basePath);
69
- const response = yield (0, api_1.deleteRequest)(`${base.SESSIONS}/${sessionId}/chat`, {}, token);
69
+ const response = yield (0, api_1.getRequest)(`${base.SESSIONS}/${sessionId}/chat`, token);
70
70
  return ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.data) || (response === null || response === void 0 ? void 0 : response.data) || response;
71
71
  });
72
72
  exports._refetchSessionDiscussion = _refetchSessionDiscussion;
package/lib/index.js CHANGED
@@ -140,13 +140,13 @@ 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 resendTicketEMail = react_1.default.useCallback((ticketId) => __awaiter(this, void 0, void 0, function* () {
143
+ const resendTicketEmail = react_1.default.useCallback((ticketId) => __awaiter(this, void 0, void 0, function* () {
144
144
  (0, api_1.validateConfig)(config);
145
- return (0, event_1._resendTicketEMail)(config.baseUrl, config.token, ticketId);
145
+ return (0, event_1._resendTicketEmail)(config.baseUrl, config.token, ticketId);
146
146
  }), [config, config.baseUrl, config.token]);
147
- const resendBookingEMail = (0, react_1.useCallback)((bookingId) => __awaiter(this, void 0, void 0, function* () {
147
+ const resendBookingEmail = (0, react_1.useCallback)((bookingId) => __awaiter(this, void 0, void 0, function* () {
148
148
  (0, api_1.validateConfig)(config);
149
- return (0, event_1._resendBookingEMail)(config.baseUrl, config.token, bookingId);
149
+ return (0, event_1._resendBookingEmail)(config.baseUrl, config.token, bookingId);
150
150
  }), [config, config.baseUrl, config.token]);
151
151
  const postTicketDetails = (0, react_1.useCallback)((eventId, profileId, access, body) => __awaiter(this, void 0, void 0, function* () {
152
152
  (0, api_1.validateConfig)(config);
@@ -847,8 +847,8 @@ function EventAPIProvider(props) {
847
847
  pinExhibition,
848
848
  unpinExhibition,
849
849
  fetchEventGroups,
850
- resendBookingEMail,
851
- resendTicketEMail,
850
+ resendBookingEmail,
851
+ resendTicketEmail,
852
852
  postTicketDetails,
853
853
  confirmAttendee,
854
854
  checkBooking,
@@ -1038,8 +1038,8 @@ exports.BaseAPI = {
1038
1038
  pinExhibition: event_1._pinExhibition,
1039
1039
  unpinExhibition: event_1._unpinExhibition,
1040
1040
  fetchEventGroups: event_1._fetchEventGroups,
1041
- resendTicketEMail: event_1._resendTicketEMail,
1042
- resendBookingEMail: event_1._resendBookingEMail,
1041
+ resendTicketEmail: event_1._resendTicketEmail,
1042
+ resendBookingEmail: event_1._resendBookingEmail,
1043
1043
  postTicketDetails: event_1._postTicketDetails,
1044
1044
  confirmAttendee: attendee_1._confirmAttendee,
1045
1045
  checkBooking: event_1._checkBooking,
@@ -85,8 +85,8 @@ 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
- resendTicketEMail: (basePath: string, token: string, ticketId: string) => Promise<any>;
89
- resendBookingEMail: (basePath: string, token: string, bookingId: string) => Promise<any>;
88
+ resendTicketEmail: (basePath: string, token: string, ticketId: string) => Promise<any>;
89
+ resendBookingEmail: (basePath: string, token: string, bookingId: string) => Promise<any>;
90
90
  postTicketDetails: (basePath: string, eventId: string, profileId: string, access: string, body: any) => Promise<any>;
91
91
  confirmAttendee: (basePath: string, token: string, attendeeId: string, data: any) => Promise<any>;
92
92
  checkBooking: (basePath: string, body: any, lang: string) => Promise<any>;
@@ -291,8 +291,8 @@ export type EventAPIType = {
291
291
  pinExhibition: (exhibitionId: string) => Promise<boolean>;
292
292
  unpinExhibition: (exhibitionId: string) => Promise<boolean>;
293
293
  fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
294
- resendTicketEMail: (ticketId: string) => Promise<any>;
295
- resendBookingEMail: (bookingId: string) => Promise<any>;
294
+ resendTicketEmail: (ticketId: string) => Promise<any>;
295
+ resendBookingEmail: (bookingId: string) => Promise<any>;
296
296
  postTicketDetails: (eventId: string, profileId: string, access: string, body: any) => Promise<ResponsePaginationType<BookingDetails>>;
297
297
  confirmAttendee: (attendeeId: string, data: any) => Promise<any>;
298
298
  checkBooking: (body: any, lang: string) => Promise<any>;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10307",
3
+ "version": "1.0.10309",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",
7
7
  "build": "tsc",
8
8
  "format": "prettier --write \"src/**/*.ts\" \"src/**/*.ts\"",
9
- "lint": "tslint -p tsconfig.json",
9
+ "lint": "eslint --ext .ts .",
10
10
  "prepare": "npm run build",
11
11
  "prepublishOnly": "npm test && npm run lint",
12
12
  "preversion": "npm run lint",
@@ -42,6 +42,13 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/jest": "^29.5.0",
45
+ "@typescript-eslint/eslint-plugin": "^6.7.0",
46
+ "@typescript-eslint/parser": "^6.7.0",
47
+ "eslint": "^8.49.0",
48
+ "eslint-config-prettier": "^9.0.0",
49
+ "eslint-plugin-jsdoc": "^46.6.0",
50
+ "eslint-plugin-prefer-arrow": "^1.2.3",
51
+ "eslint-plugin-react": "^7.33.2",
45
52
  "jest": "^29.5.0",
46
53
  "prettier": "^2.8.7",
47
54
  "ts-jest": "^29.1.0",