@hubs101/js-api-skd-client 1.0.10663 → 1.0.10665
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/event/index.d.ts +1 -1
- package/lib/api/event/index.js +2 -2
- package/lib/index.js +1 -1
- package/lib/types/base.d.ts +1 -1
- package/package.json +1 -1
package/lib/api/event/index.d.ts
CHANGED
|
@@ -148,7 +148,7 @@ export declare const _updateBlog: (basePath: string, token: string, blogId: stri
|
|
|
148
148
|
export declare const _fetchBlogDetails: (basePath: string, token: string, blogId: string) => Promise<Blog>;
|
|
149
149
|
export declare const _fetchBlogEvents: (basePath: string, token: string, blogId: string) => Promise<Event[]>;
|
|
150
150
|
export declare const _fetchPortfolioEvents: (basePath: string, token: string, portfolioId: string) => Promise<Event[]>;
|
|
151
|
-
export declare const _fetchBlogEventsBySlug: (basePath: string,
|
|
151
|
+
export declare const _fetchBlogEventsBySlug: (basePath: string, accountId: string, blogSlug: string) => Promise<Event[]>;
|
|
152
152
|
export declare const _fetchBlogPages: (basePath: string, token: string, accountId: string, portfolioId?: string) => Promise<BlogPage[]>;
|
|
153
153
|
export declare const _createBlogPage: (basePath: string, token: string, portfolioId: string, data: BlogPageInput, files: {
|
|
154
154
|
name: string;
|
package/lib/api/event/index.js
CHANGED
|
@@ -740,9 +740,9 @@ const _fetchPortfolioEvents = (basePath, token, portfolioId) => __awaiter(void 0
|
|
|
740
740
|
return (portfolioEvents === null || portfolioEvents === void 0 ? void 0 : portfolioEvents.data) || portfolioEvents;
|
|
741
741
|
});
|
|
742
742
|
exports._fetchPortfolioEvents = _fetchPortfolioEvents;
|
|
743
|
-
const _fetchBlogEventsBySlug = (basePath,
|
|
743
|
+
const _fetchBlogEventsBySlug = (basePath, accountId, blogSlug) => __awaiter(void 0, void 0, void 0, function* () {
|
|
744
744
|
const base = (0, base_1.getBasePath)(basePath);
|
|
745
|
-
const { data: blogEvents } = yield (0, api_1.getRequest)(`${base.
|
|
745
|
+
const { data: blogEvents } = yield (0, api_1.getRequest)(`${base.PUBLIC_ACCOUNTS}/${accountId}/blogs/${blogSlug}/events`);
|
|
746
746
|
return (blogEvents === null || blogEvents === void 0 ? void 0 : blogEvents.data) || blogEvents;
|
|
747
747
|
});
|
|
748
748
|
exports._fetchBlogEventsBySlug = _fetchBlogEventsBySlug;
|
package/lib/index.js
CHANGED
|
@@ -1111,7 +1111,7 @@ function EventAPIProvider(props) {
|
|
|
1111
1111
|
}), [config, config.baseUrl, config.token]);
|
|
1112
1112
|
const fetchBlogEventsBySlug = react_1.default.useCallback((accountId, blogSlug) => __awaiter(this, void 0, void 0, function* () {
|
|
1113
1113
|
(0, api_1.validateConfig)(config);
|
|
1114
|
-
return (0, event_1._fetchBlogEventsBySlug)(config.baseUrl,
|
|
1114
|
+
return (0, event_1._fetchBlogEventsBySlug)(config.baseUrl, accountId, blogSlug);
|
|
1115
1115
|
}), [config, config.baseUrl, config.token]);
|
|
1116
1116
|
const fetchPortfolioEvents = react_1.default.useCallback((portfolioId) => __awaiter(this, void 0, void 0, function* () {
|
|
1117
1117
|
(0, api_1.validateConfig)(config);
|
package/lib/types/base.d.ts
CHANGED
|
@@ -345,7 +345,7 @@ export type BaseAPIType = {
|
|
|
345
345
|
}[]) => Promise<Blog>;
|
|
346
346
|
fetchBlogDetails: (basePath: string, token: string, blogId: string) => Promise<Blog>;
|
|
347
347
|
fetchBlogEvents: (basePath: string, token: string, blogId: string) => Promise<Event[]>;
|
|
348
|
-
fetchBlogEventsBySlug: (basePath: string,
|
|
348
|
+
fetchBlogEventsBySlug: (basePath: string, accountId: string, blogSlug: string) => Promise<Event[]>;
|
|
349
349
|
fetchPortfolioEvents: (basePath: string, token: string, portfolioId: string) => Promise<Event[]>;
|
|
350
350
|
createBlogPage: (basePath: string, token: string, portfolioId: string, data: BlogPageInput, files: {
|
|
351
351
|
name: string;
|