@parra/parra-js-sdk 0.2.67 → 0.2.69
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 +7 -1
- package/dist/ParraAPI.js +15 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ export interface TenantInvitation {
|
|
|
195
195
|
member_id?: string | null;
|
|
196
196
|
name: string;
|
|
197
197
|
email: string;
|
|
198
|
-
code
|
|
198
|
+
code?: string;
|
|
199
199
|
expires_at?: string;
|
|
200
200
|
accepted_at?: string | null;
|
|
201
201
|
}
|
|
@@ -214,6 +214,10 @@ export interface TeamMember {
|
|
|
214
214
|
export declare type TeamMemberListResponse = Array<TeamMember>;
|
|
215
215
|
export interface AnswerData {
|
|
216
216
|
}
|
|
217
|
+
export interface FormResponse {
|
|
218
|
+
}
|
|
219
|
+
export interface Form {
|
|
220
|
+
}
|
|
217
221
|
export interface FeedbackMetrics {
|
|
218
222
|
questions_created_this_month: number;
|
|
219
223
|
}
|
|
@@ -488,6 +492,8 @@ declare class ParraAPI {
|
|
|
488
492
|
deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
|
|
489
493
|
updateTeamMemberUserForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
|
|
490
494
|
getCards: () => Promise<CardsResponse>;
|
|
495
|
+
getFormById: (form_id: string) => Promise<Form>;
|
|
496
|
+
submitFormById: (form_id: string, body?: FormResponse | undefined) => Promise<Response>;
|
|
491
497
|
createQuestion: (body?: CreateQuestionRequestBody | undefined) => Promise<Question>;
|
|
492
498
|
paginateQuestions: (query?: {
|
|
493
499
|
$select?: string | undefined;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -179,6 +179,21 @@ var ParraAPI = /** @class */ (function () {
|
|
|
179
179
|
method: "get",
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
|
+
this.getFormById = function (form_id) {
|
|
183
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/forms/").concat(form_id), {
|
|
184
|
+
method: "get",
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
this.submitFormById = function (form_id, body) {
|
|
188
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/forms/").concat(form_id, "/submit"), {
|
|
189
|
+
method: "post",
|
|
190
|
+
body: JSON.stringify(body),
|
|
191
|
+
headers: {
|
|
192
|
+
"content-type": "application/json",
|
|
193
|
+
},
|
|
194
|
+
raw: true,
|
|
195
|
+
});
|
|
196
|
+
};
|
|
182
197
|
this.createQuestion = function (body) {
|
|
183
198
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions"), {
|
|
184
199
|
method: "post",
|