@hubs101/js-api-skd-client 1.0.10425 → 1.0.10431

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 _fetchColocatedEventsGroups: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
26
- export declare const _createColocatedEventsGroup: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
27
- export declare const _editColocatedEventsGroup: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
28
- export declare const _deleteColocatedEventsGroup: (basePath: string, token: string, id: string) => Promise<Response>;
25
+ export declare const _fetchColocatedEvents: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
26
+ export declare const _createColocatedEvents: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
27
+ export declare const _editColocatedEvents: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
28
+ 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._deleteColocatedEventsGroup = exports._editColocatedEventsGroup = exports._createColocatedEventsGroup = exports._fetchColocatedEventsGroups = 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._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,27 +139,27 @@ 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 _fetchColocatedEventsGroups = (basePath, token, accountId) => __awaiter(void 0, void 0, void 0, function* () {
142
+ const _fetchColocatedEvents = (basePath, token, accountId) => __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.getRequest)(`${base.ACCOUNTS}/${accountId}/colocated-events`, token);
145
145
  return groups;
146
146
  });
147
- exports._fetchColocatedEventsGroups = _fetchColocatedEventsGroups;
148
- const _createColocatedEventsGroup = (basePath, token, accountId, data) => __awaiter(void 0, void 0, void 0, function* () {
147
+ exports._fetchColocatedEvents = _fetchColocatedEvents;
148
+ const _createColocatedEvents = (basePath, token, accountId, data) => __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.postRequestWE)(`${base.ACCOUNTS}/${accountId}/colocated-events`, data, token);
151
151
  return groups;
152
152
  });
