@aws-sdk/client-support-app 3.303.0 → 3.309.0

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 (25) hide show
  1. package/dist-cjs/commands/CreateSlackChannelConfigurationCommand.js +2 -2
  2. package/dist-cjs/commands/DeleteAccountAliasCommand.js +2 -2
  3. package/dist-cjs/commands/DeleteSlackChannelConfigurationCommand.js +2 -2
  4. package/dist-cjs/commands/DeleteSlackWorkspaceConfigurationCommand.js +2 -2
  5. package/dist-cjs/commands/GetAccountAliasCommand.js +2 -2
  6. package/dist-cjs/commands/ListSlackChannelConfigurationsCommand.js +2 -2
  7. package/dist-cjs/commands/ListSlackWorkspaceConfigurationsCommand.js +2 -2
  8. package/dist-cjs/commands/PutAccountAliasCommand.js +2 -2
  9. package/dist-cjs/commands/RegisterSlackWorkspaceForOrganizationCommand.js +2 -2
  10. package/dist-cjs/commands/UpdateSlackChannelConfigurationCommand.js +2 -2
  11. package/dist-cjs/protocols/Aws_restJson1.js +111 -111
  12. package/dist-es/commands/CreateSlackChannelConfigurationCommand.js +3 -3
  13. package/dist-es/commands/DeleteAccountAliasCommand.js +3 -3
  14. package/dist-es/commands/DeleteSlackChannelConfigurationCommand.js +3 -3
  15. package/dist-es/commands/DeleteSlackWorkspaceConfigurationCommand.js +3 -3
  16. package/dist-es/commands/GetAccountAliasCommand.js +3 -3
  17. package/dist-es/commands/ListSlackChannelConfigurationsCommand.js +3 -3
  18. package/dist-es/commands/ListSlackWorkspaceConfigurationsCommand.js +3 -3
  19. package/dist-es/commands/PutAccountAliasCommand.js +3 -3
  20. package/dist-es/commands/RegisterSlackWorkspaceForOrganizationCommand.js +3 -3
  21. package/dist-es/commands/UpdateSlackChannelConfigurationCommand.js +3 -3
  22. package/dist-es/protocols/Aws_restJson1.js +90 -90
  23. package/dist-types/protocols/Aws_restJson1.d.ts +80 -20
  24. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +20 -20
  25. package/package.json +29 -29
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = exports.deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = exports.deserializeAws_restJson1PutAccountAliasCommand = exports.deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = exports.deserializeAws_restJson1ListSlackChannelConfigurationsCommand = exports.deserializeAws_restJson1GetAccountAliasCommand = exports.deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = exports.deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = exports.deserializeAws_restJson1DeleteAccountAliasCommand = exports.deserializeAws_restJson1CreateSlackChannelConfigurationCommand = exports.serializeAws_restJson1UpdateSlackChannelConfigurationCommand = exports.serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = exports.serializeAws_restJson1PutAccountAliasCommand = exports.serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = exports.serializeAws_restJson1ListSlackChannelConfigurationsCommand = exports.serializeAws_restJson1GetAccountAliasCommand = exports.serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = exports.serializeAws_restJson1DeleteSlackChannelConfigurationCommand = exports.serializeAws_restJson1DeleteAccountAliasCommand = exports.serializeAws_restJson1CreateSlackChannelConfigurationCommand = void 0;
3
+ exports.de_UpdateSlackChannelConfigurationCommand = exports.de_RegisterSlackWorkspaceForOrganizationCommand = exports.de_PutAccountAliasCommand = exports.de_ListSlackWorkspaceConfigurationsCommand = exports.de_ListSlackChannelConfigurationsCommand = exports.de_GetAccountAliasCommand = exports.de_DeleteSlackWorkspaceConfigurationCommand = exports.de_DeleteSlackChannelConfigurationCommand = exports.de_DeleteAccountAliasCommand = exports.de_CreateSlackChannelConfigurationCommand = exports.se_UpdateSlackChannelConfigurationCommand = exports.se_RegisterSlackWorkspaceForOrganizationCommand = exports.se_PutAccountAliasCommand = exports.se_ListSlackWorkspaceConfigurationsCommand = exports.se_ListSlackChannelConfigurationsCommand = exports.se_GetAccountAliasCommand = exports.se_DeleteSlackWorkspaceConfigurationCommand = exports.se_DeleteSlackChannelConfigurationCommand = exports.se_DeleteAccountAliasCommand = exports.se_CreateSlackChannelConfigurationCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const SupportAppServiceException_1 = require("../models/SupportAppServiceException");
8
- const serializeAws_restJson1CreateSlackChannelConfigurationCommand = async (input, context) => {
8
+ const se_CreateSlackChannelConfigurationCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {
11
11
  "content-type": "application/json",
@@ -35,8 +35,8 @@ const serializeAws_restJson1CreateSlackChannelConfigurationCommand = async (inpu
35
35
  body,
36
36
  });
37
37
  };
