scrapebadger 0.56.0 → 0.57.0

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/dist/index.d.cts CHANGED
@@ -8940,7 +8940,13 @@ declare class FacebookClient {
8940
8940
  getAnAd(adArchiveId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
8941
8941
  /** Get group detail. Generated from the OpenAPI spec; returns the raw response object. */
8942
8942
  getGroupDetail(groupId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
8943
- /** Get group posts. Generated from the OpenAPI spec; returns the raw response object. */
8943
+ /**
8944
+ * Get a public group's post feed, 3 posts per page. Generated from the OpenAPI spec; returns the raw response object.
8945
+ *
8946
+ * `params.sort` is `"newest"` (newest first by post time, the default) or `"relevance"`
8947
+ * (Facebook's top-posts ranking). Pass `end_cursor` back as `params.after` while
8948
+ * `has_next_page` for older posts, keeping the same sort.
8949
+ */
8944
8950
  getGroupPosts(groupId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
8945
8951
  /** List categories. Generated from the OpenAPI spec; returns the raw response object. */
8946
8952
  listCategories(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
package/dist/index.d.ts CHANGED
@@ -8940,7 +8940,13 @@ declare class FacebookClient {
8940
8940
  getAnAd(adArchiveId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
8941
8941
  /** Get group detail. Generated from the OpenAPI spec; returns the raw response object. */
8942
8942
  getGroupDetail(groupId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
8943
- /** Get group posts. Generated from the OpenAPI spec; returns the raw response object. */
8943
+ /**
8944
+ * Get a public group's post feed, 3 posts per page. Generated from the OpenAPI spec; returns the raw response object.
8945
+ *
8946
+ * `params.sort` is `"newest"` (newest first by post time, the default) or `"relevance"`
8947
+ * (Facebook's top-posts ranking). Pass `end_cursor` back as `params.after` while
8948
+ * `has_next_page` for older posts, keeping the same sort.
8949
+ */
8944
8950
  getGroupPosts(groupId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
8945
8951
  /** List categories. Generated from the OpenAPI spec; returns the raw response object. */
8946
8952
  listCategories(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
  var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
10
10
 
11
11
  // src/internal/version.ts
12
- var SDK_VERSION = "0.56.0";
12
+ var SDK_VERSION = "0.57.0";
13
13
 
14
14
  // src/internal/exceptions.ts
15
15
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -6228,7 +6228,13 @@ var FacebookClient = class {
6228
6228
  async getGroupDetail(groupId, params = {}) {
6229
6229
  return this.client.request(`/v1/facebook/groups/${groupId}`, { params });
6230
6230
  }
6231
- /** Get group posts. Generated from the OpenAPI spec; returns the raw response object. */
6231
+ /**
6232
+ * Get a public group's post feed, 3 posts per page. Generated from the OpenAPI spec; returns the raw response object.
6233
+ *
6234
+ * `params.sort` is `"newest"` (newest first by post time, the default) or `"relevance"`
6235
+ * (Facebook's top-posts ranking). Pass `end_cursor` back as `params.after` while
6236
+ * `has_next_page` for older posts, keeping the same sort.
6237
+ */
6232
6238
  async getGroupPosts(groupId, params = {}) {
6233
6239
  return this.client.request(`/v1/facebook/groups/${groupId}/posts`, { params });
6234
6240
  }