@wildix/wda-insights-client 1.1.35 → 1.1.38

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 (34) hide show
  1. package/dist-cjs/WdaInsights.js +6 -0
  2. package/dist-cjs/commands/CreateProjectionsCategoryCommand.js +21 -0
  3. package/dist-cjs/commands/DeleteProjectionsCategoryCommand.js +21 -0
  4. package/dist-cjs/commands/UpdateProjectionsCategoryCommand.js +21 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/protocols/Aws_restJson1.js +106 -3
  7. package/dist-es/WdaInsights.js +6 -0
  8. package/dist-es/commands/CreateProjectionsCategoryCommand.js +17 -0
  9. package/dist-es/commands/DeleteProjectionsCategoryCommand.js +17 -0
  10. package/dist-es/commands/UpdateProjectionsCategoryCommand.js +17 -0
  11. package/dist-es/commands/index.js +3 -0
  12. package/dist-es/protocols/Aws_restJson1.js +97 -0
  13. package/dist-types/WdaInsights.d.ts +21 -0
  14. package/dist-types/WdaInsightsClient.d.ts +5 -2
  15. package/dist-types/commands/CreateProjectionCommand.d.ts +4 -2
  16. package/dist-types/commands/CreateProjectionsCategoryCommand.d.ts +83 -0
  17. package/dist-types/commands/DeleteProjectionsCategoryCommand.d.ts +77 -0
  18. package/dist-types/commands/DisableProjectionCommand.d.ts +2 -1
  19. package/dist-types/commands/EnableProjectionCommand.d.ts +2 -1
  20. package/dist-types/commands/GetProjectionCommand.d.ts +2 -1
  21. package/dist-types/commands/ListConversationsCommand.d.ts +6 -0
  22. package/dist-types/commands/ListPlaylistItemsCommand.d.ts +6 -0
  23. package/dist-types/commands/ListProjectionsCommand.d.ts +9 -2
  24. package/dist-types/commands/ListWatchHistoryCommand.d.ts +6 -0
  25. package/dist-types/commands/PauseProjectionCommand.d.ts +2 -1
  26. package/dist-types/commands/UpdateProjectionCommand.d.ts +4 -2
  27. package/dist-types/commands/UpdateProjectionsCategoryCommand.d.ts +85 -0
  28. package/dist-types/commands/index.d.ts +3 -0
  29. package/dist-types/models/models_0.d.ts +99 -6
  30. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  31. package/dist-types/runtimeConfig.browser.d.ts +6 -1
  32. package/dist-types/runtimeConfig.d.ts +6 -1
  33. package/dist-types/runtimeConfig.native.d.ts +6 -1
  34. package/package.json +1 -1
@@ -6,11 +6,13 @@ const CreateDashboardCommand_1 = require("./commands/CreateDashboardCommand");
6
6
  const CreateFilterCommand_1 = require("./commands/CreateFilterCommand");
7
7
  const CreatePlaylistCommand_1 = require("./commands/CreatePlaylistCommand");
8
8
  const CreateProjectionCommand_1 = require("./commands/CreateProjectionCommand");
9
+ const CreateProjectionsCategoryCommand_1 = require("./commands/CreateProjectionsCategoryCommand");
9
10
  const DeleteDashboardCommand_1 = require("./commands/DeleteDashboardCommand");
10
11
  const DeleteFilterCommand_1 = require("./commands/DeleteFilterCommand");
11
12
  const DeletePlaylistCommand_1 = require("./commands/DeletePlaylistCommand");
12
13
  const DeletePlaylistItemCommand_1 = require("./commands/DeletePlaylistItemCommand");
13
14
  const DeleteProjectionCommand_1 = require("./commands/DeleteProjectionCommand");
15
+ const DeleteProjectionsCategoryCommand_1 = require("./commands/DeleteProjectionsCategoryCommand");
14
16
  const DisableProjectionCommand_1 = require("./commands/DisableProjectionCommand");
15
17
  const EnableProjectionCommand_1 = require("./commands/EnableProjectionCommand");
16
18
  const GetAnalysisSettingsCommand_1 = require("./commands/GetAnalysisSettingsCommand");
