@parra/parra-js-sdk 0.3.14 → 0.3.16

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.
@@ -769,6 +769,23 @@ export interface TemplateTagCollectionResponse {
769
769
  data: Array<TemplateTag>;
770
770
  metadata?: TemplateTagCollectionMetadata;
771
771
  }
772
+ export interface UpdateBoardRequestBody {
773
+ name: string;
774
+ description?: string | null;
775
+ }
776
+ export interface CreateBoardRequestBody {
777
+ name: string;
778
+ description?: string | null;
779
+ }
780
+ export interface Board {
781
+ id: string;
782
+ created_at: string;
783
+ updated_at: string;
784
+ deleted_at?: string | null;
785
+ tenant_id: string;
786
+ name: string;
787
+ description?: string | null;
788
+ }
772
789
  export declare enum ApplicationType {
773
790
  ios = "ios"
774
791
  }
@@ -1005,6 +1022,10 @@ export interface ApiKeyCollectionResponse {
1005
1022
  total_count: number;
1006
1023
  data: Array<ApiKey>;
1007
1024
  }
1025
+ export interface TenantInvitationRequestBody {
1026
+ name: string;
1027
+ email: string;
1028
+ }
1008
1029
  export interface TeamMember {
1009
1030
  id: string;
1010
1031
  created_at: string;
@@ -1174,6 +1195,8 @@ declare class ParraAPI {
1174
1195
  $expand?: string;
1175
1196
  $search?: string;
1176
1197
  }) => Promise<TemplateTagCollectionResponse>;
1198
+ createBoardForTenantById: (tenant_id: string, body?: CreateBoardRequestBody) => Promise<Board>;
1199
+ listBoardsForTenantById: (tenant_id: string) => Promise<Array<Board>>;
1177
1200
  createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
1178
1201
  paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
1179
1202
  getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
@@ -1212,6 +1235,8 @@ declare class ParraAPI {
1212
1235
  deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string) => Promise<Response>;
1213
1236
  createApiKeyForTenantById: (tenant_id: string, body: CreateApiKeyRequestBody) => Promise<ApiKeyWithSecretResponse>;
1214
1237
  getApiKeysForTenantById: (tenant_id: string) => Promise<ApiKeyCollectionResponse>;
1238
+ getInvitationsForTenantById: (tenant_id: string) => Promise<Array<TenantInvitation>>;
1239
+ createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody) => Promise<TenantInvitation>;
1215
1240
  getTeamMembersForTenantById: (tenant_id: string) => Promise<Array<TeamMember>>;
1216
1241
  deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
1217
1242
  getUserForTenantById: (tenant_id: string, user_id: string) => Promise<TenantUser>;
package/dist/ParraAPI.js CHANGED
@@ -421,6 +421,20 @@ var ParraAPI = /** @class */ (function () {
421
421
  query: query,
422
422
  });
423
423
  };
424
+ this.createBoardForTenantById = function (tenant_id, body) {
425
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), {
426
+ method: "post",
427
+ body: JSON.stringify(body),
428
+ headers: {
429
+ "content-type": "application/json",
430
+ },
431
+ });
432
+ };
433
+ this.listBoardsForTenantById = function (tenant_id) {
434
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), {
435
+ method: "get",
436
+ });
437
+ };
424
438
  this.createApplicationForTenantById = function (tenant_id, body) {
425
439
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
426
440
  method: "post",
@@ -567,6 +581,20 @@ var ParraAPI = /** @class */ (function () {
567
581
  method: "get",
568
582
  });
569
583
  };
584
+ this.getInvitationsForTenantById = function (tenant_id) {
585
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), {
586
+ method: "get",
587
+ });
588
+ };
589
+ this.createInvitationForTenantById = function (tenant_id, body) {
590
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), {
591
+ method: "post",
592
+ body: JSON.stringify(body),
593
+ headers: {
594
+ "content-type": "application/json",
595
+ },
596
+ });
597
+ };
570
598
  this.getTeamMembersForTenantById = function (tenant_id) {
571
599
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), {
572
600
  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.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",