@hubs101/js-api-skd-client 1.0.10267 → 1.0.10269
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,8 +10,8 @@ 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,
|
|
14
|
-
export declare const _confirmManager: (basePath: string,
|
|
13
|
+
export declare const _registerManager: (basePath: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
|
|
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>;
|
|
@@ -81,15 +81,15 @@ 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;
|
|
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;
|
package/lib/index.js
CHANGED
|
@@ -225,11 +225,11 @@ 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);
|
|
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
|
@@ -103,8 +103,8 @@ 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,
|
|
107
|
-
confirmManager: (basePath: string,
|
|
106
|
+
registerManager: (basePath: string, accountId: string, data: RegisterManagerInput) => Promise<any>;
|
|
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>;
|
|
@@ -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>;
|