@taiger-common/model 1.0.50 → 1.0.51

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.
Files changed (83) hide show
  1. package/dist/cjs/api/account.js +2 -0
  2. package/dist/cjs/api/applications.js +2 -0
  3. package/dist/cjs/api/audit.js +2 -0
  4. package/dist/cjs/api/auth.js +2 -0
  5. package/dist/cjs/api/common.js +5 -0
  6. package/dist/cjs/api/communications.js +2 -0
  7. package/dist/cjs/api/courses.js +2 -0
  8. package/dist/cjs/api/crm.js +2 -0
  9. package/dist/cjs/api/documentThreads.js +2 -0
  10. package/dist/cjs/api/documentations.js +2 -0
  11. package/dist/cjs/api/events.js +2 -0
  12. package/dist/cjs/api/index.js +41 -0
  13. package/dist/cjs/api/interviews.js +2 -0
  14. package/dist/cjs/api/meetings.js +2 -0
  15. package/dist/cjs/api/notes.js +2 -0
  16. package/dist/cjs/api/permissions.js +2 -0
  17. package/dist/cjs/api/portals.js +2 -0
  18. package/dist/cjs/api/programRequirements.js +2 -0
  19. package/dist/cjs/api/programs.js +2 -0
  20. package/dist/cjs/api/search.js +2 -0
  21. package/dist/cjs/api/serialized.js +6 -0
  22. package/dist/cjs/api/students.js +2 -0
  23. package/dist/cjs/api/teams.js +2 -0
  24. package/dist/cjs/api/tickets.js +2 -0
  25. package/dist/cjs/api/users.js +2 -0
  26. package/dist/cjs/api/widgets.js +2 -0
  27. package/dist/cjs/index.js +1 -0
  28. package/dist/esm/api/account.js +1 -0
  29. package/dist/esm/api/applications.js +1 -0
  30. package/dist/esm/api/audit.js +1 -0
  31. package/dist/esm/api/auth.js +1 -0
  32. package/dist/esm/api/common.js +4 -0
  33. package/dist/esm/api/communications.js +1 -0
  34. package/dist/esm/api/courses.js +1 -0
  35. package/dist/esm/api/crm.js +1 -0
  36. package/dist/esm/api/documentThreads.js +1 -0
  37. package/dist/esm/api/documentations.js +1 -0
  38. package/dist/esm/api/events.js +1 -0
  39. package/dist/esm/api/index.js +25 -0
  40. package/dist/esm/api/interviews.js +1 -0
  41. package/dist/esm/api/meetings.js +1 -0
  42. package/dist/esm/api/notes.js +1 -0
  43. package/dist/esm/api/permissions.js +1 -0
  44. package/dist/esm/api/portals.js +1 -0
  45. package/dist/esm/api/programRequirements.js +1 -0
  46. package/dist/esm/api/programs.js +1 -0
  47. package/dist/esm/api/search.js +1 -0
  48. package/dist/esm/api/serialized.js +5 -0
  49. package/dist/esm/api/students.js +1 -0
  50. package/dist/esm/api/teams.js +1 -0
  51. package/dist/esm/api/tickets.js +1 -0
  52. package/dist/esm/api/users.js +1 -0
  53. package/dist/esm/api/widgets.js +1 -0
  54. package/dist/esm/index.js +1 -0
  55. package/dist/types/api/account.d.ts +48 -0
  56. package/dist/types/api/applications.d.ts +64 -0
  57. package/dist/types/api/audit.d.ts +4 -0
  58. package/dist/types/api/auth.d.ts +23 -0
  59. package/dist/types/api/common.d.ts +30 -0
  60. package/dist/types/api/communications.d.ts +18 -0
  61. package/dist/types/api/courses.d.ts +27 -0
  62. package/dist/types/api/crm.d.ts +107 -0
  63. package/dist/types/api/documentThreads.d.ts +68 -0
  64. package/dist/types/api/documentations.d.ts +44 -0
  65. package/dist/types/api/events.d.ts +35 -0
  66. package/dist/types/api/index.d.ts +25 -0
  67. package/dist/types/api/interviews.d.ts +47 -0
  68. package/dist/types/api/meetings.d.ts +31 -0
  69. package/dist/types/api/notes.d.ts +6 -0
  70. package/dist/types/api/permissions.d.ts +6 -0
  71. package/dist/types/api/portals.d.ts +23 -0
  72. package/dist/types/api/programRequirements.d.ts +29 -0
  73. package/dist/types/api/programs.d.ts +123 -0
  74. package/dist/types/api/search.d.ts +26 -0
  75. package/dist/types/api/serialized.d.ts +130 -0
  76. package/dist/types/api/students.d.ts +42 -0
  77. package/dist/types/api/teams.d.ts +66 -0
  78. package/dist/types/api/tickets.d.ts +26 -0
  79. package/dist/types/api/users.d.ts +51 -0
  80. package/dist/types/api/widgets.d.ts +29 -0
  81. package/dist/types/index.d.ts +1 -0
  82. package/dist/umd/index.js +1 -1
  83. package/package.json +1 -1
