@parra/parra-js-sdk 0.3.371 → 0.3.372
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 +3 -1
- package/dist/ParraAPI.js +10 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1371,7 +1371,7 @@ export interface Comment {
|
|
|
1371
1371
|
user_id: string;
|
|
1372
1372
|
feed_item_id?: string;
|
|
1373
1373
|
user: TenantUserStub;
|
|
1374
|
-
reactions?: Array<ReactionSummary
|
|
1374
|
+
reactions?: Array<ReactionSummary>;
|
|
1375
1375
|
}
|
|
1376
1376
|
export interface CommentCollectionResponse {
|
|
1377
1377
|
page: number;
|
|
@@ -4175,6 +4175,8 @@ declare class ParraAPI {
|
|
|
4175
4175
|
updateCommentForFeedItem: (tenant_id: string, comment_id: string, body?: UpdateCommentRequestBody, options?: Options) => Promise<Comment>;
|
|
4176
4176
|
removeCommentFromFeedItem: (tenant_id: string, comment_id: string, options?: Options) => Promise<Response>;
|
|
4177
4177
|
flagComment: (tenant_id: string, comment_id: string, body?: FlagCommentRequestBody, options?: Options) => Promise<Response>;
|
|
4178
|
+
addReactionToComment: (tenant_id: string, comment_id: string, body: CreateReactionRequestBody, options?: Options) => Promise<Reaction>;
|
|
4179
|
+
removeReactionFromComment: (tenant_id: string, comment_id: string, reaction_id: string, options?: Options) => Promise<Response>;
|
|
4178
4180
|
addReactionToFeedItem: (tenant_id: string, feed_item_id: string, body: CreateReactionRequestBody, options?: Options) => Promise<Reaction>;
|
|
4179
4181
|
removeReactionFromFeedItem: (tenant_id: string, feed_item_id: string, reaction_id: string, options?: Options) => Promise<Response>;
|
|
4180
4182
|
paginateFeedbackFormResponsesForTenantUser: (tenant_id: string, user_id: string, query?: {
|
package/dist/ParraAPI.js
CHANGED
|
@@ -848,6 +848,16 @@ var ParraAPI = /** @class */ (function () {
|
|
|
848
848
|
"content-type": "application/json",
|
|
849
849
|
}, raw: true }, options));
|
|
850
850
|
};
|
|
851
|
+
this.addReactionToComment = function (tenant_id, comment_id, body, options) {
|
|
852
|
+
if (options === void 0) { options = {}; }
|
|
853
|
+
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: {
|
|
854
|
+
"content-type": "application/json",
|
|
855
|
+
} }, options));
|
|
856
|
+
};
|
|
857
|
+
this.removeReactionFromComment = function (tenant_id, comment_id, reaction_id, options) {
|
|
858
|
+
if (options === void 0) { options = {}; }
|
|
859
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id, "/reactions/").concat(reaction_id), __assign({ method: "delete" }, options));
|
|
860
|
+
};
|
|
851
861
|
this.addReactionToFeedItem = function (tenant_id, feed_item_id, body, options) {
|
|
852
862
|
if (options === void 0) { options = {}; }
|
|
853
863
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/reactions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|