@parra/parra-js-sdk 0.2.106 → 0.2.108

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.
@@ -333,7 +333,8 @@ export declare enum CampaignStatus {
333
333
  draft = "draft",
334
334
  scheduled = "scheduled",
335
335
  complete = "complete",
336
- closed = "closed"
336
+ closed = "closed",
337
+ archived = "archived"
337
338
  }
338
339
  export interface UpdateCampaignRequestBody {
339
340
  name: string;
@@ -617,9 +618,10 @@ export interface QuestionMetrics {
617
618
  question_id: string;
618
619
  answer_count: number;
619
620
  type: QuestionType;
621
+ kind: QuestionKind;
620
622
  data: QuestionMetricsData;
621
623
  }
622
- export declare type QuestionMetricsData = ChoiceQuestionMetricsBody | CheckboxQuestionMetricsBody | InageQuestionMetricsBody | RatingQuestionMetricsBody;
624
+ export declare type QuestionMetricsData = ChoiceQuestionMetricsBody | CheckboxQuestionMetricsBody | InageQuestionMetricsBody | RatingQuestionMetricsBody | StarQuestionMetricsBody | LongTextQuestionMetricsBody | ShortTextQuestionMetricsBody | BooleanQuestionMetricsBody;
623
625
  export interface ChoiceQuestionMetricsBody {
624
626
  options: Array<ChoiceQuestionMetricsOption>;
625
627
  }
@@ -652,6 +654,7 @@ export interface ImageQuestionMetricsOption {
652
654
  answer_count: number;
653
655
  }
654
656
  export interface RatingQuestionMetricsBody {
657
+ average_rating: number;
655
658
  options: Array<RatingQuestionMetricsOption>;
656
659
  }
657
660
  export interface RatingQuestionMetricsOption {
@@ -660,6 +663,39 @@ export interface RatingQuestionMetricsOption {
660
663
  id: string;
661
664
  answer_count: number;
662
665
  }
666
+ export interface MutableStarQuestionOption {
667
+ title: string;
668
+ value: number;
669
+ }
670
+ export interface StarQuestionOption {
671
+ title: string;
672
+ value: number;
673
+ id: string;
674
+ }
675
+ export interface StarQuestionMetricsBody {
676
+ average_rating: number;
677
+ options: Array<StarQuestionMetricsOption>;
678
+ }
679
+ export interface StarQuestionMetricsOption {
680
+ title: string;
681
+ value: number;
682
+ id: string;
683
+ answer_count: number;
684
+ }
685
+ export interface ShortTextQuestionMetricsBody {
686
+ }
687
+ export interface LongTextQuestionMetricsBody {
688
+ }
689
+ export interface BooleanQuestionMetricsBody {
690
+ average_rating: number;
691
+ options: Array<BooleanQuestionMetricsOption>;
692
+ }
693
+ export interface BooleanQuestionMetricsOption {
694
+ title: string;
695
+ value: string;
696
+ id: string;
697
+ answer_count: number;
698
+ }
663
699
  export interface Event {
664
700
  name: string;
665
701
  created_at: string | null;
package/dist/ParraAPI.js CHANGED
@@ -27,6 +27,7 @@ var CampaignStatus;
27
27
  CampaignStatus["scheduled"] = "scheduled";
28
28
  CampaignStatus["complete"] = "complete";
29
29
  CampaignStatus["closed"] = "closed";
30
+ CampaignStatus["archived"] = "archived";
30
31
  })(CampaignStatus = exports.CampaignStatus || (exports.CampaignStatus = {}));
31
32
  var CardItemType;
32
33
  (function (CardItemType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.106",
3
+ "version": "0.2.108",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",