@aws-sdk/client-pinpoint 3.525.0 → 3.529.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +123 -163
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -339,6 +339,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
339
339
|
var import_types = require("@smithy/types");
|
|
340
340
|
|
|
341
341
|
// src/protocols/Aws_restJson1.ts
|
|
342
|
+
var import_core2 = require("@aws-sdk/core");
|
|
342
343
|
|
|
343
344
|
|
|
344
345
|
|
|
@@ -2392,7 +2393,7 @@ var de_CreateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2392
2393
|
const contents = (0, import_smithy_client.map)({
|
|
2393
2394
|
$metadata: deserializeMetadata(output)
|
|
2394
2395
|
});
|
|
2395
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2396
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2396
2397
|
contents.ApplicationResponse = de_ApplicationResponse(data, context);
|
|
2397
2398
|
return contents;
|
|
2398
2399
|
}, "de_CreateAppCommand");
|
|
@@ -2403,7 +2404,7 @@ var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2403
2404
|
const contents = (0, import_smithy_client.map)({
|
|
2404
2405
|
$metadata: deserializeMetadata(output)
|
|
2405
2406
|
});
|
|
2406
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2407
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2407
2408
|
contents.CampaignResponse = de_CampaignResponse(data, context);
|
|
2408
2409
|
return contents;
|
|
2409
2410
|
}, "de_CreateCampaignCommand");
|
|
@@ -2414,7 +2415,7 @@ var de_CreateEmailTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2414
2415
|
const contents = (0, import_smithy_client.map)({
|
|
2415
2416
|
$metadata: deserializeMetadata(output)
|
|
2416
2417
|
});
|
|
2417
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2418
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2418
2419
|
contents.CreateTemplateMessageBody = (0, import_smithy_client._json)(data);
|
|
2419
2420
|
return contents;
|
|
2420
2421
|
}, "de_CreateEmailTemplateCommand");
|
|
@@ -2425,7 +2426,7 @@ var de_CreateExportJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2425
2426
|
const contents = (0, import_smithy_client.map)({
|
|
2426
2427
|
$metadata: deserializeMetadata(output)
|
|
2427
2428
|
});
|
|
2428
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2429
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2429
2430
|
contents.ExportJobResponse = (0, import_smithy_client._json)(data);
|
|
2430
2431
|
return contents;
|
|
2431
2432
|
}, "de_CreateExportJobCommand");
|
|
@@ -2436,7 +2437,7 @@ var de_CreateImportJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2436
2437
|
const contents = (0, import_smithy_client.map)({
|
|
2437
2438
|
$metadata: deserializeMetadata(output)
|
|
2438
2439
|
});
|
|
2439
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2440
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2440
2441
|
contents.ImportJobResponse = (0, import_smithy_client._json)(data);
|
|
2441
2442
|
return contents;
|
|
2442
2443
|
}, "de_CreateImportJobCommand");
|
|
@@ -2447,7 +2448,7 @@ var de_CreateInAppTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2447
2448
|
const contents = (0, import_smithy_client.map)({
|
|
2448
2449
|
$metadata: deserializeMetadata(output)
|
|
2449
2450
|
});
|
|
2450
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2451
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2451
2452
|
contents.TemplateCreateMessageBody = (0, import_smithy_client._json)(data);
|
|
2452
2453
|
return contents;
|
|
2453
2454
|
}, "de_CreateInAppTemplateCommand");
|
|
@@ -2458,7 +2459,7 @@ var de_CreateJourneyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2458
2459
|
const contents = (0, import_smithy_client.map)({
|
|
2459
2460
|
$metadata: deserializeMetadata(output)
|
|
2460
2461
|
});
|
|
2461
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2462
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2462
2463
|
contents.JourneyResponse = de_JourneyResponse(data, context);
|
|
2463
2464
|
return contents;
|
|
2464
2465
|
}, "de_CreateJourneyCommand");
|
|
@@ -2469,7 +2470,7 @@ var de_CreatePushTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2469
2470
|
const contents = (0, import_smithy_client.map)({
|
|
2470
2471
|
$metadata: deserializeMetadata(output)
|
|
2471
2472
|
});
|
|
2472
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2473
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2473
2474
|
contents.CreateTemplateMessageBody = (0, import_smithy_client._json)(data);
|
|
2474
2475
|
return contents;
|
|
2475
2476
|
}, "de_CreatePushTemplateCommand");
|
|
@@ -2480,7 +2481,7 @@ var de_CreateRecommenderConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
2480
2481
|
const contents = (0, import_smithy_client.map)({
|
|
2481
2482
|
$metadata: deserializeMetadata(output)
|
|
2482
2483
|
});
|
|
2483
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2484
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2484
2485
|
contents.RecommenderConfigurationResponse = (0, import_smithy_client._json)(data);
|
|
2485
2486
|
return contents;
|
|
2486
2487
|
}, "de_CreateRecommenderConfigurationCommand");
|
|
@@ -2491,7 +2492,7 @@ var de_CreateSegmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2491
2492
|
const contents = (0, import_smithy_client.map)({
|
|
2492
2493
|
$metadata: deserializeMetadata(output)
|
|
2493
2494
|
});
|
|
2494
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2495
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2495
2496
|
contents.SegmentResponse = de_SegmentResponse(data, context);
|
|
2496
2497
|
return contents;
|
|
2497
2498
|
}, "de_CreateSegmentCommand");
|
|
@@ -2502,7 +2503,7 @@ var de_CreateSmsTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2502
2503
|
const contents = (0, import_smithy_client.map)({
|
|
2503
2504
|
$metadata: deserializeMetadata(output)
|
|
2504
2505
|
});
|
|
2505
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2506
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2506
2507
|
contents.CreateTemplateMessageBody = (0, import_smithy_client._json)(data);
|
|
2507
2508
|
return contents;
|
|
2508
2509
|
}, "de_CreateSmsTemplateCommand");
|
|
@@ -2513,7 +2514,7 @@ var de_CreateVoiceTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2513
2514
|
const contents = (0, import_smithy_client.map)({
|
|
2514
2515
|
$metadata: deserializeMetadata(output)
|
|
2515
2516
|
});
|
|
2516
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2517
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2517
2518
|
contents.CreateTemplateMessageBody = (0, import_smithy_client._json)(data);
|
|
2518
2519
|
return contents;
|
|
2519
2520
|
}, "de_CreateVoiceTemplateCommand");
|
|
@@ -2524,7 +2525,7 @@ var de_DeleteAdmChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2524
2525
|
const contents = (0, import_smithy_client.map)({
|
|
2525
2526
|
$metadata: deserializeMetadata(output)
|
|
2526
2527
|
});
|
|
2527
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2528
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2528
2529
|
contents.ADMChannelResponse = (0, import_smithy_client._json)(data);
|
|
2529
2530
|
return contents;
|
|
2530
2531
|
}, "de_DeleteAdmChannelCommand");
|
|
@@ -2535,7 +2536,7 @@ var de_DeleteApnsChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2535
2536
|
const contents = (0, import_smithy_client.map)({
|
|
2536
2537
|
$metadata: deserializeMetadata(output)
|
|
2537
2538
|
});
|
|
2538
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2539
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2539
2540
|
contents.APNSChannelResponse = (0, import_smithy_client._json)(data);
|
|
2540
2541
|
return contents;
|
|
2541
2542
|
}, "de_DeleteApnsChannelCommand");
|
|
@@ -2546,7 +2547,7 @@ var de_DeleteApnsSandboxChannelCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2546
2547
|
const contents = (0, import_smithy_client.map)({
|
|
2547
2548
|
$metadata: deserializeMetadata(output)
|
|
2548
2549
|
});
|
|
2549
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2550
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2550
2551
|
contents.APNSSandboxChannelResponse = (0, import_smithy_client._json)(data);
|
|
2551
2552
|
return contents;
|
|
2552
2553
|
}, "de_DeleteApnsSandboxChannelCommand");
|
|
@@ -2557,7 +2558,7 @@ var de_DeleteApnsVoipChannelCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2557
2558
|
const contents = (0, import_smithy_client.map)({
|
|
2558
2559
|
$metadata: deserializeMetadata(output)
|
|
2559
2560
|
});
|
|
2560
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2561
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2561
2562
|
contents.APNSVoipChannelResponse = (0, import_smithy_client._json)(data);
|
|
2562
2563
|
return contents;
|
|
2563
2564
|
}, "de_DeleteApnsVoipChannelCommand");
|
|
@@ -2568,7 +2569,7 @@ var de_DeleteApnsVoipSandboxChannelCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2568
2569
|
const contents = (0, import_smithy_client.map)({
|
|
2569
2570
|
$metadata: deserializeMetadata(output)
|
|
2570
2571
|
});
|
|
2571
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2572
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2572
2573
|
contents.APNSVoipSandboxChannelResponse = (0, import_smithy_client._json)(data);
|
|
2573
2574
|
return contents;
|
|
2574
2575
|
}, "de_DeleteApnsVoipSandboxChannelCommand");
|
|
@@ -2579,7 +2580,7 @@ var de_DeleteAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2579
2580
|
const contents = (0, import_smithy_client.map)({
|
|
2580
2581
|
$metadata: deserializeMetadata(output)
|
|
2581
2582
|
});
|
|
2582
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2583
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2583
2584
|
contents.ApplicationResponse = de_ApplicationResponse(data, context);
|
|
2584
2585
|
return contents;
|
|
2585
2586
|
}, "de_DeleteAppCommand");
|
|
@@ -2590,7 +2591,7 @@ var de_DeleteBaiduChannelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2590
2591
|
const contents = (0, import_smithy_client.map)({
|
|
2591
2592
|
$metadata: deserializeMetadata(output)
|
|
2592
2593
|
});
|
|
2593
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2594
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2594
2595
|
contents.BaiduChannelResponse = (0, import_smithy_client._json)(data);
|
|
2595
2596
|
return contents;
|
|
2596
2597
|
}, "de_DeleteBaiduChannelCommand");
|
|
@@ -2601,7 +2602,7 @@ var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2601
2602
|
const contents = (0, import_smithy_client.map)({
|
|
2602
2603
|
$metadata: deserializeMetadata(output)
|
|
2603
2604
|
});
|
|
2604
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2605
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2605
2606
|
contents.CampaignResponse = de_CampaignResponse(data, context);
|
|
2606
2607
|
return contents;
|
|
2607
2608
|
}, "de_DeleteCampaignCommand");
|
|
@@ -2612,7 +2613,7 @@ var de_DeleteEmailChannelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2612
2613
|
const contents = (0, import_smithy_client.map)({
|
|
2613
2614
|
$metadata: deserializeMetadata(output)
|
|
2614
2615
|
});
|
|
2615
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2616
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2616
2617
|
contents.EmailChannelResponse = (0, import_smithy_client._json)(data);
|
|
2617
2618
|
return contents;
|
|
2618
2619
|
}, "de_DeleteEmailChannelCommand");
|
|
@@ -2623,7 +2624,7 @@ var de_DeleteEmailTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2623
2624
|
const contents = (0, import_smithy_client.map)({
|
|
2624
2625
|
$metadata: deserializeMetadata(output)
|
|
2625
2626
|
});
|
|
2626
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2627
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2627
2628
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
2628
2629
|
return contents;
|
|
2629
2630
|
}, "de_DeleteEmailTemplateCommand");
|
|
@@ -2634,7 +2635,7 @@ var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2634
2635
|
const contents = (0, import_smithy_client.map)({
|
|
2635
2636
|
$metadata: deserializeMetadata(output)
|
|
2636
2637
|
});
|
|
2637
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2638
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2638
2639
|
contents.EndpointResponse = de_EndpointResponse(data, context);
|
|
2639
2640
|
return contents;
|
|
2640
2641
|
}, "de_DeleteEndpointCommand");
|
|
@@ -2645,7 +2646,7 @@ var de_DeleteEventStreamCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2645
2646
|
const contents = (0, import_smithy_client.map)({
|
|
2646
2647
|
$metadata: deserializeMetadata(output)
|
|
2647
2648
|
});
|
|
2648
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2649
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2649
2650
|
contents.EventStream = (0, import_smithy_client._json)(data);
|
|
2650
2651
|
return contents;
|
|
2651
2652
|
}, "de_DeleteEventStreamCommand");
|
|
@@ -2656,7 +2657,7 @@ var de_DeleteGcmChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2656
2657
|
const contents = (0, import_smithy_client.map)({
|
|
2657
2658
|
$metadata: deserializeMetadata(output)
|
|
2658
2659
|
});
|
|
2659
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2660
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2660
2661
|
contents.GCMChannelResponse = (0, import_smithy_client._json)(data);
|
|
2661
2662
|
return contents;
|
|
2662
2663
|
}, "de_DeleteGcmChannelCommand");
|
|
@@ -2667,7 +2668,7 @@ var de_DeleteInAppTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2667
2668
|
const contents = (0, import_smithy_client.map)({
|
|
2668
2669
|
$metadata: deserializeMetadata(output)
|
|
2669
2670
|
});
|
|
2670
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2671
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2671
2672
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
2672
2673
|
return contents;
|
|
2673
2674
|
}, "de_DeleteInAppTemplateCommand");
|
|
@@ -2678,7 +2679,7 @@ var de_DeleteJourneyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2678
2679
|
const contents = (0, import_smithy_client.map)({
|
|
2679
2680
|
$metadata: deserializeMetadata(output)
|
|
2680
2681
|
});
|
|
2681
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2682
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2682
2683
|
contents.JourneyResponse = de_JourneyResponse(data, context);
|
|
2683
2684
|
return contents;
|
|
2684
2685
|
}, "de_DeleteJourneyCommand");
|
|
@@ -2689,7 +2690,7 @@ var de_DeletePushTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2689
2690
|
const contents = (0, import_smithy_client.map)({
|
|
2690
2691
|
$metadata: deserializeMetadata(output)
|
|
2691
2692
|
});
|
|
2692
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2693
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2693
2694
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
2694
2695
|
return contents;
|
|
2695
2696
|
}, "de_DeletePushTemplateCommand");
|
|
@@ -2700,7 +2701,7 @@ var de_DeleteRecommenderConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
2700
2701
|
const contents = (0, import_smithy_client.map)({
|
|
2701
2702
|
$metadata: deserializeMetadata(output)
|
|
2702
2703
|
});
|
|
2703
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2704
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2704
2705
|
contents.RecommenderConfigurationResponse = (0, import_smithy_client._json)(data);
|
|
2705
2706
|
return contents;
|
|
2706
2707
|
}, "de_DeleteRecommenderConfigurationCommand");
|
|
@@ -2711,7 +2712,7 @@ var de_DeleteSegmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2711
2712
|
const contents = (0, import_smithy_client.map)({
|
|
2712
2713
|
$metadata: deserializeMetadata(output)
|
|
2713
2714
|
});
|
|
2714
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2715
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2715
2716
|
contents.SegmentResponse = de_SegmentResponse(data, context);
|
|
2716
2717
|
return contents;
|
|
2717
2718
|
}, "de_DeleteSegmentCommand");
|
|
@@ -2722,7 +2723,7 @@ var de_DeleteSmsChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2722
2723
|
const contents = (0, import_smithy_client.map)({
|
|
2723
2724
|
$metadata: deserializeMetadata(output)
|
|
2724
2725
|
});
|
|
2725
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2726
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2726
2727
|
contents.SMSChannelResponse = (0, import_smithy_client._json)(data);
|
|
2727
2728
|
return contents;
|
|
2728
2729
|
}, "de_DeleteSmsChannelCommand");
|
|
@@ -2733,7 +2734,7 @@ var de_DeleteSmsTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2733
2734
|
const contents = (0, import_smithy_client.map)({
|
|
2734
2735
|
$metadata: deserializeMetadata(output)
|
|
2735
2736
|
});
|
|
2736
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2737
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2737
2738
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
2738
2739
|
return contents;
|
|
2739
2740
|
}, "de_DeleteSmsTemplateCommand");
|
|
@@ -2744,7 +2745,7 @@ var de_DeleteUserEndpointsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2744
2745
|
const contents = (0, import_smithy_client.map)({
|
|
2745
2746
|
$metadata: deserializeMetadata(output)
|
|
2746
2747
|
});
|
|
2747
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2748
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2748
2749
|
contents.EndpointsResponse = de_EndpointsResponse(data, context);
|
|
2749
2750
|
return contents;
|
|
2750
2751
|
}, "de_DeleteUserEndpointsCommand");
|
|
@@ -2755,7 +2756,7 @@ var de_DeleteVoiceChannelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2755
2756
|
const contents = (0, import_smithy_client.map)({
|
|
2756
2757
|
$metadata: deserializeMetadata(output)
|
|
2757
2758
|
});
|
|
2758
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2759
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2759
2760
|
contents.VoiceChannelResponse = (0, import_smithy_client._json)(data);
|
|
2760
2761
|
return contents;
|
|
2761
2762
|
}, "de_DeleteVoiceChannelCommand");
|
|
@@ -2766,7 +2767,7 @@ var de_DeleteVoiceTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2766
2767
|
const contents = (0, import_smithy_client.map)({
|
|
2767
2768
|
$metadata: deserializeMetadata(output)
|
|
2768
2769
|
});
|
|
2769
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2770
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2770
2771
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
2771
2772
|
return contents;
|
|
2772
2773
|
}, "de_DeleteVoiceTemplateCommand");
|
|
@@ -2777,7 +2778,7 @@ var de_GetAdmChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2777
2778
|
const contents = (0, import_smithy_client.map)({
|
|
2778
2779
|
$metadata: deserializeMetadata(output)
|
|
2779
2780
|
});
|
|
2780
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2781
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2781
2782
|
contents.ADMChannelResponse = (0, import_smithy_client._json)(data);
|
|
2782
2783
|
return contents;
|
|
2783
2784
|
}, "de_GetAdmChannelCommand");
|
|
@@ -2788,7 +2789,7 @@ var de_GetApnsChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2788
2789
|
const contents = (0, import_smithy_client.map)({
|
|
2789
2790
|
$metadata: deserializeMetadata(output)
|
|
2790
2791
|
});
|
|
2791
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2792
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2792
2793
|
contents.APNSChannelResponse = (0, import_smithy_client._json)(data);
|
|
2793
2794
|
return contents;
|
|
2794
2795
|
}, "de_GetApnsChannelCommand");
|
|
@@ -2799,7 +2800,7 @@ var de_GetApnsSandboxChannelCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2799
2800
|
const contents = (0, import_smithy_client.map)({
|
|
2800
2801
|
$metadata: deserializeMetadata(output)
|
|
2801
2802
|
});
|
|
2802
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2803
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2803
2804
|
contents.APNSSandboxChannelResponse = (0, import_smithy_client._json)(data);
|
|
2804
2805
|
return contents;
|
|
2805
2806
|
}, "de_GetApnsSandboxChannelCommand");
|
|
@@ -2810,7 +2811,7 @@ var de_GetApnsVoipChannelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2810
2811
|
const contents = (0, import_smithy_client.map)({
|
|
2811
2812
|
$metadata: deserializeMetadata(output)
|
|
2812
2813
|
});
|
|
2813
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2814
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2814
2815
|
contents.APNSVoipChannelResponse = (0, import_smithy_client._json)(data);
|
|
2815
2816
|
return contents;
|
|
2816
2817
|
}, "de_GetApnsVoipChannelCommand");
|
|
@@ -2821,7 +2822,7 @@ var de_GetApnsVoipSandboxChannelCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2821
2822
|
const contents = (0, import_smithy_client.map)({
|
|
2822
2823
|
$metadata: deserializeMetadata(output)
|
|
2823
2824
|
});
|
|
2824
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2825
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2825
2826
|
contents.APNSVoipSandboxChannelResponse = (0, import_smithy_client._json)(data);
|
|
2826
2827
|
return contents;
|
|
2827
2828
|
}, "de_GetApnsVoipSandboxChannelCommand");
|
|
@@ -2832,7 +2833,7 @@ var de_GetAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2832
2833
|
const contents = (0, import_smithy_client.map)({
|
|
2833
2834
|
$metadata: deserializeMetadata(output)
|
|
2834
2835
|
});
|
|
2835
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2836
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2836
2837
|
contents.ApplicationResponse = de_ApplicationResponse(data, context);
|
|
2837
2838
|
return contents;
|
|
2838
2839
|
}, "de_GetAppCommand");
|
|
@@ -2843,7 +2844,7 @@ var de_GetApplicationDateRangeKpiCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2843
2844
|
const contents = (0, import_smithy_client.map)({
|
|
2844
2845
|
$metadata: deserializeMetadata(output)
|
|
2845
2846
|
});
|
|
2846
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2847
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2847
2848
|
contents.ApplicationDateRangeKpiResponse = de_ApplicationDateRangeKpiResponse(data, context);
|
|
2848
2849
|
return contents;
|
|
2849
2850
|
}, "de_GetApplicationDateRangeKpiCommand");
|
|
@@ -2854,7 +2855,7 @@ var de_GetApplicationSettingsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2854
2855
|
const contents = (0, import_smithy_client.map)({
|
|
2855
2856
|
$metadata: deserializeMetadata(output)
|
|
2856
2857
|
});
|
|
2857
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2858
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2858
2859
|
contents.ApplicationSettingsResource = (0, import_smithy_client._json)(data);
|
|
2859
2860
|
return contents;
|
|
2860
2861
|
}, "de_GetApplicationSettingsCommand");
|
|
@@ -2865,7 +2866,7 @@ var de_GetAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2865
2866
|
const contents = (0, import_smithy_client.map)({
|
|
2866
2867
|
$metadata: deserializeMetadata(output)
|
|
2867
2868
|
});
|
|
2868
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2869
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2869
2870
|
contents.ApplicationsResponse = de_ApplicationsResponse(data, context);
|
|
2870
2871
|
return contents;
|
|
2871
2872
|
}, "de_GetAppsCommand");
|
|
@@ -2876,7 +2877,7 @@ var de_GetBaiduChannelCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2876
2877
|
const contents = (0, import_smithy_client.map)({
|
|
2877
2878
|
$metadata: deserializeMetadata(output)
|
|
2878
2879
|
});
|
|
2879
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2880
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2880
2881
|
contents.BaiduChannelResponse = (0, import_smithy_client._json)(data);
|
|
2881
2882
|
return contents;
|
|
2882
2883
|
}, "de_GetBaiduChannelCommand");
|
|
@@ -2887,7 +2888,7 @@ var de_GetCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2887
2888
|
const contents = (0, import_smithy_client.map)({
|
|
2888
2889
|
$metadata: deserializeMetadata(output)
|
|
2889
2890
|
});
|
|
2890
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2891
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2891
2892
|
contents.CampaignResponse = de_CampaignResponse(data, context);
|
|
2892
2893
|
return contents;
|
|
2893
2894
|
}, "de_GetCampaignCommand");
|
|
@@ -2898,7 +2899,7 @@ var de_GetCampaignActivitiesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2898
2899
|
const contents = (0, import_smithy_client.map)({
|
|
2899
2900
|
$metadata: deserializeMetadata(output)
|
|
2900
2901
|
});
|
|
2901
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2902
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2902
2903
|
contents.ActivitiesResponse = (0, import_smithy_client._json)(data);
|
|
2903
2904
|
return contents;
|
|
2904
2905
|
}, "de_GetCampaignActivitiesCommand");
|
|
@@ -2909,7 +2910,7 @@ var de_GetCampaignDateRangeKpiCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2909
2910
|
const contents = (0, import_smithy_client.map)({
|
|
2910
2911
|
$metadata: deserializeMetadata(output)
|
|
2911
2912
|
});
|
|
2912
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2913
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2913
2914
|
contents.CampaignDateRangeKpiResponse = de_CampaignDateRangeKpiResponse(data, context);
|
|
2914
2915
|
return contents;
|
|
2915
2916
|
}, "de_GetCampaignDateRangeKpiCommand");
|
|
@@ -2920,7 +2921,7 @@ var de_GetCampaignsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2920
2921
|
const contents = (0, import_smithy_client.map)({
|
|
2921
2922
|
$metadata: deserializeMetadata(output)
|
|
2922
2923
|
});
|
|
2923
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2924
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2924
2925
|
contents.CampaignsResponse = de_CampaignsResponse(data, context);
|
|
2925
2926
|
return contents;
|
|
2926
2927
|
}, "de_GetCampaignsCommand");
|
|
@@ -2931,7 +2932,7 @@ var de_GetCampaignVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2931
2932
|
const contents = (0, import_smithy_client.map)({
|
|
2932
2933
|
$metadata: deserializeMetadata(output)
|
|
2933
2934
|
});
|
|
2934
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2935
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2935
2936
|
contents.CampaignResponse = de_CampaignResponse(data, context);
|
|
2936
2937
|
return contents;
|
|
2937
2938
|
}, "de_GetCampaignVersionCommand");
|
|
@@ -2942,7 +2943,7 @@ var de_GetCampaignVersionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2942
2943
|
const contents = (0, import_smithy_client.map)({
|
|
2943
2944
|
$metadata: deserializeMetadata(output)
|
|
2944
2945
|
});
|
|
2945
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2946
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2946
2947
|
contents.CampaignsResponse = de_CampaignsResponse(data, context);
|
|
2947
2948
|
return contents;
|
|
2948
2949
|
}, "de_GetCampaignVersionsCommand");
|
|
@@ -2953,7 +2954,7 @@ var de_GetChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2953
2954
|
const contents = (0, import_smithy_client.map)({
|
|
2954
2955
|
$metadata: deserializeMetadata(output)
|
|
2955
2956
|
});
|
|
2956
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2957
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2957
2958
|
contents.ChannelsResponse = (0, import_smithy_client._json)(data);
|
|
2958
2959
|
return contents;
|
|
2959
2960
|
}, "de_GetChannelsCommand");
|
|
@@ -2964,7 +2965,7 @@ var de_GetEmailChannelCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2964
2965
|
const contents = (0, import_smithy_client.map)({
|
|
2965
2966
|
$metadata: deserializeMetadata(output)
|
|
2966
2967
|
});
|
|
2967
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2968
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2968
2969
|
contents.EmailChannelResponse = (0, import_smithy_client._json)(data);
|
|
2969
2970
|
return contents;
|
|
2970
2971
|
}, "de_GetEmailChannelCommand");
|
|
@@ -2975,7 +2976,7 @@ var de_GetEmailTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2975
2976
|
const contents = (0, import_smithy_client.map)({
|
|
2976
2977
|
$metadata: deserializeMetadata(output)
|
|
2977
2978
|
});
|
|
2978
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2979
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2979
2980
|
contents.EmailTemplateResponse = de_EmailTemplateResponse(data, context);
|
|
2980
2981
|
return contents;
|
|
2981
2982
|
}, "de_GetEmailTemplateCommand");
|
|
@@ -2986,7 +2987,7 @@ var de_GetEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2986
2987
|
const contents = (0, import_smithy_client.map)({
|
|
2987
2988
|
$metadata: deserializeMetadata(output)
|
|
2988
2989
|
});
|
|
2989
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
2990
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
2990
2991
|
contents.EndpointResponse = de_EndpointResponse(data, context);
|
|
2991
2992
|
return contents;
|
|
2992
2993
|
}, "de_GetEndpointCommand");
|
|
@@ -2997,7 +2998,7 @@ var de_GetEventStreamCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2997
2998
|
const contents = (0, import_smithy_client.map)({
|
|
2998
2999
|
$metadata: deserializeMetadata(output)
|
|
2999
3000
|
});
|
|
3000
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3001
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3001
3002
|
contents.EventStream = (0, import_smithy_client._json)(data);
|
|
3002
3003
|
return contents;
|
|
3003
3004
|
}, "de_GetEventStreamCommand");
|
|
@@ -3008,7 +3009,7 @@ var de_GetExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3008
3009
|
const contents = (0, import_smithy_client.map)({
|
|
3009
3010
|
$metadata: deserializeMetadata(output)
|
|
3010
3011
|
});
|
|
3011
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3012
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3012
3013
|
contents.ExportJobResponse = (0, import_smithy_client._json)(data);
|
|
3013
3014
|
return contents;
|
|
3014
3015
|
}, "de_GetExportJobCommand");
|
|
@@ -3019,7 +3020,7 @@ var de_GetExportJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3019
3020
|
const contents = (0, import_smithy_client.map)({
|
|
3020
3021
|
$metadata: deserializeMetadata(output)
|
|
3021
3022
|
});
|
|
3022
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3023
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3023
3024
|
contents.ExportJobsResponse = (0, import_smithy_client._json)(data);
|
|
3024
3025
|
return contents;
|
|
3025
3026
|
}, "de_GetExportJobsCommand");
|
|
@@ -3030,7 +3031,7 @@ var de_GetGcmChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3030
3031
|
const contents = (0, import_smithy_client.map)({
|
|
3031
3032
|
$metadata: deserializeMetadata(output)
|
|
3032
3033
|
});
|
|
3033
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3034
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3034
3035
|
contents.GCMChannelResponse = (0, import_smithy_client._json)(data);
|
|
3035
3036
|
return contents;
|
|
3036
3037
|
}, "de_GetGcmChannelCommand");
|
|
@@ -3041,7 +3042,7 @@ var de_GetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3041
3042
|
const contents = (0, import_smithy_client.map)({
|
|
3042
3043
|
$metadata: deserializeMetadata(output)
|
|
3043
3044
|
});
|
|
3044
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3045
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3045
3046
|
contents.ImportJobResponse = (0, import_smithy_client._json)(data);
|
|
3046
3047
|
return contents;
|
|
3047
3048
|
}, "de_GetImportJobCommand");
|
|
@@ -3052,7 +3053,7 @@ var de_GetImportJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3052
3053
|
const contents = (0, import_smithy_client.map)({
|
|
3053
3054
|
$metadata: deserializeMetadata(output)
|
|
3054
3055
|
});
|
|
3055
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3056
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3056
3057
|
contents.ImportJobsResponse = (0, import_smithy_client._json)(data);
|
|
3057
3058
|
return contents;
|
|
3058
3059
|
}, "de_GetImportJobsCommand");
|
|
@@ -3063,7 +3064,7 @@ var de_GetInAppMessagesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3063
3064
|
const contents = (0, import_smithy_client.map)({
|
|
3064
3065
|
$metadata: deserializeMetadata(output)
|
|
3065
3066
|
});
|
|
3066
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3067
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3067
3068
|
contents.InAppMessagesResponse = de_InAppMessagesResponse(data, context);
|
|
3068
3069
|
return contents;
|
|
3069
3070
|
}, "de_GetInAppMessagesCommand");
|
|
@@ -3074,7 +3075,7 @@ var de_GetInAppTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3074
3075
|
const contents = (0, import_smithy_client.map)({
|
|
3075
3076
|
$metadata: deserializeMetadata(output)
|
|
3076
3077
|
});
|
|
3077
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3078
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3078
3079
|
contents.InAppTemplateResponse = de_InAppTemplateResponse(data, context);
|
|
3079
3080
|
return contents;
|
|
3080
3081
|
}, "de_GetInAppTemplateCommand");
|
|
@@ -3085,7 +3086,7 @@ var de_GetJourneyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3085
3086
|
const contents = (0, import_smithy_client.map)({
|
|
3086
3087
|
$metadata: deserializeMetadata(output)
|
|
3087
3088
|
});
|
|
3088
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3089
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3089
3090
|
contents.JourneyResponse = de_JourneyResponse(data, context);
|
|
3090
3091
|
return contents;
|
|
3091
3092
|
}, "de_GetJourneyCommand");
|
|
@@ -3096,7 +3097,7 @@ var de_GetJourneyDateRangeKpiCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3096
3097
|
const contents = (0, import_smithy_client.map)({
|
|
3097
3098
|
$metadata: deserializeMetadata(output)
|
|
3098
3099
|
});
|
|
3099
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3100
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3100
3101
|
contents.JourneyDateRangeKpiResponse = de_JourneyDateRangeKpiResponse(data, context);
|
|
3101
3102
|
return contents;
|
|
3102
3103
|
}, "de_GetJourneyDateRangeKpiCommand");
|
|
@@ -3107,7 +3108,7 @@ var de_GetJourneyExecutionActivityMetricsCommand = /* @__PURE__ */ __name(async
|
|
|
3107
3108
|
const contents = (0, import_smithy_client.map)({
|
|
3108
3109
|
$metadata: deserializeMetadata(output)
|
|
3109
3110
|
});
|
|
3110
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3111
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3111
3112
|
contents.JourneyExecutionActivityMetricsResponse = (0, import_smithy_client._json)(data);
|
|
3112
3113
|
return contents;
|
|
3113
3114
|
}, "de_GetJourneyExecutionActivityMetricsCommand");
|
|
@@ -3118,7 +3119,7 @@ var de_GetJourneyExecutionMetricsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3118
3119
|
const contents = (0, import_smithy_client.map)({
|
|
3119
3120
|
$metadata: deserializeMetadata(output)
|
|
3120
3121
|
});
|
|
3121
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3122
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3122
3123
|
contents.JourneyExecutionMetricsResponse = (0, import_smithy_client._json)(data);
|
|
3123
3124
|
return contents;
|
|
3124
3125
|
}, "de_GetJourneyExecutionMetricsCommand");
|
|
@@ -3129,7 +3130,7 @@ var de_GetJourneyRunExecutionActivityMetricsCommand = /* @__PURE__ */ __name(asy
|
|
|
3129
3130
|
const contents = (0, import_smithy_client.map)({
|
|
3130
3131
|
$metadata: deserializeMetadata(output)
|
|
3131
3132
|
});
|
|
3132
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3133
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3133
3134
|
contents.JourneyRunExecutionActivityMetricsResponse = (0, import_smithy_client._json)(data);
|
|
3134
3135
|
return contents;
|
|
3135
3136
|
}, "de_GetJourneyRunExecutionActivityMetricsCommand");
|
|
@@ -3140,7 +3141,7 @@ var de_GetJourneyRunExecutionMetricsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3140
3141
|
const contents = (0, import_smithy_client.map)({
|
|
3141
3142
|
$metadata: deserializeMetadata(output)
|
|
3142
3143
|
});
|
|
3143
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3144
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3144
3145
|
contents.JourneyRunExecutionMetricsResponse = (0, import_smithy_client._json)(data);
|
|
3145
3146
|
return contents;
|
|
3146
3147
|
}, "de_GetJourneyRunExecutionMetricsCommand");
|
|
@@ -3151,7 +3152,7 @@ var de_GetJourneyRunsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3151
3152
|
const contents = (0, import_smithy_client.map)({
|
|
3152
3153
|
$metadata: deserializeMetadata(output)
|
|
3153
3154
|
});
|
|
3154
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3155
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3155
3156
|
contents.JourneyRunsResponse = (0, import_smithy_client._json)(data);
|
|
3156
3157
|
return contents;
|
|
3157
3158
|
}, "de_GetJourneyRunsCommand");
|
|
@@ -3162,7 +3163,7 @@ var de_GetPushTemplateCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3162
3163
|
const contents = (0, import_smithy_client.map)({
|
|
3163
3164
|
$metadata: deserializeMetadata(output)
|
|
3164
3165
|
});
|
|
3165
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3166
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3166
3167
|
contents.PushNotificationTemplateResponse = de_PushNotificationTemplateResponse(data, context);
|
|
3167
3168
|
return contents;
|
|
3168
3169
|
}, "de_GetPushTemplateCommand");
|
|
@@ -3173,7 +3174,7 @@ var de_GetRecommenderConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
3173
3174
|
const contents = (0, import_smithy_client.map)({
|
|
3174
3175
|
$metadata: deserializeMetadata(output)
|
|
3175
3176
|
});
|
|
3176
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3177
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3177
3178
|
contents.RecommenderConfigurationResponse = (0, import_smithy_client._json)(data);
|
|
3178
3179
|
return contents;
|
|
3179
3180
|
}, "de_GetRecommenderConfigurationCommand");
|
|
@@ -3184,7 +3185,7 @@ var de_GetRecommenderConfigurationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3184
3185
|
const contents = (0, import_smithy_client.map)({
|
|
3185
3186
|
$metadata: deserializeMetadata(output)
|
|
3186
3187
|
});
|
|
3187
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3188
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3188
3189
|
contents.ListRecommenderConfigurationsResponse = (0, import_smithy_client._json)(data);
|
|
3189
3190
|
return contents;
|
|
3190
3191
|
}, "de_GetRecommenderConfigurationsCommand");
|
|
@@ -3195,7 +3196,7 @@ var de_GetSegmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3195
3196
|
const contents = (0, import_smithy_client.map)({
|
|
3196
3197
|
$metadata: deserializeMetadata(output)
|
|
3197
3198
|
});
|
|
3198
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3199
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3199
3200
|
contents.SegmentResponse = de_SegmentResponse(data, context);
|
|
3200
3201
|
return contents;
|
|
3201
3202
|
}, "de_GetSegmentCommand");
|
|
@@ -3206,7 +3207,7 @@ var de_GetSegmentExportJobsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3206
3207
|
const contents = (0, import_smithy_client.map)({
|
|
3207
3208
|
$metadata: deserializeMetadata(output)
|
|
3208
3209
|
});
|
|
3209
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3210
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3210
3211
|
contents.ExportJobsResponse = (0, import_smithy_client._json)(data);
|
|
3211
3212
|
return contents;
|
|
3212
3213
|
}, "de_GetSegmentExportJobsCommand");
|
|
@@ -3217,7 +3218,7 @@ var de_GetSegmentImportJobsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3217
3218
|
const contents = (0, import_smithy_client.map)({
|
|
3218
3219
|
$metadata: deserializeMetadata(output)
|
|
3219
3220
|
});
|
|
3220
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3221
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3221
3222
|
contents.ImportJobsResponse = (0, import_smithy_client._json)(data);
|
|
3222
3223
|
return contents;
|
|
3223
3224
|
}, "de_GetSegmentImportJobsCommand");
|
|
@@ -3228,7 +3229,7 @@ var de_GetSegmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3228
3229
|
const contents = (0, import_smithy_client.map)({
|
|
3229
3230
|
$metadata: deserializeMetadata(output)
|
|
3230
3231
|
});
|
|
3231
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3232
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3232
3233
|
contents.SegmentsResponse = de_SegmentsResponse(data, context);
|
|
3233
3234
|
return contents;
|
|
3234
3235
|
}, "de_GetSegmentsCommand");
|
|
@@ -3239,7 +3240,7 @@ var de_GetSegmentVersionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3239
3240
|
const contents = (0, import_smithy_client.map)({
|
|
3240
3241
|
$metadata: deserializeMetadata(output)
|
|
3241
3242
|
});
|
|
3242
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3243
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3243
3244
|
contents.SegmentResponse = de_SegmentResponse(data, context);
|
|
3244
3245
|
return contents;
|
|
3245
3246
|
}, "de_GetSegmentVersionCommand");
|
|
@@ -3250,7 +3251,7 @@ var de_GetSegmentVersionsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3250
3251
|
const contents = (0, import_smithy_client.map)({
|
|
3251
3252
|
$metadata: deserializeMetadata(output)
|
|
3252
3253
|
});
|
|
3253
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3254
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3254
3255
|
contents.SegmentsResponse = de_SegmentsResponse(data, context);
|
|
3255
3256
|
return contents;
|
|
3256
3257
|
}, "de_GetSegmentVersionsCommand");
|
|
@@ -3261,7 +3262,7 @@ var de_GetSmsChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3261
3262
|
const contents = (0, import_smithy_client.map)({
|
|
3262
3263
|
$metadata: deserializeMetadata(output)
|
|
3263
3264
|
});
|
|
3264
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3265
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3265
3266
|
contents.SMSChannelResponse = (0, import_smithy_client._json)(data);
|
|
3266
3267
|
return contents;
|
|
3267
3268
|
}, "de_GetSmsChannelCommand");
|
|
@@ -3272,7 +3273,7 @@ var de_GetSmsTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3272
3273
|
const contents = (0, import_smithy_client.map)({
|
|
3273
3274
|
$metadata: deserializeMetadata(output)
|
|
3274
3275
|
});
|
|
3275
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3276
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3276
3277
|
contents.SMSTemplateResponse = de_SMSTemplateResponse(data, context);
|
|
3277
3278
|
return contents;
|
|
3278
3279
|
}, "de_GetSmsTemplateCommand");
|
|
@@ -3283,7 +3284,7 @@ var de_GetUserEndpointsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3283
3284
|
const contents = (0, import_smithy_client.map)({
|
|
3284
3285
|
$metadata: deserializeMetadata(output)
|
|
3285
3286
|
});
|
|
3286
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3287
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3287
3288
|
contents.EndpointsResponse = de_EndpointsResponse(data, context);
|
|
3288
3289
|
return contents;
|
|
3289
3290
|
}, "de_GetUserEndpointsCommand");
|
|
@@ -3294,7 +3295,7 @@ var de_GetVoiceChannelCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3294
3295
|
const contents = (0, import_smithy_client.map)({
|
|
3295
3296
|
$metadata: deserializeMetadata(output)
|
|
3296
3297
|
});
|
|
3297
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3298
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3298
3299
|
contents.VoiceChannelResponse = (0, import_smithy_client._json)(data);
|
|
3299
3300
|
return contents;
|
|
3300
3301
|
}, "de_GetVoiceChannelCommand");
|
|
@@ -3305,7 +3306,7 @@ var de_GetVoiceTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3305
3306
|
const contents = (0, import_smithy_client.map)({
|
|
3306
3307
|
$metadata: deserializeMetadata(output)
|
|
3307
3308
|
});
|
|
3308
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3309
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3309
3310
|
contents.VoiceTemplateResponse = de_VoiceTemplateResponse(data, context);
|
|
3310
3311
|
return contents;
|
|
3311
3312
|
}, "de_GetVoiceTemplateCommand");
|
|
@@ -3316,7 +3317,7 @@ var de_ListJourneysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3316
3317
|
const contents = (0, import_smithy_client.map)({
|
|
3317
3318
|
$metadata: deserializeMetadata(output)
|
|
3318
3319
|
});
|
|
3319
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3320
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3320
3321
|
contents.JourneysResponse = de_JourneysResponse(data, context);
|
|
3321
3322
|
return contents;
|
|
3322
3323
|
}, "de_ListJourneysCommand");
|
|
@@ -3327,7 +3328,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3327
3328
|
const contents = (0, import_smithy_client.map)({
|
|
3328
3329
|
$metadata: deserializeMetadata(output)
|
|
3329
3330
|
});
|
|
3330
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3331
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3331
3332
|
contents.TagsModel = de_TagsModel(data, context);
|
|
3332
3333
|
return contents;
|
|
3333
3334
|
}, "de_ListTagsForResourceCommand");
|
|
@@ -3338,7 +3339,7 @@ var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3338
3339
|
const contents = (0, import_smithy_client.map)({
|
|
3339
3340
|
$metadata: deserializeMetadata(output)
|
|
3340
3341
|
});
|
|
3341
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3342
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3342
3343
|
contents.TemplatesResponse = de_TemplatesResponse(data, context);
|
|
3343
3344
|
return contents;
|
|
3344
3345
|
}, "de_ListTemplatesCommand");
|
|
@@ -3349,7 +3350,7 @@ var de_ListTemplateVersionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3349
3350
|
const contents = (0, import_smithy_client.map)({
|
|
3350
3351
|
$metadata: deserializeMetadata(output)
|
|
3351
3352
|
});
|
|
3352
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3353
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3353
3354
|
contents.TemplateVersionsResponse = (0, import_smithy_client._json)(data);
|
|
3354
3355
|
return contents;
|
|
3355
3356
|
}, "de_ListTemplateVersionsCommand");
|
|
@@ -3360,7 +3361,7 @@ var de_PhoneNumberValidateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3360
3361
|
const contents = (0, import_smithy_client.map)({
|
|
3361
3362
|
$metadata: deserializeMetadata(output)
|
|
3362
3363
|
});
|
|
3363
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3364
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3364
3365
|
contents.NumberValidateResponse = (0, import_smithy_client._json)(data);
|
|
3365
3366
|
return contents;
|
|
3366
3367
|
}, "de_PhoneNumberValidateCommand");
|
|
@@ -3371,7 +3372,7 @@ var de_PutEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3371
3372
|
const contents = (0, import_smithy_client.map)({
|
|
3372
3373
|
$metadata: deserializeMetadata(output)
|
|
3373
3374
|
});
|
|
3374
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3375
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3375
3376
|
contents.EventsResponse = (0, import_smithy_client._json)(data);
|
|
3376
3377
|
return contents;
|
|
3377
3378
|
}, "de_PutEventsCommand");
|
|
@@ -3382,7 +3383,7 @@ var de_PutEventStreamCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3382
3383
|
const contents = (0, import_smithy_client.map)({
|
|
3383
3384
|
$metadata: deserializeMetadata(output)
|
|
3384
3385
|
});
|
|
3385
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3386
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3386
3387
|
contents.EventStream = (0, import_smithy_client._json)(data);
|
|
3387
3388
|
return contents;
|
|
3388
3389
|
}, "de_PutEventStreamCommand");
|
|
@@ -3393,7 +3394,7 @@ var de_RemoveAttributesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3393
3394
|
const contents = (0, import_smithy_client.map)({
|
|
3394
3395
|
$metadata: deserializeMetadata(output)
|
|
3395
3396
|
});
|
|
3396
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3397
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3397
3398
|
contents.AttributesResource = (0, import_smithy_client._json)(data);
|
|
3398
3399
|
return contents;
|
|
3399
3400
|
}, "de_RemoveAttributesCommand");
|
|
@@ -3404,7 +3405,7 @@ var de_SendMessagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3404
3405
|
const contents = (0, import_smithy_client.map)({
|
|
3405
3406
|
$metadata: deserializeMetadata(output)
|
|
3406
3407
|
});
|
|
3407
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3408
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3408
3409
|
contents.MessageResponse = (0, import_smithy_client._json)(data);
|
|
3409
3410
|
return contents;
|
|
3410
3411
|
}, "de_SendMessagesCommand");
|
|
@@ -3415,7 +3416,7 @@ var de_SendOTPMessageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3415
3416
|
const contents = (0, import_smithy_client.map)({
|
|
3416
3417
|
$metadata: deserializeMetadata(output)
|
|
3417
3418
|
});
|
|
3418
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3419
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3419
3420
|
contents.MessageResponse = (0, import_smithy_client._json)(data);
|
|
3420
3421
|
return contents;
|
|
3421
3422
|
}, "de_SendOTPMessageCommand");
|
|
@@ -3426,7 +3427,7 @@ var de_SendUsersMessagesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3426
3427
|
const contents = (0, import_smithy_client.map)({
|
|
3427
3428
|
$metadata: deserializeMetadata(output)
|
|
3428
3429
|
});
|
|
3429
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3430
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3430
3431
|
contents.SendUsersMessageResponse = (0, import_smithy_client._json)(data);
|
|
3431
3432
|
return contents;
|
|
3432
3433
|
}, "de_SendUsersMessagesCommand");
|
|
@@ -3457,7 +3458,7 @@ var de_UpdateAdmChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3457
3458
|
const contents = (0, import_smithy_client.map)({
|
|
3458
3459
|
$metadata: deserializeMetadata(output)
|
|
3459
3460
|
});
|
|
3460
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3461
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3461
3462
|
contents.ADMChannelResponse = (0, import_smithy_client._json)(data);
|
|
3462
3463
|
return contents;
|
|
3463
3464
|
}, "de_UpdateAdmChannelCommand");
|
|
@@ -3468,7 +3469,7 @@ var de_UpdateApnsChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3468
3469
|
const contents = (0, import_smithy_client.map)({
|
|
3469
3470
|
$metadata: deserializeMetadata(output)
|
|
3470
3471
|
});
|
|
3471
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3472
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3472
3473
|
contents.APNSChannelResponse = (0, import_smithy_client._json)(data);
|
|
3473
3474
|
return contents;
|
|
3474
3475
|
}, "de_UpdateApnsChannelCommand");
|
|
@@ -3479,7 +3480,7 @@ var de_UpdateApnsSandboxChannelCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3479
3480
|
const contents = (0, import_smithy_client.map)({
|
|
3480
3481
|
$metadata: deserializeMetadata(output)
|
|
3481
3482
|
});
|
|
3482
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3483
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3483
3484
|
contents.APNSSandboxChannelResponse = (0, import_smithy_client._json)(data);
|
|
3484
3485
|
return contents;
|
|
3485
3486
|
}, "de_UpdateApnsSandboxChannelCommand");
|
|
@@ -3490,7 +3491,7 @@ var de_UpdateApnsVoipChannelCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3490
3491
|
const contents = (0, import_smithy_client.map)({
|
|
3491
3492
|
$metadata: deserializeMetadata(output)
|
|
3492
3493
|
});
|
|
3493
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3494
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3494
3495
|
contents.APNSVoipChannelResponse = (0, import_smithy_client._json)(data);
|
|
3495
3496
|
return contents;
|
|
3496
3497
|
}, "de_UpdateApnsVoipChannelCommand");
|
|
@@ -3501,7 +3502,7 @@ var de_UpdateApnsVoipSandboxChannelCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3501
3502
|
const contents = (0, import_smithy_client.map)({
|
|
3502
3503
|
$metadata: deserializeMetadata(output)
|
|
3503
3504
|
});
|
|
3504
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3505
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3505
3506
|
contents.APNSVoipSandboxChannelResponse = (0, import_smithy_client._json)(data);
|
|
3506
3507
|
return contents;
|
|
3507
3508
|
}, "de_UpdateApnsVoipSandboxChannelCommand");
|
|
@@ -3512,7 +3513,7 @@ var de_UpdateApplicationSettingsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3512
3513
|
const contents = (0, import_smithy_client.map)({
|
|
3513
3514
|
$metadata: deserializeMetadata(output)
|
|
3514
3515
|
});
|
|
3515
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3516
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3516
3517
|
contents.ApplicationSettingsResource = (0, import_smithy_client._json)(data);
|
|
3517
3518
|
return contents;
|
|
3518
3519
|
}, "de_UpdateApplicationSettingsCommand");
|
|
@@ -3523,7 +3524,7 @@ var de_UpdateBaiduChannelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3523
3524
|
const contents = (0, import_smithy_client.map)({
|
|
3524
3525
|
$metadata: deserializeMetadata(output)
|
|
3525
3526
|
});
|
|
3526
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3527
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3527
3528
|
contents.BaiduChannelResponse = (0, import_smithy_client._json)(data);
|
|
3528
3529
|
return contents;
|
|
3529
3530
|
}, "de_UpdateBaiduChannelCommand");
|
|
@@ -3534,7 +3535,7 @@ var de_UpdateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3534
3535
|
const contents = (0, import_smithy_client.map)({
|
|
3535
3536
|
$metadata: deserializeMetadata(output)
|
|
3536
3537
|
});
|
|
3537
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3538
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3538
3539
|
contents.CampaignResponse = de_CampaignResponse(data, context);
|
|
3539
3540
|
return contents;
|
|
3540
3541
|
}, "de_UpdateCampaignCommand");
|
|
@@ -3545,7 +3546,7 @@ var de_UpdateEmailChannelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3545
3546
|
const contents = (0, import_smithy_client.map)({
|
|
3546
3547
|
$metadata: deserializeMetadata(output)
|
|
3547
3548
|
});
|
|
3548
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3549
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3549
3550
|
contents.EmailChannelResponse = (0, import_smithy_client._json)(data);
|
|
3550
3551
|
return contents;
|
|
3551
3552
|
}, "de_UpdateEmailChannelCommand");
|
|
@@ -3556,7 +3557,7 @@ var de_UpdateEmailTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3556
3557
|
const contents = (0, import_smithy_client.map)({
|
|
3557
3558
|
$metadata: deserializeMetadata(output)
|
|
3558
3559
|
});
|
|
3559
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3560
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3560
3561
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
3561
3562
|
return contents;
|
|
3562
3563
|
}, "de_UpdateEmailTemplateCommand");
|
|
@@ -3567,7 +3568,7 @@ var de_UpdateEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3567
3568
|
const contents = (0, import_smithy_client.map)({
|
|
3568
3569
|
$metadata: deserializeMetadata(output)
|
|
3569
3570
|
});
|
|
3570
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3571
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3571
3572
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
3572
3573
|
return contents;
|
|
3573
3574
|
}, "de_UpdateEndpointCommand");
|
|
@@ -3578,7 +3579,7 @@ var de_UpdateEndpointsBatchCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3578
3579
|
const contents = (0, import_smithy_client.map)({
|
|
3579
3580
|
$metadata: deserializeMetadata(output)
|
|
3580
3581
|
});
|
|
3581
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3582
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3582
3583
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
3583
3584
|
return contents;
|
|
3584
3585
|
}, "de_UpdateEndpointsBatchCommand");
|
|
@@ -3589,7 +3590,7 @@ var de_UpdateGcmChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3589
3590
|
const contents = (0, import_smithy_client.map)({
|
|
3590
3591
|
$metadata: deserializeMetadata(output)
|
|
3591
3592
|
});
|
|
3592
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3593
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3593
3594
|
contents.GCMChannelResponse = (0, import_smithy_client._json)(data);
|
|
3594
3595
|
return contents;
|
|
3595
3596
|
}, "de_UpdateGcmChannelCommand");
|
|
@@ -3600,7 +3601,7 @@ var de_UpdateInAppTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3600
3601
|
const contents = (0, import_smithy_client.map)({
|
|
3601
3602
|
$metadata: deserializeMetadata(output)
|
|
3602
3603
|
});
|
|
3603
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3604
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3604
3605
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
3605
3606
|
return contents;
|
|
3606
3607
|
}, "de_UpdateInAppTemplateCommand");
|
|
@@ -3611,7 +3612,7 @@ var de_UpdateJourneyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3611
3612
|
const contents = (0, import_smithy_client.map)({
|
|
3612
3613
|
$metadata: deserializeMetadata(output)
|
|
3613
3614
|
});
|
|
3614
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3615
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3615
3616
|
contents.JourneyResponse = de_JourneyResponse(data, context);
|
|
3616
3617
|
return contents;
|
|
3617
3618
|
}, "de_UpdateJourneyCommand");
|
|
@@ -3622,7 +3623,7 @@ var de_UpdateJourneyStateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3622
3623
|
const contents = (0, import_smithy_client.map)({
|
|
3623
3624
|
$metadata: deserializeMetadata(output)
|
|
3624
3625
|
});
|
|
3625
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3626
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3626
3627
|
contents.JourneyResponse = de_JourneyResponse(data, context);
|
|
3627
3628
|
return contents;
|
|
3628
3629
|
}, "de_UpdateJourneyStateCommand");
|
|
@@ -3633,7 +3634,7 @@ var de_UpdatePushTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3633
3634
|
const contents = (0, import_smithy_client.map)({
|
|
3634
3635
|
$metadata: deserializeMetadata(output)
|
|
3635
3636
|
});
|
|
3636
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3637
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3637
3638
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
3638
3639
|
return contents;
|
|
3639
3640
|
}, "de_UpdatePushTemplateCommand");
|
|
@@ -3644,7 +3645,7 @@ var de_UpdateRecommenderConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
3644
3645
|
const contents = (0, import_smithy_client.map)({
|
|
3645
3646
|
$metadata: deserializeMetadata(output)
|
|
3646
3647
|
});
|
|
3647
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3648
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3648
3649
|
contents.RecommenderConfigurationResponse = (0, import_smithy_client._json)(data);
|
|
3649
3650
|
return contents;
|
|
3650
3651
|
}, "de_UpdateRecommenderConfigurationCommand");
|
|
@@ -3655,7 +3656,7 @@ var de_UpdateSegmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3655
3656
|
const contents = (0, import_smithy_client.map)({
|
|
3656
3657
|
$metadata: deserializeMetadata(output)
|
|
3657
3658
|
});
|
|
3658
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3659
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3659
3660
|
contents.SegmentResponse = de_SegmentResponse(data, context);
|
|
3660
3661
|
return contents;
|
|
3661
3662
|
}, "de_UpdateSegmentCommand");
|
|
@@ -3666,7 +3667,7 @@ var de_UpdateSmsChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3666
3667
|
const contents = (0, import_smithy_client.map)({
|
|
3667
3668
|
$metadata: deserializeMetadata(output)
|
|
3668
3669
|
});
|
|
3669
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3670
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3670
3671
|
contents.SMSChannelResponse = (0, import_smithy_client._json)(data);
|
|
3671
3672
|
return contents;
|
|
3672
3673
|
}, "de_UpdateSmsChannelCommand");
|
|
@@ -3677,7 +3678,7 @@ var de_UpdateSmsTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3677
3678
|
const contents = (0, import_smithy_client.map)({
|
|
3678
3679
|
$metadata: deserializeMetadata(output)
|
|
3679
3680
|
});
|
|
3680
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3681
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3681
3682
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
3682
3683
|
return contents;
|
|
3683
3684
|
}, "de_UpdateSmsTemplateCommand");
|
|
@@ -3688,7 +3689,7 @@ var de_UpdateTemplateActiveVersionCommand = /* @__PURE__ */ __name(async (output
|
|
|
3688
3689
|
const contents = (0, import_smithy_client.map)({
|
|
3689
3690
|
$metadata: deserializeMetadata(output)
|
|
3690
3691
|
});
|
|
3691
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3692
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3692
3693
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
3693
3694
|
return contents;
|
|
3694
3695
|
}, "de_UpdateTemplateActiveVersionCommand");
|
|
@@ -3699,7 +3700,7 @@ var de_UpdateVoiceChannelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3699
3700
|
const contents = (0, import_smithy_client.map)({
|
|
3700
3701
|
$metadata: deserializeMetadata(output)
|
|
3701
3702
|
});
|
|
3702
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3703
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3703
3704
|
contents.VoiceChannelResponse = (0, import_smithy_client._json)(data);
|
|
3704
3705
|
return contents;
|
|
3705
3706
|
}, "de_UpdateVoiceChannelCommand");
|
|
@@ -3710,7 +3711,7 @@ var de_UpdateVoiceTemplateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3710
3711
|
const contents = (0, import_smithy_client.map)({
|
|
3711
3712
|
$metadata: deserializeMetadata(output)
|
|
3712
3713
|
});
|
|
3713
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3714
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3714
3715
|
contents.MessageBody = (0, import_smithy_client._json)(data);
|
|
3715
3716
|
return contents;
|
|
3716
3717
|
}, "de_UpdateVoiceTemplateCommand");
|
|
@@ -3721,16 +3722,16 @@ var de_VerifyOTPMessageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3721
3722
|
const contents = (0, import_smithy_client.map)({
|
|
3722
3723
|
$metadata: deserializeMetadata(output)
|
|
3723
3724
|
});
|
|
3724
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
3725
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
3725
3726
|
contents.VerificationResponse = (0, import_smithy_client._json)(data);
|
|
3726
3727
|
return contents;
|
|
3727
3728
|
}, "de_VerifyOTPMessageCommand");
|
|
3728
3729
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3729
3730
|
const parsedOutput = {
|
|
3730
3731
|
...output,
|
|
3731
|
-
body: await
|
|
3732
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
3732
3733
|
};
|
|
3733
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3734
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
3734
3735
|
switch (errorCode) {
|
|
3735
3736
|
case "BadRequestException":
|
|
3736
3737
|
case "com.amazonaws.pinpoint#BadRequestException":
|
|
@@ -4937,7 +4938,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
4937
4938
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4938
4939
|
cfId: output.headers["x-amz-cf-id"]
|
|
4939
4940
|
}), "deserializeMetadata");
|
|
4940
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
4941
4941
|
var _CNV = "CreateNewVersion";
|
|
4942
4942
|
var _ET = "EndTime";
|
|
4943
4943
|
var _NT = "NextToken";
|
|
@@ -4958,46 +4958,6 @@ var _t = "token";
|
|
|
4958
4958
|
var _tK = "tagKeys";
|
|
4959
4959
|
var _tt = "template-type";
|
|
4960
4960
|
var _v = "version";
|
|
4961
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4962
|
-
if (encoded.length) {
|
|
4963
|
-
return JSON.parse(encoded);
|
|
4964
|
-
}
|
|
4965
|
-
return {};
|
|
4966
|
-
}), "parseBody");
|
|
4967
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
4968
|
-
const value = await parseBody(errorBody, context);
|
|
4969
|
-
value.message = value.message ?? value.Message;
|
|
4970
|
-
return value;
|
|
4971
|
-
}, "parseErrorBody");
|
|
4972
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
4973
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
4974
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
4975
|
-
let cleanValue = rawValue;
|
|
4976
|
-
if (typeof cleanValue === "number") {
|
|
4977
|
-
cleanValue = cleanValue.toString();
|
|
4978
|
-
}
|
|
4979
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4980
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4981
|
-
}
|
|
4982
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4983
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4984
|
-
}
|
|
4985
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4986
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4987
|
-
}
|
|
4988
|
-
return cleanValue;
|
|
4989
|
-
}, "sanitizeErrorCode");
|
|
4990
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4991
|
-
if (headerKey !== void 0) {
|
|
4992
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4993
|
-
}
|
|
4994
|
-
if (data.code !== void 0) {
|
|
4995
|
-
return sanitizeErrorCode(data.code);
|
|
4996
|
-
}
|
|
4997
|
-
if (data["__type"] !== void 0) {
|
|
4998
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4999
|
-
}
|
|
5000
|
-
}, "loadRestJsonErrorCode");
|
|
5001
4961
|
|
|
5002
4962
|
// src/commands/CreateAppCommand.ts
|
|
5003
4963
|
var _CreateAppCommand = class _CreateAppCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, MethodNotAllowedException, NotFoundException, PayloadTooLargeException, TooManyRequestsException, } from "../models/models_0";
|
|
@@ -4309,43 +4310,3 @@ const _t = "token";
|
|
|
4309
4310
|
const _tK = "tagKeys";
|
|
4310
4311
|
const _tt = "template-type";
|
|
4311
4312
|
const _v = "version";
|
|
4312
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4313
|
-
if (encoded.length) {
|
|
4314
|
-
return JSON.parse(encoded);
|
|
4315
|
-
}
|
|
4316
|
-
return {};
|
|
4317
|
-
});
|
|
4318
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4319
|
-
const value = await parseBody(errorBody, context);
|
|
4320
|
-
value.message = value.message ?? value.Message;
|
|
4321
|
-
return value;
|
|
4322
|
-
};
|
|
4323
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4324
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4325
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4326
|
-
let cleanValue = rawValue;
|
|
4327
|
-
if (typeof cleanValue === "number") {
|
|
4328
|
-
cleanValue = cleanValue.toString();
|
|
4329
|
-
}
|
|
4330
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4331
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4332
|
-
}
|
|
4333
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4334
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4335
|
-
}
|
|
4336
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4337
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4338
|
-
}
|
|
4339
|
-
return cleanValue;
|
|
4340
|
-
};
|
|
4341
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4342
|
-
if (headerKey !== undefined) {
|
|
4343
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4344
|
-
}
|
|
4345
|
-
if (data.code !== undefined) {
|
|
4346
|
-
return sanitizeErrorCode(data.code);
|
|
4347
|
-
}
|
|
4348
|
-
if (data["__type"] !== undefined) {
|
|
4349
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4350
|
-
}
|
|
4351
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-pinpoint",
|
|
3
3
|
"description": "AWS SDK for JavaScript Pinpoint Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-pinpoint",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|