@parra/parra-js-sdk 0.3.457 → 0.3.459
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.
- package/dist/ParraAPI.d.ts +46 -7
- package/dist/ParraAPI.js +14 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -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;
|
@@ -4814,13 +4854,9 @@ declare class ParraAPI {
|
|
4814
4854
|
deleteCreatorUpdateTemplateById: (tenant_id: string, creator_update_template_id: string, options?: Options) => Promise<Response>;
|
4815
4855
|
createCreatorUpdateForTenant: (tenant_id: string, body?: CreateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
|
4816
4856
|
paginateCreatorUpdatesForTenant: (tenant_id: string, query?: {
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4820
|
-
$orderby?: string;
|
4821
|
-
$filter?: string;
|
4822
|
-
$expand?: string;
|
4823
|
-
$search?: string;
|
4857
|
+
topic?: string;
|
4858
|
+
limit?: number;
|
4859
|
+
offset?: number;
|
4824
4860
|
}, options?: Options) => Promise<CreatorUpdateCollectionResponse>;
|
4825
4861
|
getCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
|
4826
4862
|
updateCreatorUpdate: (tenant_id: string, creator_update_id: string, body?: UpdateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
|
@@ -4829,6 +4865,9 @@ declare class ParraAPI {
|
|
4829
4865
|
sendCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
|
4830
4866
|
scheduleCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, body: ScheduleCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
|
4831
4867
|
deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
|
4868
|
+
listSocialAccountsForTenant: (tenant_id: string, query?: {
|
4869
|
+
include?: string;
|
4870
|
+
}, options?: Options) => Promise<Array<SocialAccount>>;
|
4832
4871
|
paginateFeedsForTenant: (tenant_id: string, query?: {
|
4833
4872
|
$select?: string;
|
4834
4873
|
$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.
|
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));
|