@wildix/wda-insights-client 1.0.26 → 1.0.27

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.
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WdaInsights = void 0;
4
4
  const WdaInsightsClient_1 = require("./WdaInsightsClient");
5
+ const CreateFilterCommand_1 = require("./commands/CreateFilterCommand");
6
+ const DeleteFilterCommand_1 = require("./commands/DeleteFilterCommand");
5
7
  const GetCallCharacteristicsCommand_1 = require("./commands/GetCallCharacteristicsCommand");
6
8
  const GetCallSummaryCommand_1 = require("./commands/GetCallSummaryCommand");
7
9
  const GetConferenceSummaryCommand_1 = require("./commands/GetConferenceSummaryCommand");
@@ -12,8 +14,11 @@ const ScheduleCallPostAnalysisCommand_1 = require("./commands/ScheduleCallPostAn
12
14
  const ScheduleCallSummaryGenerationCommand_1 = require("./commands/ScheduleCallSummaryGenerationCommand");
13
15
  const ScheduleConferencePostAnalysisCommand_1 = require("./commands/ScheduleConferencePostAnalysisCommand");
14
16
  const ScheduleConferenceSummaryGenerationCommand_1 = require("./commands/ScheduleConferenceSummaryGenerationCommand");
17
+ const UpdateFilterCommand_1 = require("./commands/UpdateFilterCommand");
15
18
  const smithy_client_1 = require("@smithy/smithy-client");
16
19
  const commands = {
20
+ CreateFilterCommand: CreateFilterCommand_1.CreateFilterCommand,
21
+ DeleteFilterCommand: DeleteFilterCommand_1.DeleteFilterCommand,
17
22
  GetCallCharacteristicsCommand: GetCallCharacteristicsCommand_1.GetCallCharacteristicsCommand,
18
23
  GetCallSummaryCommand: GetCallSummaryCommand_1.GetCallSummaryCommand,
19
24
  GetConferenceSummaryCommand: GetConferenceSummaryCommand_1.GetConferenceSummaryCommand,
@@ -24,6 +29,7 @@ const commands = {
24
29
  ScheduleCallSummaryGenerationCommand: ScheduleCallSummaryGenerationCommand_1.ScheduleCallSummaryGenerationCommand,
25
30
  ScheduleConferencePostAnalysisCommand: ScheduleConferencePostAnalysisCommand_1.ScheduleConferencePostAnalysisCommand,
26
31
  ScheduleConferenceSummaryGenerationCommand: ScheduleConferenceSummaryGenerationCommand_1.ScheduleConferenceSummaryGenerationCommand,
32
+ UpdateFilterCommand: UpdateFilterCommand_1.UpdateFilterCommand,
27
33
  };
28
34
  class WdaInsights extends WdaInsightsClient_1.WdaInsightsClient {
29
35
  }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateFilterCommand = 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
+ const types_1 = require("@smithy/types");
9
+ class CreateFilterCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ resolveMiddleware(clientStack, configuration, options) {
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "WdaInsightsClient";
19
+ const commandName = "CreateFilterCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
24
+ inputFilterSensitiveLog: (_) => _,
25
+ outputFilterSensitiveLog: (_) => _,
26
+ [types_1.SMITHY_CONTEXT_KEY]: {
27
+ service: "WdaInsights",
28
+ operation: "CreateFilter",
29
+ },
30
+ };
31
+ const { requestHandler } = configuration;
32
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
+ }
34
+ serialize(input, context) {
35
+ return (0, Aws_restJson1_1.se_CreateFilterCommand)(input, context);
36
+ }
37
+ deserialize(output, context) {
38
+ return (0, Aws_restJson1_1.de_CreateFilterCommand)(output, context);
39
+ }
40
+ }
41
+ exports.CreateFilterCommand = CreateFilterCommand;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteFilterCommand = 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
+ const types_1 = require("@smithy/types");
9
+ class DeleteFilterCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ resolveMiddleware(clientStack, configuration, options) {
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "WdaInsightsClient";
19
+ const commandName = "DeleteFilterCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
24
+ inputFilterSensitiveLog: (_) => _,
25
+ outputFilterSensitiveLog: (_) => _,
26
+ [types_1.SMITHY_CONTEXT_KEY]: {
27
+ service: "WdaInsights",
28
+ operation: "DeleteFilter",
29
+ },
30
+ };
31
+ const { requestHandler } = configuration;
32
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
+ }
34
+ serialize(input, context) {
35
+ return (0, Aws_restJson1_1.se_DeleteFilterCommand)(input, context);
36
+ }
37
+ deserialize(output, context) {
38
+ return (0, Aws_restJson1_1.de_DeleteFilterCommand)(output, context);
39
+ }
40
+ }
41
+ exports.DeleteFilterCommand = DeleteFilterCommand;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateFilterCommand = 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
+ const types_1 = require("@smithy/types");
9
+ class UpdateFilterCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ resolveMiddleware(clientStack, configuration, options) {
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "WdaInsightsClient";
19
+ const commandName = "UpdateFilterCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
24
+ inputFilterSensitiveLog: (_) => _,
25
+ outputFilterSensitiveLog: (_) => _,
26
+ [types_1.SMITHY_CONTEXT_KEY]: {
27
+ service: "WdaInsights",
28
+ operation: "UpdateFilter",
29
+ },
30
+ };
31
+ const { requestHandler } = configuration;
32
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
33
+ }
34
+ serialize(input, context) {
35
+ return (0, Aws_restJson1_1.se_UpdateFilterCommand)(input, context);
36
+ }
37
+ deserialize(output, context) {
38
+ return (0, Aws_restJson1_1.de_UpdateFilterCommand)(output, context);
39
+ }
40
+ }
41
+ exports.UpdateFilterCommand = UpdateFilterCommand;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateFilterCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteFilterCommand"), exports);
4
6
  tslib_1.__exportStar(require("./GetCallCharacteristicsCommand"), exports);