153
- exports._createColocatedEventsGroup = _createColocatedEventsGroup;
154
- const _editColocatedEventsGroup = (basePath, token, id, data) => __awaiter(void 0, void 0, void 0, function* () {
153
+ exports._createColocatedEvents = _createColocatedEvents;
154
+ const _editColocatedEvents = (basePath, token, id, data) => __awaiter(void 0, void 0, void 0, function* () {
155
155
  const base = (0, base_1.getBasePath)(basePath);
156
156
  const groups = yield (0, api_1.putRequest)(`${base.ACCOUNTS}/colocated-events/${id}`, token, data);
157
157
  return groups;
158
158
  });
159
- exports._editColocatedEventsGroup = _editColocatedEventsGroup;
160
- const _deleteColocatedEventsGroup = (basePath, token, id) => __awaiter(void 0, void 0, void 0, function* () {
159
+ exports._editColocatedEvents = _editColocatedEvents;
160
+ const _deleteColocatedEvents = (basePath, token, id) => __awaiter(void 0, void 0, void 0, function* () {
161
161
  const base = (0, base_1.getBasePath)(basePath);
162
- const groups = yield (0, api_1.deleteRequestWE)(`${base.ACCOUNTS}/colocated-events/${id}`, token);
163
- return groups;
162
+ const response = yield (0, api_1.deleteRequestWE)(`${base.ACCOUNTS}/colocated-events/${id}`, token);
163
+ return response;
164
164
  });
165
- exports._deleteColocatedEventsGroup = _deleteColocatedEventsGroup;
165
+ exports._deleteColocatedEvents = _deleteColocatedEvents;
package/lib/index.js CHANGED
@@ -901,21 +901,21 @@ function EventAPIProvider(props) {
901
901
  (0, api_1.validateConfig)(config);
902
902
  return (0, event_1._deletePortfolioBlogPage)(config.baseUrl, config.token, portfolioId, blogPostId);
903
903
  }), [config, config.baseUrl, config.token]);
904
- const fetchColocatedEventsGroups = (0, react_1.useCallback)((accountId) => __awaiter(this, void 0, void 0, function* () {
904
+ const fetchColocatedEvents = (0, react_1.useCallback)((accountId) => __awaiter(this, void 0, void 0, function* () {
905
905
  (0, api_1.validateConfig)(config);
906
- return (0, authentication_1._fetchColocatedEventsGroups)(config.baseUrl, config.token, accountId);
906
+ return (0, authentication_1._fetchColocatedEvents)(config.baseUrl, config.token, accountId);
907
907
  }), [config, config.baseUrl, config.token]);
908
- const createColocatedEventsGroup = (0, react_1.useCallback)((accountId, data) => __awaiter(this, void 0, void 0, function* () {
908
+ const createColocatedEvents = (0, react_1.useCallback)((accountId, data) => __awaiter(this, void 0, void 0, function* () {
909
909
  (0, api_1.validateConfig)(config);
910
- return (0, authentication_1._createColocatedEventsGroup)(config.baseUrl, config.token, accountId, data);
910
+ return (0, authentication_1._createColocatedEvents)(config.baseUrl, config.token, accountId, data);
911
911
  }), [config, config.baseUrl, config.token]);
912
- const editColocatedEventsGroup = (0, react_1.useCallback)((id, data) => __awaiter(this, void 0, void 0, function* () {
912
+ const editColocatedEvents = (0, react_1.useCallback)((id, data) => __awaiter(this, void 0, void 0, function* () {
913
913
  (0, api_1.validateConfig)(config);
914
- return (0, authentication_1._editColocatedEventsGroup)(config.baseUrl, config.token, id, data);
914
+ return (0, authentication_1._editColocatedEvents)(config.baseUrl, config.token, id, data);
915
915
  }), [config, config.baseUrl, config.token]);
916
- const deleteColocatedEventsGroup = (0, react_1.useCallback)((id) => __awaiter(this, void 0, void 0, function* () {
916
+ const deleteColocatedEvents = (0, react_1.useCallback)((id) => __awaiter(this, void 0, void 0, function* () {
917
917
  (0, api_1.validateConfig)(config);
918
- return (0, authentication_1._deleteColocatedEventsGroup)(config.baseUrl, config.token, id);
918
+ return (0, authentication_1._deleteColocatedEvents)(config.baseUrl, config.token, id);
919
919
  }), [config, config.baseUrl, config.token]);
920
920
  return (react_1.default.createElement(EventAPIContext_1.default.Provider, { value: {
921
921
  config,
@@ -1127,10 +1127,10 @@ function EventAPIProvider(props) {
1127
1127
  getPublicGroupDetails,
1128
1128
  updatePortfolioBlogPage,
1129
1129
  deletePortfolioBlogPage,
1130
- fetchColocatedEventsGroups,
1131
- createColocatedEventsGroup,
1132
- editColocatedEventsGroup,
1133
- deleteColocatedEventsGroup,
1130
+ fetchColocatedEvents,
1131
+ createColocatedEvents,
1132
+ editColocatedEvents,
1133
+ deleteColocatedEvents,
1134
1134
  } }, props.children));
1135
1135
  }
1136
1136
  exports.EventAPIProvider = EventAPIProvider;
@@ -1342,9 +1342,9 @@ exports.BaseAPI = {
1342
1342
  getPublicGroupDetails: public_1._getPublicGroupDetails,
1343
1343
  updatePortfolioBlogPage: event_1._updatePortfolioBlogPage,
1344
1344
  deletePortfolioBlogPage: event_1._deletePortfolioBlogPage,
1345
- fetchColocatedEventsGroups: authentication_1._fetchColocatedEventsGroups,
1346
- createColocatedEventsGroup: authentication_1._createColocatedEventsGroup,
1347
- editColocatedEventsGroup: authentication_1._editColocatedEventsGroup,
1348
- deleteColocatedEventsGroup: authentication_1._deleteColocatedEventsGroup,
1345
+ fetchColocatedEvents: authentication_1._fetchColocatedEvents,
1346
+ createColocatedEvents: authentication_1._createColocatedEvents,
1347
+ editColocatedEvents: authentication_1._editColocatedEvents,
1348
+ deleteColocatedEvents: authentication_1._deleteColocatedEvents,
1349
1349
  };
1350
1350
  exports.useAPIContext = EventAPIContext_1.useAPIContext;
@@ -306,10 +306,10 @@ export type BaseAPIType = {
306
306
  value: File;
307
307
  }[]) => Promise<BlogPage>;
308
308
  deletePortfolioBlogPage: (basePath: string, token: string, portfolioId: string, blogPostId: string) => Promise<Response>;
309
- fetchColocatedEventsGroups: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
310
- createColocatedEventsGroup: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
311
- editColocatedEventsGroup: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
312
- deleteColocatedEventsGroup: (basePath: string, token: string, id: string) => Promise<Response>;
309
+ fetchColocatedEvents: (basePath: string, token: string, accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
310
+ createColocatedEvents: (basePath: string, token: string, accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
311
+ editColocatedEvents: (basePath: string, token: string, id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
312
+ deleteColocatedEvents: (basePath: string, token: string, id: string) => Promise<string>;
313
313
  updateVisibilityAttendee: (basePath: string, token: string, attendeeId: string, visibility: string) => Promise<SuccessResponse>;
314
314
  };
315
315
  export type EventAPIType = {
@@ -545,10 +545,10 @@ export type EventAPIType = {
545
545
  value: File;
546
546
  }[]) => Promise<BlogPage>;
547
547
  deletePortfolioBlogPage: (portfolioId: string, blogPostId: string) => Promise<Response>;
548
- fetchColocatedEventsGroups: (accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
549
- createColocatedEventsGroup: (accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
550
- editColocatedEventsGroup: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
551
- deleteColocatedEventsGroup: (id: string) => Promise<Response>;
548
+ fetchColocatedEvents: (accountId: string) => Promise<ResponsePaginationType<ColocatedEventsGroupType>>;
549
+ createColocatedEvents: (accountId: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
550
+ editColocatedEvents: (id: string, data: ColocatedEventsGroupInputType) => Promise<ColocatedEventsGroupType>;
551
+ deleteColocatedEvents: (id: string) => Promise<string>;
552
552
  updateVisibilityAttendee: (attendeeId: string, visibility: string) => Promise<SuccessResponse>;
553
553
  };
554
554
  export type BaseAPIConfigType = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10425",
3
+ "version": "1.0.10431",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",
@@ -8,6 +8,7 @@
8
8
  "format": "prettier --write \"src/**/*.ts\" \"src/**/*.ts\"",
9
9
  "lint": "eslint --ext .ts .",
10
10
  "prepare": "npm run build",
11
+ "n-version": "git pull && npm run build && git commit -m \"update api\" -a --no-verify && npm version patch && npm publish",
11
12
  "prepublishOnly": "npm test && npm run lint",
12
13
  "preversion": "npm run lint",
13
14
  "version": "npm run format && git add -A src",