@parra/parra-js-sdk 0.3.354 → 0.3.355

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.
@@ -1178,6 +1178,17 @@ export interface FeedItemCollectionResponse {
1178
1178
  total_count: number;
1179
1179
  data: Array<FeedItem>;
1180
1180
  }
1181
+ export interface FeedView {
1182
+ id: string;
1183
+ created_at: string;
1184
+ updated_at: string;
1185
+ deleted_at?: string | null;
1186
+ tenant_id: string;
1187
+ app_area_id?: string | null;
1188
+ title: string;
1189
+ description?: string | null;
1190
+ slug: string;
1191
+ }
1181
1192
  export interface UpdateFeedItemRequestBody {
1182
1193
  disabled?: boolean;
1183
1194
  }
@@ -3859,6 +3870,7 @@ declare class ParraAPI {
3859
3870
  limit?: number;
3860
3871
  offset?: number;
3861
3872
  }, options?: Options) => Promise<FeedItemCollectionResponse>;
3873
+ getFeedById: (tenant_id: string, feed_id_or_slug: string, options?: Options) => Promise<FeedView>;
3862
3874
  paginateItemsForFeed: (tenant_id: string, feed_id_or_slug: string, query?: {
3863
3875
  $select?: string;
3864
3876
  $top?: number;
package/dist/ParraAPI.js CHANGED
@@ -739,6 +739,10 @@ var ParraAPI = /** @class */ (function () {
739
739
  if (options === void 0) { options = {}; }
740
740
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/feeds/").concat(feed_id_or_slug, "/items"), __assign({ method: "get", query: query }, options));
741
741
  };
742
+ this.getFeedById = function (tenant_id, feed_id_or_slug, options) {
743
+ if (options === void 0) { options = {}; }
744
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug), __assign({ method: "get" }, options));
745
+ };
742
746
  this.paginateItemsForFeed = function (tenant_id, feed_id_or_slug, query, options) {
743
747
  if (options === void 0) { options = {}; }
744
748
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items"), __assign({ method: "get", query: query }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.354",
3
+ "version": "0.3.355",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",