@parra/parra-js-sdk 0.3.438 → 0.3.440
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 +20 -0
- package/dist/ParraAPI.js +19 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1481,6 +1481,22 @@ export interface UpdateCreatorUpdateRequestBody {
|
|
1481
1481
|
post_visibility?: CreatorUpdateVisibilityType;
|
1482
1482
|
attachment_visibility?: CreatorUpdateVisibilityType;
|
1483
1483
|
}
|
1484
|
+
export declare enum CreatorUpdateGiveawayCriteria {
|
1485
|
+
comment = "comment",
|
1486
|
+
reaction = "reaction"
|
1487
|
+
}
|
1488
|
+
export interface CreatorUpdateGiveawayWinnerRequestBody {
|
1489
|
+
criteria: CreatorUpdateGiveawayCriteria;
|
1490
|
+
}
|
1491
|
+
export interface CreatorUpdateGiveawayWinnerResponse {
|
1492
|
+
winning_user_id?: string;
|
1493
|
+
winning_user?: TenantUserStub;
|
1494
|
+
message: string;
|
1495
|
+
total_entries: number;
|
1496
|
+
}
|
1497
|
+
export interface ScheduleCreatorUpdateRequestBody {
|
1498
|
+
schedule_at: string;
|
1499
|
+
}
|
1484
1500
|
export interface FeedView {
|
1485
1501
|
id: string;
|
1486
1502
|
created_at: string;
|
@@ -4510,6 +4526,8 @@ declare class ParraAPI {
|
|
4510
4526
|
paginateMessagesForChatChannel: (tenant_id: string, channel_id: string, query?: {
|
4511
4527
|
limit?: number;
|
4512
4528
|
offset?: number;
|
4529
|
+
sort?: string;
|
4530
|
+
created_at?: string;
|
4513
4531
|
}, options?: Options) => Promise<MessageCollectionResponse>;
|
4514
4532
|
createMessageForChatChannel: (tenant_id: string, channel_id: string, body: CreateMessageRequestBody, options?: Options) => Promise<Message>;
|
4515
4533
|
deleteChatMessage: (tenant_id: string, message_id: string, options?: Options) => Promise<Response>;
|
@@ -4576,7 +4594,9 @@ declare class ParraAPI {
|
|
4576
4594
|
getCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
|
4577
4595
|
updateCreatorUpdate: (tenant_id: string, creator_update_id: string, body?: UpdateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
|
4578
4596
|
deleteCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<Response>;
|
4597
|
+
calculateGiveawayWinnerForCreatorUpdate: (tenant_id: string, creator_update_id: string, body: CreatorUpdateGiveawayWinnerRequestBody, options?: Options) => Promise<CreatorUpdateGiveawayWinnerResponse>;
|
4579
4598
|
sendCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
|
4599
|
+
scheduleCreatorUpdateForTenant: (tenant_id: string, creator_update_id: string, body: ScheduleCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
|
4580
4600
|
deleteAttachmentForCreatorUpdateById: (tenant_id: string, creator_update_id: string, creator_update_attachment_id: string, options?: Options) => Promise<Response>;
|
4581
4601
|
paginateFeedsForTenant: (tenant_id: string, query?: {
|
4582
4602
|
$select?: string;
|
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.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = void 0;
|
14
|
+
exports.SsoProvider = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = 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.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = 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.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 = void 0;
|
16
16
|
var TicketType;
|
17
17
|
(function (TicketType) {
|
18
18
|
TicketType["bug"] = "bug";
|
@@ -200,6 +200,11 @@ var CreatorUpdateChannelType;
|
|
200
200
|
CreatorUpdateChannelType["feed"] = "feed";
|
201
201
|
CreatorUpdateChannelType["notification"] = "notification";
|
202
202
|
})(CreatorUpdateChannelType || (exports.CreatorUpdateChannelType = CreatorUpdateChannelType = {}));
|
203
|
+
var CreatorUpdateGiveawayCriteria;
|
204
|
+
(function (CreatorUpdateGiveawayCriteria) {
|
205
|
+
CreatorUpdateGiveawayCriteria["comment"] = "comment";
|
206
|
+
CreatorUpdateGiveawayCriteria["reaction"] = "reaction";
|
207
|
+
})(CreatorUpdateGiveawayCriteria || (exports.CreatorUpdateGiveawayCriteria = CreatorUpdateGiveawayCriteria = {}));
|
203
208
|
var FeedItemType;
|
204
209
|
(function (FeedItemType) {
|
205
210
|
FeedItemType["youtubeVideo"] = "youtube_video";
|
@@ -964,10 +969,22 @@ var ParraAPI = /** @class */ (function () {
|
|
964
969
|
if (options === void 0) { options = {}; }
|
965
970
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id), __assign({ method: "delete" }, options));
|
966
971
|
};
|
972
|
+
this.calculateGiveawayWinnerForCreatorUpdate = function (tenant_id, creator_update_id, body, options) {
|
973
|
+
if (options === void 0) { options = {}; }
|
974
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/giveaway/winner"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
975
|
+
"content-type": "application/json",
|
976
|
+
} }, options));
|
977
|
+
};
|
967
978
|
this.sendCreatorUpdateForTenant = function (tenant_id, creator_update_id, options) {
|
968
979
|
if (options === void 0) { options = {}; }
|
969
980
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/send"), __assign({ method: "post" }, options));
|
970
981
|
};
|
982
|
+
this.scheduleCreatorUpdateForTenant = function (tenant_id, creator_update_id, body, options) {
|
983
|
+
if (options === void 0) { options = {}; }
|
984
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/schedule"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
985
|
+
"content-type": "application/json",
|
986
|
+
} }, options));
|
987
|
+
};
|
971
988
|
this.deleteAttachmentForCreatorUpdateById = function (tenant_id, creator_update_id, creator_update_attachment_id, options) {
|
972
989
|
if (options === void 0) { options = {}; }
|
973
990
|
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));
|