@parra/parra-js-sdk 0.3.30 → 0.3.32

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.
@@ -897,6 +897,9 @@ export interface UserNoteCollectionResponse {
897
897
  total_count: number;
898
898
  data: Array<UserNote>;
899
899
  }
900
+ export interface LinkUserNoteRequestBody {
901
+ ticket_id: string;
902
+ }
900
903
  export interface UpdateTicketRequestBody {
901
904
  title?: string;
902
905
  type?: TicketType;
@@ -1359,6 +1362,8 @@ declare class ParraAPI {
1359
1362
  $expand?: string;
1360
1363
  $search?: string;
1361
1364
  }) => Promise<UserNoteCollectionResponse>;
1365
+ deleteUserNoteById: (tenant_id: string, user_note_id: string) => Promise<Response>;
1366
+ linkUserNoteToTicket: (tenant_id: string, user_note_id: string, body: LinkUserNoteRequestBody) => Promise<Response>;
1362
1367
  updateTicketById: (tenant_id: string, ticket_id: string, body?: UpdateTicketRequestBody) => Promise<Ticket>;
1363
1368
  deleteTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
1364
1369
  voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
package/dist/ParraAPI.js CHANGED
@@ -491,6 +491,21 @@ var ParraAPI = /** @class */ (function () {
491
491
  query: query,
492
492
  });
493
493
  };
494
+ this.deleteUserNoteById = function (tenant_id, user_note_id) {
495
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id), {
496
+ method: "post",
497
+ });
498
+ };
499
+ this.linkUserNoteToTicket = function (tenant_id, user_note_id, body) {
500
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id, "/link"), {
501
+ method: "post",
502
+ body: JSON.stringify(body),
503
+ headers: {
504
+ "content-type": "application/json",
505
+ },
506
+ raw: true,
507
+ });
508
+ };
494
509
  this.updateTicketById = function (tenant_id, ticket_id, body) {
495
510
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), {
496
511
  method: "patch",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.30",
3
+ "version": "0.3.32",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",