@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.
- package/lib/api/authentication/index.d.ts +4 -4
- package/lib/api/authentication/index.js +11 -11
- package/lib/index.js +16 -16
- package/lib/types/base.d.ts +8 -8
- package/package.json +2 -1
|
@@ -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
|
|
26
|
-
export declare const
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const
|
|
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.
|
|
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
|
|
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.
|
|
148
|
-
const
|
|
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.
|
|
154
|
-
const
|
|
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.
|
|
160
|
-
const
|
|
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
|
|
163
|
-
return
|
|
162
|
+
const response = yield (0, api_1.deleteRequestWE)(`${base.ACCOUNTS}/colocated-events/${id}`, token);
|
|
163
|
+
return response;
|
|
164
164
|
});
|
|
165
|
-
exports.
|
|
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
|
|
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.
|
|
906
|
+
return (0, authentication_1._fetchColocatedEvents)(config.baseUrl, config.token, accountId);
|
|
907
907
|
}), [config, config.baseUrl, config.token]);
|
|
908
|
-
const
|
|
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.
|
|
910
|
+
return (0, authentication_1._createColocatedEvents)(config.baseUrl, config.token, accountId, data);
|
|
911
911
|
}), [config, config.baseUrl, config.token]);
|
|
912
|
-
const
|
|
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.
|
|
914
|
+
return (0, authentication_1._editColocatedEvents)(config.baseUrl, config.token, id, data);
|
|
915
915
|
}), [config, config.baseUrl, config.token]);
|
|
916
|
-
const
|
|
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.
|
|
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
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
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
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
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;
|
package/lib/types/base.d.ts
CHANGED
|
@@ -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
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
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
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
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.
|
|
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",
|