@parra/parra-js-sdk 0.3.536 → 0.3.538

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.
@@ -1069,6 +1069,10 @@ export declare enum PurchaseType {
1069
1069
  consumable = "consumable",
1070
1070
  subscription = "subscription"
1071
1071
  }
1072
+ export declare enum PurchaseStatus {
1073
+ active = "active",
1074
+ expired = "expired"
1075
+ }
1072
1076
  export declare enum PurchasePlatform {
1073
1077
  apple = "apple",
1074
1078
  parra = "parra",
@@ -1088,6 +1092,7 @@ export declare enum ApplePurchaseType {
1088
1092
  autoRenewableSubscription = "Auto-Renewable Subscription"
1089
1093
  }
1090
1094
  export interface ApplePurchase {
1095
+ is_trial?: boolean | null;
1091
1096
  receipt: string;
1092
1097
  payload: object;
1093
1098
  original_transaction_id: string;
@@ -1095,6 +1100,9 @@ export interface ApplePurchase {
1095
1100
  purchase_date: string;
1096
1101
  original_purchase_date: string;
1097
1102
  expires_date?: string | null;
1103
+ auto_renew?: boolean | null;
1104
+ renewal_date?: string | null;
1105
+ renewal_price?: Price | null;
1098
1106
  price: Price;
1099
1107
  quantity: number;
1100
1108
  bundle_id: string;
@@ -1124,6 +1132,7 @@ export interface UserPurchase {
1124
1132
  user?: TenantUserStub;
1125
1133
  product?: ProductStub | null;
1126
1134
  type: PurchaseType;
1135
+ status: PurchaseStatus;
1127
1136
  platform: PurchasePlatform;
1128
1137
  environment: PurchaseEnvironment;
1129
1138
  environment_description?: string | null;
@@ -2057,14 +2066,20 @@ export interface CreateTwitchSocialAccountRequestBody {
2057
2066
  handle: string;
2058
2067
  connection_id?: string | null;
2059
2068
  }
2060
- export type CreateSocialAccountRequestBody = CreateYoutubeSocialAccountRequestBody | CreateXSocialAccountRequestBody | CreateTiktokSocialAccountRequestBody | CreateInstagramSocialAccountRequestBody | CreateFacebookSocialAccountRequestBody | CreateTwitchSocialAccountRequestBody;
2069
+ export interface CreateLinkedinSocialAccountRequestBody {
2070
+ type: string;
2071
+ profile_id: string;
2072
+ connection_id?: string | null;
2073
+ }
2074
+ export type CreateSocialAccountRequestBody = CreateYoutubeSocialAccountRequestBody | CreateXSocialAccountRequestBody | CreateTiktokSocialAccountRequestBody | CreateInstagramSocialAccountRequestBody | CreateFacebookSocialAccountRequestBody | CreateTwitchSocialAccountRequestBody | CreateLinkedinSocialAccountRequestBody;
2061
2075
  export declare enum SocialAccountType {
2062
2076
  x = "x",
2063
2077
  youtube = "youtube",
2064
2078
  tiktok = "tiktok",
2065
2079
  instagram = "instagram",
2066
2080
  facebook = "facebook",
2067
- twitch = "twitch"
2081
+ twitch = "twitch",
2082
+ linkedin = "linkedin"
2068
2083
  }
2069
2084
  export interface SocialAccountYoutubeData {
2070
2085
  channel_handle: string;
@@ -2101,7 +2116,13 @@ export interface SocialAccountTwitchData {
2101
2116
  description?: string | null;
2102
2117
  profile_image_url?: string | null;
2103
2118
  }
2104
- export type SocialAccountData = SocialAccountYoutubeData | SocialAccountXData | SocialAccountTiktokData | SocialAccountInstagramData | SocialAccountFacebookData | SocialAccountTwitchData;
2119
+ export interface SocialAccountLinkedinData {
2120
+ handle?: string | null;
2121
+ profile_id: string;
2122
+ profile_name?: string | null;
2123
+ profile_image_url?: string | null;
2124
+ }
2125
+ export type SocialAccountData = SocialAccountYoutubeData | SocialAccountXData | SocialAccountTiktokData | SocialAccountInstagramData | SocialAccountFacebookData | SocialAccountTwitchData | SocialAccountLinkedinData;
2105
2126
  export interface SocialAccountYoutubeMetrics {
2106
2127
  last_synced_at: string;
2107
2128
  subscriber_count: 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.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.LessonType = 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.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 = void 0;
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;
16
16
  var TicketType;
17
17
  (function (TicketType) {
18
18
  TicketType["bug"] = "bug";
@@ -150,6 +150,11 @@ var PurchaseType;
150
150
  PurchaseType["consumable"] = "consumable";
151
151
  PurchaseType["subscription"] = "subscription";
152
152
  })(PurchaseType || (exports.PurchaseType = PurchaseType = {}));
153
+ var PurchaseStatus;
154
+ (function (PurchaseStatus) {
155
+ PurchaseStatus["active"] = "active";
156
+ PurchaseStatus["expired"] = "expired";
157
+ })(PurchaseStatus || (exports.PurchaseStatus = PurchaseStatus = {}));
153
158
  var PurchasePlatform;
154
159
  (function (PurchasePlatform) {
155
160
  PurchasePlatform["apple"] = "apple";
@@ -245,6 +250,7 @@ var SocialAccountType;
245
250
  SocialAccountType["instagram"] = "instagram";
246
251
  SocialAccountType["facebook"] = "facebook";
247
252
  SocialAccountType["twitch"] = "twitch";
253
+ SocialAccountType["linkedin"] = "linkedin";
248
254
  })(SocialAccountType || (exports.SocialAccountType = SocialAccountType = {}));
249
255
  var FeedItemType;
250
256
  (function (FeedItemType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.536",
3
+ "version": "0.3.538",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",