5
7
  tslib_1.__exportStar(require("./GetCallSummaryCommand"), exports);
6
8
  tslib_1.__exportStar(require("./GetConferenceSummaryCommand"), exports);
@@ -11,3 +13,4 @@ tslib_1.__exportStar(require("./ScheduleCallPostAnalysisCommand"), exports);
11
13
  tslib_1.__exportStar(require("./ScheduleCallSummaryGenerationCommand"), exports);
12
14
  tslib_1.__exportStar(require("./ScheduleConferencePostAnalysisCommand"), exports);
13
15
  tslib_1.__exportStar(require("./ScheduleConferenceSummaryGenerationCommand"), exports);
16
+ tslib_1.__exportStar(require("./UpdateFilterCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListConversationsItemEvent = exports.ListConversationsFilterParticipant = exports.ListConversationsFilterDate = exports.ListConversationsFilterPredefinedDateType = exports.InsightsQuality = exports.InsightsStatus = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallNotFoundException = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.ListConversationsItemEvent = exports.ListConversationsFilterParticipant = exports.ListConversationsFilterDate = exports.ListConversationsFilterPredefinedDateType = exports.InsightsQuality = exports.InsightsStatus = exports.FilterNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallNotFoundException = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const WdaInsightsServiceException_1 = require("./WdaInsightsServiceException");
5
5
  class ValidationException extends WdaInsightsServiceException_1.WdaInsightsServiceException {
6
6
  constructor(opts) {
@@ -129,6 +129,19 @@ exports.ConferenceTranscriptionStatus = {
129
129
  AVAILABLE: "AVAILABLE",
130
130
  UNAVAILABLE: "UNAVAILABLE",
131
131
  };
132
+ class FilterNotFoundException extends WdaInsightsServiceException_1.WdaInsightsServiceException {
133
+ constructor(opts) {
134
+ super({
135
+ name: "FilterNotFoundException",
136
+ $fault: "client",
137
+ ...opts
138
+ });
139
+ this.name = "FilterNotFoundException";
140
+ this.$fault = "client";
141
+ Object.setPrototypeOf(this, FilterNotFoundException.prototype);
142
+ }
143
+ }
144
+ exports.FilterNotFoundException = FilterNotFoundException;
132
145
  exports.InsightsStatus = {
133
146
  FAILED: "FAILED",
134
147
  NONE: "NONE",
@@ -1,10 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_ScheduleConferenceSummaryGenerationCommand = exports.de_ScheduleConferencePostAnalysisCommand = exports.de_ScheduleCallSummaryGenerationCommand = exports.de_ScheduleCallPostAnalysisCommand = exports.de_ListFiltersCommand = exports.de_ListConversationsCommand = exports.de_GetConferenceTimeFramesCommand = exports.de_GetConferenceSummaryCommand = exports.de_GetCallSummaryCommand = exports.de_GetCallCharacteristicsCommand = exports.se_ScheduleConferenceSummaryGenerationCommand = exports.se_ScheduleConferencePostAnalysisCommand = exports.se_ScheduleCallSummaryGenerationCommand = exports.se_ScheduleCallPostAnalysisCommand = exports.se_ListFiltersCommand = exports.se_ListConversationsCommand = exports.se_GetConferenceTimeFramesCommand = exports.se_GetConferenceSummaryCommand = exports.se_GetCallSummaryCommand = exports.se_GetCallCharacteristicsCommand = void 0;
3
+ exports.de_UpdateFilterCommand = exports.de_ScheduleConferenceSummaryGenerationCommand = exports.de_ScheduleConferencePostAnalysisCommand = exports.de_ScheduleCallSummaryGenerationCommand = exports.de_ScheduleCallPostAnalysisCommand = exports.de_ListFiltersCommand = exports.de_ListConversationsCommand = exports.de_GetConferenceTimeFramesCommand = exports.de_GetConferenceSummaryCommand = exports.de_GetCallSummaryCommand = exports.de_GetCallCharacteristicsCommand = exports.de_DeleteFilterCommand = exports.de_CreateFilterCommand = exports.se_UpdateFilterCommand = exports.se_ScheduleConferenceSummaryGenerationCommand = exports.se_ScheduleConferencePostAnalysisCommand = exports.se_ScheduleCallSummaryGenerationCommand = exports.se_ScheduleCallPostAnalysisCommand = exports.se_ListFiltersCommand = exports.se_ListConversationsCommand = exports.se_GetConferenceTimeFramesCommand = exports.se_GetConferenceSummaryCommand = exports.se_GetCallSummaryCommand = exports.se_GetCallCharacteristicsCommand = exports.se_DeleteFilterCommand = exports.se_CreateFilterCommand = void 0;
4
4
  const WdaInsightsServiceException_1 = require("../models/WdaInsightsServiceException");
5
5
  const models_0_1 = require("../models/models_0");
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
+ const se_CreateFilterCommand = async (input, context) => {
9
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const headers = {
11
+ 'content-type': 'application/json',
12
+ };
13
+ let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/filters";
14
+ let body;
15
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
16
+ 'body': [],
17
+ 'name': [],
18
+ }));
19
+ return new protocol_http_1.HttpRequest({
20
+ protocol,
21
+ hostname,
22
+ port,
23
+ method: "POST",
24
+ headers,
25
+ path: resolvedPath,
26
+ body,
27
+ });
28
+ };
29
+ exports.se_CreateFilterCommand = se_CreateFilterCommand;
30
+ const se_DeleteFilterCommand = async (input, context) => {
31
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
32
+ const headers = {};
33
+ let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/filters/{id}";
34
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'id', () => input.id, '{id}', false);
35
+ let body;
36
+ return new protocol_http_1.HttpRequest({
37
+ protocol,
38
+ hostname,
39
+ port,
40
+ method: "DELETE",
41
+ headers,
42
+ path: resolvedPath,
43
+ body,
44
+ });
45
+ };
46
+ exports.se_DeleteFilterCommand = se_DeleteFilterCommand;
8
47
  const se_GetCallCharacteristicsCommand = async (input, context) => {
9
48
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
49
  const headers = {};
@@ -131,12 +170,12 @@ const se_ListConversationsCommand = async (input, context) => {
131
170
  exports.se_ListConversationsCommand = se_ListConversationsCommand;
132
171
  const se_ListFiltersCommand = async (input, context) => {
133
172
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
134
- const headers = {};
173
+ const headers = {
174
+ 'content-type': 'application/json',
175
+ };
135
176
  let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/filters";
136
- const query = (0, smithy_client_1.map)({
137
- "company": [, input.company],
138
- });
139
177
  let body;
178
+ body = "";
140
179
  return new protocol_http_1.HttpRequest({
141
180
  protocol,
142
181
  hostname,
@@ -144,7 +183,6 @@ const se_ListFiltersCommand = async (input, context) => {
144
183
  method: "GET",
145
184
  headers,
146
185
  path: resolvedPath,
147
- query,
148
186
  body,
149
187
  });
150
188
  };
@@ -243,6 +281,102 @@ const se_ScheduleConferenceSummaryGenerationCommand = async (input, context) =>
243
281
  });
244
282
  };
245
283
  exports.se_ScheduleConferenceSummaryGenerationCommand = se_ScheduleConferenceSummaryGenerationCommand;
284
+ const se_UpdateFilterCommand = async (input, context) => {
285
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
286
+ const headers = {
287
+ 'content-type': 'application/json',
288
+ };
289
+ let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/filters/{id}";
290
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'id', () => input.id, '{id}', false);
291
+ let body;
292
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
293
+ 'body': [],
294
+ 'name': [],
295
+ }));
296
+ return new protocol_http_1.HttpRequest({
297
+ protocol,
298
+ hostname,
299
+ port,
300
+ method: "PUT",
301
+ headers,
302
+ path: resolvedPath,
303
+ body,
304
+ });
305
+ };
306
+ exports.se_UpdateFilterCommand = se_UpdateFilterCommand;
307
+ const de_CreateFilterCommand = async (output, context) => {
308
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
309
+ return de_CreateFilterCommandError(output, context);
310
+ }
311
+ const contents = (0, smithy_client_1.map)({
312
+ $metadata: deserializeMetadata(output),
313
+ });
314
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
315
+ const doc = (0, smithy_client_1.take)(data, {
316
+ 'item': smithy_client_1._json,
317
+ });
318
+ Object.assign(contents, doc);
319
+ return contents;
320
+ };
321
+ exports.de_CreateFilterCommand = de_CreateFilterCommand;
322
+ const de_CreateFilterCommandError = async (output, context) => {
323
+ const parsedOutput = {
324
+ ...output,
325
+ body: await parseErrorBody(output.body, context)
326
+ };
327
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
328
+ switch (errorCode) {
329
+ case "ForbiddenException":
330
+ case "smithy.framework#ForbiddenException":
331
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
332
+ case "ValidationException":
333
+ case "smithy.framework#ValidationException":
334
+ throw await de_ValidationExceptionRes(parsedOutput, context);
335
+ default:
336
+ const parsedBody = parsedOutput.body;
337
+ return throwDefaultError({
338
+ output,
339
+ parsedBody,
340
+ errorCode
341
+ });
342
+ }
343
+ };
344
+ const de_DeleteFilterCommand = async (output, context) => {
345
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
346
+ return de_DeleteFilterCommandError(output, context);
347
+ }
348
+ const contents = (0, smithy_client_1.map)({
349
+ $metadata: deserializeMetadata(output),
350
+ });
351
+ await (0, smithy_client_1.collectBody)(output.body, context);
352
+ return contents;
353
+ };
354
+ exports.de_DeleteFilterCommand = de_DeleteFilterCommand;
355
+ const de_DeleteFilterCommandError = async (output, context) => {
356
+ const parsedOutput = {
357
+ ...output,
358
+ body: await parseErrorBody(output.body, context)
359
+ };
360
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
361
+ switch (errorCode) {
362
+ case "FilterNotFoundException":
363
+ case "wildix.wda.insights#FilterNotFoundException":
364
+ throw await de_FilterNotFoundExceptionRes(parsedOutput, context);
365
+ case "ForbiddenException":
366
+ case "smithy.framework#ForbiddenException":
367
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
368
+ case "ValidationException":
369
+ case "smithy.framework#ValidationException":
370
+ throw await de_ValidationExceptionRes(parsedOutput, context);
371
+ default:
372
+ const parsedBody = parsedOutput.body;
373
+ return throwDefaultError({
374
+ output,
375
+ parsedBody,
376
+ errorCode
377
+ });
378
+ }
379
+ };
246
380
  const de_GetCallCharacteristicsCommand = async (output, context) => {
247
381
  if (output.statusCode !== 200 && output.statusCode >= 300) {
248
382
  return de_GetCallCharacteristicsCommandError(output, context);
@@ -456,7 +590,7 @@ const de_ListFiltersCommand = async (output, context) => {
456
590
  });
457
591
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
458
592
  const doc = (0, smithy_client_1.take)(data, {
459
- 'items': smithy_client_1._json,
593
+ 'filters': smithy_client_1._json,
460
594
  });
461
595
  Object.assign(contents, doc);
462
596
  return contents;
@@ -622,6 +756,46 @@ const de_ScheduleConferenceSummaryGenerationCommandError = async (output, contex
622
756
  });
