@parra/parra-js-sdk 0.3.456 → 0.3.458

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.
@@ -1473,6 +1473,7 @@ export interface CreateCreatorUpdateRequestBody {
1473
1473
  entitlement_id?: string | null;
1474
1474
  post_visibility?: CreatorUpdateVisibilityType | null;
1475
1475
  attachment_visibility?: CreatorUpdateVisibilityType | null;
1476
+ user_id?: string | null;
1476
1477
  }
1477
1478
  export declare enum CreatorUpdateStatus {
1478
1479
  draft = "draft",
@@ -1530,11 +1531,13 @@ export interface CreatorUpdate {
1530
1531
  body?: string;
1531
1532
  scheduled_at?: string | null;
1532
1533
  topic?: CreatorUpdateTopic | null;
1534
+ user_id?: string | null;
1533
1535
  sender?: CreatorUpdateSenderStub;
1534
1536
  template?: CreatorUpdateTemplateStub;
1535
1537
  attachments: Array<CreatorUpdateAttachmentStub>;
1536
1538
  visibility: CreatorUpdateVisibility;
1537
1539
  channels: Array<CreatorUpdateChannel>;
1540
+ user?: TenantUserStub | null;
1538
1541
  }
1539
1542
  export interface CreatorUpdateCollectionResponse {
1540
1543
  page: number;
@@ -1550,6 +1553,7 @@ export interface UpdateCreatorUpdateRequestBody {
1550
1553
  entitlement_id?: string | null;
1551
1554
  post_visibility?: CreatorUpdateVisibilityType;
1552
1555
  attachment_visibility?: CreatorUpdateVisibilityType;
1556
+ user_id?: string | null;
1553
1557
  }
1554
1558
  export declare enum CreatorUpdateGiveawayCriteria {
1555
1559
  comment = "comment",
@@ -1568,6 +1572,42 @@ export interface CreatorUpdateGiveawayWinnerResponse {
1568
1572
  export interface ScheduleCreatorUpdateRequestBody {
1569
1573
  schedule_at: string;
1570
1574
  }
1575
+ export declare enum SocialAccountType {
1576
+ x = "x",
1577
+ youtube = "youtube",
1578
+ tiktok = "tiktok",
1579
+ instagram = "instagram",
1580
+ facebook = "facebook"
1581
+ }
1582
+ export interface SocialAccountYoutubeMetrics {
1583
+ subscriber_count: number;
1584
+ view_count: number;
1585
+ like_count: number;
1586
+ dislike_count: number;
1587
+ favorite_count: number;
1588
+ comment_count: number;
1589
+ }
1590
+ export interface SocialAccountXMetrics {
1591
+ follower_count: number;
1592
+ following_count: number;
1593
+ post_count: number;
1594
+ listed_count: number;
1595
+ }
1596
+ export interface SocialAccountMetrics {
1597
+ type: SocialAccountType;
1598
+ youtube?: SocialAccountYoutubeMetrics;
1599
+ x?: SocialAccountXMetrics;
1600
+ }
1601
+ export interface SocialAccount {
1602
+ id: string;
1603
+ created_at: string;
1604
+ updated_at: string;
1605
+ deleted_at?: string | null;
1606
+ type: SocialAccountType;
1607
+ connected_app_connection_id: string;
1608
+ metrics?: SocialAccountMetrics | null;
1609
+ youtube_channel_id?: string | null;
1610
+ }
1571
1611
  export interface FeedView {
1572
1612
  id: string;
1573
1613
  created_at: string;
@@ -4012,6 +4052,17 @@ export interface ParraFeedbackFormBoardIntegrationConnectionData {
4012
4052
  ticket_description?: string | null;
4013
4053
  form_id: string;
4014
4054
  }
4055
+ export interface UpdateParraFormCreatorUpdateIntegrationConnectionData {
4056
+ title?: string | null;
4057
+ body?: string | null;
4058
+ creator_update_template_id?: string | null;
4059
+ }
4060
+ export interface ParraFormCreatorUpdateIntegrationConnectionData {
4061
+ title?: string | null;
4062
+ body?: string | null;
4063
+ creator_update_template_id?: string | null;
4064
+ form_id: string;
4065
+ }
4015
4066
  export interface UpdateParraFeedItemVideoNotificationIntegrationConnectionData {
4016
4067
  notification_template_id: string;
4017
4068
  }
@@ -4125,7 +4176,7 @@ export interface XReleaseCollectionIntegrationConnectionData {
4125
4176
  connected_app_connection_id: string;
4126
4177
  text: string;
4127
4178
  }
4128
- export type IntegrationConnectionData = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData | ParraFeedItemVideoNotificationIntegrationConnectionData | SlackReleaseCollectionIntegrationConnectionData | SlackPurchaseCollectionIntegrationConnectionData | SlackUserCollectionIntegrationConnectionData | DiscordCommentReviewIntegrationConnectionData | DiscordFeedbackFormIntegrationConnectionData | DiscordReleaseCollectionIntegrationConnectionData | DiscordPurchaseCollectionIntegrationConnectionData | DiscordUserCollectionIntegrationConnectionData | SlackCommentReviewIntegrationConnectionData | YoutubeVideoFeedIntegrationConnectionData | XReleaseCollectionIntegrationConnectionData;
4179
+ export type IntegrationConnectionData = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData | ParraFormCreatorUpdateIntegrationConnectionData | ParraFeedItemVideoNotificationIntegrationConnectionData | SlackReleaseCollectionIntegrationConnectionData | SlackPurchaseCollectionIntegrationConnectionData | SlackUserCollectionIntegrationConnectionData | DiscordCommentReviewIntegrationConnectionData | DiscordFeedbackFormIntegrationConnectionData | DiscordReleaseCollectionIntegrationConnectionData | DiscordPurchaseCollectionIntegrationConnectionData | DiscordUserCollectionIntegrationConnectionData | SlackCommentReviewIntegrationConnectionData | YoutubeVideoFeedIntegrationConnectionData | XReleaseCollectionIntegrationConnectionData;
4129
4180
  export interface IntegrationConnection {
4130
4181
  id: string;
4131
4182
  created_at: string;
@@ -4167,8 +4218,8 @@ export interface TenantIntegration {
4167
4218
  export interface UpdateIntegrationConnectionRequestBody {
4168
4219
  active?: boolean;
4169
4220
  }
4170
- export type UpdateIntegrationConnectionDataRequestBody = UpdateSlackFeedbackFormIntegrationConnectionData | UpdateParraFeedbackFormBoardIntegrationConnectionData | UpdateParraFeedItemVideoNotificationIntegrationConnectionData | UpdateSlackReleaseCollectionIntegrationConnectionData | UpdateSlackPurchaseCollectionIntegrationConnectionData | UpdateSlackUserCollectionIntegrationConnectionData | UpdateDiscordCommentReviewIntegrationConnectionData | UpdateDiscordFeedbackFormIntegrationConnectionData | UpdateDiscordReleaseCollectionIntegrationConnectionData | UpdateDiscordPurchaseCollectionIntegrationConnectionData | UpdateDiscordUserCollectionIntegrationConnectionData | UpdateYoutubeVideoFeedIntegrationConnectionData | UpdateXReleaseCollectionIntegrationConnectionData;
4171
- export type CreateIntegrationConnectionRequestBody = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData | ParraFeedItemVideoNotificationIntegrationConnectionData | SlackReleaseCollectionIntegrationConnectionData | SlackPurchaseCollectionIntegrationConnectionData | SlackUserCollectionIntegrationConnectionData | DiscordCommentReviewIntegrationConnectionData | DiscordFeedbackFormIntegrationConnectionData | DiscordReleaseCollectionIntegrationConnectionData | DiscordPurchaseCollectionIntegrationConnectionData | SlackCommentReviewIntegrationConnectionData | YoutubeVideoFeedIntegrationConnectionData | XReleaseCollectionIntegrationConnectionData;
4221
+ export type UpdateIntegrationConnectionDataRequestBody = UpdateSlackFeedbackFormIntegrationConnectionData | UpdateParraFeedbackFormBoardIntegrationConnectionData | UpdateParraFormCreatorUpdateIntegrationConnectionData | UpdateParraFeedItemVideoNotificationIntegrationConnectionData | UpdateSlackReleaseCollectionIntegrationConnectionData | UpdateSlackPurchaseCollectionIntegrationConnectionData | UpdateSlackUserCollectionIntegrationConnectionData | UpdateDiscordCommentReviewIntegrationConnectionData | UpdateDiscordFeedbackFormIntegrationConnectionData | UpdateDiscordReleaseCollectionIntegrationConnectionData | UpdateDiscordPurchaseCollectionIntegrationConnectionData | UpdateDiscordUserCollectionIntegrationConnectionData | UpdateYoutubeVideoFeedIntegrationConnectionData | UpdateXReleaseCollectionIntegrationConnectionData;
4222
+ export type CreateIntegrationConnectionRequestBody = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData | ParraFormCreatorUpdateIntegrationConnectionData | ParraFeedItemVideoNotificationIntegrationConnectionData | SlackReleaseCollectionIntegrationConnectionData | SlackPurchaseCollectionIntegrationConnectionData | SlackUserCollectionIntegrationConnectionData | DiscordCommentReviewIntegrationConnectionData | DiscordFeedbackFormIntegrationConnectionData | DiscordReleaseCollectionIntegrationConnectionData | DiscordPurchaseCollectionIntegrationConnectionData | SlackCommentReviewIntegrationConnectionData | YoutubeVideoFeedIntegrationConnectionData | XReleaseCollectionIntegrationConnectionData;
4172
4223
  export interface TenantInvitationRequestBody {
4173
4224
  name: string;
4174
4225
  email: string;
@@ -4818,6 +4869,9 @@ declare class ParraAPI {
4818
4869
  sendCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
4819
4870
  scheduleCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, body: ScheduleCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
4820
4871
  deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
4872
+ listSocialAccountsForTenant: (tenant_id: string, query?: {
4873
+ include?: string;
4874
+ }, options?: Options) => Promise<Array<SocialAccount>>;
4821
4875
  paginateFeedsForTenant: (tenant_id: string, query?: {
4822
4876
  $select?: string;
4823
4877
  $top?: number;
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.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.ReactionType = exports.FeedItemType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = 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.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = void 0;
14
+ exports.TicketLinkType = exports.BoardType = exports.TemplateType = 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.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = 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.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = void 0;
16
16
  var TicketType;
17
17
  (function (TicketType) {
18
18
  TicketType["bug"] = "bug";
@@ -235,6 +235,14 @@ var CreatorUpdateGiveawayCriteria;
235
235
  CreatorUpdateGiveawayCriteria["comment"] = "comment";
236
236
  CreatorUpdateGiveawayCriteria["reaction"] = "reaction";
237
237
  })(CreatorUpdateGiveawayCriteria || (exports.CreatorUpdateGiveawayCriteria = CreatorUpdateGiveawayCriteria = {}));
238
+ var SocialAccountType;
239
+ (function (SocialAccountType) {
240
+ SocialAccountType["x"] = "x";
241
+ SocialAccountType["youtube"] = "youtube";
242
+ SocialAccountType["tiktok"] = "tiktok";
243
+ SocialAccountType["instagram"] = "instagram";
244
+ SocialAccountType["facebook"] = "facebook";
245
+ })(SocialAccountType || (exports.SocialAccountType = SocialAccountType = {}));
238
246
  var FeedItemType;
239
247
  (function (FeedItemType) {
240
248
  FeedItemType["youtubeVideo"] = "youtube_video";
@@ -1057,6 +1065,10 @@ var ParraAPI = /** @class */ (function () {
1057
1065
  if (options === void 0) { options = {}; }
1058
1066
  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));
1059
1067
  };
1068
+ this.listSocialAccountsForTenant = function (tenant_id, query, options) {
1069
+ if (options === void 0) { options = {}; }
1070
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/social/accounts"), __assign({ method: "get", query: query }, options));
1071
+ };
1060
1072
  this.paginateFeedsForTenant = function (tenant_id, query, options) {
1061
1073
  if (options === void 0) { options = {}; }
1062
1074
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds"), __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.456",
3
+ "version": "0.3.458",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",