@wildix/wda-insights-client 1.1.18 → 1.1.19

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 (30) hide show
  1. package/dist-cjs/WdaInsights.js +4 -0
  2. package/dist-cjs/commands/ListConversationsAggregationsCommand.js +21 -0
  3. package/dist-cjs/commands/ListConversationsNestedAggregationsCommand.js +21 -0
  4. package/dist-cjs/commands/index.js +2 -0
  5. package/dist-cjs/models/models_0.js +40 -40
  6. package/dist-cjs/protocols/Aws_restJson1.js +131 -4
  7. package/dist-es/WdaInsights.js +4 -0
  8. package/dist-es/commands/ListConversationsAggregationsCommand.js +17 -0
  9. package/dist-es/commands/ListConversationsNestedAggregationsCommand.js +17 -0
  10. package/dist-es/commands/index.js +2 -0
  11. package/dist-es/models/models_0.js +39 -39
  12. package/dist-es/protocols/Aws_restJson1.js +124 -1
  13. package/dist-types/WdaInsights.d.ts +15 -0
  14. package/dist-types/WdaInsightsClient.d.ts +4 -2
  15. package/dist-types/commands/CreateDashboardCommand.d.ts +8 -0
  16. package/dist-types/commands/GetDashboardCommand.d.ts +4 -0
  17. package/dist-types/commands/ListConversationsAggregationsCommand.d.ts +493 -0
  18. package/dist-types/commands/ListConversationsCommand.d.ts +2 -0
  19. package/dist-types/commands/ListConversationsInsightsAggregationsCommand.d.ts +301 -3
  20. package/dist-types/commands/ListConversationsInsightsCommand.d.ts +167 -2
  21. package/dist-types/commands/ListConversationsNestedAggregationsCommand.d.ts +672 -0
  22. package/dist-types/commands/ListDashboardsCommand.d.ts +4 -0
  23. package/dist-types/commands/ListPinnedDashboardsCommand.d.ts +4 -0
  24. package/dist-types/commands/QueryConversationsCountCommand.d.ts +2 -0
  25. package/dist-types/commands/UpdateDashboardAccessCommand.d.ts +4 -0
  26. package/dist-types/commands/UpdateDashboardCommand.d.ts +8 -0
  27. package/dist-types/commands/index.d.ts +2 -0
  28. package/dist-types/models/models_0.d.ts +298 -168
  29. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  30. package/package.json +1 -1