623
757
  }
624
758
  };
759
+ const de_UpdateFilterCommand = async (output, context) => {
760
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
761
+ return de_UpdateFilterCommandError(output, context);
762
+ }
763
+ const contents = (0, smithy_client_1.map)({
764
+ $metadata: deserializeMetadata(output),
765
+ });
766
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
767
+ const doc = (0, smithy_client_1.take)(data, {
768
+ 'item': smithy_client_1._json,
769
+ });
770
+ Object.assign(contents, doc);
771
+ return contents;
772
+ };
773
+ exports.de_UpdateFilterCommand = de_UpdateFilterCommand;
774
+ const de_UpdateFilterCommandError = async (output, context) => {
775
+ const parsedOutput = {
776
+ ...output,
777
+ body: await parseErrorBody(output.body, context)
778
+ };
779
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
780
+ switch (errorCode) {
781
+ case "FilterNotFoundException":
782
+ case "wildix.wda.insights#FilterNotFoundException":
783
+ throw await de_FilterNotFoundExceptionRes(parsedOutput, context);
784
+ case "ForbiddenException":
785
+ case "smithy.framework#ForbiddenException":
786
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
787
+ case "ValidationException":
788
+ case "smithy.framework#ValidationException":
789
+ throw await de_ValidationExceptionRes(parsedOutput, context);
790
+ default:
791
+ const parsedBody = parsedOutput.body;
792
+ return throwDefaultError({
793
+ output,
794
+ parsedBody,
795
+ errorCode
796
+ });
797
+ }
798
+ };
625
799
  const throwDefaultError = (0, smithy_client_1.withBaseException)(WdaInsightsServiceException_1.WdaInsightsServiceException);
