@parra/parra-js-sdk 0.2.122 → 0.2.124
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 +16 -8
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -432,6 +432,8 @@ export interface FeedbackFormStub {
|
|
|
432
432
|
title: string;
|
|
433
433
|
description?: string | null;
|
|
434
434
|
}
|
|
435
|
+
export interface SubmitFeedbackFormResponseBody {
|
|
436
|
+
}
|
|
435
437
|
export interface FeedbackFormResponse {
|
|
436
438
|
id: string;
|
|
437
439
|
created_at: string;
|
|
@@ -446,7 +448,7 @@ export interface FeedbackForm {
|
|
|
446
448
|
created_at: string;
|
|
447
449
|
updated_at: string;
|
|
448
450
|
deleted_at?: string | null;
|
|
449
|
-
data
|
|
451
|
+
data: FeedbackFormData;
|
|
450
452
|
}
|
|
451
453
|
export interface FeedbackFormData {
|
|
452
454
|
title: string;
|
|
@@ -456,20 +458,26 @@ export interface FeedbackFormData {
|
|
|
456
458
|
export interface FeedbackFormField {
|
|
457
459
|
name: string;
|
|
458
460
|
title?: string;
|
|
461
|
+
helper_text?: string;
|
|
459
462
|
type: string;
|
|
460
463
|
required?: boolean;
|
|
461
464
|
data: FeedbackFormFieldData;
|
|
462
465
|
}
|
|
463
|
-
export declare type FeedbackFormFieldData = FeedbackFormTextFieldData |
|
|
466
|
+
export declare type FeedbackFormFieldData = FeedbackFormTextFieldData | FeedbackFormSelectFieldData | FeedbackFormInputFieldData;
|
|
464
467
|
export interface FeedbackFormTextFieldData {
|
|
465
468
|
placeholder?: string;
|
|
469
|
+
lines?: number;
|
|
466
470
|
max_lines?: number;
|
|
467
471
|
min_characters?: number;
|
|
468
472
|
max_characters?: number;
|
|
473
|
+
max_height?: number;
|
|
469
474
|
}
|
|
470
|
-
export interface
|
|
475
|
+
export interface FeedbackFormInputFieldData {
|
|
471
476
|
placeholder?: string;
|
|
472
|
-
|
|
477
|
+
}
|
|
478
|
+
export interface FeedbackFormSelectFieldData {
|
|
479
|
+
placeholder?: string;
|
|
480
|
+
options: Array<FeedbackFormSelectFieldOption>;
|
|
473
481
|
}
|
|
474
482
|
export interface FeedbackFormSelectFieldOption {
|
|
475
483
|
title: string;
|
|
@@ -1101,10 +1109,10 @@ declare class ParraAPI {
|
|
|
1101
1109
|
$filter?: string | undefined;
|
|
1102
1110
|
$expand?: string | undefined;
|
|
1103
1111
|
$search?: string | undefined;
|
|
1104
|
-
} | undefined) => Promise<
|
|
1105
|
-
createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody | undefined) => Promise<
|
|
1106
|
-
getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<
|
|
1107
|
-
getFormById: (feedback_form_id: string) => Promise<
|
|
1112
|
+
} | undefined) => Promise<FeedbackFormCollectionResponse>;
|
|
1113
|
+
createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody | undefined) => Promise<FeedbackFormResponse>;
|
|
1114
|
+
getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<FeedbackFormResponse>;
|
|
1115
|
+
getFormById: (feedback_form_id: string) => Promise<FeedbackFormResponse>;
|
|
1108
1116
|
submitFormById: (feedback_form_id: string, body?: FeedbackFormResponse | undefined) => Promise<Response>;
|
|
1109
1117
|
createQuestion: (body?: CreateQuestionRequestBody | undefined) => Promise<Question>;
|
|
1110
1118
|
paginateQuestions: (query?: {
|