@parra/parra-js-sdk 0.2.120 → 0.2.122
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 +8 -0
- package/dist/ParraAPI.js +5 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -433,6 +433,13 @@ export interface FeedbackFormStub {
|
|
|
433
433
|
description?: string | null;
|
|
434
434
|
}
|
|
435
435
|
export interface FeedbackFormResponse {
|
|
436
|
+
id: string;
|
|
437
|
+
created_at: string;
|
|
438
|
+
updated_at: string;
|
|
439
|
+
deleted_at?: string | null;
|
|
440
|
+
title: string;
|
|
441
|
+
description?: string | null;
|
|
442
|
+
data: FeedbackFormData;
|
|
436
443
|
}
|
|
437
444
|
export interface FeedbackForm {
|
|
438
445
|
id: string;
|
|
@@ -1096,6 +1103,7 @@ declare class ParraAPI {
|
|
|
1096
1103
|
$search?: string | undefined;
|
|
1097
1104
|
} | undefined) => Promise<TenantUserCollectionResponse>;
|
|
1098
1105
|
createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody | undefined) => Promise<FeedbackForm>;
|
|
1106
|
+
getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<FeedbackForm>;
|
|
1099
1107
|
getFormById: (feedback_form_id: string) => Promise<FeedbackForm>;
|
|
1100
1108
|
submitFormById: (feedback_form_id: string, body?: FeedbackFormResponse | undefined) => Promise<Response>;
|
|
1101
1109
|
createQuestion: (body?: CreateQuestionRequestBody | undefined) => Promise<Question>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -387,6 +387,11 @@ var ParraAPI = /** @class */ (function () {
|
|
|
387
387
|
},
|
|
388
388
|
});
|
|
389
389
|
};
|
|
390
|
+
this.getFeedbackFormForTenantById = function (tenant_id, feedback_form_id) {
|
|
391
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
|
|
392
|
+
method: "get",
|
|
393
|
+
});
|
|
394
|
+
};
|
|
390
395
|
this.getFormById = function (feedback_form_id) {
|
|
391
396
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), {
|
|
392
397
|
method: "get",
|