626
800
  const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
627
801
  const contents = (0, smithy_client_1.map)({});
@@ -675,6 +849,19 @@ const de_ConferenceNotFoundExceptionRes = async (parsedOutput, context) => {
675
849
  });
676
850
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
677
851
  };
852
+ const de_FilterNotFoundExceptionRes = async (parsedOutput, context) => {
853
+ const contents = (0, smithy_client_1.map)({});
854
+ const data = parsedOutput.body;
855
+ const doc = (0, smithy_client_1.take)(data, {
856
+ 'message': smithy_client_1.expectString,
857
+ });
858
+ Object.assign(contents, doc);
859
+ const exception = new models_0_1.FilterNotFoundException({
860
+ $metadata: deserializeMetadata(parsedOutput),
861
+ ...contents
862
+ });
863
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
864
+ };
678
865
  const de_InsightsCharacteristics = (output, context) => {
679
866
  return (0, smithy_client_1.take)(output, {
680
867
  'duration': smithy_client_1.expectLong,
@@ -1,4 +1,6 @@
1
1
  import { WdaInsightsClient, } from "./WdaInsightsClient";
2
+ import { CreateFilterCommand, } from "./commands/CreateFilterCommand";
3
+ import { DeleteFilterCommand, } from "./commands/DeleteFilterCommand";
2
4
  import { GetCallCharacteristicsCommand, } from "./commands/GetCallCharacteristicsCommand";
3
5
  import { GetCallSummaryCommand, } from "./commands/GetCallSummaryCommand";
4
6
  import { GetConferenceSummaryCommand, } from "./commands/GetConferenceSummaryCommand";
@@ -9,8 +11,11 @@ import { ScheduleCallPostAnalysisCommand, } from "./commands/ScheduleCallPostAna
9
11
  import { ScheduleCallSummaryGenerationCommand, } from "./commands/ScheduleCallSummaryGenerationCommand";
10
12
  import { ScheduleConferencePostAnalysisCommand, } from "./commands/ScheduleConferencePostAnalysisCommand";
11
13
  import { ScheduleConferenceSummaryGenerationCommand, } from "./commands/ScheduleConferenceSummaryGenerationCommand";
14
+ import { UpdateFilterCommand, } from "./commands/UpdateFilterCommand";
12
15
  import { createAggregatedClient } from "@smithy/smithy-client";
13
16
  const commands = {
17
+ CreateFilterCommand,
18
+ DeleteFilterCommand,
14
19
  GetCallCharacteristicsCommand,
15
20
  GetCallSummaryCommand,
16
21
  GetConferenceSummaryCommand,
@@ -21,6 +26,7 @@ const commands = {
21
26
  ScheduleCallSummaryGenerationCommand,
22
27
  ScheduleConferencePostAnalysisCommand,
23
28
  ScheduleConferenceSummaryGenerationCommand,
29
+ UpdateFilterCommand,
24
30
  };
25
31
  export class WdaInsights extends WdaInsightsClient {
26
32
  }
@@ -0,0 +1,37 @@
1
+ import { de_CreateFilterCommand, se_CreateFilterCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class CreateFilterCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "WdaInsightsClient";
16
+ const commandName = "CreateFilterCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "WdaInsights",
25
+ operation: "CreateFilter",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_CreateFilterCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_CreateFilterCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_DeleteFilterCommand, se_DeleteFilterCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class DeleteFilterCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "WdaInsightsClient";
16
+ const commandName = "DeleteFilterCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "WdaInsights",
25
+ operation: "DeleteFilter",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_DeleteFilterCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_DeleteFilterCommand(output, context);
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ import { de_UpdateFilterCommand, se_UpdateFilterCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ export { $Command };
6
+ export class UpdateFilterCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ resolveMiddleware(clientStack, configuration, options) {
12
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
+ const stack = clientStack.concat(this.middlewareStack);
14
+ const { logger } = configuration;
15
+ const clientName = "WdaInsightsClient";
16
+ const commandName = "UpdateFilterCommand";
17
+ const handlerExecutionContext = {
18
+ logger,
19
+ clientName,
20
+ commandName,
21
+ inputFilterSensitiveLog: (_) => _,
22
+ outputFilterSensitiveLog: (_) => _,
23
+ [SMITHY_CONTEXT_KEY]: {
24
+ service: "WdaInsights",
25
+ operation: "UpdateFilter",
26
+ },
27
+ };
28
+ const { requestHandler } = configuration;
29
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
30
+ }
31
+ serialize(input, context) {
32
+ return se_UpdateFilterCommand(input, context);
33
+ }
34
+ deserialize(output, context) {
35
+ return de_UpdateFilterCommand(output, context);
36
+ }
37
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./CreateFilterCommand";
2
+ export * from "./DeleteFilterCommand";
1
3
  export * from "./GetCallCharacteristicsCommand";
2
4
  export * from "./GetCallSummaryCommand";
3
5
  export * from "./GetConferenceSummaryCommand";
@@ -8,3 +10,4 @@ export * from "./ScheduleCallPostAnalysisCommand";
8
10
  export * from "./ScheduleCallSummaryGenerationCommand";
9
11
  export * from "./ScheduleConferencePostAnalysisCommand";
10
12
  export * from "./ScheduleConferenceSummaryGenerationCommand";
13
+ export * from "./UpdateFilterCommand";
@@ -122,6 +122,18 @@ export const ConferenceTranscriptionStatus = {
122
122
  AVAILABLE: "AVAILABLE",
123
123
  UNAVAILABLE: "UNAVAILABLE",
124
124
  };
125
+ export class FilterNotFoundException extends __BaseException {
126
+ constructor(opts) {
127
+ super({
128
+ name: "FilterNotFoundException",
129
+ $fault: "client",
130
+ ...opts
131
+ });
132
+ this.name = "FilterNotFoundException";
133
+ this.$fault = "client";
134
+ Object.setPrototypeOf(this, FilterNotFoundException.prototype);
135
+ }
136
+ }
125
137
  export const InsightsStatus = {
126
138
  FAILED: "FAILED",
127
139
  NONE: "NONE",