@parra/parra-js-sdk 0.2.53 → 0.2.58

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,13 +179,25 @@ export interface ApiKeyCollectionResponse {
179
179
  total_count: number;
180
180
  data: Array<ApiKey>;
181
181
  }
182
+ export interface InviteTeamMemberRequestBody {
183
+ name: string;
184
+ email: string;
185
+ }
186
+ export interface UpdateTeamMemberUserRequestBody {
187
+ user_id: string;
188
+ }
182
189
  export interface TeamMember {
183
190
  id: string;
191
+ created_at: string;
192
+ updated_at: string;
193
+ deleted_at?: string | null;
194
+ tenant_id: string;
195
+ user_id?: string | null;
184
196
  name: string;
185
197
  email: string;
186
198
  avatar_url?: string;
187
199
  }
188
- export declare type TeamMemberListResponse = Array<Tenant>;
200
+ export declare type TeamMemberListResponse = Array<TeamMember>;
189
201
  export interface AnswerData {
190
202
  }
191
203
  export interface FeedbackMetrics {
@@ -456,7 +468,9 @@ declare class ParraAPI {
456
468
  deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string) => Promise<Response>;
457
469
  getTenantForApiKeyById: (api_key_id: string) => Promise<Tenant>;
458
470
  getTeamMembersForTenantById: (tenant_id: string) => Promise<TeamMemberListResponse>;
471
+ inviteTeamMemberForTenantById: (tenant_id: string, body?: InviteTeamMemberRequestBody | undefined) => Promise<TeamMember>;
459
472
  deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
473
+ updateTeamMemberUserForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
460
474
  getCards: () => Promise<CardsResponse>;
461
475
  createQuestion: (body?: CreateQuestionRequestBody | undefined) => Promise<Question>;
462
476
  paginateQuestions: (query?: {
package/dist/ParraAPI.js CHANGED
@@ -145,11 +145,25 @@ var ParraAPI = /** @class */ (function () {
145
145
  method: "get",
146
146
  });
147
147
  };
148
+ this.inviteTeamMemberForTenantById = function (tenant_id, body) {
149
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), {
150
+ method: "post",
151
+ body: JSON.stringify(body),
152
+ headers: {
153
+ "content-type": "application/json",
154
+ },
155
+ });
156
+ };
148
157
  this.deleteTeamMemberForTenantById = function (tenant_id, team_member_id) {
149
158
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members/").concat(team_member_id), {
150
159
  method: "delete",
151
160
  });
152
161
  };
162
+ this.updateTeamMemberUserForTenantById = function (tenant_id, team_member_id) {
163
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members/").concat(team_member_id, "/user"), {
164
+ method: "post",
165
+ });
166
+ };
153
167
  this.getCards = function () {
154
168
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/cards"), {
155
169
  method: "get",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.53",
3
+ "version": "0.2.58",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",