@parra/parra-js-sdk 0.2.125 → 0.2.127
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 -0
- package/dist/ParraAPI.js +11 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -439,6 +439,22 @@ export interface FeedbackFormStub {
|
|
|
439
439
|
}
|
|
440
440
|
export interface SubmitFeedbackFormResponseBody {
|
|
441
441
|
}
|
|
442
|
+
export interface FeedbackFormSubmission {
|
|
443
|
+
id: string;
|
|
444
|
+
created_at: string;
|
|
445
|
+
updated_at: string;
|
|
446
|
+
deleted_at?: string | null;
|
|
447
|
+
feedback_form_id: string;
|
|
448
|
+
user_id: string;
|
|
449
|
+
data: SubmitFeedbackFormResponseBody;
|
|
450
|
+
}
|
|
451
|
+
export interface FeedbackFormSubmissionCollectionResponse {
|
|
452
|
+
page: number;
|
|
453
|
+
page_count: number;
|
|
454
|
+
page_size: number;
|
|
455
|
+
total_count: number;
|
|
456
|
+
data: Array<FeedbackFormSubmission>;
|
|
457
|
+
}
|
|
442
458
|
export interface FeedbackFormResponse {
|
|
443
459
|
id: string;
|
|
444
460
|
created_at: string;
|
|
@@ -1118,6 +1134,16 @@ declare class ParraAPI {
|
|
|
1118
1134
|
createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody | undefined) => Promise<FeedbackFormResponse>;
|
|
1119
1135
|
getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<FeedbackFormResponse>;
|
|
1120
1136
|
updateFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, body?: UpdateFeedbackFormRequestBody | undefined) => Promise<FeedbackFormResponse>;
|
|
1137
|
+
deleteFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<Response>;
|
|
1138
|
+
paginateFeedbackFormResponsesForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
|
|
1139
|
+
$select?: string | undefined;
|
|
1140
|
+
$top?: number | undefined;
|
|
1141
|
+
$skip?: number | undefined;
|
|
1142
|
+
$orderby?: string | undefined;
|
|
1143
|
+
$filter?: string | undefined;
|
|
1144
|
+
$expand?: string | undefined;
|
|
1145
|
+
$search?: string | undefined;
|
|
1146
|
+
} | undefined) => Promise<FeedbackFormSubmissionCollectionResponse>;
|
|
1121
1147
|
getFormById: (feedback_form_id: string) => Promise<FeedbackFormDataStub>;
|
|
1122
1148
|
submitFormById: (feedback_form_id: string, body?: FeedbackFormResponse | undefined) => Promise<Response>;
|
|
1123
1149
|
createQuestion: (body?: CreateQuestionRequestBody | undefined) => Promise<Question>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -401,6 +401,17 @@ var ParraAPI = /** @class */ (function () {
|
|
|
401
401
|
},
|
|
402
402
|
});
|
|
403
403
|
};
|
|
404
|
+
this.deleteFeedbackFormForTenantById = function (tenant_id, feedback_form_id) {
|
|
405
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
|
|
406
|
+
method: "delete",
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
this.paginateFeedbackFormResponsesForTenantById = function (tenant_id, feedback_form_id, query) {
|
|
410
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses"), {
|
|
411
|
+
method: "get",
|
|
412
|
+
query: query,
|
|
413
|
+
});
|
|
414
|
+
};
|
|
404
415
|
this.getFormById = function (feedback_form_id) {
|
|
405
416
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), {
|
|
406
417
|
method: "get",
|