@@ -30,9 +30,11 @@ const GetConferenceTimeFramesCommand_1 = require("./commands/GetConferenceTimeFr
30
30
  const GetDashboardCommand_1 = require("./commands/GetDashboardCommand");
31
31
  const GetPlaylistCommand_1 = require("./commands/GetPlaylistCommand");
32
32
  const GetProjectionCommand_1 = require("./commands/GetProjectionCommand");
33
+ const ListConversationsAggregationsCommand_1 = require("./commands/ListConversationsAggregationsCommand");
33
34
  const ListConversationsCommand_1 = require("./commands/ListConversationsCommand");
34
35
  const ListConversationsInsightsAggregationsCommand_1 = require("./commands/ListConversationsInsightsAggregationsCommand");
35
36
  const ListConversationsInsightsCommand_1 = require("./commands/ListConversationsInsightsCommand");
37
+ const ListConversationsNestedAggregationsCommand_1 = require("./commands/ListConversationsNestedAggregationsCommand");
36
38
  const ListDashboardsCommand_1 = require("./commands/ListDashboardsCommand");
37
39
  const ListFiltersCommand_1 = require("./commands/ListFiltersCommand");
38
40
  const ListPinnedDashboardsCommand_1 = require("./commands/ListPinnedDashboardsCommand");
@@ -85,8 +87,10 @@ const commands = {
85
87
  GetPlaylistCommand: GetPlaylistCommand_1.GetPlaylistCommand,
86
88
  GetProjectionCommand: GetProjectionCommand_1.GetProjectionCommand,
87
89
  ListConversationsCommand: ListConversationsCommand_1.ListConversationsCommand,
90
+ ListConversationsAggregationsCommand: ListConversationsAggregationsCommand_1.ListConversationsAggregationsCommand,
88
91
  ListConversationsInsightsCommand: ListConversationsInsightsCommand_1.ListConversationsInsightsCommand,
89
92
  ListConversationsInsightsAggregationsCommand: ListConversationsInsightsAggregationsCommand_1.ListConversationsInsightsAggregationsCommand,
93
+ ListConversationsNestedAggregationsCommand: ListConversationsNestedAggregationsCommand_1.ListConversationsNestedAggregationsCommand,
90
94
  ListDashboardsCommand: ListDashboardsCommand_1.ListDashboardsCommand,
91
95
  ListFiltersCommand: ListFiltersCommand_1.ListFiltersCommand,
92
96
  ListPinnedDashboardsCommand: ListPinnedDashboardsCommand_1.ListPinnedDashboardsCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListConversationsAggregationsCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ListConversationsAggregationsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaInsights", "ListConversationsAggregations", {})
15
+ .n("WdaInsightsClient", "ListConversationsAggregationsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ListConversationsAggregationsCommand)
18
+ .de(Aws_restJson1_1.de_ListConversationsAggregationsCommand)
19
+ .build() {
20
+ }
21
+ exports.ListConversationsAggregationsCommand = ListConversationsAggregationsCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListConversationsNestedAggregationsCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ListConversationsNestedAggregationsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaInsights", "ListConversationsNestedAggregations", {})
15
+ .n("WdaInsightsClient", "ListConversationsNestedAggregationsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ListConversationsNestedAggregationsCommand)
18
+ .de(Aws_restJson1_1.de_ListConversationsNestedAggregationsCommand)
19
+ .build() {
20
+ }
21
+ exports.ListConversationsNestedAggregationsCommand = ListConversationsNestedAggregationsCommand;
@@ -30,8 +30,10 @@ tslib_1.__exportStar(require("./GetDashboardCommand"), exports);
30
30
  tslib_1.__exportStar(require("./GetPlaylistCommand"), exports);
31
31
  tslib_1.__exportStar(require("./GetProjectionCommand"), exports);
32
32
  tslib_1.__exportStar(require("./ListConversationsCommand"), exports);
33
+ tslib_1.__exportStar(require("./ListConversationsAggregationsCommand"), exports);
33
34
  tslib_1.__exportStar(require("./ListConversationsInsightsCommand"), exports);
34
35
  tslib_1.__exportStar(require("./ListConversationsInsightsAggregationsCommand"), exports);
36
+ tslib_1.__exportStar(require("./ListConversationsNestedAggregationsCommand"), exports);
35
37
  tslib_1.__exportStar(require("./ListDashboardsCommand"), exports);
36
38
  tslib_1.__exportStar(require("./ListFiltersCommand"), exports);
37
39
  tslib_1.__exportStar(require("./ListPinnedDashboardsCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FilterNotFoundException = exports.ProjectionStatus = exports.ProjectionProvider = exports.ProjectionParameter = exports.ProjectionCondition = exports.ProjectionEntityConditionValue = exports.PlaylistVisibility = exports.PlaylistPrincipal = exports.PlaylistPermission = exports.ListConversationsFilterParticipant = exports.ListConversationsFilterDate = exports.ListConversationsFilterPredefinedDateType = exports.ListConversationsFilterField = exports.DashboardVisibility = exports.DashboardPrincipal = exports.DashboardPermission = exports.ConversationTarget = exports.AggregationDefinition = exports.AggregationDateDefinitionPrecision = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = void 0;
3
+ exports.FilterNotFoundException = exports.ProjectionStatus = exports.ProjectionProvider = exports.ProjectionParameter = exports.ProjectionCondition = exports.ProjectionEntityConditionValue = exports.PlaylistVisibility = exports.PlaylistPrincipal = exports.PlaylistPermission = exports.DashboardVisibility = exports.DashboardPrincipal = exports.DashboardPermission = exports.AggregationDateInterval = exports.ListConversationsFilterParticipant = exports.ConversationTarget = exports.ListConversationsFilterDate = exports.ListConversationsFilterPredefinedDateType = exports.ListConversationsFilterField = exports.AggregationDefinition = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = void 0;
4
4
  exports.PlaylistItemStatus = exports.ListConversationsItemEvent = exports.FileNotFoundException = exports.DownloadStrategy = exports.ConversationFileCategory = exports.InsightsReason = exports.InsightsStatus = void 0;
5
5
  const WdaInsightsServiceException_1 = require("./WdaInsightsServiceException");
6
6
  class ForbiddenException extends WdaInsightsServiceException_1.WdaInsightsServiceException {
@@ -189,15 +189,6 @@ exports.ConferenceTranscriptionStatus = {
189
189
  AVAILABLE: "AVAILABLE",
190
190
  UNAVAILABLE: "UNAVAILABLE",
191
191
  };
192
- exports.AggregationDateDefinitionPrecision = {
193
- DAY: "day",
194
- HOUR: "hour",
195
- MINUTE: "minute",
196
- MONTH: "month",
197
- QUARTER: "quarter",
198
- WEEK: "week",
199
- YEAR: "year",
200
- };
201
192
  var AggregationDefinition;
202
193
  (function (AggregationDefinition) {
203
194
  AggregationDefinition.visit = (value, visitor) => {
@@ -244,39 +235,11 @@ var AggregationDefinition;
244
235
  return visitor._(value.$unknown[0], value.$unknown[1]);
245
236
  };
246
237
  })(AggregationDefinition || (exports.AggregationDefinition = AggregationDefinition = {}));
247
- var ConversationTarget;
248
- (function (ConversationTarget) {
249
- ConversationTarget.visit = (value, visitor) => {
250
- if (value.call !== undefined)
251
- return visitor.call(value.call);
252
- if (value.conference !== undefined)
253
- return visitor.conference(value.conference);
254
- if (value.chat !== undefined)
255
- return visitor.chat(value.chat);
256
- return visitor._(value.$unknown[0], value.$unknown[1]);
257
- };
258
- })(ConversationTarget || (exports.ConversationTarget = ConversationTarget = {}));
259
- exports.DashboardPermission = {
260
- EDIT: "edit",
261
- VIEW: "view",
262
- };
263
- var DashboardPrincipal;
264
- (function (DashboardPrincipal) {
265
- DashboardPrincipal.visit = (value, visitor) => {
266
- if (value.userId !== undefined)
267
- return visitor.userId(value.userId);
268
- if (value.groupId !== undefined)
269
- return visitor.groupId(value.groupId);
270
- return visitor._(value.$unknown[0], value.$unknown[1]);
271
- };
272
- })(DashboardPrincipal || (exports.DashboardPrincipal = DashboardPrincipal = {}));
273
- exports.DashboardVisibility = {
274
- EXPLICIT: "explicit",
275
- ORGANIZATION: "organization",
276
- };
277
238
  var ListConversationsFilterField;
278
239
  (function (ListConversationsFilterField) {
279
240
  ListConversationsFilterField.visit = (value, visitor) => {
241
+ if (value.direction !== undefined)
242
+ return visitor.direction(value.direction);
280
243
  if (value.service !== undefined)
281
244
  return visitor.service(value.service);
282
245
  if (value.group !== undefined)
@@ -322,6 +285,18 @@ var ListConversationsFilterDate;
322
285
  return visitor._(value.$unknown[0], value.$unknown[1]);
323
286
  };
324
287
  })(ListConversationsFilterDate || (exports.ListConversationsFilterDate = ListConversationsFilterDate = {}));
288
+ var ConversationTarget;
289
+ (function (ConversationTarget) {
290
+ ConversationTarget.visit = (value, visitor) => {
291
+ if (value.call !== undefined)
292
+ return visitor.call(value.call);
293
+ if (value.conference !== undefined)
294
+ return visitor.conference(value.conference);
295
+ if (value.chat !== undefined)
296
+ return visitor.chat(value.chat);
297
+ return visitor._(value.$unknown[0], value.$unknown[1]);
298
+ };
299
+ })(ConversationTarget || (exports.ConversationTarget = ConversationTarget = {}));
325
300
  var ListConversationsFilterParticipant;
326
301
  (function (ListConversationsFilterParticipant) {
327
302
  ListConversationsFilterParticipant.visit = (value, visitor) => {
@@ -334,6 +309,31 @@ var ListConversationsFilterParticipant;
334
309
  return visitor._(value.$unknown[0], value.$unknown[1]);
335
310
  };
336
311
  })(ListConversationsFilterParticipant || (exports.ListConversationsFilterParticipant = ListConversationsFilterParticipant = {}));
312
+ exports.AggregationDateInterval = {
313
+ DAY: "day",
314
+ HOUR: "hour",
315
+ MINUTE: "minute",
316
+ MONTH: "month",
317
+ WEEK: "week",
318
+ };
319
+ exports.DashboardPermission = {
320
+ EDIT: "edit",
321
+ VIEW: "view",
322
+ };
323
+ var DashboardPrincipal;
324
+ (function (DashboardPrincipal) {
325
+ DashboardPrincipal.visit = (value, visitor) => {
326
+ if (value.userId !== undefined)
327
+ return visitor.userId(value.userId);
328
+ if (value.groupId !== undefined)
329
+ return visitor.groupId(value.groupId);
330
+ return visitor._(value.$unknown[0], value.$unknown[1]);
331
+ };
332
+ })(DashboardPrincipal || (exports.DashboardPrincipal = DashboardPrincipal = {}));
333
+ exports.DashboardVisibility = {
334
+ EXPLICIT: "explicit",
335
+ ORGANIZATION: "organization",
336
+ };
337
337
  exports.PlaylistPermission = {
338
338
  EDIT: "edit",
339
339
  VIEW: "view",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateProjectionCommand = exports.se_UpdatePlaylistAccessCommand = exports.se_UpdatePlaylistCommand = exports.se_UpdatePinnedDashboardsCommand = exports.se_UpdateFilterCommand = exports.se_UpdateDashboardAccessCommand = exports.se_UpdateDashboardCommand = exports.se_ScheduleConferenceSummaryGenerationCommand = exports.se_ScheduleCallSummaryGenerationCommand = exports.se_QueryConversationsCountCommand = exports.se_PutPlaylistItemCommand = exports.se_PauseProjectionCommand = exports.se_ListWatchHistoryCommand = exports.se_ListProjectionsCommand = exports.se_ListPlaylistsCommand = exports.se_ListPlaylistItemsCommand = exports.se_ListPinnedDashboardsCommand = exports.se_ListFiltersCommand = exports.se_ListDashboardsCommand = exports.se_ListConversationsInsightsAggregationsCommand = exports.se_ListConversationsInsightsCommand = exports.se_ListConversationsCommand = exports.se_GetProjectionCommand = exports.se_GetPlaylistCommand = exports.se_GetDashboardCommand = exports.se_GetConferenceTimeFramesCommand = exports.se_GetConferenceSummaryCommand = exports.se_GetConferenceStateCommand = exports.se_GetConferenceRecordingPresignedDownloadUrlCommand = exports.se_GetConferenceInsightsCommand = exports.se_GetChatSummaryCommand = exports.se_GetChatStateCommand = exports.se_GetChatInsightsCommand = exports.se_GetCallSummaryCommand = exports.se_GetCallStateCommand = exports.se_GetCallInsightsCommand = exports.se_GetCallCharacteristicsCommand = exports.se_EnableProjectionCommand = exports.se_DisableProjectionCommand = exports.se_DeleteProjectionsCategoryCommand = exports.se_DeleteProjectionCommand = exports.se_DeletePlaylistItemCommand = exports.se_DeletePlaylistCommand = exports.se_DeleteFilterCommand = exports.se_DeleteDashboardCommand = exports.se_CreateProjectionsCategoryCommand = exports.se_CreateProjectionCommand = exports.se_CreatePlaylistCommand = exports.se_CreateFilterCommand = exports.se_CreateDashboardCommand = void 0;
4
- exports.de_UpdatePlaylistCommand = exports.de_UpdatePinnedDashboardsCommand = exports.de_UpdateFilterCommand = exports.de_UpdateDashboardAccessCommand = exports.de_UpdateDashboardCommand = exports.de_ScheduleConferenceSummaryGenerationCommand = exports.de_ScheduleCallSummaryGenerationCommand = exports.de_QueryConversationsCountCommand = exports.de_PutPlaylistItemCommand = exports.de_PauseProjectionCommand = exports.de_ListWatchHistoryCommand = exports.de_ListProjectionsCommand = exports.de_ListPlaylistsCommand = exports.de_ListPlaylistItemsCommand = exports.de_ListPinnedDashboardsCommand = exports.de_ListFiltersCommand = exports.de_ListDashboardsCommand = exports.de_ListConversationsInsightsAggregationsCommand = exports.de_ListConversationsInsightsCommand = exports.de_ListConversationsCommand = exports.de_GetProjectionCommand = exports.de_GetPlaylistCommand = exports.de_GetDashboardCommand = exports.de_GetConferenceTimeFramesCommand = exports.de_GetConferenceSummaryCommand = exports.de_GetConferenceStateCommand = exports.de_GetConferenceRecordingPresignedDownloadUrlCommand = exports.de_GetConferenceInsightsCommand = exports.de_GetChatSummaryCommand = exports.de_GetChatStateCommand = exports.de_GetChatInsightsCommand = exports.de_GetCallSummaryCommand = exports.de_GetCallStateCommand = exports.de_GetCallInsightsCommand = exports.de_GetCallCharacteristicsCommand = exports.de_EnableProjectionCommand = exports.de_DisableProjectionCommand = exports.de_DeleteProjectionsCategoryCommand = exports.de_DeleteProjectionCommand = exports.de_DeletePlaylistItemCommand = exports.de_DeletePlaylistCommand = exports.de_DeleteFilterCommand = exports.de_DeleteDashboardCommand = exports.de_CreateProjectionsCategoryCommand = exports.de_CreateProjectionCommand = exports.de_CreatePlaylistCommand = exports.de_CreateFilterCommand = exports.de_CreateDashboardCommand = exports.se_WatchCommand = exports.se_UpdateProjectionsCategoryCommand = void 0;
5
- exports.de_WatchCommand = exports.de_UpdateProjectionsCategoryCommand = exports.de_UpdateProjectionCommand = exports.de_UpdatePlaylistAccessCommand = void 0;
3
+ exports.se_UpdatePlaylistCommand = exports.se_UpdatePinnedDashboardsCommand = exports.se_UpdateFilterCommand = exports.se_UpdateDashboardAccessCommand = exports.se_UpdateDashboardCommand = exports.se_ScheduleConferenceSummaryGenerationCommand = exports.se_ScheduleCallSummaryGenerationCommand = exports.se_QueryConversationsCountCommand = exports.se_PutPlaylistItemCommand = exports.se_PauseProjectionCommand = exports.se_ListWatchHistoryCommand = exports.se_ListProjectionsCommand = exports.se_ListPlaylistsCommand = exports.se_ListPlaylistItemsCommand = exports.se_ListPinnedDashboardsCommand = exports.se_ListFiltersCommand = exports.se_ListDashboardsCommand = exports.se_ListConversationsNestedAggregationsCommand = exports.se_ListConversationsInsightsAggregationsCommand = exports.se_ListConversationsInsightsCommand = exports.se_ListConversationsAggregationsCommand = exports.se_ListConversationsCommand = exports.se_GetProjectionCommand = exports.se_GetPlaylistCommand = exports.se_GetDashboardCommand = exports.se_GetConferenceTimeFramesCommand = exports.se_GetConferenceSummaryCommand = exports.se_GetConferenceStateCommand = exports.se_GetConferenceRecordingPresignedDownloadUrlCommand = exports.se_GetConferenceInsightsCommand = exports.se_GetChatSummaryCommand = exports.se_GetChatStateCommand = exports.se_GetChatInsightsCommand = exports.se_GetCallSummaryCommand = exports.se_GetCallStateCommand = exports.se_GetCallInsightsCommand = exports.se_GetCallCharacteristicsCommand = exports.se_EnableProjectionCommand = exports.se_DisableProjectionCommand = exports.se_DeleteProjectionsCategoryCommand = exports.se_DeleteProjectionCommand = exports.se_DeletePlaylistItemCommand = exports.se_DeletePlaylistCommand = exports.se_DeleteFilterCommand = exports.se_DeleteDashboardCommand = exports.se_CreateProjectionsCategoryCommand = exports.se_CreateProjectionCommand = exports.se_CreatePlaylistCommand = exports.se_CreateFilterCommand = exports.se_CreateDashboardCommand = void 0;
4
+ exports.de_UpdateDashboardCommand = exports.de_ScheduleConferenceSummaryGenerationCommand = exports.de_ScheduleCallSummaryGenerationCommand = exports.de_QueryConversationsCountCommand = exports.de_PutPlaylistItemCommand = exports.de_PauseProjectionCommand = exports.de_ListWatchHistoryCommand = exports.de_ListProjectionsCommand = exports.de_ListPlaylistsCommand = exports.de_ListPlaylistItemsCommand = exports.de_ListPinnedDashboardsCommand = exports.de_ListFiltersCommand = exports.de_ListDashboardsCommand = exports.de_ListConversationsNestedAggregationsCommand = exports.de_ListConversationsInsightsAggregationsCommand = exports.de_ListConversationsInsightsCommand = exports.de_ListConversationsAggregationsCommand = exports.de_ListConversationsCommand = exports.de_GetProjectionCommand = exports.de_GetPlaylistCommand = exports.de_GetDashboardCommand = exports.de_GetConferenceTimeFramesCommand = exports.de_GetConferenceSummaryCommand = exports.de_GetConferenceStateCommand = exports.de_GetConferenceRecordingPresignedDownloadUrlCommand = exports.de_GetConferenceInsightsCommand = exports.de_GetChatSummaryCommand = exports.de_GetChatStateCommand = exports.de_GetChatInsightsCommand = exports.de_GetCallSummaryCommand = exports.de_GetCallStateCommand = exports.de_GetCallInsightsCommand = exports.de_GetCallCharacteristicsCommand = exports.de_EnableProjectionCommand = exports.de_DisableProjectionCommand = exports.de_DeleteProjectionsCategoryCommand = exports.de_DeleteProjectionCommand = exports.de_DeletePlaylistItemCommand = exports.de_DeletePlaylistCommand = exports.de_DeleteFilterCommand = exports.de_DeleteDashboardCommand = exports.de_CreateProjectionsCategoryCommand = exports.de_CreateProjectionCommand = exports.de_CreatePlaylistCommand = exports.de_CreateFilterCommand = exports.de_CreateDashboardCommand = exports.se_WatchCommand = exports.se_UpdateProjectionsCategoryCommand = exports.se_UpdateProjectionCommand = exports.se_UpdatePlaylistAccessCommand = void 0;
5
+ exports.de_WatchCommand = exports.de_UpdateProjectionsCategoryCommand = exports.de_UpdateProjectionCommand = exports.de_UpdatePlaylistAccessCommand = exports.de_UpdatePlaylistCommand = exports.de_UpdatePinnedDashboardsCommand = exports.de_UpdateFilterCommand = exports.de_UpdateDashboardAccessCommand = void 0;
6
6
  const WdaInsightsServiceException_1 = require("../models/WdaInsightsServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const core_1 = require("@aws-sdk/core");
@@ -524,6 +524,27 @@ const se_ListConversationsCommand = async (input, context) => {
524
524
  return b.build();
525
525
  };
526
526
  exports.se_ListConversationsCommand = se_ListConversationsCommand;
527
+ const se_ListConversationsAggregationsCommand = async (input, context) => {
528
+ const b = (0, core_2.requestBuilder)(input, context);
529
+ const headers = {
530
+ 'content-type': 'application/json',
531
+ };
532
+ b.bp("/v2/insights/conversations/aggregations");
533
+ const query = (0, smithy_client_1.map)({
534
+ [_c]: [, input[_c]],
535
+ });
536
+ let body;
537
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
538
+ 'filter': _ => se_ListConversationsFilter(_, context),
539
+ 'insights': _ => (0, smithy_client_1._json)(_),
540
+ }));
541
+ b.m("POST")
542
+ .h(headers)
543
+ .q(query)
544
+ .b(body);
545
+ return b.build();
546
+ };
547
+ exports.se_ListConversationsAggregationsCommand = se_ListConversationsAggregationsCommand;
527
548
  const se_ListConversationsInsightsCommand = async (input, context) => {
528
549
  const b = (0, core_2.requestBuilder)(input, context);
529
550
  const headers = {
@@ -566,6 +587,27 @@ const se_ListConversationsInsightsAggregationsCommand = async (input, context) =
566
587
  return b.build();
567
588
  };
568
589
  exports.se_ListConversationsInsightsAggregationsCommand = se_ListConversationsInsightsAggregationsCommand;
590
+ const se_ListConversationsNestedAggregationsCommand = async (input, context) => {
591
+ const b = (0, core_2.requestBuilder)(input, context);
592
+ const headers = {
593
+ 'content-type': 'application/json',
594
+ };
595
+ b.bp("/v2/insights/conversations/aggregations/nested");
596
+ const query = (0, smithy_client_1.map)({
597
+ [_c]: [, input[_c]],
598
+ });
599
+ let body;
600
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
601
+ 'aggregations': _ => (0, smithy_client_1._json)(_),
602
+ 'filter': _ => se_ListConversationsFilter(_, context),
603
+ }));
604
+ b.m("POST")
605
+ .h(headers)
606
+ .q(query)
607
+ .b(body);
608
+ return b.build();
609
+ };
610
+ exports.se_ListConversationsNestedAggregationsCommand = se_ListConversationsNestedAggregationsCommand;
569
611
  const se_ListDashboardsCommand = async (input, context) => {
570
612
  const b = (0, core_2.requestBuilder)(input, context);
571
613
  const headers = {};
@@ -1391,6 +1433,22 @@ const de_ListConversationsCommand = async (output, context) => {
1391
1433
  return contents;
1392
1434
  };
1393
1435
  exports.de_ListConversationsCommand = de_ListConversationsCommand;
1436
+ const de_ListConversationsAggregationsCommand = async (output, context) => {
1437
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1438
+ return de_CommandError(output, context);
1439
+ }
1440
+ const contents = (0, smithy_client_1.map)({
1441
+ $metadata: deserializeMetadata(output),
1442
+ });
1443
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1444
+ const doc = (0, smithy_client_1.take)(data, {
1445
+ 'count': smithy_client_1.expectInt32,
1446
+ 'result': _ => de_FlatAggregationResultList(_, context),
1447
+ });
1448
+ Object.assign(contents, doc);
1449
+ return contents;
1450
+ };
1451
+ exports.de_ListConversationsAggregationsCommand = de_ListConversationsAggregationsCommand;
1394
1452
  const de_ListConversationsInsightsCommand = async (output, context) => {
1395
1453
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1396
1454
  return de_CommandError(output, context);
@@ -1401,7 +1459,7 @@ const de_ListConversationsInsightsCommand = async (output, context) => {
1401
1459
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1402
1460
  const doc = (0, smithy_client_1.take)(data, {
1403
1461
  'count': smithy_client_1.expectInt32,
1404
- 'result': smithy_client_1._json,
1462
+ 'result': _ => de_InsightResultsList(_, context),
1405
1463
  });
1406
1464
  Object.assign(contents, doc);
1407
1465
  return contents;
@@ -1423,6 +1481,22 @@ const de_ListConversationsInsightsAggregationsCommand = async (output, context)
1423
1481
  return contents;
1424
1482
  };
1425
1483
  exports.de_ListConversationsInsightsAggregationsCommand = de_ListConversationsInsightsAggregationsCommand;
1484
+ const de_ListConversationsNestedAggregationsCommand = async (output, context) => {
1485
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1486
+ return de_CommandError(output, context);
1487
+ }
1488
+ const contents = (0, smithy_client_1.map)({
1489
+ $metadata: deserializeMetadata(output),
1490
+ });
1491
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1492
+ const doc = (0, smithy_client_1.take)(data, {
1493
+ 'count': smithy_client_1.expectInt32,
1494
+ 'result': _ => de_AggregationResult(_, context),
1495
+ });
1496
+ Object.assign(contents, doc);
1497
+ return contents;
1498
+ };
1499
+ exports.de_ListConversationsNestedAggregationsCommand = de_ListConversationsNestedAggregationsCommand;
1426
1500
  const de_ListDashboardsCommand = async (output, context) => {
1427
1501
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1428
1502
  return de_CommandError(output, context);
@@ -1908,6 +1982,8 @@ const de_AggregationBucket = (output, context) => {
1908
1982
  return (0, smithy_client_1.take)(output, {
1909
1983
  'aggregation': (_) => de_AggregationResult(_, context),
1910
1984
  'count': smithy_client_1.expectLong,
1985
+ 'filter': (_) => de_ListConversationsFilter(_, context),
1986
+ 'interval': smithy_client_1.expectString,
1911
1987
  'key': smithy_client_1.expectString,
1912
1988
  });
1913
1989
  };
@@ -1977,6 +2053,57 @@ const de_DashboardVisualsList = (output, context) => {
1977
2053
  });
1978
2054
  return retVal;
1979
2055
  };
2056
+ const de_FlatAggregationBucket = (output, context) => {
2057
+ return (0, smithy_client_1.take)(output, {
2058
+ 'count': smithy_client_1.expectLong,
2059
+ 'filter': (_) => de_ListConversationsFilter(_, context),
2060
+ 'interval': smithy_client_1.expectString,
2061
+ 'key': smithy_client_1.expectString,
2062
+ });
2063
+ };
2064
+ const de_FlatAggregationBucketList = (output, context) => {
2065
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2066
+ return de_FlatAggregationBucket(entry, context);
2067
+ });
2068
+ return retVal;
2069
+ };
2070
+ const de_FlatAggregationResult = (output, context) => {
2071
+ return (0, smithy_client_1.take)(output, {
2072
+ 'aggregation': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
2073
+ 'buckets': (_) => de_FlatAggregationBucketList(_, context),
2074
+ });
2075
+ };
2076
+ const de_FlatAggregationResultList = (output, context) => {
2077
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2078
+ return de_FlatAggregationResult(entry, context);
2079
+ });
2080
+ return retVal;
2081
+ };
2082
+ const de_InsightResult = (output, context) => {
2083
+ return (0, smithy_client_1.take)(output, {
2084
+ 'buckets': (_) => de_InsightsBucketsList(_, context),
2085
+ 'insight': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
2086
+ });
2087
+ };
2088
+ const de_InsightResultsList = (output, context) => {
2089
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2090
+ return de_InsightResult(entry, context);
2091
+ });
2092
+ return retVal;
2093
+ };
2094
+ const de_InsightsBucket = (output, context) => {
2095
+ return (0, smithy_client_1.take)(output, {
2096
+ 'count': smithy_client_1.expectLong,
2097
+ 'filter': (_) => de_ListConversationsFilter(_, context),
2098
+ 'key': smithy_client_1.expectString,
2099
+ });
2100
+ };
2101
+ const de_InsightsBucketsList = (output, context) => {
2102
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2103
+ return de_InsightsBucket(entry, context);
2104
+ });
2105
+ return retVal;
2106
+ };
1980
2107
  const de_InsightsCharacteristics = (output, context) => {
1981
2108
  return (0, smithy_client_1.take)(output, {
1982
2109
  'duration': smithy_client_1.expectLong,
@@ -27,9 +27,11 @@ import { GetConferenceTimeFramesCommand, } from "./commands/GetConferenceTimeFra
27
27
  import { GetDashboardCommand, } from "./commands/GetDashboardCommand";
28
28
  import { GetPlaylistCommand, } from "./commands/GetPlaylistCommand";
29
29
  import { GetProjectionCommand, } from "./commands/GetProjectionCommand";
30
+ import { ListConversationsAggregationsCommand, } from "./commands/ListConversationsAggregationsCommand";
30
31
  import { ListConversationsCommand, } from "./commands/ListConversationsCommand";
31
32
  import { ListConversationsInsightsAggregationsCommand, } from "./commands/ListConversationsInsightsAggregationsCommand";
32
33
  import { ListConversationsInsightsCommand, } from "./commands/ListConversationsInsightsCommand";
34
+ import { ListConversationsNestedAggregationsCommand, } from "./commands/ListConversationsNestedAggregationsCommand";
33
35
  import { ListDashboardsCommand, } from "./commands/ListDashboardsCommand";
34
36
  import { ListFiltersCommand, } from "./commands/ListFiltersCommand";
35
37
  import { ListPinnedDashboardsCommand, } from "./commands/ListPinnedDashboardsCommand";
@@ -82,8 +84,10 @@ const commands = {
82
84
  GetPlaylistCommand,
83
85
  GetProjectionCommand,
84
86
  ListConversationsCommand,
87
+ ListConversationsAggregationsCommand,
85
88
  ListConversationsInsightsCommand,
86
89
  ListConversationsInsightsAggregationsCommand,
90
+ ListConversationsNestedAggregationsCommand,
87
91
  ListDashboardsCommand,
88
92
  ListFiltersCommand,
89
93
  ListPinnedDashboardsCommand,
@@ -0,0 +1,17 @@
1
+ import { de_ListConversationsAggregationsCommand, se_ListConversationsAggregationsCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class ListConversationsAggregationsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaInsights", "ListConversationsAggregations", {})
12
+ .n("WdaInsightsClient", "ListConversationsAggregationsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListConversationsAggregationsCommand)
15
+ .de(de_ListConversationsAggregationsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListConversationsNestedAggregationsCommand, se_ListConversationsNestedAggregationsCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class ListConversationsNestedAggregationsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaInsights", "ListConversationsNestedAggregations", {})
12
+ .n("WdaInsightsClient", "ListConversationsNestedAggregationsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListConversationsNestedAggregationsCommand)
15
+ .de(de_ListConversationsNestedAggregationsCommand)
16
+ .build() {
17
+ }
@@ -27,8 +27,10 @@ export * from "./GetDashboardCommand";
27
27
  export * from "./GetPlaylistCommand";
28
28
  export * from "./GetProjectionCommand";
29
29
  export * from "./ListConversationsCommand";
30
+ export * from "./ListConversationsAggregationsCommand";
30
31
  export * from "./ListConversationsInsightsCommand";
31
32
  export * from "./ListConversationsInsightsAggregationsCommand";
33
+ export * from "./ListConversationsNestedAggregationsCommand";
32
34
  export * from "./ListDashboardsCommand";
33
35
  export * from "./ListFiltersCommand";
34
36
  export * from "./ListPinnedDashboardsCommand";
@@ -182,15 +182,6 @@ export const ConferenceTranscriptionStatus = {
182
182
  AVAILABLE: "AVAILABLE",
183
183
  UNAVAILABLE: "UNAVAILABLE",
184
184
  };
185
- export const AggregationDateDefinitionPrecision = {
186
- DAY: "day",
187
- HOUR: "hour",
188
- MINUTE: "minute",
189
- MONTH: "month",
190
- QUARTER: "quarter",
191
- WEEK: "week",
192
- YEAR: "year",
193
- };
194
185
  export var AggregationDefinition;
195
186
  (function (AggregationDefinition) {
196
187
  AggregationDefinition.visit = (value, visitor) => {
@@ -237,39 +228,11 @@ export var AggregationDefinition;
237
228
  return visitor._(value.$unknown[0], value.$unknown[1]);
238
229
  };
239
230
  })(AggregationDefinition || (AggregationDefinition = {}));
240
- export var ConversationTarget;
241
- (function (ConversationTarget) {
242
- ConversationTarget.visit = (value, visitor) => {
243
- if (value.call !== undefined)
244
- return visitor.call(value.call);
245
- if (value.conference !== undefined)
246
- return visitor.conference(value.conference);
247
- if (value.chat !== undefined)
248
- return visitor.chat(value.chat);
249
- return visitor._(value.$unknown[0], value.$unknown[1]);
250
- };
251
- })(ConversationTarget || (ConversationTarget = {}));
252
- export const DashboardPermission = {
253
- EDIT: "edit",
254
- VIEW: "view",
255
- };
256
- export var DashboardPrincipal;
257
- (function (DashboardPrincipal) {
258
- DashboardPrincipal.visit = (value, visitor) => {
259
- if (value.userId !== undefined)
260
- return visitor.userId(value.userId);
261
- if (value.groupId !== undefined)
262
- return visitor.groupId(value.groupId);
263
- return visitor._(value.$unknown[0], value.$unknown[1]);
264
- };
265
- })(DashboardPrincipal || (DashboardPrincipal = {}));
266
- export const DashboardVisibility = {
267
- EXPLICIT: "explicit",
268
- ORGANIZATION: "organization",
269
- };
270
231
  export var ListConversationsFilterField;
271
232
  (function (ListConversationsFilterField) {
272
233
  ListConversationsFilterField.visit = (value, visitor) => {
234
+ if (value.direction !== undefined)
235
+ return visitor.direction(value.direction);
273
236
  if (value.service !== undefined)
274
237
  return visitor.service(value.service);
275
238
  if (value.group !== undefined)
@@ -315,6 +278,18 @@ export var ListConversationsFilterDate;
315
278
  return visitor._(value.$unknown[0], value.$unknown[1]);
316
279
  };
317
280
  })(ListConversationsFilterDate || (ListConversationsFilterDate = {}));
281
+ export var ConversationTarget;
282
+ (function (ConversationTarget) {
283
+ ConversationTarget.visit = (value, visitor) => {
284
+ if (value.call !== undefined)
285
+ return visitor.call(value.call);
286
+ if (value.conference !== undefined)
287
+ return visitor.conference(value.conference);
288
+ if (value.chat !== undefined)
289
+ return visitor.chat(value.chat);
290
+ return visitor._(value.$unknown[0], value.$unknown[1]);
291
+ };
292
+ })(ConversationTarget || (ConversationTarget = {}));
318
293
  export var ListConversationsFilterParticipant;
319
294
  (function (ListConversationsFilterParticipant) {
320
295
  ListConversationsFilterParticipant.visit = (value, visitor) => {
@@ -327,6 +302,31 @@ export var ListConversationsFilterParticipant;
327
302
  return visitor._(value.$unknown[0], value.$unknown[1]);
328
303
  };
329
304
  })(ListConversationsFilterParticipant || (ListConversationsFilterParticipant = {}));
305
+ export const AggregationDateInterval = {
306
+ DAY: "day",
307
+ HOUR: "hour",
308
+ MINUTE: "minute",
309
+ MONTH: "month",
310
+ WEEK: "week",
311
+ };
312
+ export const DashboardPermission = {
313
+ EDIT: "edit",
314
+ VIEW: "view",
315
+ };
316
+ export var DashboardPrincipal;
317
+ (function (DashboardPrincipal) {
318
+ DashboardPrincipal.visit = (value, visitor) => {
319
+ if (value.userId !== undefined)
320
+ return visitor.userId(value.userId);
321
+ if (value.groupId !== undefined)
322
+ return visitor.groupId(value.groupId);
323
+ return visitor._(value.$unknown[0], value.$unknown[1]);
324
+ };
325
+ })(DashboardPrincipal || (DashboardPrincipal = {}));
326
+ export const DashboardVisibility = {
327
+ EXPLICIT: "explicit",
328
+ ORGANIZATION: "organization",
329
+ };
330
330
  export const PlaylistPermission = {
331
331
  EDIT: "edit",
332
332
  VIEW: "view",