@parra/parra-js-sdk 0.3.29 → 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.
@@ -883,6 +883,7 @@ export interface UserNote {
883
883
  description?: string | null;
884
884
  tenant_id: string;
885
885
  user_id: string;
886
+ board_id: string;
886
887
  ticket_id?: string | null;
887
888
  status: UserNoteStatus;
888
889
  accepted_at?: string | null;
@@ -896,6 +897,9 @@ export interface UserNoteCollectionResponse {
896
897
  total_count: number;
897
898
  data: Array<UserNote>;
898
899
  }
900
+ export interface LinkUserNoteRequestBody {
901
+ ticket_id: string;
902
+ }
899
903
  export interface UpdateTicketRequestBody {
900
904
  title?: string;
901
905
  type?: TicketType;
@@ -1358,6 +1362,7 @@ declare class ParraAPI {
1358
1362
  $expand?: string;
1359
1363
  $search?: string;
1360
1364
  }) => Promise<UserNoteCollectionResponse>;
1365
+ linkUserNoteToTicket: (tenant_id: string, user_note_id: string, body: LinkUserNoteRequestBody) => Promise<Response>;
1361
1366
  updateTicketById: (tenant_id: string, ticket_id: string, body?: UpdateTicketRequestBody) => Promise<Ticket>;
1362
1367
  deleteTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
1363
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.29",
3
+ "version": "0.3.31",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",