@@ -54,6 +56,7 @@ const UpdatePinnedDashboardsCommand_1 = require("./commands/UpdatePinnedDashboar
54
56
  const UpdatePlaylistAccessCommand_1 = require("./commands/UpdatePlaylistAccessCommand");
55
57
  const UpdatePlaylistCommand_1 = require("./commands/UpdatePlaylistCommand");
56
58
  const UpdateProjectionCommand_1 = require("./commands/UpdateProjectionCommand");
59
+ const UpdateProjectionsCategoryCommand_1 = require("./commands/UpdateProjectionsCategoryCommand");
57
60
  const WatchCommand_1 = require("./commands/WatchCommand");
58
61
  const smithy_client_1 = require("@smithy/smithy-client");
59
62
  const commands = {
@@ -61,11 +64,13 @@ const commands = {
61
64
  CreateFilterCommand: CreateFilterCommand_1.CreateFilterCommand,
62
65
  CreatePlaylistCommand: CreatePlaylistCommand_1.CreatePlaylistCommand,
63
66
  CreateProjectionCommand: CreateProjectionCommand_1.CreateProjectionCommand,
67
+ CreateProjectionsCategoryCommand: CreateProjectionsCategoryCommand_1.CreateProjectionsCategoryCommand,
64
68
  DeleteDashboardCommand: DeleteDashboardCommand_1.DeleteDashboardCommand,
65
69
  DeleteFilterCommand: DeleteFilterCommand_1.DeleteFilterCommand,
66
70
  DeletePlaylistCommand: DeletePlaylistCommand_1.DeletePlaylistCommand,
67
71
  DeletePlaylistItemCommand: DeletePlaylistItemCommand_1.DeletePlaylistItemCommand,
68
72
  DeleteProjectionCommand: DeleteProjectionCommand_1.DeleteProjectionCommand,
73
+ DeleteProjectionsCategoryCommand: DeleteProjectionsCategoryCommand_1.DeleteProjectionsCategoryCommand,
69
74
  DisableProjectionCommand: DisableProjectionCommand_1.DisableProjectionCommand,
70
75
  EnableProjectionCommand: EnableProjectionCommand_1.EnableProjectionCommand,
71
76
  GetAnalysisSettingsCommand: GetAnalysisSettingsCommand_1.GetAnalysisSettingsCommand,
@@ -109,6 +114,7 @@ const commands = {
109
114
  UpdatePlaylistCommand: UpdatePlaylistCommand_1.UpdatePlaylistCommand,
110
115
  UpdatePlaylistAccessCommand: UpdatePlaylistAccessCommand_1.UpdatePlaylistAccessCommand,
111
116
  UpdateProjectionCommand: UpdateProjectionCommand_1.UpdateProjectionCommand,
117
+ UpdateProjectionsCategoryCommand: UpdateProjectionsCategoryCommand_1.UpdateProjectionsCategoryCommand,
112
118
  WatchCommand: WatchCommand_1.WatchCommand,
113
119
  };
114
120
  class WdaInsights extends WdaInsightsClient_1.WdaInsightsClient {
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateProjectionsCategoryCommand = 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 CreateProjectionsCategoryCommand 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", "CreateProjectionsCategory", {})
15
+ .n("WdaInsightsClient", "CreateProjectionsCategoryCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreateProjectionsCategoryCommand)
18
+ .de(Aws_restJson1_1.de_CreateProjectionsCategoryCommand)
19
+ .build() {
20
+ }
21
+ exports.CreateProjectionsCategoryCommand = CreateProjectionsCategoryCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteProjectionsCategoryCommand = 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 DeleteProjectionsCategoryCommand 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", "DeleteProjectionsCategory", {})
15
+ .n("WdaInsightsClient", "DeleteProjectionsCategoryCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteProjectionsCategoryCommand)
18
+ .de(Aws_restJson1_1.de_DeleteProjectionsCategoryCommand)
19
+ .build() {
20
+ }
21
+ exports.DeleteProjectionsCategoryCommand = DeleteProjectionsCategoryCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateProjectionsCategoryCommand = 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 UpdateProjectionsCategoryCommand 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", "UpdateProjectionsCategory", {})
15
+ .n("WdaInsightsClient", "UpdateProjectionsCategoryCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UpdateProjectionsCategoryCommand)
18
+ .de(Aws_restJson1_1.de_UpdateProjectionsCategoryCommand)
19
+ .build() {
20
+ }
21
+ exports.UpdateProjectionsCategoryCommand = UpdateProjectionsCategoryCommand;
@@ -5,11 +5,13 @@ tslib_1.__exportStar(require("./CreateDashboardCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CreateFilterCommand"), exports);
6
6
  tslib_1.__exportStar(require("./CreatePlaylistCommand"), exports);
7
7
  tslib_1.__exportStar(require("./CreateProjectionCommand"), exports);
8
+ tslib_1.__exportStar(require("./CreateProjectionsCategoryCommand"), exports);
8
9
  tslib_1.__exportStar(require("./DeleteDashboardCommand"), exports);
9
10
  tslib_1.__exportStar(require("./DeleteFilterCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DeletePlaylistCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DeletePlaylistItemCommand"), exports);
12
13
  tslib_1.__exportStar(require("./DeleteProjectionCommand"), exports);
14
+ tslib_1.__exportStar(require("./DeleteProjectionsCategoryCommand"), exports);
13
15
  tslib_1.__exportStar(require("./DisableProjectionCommand"), exports);
14
16
  tslib_1.__exportStar(require("./EnableProjectionCommand"), exports);
15
17
  tslib_1.__exportStar(require("./GetAnalysisSettingsCommand"), exports);
@@ -53,4 +55,5 @@ tslib_1.__exportStar(require("./UpdatePinnedDashboardsCommand"), exports);
53
55
  tslib_1.__exportStar(require("./UpdatePlaylistCommand"), exports);
54
56
  tslib_1.__exportStar(require("./UpdatePlaylistAccessCommand"), exports);
55
57
  tslib_1.__exportStar(require("./UpdateProjectionCommand"), exports);
58
+ tslib_1.__exportStar(require("./UpdateProjectionsCategoryCommand"), exports);
56
59
  tslib_1.__exportStar(require("./WatchCommand"), exports);
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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_PutAnalysisSettingsCommand = 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_GetAnalysisSettingsCommand = exports.se_EnableProjectionCommand = exports.se_DisableProjectionCommand = exports.se_DeleteProjectionCommand = exports.se_DeletePlaylistItemCommand = exports.se_DeletePlaylistCommand = exports.se_DeleteFilterCommand = exports.se_DeleteDashboardCommand = exports.se_CreateProjectionCommand = exports.se_CreatePlaylistCommand = exports.se_CreateFilterCommand = exports.se_CreateDashboardCommand = void 0;
4
- exports.de_UpdateDashboardAccessCommand = exports.de_UpdateDashboardCommand = exports.de_ScheduleConferenceSummaryGenerationCommand = exports.de_ScheduleCallSummaryGenerationCommand = exports.de_QueryConversationsCountCommand = exports.de_PutPlaylistItemCommand = exports.de_PutAnalysisSettingsCommand = 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_GetAnalysisSettingsCommand = exports.de_EnableProjectionCommand = exports.de_DisableProjectionCommand = exports.de_DeleteProjectionCommand = exports.de_DeletePlaylistItemCommand = exports.de_DeletePlaylistCommand = exports.de_DeleteFilterCommand = exports.de_DeleteDashboardCommand = exports.de_CreateProjectionCommand = exports.de_CreatePlaylistCommand = exports.de_CreateFilterCommand = exports.de_CreateDashboardCommand = exports.se_WatchCommand = exports.se_UpdateProjectionCommand = exports.se_UpdatePlaylistAccessCommand = void 0;
5
- exports.de_WatchCommand = exports.de_UpdateProjectionCommand = exports.de_UpdatePlaylistAccessCommand = exports.de_UpdatePlaylistCommand = exports.de_UpdatePinnedDashboardsCommand = exports.de_UpdateFilterCommand = void 0;
3
+ exports.se_UpdateFilterCommand = exports.se_UpdateDashboardAccessCommand = exports.se_UpdateDashboardCommand = exports.se_ScheduleConferenceSummaryGenerationCommand = exports.se_ScheduleCallSummaryGenerationCommand = exports.se_QueryConversationsCountCommand = exports.se_PutPlaylistItemCommand = exports.se_PutAnalysisSettingsCommand = 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_GetAnalysisSettingsCommand = 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_PutPlaylistItemCommand = exports.de_PutAnalysisSettingsCommand = 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_GetAnalysisSettingsCommand = 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 = exports.se_UpdatePlaylistCommand = exports.se_UpdatePinnedDashboardsCommand = 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 = exports.de_UpdateDashboardCommand = exports.de_ScheduleConferenceSummaryGenerationCommand = exports.de_ScheduleCallSummaryGenerationCommand = exports.de_QueryConversationsCountCommand = 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");
@@ -84,6 +84,7 @@ const se_CreateProjectionCommand = async (input, context) => {
84
84
  let body;
85
85
  body = JSON.stringify((0, smithy_client_1.take)(input, {
86
86
  'category': [],
87
+ 'categoryId': [],
87
88
  'conditions': _ => (0, smithy_client_1._json)(_),
88
89
  'description': [],
89
90
  'fields': _ => (0, smithy_client_1._json)(_),
@@ -101,6 +102,27 @@ const se_CreateProjectionCommand = async (input, context) => {
101
102
  return b.build();
102
103
  };
103
104
  exports.se_CreateProjectionCommand = se_CreateProjectionCommand;
105
+ const se_CreateProjectionsCategoryCommand = async (input, context) => {
106
+ const b = (0, core_2.requestBuilder)(input, context);
107
+ const headers = {
108
+ 'content-type': 'application/json',
109
+ };
110
+ b.bp("/v2/insights/projections-categories");
111
+ const query = (0, smithy_client_1.map)({
112
+ [_c]: [, input[_c]],
113
+ });
114
+ let body;
115
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
116
+ 'id': [],
117
+ 'name': [],
118
+ }));
119
+ b.m("POST")
120
+ .h(headers)
121
+ .q(query)
122
+ .b(body);
123
+ return b.build();
124
+ };
125
+ exports.se_CreateProjectionsCategoryCommand = se_CreateProjectionsCategoryCommand;
104
126
  const se_DeleteDashboardCommand = async (input, context) => {
105
127
  const b = (0, core_2.requestBuilder)(input, context);
106
128
  const headers = {};
@@ -185,6 +207,22 @@ const se_DeleteProjectionCommand = async (input, context) => {
185
207
  return b.build();
186
208
  };
187
209
  exports.se_DeleteProjectionCommand = se_DeleteProjectionCommand;
210
+ const se_DeleteProjectionsCategoryCommand = async (input, context) => {
211
+ const b = (0, core_2.requestBuilder)(input, context);
212
+ const headers = {};
213
+ b.bp("/v2/insights/projections-categories/{id}");
214
+ b.p('id', () => input.id, '{id}', false);
215
+ const query = (0, smithy_client_1.map)({
216
+ [_c]: [, input[_c]],
217
+ });
218
+ let body;
219
+ b.m("DELETE")
220
+ .h(headers)
221
+ .q(query)
222
+ .b(body);
223
+ return b.build();
224
+ };
225
+ exports.se_DeleteProjectionsCategoryCommand = se_DeleteProjectionsCategoryCommand;
188
226
  const se_DisableProjectionCommand = async (input, context) => {
189
227
  const b = (0, core_2.requestBuilder)(input, context);
190
228
  const headers = {};
@@ -961,6 +999,7 @@ const se_UpdateProjectionCommand = async (input, context) => {
961
999
  let body;
962
1000
  body = JSON.stringify((0, smithy_client_1.take)(input, {
963
1001
  'category': [],
1002
+ 'categoryId': [],
964
1003
  'conditions': _ => (0, smithy_client_1._json)(_),
965
1004
  'description': [],
966
1005
  'fields': _ => (0, smithy_client_1._json)(_),
@@ -977,6 +1016,27 @@ const se_UpdateProjectionCommand = async (input, context) => {
977
1016
  return b.build();
978
1017
  };
979
1018
  exports.se_UpdateProjectionCommand = se_UpdateProjectionCommand;
1019
+ const se_UpdateProjectionsCategoryCommand = async (input, context) => {
1020
+ const b = (0, core_2.requestBuilder)(input, context);
1021
+ const headers = {
1022
+ 'content-type': 'application/json',
1023
+ };
1024
+ b.bp("/v2/insights/projections-categories/{id}");
1025
+ b.p('id', () => input.id, '{id}', false);
1026
+ const query = (0, smithy_client_1.map)({
1027
+ [_c]: [, input[_c]],
1028
+ });
1029
+ let body;
1030
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1031
+ 'name': [],
1032
+ }));
1033
+ b.m("PUT")
1034
+ .h(headers)
1035
+ .q(query)
1036
+ .b(body);
1037
+ return b.build();
1038
+ };
1039
+ exports.se_UpdateProjectionsCategoryCommand = se_UpdateProjectionsCategoryCommand;
980
1040
  const se_WatchCommand = async (input, context) => {
981
1041
  const b = (0, core_2.requestBuilder)(input, context);
982
1042
  const headers = {
@@ -1059,6 +1119,21 @@ const de_CreateProjectionCommand = async (output, context) => {
1059
1119
  return contents;
1060
1120
  };
1061
1121
  exports.de_CreateProjectionCommand = de_CreateProjectionCommand;
1122
+ const de_CreateProjectionsCategoryCommand = async (output, context) => {
1123
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
+ return de_CommandError(output, context);
1125
+ }
1126
+ const contents = (0, smithy_client_1.map)({
1127
+ $metadata: deserializeMetadata(output),
1128
+ });
1129
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1130
+ const doc = (0, smithy_client_1.take)(data, {
1131
+ 'category': smithy_client_1._json,
1132
+ });
1133
+ Object.assign(contents, doc);
1134
+ return contents;
1135
+ };
1136
+ exports.de_CreateProjectionsCategoryCommand = de_CreateProjectionsCategoryCommand;
1062
1137
  const de_DeleteDashboardCommand = async (output, context) => {
1063
1138
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1064
1139
  return de_CommandError(output, context);
@@ -1114,6 +1189,17 @@ const de_DeleteProjectionCommand = async (output, context) => {
1114
1189
  return contents;
1115
1190
  };
1116
1191
  exports.de_DeleteProjectionCommand = de_DeleteProjectionCommand;
1192
+ const de_DeleteProjectionsCategoryCommand = async (output, context) => {
1193
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1194
+ return de_CommandError(output, context);
1195
+ }
1196
+ const contents = (0, smithy_client_1.map)({
1197
+ $metadata: deserializeMetadata(output),
1198
+ });
1199
+ await (0, smithy_client_1.collectBody)(output.body, context);
1200
+ return contents;
1201
+ };
1202
+ exports.de_DeleteProjectionsCategoryCommand = de_DeleteProjectionsCategoryCommand;
1117
1203
  const de_DisableProjectionCommand = async (output, context) => {
1118
1204
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1119
1205
  return de_CommandError(output, context);
@@ -1557,6 +1643,7 @@ const de_ListProjectionsCommand = async (output, context) => {
1557
1643
  });
1558
1644
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1559
1645
  const doc = (0, smithy_client_1.take)(data, {
1646
+ 'categories': smithy_client_1._json,
1560
1647
  'projections': _ => de_ProjectionsList(_, context),
1561
1648
  });
1562
1649
  Object.assign(contents, doc);
@@ -1759,6 +1846,21 @@ const de_UpdateProjectionCommand = async (output, context) => {
1759
1846
  return contents;
1760
1847
  };
1761
1848
  exports.de_UpdateProjectionCommand = de_UpdateProjectionCommand;
1849
+ const de_UpdateProjectionsCategoryCommand = async (output, context) => {
1850
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1851
+ return de_CommandError(output, context);
1852
+ }
1853
+ const contents = (0, smithy_client_1.map)({
1854
+ $metadata: deserializeMetadata(output),
1855
+ });
1856
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1857
+ const doc = (0, smithy_client_1.take)(data, {
1858
+ 'category': smithy_client_1._json,
1859
+ });
1860
+ Object.assign(contents, doc);
1861
+ return contents;
1862
+ };
1863
+ exports.de_UpdateProjectionsCategoryCommand = de_UpdateProjectionsCategoryCommand;
1762
1864
  const de_WatchCommand = async (output, context) => {
1763
1865
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1764
1866
  return de_CommandError(output, context);
@@ -2237,6 +2339,7 @@ const de_PlaylistItemsList = (output, context) => {
2237
2339
  const de_Projection = (output, context) => {
2238
2340
  return (0, smithy_client_1.take)(output, {
2239
2341
  'category': smithy_client_1.expectString,
2342
+ 'categoryId': smithy_client_1.expectString,
2240
2343
  'conditions': smithy_client_1._json,
2241
2344
  'createdAt': smithy_client_1.expectString,
2242
2345
  'description': smithy_client_1.expectString,
@@ -3,11 +3,13 @@ import { CreateDashboardCommand, } from "./commands/CreateDashboardCommand";
3
3
  import { CreateFilterCommand, } from "./commands/CreateFilterCommand";
4
4
  import { CreatePlaylistCommand, } from "./commands/CreatePlaylistCommand";
5
5
  import { CreateProjectionCommand, } from "./commands/CreateProjectionCommand";
6
+ import { CreateProjectionsCategoryCommand, } from "./commands/CreateProjectionsCategoryCommand";
6
7
  import { DeleteDashboardCommand, } from "./commands/DeleteDashboardCommand";
7
8
  import { DeleteFilterCommand, } from "./commands/DeleteFilterCommand";
8
9
  import { DeletePlaylistCommand, } from "./commands/DeletePlaylistCommand";
9
10
  import { DeletePlaylistItemCommand, } from "./commands/DeletePlaylistItemCommand";
10
11
  import { DeleteProjectionCommand, } from "./commands/DeleteProjectionCommand";
12
+ import { DeleteProjectionsCategoryCommand, } from "./commands/DeleteProjectionsCategoryCommand";
11
13
  import { DisableProjectionCommand, } from "./commands/DisableProjectionCommand";
12
14
  import { EnableProjectionCommand, } from "./commands/EnableProjectionCommand";
13
15
  import { GetAnalysisSettingsCommand, } from "./commands/GetAnalysisSettingsCommand";
@@ -51,6 +53,7 @@ import { UpdatePinnedDashboardsCommand, } from "./commands/UpdatePinnedDashboard
51
53
  import { UpdatePlaylistAccessCommand, } from "./commands/UpdatePlaylistAccessCommand";
52
54
  import { UpdatePlaylistCommand, } from "./commands/UpdatePlaylistCommand";
53
55
  import { UpdateProjectionCommand, } from "./commands/UpdateProjectionCommand";
56
+ import { UpdateProjectionsCategoryCommand, } from "./commands/UpdateProjectionsCategoryCommand";
54
57
  import { WatchCommand, } from "./commands/WatchCommand";
55
58
  import { createAggregatedClient } from "@smithy/smithy-client";
56
59
  const commands = {
@@ -58,11 +61,13 @@ const commands = {
58
61
  CreateFilterCommand,
59
62
  CreatePlaylistCommand,
60
63
  CreateProjectionCommand,
64
+ CreateProjectionsCategoryCommand,
61
65
  DeleteDashboardCommand,
62
66
  DeleteFilterCommand,
63
67
  DeletePlaylistCommand,
64
68
  DeletePlaylistItemCommand,
65
69
  DeleteProjectionCommand,
70
+ DeleteProjectionsCategoryCommand,
66
71
  DisableProjectionCommand,
67
72
  EnableProjectionCommand,
68
73
  GetAnalysisSettingsCommand,
@@ -106,6 +111,7 @@ const commands = {
106
111
  UpdatePlaylistCommand,
107
112
  UpdatePlaylistAccessCommand,
108
113
  UpdateProjectionCommand,
114
+ UpdateProjectionsCategoryCommand,
109
115
  WatchCommand,
110
116
  };
111
117
  export class WdaInsights extends WdaInsightsClient {
@@ -0,0 +1,17 @@
1
+ import { de_CreateProjectionsCategoryCommand, se_CreateProjectionsCategoryCommand, } 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 CreateProjectionsCategoryCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaInsights", "CreateProjectionsCategory", {})
12
+ .n("WdaInsightsClient", "CreateProjectionsCategoryCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreateProjectionsCategoryCommand)
15
+ .de(de_CreateProjectionsCategoryCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_DeleteProjectionsCategoryCommand, se_DeleteProjectionsCategoryCommand, } 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 DeleteProjectionsCategoryCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaInsights", "DeleteProjectionsCategory", {})
12
+ .n("WdaInsightsClient", "DeleteProjectionsCategoryCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteProjectionsCategoryCommand)
15
+ .de(de_DeleteProjectionsCategoryCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateProjectionsCategoryCommand, se_UpdateProjectionsCategoryCommand, } 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 UpdateProjectionsCategoryCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaInsights", "UpdateProjectionsCategory", {})
12
+ .n("WdaInsightsClient", "UpdateProjectionsCategoryCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateProjectionsCategoryCommand)
15
+ .de(de_UpdateProjectionsCategoryCommand)
16
+ .build() {
17
+ }
@@ -2,11 +2,13 @@ export * from "./CreateDashboardCommand";
2
2
  export * from "./CreateFilterCommand";
3
3
  export * from "./CreatePlaylistCommand";
4
4
  export * from "./CreateProjectionCommand";
5
+ export * from "./CreateProjectionsCategoryCommand";
5
6
  export * from "./DeleteDashboardCommand";
6
7
  export * from "./DeleteFilterCommand";
7
8
  export * from "./DeletePlaylistCommand";
8
9
  export * from "./DeletePlaylistItemCommand";
9
10
  export * from "./DeleteProjectionCommand";
11
+ export * from "./DeleteProjectionsCategoryCommand";
10
12
  export * from "./DisableProjectionCommand";
11
13
  export * from "./EnableProjectionCommand";
12
14
  export * from "./GetAnalysisSettingsCommand";
@@ -50,4 +52,5 @@ export * from "./UpdatePinnedDashboardsCommand";
50
52
  export * from "./UpdatePlaylistCommand";
51
53
  export * from "./UpdatePlaylistAccessCommand";
52
54
  export * from "./UpdateProjectionCommand";
55
+ export * from "./UpdateProjectionsCategoryCommand";
53
56
  export * from "./WatchCommand";
@@ -76,6 +76,7 @@ export const se_CreateProjectionCommand = async (input, context) => {
76
76
  let body;
77
77
  body = JSON.stringify(take(input, {
78
78
  'category': [],
79
+ 'categoryId': [],
79
80
  'conditions': _ => _json(_),
80
81
  'description': [],
81
82
  'fields': _ => _json(_),
@@ -92,6 +93,26 @@ export const se_CreateProjectionCommand = async (input, context) => {
92
93
  .b(body);
93
94
  return b.build();
94
95
  };
96
+ export const se_CreateProjectionsCategoryCommand = async (input, context) => {
97
+ const b = rb(input, context);
98
+ const headers = {
99
+ 'content-type': 'application/json',
100
+ };
101
+ b.bp("/v2/insights/projections-categories");
102
+ const query = map({
103
+ [_c]: [, input[_c]],
104
+ });
105
+ let body;
106
+ body = JSON.stringify(take(input, {
107
+ 'id': [],
108
+ 'name': [],
109
+ }));
110
+ b.m("POST")
111
+ .h(headers)
112
+ .q(query)
113
+ .b(body);
114
+ return b.build();
115
+ };
95
116
  export const se_DeleteDashboardCommand = async (input, context) => {
96
117
  const b = rb(input, context);
97
118
  const headers = {};
@@ -171,6 +192,21 @@ export const se_DeleteProjectionCommand = async (input, context) => {
171
192
  .b(body);
172
193
  return b.build();
173
194
  };
195
+ export const se_DeleteProjectionsCategoryCommand = async (input, context) => {
196
+ const b = rb(input, context);
197
+ const headers = {};
198
+ b.bp("/v2/insights/projections-categories/{id}");
199
+ b.p('id', () => input.id, '{id}', false);
200
+ const query = map({
201
+ [_c]: [, input[_c]],
202
+ });
203
+ let body;
204
+ b.m("DELETE")
205
+ .h(headers)
206
+ .q(query)
207
+ .b(body);
208
+ return b.build();
209
+ };
174
210
  export const se_DisableProjectionCommand = async (input, context) => {
175
211
  const b = rb(input, context);
176
212
  const headers = {};
@@ -905,6 +941,7 @@ export const se_UpdateProjectionCommand = async (input, context) => {
905
941
  let body;
906
942
  body = JSON.stringify(take(input, {
907
943
  'category': [],
944
+ 'categoryId': [],
908
945
  'conditions': _ => _json(_),
909
946
  'description': [],
910
947
  'fields': _ => _json(_),
@@ -920,6 +957,26 @@ export const se_UpdateProjectionCommand = async (input, context) => {
920
957
  .b(body);
921
958
  return b.build();
922
959
  };
960
+ export const se_UpdateProjectionsCategoryCommand = async (input, context) => {
961
+ const b = rb(input, context);
962
+ const headers = {
963
+ 'content-type': 'application/json',
964
+ };
965
+ b.bp("/v2/insights/projections-categories/{id}");
966
+ b.p('id', () => input.id, '{id}', false);
967
+ const query = map({
968
+ [_c]: [, input[_c]],
969
+ });
970
+ let body;
971
+ body = JSON.stringify(take(input, {
972
+ 'name': [],
973
+ }));
974
+ b.m("PUT")
975
+ .h(headers)
976
+ .q(query)
977
+ .b(body);
978
+ return b.build();
979
+ };
923
980
  export const se_WatchCommand = async (input, context) => {
924
981
  const b = rb(input, context);
925
982
  const headers = {
@@ -997,6 +1054,20 @@ export const de_CreateProjectionCommand = async (output, context) => {
997
1054
  Object.assign(contents, doc);
998
1055
  return contents;
999
1056
  };
1057
+ export const de_CreateProjectionsCategoryCommand = async (output, context) => {
1058
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1059
+ return de_CommandError(output, context);
1060
+ }
1061
+ const contents = map({
1062
+ $metadata: deserializeMetadata(output),
1063
+ });
1064
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1065
+ const doc = take(data, {
1066
+ 'category': _json,
1067
+ });
1068
+ Object.assign(contents, doc);
1069
+ return contents;
1070
+ };
1000
1071
  export const de_DeleteDashboardCommand = async (output, context) => {
1001
1072
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1002
1073
  return de_CommandError(output, context);
@@ -1047,6 +1118,16 @@ export const de_DeleteProjectionCommand = async (output, context) => {
1047
1118
  await collectBody(output.body, context);
1048
1119
  return contents;
1049
1120
  };
1121
+ export const de_DeleteProjectionsCategoryCommand = async (output, context) => {
1122
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1123
+ return de_CommandError(output, context);
1124
+ }
1125
+ const contents = map({
1126
+ $metadata: deserializeMetadata(output),
1127
+ });
1128
+ await collectBody(output.body, context);
1129
+ return contents;
1130
+ };
1050
1131
  export const de_DisableProjectionCommand = async (output, context) => {
1051
1132
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1052
1133
  return de_CommandError(output, context);
@@ -1462,6 +1543,7 @@ export const de_ListProjectionsCommand = async (output, context) => {
1462
1543
  });
1463
1544
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1464
1545
  const doc = take(data, {
1546
+ 'categories': _json,
1465
1547
  'projections': _ => de_ProjectionsList(_, context),
1466
1548
  });
1467
1549
  Object.assign(contents, doc);
@@ -1649,6 +1731,20 @@ export const de_UpdateProjectionCommand = async (output, context) => {
1649
1731
  Object.assign(contents, doc);
1650
1732
  return contents;
1651
1733
  };
1734
+ export const de_UpdateProjectionsCategoryCommand = async (output, context) => {
1735
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1736
+ return de_CommandError(output, context);
1737
+ }
1738
+ const contents = map({
1739
+ $metadata: deserializeMetadata(output),
1740
+ });
1741
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1742
+ const doc = take(data, {
1743
+ 'category': _json,
1744
+ });
1745
+ Object.assign(contents, doc);
1746
+ return contents;
1747
+ };
1652
1748
  export const de_WatchCommand = async (output, context) => {
1653
1749
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1654
1750
  return de_CommandError(output, context);
@@ -2126,6 +2222,7 @@ const de_PlaylistItemsList = (output, context) => {
2126
2222
  const de_Projection = (output, context) => {
2127
2223
  return take(output, {
2128
2224
  'category': __expectString,
2225
+ 'categoryId': __expectString,
2129
2226
  'conditions': _json,
2130
2227
  'createdAt': __expectString,
2131
2228
  'description': __expectString,