@hubs101/js-api-skd-client 1.0.10268 → 1.0.10270
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.
|
@@ -10,7 +10,7 @@ export declare const _createPaymentAccount: (basePath: string, token: string, da
|
|
|
10
10
|
export declare const _updatePaymentAccount: (basePath: string, token: string, paymentAccountId: string, data: any) => Promise<any>;
|
|
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
|
-
export declare const _registerManager: (basePath: string,
|
|
13
|
+
export declare const _registerManager: (basePath: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
|
|
14
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>;
|
|
@@ -81,9 +81,9 @@ const _deleteContentManager = (basePath, token, accountId, profileId) => __await
|
|
|
81
81
|
return response;
|
|
82
82
|
});
|
|
83
83
|
exports._deleteContentManager = _deleteContentManager;
|
|
84
|
-
const _registerManager = (basePath,
|
|
84
|
+
const _registerManager = (basePath, accountId, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
85
85
|
const base = (0, base_1.getBasePath)(basePath);
|
|
86
|
-
const response = yield (0, api_1.postRequestWE)(`${base.
|
|
86
|
+
const response = yield (0, api_1.postRequestWE)(`${base.PUBLIC_INVITATIONS}/accounts/${accountId}/managers/content-managers`, data);
|
|
87
87
|
return response;
|
|
88
88
|
});
|
|
89
89
|
exports._registerManager = _registerManager;
|
package/lib/index.js
CHANGED
|
@@ -225,7 +225,7 @@ function EventAPIProvider(props) {
|
|
|
225
225
|
}), [config, config.baseUrl, config.token]);
|
|
226
226
|
const registerManager = (0, react_1.useCallback)((accountId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
227
227
|
(0, api_1.validateConfig)(config);
|
|
228
|
-
return (0, authentication_1._registerManager)(config.baseUrl,
|
|
228
|
+
return (0, authentication_1._registerManager)(config.baseUrl, accountId, data);
|
|
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);
|
package/lib/types/base.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export type BaseAPIType = {
|
|
|
103
103
|
updatePaymentAccount: (basePath: string, token: string, paymentAccountId: string, data: any) => Promise<any>;
|
|
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
|
-
registerManager: (basePath: string,
|
|
106
|
+
registerManager: (basePath: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
|
|
107
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>;
|
|
@@ -301,7 +301,7 @@ export type EventAPIType = {
|
|
|
301
301
|
updatePaymentAccount: (paymentAccountId: string, data: any) => Promise<any>;
|
|
302
302
|
inviteContentManager: (accountId: string, data: any) => Promise<any>;
|
|
303
303
|
deleteContentManager: (accountId: string, profileId: string) => Promise<any>;
|
|
304
|
-
registerManager: (accountId: string, data: RegisterManagerInput) => Promise<any>;
|
|
304
|
+
registerManager: (basePath: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
|
|
305
305
|
confirmManager: (accountId: string, data: any) => Promise<any>;
|
|
306
306
|
inviteFinanceManager: (accountId: string, data: any) => Promise<any>;
|
|
307
307
|
deleteFinanceManager: (accountId: string, profileId: string) => Promise<any>;
|