@parra/parra-js-sdk 0.3.356 → 0.3.358

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.
@@ -1082,6 +1082,24 @@ export interface UpdateCreatorUpdateRequestBody {
1082
1082
  post_visibility?: CreatorUpdateVisibilityType;
1083
1083
  attachment_visibility?: CreatorUpdateVisibilityType;
1084
1084
  }
1085
+ export interface FeedView {
1086
+ id: string;
1087
+ created_at: string;
1088
+ updated_at: string;
1089
+ deleted_at?: string | null;
1090
+ tenant_id: string;
1091
+ app_area_id?: string | null;
1092
+ title: string;
1093
+ description?: string | null;
1094
+ slug: string;
1095
+ }
1096
+ export interface FeedCollectionResponse {
1097
+ page: number;
1098
+ page_count: number;
1099
+ page_size: number;
1100
+ total_count: number;
1101
+ data: Array<FeedView>;
1102
+ }
1085
1103
  export declare enum FeedItemType {
1086
1104
  youtubeVideo = "youtube_video",
1087
1105
  contentCard = "content_card",
@@ -1178,17 +1196,6 @@ export interface FeedItemCollectionResponse {
1178
1196
  total_count: number;
1179
1197
  data: Array<FeedItem>;
1180
1198
  }
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
- }
1192
1199
  export interface UpdateFeedItemRequestBody {
1193
1200
  disabled?: boolean;
1194
1201
  }
@@ -3860,12 +3867,29 @@ declare class ParraAPI {
3860
3867
  addFaqToSection: (tenant_id: string, faq_view_id: string, faq_section_id: string, body: AddFaqToSectionRequestBody, options?: Options) => Promise<FaqSectionItemStub>;
3861
3868
  removeFaqFromSection: (tenant_id: string, faq_view_id: string, faq_section_id: string, faq_section_item_id: string, options?: Options) => Promise<Response>;
3862
3869
  createCreatorUpdateForTenant: (tenant_id: string, body: CreateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
3863
- paginateCreatorUpdatesForTenant: (tenant_id: string, options?: Options) => Promise<CreatorUpdateCollectionResponse>;
3870
+ paginateCreatorUpdatesForTenant: (tenant_id: string, query?: {
3871
+ $select?: string;
3872
+ $top?: number;
3873
+ $skip?: number;
3874
+ $orderby?: string;
3875
+ $filter?: string;
3876
+ $expand?: string;
3877
+ $search?: string;
3878
+ }, options?: Options) => Promise<CreatorUpdateCollectionResponse>;
3864
3879
  getCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
3865
3880
  updateCreatorUpdate: (tenant_id: string, creator_update_id: string, body?: UpdateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
3866
3881
  deleteCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<Response>;
3867
3882
  sendCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
3868
3883
  deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
3884
+ paginateFeedsForTenant: (tenant_id: string, query?: {
3885
+ $select?: string;
3886
+ $top?: number;
3887
+ $skip?: number;
3888
+ $orderby?: string;
3889
+ $filter?: string;
3890
+ $expand?: string;
3891
+ $search?: string;
3892
+ }, options?: Options) => Promise<FeedCollectionResponse>;
3869
3893
  paginateItemsForAppFeed: (tenant_id: string, application_id: string, feed_id_or_slug: string, query?: {
3870
3894
  limit?: number;
3871
3895
  offset?: number;
package/dist/ParraAPI.js CHANGED
@@ -709,9 +709,9 @@ var ParraAPI = /** @class */ (function () {
709
709
  "content-type": "application/json",
710
710
  } }, options));
711
711
  };
712
- this.paginateCreatorUpdatesForTenant = function (tenant_id, options) {
712
+ this.paginateCreatorUpdatesForTenant = function (tenant_id, query, options) {
713
713
  if (options === void 0) { options = {}; }
714
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates"), __assign({ method: "get" }, options));
714
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates"), __assign({ method: "get", query: query }, options));
715
715
  };
716
716
  this.getCreatorUpdate = function (tenant_id, creator_update_id, options) {
717
717
  if (options === void 0) { options = {}; }
@@ -735,6 +735,10 @@ var ParraAPI = /** @class */ (function () {
735
735
  if (options === void 0) { options = {}; }
736
736
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments/").concat(creator_update_attachment_id), __assign({ method: "delete" }, options));
737
737
  };
738
+ this.paginateFeedsForTenant = function (tenant_id, query, options) {
739
+ if (options === void 0) { options = {}; }
740
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds"), __assign({ method: "get", query: query }, options));
741
+ };
738
742
  this.paginateItemsForAppFeed = function (tenant_id, application_id, feed_id_or_slug, query, options) {
739
743
  if (options === void 0) { options = {}; }
740
744
  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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.356",
3
+ "version": "0.3.358",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",