@parra/parra-js-sdk 0.3.348 → 0.3.350

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.
@@ -1176,6 +1176,9 @@ export interface FeedItemCollectionResponse {
1176
1176
  total_count: number;
1177
1177
  data: Array<FeedItem>;
1178
1178
  }
1179
+ export interface UpdateFeedItemRequestBody {
1180
+ disabled?: boolean;
1181
+ }
1179
1182
  export interface SubmitFeedbackFormResponseBody {
1180
1183
  }
1181
1184
  export interface FeedbackFormResponse {
@@ -3854,6 +3857,17 @@ declare class ParraAPI {
3854
3857
  limit?: number;
3855
3858
  offset?: number;
3856
3859
  }, options?: Options) => Promise<FeedItemCollectionResponse>;
3860
+ paginateItemsForFeed: (tenant_id: string, feed_id_or_slug: string, query?: {
3861
+ $select?: string;
3862
+ $top?: number;
3863
+ $skip?: number;
3864
+ $orderby?: string;
3865
+ $filter?: string;
3866
+ $expand?: string;
3867
+ $search?: string;
3868
+ }, options?: Options) => Promise<FeedItemCollectionResponse>;
3869
+ updateFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, body?: UpdateFeedItemRequestBody, options?: Options) => Promise<FeedItemCollectionResponse>;
3870
+ deleteFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, options?: Options) => Promise<Response>;
3857
3871
  paginateFeedbackFormResponsesForTenantUser: (tenant_id: string, user_id: string, query?: {
3858
3872
  $select?: string;
3859
3873
  $top?: number;
package/dist/ParraAPI.js CHANGED
@@ -739,6 +739,20 @@ 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.paginateItemsForFeed = function (tenant_id, feed_id_or_slug, query, 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, "/items"), __assign({ method: "get", query: query }, options));
745
+ };
746
+ this.updateFeedItem = function (tenant_id, feed_id_or_slug, feed_item_id, body, options) {
747
+ if (options === void 0) { options = {}; }
748
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items/").concat(feed_item_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
749
+ "content-type": "application/json",
750
+ } }, options));
751
+ };
752
+ this.deleteFeedItem = function (tenant_id, feed_id_or_slug, feed_item_id, options) {
753
+ if (options === void 0) { options = {}; }
754
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items/").concat(feed_item_id), __assign({ method: "delete" }, options));
755
+ };
742
756
  this.paginateFeedbackFormResponsesForTenantUser = function (tenant_id, user_id, query, options) {
743
757
  if (options === void 0) { options = {}; }
744
758
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/feedback/form/responses"), __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.348",
3
+ "version": "0.3.350",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",