@parra/parra-js-sdk 0.3.606 → 0.3.608

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.
@@ -1113,15 +1113,25 @@ export interface AppArticleCollectionResponse {
1113
1113
  total_count: number;
1114
1114
  data: Array<AppArticleStub>;
1115
1115
  }
1116
+ export type AnyPrice = Price | UnitPrice;
1117
+ export declare enum CtaType {
1118
+ url = "url",
1119
+ email = "email",
1120
+ phone = "phone",
1121
+ sms = "sms",
1122
+ button = "button"
1123
+ }
1116
1124
  export interface Cta {
1117
1125
  url: string;
1118
1126
  title: string;
1127
+ type: CtaType;
1119
1128
  }
1120
1129
  export interface AppAffiliateProduct {
1121
1130
  id: string;
1122
1131
  image?: ImageAssetStub | null;
1123
1132
  name: string;
1124
1133
  description?: string | null;
1134
+ price?: AnyPrice | null;
1125
1135
  cta: Cta;
1126
1136
  }
1127
1137
  export interface AppSponsor {
@@ -2887,7 +2897,6 @@ export interface MarketingContentOfferingSection {
2887
2897
  type: string;
2888
2898
  offerings: Array<MarketingContentOffering>;
2889
2899
  }
2890
- export type AnyPrice = Price | UnitPrice;
2891
2900
  export interface ProductFeatureStub {
2892
2901
  id: string;
2893
2902
  title: string;
@@ -7026,6 +7035,11 @@ declare class ParraAPI {
7026
7035
  sendCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
7027
7036
  scheduleCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, body: ScheduleCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
7028
7037
  deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
7038
+ listSuggestedContentForTenant: (tenant_id: string, query?: {
7039
+ limit?: number;
7040
+ offset?: number;
7041
+ context?: string;
7042
+ }, options?: Options) => Promise<Array<ContentItem>>;
7029
7043
  createSocialAccountForTenant: (tenant_id: string, body?: CreateSocialAccountRequestBody, options?: Options) => Promise<SocialAccount>;
7030
7044
  listSocialAccountsForTenant: (tenant_id: string, query?: {
7031
7045
  include?: string;
package/dist/ParraAPI.js CHANGED
@@ -11,8 +11,9 @@ 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.HeadingTag = exports.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.BorderRadiusType = exports.BorderStyle = exports.TextTransform = exports.FontFamilyType = exports.FontWeightType = exports.FontSizeType = exports.ParraTemplateType = 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.DesignTokenType = exports.ThemeCornerRadiusStyle = exports.ContentType = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantArchetype = 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 = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.TextAlign = void 0;
14
+ exports.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.BorderRadiusType = exports.BorderStyle = exports.TextTransform = exports.FontFamilyType = exports.FontWeightType = exports.FontSizeType = exports.ParraTemplateType = 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.DesignTokenType = exports.ThemeCornerRadiusStyle = exports.ContentType = exports.CtaType = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
15
+ 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 = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.TextAlign = exports.HeadingTag = void 0;
16
+ exports.PolicyDocumentVersionStatus = void 0;
16
17
  var TicketType;
17
18
  (function (TicketType) {
18
19
  TicketType["bug"] = "bug";
@@ -153,6 +154,14 @@ var ReactionType;
153
154
  ReactionType["emoji"] = "emoji";
154
155
  ReactionType["custom"] = "custom";
155
156
  })(ReactionType || (exports.ReactionType = ReactionType = {}));
157
+ var CtaType;
158
+ (function (CtaType) {
159
+ CtaType["url"] = "url";
160
+ CtaType["email"] = "email";
161
+ CtaType["phone"] = "phone";
162
+ CtaType["sms"] = "sms";
163
+ CtaType["button"] = "button";
164
+ })(CtaType || (exports.CtaType = CtaType = {}));
156
165
  var ContentType;
157
166
  (function (ContentType) {
158
167
  ContentType["video"] = "video";
@@ -1597,6 +1606,10 @@ var ParraAPI = /** @class */ (function () {
1597
1606
  if (options === void 0) { options = {}; }
1598
1607
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments/").concat(creator_update_attachment_id), method: "delete" }, options));
1599
1608
  };
1609
+ this.listSuggestedContentForTenant = function (tenant_id, query, options) {
1610
+ if (options === void 0) { options = {}; }
1611
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/content/suggested"), method: "get", query: query }, options));
1612
+ };
1600
1613
  this.createSocialAccountForTenant = function (tenant_id, body, options) {
1601
1614
  if (options === void 0) { options = {}; }
1602
1615
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/social/accounts"), method: "post", body: JSON.stringify(body), headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.606",
3
+ "version": "0.3.608",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",