@parra/parra-js-sdk 0.2.79 → 0.2.83
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.
- package/dist/ParraAPI.d.ts +11 -2
- package/dist/ParraAPI.js +2 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -188,10 +188,16 @@ export interface TenantCollectionResponse {
|
|
|
188
188
|
data: Array<Tenant>;
|
|
189
189
|
}
|
|
190
190
|
export interface TenantMetrics {
|
|
191
|
-
|
|
191
|
+
team_member_pending_invitation_count: number;
|
|
192
192
|
team_member_count: number;
|
|
193
193
|
child_tenant_count: number;
|
|
194
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
|
+
}
|
|
195
201
|
export interface CreateApiKeyRequestBody {
|
|
196
202
|
name: string;
|
|
197
203
|
description?: string | null;
|
|
@@ -290,6 +296,7 @@ export interface FormResponse {
|
|
|
290
296
|
export interface Form {
|
|
291
297
|
}
|
|
292
298
|
export interface FeedbackMetrics {
|
|
299
|
+
question_count: number;
|
|
293
300
|
questions_created_this_month: number;
|
|
294
301
|
}
|
|
295
302
|
export interface Answer {
|
|
@@ -582,7 +589,9 @@ declare class ParraAPI {
|
|
|
582
589
|
createAudience: (body?: CreateAudienceRequestBody | undefined) => Promise<Audience>;
|
|
583
590
|
createSubscriberForAudienceById: (audience_id: string, body?: CreateSubscriberRequestBody | undefined) => Promise<Response>;
|
|
584
591
|
createTenant: (body?: CreateTenantRequestBody | undefined) => Promise<Tenant>;
|
|
585
|
-
getTenantById: (tenant_id: string
|
|
592
|
+
getTenantById: (tenant_id: string, query?: {
|
|
593
|
+
include?: string | undefined;
|
|
594
|
+
} | undefined) => Promise<Tenant>;
|
|
586
595
|
updateTenantById: (tenant_id: string, body?: UpdateTenantRequestBody | undefined) => Promise<Tenant>;
|
|
587
596
|
deleteTenantById: (tenant_id: string) => Promise<Response>;
|
|
588
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) {
|