@hubs101/js-api-skd-client 1.0.10266 → 1.0.10268
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.
|
@@ -11,7 +11,7 @@ export declare const _updatePaymentAccount: (basePath: string, token: string, pa
|
|
|
11
11
|
export declare const _inviteContentManager: (basePath: string, token: string, accountId: string, data: any) => Promise<any>;
|
|
12
12
|
export declare const _deleteContentManager: (basePath: string, token: string, accountId: string, profileId: string) => Promise<any>;
|
|
13
13
|
export declare const _registerManager: (basePath: string, token: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
|
|
14
|
-
export declare const _confirmManager: (basePath: string,
|
|
14
|
+
export declare const _confirmManager: (basePath: string, accountId: string, data: any) => Promise<any>;
|
|
15
15
|
export declare const _inviteFinanceManager: (basePath: string, token: string, accountId: string, data: any) => Promise<any>;
|
|
16
16
|
export declare const _deleteFinanceManager: (basePath: string, token: string, accountId: string, profileId: string) => Promise<any>;
|
|
17
17
|
export declare const _deletePaymentAccount: (basePath: string, token: string, paymentAccountId: string) => Promise<any>;
|
|
@@ -87,9 +87,9 @@ const _registerManager = (basePath, token, accountId, data) => __awaiter(void 0,
|
|
|
87
87
|
return response;
|
|
88
88
|
});
|
|
89
89
|
exports._registerManager = _registerManager;
|
|
90
|
-
const _confirmManager = (basePath,
|
|
90
|
+
const _confirmManager = (basePath, accountId, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
91
91
|
const base = (0, base_1.getBasePath)(basePath);
|
|
92
|
-
const response = yield (0, api_1.postRequestWE)(`${base.PUBLIC_INVITATIONS}/accounts/${accountId}/managers/confirm`, data
|
|
92
|
+
const response = yield (0, api_1.postRequestWE)(`${base.PUBLIC_INVITATIONS}/accounts/${accountId}/managers/confirm`, data);
|
|
93
93
|
return response;
|
|
94
94
|
});
|
|
95
95
|
exports._confirmManager = _confirmManager;
|
|
@@ -55,7 +55,7 @@ const _removeSeat = (basePath, token, sessionId) => __awaiter(void 0, void 0, vo
|
|
|
55
55
|
exports._removeSeat = _removeSeat;
|
|
56
56
|
const _watchSession = (basePath, token, sessionId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
57
57
|
const base = (0, base_1.getBasePath)(basePath);
|
|
58
|
-
return yield (0, api_1.
|
|
58
|
+
return yield (0, api_1.getRequest)(`${base.SESSIONS}/${sessionId}/watch`, token);
|
|
59
59
|
});
|
|
60
60
|
exports._watchSession = _watchSession;
|
|
61
61
|
const _postSessionComment = (basePath, token, sessionId, message) => __awaiter(void 0, void 0, void 0, function* () {
|
package/lib/index.js
CHANGED
|
@@ -229,7 +229,7 @@ function EventAPIProvider(props) {
|
|
|
229
229
|
}), [config, config.baseUrl, config.token]);
|
|
230
230
|
const confirmManager = (0, react_1.useCallback)((accountId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
231
231
|
(0, api_1.validateConfig)(config);
|
|
232
|
-
return (0, authentication_1._confirmManager)(config.baseUrl,
|
|
232
|
+
return (0, authentication_1._confirmManager)(config.baseUrl, accountId, data);
|
|
233
233
|
}), [config, config.baseUrl, config.token]);
|
|
234
234
|
const inviteFinanceManager = (0, react_1.useCallback)((accountId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
235
235
|
(0, api_1.validateConfig)(config);
|
package/lib/types/base.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export type BaseAPIType = {
|
|
|
104
104
|
inviteContentManager: (basePath: string, token: string, accountId: string, data: any) => Promise<any>;
|
|
105
105
|
deleteContentManager: (basePath: string, token: string, accountId: string, profileId: string) => Promise<any>;
|
|
106
106
|
registerManager: (basePath: string, token: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
|
|
107
|
-
confirmManager: (basePath: string,
|
|
107
|
+
confirmManager: (basePath: string, accountId: string, data: any) => Promise<any>;
|
|
108
108
|
inviteFinanceManager: (basePath: string, token: string, accountId: string, data: any) => Promise<any>;
|
|
109
109
|
deleteFinanceManager: (basePath: string, token: string, accountId: string, profileId: string) => Promise<any>;
|
|
110
110
|
deletePaymentAccount: (basePath: string, token: string, paymentAccountId: string) => Promise<any>;
|