@parra/parra-js-sdk 0.3.14 → 0.3.15

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.
@@ -1005,6 +1005,10 @@ export interface ApiKeyCollectionResponse {
1005
1005
  total_count: number;
1006
1006
  data: Array<ApiKey>;
1007
1007
  }
1008
+ export interface TenantInvitationRequestBody {
1009
+ name: string;
1010
+ email: string;
1011
+ }
1008
1012
  export interface TeamMember {
1009
1013
  id: string;
1010
1014
  created_at: string;
@@ -1212,6 +1216,8 @@ declare class ParraAPI {
1212
1216
  deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string) => Promise<Response>;
1213
1217
  createApiKeyForTenantById: (tenant_id: string, body: CreateApiKeyRequestBody) => Promise<ApiKeyWithSecretResponse>;
1214
1218
  getApiKeysForTenantById: (tenant_id: string) => Promise<ApiKeyCollectionResponse>;
1219
+ getInvitationsForTenantById: (tenant_id: string) => Promise<Array<TenantInvitation>>;
1220
+ createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody) => Promise<TenantInvitation>;
1215
1221
  getTeamMembersForTenantById: (tenant_id: string) => Promise<Array<TeamMember>>;
1216
1222
  deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
1217
1223
  getUserForTenantById: (tenant_id: string, user_id: string) => Promise<TenantUser>;
package/dist/ParraAPI.js CHANGED
@@ -567,6 +567,20 @@ var ParraAPI = /** @class */ (function () {
567
567
  method: "get",
568
568
  });
569
569
  };
570
+ this.getInvitationsForTenantById = function (tenant_id) {
571
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), {
572
+ method: "get",
573
+ });
574
+ };
575
+ this.createInvitationForTenantById = function (tenant_id, body) {
576
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), {
577
+ method: "post",
578
+ body: JSON.stringify(body),
579
+ headers: {
580
+ "content-type": "application/json",
581
+ },
582
+ });
583
+ };
570
584
  this.getTeamMembersForTenantById = function (tenant_id) {
571
585
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), {
572
586
  method: "get",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",