@parra/parra-js-sdk 0.3.372 → 0.3.374
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ParraAPI.d.ts +44 -0
- package/dist/ParraAPI.js +23 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1386,6 +1386,40 @@ export interface UpdateCommentRequestBody {
|
|
1386
1386
|
export interface FlagCommentRequestBody {
|
1387
1387
|
reason?: string | null;
|
1388
1388
|
}
|
1389
|
+
export declare enum CommentReviewStatus {
|
1390
|
+
pending = "pending",
|
1391
|
+
approved = "approved",
|
1392
|
+
rejected = "rejected"
|
1393
|
+
}
|
1394
|
+
export interface CommentReview {
|
1395
|
+
id: string;
|
1396
|
+
created_at: string;
|
1397
|
+
updated_at: string;
|
1398
|
+
deleted_at?: string | null;
|
1399
|
+
tenant_id: string;
|
1400
|
+
comment_id: string;
|
1401
|
+
comment: Comment;
|
1402
|
+
status: CommentReviewStatus;
|
1403
|
+
report_count: number;
|
1404
|
+
reviewed_at?: string | null;
|
1405
|
+
reviewed_by_user_id?: string | null;
|
1406
|
+
review_comment?: string | null;
|
1407
|
+
}
|
1408
|
+
export interface CommentReviewCollectionResponse {
|
1409
|
+
page: number;
|
1410
|
+
page_count: number;
|
1411
|
+
page_size: number;
|
1412
|
+
total_count: number;
|
1413
|
+
data: Array<CommentReview>;
|
1414
|
+
}
|
1415
|
+
export declare enum SubmitCommentReviewStatus {
|
1416
|
+
approved = "approved",
|
1417
|
+
rejected = "rejected"
|
1418
|
+
}
|
1419
|
+
export interface SubmitCommentReviewRequestBody {
|
1420
|
+
status: SubmitCommentReviewStatus;
|
1421
|
+
note?: string | null;
|
1422
|
+
}
|
1389
1423
|
export interface CreateReactionRequestBody {
|
1390
1424
|
option_id: string;
|
1391
1425
|
}
|
@@ -4175,6 +4209,16 @@ declare class ParraAPI {
|
|
4175
4209
|
updateCommentForFeedItem: (tenant_id: string, comment_id: string, body?: UpdateCommentRequestBody, options?: Options) => Promise<Comment>;
|
4176
4210
|
removeCommentFromFeedItem: (tenant_id: string, comment_id: string, options?: Options) => Promise<Response>;
|
4177
4211
|
flagComment: (tenant_id: string, comment_id: string, body?: FlagCommentRequestBody, options?: Options) => Promise<Response>;
|
4212
|
+
paginateCommentReviewsForTenant: (tenant_id: string, query?: {
|
4213
|
+
$select?: string;
|
4214
|
+
$top?: number;
|
4215
|
+
$skip?: number;
|
4216
|
+
$orderby?: string;
|
4217
|
+
$filter?: string;
|
4218
|
+
$expand?: string;
|
4219
|
+
$search?: string;
|
4220
|
+
}, options?: Options) => Promise<CommentReviewCollectionResponse>;
|
4221
|
+
submitCommentReview: (tenant_id: string, comment_review_id: string, body: SubmitCommentReviewRequestBody, options?: Options) => Promise<CommentReview>;
|
4178
4222
|
addReactionToComment: (tenant_id: string, comment_id: string, body: CreateReactionRequestBody, options?: Options) => Promise<Reaction>;
|
4179
4223
|
removeReactionFromComment: (tenant_id: string, comment_id: string, reaction_id: string, options?: Options) => Promise<Response>;
|
4180
4224
|
addReactionToFeedItem: (tenant_id: string, feed_item_id: string, body: CreateReactionRequestBody, options?: Options) => Promise<Reaction>;
|
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 = void 0;
|
14
|
+
exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = 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.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.FeedbackFormFieldType = exports.BillingSourceType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.IdentityType = exports.PolicyDocumentType = 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 = void 0;
|
16
16
|
var TicketType;
|
17
17
|
(function (TicketType) {
|
18
18
|
TicketType["bug"] = "bug";
|
@@ -156,6 +156,17 @@ var ReactionType;
|
|
156
156
|
ReactionType["emoji"] = "emoji";
|
157
157
|
ReactionType["custom"] = "custom";
|
158
158
|
})(ReactionType || (exports.ReactionType = ReactionType = {}));
|
159
|
+
var CommentReviewStatus;
|
160
|
+
(function (CommentReviewStatus) {
|
161
|
+
CommentReviewStatus["pending"] = "pending";
|
162
|
+
CommentReviewStatus["approved"] = "approved";
|
163
|
+
CommentReviewStatus["rejected"] = "rejected";
|
164
|
+
})(CommentReviewStatus || (exports.CommentReviewStatus = CommentReviewStatus = {}));
|
165
|
+
var SubmitCommentReviewStatus;
|
166
|
+
(function (SubmitCommentReviewStatus) {
|
167
|
+
SubmitCommentReviewStatus["approved"] = "approved";
|
168
|
+
SubmitCommentReviewStatus["rejected"] = "rejected";
|
169
|
+
})(SubmitCommentReviewStatus || (exports.SubmitCommentReviewStatus = SubmitCommentReviewStatus = {}));
|
159
170
|
var QuestionType;
|
160
171
|
(function (QuestionType) {
|
161
172
|
QuestionType["choice"] = "choice";
|
@@ -848,6 +859,16 @@ var ParraAPI = /** @class */ (function () {
|
|
848
859
|
"content-type": "application/json",
|
849
860
|
}, raw: true }, options));
|
850
861
|
};
|
862
|
+
this.paginateCommentReviewsForTenant = function (tenant_id, query, options) {
|
863
|
+
if (options === void 0) { options = {}; }
|
864
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/reviews"), __assign({ method: "get", query: query }, options));
|
865
|
+
};
|
866
|
+
this.submitCommentReview = function (tenant_id, comment_review_id, body, options) {
|
867
|
+
if (options === void 0) { options = {}; }
|
868
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/reviews/").concat(comment_review_id, "/review"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
869
|
+
"content-type": "application/json",
|
870
|
+
} }, options));
|
871
|
+
};
|
851
872
|
this.addReactionToComment = function (tenant_id, comment_id, body, options) {
|
852
873
|
if (options === void 0) { options = {}; }
|
853
874
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id, "/reactions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|