@parra/parra-js-sdk 0.2.104 → 0.2.106
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 +26 -10
- package/dist/ParraAPI.js +6 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -268,6 +268,13 @@ export interface TeamMember {
|
|
|
268
268
|
export declare type TeamMemberListResponse = Array<TeamMember>;
|
|
269
269
|
export interface AnswerData {
|
|
270
270
|
}
|
|
271
|
+
export interface AnswerCollectionResponse {
|
|
272
|
+
page: number;
|
|
273
|
+
page_count: number;
|
|
274
|
+
page_size: number;
|
|
275
|
+
total_count: number;
|
|
276
|
+
data: Array<Answer>;
|
|
277
|
+
}
|
|
271
278
|
export interface UpdateAnalyticEventTypeRequestBody {
|
|
272
279
|
description?: string | null;
|
|
273
280
|
}
|
|
@@ -431,15 +438,9 @@ export interface ChoiceQuestionOption {
|
|
|
431
438
|
}
|
|
432
439
|
export interface ChoiceQuestionBody {
|
|
433
440
|
options: Array<ChoiceQuestionOption>;
|
|
434
|
-
leading_label?: string;
|
|
435
|
-
center_label?: string;
|
|
436
|
-
trailing_label?: string;
|
|
437
441
|
}
|
|
438
442
|
export interface MutableChoiceQuestionBody {
|
|
439
443
|
options: Array<MutableChoiceQuestionOption>;
|
|
440
|
-
leading_label?: string;
|
|
441
|
-
center_label?: string;
|
|
442
|
-
trailing_label?: string;
|
|
443
444
|
}
|
|
444
445
|
export interface MutableCheckboxQuestionOption {
|
|
445
446
|
title: string;
|
|
@@ -487,9 +488,15 @@ export interface RatingQuestionOption {
|
|
|
487
488
|
}
|
|
488
489
|
export interface RatingQuestionBody {
|
|
489
490
|
options: Array<RatingQuestionOption>;
|
|
491
|
+
leading_label?: string;
|
|
492
|
+
center_label?: string;
|
|
493
|
+
trailing_label?: string;
|
|
490
494
|
}
|
|
491
495
|
export interface MutableRatingQuestionBody {
|
|
492
496
|
options: Array<MutableRatingQuestionOption>;
|
|
497
|
+
leading_label?: string;
|
|
498
|
+
center_label?: string;
|
|
499
|
+
trailing_label?: string;
|
|
493
500
|
}
|
|
494
501
|
export interface StarQuestionBody {
|
|
495
502
|
star_count: number;
|
|
@@ -506,22 +513,22 @@ export interface MutableStarQuestionBody {
|
|
|
506
513
|
export interface ShortTextQuestionBody {
|
|
507
514
|
placeholder?: string;
|
|
508
515
|
min_length?: number;
|
|
509
|
-
max_length
|
|
516
|
+
max_length?: number;
|
|
510
517
|
}
|
|
511
518
|
export interface MutableShortTextQuestionBody {
|
|
512
519
|
placeholder?: string;
|
|
513
520
|
min_length?: number;
|
|
514
|
-
max_length
|
|
521
|
+
max_length?: number;
|
|
515
522
|
}
|
|
516
523
|
export interface LongTextQuestionBody {
|
|
517
524
|
placeholder?: string;
|
|
518
525
|
min_length?: number;
|
|
519
|
-
max_length
|
|
526
|
+
max_length?: number;
|
|
520
527
|
}
|
|
521
528
|
export interface MutableLongTextQuestionBody {
|
|
522
529
|
placeholder?: string;
|
|
523
530
|
min_length?: number;
|
|
524
|
-
max_length
|
|
531
|
+
max_length?: number;
|
|
525
532
|
}
|
|
526
533
|
export interface MutableBooleanQuestionOption {
|
|
527
534
|
title: string;
|
|
@@ -953,6 +960,15 @@ declare class ParraAPI {
|
|
|
953
960
|
closeQuestionById: (question_id: string) => Promise<Response>;
|
|
954
961
|
createMetricsForQuestionById: (question_id: string) => Promise<QuestionMetrics>;
|
|
955
962
|
answerQuestionById: (question_id: string, body?: AnswerQuestionBody | undefined) => Promise<Response>;
|
|
963
|
+
paginateAnswersForQuestionById: (question_id: string, query?: {
|
|
964
|
+
$select?: string | undefined;
|
|
965
|
+
$top?: number | undefined;
|
|
966
|
+
$skip?: number | undefined;
|
|
967
|
+
$orderby?: string | undefined;
|
|
968
|
+
$filter?: string | undefined;
|
|
969
|
+
$expand?: string | undefined;
|
|
970
|
+
$search?: string | undefined;
|
|
971
|
+
} | undefined) => Promise<AnswerCollectionResponse>;
|
|
956
972
|
bulkAnswerQuestions: (body?: BulkAnswerQuestionsBody | undefined) => Promise<Response>;
|
|
957
973
|
paginateTemplateTags: (query?: {
|
|
958
974
|
$select?: string | undefined;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -410,6 +410,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
410
410
|
raw: true,
|
|
411
411
|
});
|
|
412
412
|
};
|
|
413
|
+
this.paginateAnswersForQuestionById = function (question_id, query) {
|
|
414
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id, "/answers"), {
|
|
415
|
+
method: "get",
|
|
416
|
+
query: query,
|
|
417
|
+
});
|
|
418
|
+
};
|
|
413
419
|
this.bulkAnswerQuestions = function (body) {
|
|
414
420
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/bulk/questions/answer"), {
|
|
415
421
|
method: "post",
|