@parra/parra-js-sdk 0.2.101 → 0.2.103

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.
Files changed (2) hide show
  1. package/dist/ParraAPI.d.ts +49 -2
  2. package/package.json +1 -1
@@ -485,8 +485,55 @@ export interface RatingQuestionBody {
485
485
  export interface MutableRatingQuestionBody {
486
486
  options: Array<MutableRatingQuestionOption>;
487
487
  }
488
- export declare type MutableQuestionData = MutableChoiceQuestionBody | MutableCheckboxQuestionBody | MutableImageQuestionBody | MutableRatingQuestionBody;
489
- export declare type QuestionData = ChoiceQuestionBody | CheckboxQuestionBody | ImageQuestionBody | RatingQuestionBody;
488
+ export interface StarQuestionBody {
489
+ star_count: number;
490
+ leading_label?: string;
491
+ center_label?: string;
492
+ trailing_label?: string;
493
+ }
494
+ export interface MutableStarQuestionBody {
495
+ star_count: number;
496
+ leading_label?: string;
497
+ center_label?: string;
498
+ trailing_label?: 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: string;
523
+ }
524
+ export interface BooleanQuestionOption {
525
+ title: string;
526
+ value: string;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.101",
3
+ "version": "0.2.103",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",