@parra/parra-js-sdk 0.3.72 → 0.3.75

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.
@@ -569,33 +569,15 @@ export interface CreateFeedbackFormRequestBody {
569
569
  description?: string | null;
570
570
  data: FeedbackFormData;
571
571
  }
572
- export declare enum FormIntegrationType {
573
- board = "board"
574
- }
575
- export interface FormBoardIntegration {
576
- board_id: string;
577
- board_ticket_title?: string | null;
578
- board_ticket_description?: string | null;
579
- }
580
- export type FormIntegrationData = FormBoardIntegration;
581
- export interface FormIntegration {
582
- id: string;
583
- created_at: string;
584
- updated_at: string;
585
- deleted_at?: string | null;
586
- type: FormIntegrationType;
587
- enabled: boolean;
588
- data: FormIntegrationData;
589
- }
590
572
  export interface FeedbackFormResponse {
591
573
  id: string;
592
574
  created_at: string;
593
575
  updated_at: string;
594
576
  deleted_at?: string | null;
577
+ tenant_id: string;
595
578
  title: string;
596
579
  description?: string | null;
597
580
  data: FeedbackFormData;
598
- integrations?: Array<FormIntegration> | null;
599
581
  }
600
582
  export interface FeedbackFormSubmission {
601
583
  id: string;
@@ -918,11 +900,6 @@ export interface TicketCollectionResponse {
918
900
  total_count: number;
919
901
  data: Array<Ticket>;
920
902
  }
921
- export declare enum UserNoteStatus {
922
- pending = "pending",
923
- accepted = "accepted",
924
- rejected = "rejected"
925
- }
926
903
  export interface UpdateUserNoteRequestBody {
927
904
  title: string;
928
905
  type: string;
@@ -932,6 +909,12 @@ export interface CreateUserNoteRequestBody {
932
909
  title: string;
933
910
  type: string;
934
911
  description?: string | null;
912
+ user_id: string;
913
+ }
914
+ export declare enum UserNoteStatus {
915
+ pending = "pending",
916
+ accepted = "accepted",
917
+ rejected = "rejected"
935
918
  }
936
919
  export interface UserNote {
937
920
  id: string;
@@ -941,8 +924,8 @@ export interface UserNote {
941
924
  title: string;
942
925
  type: string;
943
926
  description?: string | null;
944
- tenant_id: string;
945
927
  user_id: string;
928
+ tenant_id: string;
946
929
  board_id: string;
947
930
  ticket_id?: string | null;
948
931
  status: UserNoteStatus;
@@ -1394,6 +1377,27 @@ export declare enum IntegrationConnectionStatus {
1394
1377
  error = "error",
1395
1378
  disabled = "disabled"
1396
1379
  }
1380
+ export interface UpdateSlackFeedbackFormIntegrationConnectionData {
1381
+ connected_app_connection_id: string;
1382
+ channel: string;
1383
+ message: string;
1384
+ }
1385
+ export interface SlackFeedbackFormIntegrationConnectionData {
1386
+ connected_app_connection_id: string;
1387
+ channel: string;
1388
+ message: string;
1389
+ form_id: string;
1390
+ }
1391
+ export interface UpdateParraFeedbackFormBoardIntegrationConnectionData {
1392
+ ticket_title: string;
1393
+ ticket_description?: string | null;
1394
+ }
1395
+ export interface ParraFeedbackFormBoardIntegrationConnectionData {
1396
+ ticket_title: string;
1397
+ ticket_description?: string | null;
1398
+ form_id: string;
1399
+ }
1400
+ export type IntegrationConnectionData = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData;
1397
1401
  export interface IntegrationConnection {
1398
1402
  id: string;
1399
1403
  created_at: string;
@@ -1403,6 +1407,7 @@ export interface IntegrationConnection {
1403
1407
  active: boolean;
1404
1408
  type: IntegrationType;
1405
1409
  status: IntegrationConnectionStatus;
1410
+ data: IntegrationConnectionData;
1406
1411
  }
1407
1412
  export declare enum IntegrationScope {
1408
1413
  global = "global",
@@ -1434,18 +1439,8 @@ export interface TenantIntegration {
1434
1439
  export interface UpdateIntegrationConnectionRequestBody {
1435
1440
  active?: boolean;
1436
1441
  }
1437
- export interface CreateSlackFeedbackFormIntegrationConnectionRequestBody {
1438
- form_id: string;
1439
- connected_app_connection_id: string;
1440
- channel: string;
1441
- message: string;
1442
- }
1443
- export interface CreateParraFeedbackFormBoardIntegrationConnectionRequestBody {
1444
- form_id: string;
1445
- ticket_title: string;
1446
- ticket_description?: string | null;
1442
+ export interface CreateIntegrationConnectionRequestBody {
1447
1443
  }
1448
- export type CreateIntegrationConnectionRequestBody = CreateSlackFeedbackFormIntegrationConnectionRequestBody | CreateParraFeedbackFormBoardIntegrationConnectionRequestBody;
1449
1444
  export interface TenantInvitationRequestBody {
1450
1445
  name: string;
1451
1446
  email: string;
@@ -1633,6 +1628,7 @@ declare class ParraAPI {
1633
1628
  $expand?: string;
1634
1629
  $search?: string;
1635
1630
  }) => Promise<TicketCollectionResponse>;
1631
+ createUserNoteForBoard: (tenant_id: string, board_id: string, body: CreateUserNoteRequestBody) => Promise<UserNote>;
1636
1632
  paginateUserNotesForBoard: (tenant_id: string, board_id: string, query?: {
1637
1633
  $select?: string;
1638
1634
  $top?: number;
package/dist/ParraAPI.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketPriority = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.FormIntegrationType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
3
+ exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketPriority = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
4
4
  var Interval;
5
5
  (function (Interval) {
6
6
  Interval["monthly"] = "monthly";
@@ -58,10 +58,6 @@ var CardItemDisplayType;
58
58
  CardItemDisplayType["inline"] = "inline";
59
59
  CardItemDisplayType["popup"] = "popup";
60
60
  })(CardItemDisplayType || (exports.CardItemDisplayType = CardItemDisplayType = {}));
61
- var FormIntegrationType;
62
- (function (FormIntegrationType) {
63
- FormIntegrationType["board"] = "board";
64
- })(FormIntegrationType || (exports.FormIntegrationType = FormIntegrationType = {}));
65
61
  var CampaignActionType;
66
62
  (function (CampaignActionType) {
67
63
  CampaignActionType["question"] = "question";
@@ -543,6 +539,15 @@ var ParraAPI = /** @class */ (function () {
543
539
  query: query,
544
540
  });
545
541
  };
542
+ this.createUserNoteForBoard = function (tenant_id, board_id, body) {
543
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), {
544
+ method: "post",
545
+ body: JSON.stringify(body),
546
+ headers: {
547
+ "content-type": "application/json",
548
+ },
549
+ });
550
+ };
546
551
  this.paginateUserNotesForBoard = function (tenant_id, board_id, query) {
547
552
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), {
548
553
  method: "get",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.72",
3
+ "version": "0.3.75",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",