@parra/parra-js-sdk 0.2.86 → 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 +42 -3
- package/dist/ParraAPI.js +1 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -301,6 +301,8 @@ export interface FormResponse {
|
|
|
301
301
|
export interface Form {
|
|
302
302
|
}
|
|
303
303
|
export interface FeedbackMetrics {
|
|
304
|
+
user_count: number;
|
|
305
|
+
answer_count: number;
|
|
304
306
|
question_count: number;
|
|
305
307
|
questions_created_this_month: number;
|
|
306
308
|
}
|
|
@@ -336,6 +338,7 @@ export interface CardsResponse {
|
|
|
336
338
|
}
|
|
337
339
|
export declare enum QuestionType {
|
|
338
340
|
choice = "choice",
|
|
341
|
+
checkbox = "checkbox",
|
|
339
342
|
rating = "rating"
|
|
340
343
|
}
|
|
341
344
|
export declare enum QuestionKind {
|
|
@@ -361,6 +364,23 @@ export interface ChoiceQuestionBody {
|
|
|
361
364
|
export interface MutableChoiceQuestionBody {
|
|
362
365
|
options: Array<MutableChoiceQuestionOption>;
|
|
363
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
|
+
}
|
|
364
384
|
export interface MutableImageQuestionOption {
|
|
365
385
|
image_asset_id: string;
|
|
366
386
|
title?: string | null;
|
|
@@ -379,8 +399,8 @@ export interface ImageQuestionBody {
|
|
|
379
399
|
export interface MutableImageQuestionBody {
|
|
380
400
|
options: Array<MutableImageQuestionOption>;
|
|
381
401
|
}
|
|
382
|
-
export declare type MutableQuestionData = MutableChoiceQuestionBody | MutableImageQuestionBody;
|
|
383
|
-
export declare type QuestionData = ChoiceQuestionBody | ImageQuestionBody;
|
|
402
|
+
export declare type MutableQuestionData = MutableChoiceQuestionBody | MutableCheckboxQuestionBody | MutableImageQuestionBody;
|
|
403
|
+
export declare type QuestionData = ChoiceQuestionBody | CheckboxQuestionBody | ImageQuestionBody;
|
|
384
404
|
export interface UpdateQuestionRequestBody {
|
|
385
405
|
title: string;
|
|
386
406
|
subtitle?: string | null;
|
|
@@ -444,7 +464,7 @@ export interface QuestionMetrics {
|
|
|
444
464
|
type: QuestionType;
|
|
445
465
|
data: QuestionMetricsData;
|
|
446
466
|
}
|
|
447
|
-
export declare type QuestionMetricsData = ChoiceQuestionMetricsBody | InageQuestionMetricsBody;
|
|
467
|
+
export declare type QuestionMetricsData = ChoiceQuestionMetricsBody | CheckboxQuestionMetricsBody | InageQuestionMetricsBody;
|
|
448
468
|
export interface ChoiceQuestionMetricsBody {
|
|
449
469
|
options: Array<ChoiceQuestionMetricsOption>;
|
|
450
470
|
}
|
|
@@ -455,6 +475,16 @@ export interface ChoiceQuestionMetricsOption {
|
|
|
455
475
|
id: string;
|
|
456
476
|
answer_count: number;
|
|
457
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
|
+
}
|
|
458
488
|
export interface InageQuestionMetricsBody {
|
|
459
489
|
options: Array<ImageQuestionMetricsOption>;
|
|
460
490
|
}
|
|
@@ -466,6 +496,15 @@ export interface ImageQuestionMetricsOption {
|
|
|
466
496
|
image_asset_url: string;
|
|
467
497
|
answer_count: number;
|
|
468
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
|
+
}
|
|
469
508
|
export interface NotificationRecipient {
|
|
470
509
|
user_id?: string | null;
|
|
471
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;
|