@parra/parra-js-sdk 0.2.90 → 0.2.91

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.
@@ -157,7 +157,7 @@ export interface CreateTenantForUserRequestBody {
157
157
  name: string;
158
158
  is_test: boolean;
159
159
  }
160
- export interface TenantUser {
160
+ export interface TenantMember {
161
161
  id: string;
162
162
  created_at: string;
163
163
  updated_at: string;
@@ -514,6 +514,32 @@ export interface Session {
514
514
  user_properties?: Map<string, any> | null;
515
515
  events?: Array<Event>;
516
516
  }
517
+ export interface TenantUserStub {
518
+ id: string;
519
+ created_at: string;
520
+ updated_at: string;
521
+ deleted_at?: string | null;
522
+ identity: string;
523
+ tenant_id: string;
524
+ name?: string | null;
525
+ }
526
+ export interface TenantUser {
527
+ id: string;
528
+ created_at: string;
529
+ updated_at: string;
530
+ deleted_at?: string | null;
531
+ identity: string;
532
+ tenant_id: string;
533
+ name?: string | null;
534
+ properties: Map<string, any>;
535
+ }
536
+ export interface TenantUserCollectionResponse {
537
+ page: number;
538
+ page_count: number;
539
+ page_size: number;
540
+ total_count: number;
541
+ data: Array<TenantUserStub>;
542
+ }
517
543
  export interface NotificationRecipient {
518
544
  user_id?: string | null;
519
545
  }
@@ -686,6 +712,15 @@ declare class ParraAPI {
686
712
  createMetricsForQuestionById: (question_id: string) => Promise<QuestionMetrics>;
687
713
  answerQuestionById: (question_id: string, body?: AnswerQuestionBody | undefined) => Promise<Response>;
688
714
  bulkAnswerQuestions: (body?: BulkAnswerQuestionsBody | undefined) => Promise<Response>;
715
+ paginateTenantUsersForTenantById: (tenant_id: string, query?: {
716
+ $select?: string | undefined;
717
+ $top?: number | undefined;
718
+ $skip?: number | undefined;
719
+ $orderby?: string | undefined;
720
+ $filter?: string | undefined;
721
+ $expand?: string | undefined;
722
+ $search?: string | undefined;
723
+ } | undefined) => Promise<TenantUserCollectionResponse>;
689
724
  createUser: (body: CreateUserRequestBody) => Promise<UserResponse>;
690
725
  listUsers: (query?: {
691
726
  $select?: string | undefined;
package/dist/ParraAPI.js CHANGED
@@ -330,6 +330,12 @@ var ParraAPI = /** @class */ (function () {
330
330
  raw: true,
331
331
  });
332
332
  };
333
+ this.paginateTenantUsersForTenantById = function (tenant_id, query) {
334
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), {
335
+ method: "get",
336
+ query: query,
337
+ });
338
+ };
333
339
  this.createUser = function (body) {
334
340
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), {
335
341
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.90",
3
+ "version": "0.2.91",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",