@parra/parra-js-sdk 0.2.100 → 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 +86 -5
- package/dist/ParraAPI.js +10 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -400,13 +400,23 @@ export interface CardsResponse {
|
|
|
400
400
|
export declare enum QuestionType {
|
|
401
401
|
choice = "choice",
|
|
402
402
|
checkbox = "checkbox",
|
|
403
|
-
rating = "rating"
|
|
403
|
+
rating = "rating",
|
|
404
|
+
text = "text",
|
|
405
|
+
rankedChoice = "ranked-choice"
|
|
404
406
|
}
|
|
405
407
|
export declare enum QuestionKind {
|
|
406
408
|
radio = "radio",
|
|
407
409
|
checkbox = "checkbox",
|
|
408
410
|
star = "star",
|
|
409
|
-
image = "image"
|
|
411
|
+
image = "image",
|
|
412
|
+
rating = "rating",
|
|
413
|
+
shortText = "short-text",
|
|
414
|
+
longText = "long-text",
|
|
415
|
+
emoji = "emoji",
|
|
416
|
+
boolean = "boolean",
|
|
417
|
+
slider = "slider",
|
|
418
|
+
rankedChoice = "ranked-choice",
|
|
419
|
+
tag = "tag"
|
|
410
420
|
}
|
|
411
421
|
export interface MutableChoiceQuestionOption {
|
|
412
422
|
title: string;
|
|
@@ -460,8 +470,70 @@ export interface ImageQuestionBody {
|
|
|
460
470
|
export interface MutableImageQuestionBody {
|
|
461
471
|
options: Array<MutableImageQuestionOption>;
|
|
462
472
|
}
|
|
463
|
-
export
|
|
464
|
-
|
|
473
|
+
export interface MutableRatingQuestionOption {
|
|
474
|
+
title: string;
|
|
475
|
+
value: number;
|
|
476
|
+
}
|
|
477
|
+
export interface RatingQuestionOption {
|
|
478
|
+
title: string;
|
|
479
|
+
value: number;
|
|
480
|
+
id: string;
|
|
481
|
+
}
|
|
482
|
+
export interface RatingQuestionBody {
|
|
483
|
+
options: Array<RatingQuestionOption>;
|
|
484
|
+
}
|
|
485
|
+
export interface MutableRatingQuestionBody {
|
|
486
|
+
options: Array<MutableRatingQuestionOption>;
|
|
487
|
+
}
|
|
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;
|
|
465
537
|
export interface UpdateQuestionRequestBody {
|
|
466
538
|
title: string;
|
|
467
539
|
subtitle?: string | null;
|
|
@@ -534,7 +606,7 @@ export interface QuestionMetrics {
|
|
|
534
606
|
type: QuestionType;
|
|
535
607
|
data: QuestionMetricsData;
|
|
536
608
|
}
|
|
537
|
-
export declare type QuestionMetricsData = ChoiceQuestionMetricsBody | CheckboxQuestionMetricsBody | InageQuestionMetricsBody;
|
|
609
|
+
export declare type QuestionMetricsData = ChoiceQuestionMetricsBody | CheckboxQuestionMetricsBody | InageQuestionMetricsBody | RatingQuestionMetricsBody;
|
|
538
610
|
export interface ChoiceQuestionMetricsBody {
|
|
539
611
|
options: Array<ChoiceQuestionMetricsOption>;
|
|
540
612
|
}
|
|
@@ -566,6 +638,15 @@ export interface ImageQuestionMetricsOption {
|
|
|
566
638
|
image_asset_url: string;
|
|
567
639
|
answer_count: number;
|
|
568
640
|
}
|
|
641
|
+
export interface RatingQuestionMetricsBody {
|
|
642
|
+
options: Array<RatingQuestionMetricsOption>;
|
|
643
|
+
}
|
|
644
|
+
export interface RatingQuestionMetricsOption {
|
|
645
|
+
title: string;
|
|
646
|
+
value: number;
|
|
647
|
+
id: string;
|
|
648
|
+
answer_count: number;
|
|
649
|
+
}
|
|
569
650
|
export interface Event {
|
|
570
651
|
name: string;
|
|
571
652
|
created_at: string | null;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -37,6 +37,8 @@ var QuestionType;
|
|
|
37
37
|
QuestionType["choice"] = "choice";
|
|
38
38
|
QuestionType["checkbox"] = "checkbox";
|
|
39
39
|
QuestionType["rating"] = "rating";
|
|
40
|
+
QuestionType["text"] = "text";
|
|
41
|
+
QuestionType["rankedChoice"] = "ranked-choice";
|
|
40
42
|
})(QuestionType = exports.QuestionType || (exports.QuestionType = {}));
|
|
41
43
|
var QuestionKind;
|
|
42
44
|
(function (QuestionKind) {
|
|
@@ -44,6 +46,14 @@ var QuestionKind;
|
|
|
44
46
|
QuestionKind["checkbox"] = "checkbox";
|
|
45
47
|
QuestionKind["star"] = "star";
|
|
46
48
|
QuestionKind["image"] = "image";
|
|
49
|
+
QuestionKind["rating"] = "rating";
|
|
50
|
+
QuestionKind["shortText"] = "short-text";
|
|
51
|
+
QuestionKind["longText"] = "long-text";
|
|
52
|
+
QuestionKind["emoji"] = "emoji";
|
|
53
|
+
QuestionKind["boolean"] = "boolean";
|
|
54
|
+
QuestionKind["slider"] = "slider";
|
|
55
|
+
QuestionKind["rankedChoice"] = "ranked-choice";
|
|
56
|
+
QuestionKind["tag"] = "tag";
|
|
47
57
|
})(QuestionKind = exports.QuestionKind || (exports.QuestionKind = {}));
|
|
48
58
|
var QuestionStatus;
|
|
49
59
|
(function (QuestionStatus) {
|