@parra/parra-js-sdk 0.3.30 → 0.3.31

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,7 @@ declare class ParraAPI {
1359
1362
  $expand?: string;
1360
1363
  $search?: string;
1361
1364
  }) => Promise<UserNoteCollectionResponse>;
1365
+ linkUserNoteToTicket: (tenant_id: string, user_note_id: string, body: LinkUserNoteRequestBody) => Promise<Response>;
1362
1366
  updateTicketById: (tenant_id: string, ticket_id: string, body?: UpdateTicketRequestBody) => Promise<Ticket>;
1363
1367
  deleteTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
1364
1368
  voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
package/dist/ParraAPI.js CHANGED
@@ -491,6 +491,16 @@ var ParraAPI = /** @class */ (function () {
491
491
  query: query,
492
492
  });
493
493
  };
494
+ this.linkUserNoteToTicket = function (tenant_id, user_note_id, body) {
495
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id, "/link"), {
496
+ method: "post",
497
+ body: JSON.stringify(body),
498
+ headers: {
499
+ "content-type": "application/json",
500
+ },
501
+ raw: true,
502
+ });
503
+ };
494
504
  this.updateTicketById = function (tenant_id, ticket_id, body) {
495
505
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), {
496
506
  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.31",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",