@parra/parra-js-sdk 0.2.78 → 0.2.82

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.
@@ -177,6 +177,7 @@ export interface Tenant {
177
177
  is_test: boolean;
178
178
  parent_tenant_id?: string | null;
179
179
  entitlements?: Array<Entitlement> | null;
180
+ metrics?: TenantMetrics | null;
180
181
  }
181
182
  export declare type TenantListResponse = Array<Tenant>;
182
183
  export interface TenantCollectionResponse {
@@ -187,10 +188,16 @@ export interface TenantCollectionResponse {
187
188
  data: Array<Tenant>;
188
189
  }
189
190
  export interface TenantMetrics {
190
- team_member_invitation_count: number;
191
+ team_member_pending_invitation_count: number;
191
192
  team_member_count: number;
192
193
  child_tenant_count: number;
193
194
  }
195
+ export interface UpdateTenantMetricsRequestBody {
196
+ team_member_pending_invitation_count?: number;
197
+ question_count?: number;
198
+ team_member_count?: number;
199
+ child_tenant_count?: number;
200
+ }
194
201
  export interface CreateApiKeyRequestBody {
195
202
  name: string;
196
203
  description?: string | null;
@@ -289,6 +296,7 @@ export interface FormResponse {
289
296
  export interface Form {
290
297
  }
291
298
  export interface FeedbackMetrics {
299
+ question_count: number;
292
300
  questions_created_this_month: number;
293
301
  }
294
302
  export interface Answer {
@@ -581,7 +589,9 @@ declare class ParraAPI {
581
589
  createAudience: (body?: CreateAudienceRequestBody | undefined) => Promise<Audience>;
582
590
  createSubscriberForAudienceById: (audience_id: string, body?: CreateSubscriberRequestBody | undefined) => Promise<Response>;
583
591
  createTenant: (body?: CreateTenantRequestBody | undefined) => Promise<Tenant>;
584
- getTenantById: (tenant_id: string) => Promise<Tenant>;
592
+ getTenantById: (tenant_id: string, query?: {
593
+ include?: string | undefined;
594
+ } | undefined) => Promise<Tenant>;
585
595
  updateTenantById: (tenant_id: string, body?: UpdateTenantRequestBody | undefined) => Promise<Tenant>;
586
596
  deleteTenantById: (tenant_id: string) => Promise<Response>;
587
597
  createTenantForUserById: (user_id: string, body?: CreateTenantForUserRequestBody | undefined) => Promise<Tenant>;
package/dist/ParraAPI.js CHANGED
@@ -119,9 +119,10 @@ var ParraAPI = /** @class */ (function () {
119
119
  },
120
120
  });
121
121
  };
122
- this.getTenantById = function (tenant_id) {
122
+ this.getTenantById = function (tenant_id, query) {
123
123
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), {
124
124
  method: "get",
125
+ query: query,
125
126
  });
126
127
  };
127
128
  this.updateTenantById = function (tenant_id, body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.78",
3
+ "version": "0.2.82",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",