@parra/parra-js-sdk 0.3.540 → 0.3.542

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.
@@ -2331,6 +2331,34 @@ export interface AppFeedItemCollectionResponse {
2331
2331
  total_count: number;
2332
2332
  data: Array<AppFeedItem>;
2333
2333
  }
2334
+ export declare enum FeedChannelType {
2335
+ youtube = "youtube",
2336
+ rss = "rss"
2337
+ }
2338
+ export interface FeedChannelYoutubeData {
2339
+ channel_id: string;
2340
+ youtube_connection_id: string;
2341
+ playlist_id?: string | null;
2342
+ }
2343
+ export interface FeedChannelRssData {
2344
+ id: string;
2345
+ url: string;
2346
+ title: string;
2347
+ link: string;
2348
+ description: string;
2349
+ image_url?: string | null;
2350
+ }
2351
+ export type FeedChannelData = FeedChannelYoutubeData | FeedChannelRssData;
2352
+ export interface FeedChannel {
2353
+ id: string;
2354
+ created_at: string;
2355
+ updated_at: string;
2356
+ deleted_at?: string | null;
2357
+ tenant_id: string;
2358
+ feed_id: string;
2359
+ type: FeedChannelType;
2360
+ data?: FeedChannelData;
2361
+ }
2334
2362
  export interface UpdateFeedRequestBody {
2335
2363
  title?: string;
2336
2364
  slug?: string;
@@ -5482,6 +5510,8 @@ declare class ParraAPI {
5482
5510
  limit?: number;
5483
5511
  offset?: number;
5484
5512
  }, options?: Options) => Promise<AppFeedItemCollectionResponse>;
5513
+ createChannelForFeed: (tenant_id: string, feed_id_or_slug: string, body?: CreateFeedChannelRequestBody, options?: Options) => Promise<FeedChannel>;
5514
+ listChannelsForFeed: (tenant_id: string, feed_id_or_slug: string, options?: Options) => Promise<Array<FeedChannel>>;
5485
5515
  getFeedById: (tenant_id: string, feed_id_or_slug: string, options?: Options) => Promise<FeedView>;
5486
5516
  updateFeedById: (tenant_id: string, feed_id_or_slug: string, body?: UpdateFeedRequestBody, options?: Options) => Promise<FeedView>;
5487
5517
  deleteFeedById: (tenant_id: string, feed_id_or_slug: string, options?: Options) => Promise<Response>;
package/dist/ParraAPI.js CHANGED
@@ -11,8 +11,8 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.ReactionType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseStatus = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = exports.ShareAssetType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
- exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = void 0;
14
+ exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = exports.ReactionType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseStatus = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = exports.ShareAssetType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
+ exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = exports.CampaignStatus = void 0;
16
16
  var TicketType;
17
17
  (function (TicketType) {
18
18
  TicketType["bug"] = "bug";
@@ -264,6 +264,11 @@ var ReactionType;
264
264
  ReactionType["emoji"] = "emoji";
265
265
  ReactionType["custom"] = "custom";
266
266
  })(ReactionType || (exports.ReactionType = ReactionType = {}));
267
+ var FeedChannelType;
268
+ (function (FeedChannelType) {
269
+ FeedChannelType["youtube"] = "youtube";
270
+ FeedChannelType["rss"] = "rss";
271
+ })(FeedChannelType || (exports.FeedChannelType = FeedChannelType = {}));
267
272
  var CommentReviewStatus;
268
273
  (function (CommentReviewStatus) {
269
274
  CommentReviewStatus["pending"] = "pending";
@@ -1324,6 +1329,16 @@ var ParraAPI = /** @class */ (function () {
1324
1329
  if (options === void 0) { options = {}; }
1325
1330
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/feeds/").concat(feed_id_or_slug, "/items"), method: "get", query: query }, options));
1326
1331
  };
1332
+ this.createChannelForFeed = function (tenant_id, feed_id_or_slug, body, options) {
1333
+ if (options === void 0) { options = {}; }
1334
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/channels"), method: "post", body: JSON.stringify(body), headers: {
1335
+ "content-type": "application/json",
1336
+ } }, options));
1337
+ };
1338
+ this.listChannelsForFeed = function (tenant_id, feed_id_or_slug, options) {
1339
+ if (options === void 0) { options = {}; }
1340
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/channels"), method: "get" }, options));
1341
+ };
1327
1342
  this.getFeedById = function (tenant_id, feed_id_or_slug, options) {
1328
1343
  if (options === void 0) { options = {}; }
1329
1344
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug), method: "get" }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.540",
3
+ "version": "0.3.542",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",