@parra/parra-js-sdk 0.3.569 → 0.3.571

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.
@@ -737,6 +737,10 @@ export interface FeaturedApplicationLink {
737
737
  title: string;
738
738
  href: string;
739
739
  }
740
+ export interface Rating {
741
+ average_rating: number;
742
+ total_ratings: number;
743
+ }
740
744
  export interface FeaturedApplication {
741
745
  id: string;
742
746
  created_at: string;
@@ -748,6 +752,7 @@ export interface FeaturedApplication {
748
752
  icon: ImageAssetStub;
749
753
  ios?: ApplicationIosConfig | null;
750
754
  link: FeaturedApplicationLink;
755
+ rating?: Rating | null;
751
756
  }
752
757
  export interface LinkUtmParameters {
753
758
  source?: string | null;
@@ -3135,7 +3140,12 @@ export interface CreateCustomSocialAccountRequestBody {
3135
3140
  handle?: string | null;
3136
3141
  url?: string | null;
3137
3142
  }
3138
- export type CreateSocialAccountRequestBody = CreateYoutubeSocialAccountRequestBody | CreateXSocialAccountRequestBody | CreateTiktokSocialAccountRequestBody | CreateInstagramSocialAccountRequestBody | CreateFacebookSocialAccountRequestBody | CreateTwitchSocialAccountRequestBody | CreateLinkedinSocialAccountRequestBody | CreateShopifySocialAccountRequestBody | CreateWebsiteSocialAccountRequestBody | CreateRssSocialAccountRequestBody | CreateCustomSocialAccountRequestBody;
3143
+ export interface CreateEmailSocialAccountRequestBody {
3144
+ type: string;
3145
+ email: string;
3146
+ slug?: string | null;
3147
+ }
3148
+ export type CreateSocialAccountRequestBody = CreateYoutubeSocialAccountRequestBody | CreateXSocialAccountRequestBody | CreateTiktokSocialAccountRequestBody | CreateInstagramSocialAccountRequestBody | CreateFacebookSocialAccountRequestBody | CreateTwitchSocialAccountRequestBody | CreateLinkedinSocialAccountRequestBody | CreateShopifySocialAccountRequestBody | CreateWebsiteSocialAccountRequestBody | CreateRssSocialAccountRequestBody | CreateCustomSocialAccountRequestBody | CreateEmailSocialAccountRequestBody;
3139
3149
  export declare enum SocialAccountType {
3140
3150
  x = "x",
3141
3151
  youtube = "youtube",
@@ -3147,7 +3157,8 @@ export declare enum SocialAccountType {
3147
3157
  shopify = "shopify",
3148
3158
  website = "website",
3149
3159
  rss = "rss",
3150
- custom = "custom"
3160
+ custom = "custom",
3161
+ email = "email"
3151
3162
  }
3152
3163
  export interface SocialAccountYoutubeData {
3153
3164
  channel_handle: string;
@@ -3200,6 +3211,10 @@ export interface SocialAccountWebsiteData {
3200
3211
  url: string;
3201
3212
  slug?: string | null;
3202
3213
  }
3214
+ export interface SocialAccountEmailData {
3215
+ email: string;
3216
+ slug?: string | null;
3217
+ }
3203
3218
  export interface SocialAccountRssData {
3204
3219
  url: string;
3205
3220
  rss_feed_id: string;
@@ -3209,7 +3224,7 @@ export interface SocialAccountCustomData {
3209
3224
  handle?: string | null;
3210
3225
  url?: string | null;
3211
3226
  }
3212
- export type SocialAccountData = SocialAccountYoutubeData | SocialAccountXData | SocialAccountTiktokData | SocialAccountInstagramData | SocialAccountFacebookData | SocialAccountTwitchData | SocialAccountLinkedinData | SocialAccountShopifyData | SocialAccountWebsiteData | SocialAccountRssData | SocialAccountCustomData;
3227
+ export type SocialAccountData = SocialAccountYoutubeData | SocialAccountXData | SocialAccountTiktokData | SocialAccountInstagramData | SocialAccountFacebookData | SocialAccountTwitchData | SocialAccountLinkedinData | SocialAccountShopifyData | SocialAccountWebsiteData | SocialAccountEmailData | SocialAccountRssData | SocialAccountCustomData;
3213
3228
  export interface SocialAccountYoutubeMetrics {
3214
3229
  last_synced_at: string;
3215
3230
  subscriber_count: number;
@@ -6623,6 +6638,7 @@ declare class ParraAPI {
6623
6638
  listSocialAccountsForTenant: (tenant_id: string, query?: {
6624
6639
  include?: string;
6625
6640
  }, options?: Options) => Promise<Array<SocialAccount>>;
6641
+ deleteSocialAccountById: (tenant_id: string, social_account_id: string, options?: Options) => Promise<Response>;
6626
6642
  paginateFeedsForTenant: (tenant_id: string, query?: {
6627
6643
  limit?: number;
6628
6644
  offset?: number;
package/dist/ParraAPI.js CHANGED
@@ -370,6 +370,7 @@ var SocialAccountType;
370
370
  SocialAccountType["website"] = "website";
371
371
  SocialAccountType["rss"] = "rss";
372
372
  SocialAccountType["custom"] = "custom";
373
+ SocialAccountType["email"] = "email";
373
374
  })(SocialAccountType || (exports.SocialAccountType = SocialAccountType = {}));
374
375
  var FeedItemType;
375
376
  (function (FeedItemType) {
@@ -1478,6 +1479,10 @@ var ParraAPI = /** @class */ (function () {
1478
1479
  if (options === void 0) { options = {}; }
1479
1480
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/social/accounts"), method: "get", query: query }, options));
1480
1481
  };
1482
+ this.deleteSocialAccountById = function (tenant_id, social_account_id, options) {
1483
+ if (options === void 0) { options = {}; }
1484
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/social/accounts/").concat(social_account_id), method: "delete" }, options));
1485
+ };
1481
1486
  this.paginateFeedsForTenant = function (tenant_id, query, options) {
1482
1487
  if (options === void 0) { options = {}; }
1483
1488
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds"), 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.569",
3
+ "version": "0.3.571",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",