@iblai/iblai-api 3.48.3-ai-plus → 3.48.4-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 +5918 -6748
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5919 -6747
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +5918 -6748
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -40
- package/dist/types/models/{VoiceProviderEnum.d.ts → ProviderEnum.d.ts} +1 -1
- package/dist/types/models/Voice.d.ts +2 -2
- package/dist/types/services/AiAccountService.d.ts +66 -41
- package/dist/types/services/AiAnalyticsService.d.ts +2021 -923
- package/dist/types/services/AiIndexService.d.ts +78 -71
- package/dist/types/services/AiMarketingService.d.ts +17 -13
- package/dist/types/services/AiMediaService.d.ts +45 -41
- package/dist/types/services/AiMentorService.d.ts +1545 -1037
- package/dist/types/services/AiPromptService.d.ts +342 -228
- package/dist/types/services/AnalyticsService.d.ts +42 -13
- package/dist/types/services/AudienceService.d.ts +345 -149
- package/dist/types/services/CareerService.d.ts +117 -90
- package/dist/types/services/CatalogService.d.ts +3735 -1072
- package/dist/types/services/CoreService.d.ts +441 -215
- package/dist/types/services/CredentialsService.d.ts +173 -138
- package/dist/types/services/DepartmentsService.d.ts +53 -16
- package/dist/types/services/EngagementService.d.ts +459 -179
- package/dist/types/services/FeaturesService.d.ts +16 -7
- package/dist/types/services/FinanceService.d.ts +49 -20
- package/dist/types/services/MediaResourcesService.d.ts +243 -67
- package/dist/types/services/NotificationBuilderService.d.ts +31 -17
- package/dist/types/services/NotificationService.d.ts +56 -49
- package/dist/types/services/OrgsService.d.ts +106 -77
- package/dist/types/services/OverviewService.d.ts +154 -55
- package/dist/types/services/PerformanceService.d.ts +132 -56
- package/dist/types/services/PerlearnerService.d.ts +431 -217
- package/dist/types/services/PlatformService.d.ts +221 -116
- package/dist/types/services/ProviderAssociationService.d.ts +3 -2
- package/dist/types/services/ProvidersService.d.ts +27 -18
- package/dist/types/services/ProvisionService.d.ts +3 -2
- package/dist/types/services/RecommendationsService.d.ts +3 -3
- package/dist/types/services/ReportsService.d.ts +22 -16
- package/dist/types/services/RolesService.d.ts +8 -6
- package/dist/types/services/SearchService.d.ts +730 -195
- package/dist/types/services/ServiceService.d.ts +33 -29
- package/dist/types/services/SkillsService.d.ts +40 -32
- package/dist/types/services/UserGroupsService.d.ts +53 -16
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +1 -40
- package/src/models/{VoiceProviderEnum.ts → ProviderEnum.ts} +1 -1
- package/src/models/Voice.ts +2 -2
- package/src/services/AiAccountService.ts +81 -55
- package/src/services/AiAnalyticsService.ts +2422 -1181
- package/src/services/AiIndexService.ts +112 -87
- package/src/services/AiMarketingService.ts +25 -16
- package/src/services/AiMediaService.ts +67 -51
- package/src/services/AiMentorService.ts +2105 -1265
- package/src/services/AiPromptService.ts +484 -275
- package/src/services/AnalyticsService.ts +45 -16
- package/src/services/AudienceService.ts +380 -184
- package/src/services/CareerService.ts +144 -117
- package/src/services/CatalogService.ts +3995 -1332
- package/src/services/CoreService.ts +523 -291
- package/src/services/CredentialsService.ts +253 -173
- package/src/services/DepartmentsService.ts +56 -19
- package/src/services/EngagementService.ts +528 -236
- package/src/services/FeaturesService.ts +19 -10
- package/src/services/FinanceService.ts +54 -25
- package/src/services/MediaResourcesService.ts +251 -75
- package/src/services/NotificationBuilderService.ts +36 -22
- package/src/services/NotificationService.ts +73 -61
- package/src/services/OrgsService.ts +135 -106
- package/src/services/OverviewService.ts +172 -73
- package/src/services/PerformanceService.ts +153 -77
- package/src/services/PerlearnerService.ts +591 -279
- package/src/services/PlatformService.ts +278 -157
- package/src/services/ProviderAssociationService.ts +4 -3
- package/src/services/ProvidersService.ts +36 -27
- package/src/services/ProvisionService.ts +4 -3
- package/src/services/RecommendationsService.ts +5 -4
- package/src/services/ReportsService.ts +28 -22
- package/src/services/RolesService.ts +10 -8
- package/src/services/SearchService.ts +771 -236
- package/src/services/ServiceService.ts +49 -39
- package/src/services/SkillsService.ts +56 -44
- package/src/services/UserGroupsService.ts +56 -19
- package/dist/types/models/Bot.d.ts +0 -15
- package/dist/types/models/BotCommand.d.ts +0 -6
- package/dist/types/models/BotCreate.d.ts +0 -12
- package/dist/types/models/DataSet.d.ts +0 -21
- package/dist/types/models/DataSetCreate.d.ts +0 -12
- package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
- package/dist/types/models/DiscordConfig.d.ts +0 -7
- package/dist/types/models/DiscordUserConfig.d.ts +0 -10
- package/dist/types/models/DiscordWebhook.d.ts +0 -6
- package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
- package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
- package/dist/types/models/PatchedBotCommand.d.ts +0 -6
- package/dist/types/models/PatchedBotCreate.d.ts +0 -12
- package/dist/types/models/PatchedDataSet.d.ts +0 -21
- package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
- package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
- package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
- package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
- package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
- package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
- package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
- package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
- package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
- package/dist/types/models/Provider05cEnum.d.ts +0 -14
- package/dist/types/models/Provider63aEnum.d.ts +0 -6
- package/dist/types/models/SlackConfig.d.ts +0 -8
- package/dist/types/models/SlackUserConfig.d.ts +0 -17
- package/dist/types/models/SlackWebhook.d.ts +0 -6
- package/dist/types/models/TeamsConfig.d.ts +0 -7
- package/dist/types/models/TeamsWebhook.d.ts +0 -17
- package/dist/types/models/Training.d.ts +0 -41
- package/dist/types/models/TrainingCreate.d.ts +0 -31
- package/dist/types/models/WebexConfig.d.ts +0 -10
- package/dist/types/models/WebexWebhook.d.ts +0 -4
- package/dist/types/models/WhatAppWebHook.d.ts +0 -3
- package/dist/types/models/WhatsappConfig.d.ts +0 -11
- package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
- package/dist/types/services/AiBotService.d.ts +0 -486
- package/dist/types/services/AiFinetuningService.d.ts +0 -162
- package/src/models/Bot.ts +0 -20
- package/src/models/BotCommand.ts +0 -11
- package/src/models/BotCreate.ts +0 -17
- package/src/models/DataSet.ts +0 -26
- package/src/models/DataSetCreate.ts +0 -17
- package/src/models/DataSetStatusEnum.ts +0 -16
- package/src/models/DiscordConfig.ts +0 -12
- package/src/models/DiscordUserConfig.ts +0 -15
- package/src/models/DiscordWebhook.ts +0 -11
- package/src/models/PaginatedDataSetList.ts +0 -12
- package/src/models/PaginatedTrainingList.ts +0 -12
- package/src/models/PatchedBotCommand.ts +0 -11
- package/src/models/PatchedBotCreate.ts +0 -17
- package/src/models/PatchedDataSet.ts +0 -26
- package/src/models/PatchedDiscordConfig.ts +0 -12
- package/src/models/PatchedDiscordUserConfig.ts +0 -15
- package/src/models/PatchedSlackConfig.ts +0 -13
- package/src/models/PatchedSlackUserConfig.ts +0 -22
- package/src/models/PatchedTeamsConfig.ts +0 -12
- package/src/models/PatchedTrainingCreate.ts +0 -36
- package/src/models/PatchedWebexConfig.ts +0 -15
- package/src/models/PatchedWhatsappConfig.ts +0 -16
- package/src/models/PatchedWhatsappUserConfig.ts +0 -15
- package/src/models/Provider05cEnum.ts +0 -18
- package/src/models/Provider63aEnum.ts +0 -10
- package/src/models/SlackConfig.ts +0 -13
- package/src/models/SlackUserConfig.ts +0 -22
- package/src/models/SlackWebhook.ts +0 -11
- package/src/models/TeamsConfig.ts +0 -12
- package/src/models/TeamsWebhook.ts +0 -22
- package/src/models/Training.ts +0 -46
- package/src/models/TrainingCreate.ts +0 -36
- package/src/models/WebexConfig.ts +0 -15
- package/src/models/WebexWebhook.ts +0 -9
- package/src/models/WhatAppWebHook.ts +0 -8
- package/src/models/WhatsappConfig.ts +0 -16
- package/src/models/WhatsappUserConfig.ts +0 -15
- package/src/services/AiBotService.ts +0 -1174
- package/src/services/AiFinetuningService.ts +0 -402
|
@@ -17,21 +17,31 @@ export class NotificationBuilderService {
|
|
|
17
17
|
/**
|
|
18
18
|
* Get build recipients
|
|
19
19
|
* Get paginated list of recipients for a notification build
|
|
20
|
-
* @param id
|
|
21
|
-
* @param platformKey
|
|
22
|
-
* @param page Page number
|
|
23
|
-
* @param pageSize Number of items per page
|
|
24
|
-
* @param search Search recipients by username or email
|
|
25
20
|
* @returns Recipient
|
|
26
21
|
* @throws ApiError
|
|
27
22
|
*/
|
|
28
|
-
public static notificationV1OrgsNotificationBuilderRecipientsList(
|
|
23
|
+
public static notificationV1OrgsNotificationBuilderRecipientsList({
|
|
24
|
+
id,
|
|
25
|
+
platformKey,
|
|
26
|
+
page,
|
|
27
|
+
pageSize,
|
|
28
|
+
search,
|
|
29
|
+
}: {
|
|
29
30
|
id: string,
|
|
30
31
|
platformKey: string,
|
|
32
|
+
/**
|
|
33
|
+
* Page number
|
|
34
|
+
*/
|
|
31
35
|
page?: number,
|
|
36
|
+
/**
|
|
37
|
+
* Number of items per page
|
|
38
|
+
*/
|
|
32
39
|
pageSize?: number,
|
|
40
|
+
/**
|
|
41
|
+
* Search recipients by username or email
|
|
42
|
+
*/
|
|
33
43
|
search?: string,
|
|
34
|
-
): CancelablePromise<Array<Recipient>> {
|
|
44
|
+
}): CancelablePromise<Array<Recipient>> {
|
|
35
45
|
return __request(OpenAPI, {
|
|
36
46
|
method: 'GET',
|
|
37
47
|
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/{id}/recipients/',
|
|
@@ -49,13 +59,14 @@ export class NotificationBuilderService {
|
|
|
49
59
|
/**
|
|
50
60
|
* Get notification context data
|
|
51
61
|
* Get all context data needed for notification building including templates, channels, and platforms
|
|
52
|
-
* @param platformKey
|
|
53
62
|
* @returns ContextResponse
|
|
54
63
|
* @throws ApiError
|
|
55
64
|
*/
|
|
56
|
-
public static notificationV1OrgsNotificationBuilderContextRetrieve(
|
|
65
|
+
public static notificationV1OrgsNotificationBuilderContextRetrieve({
|
|
66
|
+
platformKey,
|
|
67
|
+
}: {
|
|
57
68
|
platformKey: string,
|
|
58
|
-
): CancelablePromise<ContextResponse> {
|
|
69
|
+
}): CancelablePromise<ContextResponse> {
|
|
59
70
|
return __request(OpenAPI, {
|
|
60
71
|
method: 'GET',
|
|
61
72
|
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/context/',
|
|
@@ -67,15 +78,16 @@ export class NotificationBuilderService {
|
|
|
67
78
|
/**
|
|
68
79
|
* Preview notification
|
|
69
80
|
* Preview notification recipients and get build ID for sending
|
|
70
|
-
* @param platformKey
|
|
71
|
-
* @param requestBody
|
|
72
81
|
* @returns PreviewResponse
|
|
73
82
|
* @throws ApiError
|
|
74
83
|
*/
|
|
75
|
-
public static notificationV1OrgsNotificationBuilderPreviewCreate(
|
|
84
|
+
public static notificationV1OrgsNotificationBuilderPreviewCreate({
|
|
85
|
+
platformKey,
|
|
86
|
+
requestBody,
|
|
87
|
+
}: {
|
|
76
88
|
platformKey: string,
|
|
77
89
|
requestBody: NotificationPreview,
|
|
78
|
-
): CancelablePromise<PreviewResponse> {
|
|
90
|
+
}): CancelablePromise<PreviewResponse> {
|
|
79
91
|
return __request(OpenAPI, {
|
|
80
92
|
method: 'POST',
|
|
81
93
|
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/preview/',
|
|
@@ -89,15 +101,16 @@ export class NotificationBuilderService {
|
|
|
89
101
|
/**
|
|
90
102
|
* Send notification
|
|
91
103
|
* Send notifications to all recipients in a build
|
|
92
|
-
* @param platformKey
|
|
93
|
-
* @param requestBody
|
|
94
104
|
* @returns SendResponse
|
|
95
105
|
* @throws ApiError
|
|
96
106
|
*/
|
|
97
|
-
public static notificationV1OrgsNotificationBuilderSendCreate(
|
|
107
|
+
public static notificationV1OrgsNotificationBuilderSendCreate({
|
|
108
|
+
platformKey,
|
|
109
|
+
requestBody,
|
|
110
|
+
}: {
|
|
98
111
|
platformKey: string,
|
|
99
112
|
requestBody: SendNotification,
|
|
100
|
-
): CancelablePromise<SendResponse> {
|
|
113
|
+
}): CancelablePromise<SendResponse> {
|
|
101
114
|
return __request(OpenAPI, {
|
|
102
115
|
method: 'POST',
|
|
103
116
|
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/send/',
|
|
@@ -111,15 +124,16 @@ export class NotificationBuilderService {
|
|
|
111
124
|
/**
|
|
112
125
|
* Validate notification source
|
|
113
126
|
* Validate a single notification source (email, username, platform, csv)
|
|
114
|
-
* @param platformKey
|
|
115
|
-
* @param requestBody
|
|
116
127
|
* @returns ValidateSourceResponse
|
|
117
128
|
* @throws ApiError
|
|
118
129
|
*/
|
|
119
|
-
public static notificationV1OrgsNotificationBuilderValidateSourceCreate(
|
|
130
|
+
public static notificationV1OrgsNotificationBuilderValidateSourceCreate({
|
|
131
|
+
platformKey,
|
|
132
|
+
requestBody,
|
|
133
|
+
}: {
|
|
120
134
|
platformKey: string,
|
|
121
135
|
requestBody: NotificationSource,
|
|
122
|
-
): CancelablePromise<ValidateSourceResponse> {
|
|
136
|
+
}): CancelablePromise<ValidateSourceResponse> {
|
|
123
137
|
return __request(OpenAPI, {
|
|
124
138
|
method: 'POST',
|
|
125
139
|
url: '/api/notification/v1/orgs/{platform_key}/notification-builder/validate_source/',
|
|
@@ -15,13 +15,14 @@ import { request as __request } from '../core/request';
|
|
|
15
15
|
export class NotificationService {
|
|
16
16
|
/**
|
|
17
17
|
* Unsubscribe from a campaign using a hash
|
|
18
|
-
* @param unsubscribeHash
|
|
19
18
|
* @returns any
|
|
20
19
|
* @throws ApiError
|
|
21
20
|
*/
|
|
22
|
-
public static notificationV1CampaignsUnsubscribeRetrieve(
|
|
21
|
+
public static notificationV1CampaignsUnsubscribeRetrieve({
|
|
22
|
+
unsubscribeHash,
|
|
23
|
+
}: {
|
|
23
24
|
unsubscribeHash: string,
|
|
24
|
-
): CancelablePromise<{
|
|
25
|
+
}): CancelablePromise<{
|
|
25
26
|
success?: boolean;
|
|
26
27
|
message?: string;
|
|
27
28
|
}> {
|
|
@@ -35,23 +36,24 @@ export class NotificationService {
|
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* Get notifications for a user
|
|
38
|
-
* @param org
|
|
39
|
-
* @param channel
|
|
40
|
-
* @param endDate
|
|
41
|
-
* @param excludeChannel
|
|
42
|
-
* @param startDate
|
|
43
|
-
* @param status
|
|
44
39
|
* @returns Notification
|
|
45
40
|
* @throws ApiError
|
|
46
41
|
*/
|
|
47
|
-
public static notificationV1OrgsNotificationsRetrieve(
|
|
42
|
+
public static notificationV1OrgsNotificationsRetrieve({
|
|
43
|
+
org,
|
|
44
|
+
channel,
|
|
45
|
+
endDate,
|
|
46
|
+
excludeChannel,
|
|
47
|
+
startDate,
|
|
48
|
+
status,
|
|
49
|
+
}: {
|
|
48
50
|
org: string,
|
|
49
51
|
channel?: string,
|
|
50
52
|
endDate?: string,
|
|
51
53
|
excludeChannel?: string,
|
|
52
54
|
startDate?: string,
|
|
53
55
|
status?: string,
|
|
54
|
-
): CancelablePromise<Notification> {
|
|
56
|
+
}): CancelablePromise<Notification> {
|
|
55
57
|
return __request(OpenAPI, {
|
|
56
58
|
method: 'GET',
|
|
57
59
|
url: '/api/notification/v1/orgs/{org}/notifications/',
|
|
@@ -69,15 +71,16 @@ export class NotificationService {
|
|
|
69
71
|
}
|
|
70
72
|
/**
|
|
71
73
|
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
72
|
-
* @param org
|
|
73
|
-
* @param requestBody
|
|
74
74
|
* @returns Notification
|
|
75
75
|
* @throws ApiError
|
|
76
76
|
*/
|
|
77
|
-
public static notificationV1OrgsNotificationsUpdate(
|
|
77
|
+
public static notificationV1OrgsNotificationsUpdate({
|
|
78
|
+
org,
|
|
79
|
+
requestBody,
|
|
80
|
+
}: {
|
|
78
81
|
org: string,
|
|
79
82
|
requestBody: Notification,
|
|
80
|
-
): CancelablePromise<Notification> {
|
|
83
|
+
}): CancelablePromise<Notification> {
|
|
81
84
|
return __request(OpenAPI, {
|
|
82
85
|
method: 'PUT',
|
|
83
86
|
url: '/api/notification/v1/orgs/{org}/notifications/',
|
|
@@ -90,15 +93,16 @@ export class NotificationService {
|
|
|
90
93
|
}
|
|
91
94
|
/**
|
|
92
95
|
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
93
|
-
* @param org
|
|
94
|
-
* @param requestBody
|
|
95
96
|
* @returns Notification
|
|
96
97
|
* @throws ApiError
|
|
97
98
|
*/
|
|
98
|
-
public static notificationV1OrgsNotificationsBulkUpdatePartialUpdate(
|
|
99
|
+
public static notificationV1OrgsNotificationsBulkUpdatePartialUpdate({
|
|
100
|
+
org,
|
|
101
|
+
requestBody,
|
|
102
|
+
}: {
|
|
99
103
|
org: string,
|
|
100
104
|
requestBody?: PatchedNotification,
|
|
101
|
-
): CancelablePromise<Notification> {
|
|
105
|
+
}): CancelablePromise<Notification> {
|
|
102
106
|
return __request(OpenAPI, {
|
|
103
107
|
method: 'PATCH',
|
|
104
108
|
url: '/api/notification/v1/orgs/{org}/notifications/bulk-update/',
|
|
@@ -111,17 +115,18 @@ export class NotificationService {
|
|
|
111
115
|
}
|
|
112
116
|
/**
|
|
113
117
|
* Get notifications for a user
|
|
114
|
-
* @param org
|
|
115
|
-
* @param userId
|
|
116
|
-
* @param channel
|
|
117
|
-
* @param endDate
|
|
118
|
-
* @param excludeChannel
|
|
119
|
-
* @param startDate
|
|
120
|
-
* @param status
|
|
121
118
|
* @returns Notification
|
|
122
119
|
* @throws ApiError
|
|
123
120
|
*/
|
|
124
|
-
public static notificationV1OrgsUsersNotificationsRetrieve(
|
|
121
|
+
public static notificationV1OrgsUsersNotificationsRetrieve({
|
|
122
|
+
org,
|
|
123
|
+
userId,
|
|
124
|
+
channel,
|
|
125
|
+
endDate,
|
|
126
|
+
excludeChannel,
|
|
127
|
+
startDate,
|
|
128
|
+
status,
|
|
129
|
+
}: {
|
|
125
130
|
org: string,
|
|
126
131
|
userId: string,
|
|
127
132
|
channel?: string,
|
|
@@ -129,7 +134,7 @@ export class NotificationService {
|
|
|
129
134
|
excludeChannel?: string,
|
|
130
135
|
startDate?: string,
|
|
131
136
|
status?: string,
|
|
132
|
-
): CancelablePromise<Notification> {
|
|
137
|
+
}): CancelablePromise<Notification> {
|
|
133
138
|
return __request(OpenAPI, {
|
|
134
139
|
method: 'GET',
|
|
135
140
|
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications/',
|
|
@@ -148,17 +153,18 @@ export class NotificationService {
|
|
|
148
153
|
}
|
|
149
154
|
/**
|
|
150
155
|
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
151
|
-
* @param org
|
|
152
|
-
* @param userId
|
|
153
|
-
* @param requestBody
|
|
154
156
|
* @returns Notification
|
|
155
157
|
* @throws ApiError
|
|
156
158
|
*/
|
|
157
|
-
public static notificationV1OrgsUsersNotificationsUpdate(
|
|
159
|
+
public static notificationV1OrgsUsersNotificationsUpdate({
|
|
160
|
+
org,
|
|
161
|
+
userId,
|
|
162
|
+
requestBody,
|
|
163
|
+
}: {
|
|
158
164
|
org: string,
|
|
159
165
|
userId: string,
|
|
160
166
|
requestBody: Notification,
|
|
161
|
-
): CancelablePromise<Notification> {
|
|
167
|
+
}): CancelablePromise<Notification> {
|
|
162
168
|
return __request(OpenAPI, {
|
|
163
169
|
method: 'PUT',
|
|
164
170
|
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications/',
|
|
@@ -172,19 +178,20 @@ export class NotificationService {
|
|
|
172
178
|
}
|
|
173
179
|
/**
|
|
174
180
|
* Get notifications count for a user
|
|
175
|
-
* @param org
|
|
176
|
-
* @param userId
|
|
177
|
-
* @param channel
|
|
178
|
-
* @param status
|
|
179
181
|
* @returns NotificationCount
|
|
180
182
|
* @throws ApiError
|
|
181
183
|
*/
|
|
182
|
-
public static notificationV1OrgsUsersNotificationsCountRetrieve(
|
|
184
|
+
public static notificationV1OrgsUsersNotificationsCountRetrieve({
|
|
185
|
+
org,
|
|
186
|
+
userId,
|
|
187
|
+
channel,
|
|
188
|
+
status,
|
|
189
|
+
}: {
|
|
183
190
|
org: string,
|
|
184
191
|
userId: string,
|
|
185
192
|
channel?: string,
|
|
186
193
|
status?: string,
|
|
187
|
-
): CancelablePromise<NotificationCount> {
|
|
194
|
+
}): CancelablePromise<NotificationCount> {
|
|
188
195
|
return __request(OpenAPI, {
|
|
189
196
|
method: 'GET',
|
|
190
197
|
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications-count/',
|
|
@@ -200,17 +207,18 @@ export class NotificationService {
|
|
|
200
207
|
}
|
|
201
208
|
/**
|
|
202
209
|
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
203
|
-
* @param notificationId
|
|
204
|
-
* @param org
|
|
205
|
-
* @param userId
|
|
206
210
|
* @returns void
|
|
207
211
|
* @throws ApiError
|
|
208
212
|
*/
|
|
209
|
-
public static notificationV1OrgsUsersNotificationsDestroy(
|
|
213
|
+
public static notificationV1OrgsUsersNotificationsDestroy({
|
|
214
|
+
notificationId,
|
|
215
|
+
org,
|
|
216
|
+
userId,
|
|
217
|
+
}: {
|
|
210
218
|
notificationId: string,
|
|
211
219
|
org: string,
|
|
212
220
|
userId: string,
|
|
213
|
-
): CancelablePromise<void> {
|
|
221
|
+
}): CancelablePromise<void> {
|
|
214
222
|
return __request(OpenAPI, {
|
|
215
223
|
method: 'DELETE',
|
|
216
224
|
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications/{notification_id}/',
|
|
@@ -223,17 +231,18 @@ export class NotificationService {
|
|
|
223
231
|
}
|
|
224
232
|
/**
|
|
225
233
|
* Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
|
|
226
|
-
* @param org
|
|
227
|
-
* @param userId
|
|
228
|
-
* @param requestBody
|
|
229
234
|
* @returns Notification
|
|
230
235
|
* @throws ApiError
|
|
231
236
|
*/
|
|
232
|
-
public static notificationV1OrgsUsersNotificationsBulkUpdatePartialUpdate(
|
|
237
|
+
public static notificationV1OrgsUsersNotificationsBulkUpdatePartialUpdate({
|
|
238
|
+
org,
|
|
239
|
+
userId,
|
|
240
|
+
requestBody,
|
|
241
|
+
}: {
|
|
233
242
|
org: string,
|
|
234
243
|
userId: string,
|
|
235
244
|
requestBody?: PatchedNotification,
|
|
236
|
-
): CancelablePromise<Notification> {
|
|
245
|
+
}): CancelablePromise<Notification> {
|
|
237
246
|
return __request(OpenAPI, {
|
|
238
247
|
method: 'PATCH',
|
|
239
248
|
url: '/api/notification/v1/orgs/{org}/users/{user_id}/notifications/bulk-update/',
|
|
@@ -247,15 +256,16 @@ export class NotificationService {
|
|
|
247
256
|
}
|
|
248
257
|
/**
|
|
249
258
|
* Re-enable campaigns for a user
|
|
250
|
-
* @param platformKey
|
|
251
|
-
* @param requestBody
|
|
252
259
|
* @returns any
|
|
253
260
|
* @throws ApiError
|
|
254
261
|
*/
|
|
255
|
-
public static notificationV1OrgsCampaignsEnableCreate(
|
|
262
|
+
public static notificationV1OrgsCampaignsEnableCreate({
|
|
263
|
+
platformKey,
|
|
264
|
+
requestBody,
|
|
265
|
+
}: {
|
|
256
266
|
platformKey: string,
|
|
257
267
|
requestBody?: CampaignEnablement,
|
|
258
|
-
): CancelablePromise<{
|
|
268
|
+
}): CancelablePromise<{
|
|
259
269
|
success?: boolean;
|
|
260
270
|
message?: string;
|
|
261
271
|
}> {
|
|
@@ -271,15 +281,16 @@ export class NotificationService {
|
|
|
271
281
|
}
|
|
272
282
|
/**
|
|
273
283
|
* Exclude a user from specified campaigns
|
|
274
|
-
* @param platformKey
|
|
275
|
-
* @param requestBody
|
|
276
284
|
* @returns any
|
|
277
285
|
* @throws ApiError
|
|
278
286
|
*/
|
|
279
|
-
public static notificationV1OrgsCampaignsExcludeCreate(
|
|
287
|
+
public static notificationV1OrgsCampaignsExcludeCreate({
|
|
288
|
+
platformKey,
|
|
289
|
+
requestBody,
|
|
290
|
+
}: {
|
|
280
291
|
platformKey: string,
|
|
281
292
|
requestBody?: CampaignExclusion,
|
|
282
|
-
): CancelablePromise<{
|
|
293
|
+
}): CancelablePromise<{
|
|
283
294
|
success?: boolean;
|
|
284
295
|
message?: string;
|
|
285
296
|
}> {
|
|
@@ -295,15 +306,16 @@ export class NotificationService {
|
|
|
295
306
|
}
|
|
296
307
|
/**
|
|
297
308
|
* Mark all notifications as read for a user. Optionally provide specific notification IDs.
|
|
298
|
-
* @param platformKey
|
|
299
|
-
* @param requestBody
|
|
300
309
|
* @returns MarkAllReadResponse
|
|
301
310
|
* @throws ApiError
|
|
302
311
|
*/
|
|
303
|
-
public static notificationV1OrgsMarkAllAsReadCreate(
|
|
312
|
+
public static notificationV1OrgsMarkAllAsReadCreate({
|
|
313
|
+
platformKey,
|
|
314
|
+
requestBody,
|
|
315
|
+
}: {
|
|
304
316
|
platformKey: string,
|
|
305
317
|
requestBody?: MarkAllReadRequest,
|
|
306
|
-
): CancelablePromise<MarkAllReadResponse> {
|
|
318
|
+
}): CancelablePromise<MarkAllReadResponse> {
|
|
307
319
|
return __request(OpenAPI, {
|
|
308
320
|
method: 'POST',
|
|
309
321
|
url: '/api/notification/v1/orgs/{platform_key}/mark-all-as-read',
|