@iblai/iblai-api 4.14.5-loadtest-ai → 4.14.5-loadtest2-ai
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/index.cjs.js +143 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +143 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +143 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +8 -0
- package/dist/types/models/RatingAverageRecord.d.ts +10 -0
- package/dist/types/models/RatingsOvertime.d.ts +5 -0
- package/dist/types/models/SessionChartPoint.d.ts +4 -0
- package/dist/types/models/SessionsChart.d.ts +5 -0
- package/dist/types/models/TopicDetail.d.ts +8 -0
- package/dist/types/models/TopicDetails.d.ts +5 -0
- package/dist/types/models/TopicsOverview.d.ts +18 -0
- package/dist/types/models/TopicsOverviewMetric.d.ts +21 -0
- package/dist/types/services/AiAnalyticsService.d.ts +159 -13
- package/dist/types/services/AnalyticsService.d.ts +12 -13
- package/package.json +1 -1
- package/sdk_schema.yml +543 -9
- package/src/index.ts +8 -0
- package/src/models/RatingAverageRecord.ts +15 -0
- package/src/models/RatingsOvertime.ts +10 -0
- package/src/models/SessionChartPoint.ts +9 -0
- package/src/models/SessionsChart.ts +10 -0
- package/src/models/TopicDetail.ts +13 -0
- package/src/models/TopicDetails.ts +10 -0
- package/src/models/TopicsOverview.ts +23 -0
- package/src/models/TopicsOverviewMetric.ts +26 -0
- package/src/services/AiAnalyticsService.ts +274 -12
- package/src/services/AnalyticsService.ts +13 -12
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TopicsOverviewMetric } from './TopicsOverviewMetric';
|
|
2
|
+
/**
|
|
3
|
+
* Dashboard KPI overview for topics.
|
|
4
|
+
*/
|
|
5
|
+
export type TopicsOverview = {
|
|
6
|
+
/**
|
|
7
|
+
* Topic metrics including all-time, monthly counts and percentage change
|
|
8
|
+
*/
|
|
9
|
+
topics: TopicsOverviewMetric;
|
|
10
|
+
/**
|
|
11
|
+
* Conversation metrics including all-time, monthly counts and percentage change
|
|
12
|
+
*/
|
|
13
|
+
conversations: TopicsOverviewMetric;
|
|
14
|
+
/**
|
|
15
|
+
* Message metrics including all-time, monthly counts and percentage change
|
|
16
|
+
*/
|
|
17
|
+
messages: TopicsOverviewMetric;
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serializer for individual topic overview metrics.
|
|
3
|
+
*/
|
|
4
|
+
export type TopicsOverviewMetric = {
|
|
5
|
+
/**
|
|
6
|
+
* Total count since the beginning of time
|
|
7
|
+
*/
|
|
8
|
+
all_time_total: number;
|
|
9
|
+
/**
|
|
10
|
+
* Count for current month
|
|
11
|
+
*/
|
|
12
|
+
this_month: number;
|
|
13
|
+
/**
|
|
14
|
+
* Count for previous month
|
|
15
|
+
*/
|
|
16
|
+
last_month: number;
|
|
17
|
+
/**
|
|
18
|
+
* Percentage change from last month to this month
|
|
19
|
+
*/
|
|
20
|
+
percentage_change: number;
|
|
21
|
+
};
|
|
@@ -54,7 +54,9 @@ import type { PerLearnerTimeSpentInCourseTree } from '../models/PerLearnerTimeSp
|
|
|
54
54
|
import type { PerlearnerUserList } from '../models/PerlearnerUserList';
|
|
55
55
|
import type { PieChartData } from '../models/PieChartData';
|
|
56
56
|
import type { RatingRecord } from '../models/RatingRecord';
|
|
57
|
+
import type { RatingsOvertime } from '../models/RatingsOvertime';
|
|
57
58
|
import type { SentimentSummary } from '../models/SentimentSummary';
|
|
59
|
+
import type { SessionsChart } from '../models/SessionsChart';
|
|
58
60
|
import type { StudentChatMessage } from '../models/StudentChatMessage';
|
|
59
61
|
import type { TenantMentorTraces } from '../models/TenantMentorTraces';
|
|
60
62
|
import type { TimeDetail } from '../models/TimeDetail';
|
|
@@ -63,7 +65,9 @@ import type { TimeSpentPerCourse } from '../models/TimeSpentPerCourse';
|
|
|
63
65
|
import type { TimeSpentPerUserResponse } from '../models/TimeSpentPerUserResponse';
|
|
64
66
|
import type { TimeSpentUpdateRequest } from '../models/TimeSpentUpdateRequest';
|
|
65
67
|
import type { TimeSpentUpdateResponse } from '../models/TimeSpentUpdateResponse';
|
|
68
|
+
import type { TopicDetails } from '../models/TopicDetails';
|
|
66
69
|
import type { TopicRecord } from '../models/TopicRecord';
|
|
70
|
+
import type { TopicsOverview } from '../models/TopicsOverview';
|
|
67
71
|
import type { TopicStatisticsResponse } from '../models/TopicStatisticsResponse';
|
|
68
72
|
import type { TopicSummaryView } from '../models/TopicSummaryView';
|
|
69
73
|
import type { Trace } from '../models/Trace';
|
|
@@ -4336,6 +4340,91 @@ export declare class AiAnalyticsService {
|
|
|
4336
4340
|
org: string;
|
|
4337
4341
|
requestBody: TimeSpentUpdateRequest;
|
|
4338
4342
|
}): CancelablePromise<TimeSpentUpdateResponse>;
|
|
4343
|
+
/**
|
|
4344
|
+
* @returns RatingsOvertime
|
|
4345
|
+
* @throws ApiError
|
|
4346
|
+
*/
|
|
4347
|
+
static analyticsRatingsRetrieve({ dateFilter, endDate, granularity, mentorUniqueId, metric, platformKey, startDate, }: {
|
|
4348
|
+
/**
|
|
4349
|
+
* * `today` - Today only
|
|
4350
|
+
* * `7d` - Last 7 days
|
|
4351
|
+
* * `30d` - Last 30 days
|
|
4352
|
+
* * `90d` - Last 90 days
|
|
4353
|
+
* * `all_time` - All time
|
|
4354
|
+
* * `custom` - Custom date range
|
|
4355
|
+
*/
|
|
4356
|
+
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
4357
|
+
endDate?: string;
|
|
4358
|
+
/**
|
|
4359
|
+
* * `day` - day
|
|
4360
|
+
* * `hour` - hour
|
|
4361
|
+
* * `week` - week
|
|
4362
|
+
* * `month` - month
|
|
4363
|
+
*/
|
|
4364
|
+
granularity?: 'day' | 'hour' | 'week' | 'month';
|
|
4365
|
+
mentorUniqueId?: string;
|
|
4366
|
+
/**
|
|
4367
|
+
* * `ratings` - Ratings over time
|
|
4368
|
+
*/
|
|
4369
|
+
metric?: 'ratings';
|
|
4370
|
+
platformKey?: string;
|
|
4371
|
+
startDate?: string;
|
|
4372
|
+
}): CancelablePromise<RatingsOvertime>;
|
|
4373
|
+
/**
|
|
4374
|
+
* @returns SessionsChart
|
|
4375
|
+
* @throws ApiError
|
|
4376
|
+
*/
|
|
4377
|
+
static analyticsSessionsRetrieve({ dateFilter, endDate, granularity, mentorUniqueId, metric, platformKey, startDate, }: {
|
|
4378
|
+
/**
|
|
4379
|
+
* * `today` - Today only
|
|
4380
|
+
* * `7d` - Last 7 days
|
|
4381
|
+
* * `30d` - Last 30 days
|
|
4382
|
+
* * `90d` - Last 90 days
|
|
4383
|
+
* * `all_time` - All time
|
|
4384
|
+
* * `custom` - Custom date range
|
|
4385
|
+
*/
|
|
4386
|
+
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
4387
|
+
endDate?: string;
|
|
4388
|
+
/**
|
|
4389
|
+
* * `day` - day
|
|
4390
|
+
* * `hour` - hour
|
|
4391
|
+
* * `week` - week
|
|
4392
|
+
* * `month` - month
|
|
4393
|
+
*/
|
|
4394
|
+
granularity?: 'day' | 'hour' | 'week' | 'month';
|
|
4395
|
+
mentorUniqueId?: string;
|
|
4396
|
+
/**
|
|
4397
|
+
* * `sessions` - Sessions over time
|
|
4398
|
+
*/
|
|
4399
|
+
metric?: 'sessions';
|
|
4400
|
+
platformKey?: string;
|
|
4401
|
+
startDate?: string;
|
|
4402
|
+
}): CancelablePromise<SessionsChart>;
|
|
4403
|
+
/**
|
|
4404
|
+
* @returns TopicDetails
|
|
4405
|
+
* @throws ApiError
|
|
4406
|
+
*/
|
|
4407
|
+
static analyticsSessionsDetailsRetrieve({ dateFilter, endDate, limit, mentorUniqueId, page, platformKey, search, startDate, }: {
|
|
4408
|
+
/**
|
|
4409
|
+
* * `today` - Today only
|
|
4410
|
+
* * `7d` - Last 7 days
|
|
4411
|
+
* * `30d` - Last 30 days
|
|
4412
|
+
* * `90d` - Last 90 days
|
|
4413
|
+
* * `all_time` - All time
|
|
4414
|
+
* * `custom` - Custom date range
|
|
4415
|
+
*/
|
|
4416
|
+
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
4417
|
+
endDate?: string;
|
|
4418
|
+
limit?: number;
|
|
4419
|
+
mentorUniqueId?: string;
|
|
4420
|
+
page?: number;
|
|
4421
|
+
platformKey?: string;
|
|
4422
|
+
/**
|
|
4423
|
+
* Search by topic name
|
|
4424
|
+
*/
|
|
4425
|
+
search?: string;
|
|
4426
|
+
startDate?: string;
|
|
4427
|
+
}): CancelablePromise<TopicDetails>;
|
|
4339
4428
|
/**
|
|
4340
4429
|
*
|
|
4341
4430
|
* Time Analytics API - User activity patterns by time of day and day of week.
|
|
@@ -4361,20 +4450,24 @@ export declare class AiAnalyticsService {
|
|
|
4361
4450
|
* @returns AccessTimesHeatmap Access times heatmap data with day/hour patterns
|
|
4362
4451
|
* @throws ApiError
|
|
4363
4452
|
*/
|
|
4364
|
-
static analyticsTimeRetrieve({ dateFilter, endDate, mentorUniqueId, platformKey, startDate, }: {
|
|
4453
|
+
static analyticsTimeRetrieve({ dateFilter, endDate, granularity, mentorUniqueId, platformKey, startDate, }: {
|
|
4365
4454
|
/**
|
|
4366
4455
|
* * `today` - Today only
|
|
4367
|
-
* * `yesterday` - Yesterday only
|
|
4368
4456
|
* * `7d` - Last 7 days
|
|
4369
4457
|
* * `30d` - Last 30 days
|
|
4370
4458
|
* * `90d` - Last 90 days
|
|
4459
|
+
* * `all_time` - All time
|
|
4371
4460
|
* * `custom` - Custom date range
|
|
4372
4461
|
*/
|
|
4373
|
-
dateFilter?: 'today' | '
|
|
4462
|
+
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
4374
4463
|
endDate?: string;
|
|
4375
4464
|
/**
|
|
4376
|
-
*
|
|
4465
|
+
* * `day` - day
|
|
4466
|
+
* * `hour` - hour
|
|
4467
|
+
* * `week` - week
|
|
4468
|
+
* * `month` - month
|
|
4377
4469
|
*/
|
|
4470
|
+
granularity?: 'day' | 'hour' | 'week' | 'month';
|
|
4378
4471
|
mentorUniqueId?: string;
|
|
4379
4472
|
platformKey?: string;
|
|
4380
4473
|
startDate?: string;
|
|
@@ -4426,6 +4519,64 @@ export declare class AiAnalyticsService {
|
|
|
4426
4519
|
*/
|
|
4427
4520
|
url?: string;
|
|
4428
4521
|
}): CancelablePromise<TimeSpentPerUserResponse>;
|
|
4522
|
+
/**
|
|
4523
|
+
* @returns TopicsOverview
|
|
4524
|
+
* @throws ApiError
|
|
4525
|
+
*/
|
|
4526
|
+
static analyticsTopicsRetrieve({ dateFilter, endDate, granularity, mentorUniqueId, metric, platformKey, startDate, }: {
|
|
4527
|
+
/**
|
|
4528
|
+
* * `today` - Today only
|
|
4529
|
+
* * `7d` - Last 7 days
|
|
4530
|
+
* * `30d` - Last 30 days
|
|
4531
|
+
* * `90d` - Last 90 days
|
|
4532
|
+
* * `all_time` - All time
|
|
4533
|
+
* * `custom` - Custom date range
|
|
4534
|
+
*/
|
|
4535
|
+
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
4536
|
+
endDate?: string;
|
|
4537
|
+
/**
|
|
4538
|
+
* * `day` - day
|
|
4539
|
+
* * `hour` - hour
|
|
4540
|
+
* * `week` - week
|
|
4541
|
+
* * `month` - month
|
|
4542
|
+
*/
|
|
4543
|
+
granularity?: 'day' | 'hour' | 'week' | 'month';
|
|
4544
|
+
mentorUniqueId?: string;
|
|
4545
|
+
/**
|
|
4546
|
+
* * `overview` - Overall topic metrics
|
|
4547
|
+
* * `sessions` - Sessions over time
|
|
4548
|
+
* * `ratings` - Ratings over time
|
|
4549
|
+
* * `highlighted` - Highlighted topics
|
|
4550
|
+
*/
|
|
4551
|
+
metric?: 'overview' | 'sessions' | 'ratings' | 'highlighted';
|
|
4552
|
+
platformKey?: string;
|
|
4553
|
+
startDate?: string;
|
|
4554
|
+
}): CancelablePromise<TopicsOverview>;
|
|
4555
|
+
/**
|
|
4556
|
+
* @returns TopicDetails
|
|
4557
|
+
* @throws ApiError
|
|
4558
|
+
*/
|
|
4559
|
+
static analyticsTopicsDetailsRetrieve({ dateFilter, endDate, limit, mentorUniqueId, page, platformKey, search, startDate, }: {
|
|
4560
|
+
/**
|
|
4561
|
+
* * `today` - Today only
|
|
4562
|
+
* * `7d` - Last 7 days
|
|
4563
|
+
* * `30d` - Last 30 days
|
|
4564
|
+
* * `90d` - Last 90 days
|
|
4565
|
+
* * `all_time` - All time
|
|
4566
|
+
* * `custom` - Custom date range
|
|
4567
|
+
*/
|
|
4568
|
+
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
4569
|
+
endDate?: string;
|
|
4570
|
+
limit?: number;
|
|
4571
|
+
mentorUniqueId?: string;
|
|
4572
|
+
page?: number;
|
|
4573
|
+
platformKey?: string;
|
|
4574
|
+
/**
|
|
4575
|
+
* Search by topic name
|
|
4576
|
+
*/
|
|
4577
|
+
search?: string;
|
|
4578
|
+
startDate?: string;
|
|
4579
|
+
}): CancelablePromise<TopicDetails>;
|
|
4429
4580
|
/**
|
|
4430
4581
|
*
|
|
4431
4582
|
* User Analytics API - Comprehensive user activity metrics and trends.
|
|
@@ -4464,20 +4615,18 @@ export declare class AiAnalyticsService {
|
|
|
4464
4615
|
* * `7d` - Last 7 days
|
|
4465
4616
|
* * `30d` - Last 30 days
|
|
4466
4617
|
* * `90d` - Last 90 days
|
|
4618
|
+
* * `all_time` - All time
|
|
4467
4619
|
* * `custom` - Custom date range
|
|
4468
4620
|
*/
|
|
4469
|
-
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'custom';
|
|
4621
|
+
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
4470
4622
|
endDate?: string;
|
|
4471
4623
|
/**
|
|
4472
|
-
* * `hour` - hour
|
|
4473
4624
|
* * `day` - day
|
|
4625
|
+
* * `hour` - hour
|
|
4474
4626
|
* * `week` - week
|
|
4475
4627
|
* * `month` - month
|
|
4476
4628
|
*/
|
|
4477
|
-
granularity?: '
|
|
4478
|
-
/**
|
|
4479
|
-
* Filter by specific mentor unique ID
|
|
4480
|
-
*/
|
|
4629
|
+
granularity?: 'day' | 'hour' | 'week' | 'month';
|
|
4481
4630
|
mentorUniqueId?: string;
|
|
4482
4631
|
platformKey?: string;
|
|
4483
4632
|
startDate?: string;
|
|
@@ -4527,9 +4676,6 @@ export declare class AiAnalyticsService {
|
|
|
4527
4676
|
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
4528
4677
|
endDate?: string;
|
|
4529
4678
|
limit?: number;
|
|
4530
|
-
/**
|
|
4531
|
-
* Filter by specific mentor unique ID
|
|
4532
|
-
*/
|
|
4533
4679
|
mentorUniqueId?: string;
|
|
4534
4680
|
page?: number;
|
|
4535
4681
|
platformKey?: string;
|
|
@@ -354,20 +354,24 @@ export declare class AnalyticsService {
|
|
|
354
354
|
* @returns AccessTimesHeatmap Access times heatmap data with day/hour patterns
|
|
355
355
|
* @throws ApiError
|
|
356
356
|
*/
|
|
357
|
-
static analyticsTimeRetrieve({ dateFilter, endDate, mentorUniqueId, platformKey, startDate, }: {
|
|
357
|
+
static analyticsTimeRetrieve({ dateFilter, endDate, granularity, mentorUniqueId, platformKey, startDate, }: {
|
|
358
358
|
/**
|
|
359
359
|
* * `today` - Today only
|
|
360
|
-
* * `yesterday` - Yesterday only
|
|
361
360
|
* * `7d` - Last 7 days
|
|
362
361
|
* * `30d` - Last 30 days
|
|
363
362
|
* * `90d` - Last 90 days
|
|
363
|
+
* * `all_time` - All time
|
|
364
364
|
* * `custom` - Custom date range
|
|
365
365
|
*/
|
|
366
|
-
dateFilter?: 'today' | '
|
|
366
|
+
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
367
367
|
endDate?: string;
|
|
368
368
|
/**
|
|
369
|
-
*
|
|
369
|
+
* * `day` - day
|
|
370
|
+
* * `hour` - hour
|
|
371
|
+
* * `week` - week
|
|
372
|
+
* * `month` - month
|
|
370
373
|
*/
|
|
374
|
+
granularity?: 'day' | 'hour' | 'week' | 'month';
|
|
371
375
|
mentorUniqueId?: string;
|
|
372
376
|
platformKey?: string;
|
|
373
377
|
startDate?: string;
|
|
@@ -410,20 +414,18 @@ export declare class AnalyticsService {
|
|
|
410
414
|
* * `7d` - Last 7 days
|
|
411
415
|
* * `30d` - Last 30 days
|
|
412
416
|
* * `90d` - Last 90 days
|
|
417
|
+
* * `all_time` - All time
|
|
413
418
|
* * `custom` - Custom date range
|
|
414
419
|
*/
|
|
415
|
-
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'custom';
|
|
420
|
+
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
416
421
|
endDate?: string;
|
|
417
422
|
/**
|
|
418
|
-
* * `hour` - hour
|
|
419
423
|
* * `day` - day
|
|
424
|
+
* * `hour` - hour
|
|
420
425
|
* * `week` - week
|
|
421
426
|
* * `month` - month
|
|
422
427
|
*/
|
|
423
|
-
granularity?: '
|
|
424
|
-
/**
|
|
425
|
-
* Filter by specific mentor unique ID
|
|
426
|
-
*/
|
|
428
|
+
granularity?: 'day' | 'hour' | 'week' | 'month';
|
|
427
429
|
mentorUniqueId?: string;
|
|
428
430
|
platformKey?: string;
|
|
429
431
|
startDate?: string;
|
|
@@ -473,9 +475,6 @@ export declare class AnalyticsService {
|
|
|
473
475
|
dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
|
|
474
476
|
endDate?: string;
|
|
475
477
|
limit?: number;
|
|
476
|
-
/**
|
|
477
|
-
* Filter by specific mentor unique ID
|
|
478
|
-
*/
|
|
479
478
|
mentorUniqueId?: string;
|
|
480
479
|
page?: number;
|
|
481
480
|
platformKey?: string;
|