38
- exports.serializeAws_restJson1CreateSlackChannelConfigurationCommand = serializeAws_restJson1CreateSlackChannelConfigurationCommand;
39
- const serializeAws_restJson1DeleteAccountAliasCommand = async (input, context) => {
38
+ exports.se_CreateSlackChannelConfigurationCommand = se_CreateSlackChannelConfigurationCommand;
39
+ const se_DeleteAccountAliasCommand = async (input, context) => {
40
40
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
41
41
  const headers = {
42
42
  "content-type": "application/json",
@@ -54,8 +54,8 @@ const serializeAws_restJson1DeleteAccountAliasCommand = async (input, context) =
54
54
  body,
55
55
  });
56
56
  };
57
- exports.serializeAws_restJson1DeleteAccountAliasCommand = serializeAws_restJson1DeleteAccountAliasCommand;
58
- const serializeAws_restJson1DeleteSlackChannelConfigurationCommand = async (input, context) => {
57
+ exports.se_DeleteAccountAliasCommand = se_DeleteAccountAliasCommand;
58
+ const se_DeleteSlackChannelConfigurationCommand = async (input, context) => {
59
59
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
60
60
  const headers = {
61
61
  "content-type": "application/json",
@@ -77,8 +77,8 @@ const serializeAws_restJson1DeleteSlackChannelConfigurationCommand = async (inpu
77
77
  body,
78
78
  });
79
79
  };
80
- exports.serializeAws_restJson1DeleteSlackChannelConfigurationCommand = serializeAws_restJson1DeleteSlackChannelConfigurationCommand;
81
- const serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = async (input, context) => {
80
+ exports.se_DeleteSlackChannelConfigurationCommand = se_DeleteSlackChannelConfigurationCommand;
81
+ const se_DeleteSlackWorkspaceConfigurationCommand = async (input, context) => {
82
82
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
83
83
  const headers = {
84
84
  "content-type": "application/json",
@@ -99,8 +99,8 @@ const serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = async (in
99
99
  body,
100
100
  });
101
101
  };
102
- exports.serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand;
103
- const serializeAws_restJson1GetAccountAliasCommand = async (input, context) => {
102
+ exports.se_DeleteSlackWorkspaceConfigurationCommand = se_DeleteSlackWorkspaceConfigurationCommand;
103
+ const se_GetAccountAliasCommand = async (input, context) => {
104
104
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
105
  const headers = {
106
106
  "content-type": "application/json",
@@ -118,8 +118,8 @@ const serializeAws_restJson1GetAccountAliasCommand = async (input, context) => {
118
118
  body,
119
119
  });
120
120
  };
121
- exports.serializeAws_restJson1GetAccountAliasCommand = serializeAws_restJson1GetAccountAliasCommand;
122
- const serializeAws_restJson1ListSlackChannelConfigurationsCommand = async (input, context) => {
121
+ exports.se_GetAccountAliasCommand = se_GetAccountAliasCommand;
122
+ const se_ListSlackChannelConfigurationsCommand = async (input, context) => {
123
123
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
124
  const headers = {
125
125
  "content-type": "application/json",
@@ -140,8 +140,8 @@ const serializeAws_restJson1ListSlackChannelConfigurationsCommand = async (input
140
140
  body,
141
141
  });
142
142
  };
143
- exports.serializeAws_restJson1ListSlackChannelConfigurationsCommand = serializeAws_restJson1ListSlackChannelConfigurationsCommand;
144
- const serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = async (input, context) => {
143
+ exports.se_ListSlackChannelConfigurationsCommand = se_ListSlackChannelConfigurationsCommand;
144
+ const se_ListSlackWorkspaceConfigurationsCommand = async (input, context) => {
145
145
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
146
  const headers = {
147
147
  "content-type": "application/json",
@@ -162,8 +162,8 @@ const serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = async (inp
162
162
  body,
163
163
  });
164
164
  };
165
- exports.serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand;
166
- const serializeAws_restJson1PutAccountAliasCommand = async (input, context) => {
165
+ exports.se_ListSlackWorkspaceConfigurationsCommand = se_ListSlackWorkspaceConfigurationsCommand;
166
+ const se_PutAccountAliasCommand = async (input, context) => {
167
167
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
168
  const headers = {
169
169
  "content-type": "application/json",
@@ -183,8 +183,8 @@ const serializeAws_restJson1PutAccountAliasCommand = async (input, context) => {
183
183
  body,
184
184
  });
185
185
  };
186
- exports.serializeAws_restJson1PutAccountAliasCommand = serializeAws_restJson1PutAccountAliasCommand;
187
- const serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = async (input, context) => {
186
+ exports.se_PutAccountAliasCommand = se_PutAccountAliasCommand;
187
+ const se_RegisterSlackWorkspaceForOrganizationCommand = async (input, context) => {
188
188
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
189
  const headers = {
190
190
  "content-type": "application/json",
@@ -205,8 +205,8 @@ const serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = async
205
205
  body,
206
206
  });
207
207
  };
208
- exports.serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand;
209
- const serializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (input, context) => {
208
+ exports.se_RegisterSlackWorkspaceForOrganizationCommand = se_RegisterSlackWorkspaceForOrganizationCommand;
209
+ const se_UpdateSlackChannelConfigurationCommand = async (input, context) => {
210
210
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
211
  const headers = {
212
212
  "content-type": "application/json",
@@ -236,10 +236,10 @@ const serializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (inpu
236
236
  body,
237
237
  });
238
238
  };
239
- exports.serializeAws_restJson1UpdateSlackChannelConfigurationCommand = serializeAws_restJson1UpdateSlackChannelConfigurationCommand;
240
- const deserializeAws_restJson1CreateSlackChannelConfigurationCommand = async (output, context) => {
239
+ exports.se_UpdateSlackChannelConfigurationCommand = se_UpdateSlackChannelConfigurationCommand;
240
+ const de_CreateSlackChannelConfigurationCommand = async (output, context) => {
241
241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
242
- return deserializeAws_restJson1CreateSlackChannelConfigurationCommandError(output, context);
242
+ return de_CreateSlackChannelConfigurationCommandError(output, context);
243
243
  }
244
244
  const contents = map({
245
245
  $metadata: deserializeMetadata(output),
@@ -247,8 +247,8 @@ const deserializeAws_restJson1CreateSlackChannelConfigurationCommand = async (ou
247
247
  await collectBody(output.body, context);
248
248
  return contents;
249
249
  };
250
- exports.deserializeAws_restJson1CreateSlackChannelConfigurationCommand = deserializeAws_restJson1CreateSlackChannelConfigurationCommand;
251
- const deserializeAws_restJson1CreateSlackChannelConfigurationCommandError = async (output, context) => {
250
+ exports.de_CreateSlackChannelConfigurationCommand = de_CreateSlackChannelConfigurationCommand;
251
+ const de_CreateSlackChannelConfigurationCommandError = async (output, context) => {
252
252
  const parsedOutput = {
253
253
  ...output,
254
254
  body: await parseErrorBody(output.body, context),
@@ -257,19 +257,19 @@ const deserializeAws_restJson1CreateSlackChannelConfigurationCommandError = asyn
257
257
  switch (errorCode) {
258
258
  case "AccessDeniedException":
259
259
  case "com.amazonaws.supportapp#AccessDeniedException":
260
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
260
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
261
261
  case "ConflictException":
262
262
  case "com.amazonaws.supportapp#ConflictException":
263
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
263
+ throw await de_ConflictExceptionRes(parsedOutput, context);
264
264
  case "InternalServerException":
265
265
  case "com.amazonaws.supportapp#InternalServerException":
266
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
266
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
267
267
  case "ServiceQuotaExceededException":
268
268
  case "com.amazonaws.supportapp#ServiceQuotaExceededException":
269
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
269
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
270
270
  case "ValidationException":
271
271
  case "com.amazonaws.supportapp#ValidationException":
272
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
272
+ throw await de_ValidationExceptionRes(parsedOutput, context);
273
273
  default:
274
274
  const parsedBody = parsedOutput.body;
275
275
  (0, smithy_client_1.throwDefaultError)({
@@ -280,9 +280,9 @@ const deserializeAws_restJson1CreateSlackChannelConfigurationCommandError = asyn
280
280
  });
281
281
  }
282
282
  };
283
- const deserializeAws_restJson1DeleteAccountAliasCommand = async (output, context) => {
283
+ const de_DeleteAccountAliasCommand = async (output, context) => {
284
284
  if (output.statusCode !== 200 && output.statusCode >= 300) {
285
- return deserializeAws_restJson1DeleteAccountAliasCommandError(output, context);
285
+ return de_DeleteAccountAliasCommandError(output, context);
286
286
  }
287
287
  const contents = map({
288
288
  $metadata: deserializeMetadata(output),
@@ -290,8 +290,8 @@ const deserializeAws_restJson1DeleteAccountAliasCommand = async (output, context
290
290
  await collectBody(output.body, context);
291
291
  return contents;
292
292
  };
293
- exports.deserializeAws_restJson1DeleteAccountAliasCommand = deserializeAws_restJson1DeleteAccountAliasCommand;
294
- const deserializeAws_restJson1DeleteAccountAliasCommandError = async (output, context) => {
293
+ exports.de_DeleteAccountAliasCommand = de_DeleteAccountAliasCommand;
294
+ const de_DeleteAccountAliasCommandError = async (output, context) => {
295
295
  const parsedOutput = {
296
296
  ...output,
297
297
  body: await parseErrorBody(output.body, context),
@@ -300,13 +300,13 @@ const deserializeAws_restJson1DeleteAccountAliasCommandError = async (output, co
300
300
  switch (errorCode) {
301
301
  case "AccessDeniedException":
302
302
  case "com.amazonaws.supportapp#AccessDeniedException":
303
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
303
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
304
304
  case "InternalServerException":
305
305
  case "com.amazonaws.supportapp#InternalServerException":
306
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
306
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
307
307
  case "ResourceNotFoundException":
308
308
  case "com.amazonaws.supportapp#ResourceNotFoundException":
309
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
309
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
310
310
  default:
311
311
  const parsedBody = parsedOutput.body;
312
312
  (0, smithy_client_1.throwDefaultError)({
@@ -317,9 +317,9 @@ const deserializeAws_restJson1DeleteAccountAliasCommandError = async (output, co
317
317
  });
318
318
  }
319
319
  };
320
- const deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = async (output, context) => {
320
+ const de_DeleteSlackChannelConfigurationCommand = async (output, context) => {
321
321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
322
- return deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError(output, context);
322
+ return de_DeleteSlackChannelConfigurationCommandError(output, context);
323
323
  }
324
324
  const contents = map({
325
325
  $metadata: deserializeMetadata(output),
@@ -327,8 +327,8 @@ const deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = async (ou
327
327
  await collectBody(output.body, context);
328
328
  return contents;
329
329
  };
330
- exports.deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = deserializeAws_restJson1DeleteSlackChannelConfigurationCommand;
331
- const deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError = async (output, context) => {
330
+ exports.de_DeleteSlackChannelConfigurationCommand = de_DeleteSlackChannelConfigurationCommand;
331
+ const de_DeleteSlackChannelConfigurationCommandError = async (output, context) => {
332
332
  const parsedOutput = {
333
333
  ...output,
334
334
  body: await parseErrorBody(output.body, context),
@@ -337,19 +337,19 @@ const deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError = asyn
337
337
  switch (errorCode) {
338
338
  case "AccessDeniedException":
339
339
  case "com.amazonaws.supportapp#AccessDeniedException":
340
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
340
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
341
341
  case "ConflictException":
342
342
  case "com.amazonaws.supportapp#ConflictException":
343
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
343
+ throw await de_ConflictExceptionRes(parsedOutput, context);
344
344
  case "InternalServerException":
345
345
  case "com.amazonaws.supportapp#InternalServerException":
346
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
346
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
347
347
  case "ResourceNotFoundException":
348
348
  case "com.amazonaws.supportapp#ResourceNotFoundException":
349
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
349
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
350
350
  case "ValidationException":
351
351
  case "com.amazonaws.supportapp#ValidationException":
352
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
352
+ throw await de_ValidationExceptionRes(parsedOutput, context);
353
353
  default:
354
354
  const parsedBody = parsedOutput.body;
355
355
  (0, smithy_client_1.throwDefaultError)({
@@ -360,9 +360,9 @@ const deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError = asyn
360
360
  });
361
361
  }
362
362
  };
363
- const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = async (output, context) => {
363
+ const de_DeleteSlackWorkspaceConfigurationCommand = async (output, context) => {
364
364
  if (output.statusCode !== 200 && output.statusCode >= 300) {
365
- return deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError(output, context);
365
+ return de_DeleteSlackWorkspaceConfigurationCommandError(output, context);
366
366
  }
367
367
  const contents = map({
368
368
  $metadata: deserializeMetadata(output),
@@ -370,8 +370,8 @@ const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = async (
370
370
  await collectBody(output.body, context);
371
371
  return contents;
372
372
  };
373
- exports.deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand;
374
- const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError = async (output, context) => {
373
+ exports.de_DeleteSlackWorkspaceConfigurationCommand = de_DeleteSlackWorkspaceConfigurationCommand;
374
+ const de_DeleteSlackWorkspaceConfigurationCommandError = async (output, context) => {
375
375
  const parsedOutput = {
376
376
  ...output,
377
377
  body: await parseErrorBody(output.body, context),
@@ -380,19 +380,19 @@ const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError = as
380
380
  switch (errorCode) {
381
381
  case "AccessDeniedException":
382
382
  case "com.amazonaws.supportapp#AccessDeniedException":
383
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
383
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
384
384
  case "ConflictException":
385
385
  case "com.amazonaws.supportapp#ConflictException":
386
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
386
+ throw await de_ConflictExceptionRes(parsedOutput, context);
387
387
  case "InternalServerException":
388
388
  case "com.amazonaws.supportapp#InternalServerException":
389
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
389
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
390
390
  case "ResourceNotFoundException":
391
391
  case "com.amazonaws.supportapp#ResourceNotFoundException":
392
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
392
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
393
393
  case "ValidationException":
394
394
  case "com.amazonaws.supportapp#ValidationException":
395
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
395
+ throw await de_ValidationExceptionRes(parsedOutput, context);
396
396
  default:
397
397
  const parsedBody = parsedOutput.body;
398
398
  (0, smithy_client_1.throwDefaultError)({
@@ -403,9 +403,9 @@ const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError = as
403
403
  });
404
404
  }
405
405
  };
406
- const deserializeAws_restJson1GetAccountAliasCommand = async (output, context) => {
406
+ const de_GetAccountAliasCommand = async (output, context) => {
407
407
  if (output.statusCode !== 200 && output.statusCode >= 300) {
408
- return deserializeAws_restJson1GetAccountAliasCommandError(output, context);
408
+ return de_GetAccountAliasCommandError(output, context);
409
409
  }
410
410
  const contents = map({
411
411
  $metadata: deserializeMetadata(output),
@@ -416,8 +416,8 @@ const deserializeAws_restJson1GetAccountAliasCommand = async (output, context) =
416
416
  }
417
417
  return contents;
418
418
  };
419
- exports.deserializeAws_restJson1GetAccountAliasCommand = deserializeAws_restJson1GetAccountAliasCommand;
420
- const deserializeAws_restJson1GetAccountAliasCommandError = async (output, context) => {
419
+ exports.de_GetAccountAliasCommand = de_GetAccountAliasCommand;
420
+ const de_GetAccountAliasCommandError = async (output, context) => {
421
421
  const parsedOutput = {
422
422
  ...output,
423
423
  body: await parseErrorBody(output.body, context),
@@ -426,7 +426,7 @@ const deserializeAws_restJson1GetAccountAliasCommandError = async (output, conte
426
426
  switch (errorCode) {
427
427
  case "InternalServerException":
428
428
  case "com.amazonaws.supportapp#InternalServerException":
429
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
429
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
430
430
  default:
431
431
  const parsedBody = parsedOutput.body;
432
432
  (0, smithy_client_1.throwDefaultError)({
@@ -437,9 +437,9 @@ const deserializeAws_restJson1GetAccountAliasCommandError = async (output, conte
437
437
  });
438
438
  }
439
439
  };
440
- const deserializeAws_restJson1ListSlackChannelConfigurationsCommand = async (output, context) => {
440
+ const de_ListSlackChannelConfigurationsCommand = async (output, context) => {
441
441
  if (output.statusCode !== 200 && output.statusCode >= 300) {
442
- return deserializeAws_restJson1ListSlackChannelConfigurationsCommandError(output, context);
442
+ return de_ListSlackChannelConfigurationsCommandError(output, context);
443
443
  }
444
444
  const contents = map({
445
445
  $metadata: deserializeMetadata(output),
@@ -449,12 +449,12 @@ const deserializeAws_restJson1ListSlackChannelConfigurationsCommand = async (out
449
449
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
450
450
  }
451
451
  if (data.slackChannelConfigurations != null) {
452
- contents.slackChannelConfigurations = deserializeAws_restJson1slackChannelConfigurationList(data.slackChannelConfigurations, context);
452
+ contents.slackChannelConfigurations = de_slackChannelConfigurationList(data.slackChannelConfigurations, context);
453
453
  }
454
454
  return contents;
455
455
  };
456
- exports.deserializeAws_restJson1ListSlackChannelConfigurationsCommand = deserializeAws_restJson1ListSlackChannelConfigurationsCommand;
457
- const deserializeAws_restJson1ListSlackChannelConfigurationsCommandError = async (output, context) => {
456
+ exports.de_ListSlackChannelConfigurationsCommand = de_ListSlackChannelConfigurationsCommand;
457
+ const de_ListSlackChannelConfigurationsCommandError = async (output, context) => {
458
458
  const parsedOutput = {
459
459
  ...output,
460
460
  body: await parseErrorBody(output.body, context),
@@ -463,10 +463,10 @@ const deserializeAws_restJson1ListSlackChannelConfigurationsCommandError = async
463
463
  switch (errorCode) {
464
464
  case "AccessDeniedException":
465
465
  case "com.amazonaws.supportapp#AccessDeniedException":
466
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
466
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
467
467
  case "InternalServerException":
468
468
  case "com.amazonaws.supportapp#InternalServerException":
469
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
469
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
470
470
  default:
471
471
  const parsedBody = parsedOutput.body;
472
472
  (0, smithy_client_1.throwDefaultError)({
@@ -477,9 +477,9 @@ const deserializeAws_restJson1ListSlackChannelConfigurationsCommandError = async
477
477
  });
478
478
  }
479
479
  };
480
- const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = async (output, context) => {
480
+ const de_ListSlackWorkspaceConfigurationsCommand = async (output, context) => {
481
481
  if (output.statusCode !== 200 && output.statusCode >= 300) {
482
- return deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError(output, context);
482
+ return de_ListSlackWorkspaceConfigurationsCommandError(output, context);
483
483
  }
484
484
  const contents = map({
485
485
  $metadata: deserializeMetadata(output),
@@ -489,12 +489,12 @@ const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = async (o
489
489
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
490
490
  }
491
491
  if (data.slackWorkspaceConfigurations != null) {
492
- contents.slackWorkspaceConfigurations = deserializeAws_restJson1SlackWorkspaceConfigurationList(data.slackWorkspaceConfigurations, context);
492
+ contents.slackWorkspaceConfigurations = de_SlackWorkspaceConfigurationList(data.slackWorkspaceConfigurations, context);
493
493
  }
494
494
  return contents;
495
495
  };
496
- exports.deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand;
497
- const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError = async (output, context) => {
496
+ exports.de_ListSlackWorkspaceConfigurationsCommand = de_ListSlackWorkspaceConfigurationsCommand;
497
+ const de_ListSlackWorkspaceConfigurationsCommandError = async (output, context) => {
498
498
  const parsedOutput = {
499
499
  ...output,
500
500
  body: await parseErrorBody(output.body, context),
@@ -503,10 +503,10 @@ const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError = asy
503
503
  switch (errorCode) {
504
504
  case "AccessDeniedException":
505
505
  case "com.amazonaws.supportapp#AccessDeniedException":
506
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
506
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
507
507
  case "InternalServerException":
508
508
  case "com.amazonaws.supportapp#InternalServerException":
509
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
509
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
510
510
  default:
511
511
  const parsedBody = parsedOutput.body;
512
512
  (0, smithy_client_1.throwDefaultError)({
@@ -517,9 +517,9 @@ const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError = asy
517
517
  });
518
518
  }
519
519
  };
520
- const deserializeAws_restJson1PutAccountAliasCommand = async (output, context) => {
520
+ const de_PutAccountAliasCommand = async (output, context) => {
521
521
  if (output.statusCode !== 200 && output.statusCode >= 300) {
522
- return deserializeAws_restJson1PutAccountAliasCommandError(output, context);
522
+ return de_PutAccountAliasCommandError(output, context);
523
523
  }
524
524
  const contents = map({
525
525
  $metadata: deserializeMetadata(output),
@@ -527,8 +527,8 @@ const deserializeAws_restJson1PutAccountAliasCommand = async (output, context) =
527
527
  await collectBody(output.body, context);
528
528
  return contents;
529
529
  };
530
- exports.deserializeAws_restJson1PutAccountAliasCommand = deserializeAws_restJson1PutAccountAliasCommand;
531
- const deserializeAws_restJson1PutAccountAliasCommandError = async (output, context) => {
530
+ exports.de_PutAccountAliasCommand = de_PutAccountAliasCommand;
531
+ const de_PutAccountAliasCommandError = async (output, context) => {
532
532
  const parsedOutput = {
533
533
  ...output,
534
534
  body: await parseErrorBody(output.body, context),
@@ -537,13 +537,13 @@ const deserializeAws_restJson1PutAccountAliasCommandError = async (output, conte
537
537
  switch (errorCode) {
538
538
  case "AccessDeniedException":
539
539
  case "com.amazonaws.supportapp#AccessDeniedException":
540
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
540
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
541
541
  case "InternalServerException":
542
542
  case "com.amazonaws.supportapp#InternalServerException":
543
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
543
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
544
544
  case "ValidationException":
545
545
  case "com.amazonaws.supportapp#ValidationException":
546
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
546
+ throw await de_ValidationExceptionRes(parsedOutput, context);
547
547
  default:
548
548
  const parsedBody = parsedOutput.body;
549
549
  (0, smithy_client_1.throwDefaultError)({
@@ -554,9 +554,9 @@ const deserializeAws_restJson1PutAccountAliasCommandError = async (output, conte
554
554
  });
555
555
  }
556
556
  };
557
- const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = async (output, context) => {
557
+ const de_RegisterSlackWorkspaceForOrganizationCommand = async (output, context) => {
558
558
  if (output.statusCode !== 200 && output.statusCode >= 300) {
559
- return deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError(output, context);
559
+ return de_RegisterSlackWorkspaceForOrganizationCommandError(output, context);
560
560
  }
561
561
  const contents = map({
562
562
  $metadata: deserializeMetadata(output),
@@ -573,8 +573,8 @@ const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = asy
573
573
  }
574
574
  return contents;
575
575
  };
576
- exports.deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand;
577
- const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError = async (output, context) => {
576
+ exports.de_RegisterSlackWorkspaceForOrganizationCommand = de_RegisterSlackWorkspaceForOrganizationCommand;
577
+ const de_RegisterSlackWorkspaceForOrganizationCommandError = async (output, context) => {
578
578
  const parsedOutput = {
579
579
  ...output,
580
580
  body: await parseErrorBody(output.body, context),
@@ -583,19 +583,19 @@ const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError
583
583
  switch (errorCode) {
584
584
  case "AccessDeniedException":
585
585
  case "com.amazonaws.supportapp#AccessDeniedException":
586
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
586
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
587
587
  case "ConflictException":
588
588
  case "com.amazonaws.supportapp#ConflictException":
589
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
589
+ throw await de_ConflictExceptionRes(parsedOutput, context);
590
590
  case "InternalServerException":
591
591
  case "com.amazonaws.supportapp#InternalServerException":
592
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
592
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
593
593
  case "ResourceNotFoundException":
594
594
  case "com.amazonaws.supportapp#ResourceNotFoundException":
595
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
595
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
596
596
  case "ValidationException":
597
597
  case "com.amazonaws.supportapp#ValidationException":
598
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
598
+ throw await de_ValidationExceptionRes(parsedOutput, context);
599
599
  default:
600
600
  const parsedBody = parsedOutput.body;
601
601
  (0, smithy_client_1.throwDefaultError)({
@@ -606,9 +606,9 @@ const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError
606
606
  });
607
607
  }
608
608
  };
609
- const deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (output, context) => {
609
+ const de_UpdateSlackChannelConfigurationCommand = async (output, context) => {
610
610
  if (output.statusCode !== 200 && output.statusCode >= 300) {
611
- return deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError(output, context);
611
+ return de_UpdateSlackChannelConfigurationCommandError(output, context);
612
612
  }
613
613
  const contents = map({
614
614
  $metadata: deserializeMetadata(output),
@@ -640,8 +640,8 @@ const deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (ou
640
640
  }
641
641
  return contents;
642
642
  };
643
- exports.deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = deserializeAws_restJson1UpdateSlackChannelConfigurationCommand;
644
- const deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError = async (output, context) => {
643
+ exports.de_UpdateSlackChannelConfigurationCommand = de_UpdateSlackChannelConfigurationCommand;
644
+ const de_UpdateSlackChannelConfigurationCommandError = async (output, context) => {
645
645
  const parsedOutput = {
646
646
  ...output,
647
647
  body: await parseErrorBody(output.body, context),
@@ -650,19 +650,19 @@ const deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError = asyn
650
650
  switch (errorCode) {
651
651
  case "AccessDeniedException":
652
652
  case "com.amazonaws.supportapp#AccessDeniedException":
653
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
653
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
654
654
  case "ConflictException":
655
655
  case "com.amazonaws.supportapp#ConflictException":
656
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
656
+ throw await de_ConflictExceptionRes(parsedOutput, context);
657
657
  case "InternalServerException":
658
658
  case "com.amazonaws.supportapp#InternalServerException":
659
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
659
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
660
660
  case "ResourceNotFoundException":
661
661
  case "com.amazonaws.supportapp#ResourceNotFoundException":
662
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
662
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
663
663
  case "ValidationException":
664
664
  case "com.amazonaws.supportapp#ValidationException":
665
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
665
+ throw await de_ValidationExceptionRes(parsedOutput, context);
666
666
  default:
667
667
  const parsedBody = parsedOutput.body;
668
668
  (0, smithy_client_1.throwDefaultError)({
@@ -674,7 +674,7 @@ const deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError = asyn
674
674
  }
675
675
  };
676
676
  const map = smithy_client_1.map;
677
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
677
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
678
678
  const contents = map({});
679
679
  const data = parsedOutput.body;
680
680
  if (data.message != null) {
@@ -686,7 +686,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
686
686
  });
687
687
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
688
688
  };
689
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
689
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
690
690
  const contents = map({});
691
691
  const data = parsedOutput.body;
692
692
  if (data.message != null) {
@@ -698,7 +698,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
698
698
  });
699
699
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
700
700
  };
701
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
701
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
702
702
  const contents = map({});
703
703
  const data = parsedOutput.body;
704
704
  if (data.message != null) {
@@ -710,7 +710,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
710
710
  });
711
711
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
712
712
  };
713
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
713
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
714
714
  const contents = map({});
715
715
  const data = parsedOutput.body;
716
716
  if (data.message != null) {
@@ -722,7 +722,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
722
722
  });
723
723
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
724
724
  };
725
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
725
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
726
726
  const contents = map({});
727
727
  const data = parsedOutput.body;
728
728
  if (data.message != null) {
@@ -734,7 +734,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
734
734
  });
735
735
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
736
736
  };
737
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
737
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
738
738
  const contents = map({});
739
739
  const data = parsedOutput.body;
740
740
  if (data.message != null) {
@@ -746,7 +746,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
746
746
  });
747
747
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
748
748
  };
749
- const deserializeAws_restJson1SlackChannelConfiguration = (output, context) => {
749
+ const de_SlackChannelConfiguration = (output, context) => {
750
750
  return {
751
751
  channelId: (0, smithy_client_1.expectString)(output.channelId),
752
752
  channelName: (0, smithy_client_1.expectString)(output.channelName),
@@ -758,32 +758,32 @@ const deserializeAws_restJson1SlackChannelConfiguration = (output, context) => {
758
758
  teamId: (0, smithy_client_1.expectString)(output.teamId),
759
759
  };
760
760
  };
761
- const deserializeAws_restJson1slackChannelConfigurationList = (output, context) => {
761
+ const de_slackChannelConfigurationList = (output, context) => {
762
762
  const retVal = (output || [])
763
763
  .filter((e) => e != null)
764
764
  .map((entry) => {
765
765
  if (entry === null) {
766
766
  return null;
767
767
  }
768
- return deserializeAws_restJson1SlackChannelConfiguration(entry, context);
768
+ return de_SlackChannelConfiguration(entry, context);
769
769
  });
770
770
  return retVal;
771
771
  };
772
- const deserializeAws_restJson1SlackWorkspaceConfiguration = (output, context) => {
772
+ const de_SlackWorkspaceConfiguration = (output, context) => {
773
773
  return {
774
774
  allowOrganizationMemberAccount: (0, smithy_client_1.expectBoolean)(output.allowOrganizationMemberAccount),
775
775
  teamId: (0, smithy_client_1.expectString)(output.teamId),
776
776
  teamName: (0, smithy_client_1.expectString)(output.teamName),
777
777
  };
778
778
  };
779
- const deserializeAws_restJson1SlackWorkspaceConfigurationList = (output, context) => {
779
+ const de_SlackWorkspaceConfigurationList = (output, context) => {
780
780
  const retVal = (output || [])
781
781
  .filter((e) => e != null)
782
782
  .map((entry) => {
783
783
  if (entry === null) {
784
784
  return null;
785
785
  }
786
- return deserializeAws_restJson1SlackWorkspaceConfiguration(entry, context);
786
+ return de_SlackWorkspaceConfiguration(entry, context);
787
787
  });
788
788
  return retVal;
789
789
  };