@parra/parra-js-sdk 0.2.101 → 0.2.102
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.
- package/dist/ParraAPI.d.ts +49 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -485,8 +485,55 @@ export interface RatingQuestionBody {
|
|
|
485
485
|
export interface MutableRatingQuestionBody {
|
|
486
486
|
options: Array<MutableRatingQuestionOption>;
|
|
487
487
|
}
|
|
488
|
-
export
|
|
489
|
-
|
|
488
|
+
export interface StarQuestionBody {
|
|
489
|
+
star_count: number;
|
|
490
|
+
leading_title?: string;
|
|
491
|
+
center_title?: string;
|
|
492
|
+
trailing_title?: string;
|
|
493
|
+
}
|
|
494
|
+
export interface MutableStarQuestionBody {
|
|
495
|
+
star_count: number;
|
|
496
|
+
leading_title?: string;
|
|
497
|
+
center_title?: string;
|
|
498
|
+
trailing_title?: string;
|
|
499
|
+
}
|
|
500
|
+
export interface ShortTextQuestionBody {
|
|
501
|
+
placeholder?: string;
|
|
502
|
+
min_length?: number;
|
|
503
|
+
max_length: number;
|
|
504
|
+
}
|
|
505
|
+
export interface MutableShortTextQuestionBody {
|
|
506
|
+
placeholder?: string;
|
|
507
|
+
min_length?: number;
|
|
508
|
+
max_length: number;
|
|
509
|
+
}
|
|
510
|
+
export interface LongTextQuestionBody {
|
|
511
|
+
placeholder?: string;
|
|
512
|
+
min_length?: number;
|
|
513
|
+
max_length: number;
|
|
514
|
+
}
|
|
515
|
+
export interface MutableLongTextQuestionBody {
|
|
516
|
+
placeholder?: string;
|
|
517
|
+
min_length?: number;
|
|
518
|
+
max_length: number;
|
|
519
|
+
}
|
|
520
|
+
export interface MutableBooleanQuestionOption {
|
|
521
|
+
title: string;
|
|
522
|
+
value: number;
|
|
523
|
+
}
|
|
524
|
+
export interface BooleanQuestionOption {
|
|
525
|
+
title: string;
|
|
526
|
+
value: number;
|
|
527
|
+
id: string;
|
|
528
|
+
}
|
|
529
|
+
export interface BooleanQuestionBody {
|
|
530
|
+
options: Array<BooleanQuestionOption>;
|
|
531
|
+
}
|
|
532
|
+
export interface MutableBooleanQuestionBody {
|
|
533
|
+
options: Array<MutableBooleanQuestionOption>;
|
|
534
|
+
}
|
|
535
|
+
export declare type MutableQuestionData = MutableChoiceQuestionBody | MutableCheckboxQuestionBody | MutableImageQuestionBody | MutableRatingQuestionBody | MutableStarQuestionBody | MutableShortTextQuestionBody | MutableLongTextQuestionBody | MutableBooleanQuestionBody;
|
|
536
|
+
export declare type QuestionData = ChoiceQuestionBody | CheckboxQuestionBody | ImageQuestionBody | RatingQuestionBody | StarQuestionBody | ShortTextQuestionBody | LongTextQuestionBody | BooleanQuestionBody;
|
|
490
537
|
export interface UpdateQuestionRequestBody {
|
|
491
538
|
title: string;
|
|
492
539
|
subtitle?: string | null;
|