@parra/parra-js-sdk 0.3.44 → 0.3.46

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.
@@ -544,6 +544,75 @@ export interface CardItem {
544
544
  export interface CardsResponse {
545
545
  items: Array<CardItem>;
546
546
  }
547
+ export interface FeedbackFormStub {
548
+ id: string;
549
+ created_at: string;
550
+ updated_at: string;
551
+ deleted_at?: string | null;
552
+ title: string;
553
+ description?: string | null;
554
+ }
555
+ export interface FeedbackFormCollectionResponse {
556
+ page: number;
557
+ page_count: number;
558
+ page_size: number;
559
+ total_count: number;
560
+ data: Array<FeedbackFormStub>;
561
+ }
562
+ export interface UpdateFeedbackFormRequestBody {
563
+ title: string;
564
+ description?: string | null;
565
+ data: FeedbackFormData;
566
+ }
567
+ export interface CreateFeedbackFormRequestBody {
568
+ title: string;
569
+ description?: string | null;
570
+ data: FeedbackFormData;
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
+ export interface FeedbackFormResponse {
591
+ id: string;
592
+ created_at: string;
593
+ updated_at: string;
594
+ deleted_at?: string | null;
595
+ title: string;
596
+ description?: string | null;
597
+ data: FeedbackFormData;
598
+ integrations?: Array<FormIntegration> | null;
599
+ }
600
+ export interface FeedbackFormSubmission {
601
+ id: string;
602
+ created_at: string;
603
+ updated_at: string;
604
+ deleted_at?: string | null;
605
+ feedback_form_id: string;
606
+ user_id: string;
607
+ data: SubmitFeedbackFormResponseBody;
608
+ }
609
+ export interface FeedbackFormSubmissionCollectionResponse {
610
+ page: number;
611
+ page_count: number;
612
+ page_size: number;
613
+ total_count: number;
614
+ data: Array<FeedbackFormSubmission>;
615
+ }
547
616
  export interface UpdateAnalyticEventTypeRequestBody {
548
617
  description?: string | null;
549
618
  }
@@ -951,6 +1020,7 @@ export interface UpdateReleaseRequestBody {
951
1020
  name?: string;
952
1021
  version?: string;
953
1022
  description?: string | null;
1023
+ status?: ReleaseStatus;
954
1024
  type?: ReleaseType;
955
1025
  }
956
1026
  export interface CreateReleaseItemRequestBody {
@@ -1310,6 +1380,30 @@ declare class ParraAPI {
1310
1380
  getCardsForTenantById: (tenant_id: string, query?: {
1311
1381
  app_area_id?: string;
1312
1382
  }) => Promise<CardsResponse>;
1383
+ paginateFeedbackFormsForTenantById: (tenant_id: string, query?: {
1384
+ $select?: string;
1385
+ $top?: number;
1386
+ $skip?: number;
1387
+ $orderby?: string;
1388
+ $filter?: string;
1389
+ $expand?: string;
1390
+ $search?: string;
1391
+ }) => Promise<FeedbackFormCollectionResponse>;
1392
+ createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
1393
+ getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
1394
+ include?: string;
1395
+ }) => Promise<FeedbackFormResponse>;
1396
+ updateFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, body: UpdateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
1397
+ deleteFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<Response>;
1398
+ paginateFeedbackFormResponsesForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
1399
+ $select?: string;
1400
+ $top?: number;
1401
+ $skip?: number;
1402
+ $orderby?: string;
1403
+ $filter?: string;
1404
+ $expand?: string;
1405
+ $search?: string;
1406
+ }) => Promise<FeedbackFormSubmissionCollectionResponse>;
1313
1407
  createAnalyticEventTypeForTenantById: (tenant_id: string, body: CreateAnalyticEventTypeRequestBody) => Promise<AnalyticEventType>;
1314
1408
  paginateAnalyticEventTypesForTenantById: (tenant_id: string, query?: {
1315
1409
  $select?: string;
package/dist/ParraAPI.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = 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;
3
+ exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = 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;
4
4
  var Interval;
5
5
  (function (Interval) {
6
6
  Interval["monthly"] = "monthly";
@@ -58,6 +58,10 @@ 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 = {}));
61
65
  var CampaignActionType;
62
66
  (function (CampaignActionType) {
63
67
  CampaignActionType["question"] = "question";
@@ -316,6 +320,47 @@ var ParraAPI = /** @class */ (function () {
316
320
  query: query,
317
321
  });
318
322
  };
323
+ this.paginateFeedbackFormsForTenantById = function (tenant_id, query) {
324
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), {
325
+ method: "get",
326
+ query: query,
327
+ });
328
+ };
329
+ this.createFeedbackFormForTenantById = function (tenant_id, body) {
330
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), {
331
+ method: "post",
332
+ body: JSON.stringify(body),
333
+ headers: {
334
+ "content-type": "application/json",
335
+ },
336
+ });
337
+ };
338
+ this.getFeedbackFormForTenantById = function (tenant_id, feedback_form_id, query) {
339
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
340
+ method: "get",
341
+ query: query,
342
+ });
343
+ };
344
+ this.updateFeedbackFormForTenantById = function (tenant_id, feedback_form_id, body) {
345
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
346
+ method: "put",
347
+ body: JSON.stringify(body),
348
+ headers: {
349
+ "content-type": "application/json",
350
+ },
351
+ });
352
+ };
353
+ this.deleteFeedbackFormForTenantById = function (tenant_id, feedback_form_id) {
354
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
355
+ method: "delete",
356
+ });
357
+ };
358
+ this.paginateFeedbackFormResponsesForTenantById = function (tenant_id, feedback_form_id, query) {
359
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses"), {
360
+ method: "get",
361
+ query: query,
362
+ });
363
+ };
319
364
  this.createAnalyticEventTypeForTenantById = function (tenant_id, body) {
320
365
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), {
321
366
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.44",
3
+ "version": "0.3.46",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",