@parra/parra-js-sdk 0.2.28 → 0.2.29

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.
@@ -90,7 +90,7 @@ export declare enum QuestionKind {
90
90
  checkbox = "checkbox",
91
91
  star = "star"
92
92
  }
93
- export interface CreateChoiceQuestionOption {
93
+ export interface MutableChoiceQuestionOption {
94
94
  title: string;
95
95
  value: string;
96
96
  is_other?: boolean | null;
@@ -104,15 +104,15 @@ export interface ChoiceQuestionOption {
104
104
  export interface ChoiceQuestionBody {
105
105
  options: Array<ChoiceQuestionOption>;
106
106
  }
107
- export interface CreateChoiceQuestionBody {
108
- options: Array<CreateChoiceQuestionOption>;
107
+ export interface MutableChoiceQuestionBody {
108
+ options: Array<MutableChoiceQuestionOption>;
109
109
  }
110
- export declare type CreateQuestionData = CreateChoiceQuestionBody;
110
+ export declare type MutableQuestionData = MutableChoiceQuestionBody;
111
111
  export declare type QuestionData = ChoiceQuestionBody;
112
112
  export interface UpdateQuestionRequestBody {
113
113
  title: string;
114
114
  subtitle?: string | null;
115
- data: CreateQuestionData;
115
+ data: MutableQuestionData;
116
116
  active?: boolean;
117
117
  expires_at?: string | null;
118
118
  answer_quota?: number | null;
@@ -120,7 +120,7 @@ export interface UpdateQuestionRequestBody {
120
120
  export interface CreateQuestionRequestBody {
121
121
  title: string;
122
122
  subtitle?: string | null;
123
- data: CreateQuestionData;
123
+ data: MutableQuestionData;
124
124
  active?: boolean;
125
125
  expires_at?: string | null;
126
126
  answer_quota?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",