@parra/parra-js-sdk 0.3.71 → 0.3.73

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.
@@ -918,11 +918,6 @@ export interface TicketCollectionResponse {
918
918
  total_count: number;
919
919
  data: Array<Ticket>;
920
920
  }
921
- export declare enum UserNoteStatus {
922
- pending = "pending",
923
- accepted = "accepted",
924
- rejected = "rejected"
925
- }
926
921
  export interface UpdateUserNoteRequestBody {
927
922
  title: string;
928
923
  type: string;
@@ -933,6 +928,11 @@ export interface CreateUserNoteRequestBody {
933
928
  type: string;
934
929
  description?: string | null;
935
930
  }
931
+ export declare enum UserNoteStatus {
932
+ pending = "pending",
933
+ accepted = "accepted",
934
+ rejected = "rejected"
935
+ }
936
936
  export interface UserNote {
937
937
  id: string;
938
938
  created_at: string;
@@ -1633,6 +1633,15 @@ declare class ParraAPI {
1633
1633
  $expand?: string;
1634
1634
  $search?: string;
1635
1635
  }) => Promise<TicketCollectionResponse>;
1636
+ createUserNoteForBoard: (tenant_id: string, board_id: string, body?: CreateUserNoteRequestBody, query?: {
1637
+ $select?: string;
1638
+ $top?: number;
1639
+ $skip?: number;
1640
+ $orderby?: string;
1641
+ $filter?: string;
1642
+ $expand?: string;
1643
+ $search?: string;
1644
+ }) => Promise<UserNote>;
1636
1645
  paginateUserNotesForBoard: (tenant_id: string, board_id: string, query?: {
1637
1646
  $select?: string;
1638
1647
  $top?: number;
package/dist/ParraAPI.js CHANGED
@@ -543,6 +543,16 @@ var ParraAPI = /** @class */ (function () {
543
543
  query: query,
544
544
  });
545
545
  };
546
+ this.createUserNoteForBoard = function (tenant_id, board_id, body, query) {
547
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), {
548
+ method: "post",
549
+ query: query,
550
+ body: JSON.stringify(body),
551
+ headers: {
552
+ "content-type": "application/json",
553
+ },
554
+ });
555
+ };
546
556
  this.paginateUserNotesForBoard = function (tenant_id, board_id, query) {
547
557
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), {
548
558
  method: "get",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.71",
3
+ "version": "0.3.73",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,6 +23,6 @@
23
23
  "typescript": "^5.4.2"
24
24
  },
25
25
  "dependencies": {
26
- "@parra/http-client": "0.5.6"
26
+ "@parra/http-client": "0.5.7"
27
27
  }
28
28
  }