@@ -0,0 +1,66 @@
1
+ import type { ApiResponse } from './common';
2
+ import type { IUserWithId, IStudentResponse } from './serialized';
3
+ /** Agent–student distribution item used in statistics */
4
+ export interface AgentStudentDistributionItem {
5
+ agent_id?: string;
6
+ firstname?: string;
7
+ lastname?: string;
8
+ studentCount?: number;
9
+ }
10
+ /** Statistics overview payload */
11
+ export interface StatisticsOverviewData {
12
+ documents?: unknown;
13
+ agents_data?: unknown[];
14
+ editors_data?: unknown[];
15
+ students_years_pair?: unknown[];
16
+ students_creation_dates?: unknown;
17
+ }
18
+ /** Statistics KPI payload */
19
+ export interface StatisticsKPIData {
20
+ finished_docs?: unknown[];
21
+ }
22
+ /** Statistics response-time payload */
23
+ export interface StatisticsResponseTimeData {
24
+ agents_data?: unknown[];
25
+ editors_data?: unknown[];
26
+ studentAvgResponseTime?: unknown[];
27
+ }
28
+ /** Tasks overview payload */
29
+ export interface TasksOverviewData {
30
+ noAgentsStudents?: number;
31
+ noEditorsStudents?: number;
32
+ noTrainerInInterviewsStudents?: number;
33
+ noEssayWritersEssays?: number;
34
+ }
35
+ /** GET /api/teams */
36
+ export type GetTeamMembersResponse = ApiResponse<IUserWithId[]>;
37
+ /** GET /api/teams/archiv/:TaiGerStaffId */
38
+ export type GetArchivStudentsResponse = ApiResponse<IStudentResponse[]>;
39
+ /** GET /api/teams/statistics/overview */
40
+ export type GetStatisticsOverviewResponse = ApiResponse<StatisticsOverviewData>;
41
+ /**
42
+ * GET /api/teams/statistics/agents
43
+ * Non-standard: returns agentStudentDistribution at top level
44
+ */
45
+ export interface GetStatisticsAgentsResponse {
46
+ success: boolean;
47
+ agentStudentDistribution?: AgentStudentDistributionItem[];
48
+ }
49
+ /** GET /api/teams/statistics */
50
+ export type GetStatisticsV2Response = ApiResponse<unknown>;
51
+ /** GET /api/teams/statistics/kpi */
52
+ export type GetStatisticsKPIResponse = ApiResponse<StatisticsKPIData>;
53
+ /** GET /api/teams/statistics/response-time */
54
+ export type GetStatisticsResponseTimeResponse = ApiResponse<StatisticsResponseTimeData>;
55
+ /** GET /api/teams/tasks-overview */
56
+ export type GetTasksOverviewResponse = ApiResponse<TasksOverviewData>;
57
+ /** GET /api/teams/is-manager */
58
+ export type GetIsManagerResponse = ApiResponse<{
59
+ isManager: boolean;
60
+ }>;
61
+ /** GET /api/agents/profile/:agent_id */
62
+ export type GetAgentProfileResponse = ApiResponse<IUserWithId>;
63
+ /** GET /api/teams/response-interval/:studentId */
64
+ export type GetResponseIntervalByStudentResponse = ApiResponse<IStudentResponse>;
65
+ /** GET /api/essay-writers */
66
+ export type GetEssayWritersTeamsResponse = ApiResponse<IUserWithId[]>;
@@ -0,0 +1,26 @@
1
+ import type { ApiResponse, SuccessResponse } from './common';
2
+ import type { ITicketWithId, IComplaintWithId } from './serialized';
3
+ /** GET /api/tickets */
4
+ export type GetProgramTicketsResponse = ApiResponse<ITicketWithId[]>;
5
+ /** GET /api/tickets?type=&program_id= (single ticket) */
6
+ export type GetProgramTicketResponse = ApiResponse<ITicketWithId[]>;
7
+ /** POST /api/tickets/ */
8
+ export type CreateTicketResponse = ApiResponse<ITicketWithId>;
9
+ /** PUT /api/tickets/:ticket_id */
10
+ export type UpdateTicketResponse = ApiResponse<ITicketWithId>;
11
+ /** DELETE /api/tickets/:ticket_id */
12
+ export type DeleteTicketResponse = SuccessResponse;
13
+ /** GET /api/complaints */
14
+ export type GetComplaintsResponse = ApiResponse<IComplaintWithId[]>;
15
+ /** GET /api/complaints/:ticketId */
16
+ export type GetComplaintResponse = ApiResponse<IComplaintWithId>;
17
+ /** POST /api/complaints/ */
18
+ export type CreateComplaintResponse = ApiResponse<IComplaintWithId>;
19
+ /** PUT /api/complaints/:ticketId */
20
+ export type UpdateComplaintResponse = ApiResponse<IComplaintWithId>;
21
+ /** POST /api/complaints/new-message/:ticketId/:studentId */
22
+ export type PostMessageInComplaintResponse = ApiResponse<IComplaintWithId>;
23
+ /** DELETE /api/complaints/:ticketId/:message_id */
24
+ export type DeleteMessageInComplaintResponse = SuccessResponse;
25
+ /** DELETE /api/complaints/:ticketId */
26
+ export type DeleteComplaintResponse = SuccessResponse;
@@ -0,0 +1,51 @@
1
+ import type { ApiResponse, SuccessResponse } from './common';
2
+ import type { IUserWithId } from './serialized';
3
+ /** Shape of the users count summary returned by GET /api/users/count */
4
+ export interface UsersCountData {
5
+ totalUsers?: number;
6
+ studentCount?: number;
7
+ agentCount?: number;
8
+ editorCount?: number;
9
+ externalCount?: number;
10
+ adminCount?: number;
11
+ guestCount?: number;
12
+ }
13
+ /** GET /api/users/count */
14
+ export interface GetUsersCountResponse extends UsersCountData {
15
+ success?: boolean;
16
+ [key: string]: unknown;
17
+ }
18
+ /** A single metric breakdown item (e.g. by degree, by language) */
19
+ export interface UsersOverviewMetricItem {
20
+ count: number;
21
+ [key: string]: unknown;
22
+ }
23
+ /** Shape of data returned by GET /api/users/overview */
24
+ export interface UsersOverviewData {
25
+ byTargetDegree?: UsersOverviewMetricItem[];
26
+ byApplicationSemester?: UsersOverviewMetricItem[];
27
+ byTargetField?: UsersOverviewMetricItem[];
28
+ byProgramLanguage?: UsersOverviewMetricItem[];
29
+ byUniversity?: UsersOverviewMetricItem[];
30
+ generatedAt?: Date;
31
+ }
32
+ /** GET /api/users/overview */
33
+ export type GetUsersOverviewResponse = ApiResponse<UsersOverviewData>;
34
+ /** GET /api/users */
35
+ export type GetUsersResponse = ApiResponse<IUserWithId[]>;
36
+ /** GET /api/users/:user_id */
37
+ export type GetUserResponse = ApiResponse<IUserWithId>;
38
+ /** POST /api/users (add user) — returns full user list + new user id */
39
+ export interface AddUserResponse {
40
+ success: boolean;
41
+ data: IUserWithId[];
42
+ newUser: string;
43
+ }
44
+ /** POST /api/users/:id (update user) */
45
+ export type UpdateUserResponse = ApiResponse<IUserWithId>;
46
+ /** DELETE /api/users/:id */
47
+ export type DeleteUserResponse = SuccessResponse;
48
+ /** POST /api/users/archiv/:user_id */
49
+ export type UpdateArchivUserResponse = ApiResponse<IUserWithId[]>;
50
+ /** GET /api/essay-writers */
51
+ export type GetEssayWritersResponse = ApiResponse<IUserWithId[]>;
@@ -0,0 +1,29 @@
1
+ import type { ApiResponse, SuccessResponse } from './common';
2
+ import type { ICourseAnalysis } from '../model/Course';
3
+ /** POST /api/widgets/transcript/engine/v2/:language — returns analysis metadata */
4
+ export type WidgetTranscriptResponse = ApiResponse<ICourseAnalysis>;
5
+ /**
6
+ * GET /api/widgets/transcript/v2/:adminId
7
+ * Non-standard: returns json payload + fileKey alongside success
8
+ */
9
+ export interface WidgetDownloadJsonResponse {
10
+ success: boolean;
11
+ json?: unknown;
12
+ fileKey?: string;
13
+ }
14
+ /** GET /api/widgets/messages/export/:student_id — returns PDF blob (non-JSON) */
15
+ export type WidgetExportPDFResponse = SuccessResponse;
16
+ /** POST /api/taigerai/general — streaming or standard AI response */
17
+ export type TaigerAiResponse = ApiResponse<string>;
18
+ /** GET /api/taigerai/program/:programId */
19
+ export type ProcessProgramListResponse = SuccessResponse;
20
+ /** POST /api/taigerai/cvmlrl */
21
+ export type CvmlrlAiResponse = ApiResponse<string>;
22
+ /** POST /api/taigerai/chat/:studentId */
23
+ export type TaigerChatAssistantResponse = ApiResponse<string>;
24
+ /** POST /api/courses/transcript/v2/:studentId/:language */
25
+ export type TranscriptAnalyserResponse = ApiResponse<ICourseAnalysis>;
26
+ /** GET /api/courses/transcript/v2/:user_id */
27
+ export type AnalyzedFileDownloadResponse = WidgetDownloadJsonResponse;
28
+ /** GET /api/expenses/users/:taiger_user_id */
29
+ export type GetExpenseResponse = ApiResponse<unknown>;
@@ -1 +1,2 @@
1
1
  export * from './model';
2
+ export * from './api';