academe-kit 0.2.8 → 0.2.9

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.
@@ -1,5 +1,5 @@
1
1
  import type { AcademeApiClient } from './index';
2
- import type { components } from '../types/academe-api';
2
+ import type { components, paths } from '../types/academe-api';
3
3
  type CreateInstitutionGroupDto = components['schemas']['CreateInstitutionGroupDto'];
4
4
  type UpdateInstitutionGroupDto = components['schemas']['UpdateInstitutionGroupDto'];
5
5
  type CreateInstitutionClassroomDto = components['schemas']['CreateInstitutionClassroomDto'];
@@ -7,6 +7,7 @@ type UpdateInstitutionClassroomDto = components['schemas']['UpdateInstitutionCla
7
7
  type CreateInstitutionRegistrationDto = components['schemas']['CreateInstitutionRegistrationDto'];
8
8
  type UpdateInstitutionRegistrationDto = components['schemas']['UpdateInstitutionRegistrationDto'];
9
9
  type AssignClassroomDto = components['schemas']['AssignClassroomDto'];
10
+ type GetInstitutionUsersQuery = paths['/institutions/{institutionId}/users']['get']['parameters']['query'];
10
11
  export declare function createInstitutionService(apiClient: AcademeApiClient): {
11
12
  getAll(): Promise<import("openapi-fetch").FetchResponse<{
12
13
  parameters: {
@@ -461,16 +462,7 @@ export declare function createInstitutionService(apiClient: AcademeApiClient): {
461
462
  };
462
463
  };
463
464
  }, `${string}/${string}`>>;
464
- getUsers(institutionId: string, options?: {
465
- classroomId?: string;
466
- isStudent?: boolean;
467
- isActive?: boolean;
468
- hasCertificates?: boolean;
469
- hasGuardian?: boolean;
470
- search?: string;
471
- page?: number;
472
- limit?: number;
473
- }): Promise<import("openapi-fetch").FetchResponse<{
465
+ getUsers(institutionId: string, options?: GetInstitutionUsersQuery): Promise<import("openapi-fetch").FetchResponse<{
474
466
  parameters: {
475
467
  query?: {
476
468
  classroomId?: string;
@@ -510,8 +502,8 @@ export declare function createInstitutionService(apiClient: AcademeApiClient): {
510
502
  };
511
503
  query: {
512
504
  classroomId?: string;
513
- isStudent?: boolean;
514
505
  isActive?: boolean;
506
+ type?: "student" | "teacher" | "school-director" | "other";
515
507
  hasCertificates?: boolean;
516
508
  hasGuardian?: boolean;
517
509
  search?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "academe-kit",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "description": "A React component library with Tailwind CSS and Storybook",
6
6
  "main": "dist/index.js",