@parra/parra-js-sdk 0.2.87 → 0.2.88
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 +41 -3
- package/dist/ParraAPI.js +1 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -301,6 +301,7 @@ export interface FormResponse {
|
|
|
301
301
|
export interface Form {
|
|
302
302
|
}
|
|
303
303
|
export interface FeedbackMetrics {
|
|
304
|
+
user_count: number;
|
|
304
305
|
answer_count: number;
|
|
305
306
|
question_count: number;
|
|
306
307
|
questions_created_this_month: number;
|
|
@@ -337,6 +338,7 @@ export interface CardsResponse {
|
|
|
337
338
|
}
|
|
338
339
|
export declare enum QuestionType {
|
|
339
340
|
choice = "choice",
|
|
341
|
+
checkbox = "checkbox",
|
|
340
342
|
rating = "rating"
|
|
341
343
|
}
|
|
342
344
|
export declare enum QuestionKind {
|
|
@@ -362,6 +364,23 @@ export interface ChoiceQuestionBody {
|
|
|
362
364
|
export interface MutableChoiceQuestionBody {
|
|
363
365
|
options: Array<MutableChoiceQuestionOption>;
|
|
364
366
|
}
|
|
367
|
+
export interface MutableCheckboxQuestionOption {
|
|
368
|
+
title: string;
|
|
369
|
+
value: string;
|
|
370
|
+
is_other?: boolean | null;
|
|
371
|
+
}
|
|
372
|
+
export interface CheckboxQuestionOption {
|
|
373
|
+
title: string;
|
|
374
|
+
value: string;
|
|
375
|
+
is_other?: boolean | null;
|
|
376
|
+
id: string;
|
|
377
|
+
}
|
|
378
|
+
export interface CheckboxQuestionBody {
|
|
379
|
+
options: Array<CheckboxQuestionOption>;
|
|
380
|
+
}
|
|
381
|
+
export interface MutableCheckboxQuestionBody {
|
|
382
|
+
options: Array<MutableCheckboxQuestionOption>;
|
|
383
|
+
}
|
|
365
384
|
export interface MutableImageQuestionOption {
|
|
366
385
|
image_asset_id: string;
|
|
367
386
|
title?: string | null;
|
|
@@ -380,8 +399,8 @@ export interface ImageQuestionBody {
|
|
|
380
399
|
export interface MutableImageQuestionBody {
|
|
381
400
|
options: Array<MutableImageQuestionOption>;
|
|
382
401
|
}
|
|
383
|
-
export declare type MutableQuestionData = MutableChoiceQuestionBody | MutableImageQuestionBody;
|
|
384
|
-
export declare type QuestionData = ChoiceQuestionBody | ImageQuestionBody;
|
|
402
|
+
export declare type MutableQuestionData = MutableChoiceQuestionBody | MutableCheckboxQuestionBody | MutableImageQuestionBody;
|
|
403
|
+
export declare type QuestionData = ChoiceQuestionBody | CheckboxQuestionBody | ImageQuestionBody;
|
|
385
404
|
export interface UpdateQuestionRequestBody {
|
|
386
405
|
title: string;
|
|
387
406
|
subtitle?: string | null;
|
|
@@ -445,7 +464,7 @@ export interface QuestionMetrics {
|
|
|
445
464
|
type: QuestionType;
|
|
446
465
|
data: QuestionMetricsData;
|
|
447
466
|
}
|
|
448
|
-
export declare type QuestionMetricsData = ChoiceQuestionMetricsBody | InageQuestionMetricsBody;
|
|
467
|
+
export declare type QuestionMetricsData = ChoiceQuestionMetricsBody | CheckboxQuestionMetricsBody | InageQuestionMetricsBody;
|
|
449
468
|
export interface ChoiceQuestionMetricsBody {
|
|
450
469
|
options: Array<ChoiceQuestionMetricsOption>;
|
|
451
470
|
}
|
|
@@ -456,6 +475,16 @@ export interface ChoiceQuestionMetricsOption {
|
|
|
456
475
|
id: string;
|
|
457
476
|
answer_count: number;
|
|
458
477
|
}
|
|
478
|
+
export interface CheckboxQuestionMetricsBody {
|
|
479
|
+
options: Array<CheckboxQuestionMetricsOption>;
|
|
480
|
+
}
|
|
481
|
+
export interface CheckboxQuestionMetricsOption {
|
|
482
|
+
title: string;
|
|
483
|
+
value: string;
|
|
484
|
+
is_other?: boolean | null;
|
|
485
|
+
id: string;
|
|
486
|
+
answer_count: number;
|
|
487
|
+
}
|
|
459
488
|
export interface InageQuestionMetricsBody {
|
|
460
489
|
options: Array<ImageQuestionMetricsOption>;
|
|
461
490
|
}
|
|
@@ -467,6 +496,15 @@ export interface ImageQuestionMetricsOption {
|
|
|
467
496
|
image_asset_url: string;
|
|
468
497
|
answer_count: number;
|
|
469
498
|
}
|
|
499
|
+
export interface Event {
|
|
500
|
+
name: string;
|
|
501
|
+
created_at: string | null;
|
|
502
|
+
event_properties?: Map<string, any> | null;
|
|
503
|
+
}
|
|
504
|
+
export interface Session {
|
|
505
|
+
user_properties?: Map<string, any> | null;
|
|
506
|
+
events?: Array<Event>;
|
|
507
|
+
}
|
|
470
508
|
export interface NotificationRecipient {
|
|
471
509
|
user_id?: string | null;
|
|
472
510
|
}
|
package/dist/ParraAPI.js
CHANGED
|
@@ -27,6 +27,7 @@ var CardItemType;
|
|
|
27
27
|
var QuestionType;
|
|
28
28
|
(function (QuestionType) {
|
|
29
29
|
QuestionType["choice"] = "choice";
|
|
30
|
+
QuestionType["checkbox"] = "checkbox";
|
|
30
31
|
QuestionType["rating"] = "rating";
|
|
31
32
|
})(QuestionType = exports.QuestionType || (exports.QuestionType = {}));
|
|
32
33
|
var QuestionKind;
|