@parra/parra-js-sdk 0.2.121 → 0.2.123

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.
@@ -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;
@@ -1102,8 +1104,9 @@ declare class ParraAPI {
1102
1104
  $expand?: string | undefined;
1103
1105
  $search?: string | undefined;
1104
1106
  } | undefined) => Promise<TenantUserCollectionResponse>;
1105
- createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody | undefined) => Promise<FeedbackForm>;
1106
- getFormById: (feedback_form_id: string) => Promise<FeedbackForm>;
1107
+ createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody | undefined) => Promise<FeedbackFormResponse>;
1108
+ getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<FeedbackFormResponse>;
1109
+ getFormById: (feedback_form_id: string) => Promise<FeedbackFormResponse>;
1107
1110
  submitFormById: (feedback_form_id: string, body?: FeedbackFormResponse | undefined) => Promise<Response>;
1108
1111
  createQuestion: (body?: CreateQuestionRequestBody | undefined) => Promise<Question>;
1109
1112
  paginateQuestions: (query?: {
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.121",
3
+ "version": "0.2.123",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",