@parra/parra-js-sdk 0.2.52 → 0.2.53
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 +9 -0
- package/dist/ParraAPI.js +10 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -179,6 +179,13 @@ export interface ApiKeyCollectionResponse {
|
|
|
179
179
|
total_count: number;
|
|
180
180
|
data: Array<ApiKey>;
|
|
181
181
|
}
|
|
182
|
+
export interface TeamMember {
|
|
183
|
+
id: string;
|
|
184
|
+
name: string;
|
|
185
|
+
email: string;
|
|
186
|
+
avatar_url?: string;
|
|
187
|
+
}
|
|
188
|
+
export declare type TeamMemberListResponse = Array<Tenant>;
|
|
182
189
|
export interface AnswerData {
|
|
183
190
|
}
|
|
184
191
|
export interface FeedbackMetrics {
|
|
@@ -448,6 +455,8 @@ declare class ParraAPI {
|
|
|
448
455
|
getApiKeysForTenantById: (tenant_id: string) => Promise<ApiKeyCollectionResponse>;
|
|
449
456
|
deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string) => Promise<Response>;
|
|
450
457
|
getTenantForApiKeyById: (api_key_id: string) => Promise<Tenant>;
|
|
458
|
+
getTeamMembersForTenantById: (tenant_id: string) => Promise<TeamMemberListResponse>;
|
|
459
|
+
deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
|
|
451
460
|
getCards: () => Promise<CardsResponse>;
|
|
452
461
|
createQuestion: (body?: CreateQuestionRequestBody | undefined) => Promise<Question>;
|
|
453
462
|
paginateQuestions: (query?: {
|
package/dist/ParraAPI.js
CHANGED
|
@@ -140,6 +140,16 @@ var ParraAPI = /** @class */ (function () {
|
|
|
140
140
|
method: "get",
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
+
this.getTeamMembersForTenantById = function (tenant_id) {
|
|
144
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), {
|
|
145
|
+
method: "get",
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
this.deleteTeamMemberForTenantById = function (tenant_id, team_member_id) {
|
|
149
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members/").concat(team_member_id), {
|
|
150
|
+
method: "delete",
|
|
151
|
+
});
|
|
152
|
+
};
|
|
143
153
|
this.getCards = function () {
|
|
144
154
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/cards"), {
|
|
145
155
|
method: "get",
|