@parra/parra-js-sdk 0.2.61 → 0.2.64

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.
@@ -200,9 +200,6 @@ export interface TenantInvitation {
200
200
  accepted_at?: string | null;
201
201
  }
202
202
  export declare type TenantInvitationListResponse = Array<TenantInvitation>;
203
- export interface AcceptTenantInvitationRequestBody {
204
- code: string;
205
- }
206
203
  export interface TeamMember {
207
204
  id: string;
208
205
  created_at: string;
@@ -486,7 +483,7 @@ declare class ParraAPI {
486
483
  getTenantForApiKeyById: (api_key_id: string) => Promise<Tenant>;
487
484
  getInvitationsForTenantById: (tenant_id: string) => Promise<TenantInvitationListResponse>;
488
485
  createInvitationForTenantById: (tenant_id: string, body?: TenantInvitationRequestBody | undefined) => Promise<TenantInvitation>;
489
- acceptInvitationForTenantById: (tenant_id: string, body?: AcceptTenantInvitationRequestBody | undefined) => Promise<Response>;
486
+ acceptInvitationByCode: (invitation_code: string) => Promise<TenantInvitation>;
490
487
  getTeamMembersForTenantById: (tenant_id: string) => Promise<TeamMemberListResponse>;
491
488
  deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
492
489
  updateTeamMemberUserForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
package/dist/ParraAPI.js CHANGED
@@ -154,14 +154,9 @@ var ParraAPI = /** @class */ (function () {
154
154
  },
155
155
  });
156
156
  };
157
- this.acceptInvitationForTenantById = function (tenant_id, body) {
158
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations/accept"), {
157
+ this.acceptInvitationByCode = function (invitation_code) {
158
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/invitations/").concat(invitation_code, "/accept"), {
159
159
  method: "post",
160
- body: JSON.stringify(body),
161
- headers: {
162
- "content-type": "application/json",
163
- },
164
- raw: true,
165
160
  });
166
161
  };
167
162
  this.getTeamMembersForTenantById = function (tenant_id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.61",
3
+ "version": "0.2.64",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",