@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.
@@ -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, token: string, accountId: string, blogSlug: string) => Promise<Event[]>;
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;
@@ -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, token, accountId, blogSlug) => __awaiter(void 0, void 0, void 0, function* () {
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.ACCOUNTS}/${accountId}/blogs/${blogSlug}/events`, token);
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, config.token, accountId, blogSlug);
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);
@@ -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, token: string, accountId: string, blogSlug: string) => Promise<Event[]>;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10663",
3
+ "version": "1.0.10665",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",