@parra/parra-js-sdk 0.2.50 → 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.
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.50",
3
+ "version": "0.2.53",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "typescript": "^4.6.4"
23
23
  },
24
24
  "dependencies": {
25
- "@parra/http-client": "0.2.4",
25
+ "@parra/http-client": "0.2.5",
26
26
  "isomorphic-fetch": "^3.0.0"
27
27
  }
28
28
  }