@hubs101/js-api-skd-client 1.0.10432 → 1.0.10433

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.
@@ -22,7 +22,7 @@ export declare const _deletePaymentAccount: (basePath: string, token: string, pa
22
22
  export declare const _fetchAccountEvents: (basePath: string, token: string, url: string) => Promise<ResponseAccountEventsType>;
23
23
  export declare const _fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
24
24
  export declare const _createAccountGroup: (basePath: string, token: string, accountId: string, data: GroupInputType) => Promise<GroupResponseType>;
25
- export declare const _editAccountGroup: (basePath: string, token: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
25
+ export declare const _updateAccountGroup: (basePath: string, token: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
26
26
  export declare const _fetchColocatedEvents: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
27
27
  export declare const _createColocatedEvents: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
28
28
  export declare const _editColocatedEvents: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
@@ -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._deleteColocatedEvents = exports._editColocatedEvents = exports._createColocatedEvents = exports._fetchColocatedEvents = exports._editAccountGroup = exports._createAccountGroup = exports._fetchAccountGroups = 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._deleteColocatedEvents = exports._editColocatedEvents = exports._createColocatedEvents = exports._fetchColocatedEvents = exports._updateAccountGroup = exports._createAccountGroup = exports._fetchAccountGroups = 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* () {
@@ -139,12 +139,12 @@ const _createAccountGroup = (basePath, token, accountId, data) => __awaiter(void
139
139
  return (0, api_1.postRequestWE)(`${base.ACCOUNTS}/${accountId}/groups`, data, token);
140
140
  });
141
141
  exports._createAccountGroup = _createAccountGroup;
142
- const _editAccountGroup = (basePath, token, groupId, data) => __awaiter(void 0, void 0, void 0, function* () {
142
+ const _updateAccountGroup = (basePath, token, groupId, data) => __awaiter(void 0, void 0, void 0, function* () {
143
143
  const base = (0, base_1.getBasePath)(basePath);
144
144
  const groups = yield (0, api_1.putRequest)(`${base.GROUPS}/${groupId}`, token, data);
145
145
  return groups;
146
146
  });
147
- exports._editAccountGroup = _editAccountGroup;
147
+ exports._updateAccountGroup = _updateAccountGroup;
148
148
  const _fetchColocatedEvents = (basePath, token, accountId) => __awaiter(void 0, void 0, void 0, function* () {
149
149
  const base = (0, base_1.getBasePath)(basePath);
150
150
  const groups = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/${accountId}/colocated-events`, token);
package/lib/index.js CHANGED
@@ -141,9 +141,9 @@ function EventAPIProvider(props) {
141
141
  (0, api_1.validateConfig)(config);
142
142
  return (0, event_1._fetchEventGroups)(config.baseUrl, config.token, eventId);
143
143
  }), [config, config.baseUrl, config.token]);
144
- const editAccountGroup = (0, react_1.useCallback)((groupId, data) => __awaiter(this, void 0, void 0, function* () {
144
+ const updateAccountGroup = (0, react_1.useCallback)((groupId, data) => __awaiter(this, void 0, void 0, function* () {
145
145
  (0, api_1.validateConfig)(config);
146
- return (0, authentication_1._editAccountGroup)(config.baseUrl, config.token, groupId, data);
146
+ return (0, authentication_1._updateAccountGroup)(config.baseUrl, config.token, groupId, data);
147
147
  }), [config, config.baseUrl, config.token]);
148
148
  const updateVisibilityAttendee = (0, react_1.useCallback)((attendeeId, visibility) => __awaiter(this, void 0, void 0, function* () {
149
149
  (0, api_1.validateConfig)(config);
@@ -940,7 +940,7 @@ function EventAPIProvider(props) {
940
940
  pinExhibition,
941
941
  unpinExhibition,
942
942
  fetchEventGroups,
943
- editAccountGroup,
943
+ updateAccountGroup,
944
944
  updateVisibilityAttendee,
945
945
  fetchAccountGroups,
946
946
  fetchEventAttendeeActions,
@@ -1154,7 +1154,7 @@ exports.BaseAPI = {
1154
1154
  pinExhibition: event_1._pinExhibition,
1155
1155
  unpinExhibition: event_1._unpinExhibition,
1156
1156
  fetchEventGroups: event_1._fetchEventGroups,
1157
- editAccountGroup: authentication_1._editAccountGroup,
1157
+ updateAccountGroup: authentication_1._updateAccountGroup,
1158
1158
  updateVisibilityAttendee: attendee_1._updateVisibilityAttendee,
1159
1159
  fetchAccountGroups: authentication_1._fetchAccountGroups,
1160
1160
  fetchEventAttendeeActions: event_1._fetchEventAttendeeActions,
@@ -89,7 +89,7 @@ export type BaseAPIType = {
89
89
  unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
90
90
  getPublicRegistrationForm: (basePath: string, eventId: string) => Promise<any>;
91
91
  fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
92
- editAccountGroup: (basePath: string, token: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
92
+ updateAccountGroup: (basePath: string, token: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
93
93
  fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
94
94
  fetchEventAttendeeActions: (basePath: string, token: string, eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
95
95
  fetchAccountBookings: (basePath: string, token: string, accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
@@ -332,7 +332,7 @@ export type EventAPIType = {
332
332
  pinExhibition: (exhibitionId: string) => Promise<boolean>;
333
333
  unpinExhibition: (exhibitionId: string) => Promise<boolean>;
334
334
  fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
335
- editAccountGroup: (groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
335
+ updateAccountGroup: (groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
336
336
  fetchAccountGroups: (accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
337
337
  fetchEventAttendeeActions: (eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
338
338
  fetchAccountBookings: (accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10432",
3
+ "version": "1.0.10433",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",