@aws-sdk/client-pinpoint 3.121.0 → 3.127.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.
- package/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +811 -1327
- package/dist-es/protocols/Aws_restJson1.js +401 -917
- package/package.json +26 -26
|
@@ -10494,867 +10494,749 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
10494
10494
|
};
|
|
10495
10495
|
const serializeAws_restJson1Activity = (input, context) => {
|
|
10496
10496
|
return {
|
|
10497
|
-
...(input.CUSTOM
|
|
10498
|
-
|
|
10499
|
-
...(input.ConditionalSplit !== undefined &&
|
|
10500
|
-
input.ConditionalSplit !== null && {
|
|
10497
|
+
...(input.CUSTOM != null && { CUSTOM: serializeAws_restJson1CustomMessageActivity(input.CUSTOM, context) }),
|
|
10498
|
+
...(input.ConditionalSplit != null && {
|
|
10501
10499
|
ConditionalSplit: serializeAws_restJson1ConditionalSplitActivity(input.ConditionalSplit, context),
|
|
10502
10500
|
}),
|
|
10503
|
-
...(input.ContactCenter
|
|
10504
|
-
input.ContactCenter !== null && {
|
|
10501
|
+
...(input.ContactCenter != null && {
|
|
10505
10502
|
ContactCenter: serializeAws_restJson1ContactCenterActivity(input.ContactCenter, context),
|
|
10506
10503
|
}),
|
|
10507
|
-
...(input.Description
|
|
10508
|
-
...(input.EMAIL
|
|
10509
|
-
|
|
10510
|
-
...(input.
|
|
10511
|
-
input.Holdout !== null && { Holdout: serializeAws_restJson1HoldoutActivity(input.Holdout, context) }),
|
|
10512
|
-
...(input.MultiCondition !== undefined &&
|
|
10513
|
-
input.MultiCondition !== null && {
|
|
10504
|
+
...(input.Description != null && { Description: input.Description }),
|
|
10505
|
+
...(input.EMAIL != null && { EMAIL: serializeAws_restJson1EmailMessageActivity(input.EMAIL, context) }),
|
|
10506
|
+
...(input.Holdout != null && { Holdout: serializeAws_restJson1HoldoutActivity(input.Holdout, context) }),
|
|
10507
|
+
...(input.MultiCondition != null && {
|
|
10514
10508
|
MultiCondition: serializeAws_restJson1MultiConditionalSplitActivity(input.MultiCondition, context),
|
|
10515
10509
|
}),
|
|
10516
|
-
...(input.PUSH
|
|
10517
|
-
|
|
10518
|
-
...(input.RandomSplit !== undefined &&
|
|
10519
|
-
input.RandomSplit !== null && {
|
|
10510
|
+
...(input.PUSH != null && { PUSH: serializeAws_restJson1PushMessageActivity(input.PUSH, context) }),
|
|
10511
|
+
...(input.RandomSplit != null && {
|
|
10520
10512
|
RandomSplit: serializeAws_restJson1RandomSplitActivity(input.RandomSplit, context),
|
|
10521
10513
|
}),
|
|
10522
|
-
...(input.SMS
|
|
10523
|
-
|
|
10524
|
-
...(input.Wait !== undefined &&
|
|
10525
|
-
input.Wait !== null && { Wait: serializeAws_restJson1WaitActivity(input.Wait, context) }),
|
|
10514
|
+
...(input.SMS != null && { SMS: serializeAws_restJson1SMSMessageActivity(input.SMS, context) }),
|
|
10515
|
+
...(input.Wait != null && { Wait: serializeAws_restJson1WaitActivity(input.Wait, context) }),
|
|
10526
10516
|
};
|
|
10527
10517
|
};
|
|
10528
10518
|
const serializeAws_restJson1AddressConfiguration = (input, context) => {
|
|
10529
10519
|
return {
|
|
10530
|
-
...(input.BodyOverride
|
|
10531
|
-
...(input.ChannelType
|
|
10532
|
-
...(input.Context
|
|
10533
|
-
|
|
10534
|
-
...(input.
|
|
10535
|
-
...(input.Substitutions !== undefined &&
|
|
10536
|
-
input.Substitutions !== null && {
|
|
10520
|
+
...(input.BodyOverride != null && { BodyOverride: input.BodyOverride }),
|
|
10521
|
+
...(input.ChannelType != null && { ChannelType: input.ChannelType }),
|
|
10522
|
+
...(input.Context != null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) }),
|
|
10523
|
+
...(input.RawContent != null && { RawContent: input.RawContent }),
|
|
10524
|
+
...(input.Substitutions != null && {
|
|
10537
10525
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
10538
10526
|
}),
|
|
10539
|
-
...(input.TitleOverride
|
|
10527
|
+
...(input.TitleOverride != null && { TitleOverride: input.TitleOverride }),
|
|
10540
10528
|
};
|
|
10541
10529
|
};
|
|
10542
10530
|
const serializeAws_restJson1ADMChannelRequest = (input, context) => {
|
|
10543
10531
|
return {
|
|
10544
|
-
...(input.ClientId
|
|
10545
|
-
...(input.ClientSecret
|
|
10546
|
-
...(input.Enabled
|
|
10532
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
10533
|
+
...(input.ClientSecret != null && { ClientSecret: input.ClientSecret }),
|
|
10534
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
10547
10535
|
};
|
|
10548
10536
|
};
|
|
10549
10537
|
const serializeAws_restJson1ADMMessage = (input, context) => {
|
|
10550
10538
|
return {
|
|
10551
|
-
...(input.Action
|
|
10552
|
-
...(input.Body
|
|
10553
|
-
...(input.ConsolidationKey
|
|
10554
|
-
|
|
10555
|
-
...(input.
|
|
10556
|
-
|
|
10557
|
-
...(input.
|
|
10558
|
-
...(input.
|
|
10559
|
-
...(input.
|
|
10560
|
-
...(input.
|
|
10561
|
-
...(input.
|
|
10562
|
-
...(input.
|
|
10563
|
-
...(input.
|
|
10564
|
-
...(input.
|
|
10565
|
-
input.SmallImageIconUrl !== null && { SmallImageIconUrl: input.SmallImageIconUrl }),
|
|
10566
|
-
...(input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound }),
|
|
10567
|
-
...(input.Substitutions !== undefined &&
|
|
10568
|
-
input.Substitutions !== null && {
|
|
10539
|
+
...(input.Action != null && { Action: input.Action }),
|
|
10540
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10541
|
+
...(input.ConsolidationKey != null && { ConsolidationKey: input.ConsolidationKey }),
|
|
10542
|
+
...(input.Data != null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) }),
|
|
10543
|
+
...(input.ExpiresAfter != null && { ExpiresAfter: input.ExpiresAfter }),
|
|
10544
|
+
...(input.IconReference != null && { IconReference: input.IconReference }),
|
|
10545
|
+
...(input.ImageIconUrl != null && { ImageIconUrl: input.ImageIconUrl }),
|
|
10546
|
+
...(input.ImageUrl != null && { ImageUrl: input.ImageUrl }),
|
|
10547
|
+
...(input.MD5 != null && { MD5: input.MD5 }),
|
|
10548
|
+
...(input.RawContent != null && { RawContent: input.RawContent }),
|
|
10549
|
+
...(input.SilentPush != null && { SilentPush: input.SilentPush }),
|
|
10550
|
+
...(input.SmallImageIconUrl != null && { SmallImageIconUrl: input.SmallImageIconUrl }),
|
|
10551
|
+
...(input.Sound != null && { Sound: input.Sound }),
|
|
10552
|
+
...(input.Substitutions != null && {
|
|
10569
10553
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
10570
10554
|
}),
|
|
10571
|
-
...(input.Title
|
|
10572
|
-
...(input.Url
|
|
10555
|
+
...(input.Title != null && { Title: input.Title }),
|
|
10556
|
+
...(input.Url != null && { Url: input.Url }),
|
|
10573
10557
|
};
|
|
10574
10558
|
};
|
|
10575
10559
|
const serializeAws_restJson1AndroidPushNotificationTemplate = (input, context) => {
|
|
10576
10560
|
return {
|
|
10577
|
-
...(input.Action
|
|
10578
|
-
...(input.Body
|
|
10579
|
-
...(input.ImageIconUrl
|
|
10580
|
-
...(input.ImageUrl
|
|
10581
|
-
...(input.RawContent
|
|
10582
|
-
...(input.SmallImageIconUrl
|
|
10583
|
-
|
|
10584
|
-
...(input.
|
|
10585
|
-
...(input.
|
|
10586
|
-
...(input.Url !== undefined && input.Url !== null && { Url: input.Url }),
|
|
10561
|
+
...(input.Action != null && { Action: input.Action }),
|
|
10562
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10563
|
+
...(input.ImageIconUrl != null && { ImageIconUrl: input.ImageIconUrl }),
|
|
10564
|
+
...(input.ImageUrl != null && { ImageUrl: input.ImageUrl }),
|
|
10565
|
+
...(input.RawContent != null && { RawContent: input.RawContent }),
|
|
10566
|
+
...(input.SmallImageIconUrl != null && { SmallImageIconUrl: input.SmallImageIconUrl }),
|
|
10567
|
+
...(input.Sound != null && { Sound: input.Sound }),
|
|
10568
|
+
...(input.Title != null && { Title: input.Title }),
|
|
10569
|
+
...(input.Url != null && { Url: input.Url }),
|
|
10587
10570
|
};
|
|
10588
10571
|
};
|
|
10589
10572
|
const serializeAws_restJson1APNSChannelRequest = (input, context) => {
|
|
10590
10573
|
return {
|
|
10591
|
-
...(input.BundleId
|
|
10592
|
-
...(input.Certificate
|
|
10593
|
-
...(input.DefaultAuthenticationMethod
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
...(input.
|
|
10597
|
-
...(input.
|
|
10598
|
-
...(input.
|
|
10599
|
-
...(input.
|
|
10574
|
+
...(input.BundleId != null && { BundleId: input.BundleId }),
|
|
10575
|
+
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
10576
|
+
...(input.DefaultAuthenticationMethod != null && {
|
|
10577
|
+
DefaultAuthenticationMethod: input.DefaultAuthenticationMethod,
|
|
10578
|
+
}),
|
|
10579
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
10580
|
+
...(input.PrivateKey != null && { PrivateKey: input.PrivateKey }),
|
|
10581
|
+
...(input.TeamId != null && { TeamId: input.TeamId }),
|
|
10582
|
+
...(input.TokenKey != null && { TokenKey: input.TokenKey }),
|
|
10583
|
+
...(input.TokenKeyId != null && { TokenKeyId: input.TokenKeyId }),
|
|
10600
10584
|
};
|
|
10601
10585
|
};
|
|
10602
10586
|
const serializeAws_restJson1APNSMessage = (input, context) => {
|
|
10603
10587
|
return {
|
|
10604
|
-
...(input.APNSPushType
|
|
10605
|
-
...(input.Action
|
|
10606
|
-
...(input.Badge
|
|
10607
|
-
...(input.Body
|
|
10608
|
-
...(input.Category
|
|
10609
|
-
...(input.CollapseId
|
|
10610
|
-
...(input.Data
|
|
10611
|
-
|
|
10612
|
-
...(input.
|
|
10613
|
-
...(input.PreferredAuthenticationMethod !== undefined &&
|
|
10614
|
-
input.PreferredAuthenticationMethod !== null && {
|
|
10588
|
+
...(input.APNSPushType != null && { APNSPushType: input.APNSPushType }),
|
|
10589
|
+
...(input.Action != null && { Action: input.Action }),
|
|
10590
|
+
...(input.Badge != null && { Badge: input.Badge }),
|
|
10591
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10592
|
+
...(input.Category != null && { Category: input.Category }),
|
|
10593
|
+
...(input.CollapseId != null && { CollapseId: input.CollapseId }),
|
|
10594
|
+
...(input.Data != null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) }),
|
|
10595
|
+
...(input.MediaUrl != null && { MediaUrl: input.MediaUrl }),
|
|
10596
|
+
...(input.PreferredAuthenticationMethod != null && {
|
|
10615
10597
|
PreferredAuthenticationMethod: input.PreferredAuthenticationMethod,
|
|
10616
10598
|
}),
|
|
10617
|
-
...(input.Priority
|
|
10618
|
-
...(input.RawContent
|
|
10619
|
-
...(input.SilentPush
|
|
10620
|
-
...(input.Sound
|
|
10621
|
-
...(input.Substitutions
|
|
10622
|
-
input.Substitutions !== null && {
|
|
10599
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
10600
|
+
...(input.RawContent != null && { RawContent: input.RawContent }),
|
|
10601
|
+
...(input.SilentPush != null && { SilentPush: input.SilentPush }),
|
|
10602
|
+
...(input.Sound != null && { Sound: input.Sound }),
|
|
10603
|
+
...(input.Substitutions != null && {
|
|
10623
10604
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
10624
10605
|
}),
|
|
10625
|
-
...(input.ThreadId
|
|
10626
|
-
...(input.TimeToLive
|
|
10627
|
-
...(input.Title
|
|
10628
|
-
...(input.Url
|
|
10606
|
+
...(input.ThreadId != null && { ThreadId: input.ThreadId }),
|
|
10607
|
+
...(input.TimeToLive != null && { TimeToLive: input.TimeToLive }),
|
|
10608
|
+
...(input.Title != null && { Title: input.Title }),
|
|
10609
|
+
...(input.Url != null && { Url: input.Url }),
|
|
10629
10610
|
};
|
|
10630
10611
|
};
|
|
10631
10612
|
const serializeAws_restJson1APNSPushNotificationTemplate = (input, context) => {
|
|
10632
10613
|
return {
|
|
10633
|
-
...(input.Action
|
|
10634
|
-
...(input.Body
|
|
10635
|
-
...(input.MediaUrl
|
|
10636
|
-
...(input.RawContent
|
|
10637
|
-
...(input.Sound
|
|
10638
|
-
...(input.Title
|
|
10639
|
-
...(input.Url
|
|
10614
|
+
...(input.Action != null && { Action: input.Action }),
|
|
10615
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10616
|
+
...(input.MediaUrl != null && { MediaUrl: input.MediaUrl }),
|
|
10617
|
+
...(input.RawContent != null && { RawContent: input.RawContent }),
|
|
10618
|
+
...(input.Sound != null && { Sound: input.Sound }),
|
|
10619
|
+
...(input.Title != null && { Title: input.Title }),
|
|
10620
|
+
...(input.Url != null && { Url: input.Url }),
|
|
10640
10621
|
};
|
|
10641
10622
|
};
|
|
10642
10623
|
const serializeAws_restJson1APNSSandboxChannelRequest = (input, context) => {
|
|
10643
10624
|
return {
|
|
10644
|
-
...(input.BundleId
|
|
10645
|
-
...(input.Certificate
|
|
10646
|
-
...(input.DefaultAuthenticationMethod
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
...(input.
|
|
10650
|
-
...(input.
|
|
10651
|
-
...(input.
|
|
10652
|
-
...(input.
|
|
10625
|
+
...(input.BundleId != null && { BundleId: input.BundleId }),
|
|
10626
|
+
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
10627
|
+
...(input.DefaultAuthenticationMethod != null && {
|
|
10628
|
+
DefaultAuthenticationMethod: input.DefaultAuthenticationMethod,
|
|
10629
|
+
}),
|
|
10630
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
10631
|
+
...(input.PrivateKey != null && { PrivateKey: input.PrivateKey }),
|
|
10632
|
+
...(input.TeamId != null && { TeamId: input.TeamId }),
|
|
10633
|
+
...(input.TokenKey != null && { TokenKey: input.TokenKey }),
|
|
10634
|
+
...(input.TokenKeyId != null && { TokenKeyId: input.TokenKeyId }),
|
|
10653
10635
|
};
|
|
10654
10636
|
};
|
|
10655
10637
|
const serializeAws_restJson1APNSVoipChannelRequest = (input, context) => {
|
|
10656
10638
|
return {
|
|
10657
|
-
...(input.BundleId
|
|
10658
|
-
...(input.Certificate
|
|
10659
|
-
...(input.DefaultAuthenticationMethod
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
...(input.
|
|
10663
|
-
...(input.
|
|
10664
|
-
...(input.
|
|
10665
|
-
...(input.
|
|
10639
|
+
...(input.BundleId != null && { BundleId: input.BundleId }),
|
|
10640
|
+
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
10641
|
+
...(input.DefaultAuthenticationMethod != null && {
|
|
10642
|
+
DefaultAuthenticationMethod: input.DefaultAuthenticationMethod,
|
|
10643
|
+
}),
|
|
10644
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
10645
|
+
...(input.PrivateKey != null && { PrivateKey: input.PrivateKey }),
|
|
10646
|
+
...(input.TeamId != null && { TeamId: input.TeamId }),
|
|
10647
|
+
...(input.TokenKey != null && { TokenKey: input.TokenKey }),
|
|
10648
|
+
...(input.TokenKeyId != null && { TokenKeyId: input.TokenKeyId }),
|
|
10666
10649
|
};
|
|
10667
10650
|
};
|
|
10668
10651
|
const serializeAws_restJson1APNSVoipSandboxChannelRequest = (input, context) => {
|
|
10669
10652
|
return {
|
|
10670
|
-
...(input.BundleId
|
|
10671
|
-
...(input.Certificate
|
|
10672
|
-
...(input.DefaultAuthenticationMethod
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
...(input.
|
|
10676
|
-
...(input.
|
|
10677
|
-
...(input.
|
|
10678
|
-
...(input.
|
|
10653
|
+
...(input.BundleId != null && { BundleId: input.BundleId }),
|
|
10654
|
+
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
10655
|
+
...(input.DefaultAuthenticationMethod != null && {
|
|
10656
|
+
DefaultAuthenticationMethod: input.DefaultAuthenticationMethod,
|
|
10657
|
+
}),
|
|
10658
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
10659
|
+
...(input.PrivateKey != null && { PrivateKey: input.PrivateKey }),
|
|
10660
|
+
...(input.TeamId != null && { TeamId: input.TeamId }),
|
|
10661
|
+
...(input.TokenKey != null && { TokenKey: input.TokenKey }),
|
|
10662
|
+
...(input.TokenKeyId != null && { TokenKeyId: input.TokenKeyId }),
|
|
10679
10663
|
};
|
|
10680
10664
|
};
|
|
10681
10665
|
const serializeAws_restJson1AttributeDimension = (input, context) => {
|
|
10682
10666
|
return {
|
|
10683
|
-
...(input.AttributeType
|
|
10684
|
-
...(input.Values
|
|
10685
|
-
input.Values !== null && { Values: serializeAws_restJson1ListOf__string(input.Values, context) }),
|
|
10667
|
+
...(input.AttributeType != null && { AttributeType: input.AttributeType }),
|
|
10668
|
+
...(input.Values != null && { Values: serializeAws_restJson1ListOf__string(input.Values, context) }),
|
|
10686
10669
|
};
|
|
10687
10670
|
};
|
|
10688
10671
|
const serializeAws_restJson1BaiduChannelRequest = (input, context) => {
|
|
10689
10672
|
return {
|
|
10690
|
-
...(input.ApiKey
|
|
10691
|
-
...(input.Enabled
|
|
10692
|
-
...(input.SecretKey
|
|
10673
|
+
...(input.ApiKey != null && { ApiKey: input.ApiKey }),
|
|
10674
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
10675
|
+
...(input.SecretKey != null && { SecretKey: input.SecretKey }),
|
|
10693
10676
|
};
|
|
10694
10677
|
};
|
|
10695
10678
|
const serializeAws_restJson1BaiduMessage = (input, context) => {
|
|
10696
10679
|
return {
|
|
10697
|
-
...(input.Action
|
|
10698
|
-
...(input.Body
|
|
10699
|
-
...(input.Data
|
|
10700
|
-
|
|
10701
|
-
...(input.
|
|
10702
|
-
...(input.
|
|
10703
|
-
...(input.
|
|
10704
|
-
...(input.
|
|
10705
|
-
...(input.
|
|
10706
|
-
...(input.
|
|
10707
|
-
|
|
10708
|
-
...(input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound }),
|
|
10709
|
-
...(input.Substitutions !== undefined &&
|
|
10710
|
-
input.Substitutions !== null && {
|
|
10680
|
+
...(input.Action != null && { Action: input.Action }),
|
|
10681
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10682
|
+
...(input.Data != null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) }),
|
|
10683
|
+
...(input.IconReference != null && { IconReference: input.IconReference }),
|
|
10684
|
+
...(input.ImageIconUrl != null && { ImageIconUrl: input.ImageIconUrl }),
|
|
10685
|
+
...(input.ImageUrl != null && { ImageUrl: input.ImageUrl }),
|
|
10686
|
+
...(input.RawContent != null && { RawContent: input.RawContent }),
|
|
10687
|
+
...(input.SilentPush != null && { SilentPush: input.SilentPush }),
|
|
10688
|
+
...(input.SmallImageIconUrl != null && { SmallImageIconUrl: input.SmallImageIconUrl }),
|
|
10689
|
+
...(input.Sound != null && { Sound: input.Sound }),
|
|
10690
|
+
...(input.Substitutions != null && {
|
|
10711
10691
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
10712
10692
|
}),
|
|
10713
|
-
...(input.TimeToLive
|
|
10714
|
-
...(input.Title
|
|
10715
|
-
...(input.Url
|
|
10693
|
+
...(input.TimeToLive != null && { TimeToLive: input.TimeToLive }),
|
|
10694
|
+
...(input.Title != null && { Title: input.Title }),
|
|
10695
|
+
...(input.Url != null && { Url: input.Url }),
|
|
10716
10696
|
};
|
|
10717
10697
|
};
|
|
10718
10698
|
const serializeAws_restJson1CampaignCustomMessage = (input, context) => {
|
|
10719
10699
|
return {
|
|
10720
|
-
...(input.Data
|
|
10700
|
+
...(input.Data != null && { Data: input.Data }),
|
|
10721
10701
|
};
|
|
10722
10702
|
};
|
|
10723
10703
|
const serializeAws_restJson1CampaignEmailMessage = (input, context) => {
|
|
10724
10704
|
return {
|
|
10725
|
-
...(input.Body
|
|
10726
|
-
...(input.FromAddress
|
|
10727
|
-
...(input.HtmlBody
|
|
10728
|
-
...(input.Title
|
|
10705
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10706
|
+
...(input.FromAddress != null && { FromAddress: input.FromAddress }),
|
|
10707
|
+
...(input.HtmlBody != null && { HtmlBody: input.HtmlBody }),
|
|
10708
|
+
...(input.Title != null && { Title: input.Title }),
|
|
10729
10709
|
};
|
|
10730
10710
|
};
|
|
10731
10711
|
const serializeAws_restJson1CampaignEventFilter = (input, context) => {
|
|
10732
10712
|
return {
|
|
10733
|
-
...(input.Dimensions
|
|
10734
|
-
|
|
10735
|
-
...(input.FilterType !== undefined && input.FilterType !== null && { FilterType: input.FilterType }),
|
|
10713
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context) }),
|
|
10714
|
+
...(input.FilterType != null && { FilterType: input.FilterType }),
|
|
10736
10715
|
};
|
|
10737
10716
|
};
|
|
10738
10717
|
const serializeAws_restJson1CampaignHook = (input, context) => {
|
|
10739
10718
|
return {
|
|
10740
|
-
...(input.LambdaFunctionName
|
|
10741
|
-
|
|
10742
|
-
...(input.
|
|
10743
|
-
...(input.WebUrl !== undefined && input.WebUrl !== null && { WebUrl: input.WebUrl }),
|
|
10719
|
+
...(input.LambdaFunctionName != null && { LambdaFunctionName: input.LambdaFunctionName }),
|
|
10720
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
10721
|
+
...(input.WebUrl != null && { WebUrl: input.WebUrl }),
|
|
10744
10722
|
};
|
|
10745
10723
|
};
|
|
10746
10724
|
const serializeAws_restJson1CampaignInAppMessage = (input, context) => {
|
|
10747
10725
|
return {
|
|
10748
|
-
...(input.Body
|
|
10749
|
-
...(input.Content
|
|
10750
|
-
|
|
10751
|
-
...(input.CustomConfig !== undefined &&
|
|
10752
|
-
input.CustomConfig !== null && {
|
|
10726
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10727
|
+
...(input.Content != null && { Content: serializeAws_restJson1ListOfInAppMessageContent(input.Content, context) }),
|
|
10728
|
+
...(input.CustomConfig != null && {
|
|
10753
10729
|
CustomConfig: serializeAws_restJson1MapOf__string(input.CustomConfig, context),
|
|
10754
10730
|
}),
|
|
10755
|
-
...(input.Layout
|
|
10731
|
+
...(input.Layout != null && { Layout: input.Layout }),
|
|
10756
10732
|
};
|
|
10757
10733
|
};
|
|
10758
10734
|
const serializeAws_restJson1CampaignLimits = (input, context) => {
|
|
10759
10735
|
return {
|
|
10760
|
-
...(input.Daily
|
|
10761
|
-
...(input.MaximumDuration
|
|
10762
|
-
|
|
10763
|
-
...(input.
|
|
10764
|
-
|
|
10765
|
-
...(input.Session !== undefined && input.Session !== null && { Session: input.Session }),
|
|
10766
|
-
...(input.Total !== undefined && input.Total !== null && { Total: input.Total }),
|
|
10736
|
+
...(input.Daily != null && { Daily: input.Daily }),
|
|
10737
|
+
...(input.MaximumDuration != null && { MaximumDuration: input.MaximumDuration }),
|
|
10738
|
+
...(input.MessagesPerSecond != null && { MessagesPerSecond: input.MessagesPerSecond }),
|
|
10739
|
+
...(input.Session != null && { Session: input.Session }),
|
|
10740
|
+
...(input.Total != null && { Total: input.Total }),
|
|
10767
10741
|
};
|
|
10768
10742
|
};
|
|
10769
10743
|
const serializeAws_restJson1CampaignSmsMessage = (input, context) => {
|
|
10770
10744
|
return {
|
|
10771
|
-
...(input.Body
|
|
10772
|
-
...(input.EntityId
|
|
10773
|
-
...(input.MessageType
|
|
10774
|
-
...(input.OriginationNumber
|
|
10775
|
-
|
|
10776
|
-
...(input.
|
|
10777
|
-
...(input.TemplateId !== undefined && input.TemplateId !== null && { TemplateId: input.TemplateId }),
|
|
10745
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10746
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
10747
|
+
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
10748
|
+
...(input.OriginationNumber != null && { OriginationNumber: input.OriginationNumber }),
|
|
10749
|
+
...(input.SenderId != null && { SenderId: input.SenderId }),
|
|
10750
|
+
...(input.TemplateId != null && { TemplateId: input.TemplateId }),
|
|
10778
10751
|
};
|
|
10779
10752
|
};
|
|
10780
10753
|
const serializeAws_restJson1Condition = (input, context) => {
|
|
10781
10754
|
return {
|
|
10782
|
-
...(input.Conditions
|
|
10783
|
-
input.Conditions !== null && {
|
|
10755
|
+
...(input.Conditions != null && {
|
|
10784
10756
|
Conditions: serializeAws_restJson1ListOfSimpleCondition(input.Conditions, context),
|
|
10785
10757
|
}),
|
|
10786
|
-
...(input.Operator
|
|
10758
|
+
...(input.Operator != null && { Operator: input.Operator }),
|
|
10787
10759
|
};
|
|
10788
10760
|
};
|
|
10789
10761
|
const serializeAws_restJson1ConditionalSplitActivity = (input, context) => {
|
|
10790
10762
|
return {
|
|
10791
|
-
...(input.Condition
|
|
10792
|
-
|
|
10793
|
-
...(input.EvaluationWaitTime !== undefined &&
|
|
10794
|
-
input.EvaluationWaitTime !== null && {
|
|
10763
|
+
...(input.Condition != null && { Condition: serializeAws_restJson1Condition(input.Condition, context) }),
|
|
10764
|
+
...(input.EvaluationWaitTime != null && {
|
|
10795
10765
|
EvaluationWaitTime: serializeAws_restJson1WaitTime(input.EvaluationWaitTime, context),
|
|
10796
10766
|
}),
|
|
10797
|
-
...(input.FalseActivity
|
|
10798
|
-
...(input.TrueActivity
|
|
10767
|
+
...(input.FalseActivity != null && { FalseActivity: input.FalseActivity }),
|
|
10768
|
+
...(input.TrueActivity != null && { TrueActivity: input.TrueActivity }),
|
|
10799
10769
|
};
|
|
10800
10770
|
};
|
|
10801
10771
|
const serializeAws_restJson1ContactCenterActivity = (input, context) => {
|
|
10802
10772
|
return {
|
|
10803
|
-
...(input.NextActivity
|
|
10773
|
+
...(input.NextActivity != null && { NextActivity: input.NextActivity }),
|
|
10804
10774
|
};
|
|
10805
10775
|
};
|
|
10806
10776
|
const serializeAws_restJson1CreateApplicationRequest = (input, context) => {
|
|
10807
10777
|
return {
|
|
10808
|
-
...(input.Name
|
|
10809
|
-
...(input.tags
|
|
10810
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
10778
|
+
...(input.Name != null && { Name: input.Name }),
|
|
10779
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
10811
10780
|
};
|
|
10812
10781
|
};
|
|
10813
10782
|
const serializeAws_restJson1CreateRecommenderConfigurationShape = (input, context) => {
|
|
10814
10783
|
return {
|
|
10815
|
-
...(input.Attributes
|
|
10816
|
-
|
|
10817
|
-
...(input.
|
|
10818
|
-
...(input.
|
|
10819
|
-
...(input.RecommendationProviderIdType !== undefined &&
|
|
10820
|
-
input.RecommendationProviderIdType !== null && {
|
|
10784
|
+
...(input.Attributes != null && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context) }),
|
|
10785
|
+
...(input.Description != null && { Description: input.Description }),
|
|
10786
|
+
...(input.Name != null && { Name: input.Name }),
|
|
10787
|
+
...(input.RecommendationProviderIdType != null && {
|
|
10821
10788
|
RecommendationProviderIdType: input.RecommendationProviderIdType,
|
|
10822
10789
|
}),
|
|
10823
|
-
...(input.RecommendationProviderRoleArn
|
|
10824
|
-
input.RecommendationProviderRoleArn !== null && {
|
|
10790
|
+
...(input.RecommendationProviderRoleArn != null && {
|
|
10825
10791
|
RecommendationProviderRoleArn: input.RecommendationProviderRoleArn,
|
|
10826
10792
|
}),
|
|
10827
|
-
...(input.RecommendationProviderUri
|
|
10828
|
-
|
|
10829
|
-
...(input.RecommendationTransformerUri !== undefined &&
|
|
10830
|
-
input.RecommendationTransformerUri !== null && {
|
|
10793
|
+
...(input.RecommendationProviderUri != null && { RecommendationProviderUri: input.RecommendationProviderUri }),
|
|
10794
|
+
...(input.RecommendationTransformerUri != null && {
|
|
10831
10795
|
RecommendationTransformerUri: input.RecommendationTransformerUri,
|
|
10832
10796
|
}),
|
|
10833
|
-
...(input.RecommendationsDisplayName
|
|
10834
|
-
|
|
10835
|
-
...(input.RecommendationsPerMessage !== undefined &&
|
|
10836
|
-
input.RecommendationsPerMessage !== null && { RecommendationsPerMessage: input.RecommendationsPerMessage }),
|
|
10797
|
+
...(input.RecommendationsDisplayName != null && { RecommendationsDisplayName: input.RecommendationsDisplayName }),
|
|
10798
|
+
...(input.RecommendationsPerMessage != null && { RecommendationsPerMessage: input.RecommendationsPerMessage }),
|
|
10837
10799
|
};
|
|
10838
10800
|
};
|
|
10839
10801
|
const serializeAws_restJson1CustomDeliveryConfiguration = (input, context) => {
|
|
10840
10802
|
return {
|
|
10841
|
-
...(input.DeliveryUri
|
|
10842
|
-
...(input.EndpointTypes
|
|
10843
|
-
input.EndpointTypes !== null && {
|
|
10803
|
+
...(input.DeliveryUri != null && { DeliveryUri: input.DeliveryUri }),
|
|
10804
|
+
...(input.EndpointTypes != null && {
|
|
10844
10805
|
EndpointTypes: serializeAws_restJson1ListOf__EndpointTypesElement(input.EndpointTypes, context),
|
|
10845
10806
|
}),
|
|
10846
10807
|
};
|
|
10847
10808
|
};
|
|
10848
10809
|
const serializeAws_restJson1CustomMessageActivity = (input, context) => {
|
|
10849
10810
|
return {
|
|
10850
|
-
...(input.DeliveryUri
|
|
10851
|
-
...(input.EndpointTypes
|
|
10852
|
-
input.EndpointTypes !== null && {
|
|
10811
|
+
...(input.DeliveryUri != null && { DeliveryUri: input.DeliveryUri }),
|
|
10812
|
+
...(input.EndpointTypes != null && {
|
|
10853
10813
|
EndpointTypes: serializeAws_restJson1ListOf__EndpointTypesElement(input.EndpointTypes, context),
|
|
10854
10814
|
}),
|
|
10855
|
-
...(input.MessageConfig
|
|
10856
|
-
input.MessageConfig !== null && {
|
|
10815
|
+
...(input.MessageConfig != null && {
|
|
10857
10816
|
MessageConfig: serializeAws_restJson1JourneyCustomMessage(input.MessageConfig, context),
|
|
10858
10817
|
}),
|
|
10859
|
-
...(input.NextActivity
|
|
10860
|
-
...(input.TemplateName
|
|
10861
|
-
...(input.TemplateVersion
|
|
10862
|
-
input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }),
|
|
10818
|
+
...(input.NextActivity != null && { NextActivity: input.NextActivity }),
|
|
10819
|
+
...(input.TemplateName != null && { TemplateName: input.TemplateName }),
|
|
10820
|
+
...(input.TemplateVersion != null && { TemplateVersion: input.TemplateVersion }),
|
|
10863
10821
|
};
|
|
10864
10822
|
};
|
|
10865
10823
|
const serializeAws_restJson1DefaultButtonConfiguration = (input, context) => {
|
|
10866
10824
|
return {
|
|
10867
|
-
...(input.BackgroundColor
|
|
10868
|
-
|
|
10869
|
-
...(input.
|
|
10870
|
-
...(input.
|
|
10871
|
-
...(input.
|
|
10872
|
-
...(input.
|
|
10873
|
-
...(input.TextColor !== undefined && input.TextColor !== null && { TextColor: input.TextColor }),
|
|
10825
|
+
...(input.BackgroundColor != null && { BackgroundColor: input.BackgroundColor }),
|
|
10826
|
+
...(input.BorderRadius != null && { BorderRadius: input.BorderRadius }),
|
|
10827
|
+
...(input.ButtonAction != null && { ButtonAction: input.ButtonAction }),
|
|
10828
|
+
...(input.Link != null && { Link: input.Link }),
|
|
10829
|
+
...(input.Text != null && { Text: input.Text }),
|
|
10830
|
+
...(input.TextColor != null && { TextColor: input.TextColor }),
|
|
10874
10831
|
};
|
|
10875
10832
|
};
|
|
10876
10833
|
const serializeAws_restJson1DefaultMessage = (input, context) => {
|
|
10877
10834
|
return {
|
|
10878
|
-
...(input.Body
|
|
10879
|
-
...(input.Substitutions
|
|
10880
|
-
input.Substitutions !== null && {
|
|
10835
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10836
|
+
...(input.Substitutions != null && {
|
|
10881
10837
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
10882
10838
|
}),
|
|
10883
10839
|
};
|
|
10884
10840
|
};
|
|
10885
10841
|
const serializeAws_restJson1DefaultPushNotificationMessage = (input, context) => {
|
|
10886
10842
|
return {
|
|
10887
|
-
...(input.Action
|
|
10888
|
-
...(input.Body
|
|
10889
|
-
...(input.Data
|
|
10890
|
-
|
|
10891
|
-
...(input.
|
|
10892
|
-
...(input.Substitutions !== undefined &&
|
|
10893
|
-
input.Substitutions !== null && {
|
|
10843
|
+
...(input.Action != null && { Action: input.Action }),
|
|
10844
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10845
|
+
...(input.Data != null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) }),
|
|
10846
|
+
...(input.SilentPush != null && { SilentPush: input.SilentPush }),
|
|
10847
|
+
...(input.Substitutions != null && {
|
|
10894
10848
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
10895
10849
|
}),
|
|
10896
|
-
...(input.Title
|
|
10897
|
-
...(input.Url
|
|
10850
|
+
...(input.Title != null && { Title: input.Title }),
|
|
10851
|
+
...(input.Url != null && { Url: input.Url }),
|
|
10898
10852
|
};
|
|
10899
10853
|
};
|
|
10900
10854
|
const serializeAws_restJson1DefaultPushNotificationTemplate = (input, context) => {
|
|
10901
10855
|
return {
|
|
10902
|
-
...(input.Action
|
|
10903
|
-
...(input.Body
|
|
10904
|
-
...(input.Sound
|
|
10905
|
-
...(input.Title
|
|
10906
|
-
...(input.Url
|
|
10856
|
+
...(input.Action != null && { Action: input.Action }),
|
|
10857
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10858
|
+
...(input.Sound != null && { Sound: input.Sound }),
|
|
10859
|
+
...(input.Title != null && { Title: input.Title }),
|
|
10860
|
+
...(input.Url != null && { Url: input.Url }),
|
|
10907
10861
|
};
|
|
10908
10862
|
};
|
|
10909
10863
|
const serializeAws_restJson1DirectMessageConfiguration = (input, context) => {
|
|
10910
10864
|
return {
|
|
10911
|
-
...(input.ADMMessage
|
|
10912
|
-
|
|
10913
|
-
...(input.
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
...(input.DefaultMessage !== undefined &&
|
|
10918
|
-
input.DefaultMessage !== null && {
|
|
10865
|
+
...(input.ADMMessage != null && { ADMMessage: serializeAws_restJson1ADMMessage(input.ADMMessage, context) }),
|
|
10866
|
+
...(input.APNSMessage != null && { APNSMessage: serializeAws_restJson1APNSMessage(input.APNSMessage, context) }),
|
|
10867
|
+
...(input.BaiduMessage != null && {
|
|
10868
|
+
BaiduMessage: serializeAws_restJson1BaiduMessage(input.BaiduMessage, context),
|
|
10869
|
+
}),
|
|
10870
|
+
...(input.DefaultMessage != null && {
|
|
10919
10871
|
DefaultMessage: serializeAws_restJson1DefaultMessage(input.DefaultMessage, context),
|
|
10920
10872
|
}),
|
|
10921
|
-
...(input.DefaultPushNotificationMessage
|
|
10922
|
-
input.DefaultPushNotificationMessage !== null && {
|
|
10873
|
+
...(input.DefaultPushNotificationMessage != null && {
|
|
10923
10874
|
DefaultPushNotificationMessage: serializeAws_restJson1DefaultPushNotificationMessage(input.DefaultPushNotificationMessage, context),
|
|
10924
10875
|
}),
|
|
10925
|
-
...(input.EmailMessage
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
...(input.SMSMessage
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10876
|
+
...(input.EmailMessage != null && {
|
|
10877
|
+
EmailMessage: serializeAws_restJson1EmailMessage(input.EmailMessage, context),
|
|
10878
|
+
}),
|
|
10879
|
+
...(input.GCMMessage != null && { GCMMessage: serializeAws_restJson1GCMMessage(input.GCMMessage, context) }),
|
|
10880
|
+
...(input.SMSMessage != null && { SMSMessage: serializeAws_restJson1SMSMessage(input.SMSMessage, context) }),
|
|
10881
|
+
...(input.VoiceMessage != null && {
|
|
10882
|
+
VoiceMessage: serializeAws_restJson1VoiceMessage(input.VoiceMessage, context),
|
|
10883
|
+
}),
|
|
10933
10884
|
};
|
|
10934
10885
|
};
|
|
10935
10886
|
const serializeAws_restJson1EmailChannelRequest = (input, context) => {
|
|
10936
10887
|
return {
|
|
10937
|
-
...(input.ConfigurationSet
|
|
10938
|
-
|
|
10939
|
-
...(input.
|
|
10940
|
-
...(input.
|
|
10941
|
-
...(input.
|
|
10942
|
-
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
10888
|
+
...(input.ConfigurationSet != null && { ConfigurationSet: input.ConfigurationSet }),
|
|
10889
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
10890
|
+
...(input.FromAddress != null && { FromAddress: input.FromAddress }),
|
|
10891
|
+
...(input.Identity != null && { Identity: input.Identity }),
|
|
10892
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
10943
10893
|
};
|
|
10944
10894
|
};
|
|
10945
10895
|
const serializeAws_restJson1EmailMessage = (input, context) => {
|
|
10946
10896
|
return {
|
|
10947
|
-
...(input.Body
|
|
10948
|
-
...(input.FeedbackForwardingAddress
|
|
10949
|
-
|
|
10950
|
-
...(input.
|
|
10951
|
-
...(input.
|
|
10952
|
-
input.RawEmail !== null && { RawEmail: serializeAws_restJson1RawEmail(input.RawEmail, context) }),
|
|
10953
|
-
...(input.ReplyToAddresses !== undefined &&
|
|
10954
|
-
input.ReplyToAddresses !== null && {
|
|
10897
|
+
...(input.Body != null && { Body: input.Body }),
|
|
10898
|
+
...(input.FeedbackForwardingAddress != null && { FeedbackForwardingAddress: input.FeedbackForwardingAddress }),
|
|
10899
|
+
...(input.FromAddress != null && { FromAddress: input.FromAddress }),
|
|
10900
|
+
...(input.RawEmail != null && { RawEmail: serializeAws_restJson1RawEmail(input.RawEmail, context) }),
|
|
10901
|
+
...(input.ReplyToAddresses != null && {
|
|
10955
10902
|
ReplyToAddresses: serializeAws_restJson1ListOf__string(input.ReplyToAddresses, context),
|
|
10956
10903
|
}),
|
|
10957
|
-
...(input.SimpleEmail
|
|
10958
|
-
|
|
10959
|
-
...(input.Substitutions !== undefined &&
|
|
10960
|
-
input.Substitutions !== null && {
|
|
10904
|
+
...(input.SimpleEmail != null && { SimpleEmail: serializeAws_restJson1SimpleEmail(input.SimpleEmail, context) }),
|
|
10905
|
+
...(input.Substitutions != null && {
|
|
10961
10906
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
10962
10907
|
}),
|
|
10963
10908
|
};
|
|
10964
10909
|
};
|
|
10965
10910
|
const serializeAws_restJson1EmailMessageActivity = (input, context) => {
|
|
10966
10911
|
return {
|
|
10967
|
-
...(input.MessageConfig
|
|
10968
|
-
input.MessageConfig !== null && {
|
|
10912
|
+
...(input.MessageConfig != null && {
|
|
10969
10913
|
MessageConfig: serializeAws_restJson1JourneyEmailMessage(input.MessageConfig, context),
|
|
10970
10914
|
}),
|
|
10971
|
-
...(input.NextActivity
|
|
10972
|
-
...(input.TemplateName
|
|
10973
|
-
...(input.TemplateVersion
|
|
10974
|
-
input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }),
|
|
10915
|
+
...(input.NextActivity != null && { NextActivity: input.NextActivity }),
|
|
10916
|
+
...(input.TemplateName != null && { TemplateName: input.TemplateName }),
|
|
10917
|
+
...(input.TemplateVersion != null && { TemplateVersion: input.TemplateVersion }),
|
|
10975
10918
|
};
|
|
10976
10919
|
};
|
|
10977
10920
|
const serializeAws_restJson1EmailTemplateRequest = (input, context) => {
|
|
10978
10921
|
return {
|
|
10979
|
-
...(input.DefaultSubstitutions
|
|
10980
|
-
|
|
10981
|
-
...(input.
|
|
10982
|
-
...(input.
|
|
10983
|
-
...(input.
|
|
10984
|
-
...(input.
|
|
10985
|
-
|
|
10986
|
-
...(input.TextPart !== undefined && input.TextPart !== null && { TextPart: input.TextPart }),
|
|
10987
|
-
...(input.tags !== undefined &&
|
|
10988
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
10922
|
+
...(input.DefaultSubstitutions != null && { DefaultSubstitutions: input.DefaultSubstitutions }),
|
|
10923
|
+
...(input.HtmlPart != null && { HtmlPart: input.HtmlPart }),
|
|
10924
|
+
...(input.RecommenderId != null && { RecommenderId: input.RecommenderId }),
|
|
10925
|
+
...(input.Subject != null && { Subject: input.Subject }),
|
|
10926
|
+
...(input.TemplateDescription != null && { TemplateDescription: input.TemplateDescription }),
|
|
10927
|
+
...(input.TextPart != null && { TextPart: input.TextPart }),
|
|
10928
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
10989
10929
|
};
|
|
10990
10930
|
};
|
|
10991
10931
|
const serializeAws_restJson1EndpointBatchItem = (input, context) => {
|
|
10992
10932
|
return {
|
|
10993
|
-
...(input.Address
|
|
10994
|
-
...(input.Attributes
|
|
10995
|
-
input.Attributes !== null && {
|
|
10933
|
+
...(input.Address != null && { Address: input.Address }),
|
|
10934
|
+
...(input.Attributes != null && {
|
|
10996
10935
|
Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context),
|
|
10997
10936
|
}),
|
|
10998
|
-
...(input.ChannelType
|
|
10999
|
-
...(input.Demographic
|
|
11000
|
-
input.Demographic !== null && {
|
|
10937
|
+
...(input.ChannelType != null && { ChannelType: input.ChannelType }),
|
|
10938
|
+
...(input.Demographic != null && {
|
|
11001
10939
|
Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context),
|
|
11002
10940
|
}),
|
|
11003
|
-
...(input.EffectiveDate
|
|
11004
|
-
...(input.EndpointStatus
|
|
11005
|
-
|
|
11006
|
-
...(input.
|
|
11007
|
-
...(input.
|
|
11008
|
-
|
|
11009
|
-
...(input.
|
|
11010
|
-
|
|
11011
|
-
...(input.OptOut !== undefined && input.OptOut !== null && { OptOut: input.OptOut }),
|
|
11012
|
-
...(input.RequestId !== undefined && input.RequestId !== null && { RequestId: input.RequestId }),
|
|
11013
|
-
...(input.User !== undefined &&
|
|
11014
|
-
input.User !== null && { User: serializeAws_restJson1EndpointUser(input.User, context) }),
|
|
10941
|
+
...(input.EffectiveDate != null && { EffectiveDate: input.EffectiveDate }),
|
|
10942
|
+
...(input.EndpointStatus != null && { EndpointStatus: input.EndpointStatus }),
|
|
10943
|
+
...(input.Id != null && { Id: input.Id }),
|
|
10944
|
+
...(input.Location != null && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) }),
|
|
10945
|
+
...(input.Metrics != null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) }),
|
|
10946
|
+
...(input.OptOut != null && { OptOut: input.OptOut }),
|
|
10947
|
+
...(input.RequestId != null && { RequestId: input.RequestId }),
|
|
10948
|
+
...(input.User != null && { User: serializeAws_restJson1EndpointUser(input.User, context) }),
|
|
11015
10949
|
};
|
|
11016
10950
|
};
|
|
11017
10951
|
const serializeAws_restJson1EndpointBatchRequest = (input, context) => {
|
|
11018
10952
|
return {
|
|
11019
|
-
...(input.Item
|
|
11020
|
-
input.Item !== null && { Item: serializeAws_restJson1ListOfEndpointBatchItem(input.Item, context) }),
|
|
10953
|
+
...(input.Item != null && { Item: serializeAws_restJson1ListOfEndpointBatchItem(input.Item, context) }),
|
|
11021
10954
|
};
|
|
11022
10955
|
};
|
|
11023
10956
|
const serializeAws_restJson1EndpointDemographic = (input, context) => {
|
|
11024
10957
|
return {
|
|
11025
|
-
...(input.AppVersion
|
|
11026
|
-
...(input.Locale
|
|
11027
|
-
...(input.Make
|
|
11028
|
-
...(input.Model
|
|
11029
|
-
...(input.ModelVersion
|
|
11030
|
-
...(input.Platform
|
|
11031
|
-
...(input.PlatformVersion
|
|
11032
|
-
|
|
11033
|
-
...(input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }),
|
|
10958
|
+
...(input.AppVersion != null && { AppVersion: input.AppVersion }),
|
|
10959
|
+
...(input.Locale != null && { Locale: input.Locale }),
|
|
10960
|
+
...(input.Make != null && { Make: input.Make }),
|
|
10961
|
+
...(input.Model != null && { Model: input.Model }),
|
|
10962
|
+
...(input.ModelVersion != null && { ModelVersion: input.ModelVersion }),
|
|
10963
|
+
...(input.Platform != null && { Platform: input.Platform }),
|
|
10964
|
+
...(input.PlatformVersion != null && { PlatformVersion: input.PlatformVersion }),
|
|
10965
|
+
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
11034
10966
|
};
|
|
11035
10967
|
};
|
|
11036
10968
|
const serializeAws_restJson1EndpointLocation = (input, context) => {
|
|
11037
10969
|
return {
|
|
11038
|
-
...(input.City
|
|
11039
|
-
...(input.Country
|
|
11040
|
-
...(input.Latitude
|
|
11041
|
-
...(input.Longitude
|
|
11042
|
-
...(input.PostalCode
|
|
11043
|
-
...(input.Region
|
|
10970
|
+
...(input.City != null && { City: input.City }),
|
|
10971
|
+
...(input.Country != null && { Country: input.Country }),
|
|
10972
|
+
...(input.Latitude != null && { Latitude: (0, smithy_client_1.serializeFloat)(input.Latitude) }),
|
|
10973
|
+
...(input.Longitude != null && { Longitude: (0, smithy_client_1.serializeFloat)(input.Longitude) }),
|
|
10974
|
+
...(input.PostalCode != null && { PostalCode: input.PostalCode }),
|
|
10975
|
+
...(input.Region != null && { Region: input.Region }),
|
|
11044
10976
|
};
|
|
11045
10977
|
};
|
|
11046
10978
|
const serializeAws_restJson1EndpointRequest = (input, context) => {
|
|
11047
10979
|
return {
|
|
11048
|
-
...(input.Address
|
|
11049
|
-
...(input.Attributes
|
|
11050
|
-
input.Attributes !== null && {
|
|
10980
|
+
...(input.Address != null && { Address: input.Address }),
|
|
10981
|
+
...(input.Attributes != null && {
|
|
11051
10982
|
Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context),
|
|
11052
10983
|
}),
|
|
11053
|
-
...(input.ChannelType
|
|
11054
|
-
...(input.Demographic
|
|
11055
|
-
input.Demographic !== null && {
|
|
10984
|
+
...(input.ChannelType != null && { ChannelType: input.ChannelType }),
|
|
10985
|
+
...(input.Demographic != null && {
|
|
11056
10986
|
Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context),
|
|
11057
10987
|
}),
|
|
11058
|
-
...(input.EffectiveDate
|
|
11059
|
-
...(input.EndpointStatus
|
|
11060
|
-
|
|
11061
|
-
...(input.
|
|
11062
|
-
|
|
11063
|
-
...(input.
|
|
11064
|
-
|
|
11065
|
-
...(input.OptOut !== undefined && input.OptOut !== null && { OptOut: input.OptOut }),
|
|
11066
|
-
...(input.RequestId !== undefined && input.RequestId !== null && { RequestId: input.RequestId }),
|
|
11067
|
-
...(input.User !== undefined &&
|
|
11068
|
-
input.User !== null && { User: serializeAws_restJson1EndpointUser(input.User, context) }),
|
|
10988
|
+
...(input.EffectiveDate != null && { EffectiveDate: input.EffectiveDate }),
|
|
10989
|
+
...(input.EndpointStatus != null && { EndpointStatus: input.EndpointStatus }),
|
|
10990
|
+
...(input.Location != null && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) }),
|
|
10991
|
+
...(input.Metrics != null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) }),
|
|
10992
|
+
...(input.OptOut != null && { OptOut: input.OptOut }),
|
|
10993
|
+
...(input.RequestId != null && { RequestId: input.RequestId }),
|
|
10994
|
+
...(input.User != null && { User: serializeAws_restJson1EndpointUser(input.User, context) }),
|
|
11069
10995
|
};
|
|
11070
10996
|
};
|
|
11071
10997
|
const serializeAws_restJson1EndpointSendConfiguration = (input, context) => {
|
|
11072
10998
|
return {
|
|
11073
|
-
...(input.BodyOverride
|
|
11074
|
-
...(input.Context
|
|
11075
|
-
|
|
11076
|
-
...(input.
|
|
11077
|
-
...(input.Substitutions !== undefined &&
|
|
11078
|
-
input.Substitutions !== null && {
|
|
10999
|
+
...(input.BodyOverride != null && { BodyOverride: input.BodyOverride }),
|
|
11000
|
+
...(input.Context != null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) }),
|
|
11001
|
+
...(input.RawContent != null && { RawContent: input.RawContent }),
|
|
11002
|
+
...(input.Substitutions != null && {
|
|
11079
11003
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
11080
11004
|
}),
|
|
11081
|
-
...(input.TitleOverride
|
|
11005
|
+
...(input.TitleOverride != null && { TitleOverride: input.TitleOverride }),
|
|
11082
11006
|
};
|
|
11083
11007
|
};
|
|
11084
11008
|
const serializeAws_restJson1EndpointUser = (input, context) => {
|
|
11085
11009
|
return {
|
|
11086
|
-
...(input.UserAttributes
|
|
11087
|
-
input.UserAttributes !== null && {
|
|
11010
|
+
...(input.UserAttributes != null && {
|
|
11088
11011
|
UserAttributes: serializeAws_restJson1MapOfListOf__string(input.UserAttributes, context),
|
|
11089
11012
|
}),
|
|
11090
|
-
...(input.UserId
|
|
11013
|
+
...(input.UserId != null && { UserId: input.UserId }),
|
|
11091
11014
|
};
|
|
11092
11015
|
};
|
|
11093
11016
|
const serializeAws_restJson1Event = (input, context) => {
|
|
11094
11017
|
return {
|
|
11095
|
-
...(input.AppPackageName
|
|
11096
|
-
|
|
11097
|
-
...(input.
|
|
11098
|
-
...(input.
|
|
11099
|
-
|
|
11100
|
-
...(input.
|
|
11101
|
-
|
|
11102
|
-
...(input.
|
|
11103
|
-
|
|
11104
|
-
...(input.
|
|
11105
|
-
...(input.Metrics !== undefined &&
|
|
11106
|
-
input.Metrics !== null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) }),
|
|
11107
|
-
...(input.SdkName !== undefined && input.SdkName !== null && { SdkName: input.SdkName }),
|
|
11108
|
-
...(input.Session !== undefined &&
|
|
11109
|
-
input.Session !== null && { Session: serializeAws_restJson1Session(input.Session, context) }),
|
|
11110
|
-
...(input.Timestamp !== undefined && input.Timestamp !== null && { Timestamp: input.Timestamp }),
|
|
11018
|
+
...(input.AppPackageName != null && { AppPackageName: input.AppPackageName }),
|
|
11019
|
+
...(input.AppTitle != null && { AppTitle: input.AppTitle }),
|
|
11020
|
+
...(input.AppVersionCode != null && { AppVersionCode: input.AppVersionCode }),
|
|
11021
|
+
...(input.Attributes != null && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context) }),
|
|
11022
|
+
...(input.ClientSdkVersion != null && { ClientSdkVersion: input.ClientSdkVersion }),
|
|
11023
|
+
...(input.EventType != null && { EventType: input.EventType }),
|
|
11024
|
+
...(input.Metrics != null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) }),
|
|
11025
|
+
...(input.SdkName != null && { SdkName: input.SdkName }),
|
|
11026
|
+
...(input.Session != null && { Session: serializeAws_restJson1Session(input.Session, context) }),
|
|
11027
|
+
...(input.Timestamp != null && { Timestamp: input.Timestamp }),
|
|
11111
11028
|
};
|
|
11112
11029
|
};
|
|
11113
11030
|
const serializeAws_restJson1EventCondition = (input, context) => {
|
|
11114
11031
|
return {
|
|
11115
|
-
...(input.Dimensions
|
|
11116
|
-
|
|
11117
|
-
...(input.MessageActivity !== undefined &&
|
|
11118
|
-
input.MessageActivity !== null && { MessageActivity: input.MessageActivity }),
|
|
11032
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context) }),
|
|
11033
|
+
...(input.MessageActivity != null && { MessageActivity: input.MessageActivity }),
|
|
11119
11034
|
};
|
|
11120
11035
|
};
|
|
11121
11036
|
const serializeAws_restJson1EventDimensions = (input, context) => {
|
|
11122
11037
|
return {
|
|
11123
|
-
...(input.Attributes
|
|
11124
|
-
input.Attributes !== null && {
|
|
11038
|
+
...(input.Attributes != null && {
|
|
11125
11039
|
Attributes: serializeAws_restJson1MapOfAttributeDimension(input.Attributes, context),
|
|
11126
11040
|
}),
|
|
11127
|
-
...(input.EventType
|
|
11128
|
-
|
|
11129
|
-
...(input.Metrics !== undefined &&
|
|
11130
|
-
input.Metrics !== null && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) }),
|
|
11041
|
+
...(input.EventType != null && { EventType: serializeAws_restJson1SetDimension(input.EventType, context) }),
|
|
11042
|
+
...(input.Metrics != null && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) }),
|
|
11131
11043
|
};
|
|
11132
11044
|
};
|
|
11133
11045
|
const serializeAws_restJson1EventFilter = (input, context) => {
|
|
11134
11046
|
return {
|
|
11135
|
-
...(input.Dimensions
|
|
11136
|
-
|
|
11137
|
-
...(input.FilterType !== undefined && input.FilterType !== null && { FilterType: input.FilterType }),
|
|
11047
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1EventDimensions(input.Dimensions, context) }),
|
|
11048
|
+
...(input.FilterType != null && { FilterType: input.FilterType }),
|
|
11138
11049
|
};
|
|
11139
11050
|
};
|
|
11140
11051
|
const serializeAws_restJson1EventsBatch = (input, context) => {
|
|
11141
11052
|
return {
|
|
11142
|
-
...(input.Endpoint
|
|
11143
|
-
|
|
11144
|
-
...(input.Events !== undefined &&
|
|
11145
|
-
input.Events !== null && { Events: serializeAws_restJson1MapOfEvent(input.Events, context) }),
|
|
11053
|
+
...(input.Endpoint != null && { Endpoint: serializeAws_restJson1PublicEndpoint(input.Endpoint, context) }),
|
|
11054
|
+
...(input.Events != null && { Events: serializeAws_restJson1MapOfEvent(input.Events, context) }),
|
|
11146
11055
|
};
|
|
11147
11056
|
};
|
|
11148
11057
|
const serializeAws_restJson1EventsRequest = (input, context) => {
|
|
11149
11058
|
return {
|
|
11150
|
-
...(input.BatchItem
|
|
11151
|
-
input.BatchItem !== null && { BatchItem: serializeAws_restJson1MapOfEventsBatch(input.BatchItem, context) }),
|
|
11059
|
+
...(input.BatchItem != null && { BatchItem: serializeAws_restJson1MapOfEventsBatch(input.BatchItem, context) }),
|
|
11152
11060
|
};
|
|
11153
11061
|
};
|
|
11154
11062
|
const serializeAws_restJson1EventStartCondition = (input, context) => {
|
|
11155
11063
|
return {
|
|
11156
|
-
...(input.EventFilter
|
|
11157
|
-
|
|
11158
|
-
...(input.SegmentId !== undefined && input.SegmentId !== null && { SegmentId: input.SegmentId }),
|
|
11064
|
+
...(input.EventFilter != null && { EventFilter: serializeAws_restJson1EventFilter(input.EventFilter, context) }),
|
|
11065
|
+
...(input.SegmentId != null && { SegmentId: input.SegmentId }),
|
|
11159
11066
|
};
|
|
11160
11067
|
};
|
|
11161
11068
|
const serializeAws_restJson1ExportJobRequest = (input, context) => {
|
|
11162
11069
|
return {
|
|
11163
|
-
...(input.RoleArn
|
|
11164
|
-
...(input.S3UrlPrefix
|
|
11165
|
-
...(input.SegmentId
|
|
11166
|
-
...(input.SegmentVersion
|
|
11167
|
-
input.SegmentVersion !== null && { SegmentVersion: input.SegmentVersion }),
|
|
11070
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
11071
|
+
...(input.S3UrlPrefix != null && { S3UrlPrefix: input.S3UrlPrefix }),
|
|
11072
|
+
...(input.SegmentId != null && { SegmentId: input.SegmentId }),
|
|
11073
|
+
...(input.SegmentVersion != null && { SegmentVersion: input.SegmentVersion }),
|
|
11168
11074
|
};
|
|
11169
11075
|
};
|
|
11170
11076
|
const serializeAws_restJson1GCMChannelRequest = (input, context) => {
|
|
11171
11077
|
return {
|
|
11172
|
-
...(input.ApiKey
|
|
11173
|
-
...(input.Enabled
|
|
11078
|
+
...(input.ApiKey != null && { ApiKey: input.ApiKey }),
|
|
11079
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
11174
11080
|
};
|
|
11175
11081
|
};
|
|
11176
11082
|
const serializeAws_restJson1GCMMessage = (input, context) => {
|
|
11177
11083
|
return {
|
|
11178
|
-
...(input.Action
|
|
11179
|
-
...(input.Body
|
|
11180
|
-
...(input.CollapseKey
|
|
11181
|
-
...(input.Data
|
|
11182
|
-
|
|
11183
|
-
...(input.
|
|
11184
|
-
...(input.
|
|
11185
|
-
...(input.
|
|
11186
|
-
...(input.
|
|
11187
|
-
...(input.
|
|
11188
|
-
...(input.
|
|
11189
|
-
|
|
11190
|
-
...(input.
|
|
11191
|
-
...(input.
|
|
11192
|
-
input.SmallImageIconUrl !== null && { SmallImageIconUrl: input.SmallImageIconUrl }),
|
|
11193
|
-
...(input.Sound !== undefined && input.Sound !== null && { Sound: input.Sound }),
|
|
11194
|
-
...(input.Substitutions !== undefined &&
|
|
11195
|
-
input.Substitutions !== null && {
|
|
11084
|
+
...(input.Action != null && { Action: input.Action }),
|
|
11085
|
+
...(input.Body != null && { Body: input.Body }),
|
|
11086
|
+
...(input.CollapseKey != null && { CollapseKey: input.CollapseKey }),
|
|
11087
|
+
...(input.Data != null && { Data: serializeAws_restJson1MapOf__string(input.Data, context) }),
|
|
11088
|
+
...(input.IconReference != null && { IconReference: input.IconReference }),
|
|
11089
|
+
...(input.ImageIconUrl != null && { ImageIconUrl: input.ImageIconUrl }),
|
|
11090
|
+
...(input.ImageUrl != null && { ImageUrl: input.ImageUrl }),
|
|
11091
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
11092
|
+
...(input.RawContent != null && { RawContent: input.RawContent }),
|
|
11093
|
+
...(input.RestrictedPackageName != null && { RestrictedPackageName: input.RestrictedPackageName }),
|
|
11094
|
+
...(input.SilentPush != null && { SilentPush: input.SilentPush }),
|
|
11095
|
+
...(input.SmallImageIconUrl != null && { SmallImageIconUrl: input.SmallImageIconUrl }),
|
|
11096
|
+
...(input.Sound != null && { Sound: input.Sound }),
|
|
11097
|
+
...(input.Substitutions != null && {
|
|
11196
11098
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
11197
11099
|
}),
|
|
11198
|
-
...(input.TimeToLive
|
|
11199
|
-
...(input.Title
|
|
11200
|
-
...(input.Url
|
|
11100
|
+
...(input.TimeToLive != null && { TimeToLive: input.TimeToLive }),
|
|
11101
|
+
...(input.Title != null && { Title: input.Title }),
|
|
11102
|
+
...(input.Url != null && { Url: input.Url }),
|
|
11201
11103
|
};
|
|
11202
11104
|
};
|
|
11203
11105
|
const serializeAws_restJson1GPSCoordinates = (input, context) => {
|
|
11204
11106
|
return {
|
|
11205
|
-
...(input.Latitude
|
|
11206
|
-
...(input.Longitude
|
|
11107
|
+
...(input.Latitude != null && { Latitude: (0, smithy_client_1.serializeFloat)(input.Latitude) }),
|
|
11108
|
+
...(input.Longitude != null && { Longitude: (0, smithy_client_1.serializeFloat)(input.Longitude) }),
|
|
11207
11109
|
};
|
|
11208
11110
|
};
|
|
11209
11111
|
const serializeAws_restJson1GPSPointDimension = (input, context) => {
|
|
11210
11112
|
return {
|
|
11211
|
-
...(input.Coordinates
|
|
11212
|
-
|
|
11213
|
-
...(input.RangeInKilometers !== undefined &&
|
|
11214
|
-
input.RangeInKilometers !== null && { RangeInKilometers: (0, smithy_client_1.serializeFloat)(input.RangeInKilometers) }),
|
|
11113
|
+
...(input.Coordinates != null && { Coordinates: serializeAws_restJson1GPSCoordinates(input.Coordinates, context) }),
|
|
11114
|
+
...(input.RangeInKilometers != null && { RangeInKilometers: (0, smithy_client_1.serializeFloat)(input.RangeInKilometers) }),
|
|
11215
11115
|
};
|
|
11216
11116
|
};
|
|
11217
11117
|
const serializeAws_restJson1HoldoutActivity = (input, context) => {
|
|
11218
11118
|
return {
|
|
11219
|
-
...(input.NextActivity
|
|
11220
|
-
...(input.Percentage
|
|
11119
|
+
...(input.NextActivity != null && { NextActivity: input.NextActivity }),
|
|
11120
|
+
...(input.Percentage != null && { Percentage: input.Percentage }),
|
|
11221
11121
|
};
|
|
11222
11122
|
};
|
|
11223
11123
|
const serializeAws_restJson1ImportJobRequest = (input, context) => {
|
|
11224
11124
|
return {
|
|
11225
|
-
...(input.DefineSegment
|
|
11226
|
-
...(input.ExternalId
|
|
11227
|
-
...(input.Format
|
|
11228
|
-
...(input.RegisterEndpoints
|
|
11229
|
-
|
|
11230
|
-
...(input.
|
|
11231
|
-
...(input.
|
|
11232
|
-
...(input.
|
|
11233
|
-
...(input.SegmentName !== undefined && input.SegmentName !== null && { SegmentName: input.SegmentName }),
|
|
11125
|
+
...(input.DefineSegment != null && { DefineSegment: input.DefineSegment }),
|
|
11126
|
+
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
11127
|
+
...(input.Format != null && { Format: input.Format }),
|
|
11128
|
+
...(input.RegisterEndpoints != null && { RegisterEndpoints: input.RegisterEndpoints }),
|
|
11129
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
11130
|
+
...(input.S3Url != null && { S3Url: input.S3Url }),
|
|
11131
|
+
...(input.SegmentId != null && { SegmentId: input.SegmentId }),
|
|
11132
|
+
...(input.SegmentName != null && { SegmentName: input.SegmentName }),
|
|
11234
11133
|
};
|
|
11235
11134
|
};
|
|
11236
11135
|
const serializeAws_restJson1InAppMessageBodyConfig = (input, context) => {
|
|
11237
11136
|
return {
|
|
11238
|
-
...(input.Alignment
|
|
11239
|
-
...(input.Body
|
|
11240
|
-
...(input.TextColor
|
|
11137
|
+
...(input.Alignment != null && { Alignment: input.Alignment }),
|
|
11138
|
+
...(input.Body != null && { Body: input.Body }),
|
|
11139
|
+
...(input.TextColor != null && { TextColor: input.TextColor }),
|
|
11241
11140
|
};
|
|
11242
11141
|
};
|
|
11243
11142
|
const serializeAws_restJson1InAppMessageButton = (input, context) => {
|
|
11244
11143
|
return {
|
|
11245
|
-
...(input.Android
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
|
|
11144
|
+
...(input.Android != null && {
|
|
11145
|
+
Android: serializeAws_restJson1OverrideButtonConfiguration(input.Android, context),
|
|
11146
|
+
}),
|
|
11147
|
+
...(input.DefaultConfig != null && {
|
|
11249
11148
|
DefaultConfig: serializeAws_restJson1DefaultButtonConfiguration(input.DefaultConfig, context),
|
|
11250
11149
|
}),
|
|
11251
|
-
...(input.IOS
|
|
11252
|
-
|
|
11253
|
-
...(input.Web !== undefined &&
|
|
11254
|
-
input.Web !== null && { Web: serializeAws_restJson1OverrideButtonConfiguration(input.Web, context) }),
|
|
11150
|
+
...(input.IOS != null && { IOS: serializeAws_restJson1OverrideButtonConfiguration(input.IOS, context) }),
|
|
11151
|
+
...(input.Web != null && { Web: serializeAws_restJson1OverrideButtonConfiguration(input.Web, context) }),
|
|
11255
11152
|
};
|
|
11256
11153
|
};
|
|
11257
11154
|
const serializeAws_restJson1InAppMessageContent = (input, context) => {
|
|
11258
11155
|
return {
|
|
11259
|
-
...(input.BackgroundColor
|
|
11260
|
-
|
|
11261
|
-
...(input.BodyConfig !== undefined &&
|
|
11262
|
-
input.BodyConfig !== null && {
|
|
11156
|
+
...(input.BackgroundColor != null && { BackgroundColor: input.BackgroundColor }),
|
|
11157
|
+
...(input.BodyConfig != null && {
|
|
11263
11158
|
BodyConfig: serializeAws_restJson1InAppMessageBodyConfig(input.BodyConfig, context),
|
|
11264
11159
|
}),
|
|
11265
|
-
...(input.HeaderConfig
|
|
11266
|
-
input.HeaderConfig !== null && {
|
|
11160
|
+
...(input.HeaderConfig != null && {
|
|
11267
11161
|
HeaderConfig: serializeAws_restJson1InAppMessageHeaderConfig(input.HeaderConfig, context),
|
|
11268
11162
|
}),
|
|
11269
|
-
...(input.ImageUrl
|
|
11270
|
-
...(input.PrimaryBtn
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11163
|
+
...(input.ImageUrl != null && { ImageUrl: input.ImageUrl }),
|
|
11164
|
+
...(input.PrimaryBtn != null && {
|
|
11165
|
+
PrimaryBtn: serializeAws_restJson1InAppMessageButton(input.PrimaryBtn, context),
|
|
11166
|
+
}),
|
|
11167
|
+
...(input.SecondaryBtn != null && {
|
|
11274
11168
|
SecondaryBtn: serializeAws_restJson1InAppMessageButton(input.SecondaryBtn, context),
|
|
11275
11169
|
}),
|
|
11276
11170
|
};
|
|
11277
11171
|
};
|
|
11278
11172
|
const serializeAws_restJson1InAppMessageHeaderConfig = (input, context) => {
|
|
11279
11173
|
return {
|
|
11280
|
-
...(input.Alignment
|
|
11281
|
-
...(input.Header
|
|
11282
|
-
...(input.TextColor
|
|
11174
|
+
...(input.Alignment != null && { Alignment: input.Alignment }),
|
|
11175
|
+
...(input.Header != null && { Header: input.Header }),
|
|
11176
|
+
...(input.TextColor != null && { TextColor: input.TextColor }),
|
|
11283
11177
|
};
|
|
11284
11178
|
};
|
|
11285
11179
|
const serializeAws_restJson1InAppTemplateRequest = (input, context) => {
|
|
11286
11180
|
return {
|
|
11287
|
-
...(input.Content
|
|
11288
|
-
|
|
11289
|
-
...(input.CustomConfig !== undefined &&
|
|
11290
|
-
input.CustomConfig !== null && {
|
|
11181
|
+
...(input.Content != null && { Content: serializeAws_restJson1ListOfInAppMessageContent(input.Content, context) }),
|
|
11182
|
+
...(input.CustomConfig != null && {
|
|
11291
11183
|
CustomConfig: serializeAws_restJson1MapOf__string(input.CustomConfig, context),
|
|
11292
11184
|
}),
|
|
11293
|
-
...(input.Layout
|
|
11294
|
-
...(input.TemplateDescription
|
|
11295
|
-
|
|
11296
|
-
...(input.tags !== undefined &&
|
|
11297
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
11185
|
+
...(input.Layout != null && { Layout: input.Layout }),
|
|
11186
|
+
...(input.TemplateDescription != null && { TemplateDescription: input.TemplateDescription }),
|
|
11187
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
11298
11188
|
};
|
|
11299
11189
|
};
|
|
11300
11190
|
const serializeAws_restJson1JourneyChannelSettings = (input, context) => {
|
|
11301
11191
|
return {
|
|
11302
|
-
...(input.ConnectCampaignArn
|
|
11303
|
-
|
|
11304
|
-
...(input.ConnectCampaignExecutionRoleArn !== undefined &&
|
|
11305
|
-
input.ConnectCampaignExecutionRoleArn !== null && {
|
|
11192
|
+
...(input.ConnectCampaignArn != null && { ConnectCampaignArn: input.ConnectCampaignArn }),
|
|
11193
|
+
...(input.ConnectCampaignExecutionRoleArn != null && {
|
|
11306
11194
|
ConnectCampaignExecutionRoleArn: input.ConnectCampaignExecutionRoleArn,
|
|
11307
11195
|
}),
|
|
11308
11196
|
};
|
|
11309
11197
|
};
|
|
11310
11198
|
const serializeAws_restJson1JourneyCustomMessage = (input, context) => {
|
|
11311
11199
|
return {
|
|
11312
|
-
...(input.Data
|
|
11200
|
+
...(input.Data != null && { Data: input.Data }),
|
|
11313
11201
|
};
|
|
11314
11202
|
};
|
|
11315
11203
|
const serializeAws_restJson1JourneyEmailMessage = (input, context) => {
|
|
11316
11204
|
return {
|
|
11317
|
-
...(input.FromAddress
|
|
11205
|
+
...(input.FromAddress != null && { FromAddress: input.FromAddress }),
|
|
11318
11206
|
};
|
|
11319
11207
|
};
|
|
11320
11208
|
const serializeAws_restJson1JourneyLimits = (input, context) => {
|
|
11321
11209
|
return {
|
|
11322
|
-
...(input.DailyCap
|
|
11323
|
-
...(input.EndpointReentryCap
|
|
11324
|
-
|
|
11325
|
-
...(input.
|
|
11326
|
-
input.EndpointReentryInterval !== null && { EndpointReentryInterval: input.EndpointReentryInterval }),
|
|
11327
|
-
...(input.MessagesPerSecond !== undefined &&
|
|
11328
|
-
input.MessagesPerSecond !== null && { MessagesPerSecond: input.MessagesPerSecond }),
|
|
11210
|
+
...(input.DailyCap != null && { DailyCap: input.DailyCap }),
|
|
11211
|
+
...(input.EndpointReentryCap != null && { EndpointReentryCap: input.EndpointReentryCap }),
|
|
11212
|
+
...(input.EndpointReentryInterval != null && { EndpointReentryInterval: input.EndpointReentryInterval }),
|
|
11213
|
+
...(input.MessagesPerSecond != null && { MessagesPerSecond: input.MessagesPerSecond }),
|
|
11329
11214
|
};
|
|
11330
11215
|
};
|
|
11331
11216
|
const serializeAws_restJson1JourneyPushMessage = (input, context) => {
|
|
11332
11217
|
return {
|
|
11333
|
-
...(input.TimeToLive
|
|
11218
|
+
...(input.TimeToLive != null && { TimeToLive: input.TimeToLive }),
|
|
11334
11219
|
};
|
|
11335
11220
|
};
|
|
11336
11221
|
const serializeAws_restJson1JourneySchedule = (input, context) => {
|
|
11337
11222
|
return {
|
|
11338
|
-
...(input.EndTime
|
|
11339
|
-
|
|
11340
|
-
...(input.
|
|
11341
|
-
input.StartTime !== null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }),
|
|
11342
|
-
...(input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }),
|
|
11223
|
+
...(input.EndTime != null && { EndTime: input.EndTime.toISOString().split(".")[0] + "Z" }),
|
|
11224
|
+
...(input.StartTime != null && { StartTime: input.StartTime.toISOString().split(".")[0] + "Z" }),
|
|
11225
|
+
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
11343
11226
|
};
|
|
11344
11227
|
};
|
|
11345
11228
|
const serializeAws_restJson1JourneySMSMessage = (input, context) => {
|
|
11346
11229
|
return {
|
|
11347
|
-
...(input.EntityId
|
|
11348
|
-
...(input.MessageType
|
|
11349
|
-
...(input.OriginationNumber
|
|
11350
|
-
|
|
11351
|
-
...(input.
|
|
11352
|
-
...(input.TemplateId !== undefined && input.TemplateId !== null && { TemplateId: input.TemplateId }),
|
|
11230
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
11231
|
+
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
11232
|
+
...(input.OriginationNumber != null && { OriginationNumber: input.OriginationNumber }),
|
|
11233
|
+
...(input.SenderId != null && { SenderId: input.SenderId }),
|
|
11234
|
+
...(input.TemplateId != null && { TemplateId: input.TemplateId }),
|
|
11353
11235
|
};
|
|
11354
11236
|
};
|
|
11355
11237
|
const serializeAws_restJson1JourneyStateRequest = (input, context) => {
|
|
11356
11238
|
return {
|
|
11357
|
-
...(input.State
|
|
11239
|
+
...(input.State != null && { State: input.State }),
|
|
11358
11240
|
};
|
|
11359
11241
|
};
|
|
11360
11242
|
const serializeAws_restJson1ListOf__EndpointTypesElement = (input, context) => {
|
|
@@ -11579,731 +11461,581 @@ const serializeAws_restJson1MapOfMetricDimension = (input, context) => {
|
|
|
11579
11461
|
};
|
|
11580
11462
|
const serializeAws_restJson1Message = (input, context) => {
|
|
11581
11463
|
return {
|
|
11582
|
-
...(input.Action
|
|
11583
|
-
...(input.Body
|
|
11584
|
-
...(input.ImageIconUrl
|
|
11585
|
-
...(input.ImageSmallIconUrl
|
|
11586
|
-
|
|
11587
|
-
...(input.
|
|
11588
|
-
...(input.
|
|
11589
|
-
...(input.
|
|
11590
|
-
...(input.
|
|
11591
|
-
...(input.
|
|
11592
|
-
...(input.
|
|
11593
|
-
...(input.
|
|
11594
|
-
...(input.Url !== undefined && input.Url !== null && { Url: input.Url }),
|
|
11464
|
+
...(input.Action != null && { Action: input.Action }),
|
|
11465
|
+
...(input.Body != null && { Body: input.Body }),
|
|
11466
|
+
...(input.ImageIconUrl != null && { ImageIconUrl: input.ImageIconUrl }),
|
|
11467
|
+
...(input.ImageSmallIconUrl != null && { ImageSmallIconUrl: input.ImageSmallIconUrl }),
|
|
11468
|
+
...(input.ImageUrl != null && { ImageUrl: input.ImageUrl }),
|
|
11469
|
+
...(input.JsonBody != null && { JsonBody: input.JsonBody }),
|
|
11470
|
+
...(input.MediaUrl != null && { MediaUrl: input.MediaUrl }),
|
|
11471
|
+
...(input.RawContent != null && { RawContent: input.RawContent }),
|
|
11472
|
+
...(input.SilentPush != null && { SilentPush: input.SilentPush }),
|
|
11473
|
+
...(input.TimeToLive != null && { TimeToLive: input.TimeToLive }),
|
|
11474
|
+
...(input.Title != null && { Title: input.Title }),
|
|
11475
|
+
...(input.Url != null && { Url: input.Url }),
|
|
11595
11476
|
};
|
|
11596
11477
|
};
|
|
11597
11478
|
const serializeAws_restJson1MessageConfiguration = (input, context) => {
|
|
11598
11479
|
return {
|
|
11599
|
-
...(input.ADMMessage
|
|
11600
|
-
|
|
11601
|
-
...(input.
|
|
11602
|
-
|
|
11603
|
-
...(input.BaiduMessage !== undefined &&
|
|
11604
|
-
input.BaiduMessage !== null && { BaiduMessage: serializeAws_restJson1Message(input.BaiduMessage, context) }),
|
|
11605
|
-
...(input.CustomMessage !== undefined &&
|
|
11606
|
-
input.CustomMessage !== null && {
|
|
11480
|
+
...(input.ADMMessage != null && { ADMMessage: serializeAws_restJson1Message(input.ADMMessage, context) }),
|
|
11481
|
+
...(input.APNSMessage != null && { APNSMessage: serializeAws_restJson1Message(input.APNSMessage, context) }),
|
|
11482
|
+
...(input.BaiduMessage != null && { BaiduMessage: serializeAws_restJson1Message(input.BaiduMessage, context) }),
|
|
11483
|
+
...(input.CustomMessage != null && {
|
|
11607
11484
|
CustomMessage: serializeAws_restJson1CampaignCustomMessage(input.CustomMessage, context),
|
|
11608
11485
|
}),
|
|
11609
|
-
...(input.DefaultMessage
|
|
11610
|
-
input.DefaultMessage !== null && {
|
|
11486
|
+
...(input.DefaultMessage != null && {
|
|
11611
11487
|
DefaultMessage: serializeAws_restJson1Message(input.DefaultMessage, context),
|
|
11612
11488
|
}),
|
|
11613
|
-
...(input.EmailMessage
|
|
11614
|
-
input.EmailMessage !== null && {
|
|
11489
|
+
...(input.EmailMessage != null && {
|
|
11615
11490
|
EmailMessage: serializeAws_restJson1CampaignEmailMessage(input.EmailMessage, context),
|
|
11616
11491
|
}),
|
|
11617
|
-
...(input.GCMMessage
|
|
11618
|
-
|
|
11619
|
-
...(input.InAppMessage !== undefined &&
|
|
11620
|
-
input.InAppMessage !== null && {
|
|
11492
|
+
...(input.GCMMessage != null && { GCMMessage: serializeAws_restJson1Message(input.GCMMessage, context) }),
|
|
11493
|
+
...(input.InAppMessage != null && {
|
|
11621
11494
|
InAppMessage: serializeAws_restJson1CampaignInAppMessage(input.InAppMessage, context),
|
|
11622
11495
|
}),
|
|
11623
|
-
...(input.SMSMessage
|
|
11624
|
-
|
|
11496
|
+
...(input.SMSMessage != null && {
|
|
11497
|
+
SMSMessage: serializeAws_restJson1CampaignSmsMessage(input.SMSMessage, context),
|
|
11498
|
+
}),
|
|
11625
11499
|
};
|
|
11626
11500
|
};
|
|
11627
11501
|
const serializeAws_restJson1MessageRequest = (input, context) => {
|
|
11628
11502
|
return {
|
|
11629
|
-
...(input.Addresses
|
|
11630
|
-
input.Addresses !== null && {
|
|
11503
|
+
...(input.Addresses != null && {
|
|
11631
11504
|
Addresses: serializeAws_restJson1MapOfAddressConfiguration(input.Addresses, context),
|
|
11632
11505
|
}),
|
|
11633
|
-
...(input.Context
|
|
11634
|
-
|
|
11635
|
-
...(input.Endpoints !== undefined &&
|
|
11636
|
-
input.Endpoints !== null && {
|
|
11506
|
+
...(input.Context != null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) }),
|
|
11507
|
+
...(input.Endpoints != null && {
|
|
11637
11508
|
Endpoints: serializeAws_restJson1MapOfEndpointSendConfiguration(input.Endpoints, context),
|
|
11638
11509
|
}),
|
|
11639
|
-
...(input.MessageConfiguration
|
|
11640
|
-
input.MessageConfiguration !== null && {
|
|
11510
|
+
...(input.MessageConfiguration != null && {
|
|
11641
11511
|
MessageConfiguration: serializeAws_restJson1DirectMessageConfiguration(input.MessageConfiguration, context),
|
|
11642
11512
|
}),
|
|
11643
|
-
...(input.TemplateConfiguration
|
|
11644
|
-
input.TemplateConfiguration !== null && {
|
|
11513
|
+
...(input.TemplateConfiguration != null && {
|
|
11645
11514
|
TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
|
|
11646
11515
|
}),
|
|
11647
|
-
...(input.TraceId
|
|
11516
|
+
...(input.TraceId != null && { TraceId: input.TraceId }),
|
|
11648
11517
|
};
|
|
11649
11518
|
};
|
|
11650
11519
|
const serializeAws_restJson1MetricDimension = (input, context) => {
|
|
11651
11520
|
return {
|
|
11652
|
-
...(input.ComparisonOperator
|
|
11653
|
-
|
|
11654
|
-
...(input.Value !== undefined && input.Value !== null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
11521
|
+
...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
|
|
11522
|
+
...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
11655
11523
|
};
|
|
11656
11524
|
};
|
|
11657
11525
|
const serializeAws_restJson1MultiConditionalBranch = (input, context) => {
|
|
11658
11526
|
return {
|
|
11659
|
-
...(input.Condition
|
|
11660
|
-
|
|
11661
|
-
...(input.NextActivity !== undefined && input.NextActivity !== null && { NextActivity: input.NextActivity }),
|
|
11527
|
+
...(input.Condition != null && { Condition: serializeAws_restJson1SimpleCondition(input.Condition, context) }),
|
|
11528
|
+
...(input.NextActivity != null && { NextActivity: input.NextActivity }),
|
|
11662
11529
|
};
|
|
11663
11530
|
};
|
|
11664
11531
|
const serializeAws_restJson1MultiConditionalSplitActivity = (input, context) => {
|
|
11665
11532
|
return {
|
|
11666
|
-
...(input.Branches
|
|
11667
|
-
input.Branches !== null && {
|
|
11533
|
+
...(input.Branches != null && {
|
|
11668
11534
|
Branches: serializeAws_restJson1ListOfMultiConditionalBranch(input.Branches, context),
|
|
11669
11535
|
}),
|
|
11670
|
-
...(input.DefaultActivity
|
|
11671
|
-
|
|
11672
|
-
...(input.EvaluationWaitTime !== undefined &&
|
|
11673
|
-
input.EvaluationWaitTime !== null && {
|
|
11536
|
+
...(input.DefaultActivity != null && { DefaultActivity: input.DefaultActivity }),
|
|
11537
|
+
...(input.EvaluationWaitTime != null && {
|
|
11674
11538
|
EvaluationWaitTime: serializeAws_restJson1WaitTime(input.EvaluationWaitTime, context),
|
|
11675
11539
|
}),
|
|
11676
11540
|
};
|
|
11677
11541
|
};
|
|
11678
11542
|
const serializeAws_restJson1NumberValidateRequest = (input, context) => {
|
|
11679
11543
|
return {
|
|
11680
|
-
...(input.IsoCountryCode
|
|
11681
|
-
|
|
11682
|
-
...(input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }),
|
|
11544
|
+
...(input.IsoCountryCode != null && { IsoCountryCode: input.IsoCountryCode }),
|
|
11545
|
+
...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
|
|
11683
11546
|
};
|
|
11684
11547
|
};
|
|
11685
11548
|
const serializeAws_restJson1OverrideButtonConfiguration = (input, context) => {
|
|
11686
11549
|
return {
|
|
11687
|
-
...(input.ButtonAction
|
|
11688
|
-
...(input.Link
|
|
11550
|
+
...(input.ButtonAction != null && { ButtonAction: input.ButtonAction }),
|
|
11551
|
+
...(input.Link != null && { Link: input.Link }),
|
|
11689
11552
|
};
|
|
11690
11553
|
};
|
|
11691
11554
|
const serializeAws_restJson1PublicEndpoint = (input, context) => {
|
|
11692
11555
|
return {
|
|
11693
|
-
...(input.Address
|
|
11694
|
-
...(input.Attributes
|
|
11695
|
-
input.Attributes !== null && {
|
|
11556
|
+
...(input.Address != null && { Address: input.Address }),
|
|
11557
|
+
...(input.Attributes != null && {
|
|
11696
11558
|
Attributes: serializeAws_restJson1MapOfListOf__string(input.Attributes, context),
|
|
11697
11559
|
}),
|
|
11698
|
-
...(input.ChannelType
|
|
11699
|
-
...(input.Demographic
|
|
11700
|
-
input.Demographic !== null && {
|
|
11560
|
+
...(input.ChannelType != null && { ChannelType: input.ChannelType }),
|
|
11561
|
+
...(input.Demographic != null && {
|
|
11701
11562
|
Demographic: serializeAws_restJson1EndpointDemographic(input.Demographic, context),
|
|
11702
11563
|
}),
|
|
11703
|
-
...(input.EffectiveDate
|
|
11704
|
-
...(input.EndpointStatus
|
|
11705
|
-
|
|
11706
|
-
...(input.
|
|
11707
|
-
|
|
11708
|
-
...(input.
|
|
11709
|
-
|
|
11710
|
-
...(input.OptOut !== undefined && input.OptOut !== null && { OptOut: input.OptOut }),
|
|
11711
|
-
...(input.RequestId !== undefined && input.RequestId !== null && { RequestId: input.RequestId }),
|
|
11712
|
-
...(input.User !== undefined &&
|
|
11713
|
-
input.User !== null && { User: serializeAws_restJson1EndpointUser(input.User, context) }),
|
|
11564
|
+
...(input.EffectiveDate != null && { EffectiveDate: input.EffectiveDate }),
|
|
11565
|
+
...(input.EndpointStatus != null && { EndpointStatus: input.EndpointStatus }),
|
|
11566
|
+
...(input.Location != null && { Location: serializeAws_restJson1EndpointLocation(input.Location, context) }),
|
|
11567
|
+
...(input.Metrics != null && { Metrics: serializeAws_restJson1MapOf__double(input.Metrics, context) }),
|
|
11568
|
+
...(input.OptOut != null && { OptOut: input.OptOut }),
|
|
11569
|
+
...(input.RequestId != null && { RequestId: input.RequestId }),
|
|
11570
|
+
...(input.User != null && { User: serializeAws_restJson1EndpointUser(input.User, context) }),
|
|
11714
11571
|
};
|
|
11715
11572
|
};
|
|
11716
11573
|
const serializeAws_restJson1PushMessageActivity = (input, context) => {
|
|
11717
11574
|
return {
|
|
11718
|
-
...(input.MessageConfig
|
|
11719
|
-
input.MessageConfig !== null && {
|
|
11575
|
+
...(input.MessageConfig != null && {
|
|
11720
11576
|
MessageConfig: serializeAws_restJson1JourneyPushMessage(input.MessageConfig, context),
|
|
11721
11577
|
}),
|
|
11722
|
-
...(input.NextActivity
|
|
11723
|
-
...(input.TemplateName
|
|
11724
|
-
...(input.TemplateVersion
|
|
11725
|
-
input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }),
|
|
11578
|
+
...(input.NextActivity != null && { NextActivity: input.NextActivity }),
|
|
11579
|
+
...(input.TemplateName != null && { TemplateName: input.TemplateName }),
|
|
11580
|
+
...(input.TemplateVersion != null && { TemplateVersion: input.TemplateVersion }),
|
|
11726
11581
|
};
|
|
11727
11582
|
};
|
|
11728
11583
|
const serializeAws_restJson1PushNotificationTemplateRequest = (input, context) => {
|
|
11729
11584
|
return {
|
|
11730
|
-
...(input.ADM
|
|
11731
|
-
|
|
11732
|
-
...(input.
|
|
11733
|
-
|
|
11734
|
-
...(input.Baidu !== undefined &&
|
|
11735
|
-
input.Baidu !== null && { Baidu: serializeAws_restJson1AndroidPushNotificationTemplate(input.Baidu, context) }),
|
|
11736
|
-
...(input.Default !== undefined &&
|
|
11737
|
-
input.Default !== null && {
|
|
11585
|
+
...(input.ADM != null && { ADM: serializeAws_restJson1AndroidPushNotificationTemplate(input.ADM, context) }),
|
|
11586
|
+
...(input.APNS != null && { APNS: serializeAws_restJson1APNSPushNotificationTemplate(input.APNS, context) }),
|
|
11587
|
+
...(input.Baidu != null && { Baidu: serializeAws_restJson1AndroidPushNotificationTemplate(input.Baidu, context) }),
|
|
11588
|
+
...(input.Default != null && {
|
|
11738
11589
|
Default: serializeAws_restJson1DefaultPushNotificationTemplate(input.Default, context),
|
|
11739
11590
|
}),
|
|
11740
|
-
...(input.DefaultSubstitutions
|
|
11741
|
-
|
|
11742
|
-
...(input.
|
|
11743
|
-
|
|
11744
|
-
...(input.
|
|
11745
|
-
...(input.TemplateDescription !== undefined &&
|
|
11746
|
-
input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription }),
|
|
11747
|
-
...(input.tags !== undefined &&
|
|
11748
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
11591
|
+
...(input.DefaultSubstitutions != null && { DefaultSubstitutions: input.DefaultSubstitutions }),
|
|
11592
|
+
...(input.GCM != null && { GCM: serializeAws_restJson1AndroidPushNotificationTemplate(input.GCM, context) }),
|
|
11593
|
+
...(input.RecommenderId != null && { RecommenderId: input.RecommenderId }),
|
|
11594
|
+
...(input.TemplateDescription != null && { TemplateDescription: input.TemplateDescription }),
|
|
11595
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
11749
11596
|
};
|
|
11750
11597
|
};
|
|
11751
11598
|
const serializeAws_restJson1QuietTime = (input, context) => {
|
|
11752
11599
|
return {
|
|
11753
|
-
...(input.End
|
|
11754
|
-
...(input.Start
|
|
11600
|
+
...(input.End != null && { End: input.End }),
|
|
11601
|
+
...(input.Start != null && { Start: input.Start }),
|
|
11755
11602
|
};
|
|
11756
11603
|
};
|
|
11757
11604
|
const serializeAws_restJson1RandomSplitActivity = (input, context) => {
|
|
11758
11605
|
return {
|
|
11759
|
-
...(input.Branches
|
|
11760
|
-
input.Branches !== null && { Branches: serializeAws_restJson1ListOfRandomSplitEntry(input.Branches, context) }),
|
|
11606
|
+
...(input.Branches != null && { Branches: serializeAws_restJson1ListOfRandomSplitEntry(input.Branches, context) }),
|
|
11761
11607
|
};
|
|
11762
11608
|
};
|
|
11763
11609
|
const serializeAws_restJson1RandomSplitEntry = (input, context) => {
|
|
11764
11610
|
return {
|
|
11765
|
-
...(input.NextActivity
|
|
11766
|
-
...(input.Percentage
|
|
11611
|
+
...(input.NextActivity != null && { NextActivity: input.NextActivity }),
|
|
11612
|
+
...(input.Percentage != null && { Percentage: input.Percentage }),
|
|
11767
11613
|
};
|
|
11768
11614
|
};
|
|
11769
11615
|
const serializeAws_restJson1RawEmail = (input, context) => {
|
|
11770
11616
|
return {
|
|
11771
|
-
...(input.Data
|
|
11617
|
+
...(input.Data != null && { Data: context.base64Encoder(input.Data) }),
|
|
11772
11618
|
};
|
|
11773
11619
|
};
|
|
11774
11620
|
const serializeAws_restJson1RecencyDimension = (input, context) => {
|
|
11775
11621
|
return {
|
|
11776
|
-
...(input.Duration
|
|
11777
|
-
...(input.RecencyType
|
|
11622
|
+
...(input.Duration != null && { Duration: input.Duration }),
|
|
11623
|
+
...(input.RecencyType != null && { RecencyType: input.RecencyType }),
|
|
11778
11624
|
};
|
|
11779
11625
|
};
|
|
11780
11626
|
const serializeAws_restJson1Schedule = (input, context) => {
|
|
11781
11627
|
return {
|
|
11782
|
-
...(input.EndTime
|
|
11783
|
-
...(input.EventFilter
|
|
11784
|
-
input.EventFilter !== null && {
|
|
11628
|
+
...(input.EndTime != null && { EndTime: input.EndTime }),
|
|
11629
|
+
...(input.EventFilter != null && {
|
|
11785
11630
|
EventFilter: serializeAws_restJson1CampaignEventFilter(input.EventFilter, context),
|
|
11786
11631
|
}),
|
|
11787
|
-
...(input.Frequency
|
|
11788
|
-
...(input.IsLocalTime
|
|
11789
|
-
...(input.QuietTime
|
|
11790
|
-
|
|
11791
|
-
...(input.
|
|
11792
|
-
...(input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }),
|
|
11632
|
+
...(input.Frequency != null && { Frequency: input.Frequency }),
|
|
11633
|
+
...(input.IsLocalTime != null && { IsLocalTime: input.IsLocalTime }),
|
|
11634
|
+
...(input.QuietTime != null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) }),
|
|
11635
|
+
...(input.StartTime != null && { StartTime: input.StartTime }),
|
|
11636
|
+
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
11793
11637
|
};
|
|
11794
11638
|
};
|
|
11795
11639
|
const serializeAws_restJson1SegmentBehaviors = (input, context) => {
|
|
11796
11640
|
return {
|
|
11797
|
-
...(input.Recency
|
|
11798
|
-
input.Recency !== null && { Recency: serializeAws_restJson1RecencyDimension(input.Recency, context) }),
|
|
11641
|
+
...(input.Recency != null && { Recency: serializeAws_restJson1RecencyDimension(input.Recency, context) }),
|
|
11799
11642
|
};
|
|
11800
11643
|
};
|
|
11801
11644
|
const serializeAws_restJson1SegmentCondition = (input, context) => {
|
|
11802
11645
|
return {
|
|
11803
|
-
...(input.SegmentId
|
|
11646
|
+
...(input.SegmentId != null && { SegmentId: input.SegmentId }),
|
|
11804
11647
|
};
|
|
11805
11648
|
};
|
|
11806
11649
|
const serializeAws_restJson1SegmentDemographics = (input, context) => {
|
|
11807
11650
|
return {
|
|
11808
|
-
...(input.AppVersion
|
|
11809
|
-
|
|
11810
|
-
...(input.
|
|
11811
|
-
|
|
11812
|
-
...(input.
|
|
11813
|
-
|
|
11814
|
-
...(input.Make !== undefined &&
|
|
11815
|
-
input.Make !== null && { Make: serializeAws_restJson1SetDimension(input.Make, context) }),
|
|
11816
|
-
...(input.Model !== undefined &&
|
|
11817
|
-
input.Model !== null && { Model: serializeAws_restJson1SetDimension(input.Model, context) }),
|
|
11818
|
-
...(input.Platform !== undefined &&
|
|
11819
|
-
input.Platform !== null && { Platform: serializeAws_restJson1SetDimension(input.Platform, context) }),
|
|
11651
|
+
...(input.AppVersion != null && { AppVersion: serializeAws_restJson1SetDimension(input.AppVersion, context) }),
|
|
11652
|
+
...(input.Channel != null && { Channel: serializeAws_restJson1SetDimension(input.Channel, context) }),
|
|
11653
|
+
...(input.DeviceType != null && { DeviceType: serializeAws_restJson1SetDimension(input.DeviceType, context) }),
|
|
11654
|
+
...(input.Make != null && { Make: serializeAws_restJson1SetDimension(input.Make, context) }),
|
|
11655
|
+
...(input.Model != null && { Model: serializeAws_restJson1SetDimension(input.Model, context) }),
|
|
11656
|
+
...(input.Platform != null && { Platform: serializeAws_restJson1SetDimension(input.Platform, context) }),
|
|
11820
11657
|
};
|
|
11821
11658
|
};
|
|
11822
11659
|
const serializeAws_restJson1SegmentDimensions = (input, context) => {
|
|
11823
11660
|
return {
|
|
11824
|
-
...(input.Attributes
|
|
11825
|
-
input.Attributes !== null && {
|
|
11661
|
+
...(input.Attributes != null && {
|
|
11826
11662
|
Attributes: serializeAws_restJson1MapOfAttributeDimension(input.Attributes, context),
|
|
11827
11663
|
}),
|
|
11828
|
-
...(input.Behavior
|
|
11829
|
-
|
|
11830
|
-
...(input.Demographic !== undefined &&
|
|
11831
|
-
input.Demographic !== null && {
|
|
11664
|
+
...(input.Behavior != null && { Behavior: serializeAws_restJson1SegmentBehaviors(input.Behavior, context) }),
|
|
11665
|
+
...(input.Demographic != null && {
|
|
11832
11666
|
Demographic: serializeAws_restJson1SegmentDemographics(input.Demographic, context),
|
|
11833
11667
|
}),
|
|
11834
|
-
...(input.Location
|
|
11835
|
-
|
|
11836
|
-
...(input.
|
|
11837
|
-
input.Metrics !== null && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) }),
|
|
11838
|
-
...(input.UserAttributes !== undefined &&
|
|
11839
|
-
input.UserAttributes !== null && {
|
|
11668
|
+
...(input.Location != null && { Location: serializeAws_restJson1SegmentLocation(input.Location, context) }),
|
|
11669
|
+
...(input.Metrics != null && { Metrics: serializeAws_restJson1MapOfMetricDimension(input.Metrics, context) }),
|
|
11670
|
+
...(input.UserAttributes != null && {
|
|
11840
11671
|
UserAttributes: serializeAws_restJson1MapOfAttributeDimension(input.UserAttributes, context),
|
|
11841
11672
|
}),
|
|
11842
11673
|
};
|
|
11843
11674
|
};
|
|
11844
11675
|
const serializeAws_restJson1SegmentGroup = (input, context) => {
|
|
11845
11676
|
return {
|
|
11846
|
-
...(input.Dimensions
|
|
11847
|
-
input.Dimensions !== null && {
|
|
11677
|
+
...(input.Dimensions != null && {
|
|
11848
11678
|
Dimensions: serializeAws_restJson1ListOfSegmentDimensions(input.Dimensions, context),
|
|
11849
11679
|
}),
|
|
11850
|
-
...(input.SourceSegments
|
|
11851
|
-
input.SourceSegments !== null && {
|
|
11680
|
+
...(input.SourceSegments != null && {
|
|
11852
11681
|
SourceSegments: serializeAws_restJson1ListOfSegmentReference(input.SourceSegments, context),
|
|
11853
11682
|
}),
|
|
11854
|
-
...(input.SourceType
|
|
11855
|
-
...(input.Type
|
|
11683
|
+
...(input.SourceType != null && { SourceType: input.SourceType }),
|
|
11684
|
+
...(input.Type != null && { Type: input.Type }),
|
|
11856
11685
|
};
|
|
11857
11686
|
};
|
|
11858
11687
|
const serializeAws_restJson1SegmentGroupList = (input, context) => {
|
|
11859
11688
|
return {
|
|
11860
|
-
...(input.Groups
|
|
11861
|
-
|
|
11862
|
-
...(input.Include !== undefined && input.Include !== null && { Include: input.Include }),
|
|
11689
|
+
...(input.Groups != null && { Groups: serializeAws_restJson1ListOfSegmentGroup(input.Groups, context) }),
|
|
11690
|
+
...(input.Include != null && { Include: input.Include }),
|
|
11863
11691
|
};
|
|
11864
11692
|
};
|
|
11865
11693
|
const serializeAws_restJson1SegmentLocation = (input, context) => {
|
|
11866
11694
|
return {
|
|
11867
|
-
...(input.Country
|
|
11868
|
-
|
|
11869
|
-
...(input.GPSPoint !== undefined &&
|
|
11870
|
-
input.GPSPoint !== null && { GPSPoint: serializeAws_restJson1GPSPointDimension(input.GPSPoint, context) }),
|
|
11695
|
+
...(input.Country != null && { Country: serializeAws_restJson1SetDimension(input.Country, context) }),
|
|
11696
|
+
...(input.GPSPoint != null && { GPSPoint: serializeAws_restJson1GPSPointDimension(input.GPSPoint, context) }),
|
|
11871
11697
|
};
|
|
11872
11698
|
};
|
|
11873
11699
|
const serializeAws_restJson1SegmentReference = (input, context) => {
|
|
11874
11700
|
return {
|
|
11875
|
-
...(input.Id
|
|
11876
|
-
...(input.Version
|
|
11701
|
+
...(input.Id != null && { Id: input.Id }),
|
|
11702
|
+
...(input.Version != null && { Version: input.Version }),
|
|
11877
11703
|
};
|
|
11878
11704
|
};
|
|
11879
11705
|
const serializeAws_restJson1SendOTPMessageRequestParameters = (input, context) => {
|
|
11880
11706
|
return {
|
|
11881
|
-
...(input.AllowedAttempts
|
|
11882
|
-
|
|
11883
|
-
...(input.
|
|
11884
|
-
...(input.
|
|
11885
|
-
...(input.
|
|
11886
|
-
...(input.
|
|
11887
|
-
|
|
11888
|
-
...(input.
|
|
11889
|
-
...(input.
|
|
11890
|
-
...(input.
|
|
11891
|
-
|
|
11892
|
-
...(input.ReferenceId !== undefined && input.ReferenceId !== null && { ReferenceId: input.ReferenceId }),
|
|
11893
|
-
...(input.TemplateId !== undefined && input.TemplateId !== null && { TemplateId: input.TemplateId }),
|
|
11894
|
-
...(input.ValidityPeriod !== undefined &&
|
|
11895
|
-
input.ValidityPeriod !== null && { ValidityPeriod: input.ValidityPeriod }),
|
|
11707
|
+
...(input.AllowedAttempts != null && { AllowedAttempts: input.AllowedAttempts }),
|
|
11708
|
+
...(input.BrandName != null && { BrandName: input.BrandName }),
|
|
11709
|
+
...(input.Channel != null && { Channel: input.Channel }),
|
|
11710
|
+
...(input.CodeLength != null && { CodeLength: input.CodeLength }),
|
|
11711
|
+
...(input.DestinationIdentity != null && { DestinationIdentity: input.DestinationIdentity }),
|
|
11712
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
11713
|
+
...(input.Language != null && { Language: input.Language }),
|
|
11714
|
+
...(input.OriginationIdentity != null && { OriginationIdentity: input.OriginationIdentity }),
|
|
11715
|
+
...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
|
|
11716
|
+
...(input.TemplateId != null && { TemplateId: input.TemplateId }),
|
|
11717
|
+
...(input.ValidityPeriod != null && { ValidityPeriod: input.ValidityPeriod }),
|
|
11896
11718
|
};
|
|
11897
11719
|
};
|
|
11898
11720
|
const serializeAws_restJson1SendUsersMessageRequest = (input, context) => {
|
|
11899
11721
|
return {
|
|
11900
|
-
...(input.Context
|
|
11901
|
-
|
|
11902
|
-
...(input.MessageConfiguration !== undefined &&
|
|
11903
|
-
input.MessageConfiguration !== null && {
|
|
11722
|
+
...(input.Context != null && { Context: serializeAws_restJson1MapOf__string(input.Context, context) }),
|
|
11723
|
+
...(input.MessageConfiguration != null && {
|
|
11904
11724
|
MessageConfiguration: serializeAws_restJson1DirectMessageConfiguration(input.MessageConfiguration, context),
|
|
11905
11725
|
}),
|
|
11906
|
-
...(input.TemplateConfiguration
|
|
11907
|
-
input.TemplateConfiguration !== null && {
|
|
11726
|
+
...(input.TemplateConfiguration != null && {
|
|
11908
11727
|
TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
|
|
11909
11728
|
}),
|
|
11910
|
-
...(input.TraceId
|
|
11911
|
-
...(input.Users
|
|
11912
|
-
input.Users !== null && { Users: serializeAws_restJson1MapOfEndpointSendConfiguration(input.Users, context) }),
|
|
11729
|
+
...(input.TraceId != null && { TraceId: input.TraceId }),
|
|
11730
|
+
...(input.Users != null && { Users: serializeAws_restJson1MapOfEndpointSendConfiguration(input.Users, context) }),
|
|
11913
11731
|
};
|
|
11914
11732
|
};
|
|
11915
11733
|
const serializeAws_restJson1Session = (input, context) => {
|
|
11916
11734
|
return {
|
|
11917
|
-
...(input.Duration
|
|
11918
|
-
...(input.Id
|
|
11919
|
-
...(input.StartTimestamp
|
|
11920
|
-
|
|
11921
|
-
...(input.StopTimestamp !== undefined && input.StopTimestamp !== null && { StopTimestamp: input.StopTimestamp }),
|
|
11735
|
+
...(input.Duration != null && { Duration: input.Duration }),
|
|
11736
|
+
...(input.Id != null && { Id: input.Id }),
|
|
11737
|
+
...(input.StartTimestamp != null && { StartTimestamp: input.StartTimestamp }),
|
|
11738
|
+
...(input.StopTimestamp != null && { StopTimestamp: input.StopTimestamp }),
|
|
11922
11739
|
};
|
|
11923
11740
|
};
|
|
11924
11741
|
const serializeAws_restJson1SetDimension = (input, context) => {
|
|
11925
11742
|
return {
|
|
11926
|
-
...(input.DimensionType
|
|
11927
|
-
...(input.Values
|
|
11928
|
-
input.Values !== null && { Values: serializeAws_restJson1ListOf__string(input.Values, context) }),
|
|
11743
|
+
...(input.DimensionType != null && { DimensionType: input.DimensionType }),
|
|
11744
|
+
...(input.Values != null && { Values: serializeAws_restJson1ListOf__string(input.Values, context) }),
|
|
11929
11745
|
};
|
|
11930
11746
|
};
|
|
11931
11747
|
const serializeAws_restJson1SimpleCondition = (input, context) => {
|
|
11932
11748
|
return {
|
|
11933
|
-
...(input.EventCondition
|
|
11934
|
-
input.EventCondition !== null && {
|
|
11749
|
+
...(input.EventCondition != null && {
|
|
11935
11750
|
EventCondition: serializeAws_restJson1EventCondition(input.EventCondition, context),
|
|
11936
11751
|
}),
|
|
11937
|
-
...(input.SegmentCondition
|
|
11938
|
-
input.SegmentCondition !== null && {
|
|
11752
|
+
...(input.SegmentCondition != null && {
|
|
11939
11753
|
SegmentCondition: serializeAws_restJson1SegmentCondition(input.SegmentCondition, context),
|
|
11940
11754
|
}),
|
|
11941
|
-
...(input.SegmentDimensions
|
|
11942
|
-
input.SegmentDimensions !== null && {
|
|
11755
|
+
...(input.SegmentDimensions != null && {
|
|
11943
11756
|
segmentDimensions: serializeAws_restJson1SegmentDimensions(input.SegmentDimensions, context),
|
|
11944
11757
|
}),
|
|
11945
11758
|
};
|
|
11946
11759
|
};
|
|
11947
11760
|
const serializeAws_restJson1SimpleEmail = (input, context) => {
|
|
11948
11761
|
return {
|
|
11949
|
-
...(input.HtmlPart
|
|
11950
|
-
|
|
11951
|
-
...(input.
|
|
11952
|
-
input.Subject !== null && { Subject: serializeAws_restJson1SimpleEmailPart(input.Subject, context) }),
|
|
11953
|
-
...(input.TextPart !== undefined &&
|
|
11954
|
-
input.TextPart !== null && { TextPart: serializeAws_restJson1SimpleEmailPart(input.TextPart, context) }),
|
|
11762
|
+
...(input.HtmlPart != null && { HtmlPart: serializeAws_restJson1SimpleEmailPart(input.HtmlPart, context) }),
|
|
11763
|
+
...(input.Subject != null && { Subject: serializeAws_restJson1SimpleEmailPart(input.Subject, context) }),
|
|
11764
|
+
...(input.TextPart != null && { TextPart: serializeAws_restJson1SimpleEmailPart(input.TextPart, context) }),
|
|
11955
11765
|
};
|
|
11956
11766
|
};
|
|
11957
11767
|
const serializeAws_restJson1SimpleEmailPart = (input, context) => {
|
|
11958
11768
|
return {
|
|
11959
|
-
...(input.Charset
|
|
11960
|
-
...(input.Data
|
|
11769
|
+
...(input.Charset != null && { Charset: input.Charset }),
|
|
11770
|
+
...(input.Data != null && { Data: input.Data }),
|
|
11961
11771
|
};
|
|
11962
11772
|
};
|
|
11963
11773
|
const serializeAws_restJson1SMSChannelRequest = (input, context) => {
|
|
11964
11774
|
return {
|
|
11965
|
-
...(input.Enabled
|
|
11966
|
-
...(input.SenderId
|
|
11967
|
-
...(input.ShortCode
|
|
11775
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
11776
|
+
...(input.SenderId != null && { SenderId: input.SenderId }),
|
|
11777
|
+
...(input.ShortCode != null && { ShortCode: input.ShortCode }),
|
|
11968
11778
|
};
|
|
11969
11779
|
};
|
|
11970
11780
|
const serializeAws_restJson1SMSMessage = (input, context) => {
|
|
11971
11781
|
return {
|
|
11972
|
-
...(input.Body
|
|
11973
|
-
...(input.EntityId
|
|
11974
|
-
...(input.Keyword
|
|
11975
|
-
...(input.MediaUrl
|
|
11976
|
-
...(input.MessageType
|
|
11977
|
-
...(input.OriginationNumber
|
|
11978
|
-
|
|
11979
|
-
...(input.
|
|
11980
|
-
...(input.Substitutions !== undefined &&
|
|
11981
|
-
input.Substitutions !== null && {
|
|
11782
|
+
...(input.Body != null && { Body: input.Body }),
|
|
11783
|
+
...(input.EntityId != null && { EntityId: input.EntityId }),
|
|
11784
|
+
...(input.Keyword != null && { Keyword: input.Keyword }),
|
|
11785
|
+
...(input.MediaUrl != null && { MediaUrl: input.MediaUrl }),
|
|
11786
|
+
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
11787
|
+
...(input.OriginationNumber != null && { OriginationNumber: input.OriginationNumber }),
|
|
11788
|
+
...(input.SenderId != null && { SenderId: input.SenderId }),
|
|
11789
|
+
...(input.Substitutions != null && {
|
|
11982
11790
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
11983
11791
|
}),
|
|
11984
|
-
...(input.TemplateId
|
|
11792
|
+
...(input.TemplateId != null && { TemplateId: input.TemplateId }),
|
|
11985
11793
|
};
|
|
11986
11794
|
};
|
|
11987
11795
|
const serializeAws_restJson1SMSMessageActivity = (input, context) => {
|
|
11988
11796
|
return {
|
|
11989
|
-
...(input.MessageConfig
|
|
11990
|
-
input.MessageConfig !== null && {
|
|
11797
|
+
...(input.MessageConfig != null && {
|
|
11991
11798
|
MessageConfig: serializeAws_restJson1JourneySMSMessage(input.MessageConfig, context),
|
|
11992
11799
|
}),
|
|
11993
|
-
...(input.NextActivity
|
|
11994
|
-
...(input.TemplateName
|
|
11995
|
-
...(input.TemplateVersion
|
|
11996
|
-
input.TemplateVersion !== null && { TemplateVersion: input.TemplateVersion }),
|
|
11800
|
+
...(input.NextActivity != null && { NextActivity: input.NextActivity }),
|
|
11801
|
+
...(input.TemplateName != null && { TemplateName: input.TemplateName }),
|
|
11802
|
+
...(input.TemplateVersion != null && { TemplateVersion: input.TemplateVersion }),
|
|
11997
11803
|
};
|
|
11998
11804
|
};
|
|
11999
11805
|
const serializeAws_restJson1SMSTemplateRequest = (input, context) => {
|
|
12000
11806
|
return {
|
|
12001
|
-
...(input.Body
|
|
12002
|
-
...(input.DefaultSubstitutions
|
|
12003
|
-
|
|
12004
|
-
...(input.
|
|
12005
|
-
...(input.
|
|
12006
|
-
input.TemplateDescription !== null && { TemplateDescription: input.TemplateDescription }),
|
|
12007
|
-
...(input.tags !== undefined &&
|
|
12008
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
11807
|
+
...(input.Body != null && { Body: input.Body }),
|
|
11808
|
+
...(input.DefaultSubstitutions != null && { DefaultSubstitutions: input.DefaultSubstitutions }),
|
|
11809
|
+
...(input.RecommenderId != null && { RecommenderId: input.RecommenderId }),
|
|
11810
|
+
...(input.TemplateDescription != null && { TemplateDescription: input.TemplateDescription }),
|
|
11811
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
12009
11812
|
};
|
|
12010
11813
|
};
|
|
12011
11814
|
const serializeAws_restJson1StartCondition = (input, context) => {
|
|
12012
11815
|
return {
|
|
12013
|
-
...(input.Description
|
|
12014
|
-
...(input.EventStartCondition
|
|
12015
|
-
input.EventStartCondition !== null && {
|
|
11816
|
+
...(input.Description != null && { Description: input.Description }),
|
|
11817
|
+
...(input.EventStartCondition != null && {
|
|
12016
11818
|
EventStartCondition: serializeAws_restJson1EventStartCondition(input.EventStartCondition, context),
|
|
12017
11819
|
}),
|
|
12018
|
-
...(input.SegmentStartCondition
|
|
12019
|
-
input.SegmentStartCondition !== null && {
|
|
11820
|
+
...(input.SegmentStartCondition != null && {
|
|
12020
11821
|
SegmentStartCondition: serializeAws_restJson1SegmentCondition(input.SegmentStartCondition, context),
|
|
12021
11822
|
}),
|
|
12022
11823
|
};
|
|
12023
11824
|
};
|
|
12024
11825
|
const serializeAws_restJson1TagsModel = (input, context) => {
|
|
12025
11826
|
return {
|
|
12026
|
-
...(input.tags
|
|
12027
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
11827
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
12028
11828
|
};
|
|
12029
11829
|
};
|
|
12030
11830
|
const serializeAws_restJson1Template = (input, context) => {
|
|
12031
11831
|
return {
|
|
12032
|
-
...(input.Name
|
|
12033
|
-
...(input.Version
|
|
11832
|
+
...(input.Name != null && { Name: input.Name }),
|
|
11833
|
+
...(input.Version != null && { Version: input.Version }),
|
|
12034
11834
|
};
|
|
12035
11835
|
};
|
|
12036
11836
|
const serializeAws_restJson1TemplateActiveVersionRequest = (input, context) => {
|
|
12037
11837
|
return {
|
|
12038
|
-
...(input.Version
|
|
11838
|
+
...(input.Version != null && { Version: input.Version }),
|
|
12039
11839
|
};
|
|
12040
11840
|
};
|
|
12041
11841
|
const serializeAws_restJson1TemplateConfiguration = (input, context) => {
|
|
12042
11842
|
return {
|
|
12043
|
-
...(input.EmailTemplate
|
|
12044
|
-
|
|
12045
|
-
...(input.
|
|
12046
|
-
|
|
12047
|
-
...(input.SMSTemplate !== undefined &&
|
|
12048
|
-
input.SMSTemplate !== null && { SMSTemplate: serializeAws_restJson1Template(input.SMSTemplate, context) }),
|
|
12049
|
-
...(input.VoiceTemplate !== undefined &&
|
|
12050
|
-
input.VoiceTemplate !== null && { VoiceTemplate: serializeAws_restJson1Template(input.VoiceTemplate, context) }),
|
|
11843
|
+
...(input.EmailTemplate != null && { EmailTemplate: serializeAws_restJson1Template(input.EmailTemplate, context) }),
|
|
11844
|
+
...(input.PushTemplate != null && { PushTemplate: serializeAws_restJson1Template(input.PushTemplate, context) }),
|
|
11845
|
+
...(input.SMSTemplate != null && { SMSTemplate: serializeAws_restJson1Template(input.SMSTemplate, context) }),
|
|
11846
|
+
...(input.VoiceTemplate != null && { VoiceTemplate: serializeAws_restJson1Template(input.VoiceTemplate, context) }),
|
|
12051
11847
|
};
|
|
12052
11848
|
};
|
|
12053
11849
|
const serializeAws_restJson1UpdateAttributesRequest = (input, context) => {
|
|
12054
11850
|
return {
|
|
12055
|
-
...(input.Blacklist
|
|
12056
|
-
input.Blacklist !== null && { Blacklist: serializeAws_restJson1ListOf__string(input.Blacklist, context) }),
|
|
11851
|
+
...(input.Blacklist != null && { Blacklist: serializeAws_restJson1ListOf__string(input.Blacklist, context) }),
|
|
12057
11852
|
};
|
|
12058
11853
|
};
|
|
12059
11854
|
const serializeAws_restJson1UpdateRecommenderConfigurationShape = (input, context) => {
|
|
12060
11855
|
return {
|
|
12061
|
-
...(input.Attributes
|
|
12062
|
-
|
|
12063
|
-
...(input.
|
|
12064
|
-
...(input.
|
|
12065
|
-
...(input.RecommendationProviderIdType !== undefined &&
|
|
12066
|
-
input.RecommendationProviderIdType !== null && {
|
|
11856
|
+
...(input.Attributes != null && { Attributes: serializeAws_restJson1MapOf__string(input.Attributes, context) }),
|
|
11857
|
+
...(input.Description != null && { Description: input.Description }),
|
|
11858
|
+
...(input.Name != null && { Name: input.Name }),
|
|
11859
|
+
...(input.RecommendationProviderIdType != null && {
|
|
12067
11860
|
RecommendationProviderIdType: input.RecommendationProviderIdType,
|
|
12068
11861
|
}),
|
|
12069
|
-
...(input.RecommendationProviderRoleArn
|
|
12070
|
-
input.RecommendationProviderRoleArn !== null && {
|
|
11862
|
+
...(input.RecommendationProviderRoleArn != null && {
|
|
12071
11863
|
RecommendationProviderRoleArn: input.RecommendationProviderRoleArn,
|
|
12072
11864
|
}),
|
|
12073
|
-
...(input.RecommendationProviderUri
|
|
12074
|
-
|
|
12075
|
-
...(input.RecommendationTransformerUri !== undefined &&
|
|
12076
|
-
input.RecommendationTransformerUri !== null && {
|
|
11865
|
+
...(input.RecommendationProviderUri != null && { RecommendationProviderUri: input.RecommendationProviderUri }),
|
|
11866
|
+
...(input.RecommendationTransformerUri != null && {
|
|
12077
11867
|
RecommendationTransformerUri: input.RecommendationTransformerUri,
|
|
12078
11868
|
}),
|
|
12079
|
-
...(input.RecommendationsDisplayName
|
|
12080
|
-
|
|
12081
|
-
...(input.RecommendationsPerMessage !== undefined &&
|
|
12082
|
-
input.RecommendationsPerMessage !== null && { RecommendationsPerMessage: input.RecommendationsPerMessage }),
|
|
11869
|
+
...(input.RecommendationsDisplayName != null && { RecommendationsDisplayName: input.RecommendationsDisplayName }),
|
|
11870
|
+
...(input.RecommendationsPerMessage != null && { RecommendationsPerMessage: input.RecommendationsPerMessage }),
|
|
12083
11871
|
};
|
|
12084
11872
|
};
|
|
12085
11873
|
const serializeAws_restJson1VerifyOTPMessageRequestParameters = (input, context) => {
|
|
12086
11874
|
return {
|
|
12087
|
-
...(input.DestinationIdentity
|
|
12088
|
-
|
|
12089
|
-
...(input.
|
|
12090
|
-
...(input.ReferenceId !== undefined && input.ReferenceId !== null && { ReferenceId: input.ReferenceId }),
|
|
11875
|
+
...(input.DestinationIdentity != null && { DestinationIdentity: input.DestinationIdentity }),
|
|
11876
|
+
...(input.Otp != null && { Otp: input.Otp }),
|
|
11877
|
+
...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
|
|
12091
11878
|
};
|
|
12092
11879
|
};
|
|
12093
11880
|
const serializeAws_restJson1VoiceChannelRequest = (input, context) => {
|
|
12094
11881
|
return {
|
|
12095
|
-
...(input.Enabled
|
|
11882
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
12096
11883
|
};
|
|
12097
11884
|
};
|
|
12098
11885
|
const serializeAws_restJson1VoiceMessage = (input, context) => {
|
|
12099
11886
|
return {
|
|
12100
|
-
...(input.Body
|
|
12101
|
-
...(input.LanguageCode
|
|
12102
|
-
...(input.OriginationNumber
|
|
12103
|
-
|
|
12104
|
-
...(input.Substitutions !== undefined &&
|
|
12105
|
-
input.Substitutions !== null && {
|
|
11887
|
+
...(input.Body != null && { Body: input.Body }),
|
|
11888
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
11889
|
+
...(input.OriginationNumber != null && { OriginationNumber: input.OriginationNumber }),
|
|
11890
|
+
...(input.Substitutions != null && {
|
|
12106
11891
|
Substitutions: serializeAws_restJson1MapOfListOf__string(input.Substitutions, context),
|
|
12107
11892
|
}),
|
|
12108
|
-
...(input.VoiceId
|
|
11893
|
+
...(input.VoiceId != null && { VoiceId: input.VoiceId }),
|
|
12109
11894
|
};
|
|
12110
11895
|
};
|
|
12111
11896
|
const serializeAws_restJson1VoiceTemplateRequest = (input, context) => {
|
|
12112
11897
|
return {
|
|
12113
|
-
...(input.Body
|
|
12114
|
-
...(input.DefaultSubstitutions
|
|
12115
|
-
|
|
12116
|
-
...(input.
|
|
12117
|
-
...(input.
|
|
12118
|
-
|
|
12119
|
-
...(input.VoiceId !== undefined && input.VoiceId !== null && { VoiceId: input.VoiceId }),
|
|
12120
|
-
...(input.tags !== undefined &&
|
|
12121
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
11898
|
+
...(input.Body != null && { Body: input.Body }),
|
|
11899
|
+
...(input.DefaultSubstitutions != null && { DefaultSubstitutions: input.DefaultSubstitutions }),
|
|
11900
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
11901
|
+
...(input.TemplateDescription != null && { TemplateDescription: input.TemplateDescription }),
|
|
11902
|
+
...(input.VoiceId != null && { VoiceId: input.VoiceId }),
|
|
11903
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
12122
11904
|
};
|
|
12123
11905
|
};
|
|
12124
11906
|
const serializeAws_restJson1WaitActivity = (input, context) => {
|
|
12125
11907
|
return {
|
|
12126
|
-
...(input.NextActivity
|
|
12127
|
-
...(input.WaitTime
|
|
12128
|
-
input.WaitTime !== null && { WaitTime: serializeAws_restJson1WaitTime(input.WaitTime, context) }),
|
|
11908
|
+
...(input.NextActivity != null && { NextActivity: input.NextActivity }),
|
|
11909
|
+
...(input.WaitTime != null && { WaitTime: serializeAws_restJson1WaitTime(input.WaitTime, context) }),
|
|
12129
11910
|
};
|
|
12130
11911
|
};
|
|
12131
11912
|
const serializeAws_restJson1WaitTime = (input, context) => {
|
|
12132
11913
|
return {
|
|
12133
|
-
...(input.WaitFor
|
|
12134
|
-
...(input.WaitUntil
|
|
11914
|
+
...(input.WaitFor != null && { WaitFor: input.WaitFor }),
|
|
11915
|
+
...(input.WaitUntil != null && { WaitUntil: input.WaitUntil }),
|
|
12135
11916
|
};
|
|
12136
11917
|
};
|
|
12137
11918
|
const serializeAws_restJson1WriteApplicationSettingsRequest = (input, context) => {
|
|
12138
11919
|
return {
|
|
12139
|
-
...(input.CampaignHook
|
|
12140
|
-
|
|
12141
|
-
|
|
12142
|
-
|
|
12143
|
-
...(input.EventTaggingEnabled
|
|
12144
|
-
|
|
12145
|
-
...(input.
|
|
12146
|
-
input.Limits !== null && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) }),
|
|
12147
|
-
...(input.QuietTime !== undefined &&
|
|
12148
|
-
input.QuietTime !== null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) }),
|
|
11920
|
+
...(input.CampaignHook != null && {
|
|
11921
|
+
CampaignHook: serializeAws_restJson1CampaignHook(input.CampaignHook, context),
|
|
11922
|
+
}),
|
|
11923
|
+
...(input.CloudWatchMetricsEnabled != null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled }),
|
|
11924
|
+
...(input.EventTaggingEnabled != null && { EventTaggingEnabled: input.EventTaggingEnabled }),
|
|
11925
|
+
...(input.Limits != null && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) }),
|
|
11926
|
+
...(input.QuietTime != null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) }),
|
|
12149
11927
|
};
|
|
12150
11928
|
};
|
|
12151
11929
|
const serializeAws_restJson1WriteCampaignRequest = (input, context) => {
|
|
12152
11930
|
return {
|
|
12153
|
-
...(input.AdditionalTreatments
|
|
12154
|
-
input.AdditionalTreatments !== null && {
|
|
11931
|
+
...(input.AdditionalTreatments != null && {
|
|
12155
11932
|
AdditionalTreatments: serializeAws_restJson1ListOfWriteTreatmentResource(input.AdditionalTreatments, context),
|
|
12156
11933
|
}),
|
|
12157
|
-
...(input.CustomDeliveryConfiguration
|
|
12158
|
-
input.CustomDeliveryConfiguration !== null && {
|
|
11934
|
+
...(input.CustomDeliveryConfiguration != null && {
|
|
12159
11935
|
CustomDeliveryConfiguration: serializeAws_restJson1CustomDeliveryConfiguration(input.CustomDeliveryConfiguration, context),
|
|
12160
11936
|
}),
|
|
12161
|
-
...(input.Description
|
|
12162
|
-
...(input.HoldoutPercent
|
|
12163
|
-
|
|
12164
|
-
...(input.
|
|
12165
|
-
|
|
12166
|
-
...(input.
|
|
12167
|
-
...(input.Limits !== undefined &&
|
|
12168
|
-
input.Limits !== null && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) }),
|
|
12169
|
-
...(input.MessageConfiguration !== undefined &&
|
|
12170
|
-
input.MessageConfiguration !== null && {
|
|
11937
|
+
...(input.Description != null && { Description: input.Description }),
|
|
11938
|
+
...(input.HoldoutPercent != null && { HoldoutPercent: input.HoldoutPercent }),
|
|
11939
|
+
...(input.Hook != null && { Hook: serializeAws_restJson1CampaignHook(input.Hook, context) }),
|
|
11940
|
+
...(input.IsPaused != null && { IsPaused: input.IsPaused }),
|
|
11941
|
+
...(input.Limits != null && { Limits: serializeAws_restJson1CampaignLimits(input.Limits, context) }),
|
|
11942
|
+
...(input.MessageConfiguration != null && {
|
|
12171
11943
|
MessageConfiguration: serializeAws_restJson1MessageConfiguration(input.MessageConfiguration, context),
|
|
12172
11944
|
}),
|
|
12173
|
-
...(input.Name
|
|
12174
|
-
...(input.Priority
|
|
12175
|
-
...(input.Schedule
|
|
12176
|
-
|
|
12177
|
-
...(input.
|
|
12178
|
-
...(input.
|
|
12179
|
-
input.SegmentVersion !== null && { SegmentVersion: input.SegmentVersion }),
|
|
12180
|
-
...(input.TemplateConfiguration !== undefined &&
|
|
12181
|
-
input.TemplateConfiguration !== null && {
|
|
11945
|
+
...(input.Name != null && { Name: input.Name }),
|
|
11946
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
11947
|
+
...(input.Schedule != null && { Schedule: serializeAws_restJson1Schedule(input.Schedule, context) }),
|
|
11948
|
+
...(input.SegmentId != null && { SegmentId: input.SegmentId }),
|
|
11949
|
+
...(input.SegmentVersion != null && { SegmentVersion: input.SegmentVersion }),
|
|
11950
|
+
...(input.TemplateConfiguration != null && {
|
|
12182
11951
|
TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
|
|
12183
11952
|
}),
|
|
12184
|
-
...(input.TreatmentDescription
|
|
12185
|
-
|
|
12186
|
-
...(input.
|
|
12187
|
-
...(input.tags !== undefined &&
|
|
12188
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
11953
|
+
...(input.TreatmentDescription != null && { TreatmentDescription: input.TreatmentDescription }),
|
|
11954
|
+
...(input.TreatmentName != null && { TreatmentName: input.TreatmentName }),
|
|
11955
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
12189
11956
|
};
|
|
12190
11957
|
};
|
|
12191
11958
|
const serializeAws_restJson1WriteEventStream = (input, context) => {
|
|
12192
11959
|
return {
|
|
12193
|
-
...(input.DestinationStreamArn
|
|
12194
|
-
|
|
12195
|
-
...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
|
|
11960
|
+
...(input.DestinationStreamArn != null && { DestinationStreamArn: input.DestinationStreamArn }),
|
|
11961
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
12196
11962
|
};
|
|
12197
11963
|
};
|
|
12198
11964
|
const serializeAws_restJson1WriteJourneyRequest = (input, context) => {
|
|
12199
11965
|
return {
|
|
12200
|
-
...(input.Activities
|
|
12201
|
-
|
|
12202
|
-
...(input.
|
|
12203
|
-
...(input.JourneyChannelSettings !== undefined &&
|
|
12204
|
-
input.JourneyChannelSettings !== null && {
|
|
11966
|
+
...(input.Activities != null && { Activities: serializeAws_restJson1MapOfActivity(input.Activities, context) }),
|
|
11967
|
+
...(input.CreationDate != null && { CreationDate: input.CreationDate }),
|
|
11968
|
+
...(input.JourneyChannelSettings != null && {
|
|
12205
11969
|
JourneyChannelSettings: serializeAws_restJson1JourneyChannelSettings(input.JourneyChannelSettings, context),
|
|
12206
11970
|
}),
|
|
12207
|
-
...(input.LastModifiedDate
|
|
12208
|
-
|
|
12209
|
-
...(input.
|
|
12210
|
-
|
|
12211
|
-
...(input.
|
|
12212
|
-
...(input.
|
|
12213
|
-
...(input.
|
|
12214
|
-
|
|
12215
|
-
...(input.
|
|
12216
|
-
|
|
12217
|
-
...(input.RefreshOnSegmentUpdate !== undefined &&
|
|
12218
|
-
input.RefreshOnSegmentUpdate !== null && { RefreshOnSegmentUpdate: input.RefreshOnSegmentUpdate }),
|
|
12219
|
-
...(input.Schedule !== undefined &&
|
|
12220
|
-
input.Schedule !== null && { Schedule: serializeAws_restJson1JourneySchedule(input.Schedule, context) }),
|
|
12221
|
-
...(input.StartActivity !== undefined && input.StartActivity !== null && { StartActivity: input.StartActivity }),
|
|
12222
|
-
...(input.StartCondition !== undefined &&
|
|
12223
|
-
input.StartCondition !== null && {
|
|
11971
|
+
...(input.LastModifiedDate != null && { LastModifiedDate: input.LastModifiedDate }),
|
|
11972
|
+
...(input.Limits != null && { Limits: serializeAws_restJson1JourneyLimits(input.Limits, context) }),
|
|
11973
|
+
...(input.LocalTime != null && { LocalTime: input.LocalTime }),
|
|
11974
|
+
...(input.Name != null && { Name: input.Name }),
|
|
11975
|
+
...(input.QuietTime != null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) }),
|
|
11976
|
+
...(input.RefreshFrequency != null && { RefreshFrequency: input.RefreshFrequency }),
|
|
11977
|
+
...(input.RefreshOnSegmentUpdate != null && { RefreshOnSegmentUpdate: input.RefreshOnSegmentUpdate }),
|
|
11978
|
+
...(input.Schedule != null && { Schedule: serializeAws_restJson1JourneySchedule(input.Schedule, context) }),
|
|
11979
|
+
...(input.StartActivity != null && { StartActivity: input.StartActivity }),
|
|
11980
|
+
...(input.StartCondition != null && {
|
|
12224
11981
|
StartCondition: serializeAws_restJson1StartCondition(input.StartCondition, context),
|
|
12225
11982
|
}),
|
|
12226
|
-
...(input.State
|
|
12227
|
-
...(input.WaitForQuietTime
|
|
12228
|
-
input.WaitForQuietTime !== null && { WaitForQuietTime: input.WaitForQuietTime }),
|
|
11983
|
+
...(input.State != null && { State: input.State }),
|
|
11984
|
+
...(input.WaitForQuietTime != null && { WaitForQuietTime: input.WaitForQuietTime }),
|
|
12229
11985
|
};
|
|
12230
11986
|
};
|
|
12231
11987
|
const serializeAws_restJson1WriteSegmentRequest = (input, context) => {
|
|
12232
11988
|
return {
|
|
12233
|
-
...(input.Dimensions
|
|
12234
|
-
|
|
12235
|
-
...(input.
|
|
12236
|
-
...(input.SegmentGroups !== undefined &&
|
|
12237
|
-
input.SegmentGroups !== null && {
|
|
11989
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1SegmentDimensions(input.Dimensions, context) }),
|
|
11990
|
+
...(input.Name != null && { Name: input.Name }),
|
|
11991
|
+
...(input.SegmentGroups != null && {
|
|
12238
11992
|
SegmentGroups: serializeAws_restJson1SegmentGroupList(input.SegmentGroups, context),
|
|
12239
11993
|
}),
|
|
12240
|
-
...(input.tags
|
|
12241
|
-
input.tags !== null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
11994
|
+
...(input.tags != null && { tags: serializeAws_restJson1MapOf__string(input.tags, context) }),
|
|
12242
11995
|
};
|
|
12243
11996
|
};
|
|
12244
11997
|
const serializeAws_restJson1WriteTreatmentResource = (input, context) => {
|
|
12245
11998
|
return {
|
|
12246
|
-
...(input.CustomDeliveryConfiguration
|
|
12247
|
-
input.CustomDeliveryConfiguration !== null && {
|
|
11999
|
+
...(input.CustomDeliveryConfiguration != null && {
|
|
12248
12000
|
CustomDeliveryConfiguration: serializeAws_restJson1CustomDeliveryConfiguration(input.CustomDeliveryConfiguration, context),
|
|
12249
12001
|
}),
|
|
12250
|
-
...(input.MessageConfiguration
|
|
12251
|
-
input.MessageConfiguration !== null && {
|
|
12002
|
+
...(input.MessageConfiguration != null && {
|
|
12252
12003
|
MessageConfiguration: serializeAws_restJson1MessageConfiguration(input.MessageConfiguration, context),
|
|
12253
12004
|
}),
|
|
12254
|
-
...(input.Schedule
|
|
12255
|
-
|
|
12256
|
-
...(input.
|
|
12257
|
-
...(input.TemplateConfiguration !== undefined &&
|
|
12258
|
-
input.TemplateConfiguration !== null && {
|
|
12005
|
+
...(input.Schedule != null && { Schedule: serializeAws_restJson1Schedule(input.Schedule, context) }),
|
|
12006
|
+
...(input.SizePercent != null && { SizePercent: input.SizePercent }),
|
|
12007
|
+
...(input.TemplateConfiguration != null && {
|
|
12259
12008
|
TemplateConfiguration: serializeAws_restJson1TemplateConfiguration(input.TemplateConfiguration, context),
|
|
12260
12009
|
}),
|
|
12261
|
-
...(input.TreatmentDescription
|
|
12262
|
-
|
|
12263
|
-
...(input.TreatmentName !== undefined && input.TreatmentName !== null && { TreatmentName: input.TreatmentName }),
|
|
12010
|
+
...(input.TreatmentDescription != null && { TreatmentDescription: input.TreatmentDescription }),
|
|
12011
|
+
...(input.TreatmentName != null && { TreatmentName: input.TreatmentName }),
|
|
12264
12012
|
};
|
|
12265
12013
|
};
|
|
12266
12014
|
const deserializeAws_restJson1ActivitiesResponse = (output, context) => {
|
|
12267
12015
|
return {
|
|
12268
|
-
Item: output.Item
|
|
12269
|
-
? deserializeAws_restJson1ListOfActivityResponse(output.Item, context)
|
|
12270
|
-
: undefined,
|
|
12016
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfActivityResponse(output.Item, context) : undefined,
|
|
12271
12017
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
12272
12018
|
};
|
|
12273
12019
|
};
|
|
12274
12020
|
const deserializeAws_restJson1Activity = (output, context) => {
|
|
12275
12021
|
return {
|
|
12276
|
-
CUSTOM: output.CUSTOM
|
|
12277
|
-
|
|
12278
|
-
: undefined,
|
|
12279
|
-
ConditionalSplit: output.ConditionalSplit !== undefined && output.ConditionalSplit !== null
|
|
12022
|
+
CUSTOM: output.CUSTOM != null ? deserializeAws_restJson1CustomMessageActivity(output.CUSTOM, context) : undefined,
|
|
12023
|
+
ConditionalSplit: output.ConditionalSplit != null
|
|
12280
12024
|
? deserializeAws_restJson1ConditionalSplitActivity(output.ConditionalSplit, context)
|
|
12281
12025
|
: undefined,
|
|
12282
|
-
ContactCenter: output.ContactCenter
|
|
12026
|
+
ContactCenter: output.ContactCenter != null
|
|
12283
12027
|
? deserializeAws_restJson1ContactCenterActivity(output.ContactCenter, context)
|
|
12284
12028
|
: undefined,
|
|
12285
12029
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
12286
|
-
EMAIL: output.EMAIL
|
|
12287
|
-
|
|
12288
|
-
|
|
12289
|
-
Holdout: output.Holdout !== undefined && output.Holdout !== null
|
|
12290
|
-
? deserializeAws_restJson1HoldoutActivity(output.Holdout, context)
|
|
12291
|
-
: undefined,
|
|
12292
|
-
MultiCondition: output.MultiCondition !== undefined && output.MultiCondition !== null
|
|
12030
|
+
EMAIL: output.EMAIL != null ? deserializeAws_restJson1EmailMessageActivity(output.EMAIL, context) : undefined,
|
|
12031
|
+
Holdout: output.Holdout != null ? deserializeAws_restJson1HoldoutActivity(output.Holdout, context) : undefined,
|
|
12032
|
+
MultiCondition: output.MultiCondition != null
|
|
12293
12033
|
? deserializeAws_restJson1MultiConditionalSplitActivity(output.MultiCondition, context)
|
|
12294
12034
|
: undefined,
|
|
12295
|
-
PUSH: output.PUSH
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
? deserializeAws_restJson1RandomSplitActivity(output.RandomSplit, context)
|
|
12300
|
-
: undefined,
|
|
12301
|
-
SMS: output.SMS !== undefined && output.SMS !== null
|
|
12302
|
-
? deserializeAws_restJson1SMSMessageActivity(output.SMS, context)
|
|
12303
|
-
: undefined,
|
|
12304
|
-
Wait: output.Wait !== undefined && output.Wait !== null
|
|
12305
|
-
? deserializeAws_restJson1WaitActivity(output.Wait, context)
|
|
12306
|
-
: undefined,
|
|
12035
|
+
PUSH: output.PUSH != null ? deserializeAws_restJson1PushMessageActivity(output.PUSH, context) : undefined,
|
|
12036
|
+
RandomSplit: output.RandomSplit != null ? deserializeAws_restJson1RandomSplitActivity(output.RandomSplit, context) : undefined,
|
|
12037
|
+
SMS: output.SMS != null ? deserializeAws_restJson1SMSMessageActivity(output.SMS, context) : undefined,
|
|
12038
|
+
Wait: output.Wait != null ? deserializeAws_restJson1WaitActivity(output.Wait, context) : undefined,
|
|
12307
12039
|
};
|
|
12308
12040
|
};
|
|
12309
12041
|
const deserializeAws_restJson1ActivityResponse = (output, context) => {
|
|
@@ -12428,17 +12160,11 @@ const deserializeAws_restJson1APNSVoipSandboxChannelResponse = (output, context)
|
|
|
12428
12160
|
const deserializeAws_restJson1ApplicationDateRangeKpiResponse = (output, context) => {
|
|
12429
12161
|
return {
|
|
12430
12162
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
12431
|
-
EndTime: output.EndTime
|
|
12432
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.EndTime))
|
|
12433
|
-
: undefined,
|
|
12163
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.EndTime)) : undefined,
|
|
12434
12164
|
KpiName: (0, smithy_client_1.expectString)(output.KpiName),
|
|
12435
|
-
KpiResult: output.KpiResult
|
|
12436
|
-
? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context)
|
|
12437
|
-
: undefined,
|
|
12165
|
+
KpiResult: output.KpiResult != null ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context) : undefined,
|
|
12438
12166
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
12439
|
-
StartTime: output.StartTime
|
|
12440
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime))
|
|
12441
|
-
: undefined,
|
|
12167
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime)) : undefined,
|
|
12442
12168
|
};
|
|
12443
12169
|
};
|
|
12444
12170
|
const deserializeAws_restJson1ApplicationResponse = (output, context) => {
|
|
@@ -12447,49 +12173,35 @@ const deserializeAws_restJson1ApplicationResponse = (output, context) => {
|
|
|
12447
12173
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
12448
12174
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
12449
12175
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
12450
|
-
tags: output.tags
|
|
12451
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
12452
|
-
: undefined,
|
|
12176
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
12453
12177
|
};
|
|
12454
12178
|
};
|
|
12455
12179
|
const deserializeAws_restJson1ApplicationSettingsResource = (output, context) => {
|
|
12456
12180
|
return {
|
|
12457
12181
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
12458
|
-
CampaignHook: output.CampaignHook
|
|
12459
|
-
? deserializeAws_restJson1CampaignHook(output.CampaignHook, context)
|
|
12460
|
-
: undefined,
|
|
12182
|
+
CampaignHook: output.CampaignHook != null ? deserializeAws_restJson1CampaignHook(output.CampaignHook, context) : undefined,
|
|
12461
12183
|
LastModifiedDate: (0, smithy_client_1.expectString)(output.LastModifiedDate),
|
|
12462
|
-
Limits: output.Limits
|
|
12463
|
-
|
|
12464
|
-
: undefined,
|
|
12465
|
-
QuietTime: output.QuietTime !== undefined && output.QuietTime !== null
|
|
12466
|
-
? deserializeAws_restJson1QuietTime(output.QuietTime, context)
|
|
12467
|
-
: undefined,
|
|
12184
|
+
Limits: output.Limits != null ? deserializeAws_restJson1CampaignLimits(output.Limits, context) : undefined,
|
|
12185
|
+
QuietTime: output.QuietTime != null ? deserializeAws_restJson1QuietTime(output.QuietTime, context) : undefined,
|
|
12468
12186
|
};
|
|
12469
12187
|
};
|
|
12470
12188
|
const deserializeAws_restJson1ApplicationsResponse = (output, context) => {
|
|
12471
12189
|
return {
|
|
12472
|
-
Item: output.Item
|
|
12473
|
-
? deserializeAws_restJson1ListOfApplicationResponse(output.Item, context)
|
|
12474
|
-
: undefined,
|
|
12190
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfApplicationResponse(output.Item, context) : undefined,
|
|
12475
12191
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
12476
12192
|
};
|
|
12477
12193
|
};
|
|
12478
12194
|
const deserializeAws_restJson1AttributeDimension = (output, context) => {
|
|
12479
12195
|
return {
|
|
12480
12196
|
AttributeType: (0, smithy_client_1.expectString)(output.AttributeType),
|
|
12481
|
-
Values: output.Values
|
|
12482
|
-
? deserializeAws_restJson1ListOf__string(output.Values, context)
|
|
12483
|
-
: undefined,
|
|
12197
|
+
Values: output.Values != null ? deserializeAws_restJson1ListOf__string(output.Values, context) : undefined,
|
|
12484
12198
|
};
|
|
12485
12199
|
};
|
|
12486
12200
|
const deserializeAws_restJson1AttributesResource = (output, context) => {
|
|
12487
12201
|
return {
|
|
12488
12202
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
12489
12203
|
AttributeType: (0, smithy_client_1.expectString)(output.AttributeType),
|
|
12490
|
-
Attributes: output.Attributes
|
|
12491
|
-
? deserializeAws_restJson1ListOf__string(output.Attributes, context)
|
|
12492
|
-
: undefined,
|
|
12204
|
+
Attributes: output.Attributes != null ? deserializeAws_restJson1ListOf__string(output.Attributes, context) : undefined,
|
|
12493
12205
|
};
|
|
12494
12206
|
};
|
|
12495
12207
|
const deserializeAws_restJson1BaiduChannelResponse = (output, context) => {
|
|
@@ -12509,9 +12221,7 @@ const deserializeAws_restJson1BaiduChannelResponse = (output, context) => {
|
|
|
12509
12221
|
};
|
|
12510
12222
|
const deserializeAws_restJson1BaseKpiResult = (output, context) => {
|
|
12511
12223
|
return {
|
|
12512
|
-
Rows: output.Rows
|
|
12513
|
-
? deserializeAws_restJson1ListOfResultRow(output.Rows, context)
|
|
12514
|
-
: undefined,
|
|
12224
|
+
Rows: output.Rows != null ? deserializeAws_restJson1ListOfResultRow(output.Rows, context) : undefined,
|
|
12515
12225
|
};
|
|
12516
12226
|
};
|
|
12517
12227
|
const deserializeAws_restJson1CampaignCustomMessage = (output, context) => {
|
|
@@ -12523,17 +12233,11 @@ const deserializeAws_restJson1CampaignDateRangeKpiResponse = (output, context) =
|
|
|
12523
12233
|
return {
|
|
12524
12234
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
12525
12235
|
CampaignId: (0, smithy_client_1.expectString)(output.CampaignId),
|
|
12526
|
-
EndTime: output.EndTime
|
|
12527
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.EndTime))
|
|
12528
|
-
: undefined,
|
|
12236
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.EndTime)) : undefined,
|
|
12529
12237
|
KpiName: (0, smithy_client_1.expectString)(output.KpiName),
|
|
12530
|
-
KpiResult: output.KpiResult
|
|
12531
|
-
? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context)
|
|
12532
|
-
: undefined,
|
|
12238
|
+
KpiResult: output.KpiResult != null ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context) : undefined,
|
|
12533
12239
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
12534
|
-
StartTime: output.StartTime
|
|
12535
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime))
|
|
12536
|
-
: undefined,
|
|
12240
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime)) : undefined,
|
|
12537
12241
|
};
|
|
12538
12242
|
};
|
|
12539
12243
|
const deserializeAws_restJson1CampaignEmailMessage = (output, context) => {
|
|
@@ -12546,9 +12250,7 @@ const deserializeAws_restJson1CampaignEmailMessage = (output, context) => {
|
|
|
12546
12250
|
};
|
|
12547
12251
|
const deserializeAws_restJson1CampaignEventFilter = (output, context) => {
|
|
12548
12252
|
return {
|
|
12549
|
-
Dimensions: output.Dimensions
|
|
12550
|
-
? deserializeAws_restJson1EventDimensions(output.Dimensions, context)
|
|
12551
|
-
: undefined,
|
|
12253
|
+
Dimensions: output.Dimensions != null ? deserializeAws_restJson1EventDimensions(output.Dimensions, context) : undefined,
|
|
12552
12254
|
FilterType: (0, smithy_client_1.expectString)(output.FilterType),
|
|
12553
12255
|
};
|
|
12554
12256
|
};
|
|
@@ -12562,12 +12264,8 @@ const deserializeAws_restJson1CampaignHook = (output, context) => {
|
|
|
12562
12264
|
const deserializeAws_restJson1CampaignInAppMessage = (output, context) => {
|
|
12563
12265
|
return {
|
|
12564
12266
|
Body: (0, smithy_client_1.expectString)(output.Body),
|
|
12565
|
-
Content: output.Content
|
|
12566
|
-
|
|
12567
|
-
: undefined,
|
|
12568
|
-
CustomConfig: output.CustomConfig !== undefined && output.CustomConfig !== null
|
|
12569
|
-
? deserializeAws_restJson1MapOf__string(output.CustomConfig, context)
|
|
12570
|
-
: undefined,
|
|
12267
|
+
Content: output.Content != null ? deserializeAws_restJson1ListOfInAppMessageContent(output.Content, context) : undefined,
|
|
12268
|
+
CustomConfig: output.CustomConfig != null ? deserializeAws_restJson1MapOf__string(output.CustomConfig, context) : undefined,
|
|
12571
12269
|
Layout: (0, smithy_client_1.expectString)(output.Layout),
|
|
12572
12270
|
};
|
|
12573
12271
|
};
|
|
@@ -12582,51 +12280,39 @@ const deserializeAws_restJson1CampaignLimits = (output, context) => {
|
|
|
12582
12280
|
};
|
|
12583
12281
|
const deserializeAws_restJson1CampaignResponse = (output, context) => {
|
|
12584
12282
|
return {
|
|
12585
|
-
AdditionalTreatments: output.AdditionalTreatments
|
|
12283
|
+
AdditionalTreatments: output.AdditionalTreatments != null
|
|
12586
12284
|
? deserializeAws_restJson1ListOfTreatmentResource(output.AdditionalTreatments, context)
|
|
12587
12285
|
: undefined,
|
|
12588
12286
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
12589
12287
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
12590
12288
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
12591
|
-
CustomDeliveryConfiguration: output.CustomDeliveryConfiguration
|
|
12289
|
+
CustomDeliveryConfiguration: output.CustomDeliveryConfiguration != null
|
|
12592
12290
|
? deserializeAws_restJson1CustomDeliveryConfiguration(output.CustomDeliveryConfiguration, context)
|
|
12593
12291
|
: undefined,
|
|
12594
|
-
DefaultState: output.DefaultState
|
|
12595
|
-
? deserializeAws_restJson1CampaignState(output.DefaultState, context)
|
|
12596
|
-
: undefined,
|
|
12292
|
+
DefaultState: output.DefaultState != null ? deserializeAws_restJson1CampaignState(output.DefaultState, context) : undefined,
|
|
12597
12293
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
12598
12294
|
HoldoutPercent: (0, smithy_client_1.expectInt32)(output.HoldoutPercent),
|
|
12599
|
-
Hook: output.Hook
|
|
12600
|
-
? deserializeAws_restJson1CampaignHook(output.Hook, context)
|
|
12601
|
-
: undefined,
|
|
12295
|
+
Hook: output.Hook != null ? deserializeAws_restJson1CampaignHook(output.Hook, context) : undefined,
|
|
12602
12296
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
12603
12297
|
IsPaused: (0, smithy_client_1.expectBoolean)(output.IsPaused),
|
|
12604
12298
|
LastModifiedDate: (0, smithy_client_1.expectString)(output.LastModifiedDate),
|
|
12605
|
-
Limits: output.Limits
|
|
12606
|
-
|
|
12607
|
-
: undefined,
|
|
12608
|
-
MessageConfiguration: output.MessageConfiguration !== undefined && output.MessageConfiguration !== null
|
|
12299
|
+
Limits: output.Limits != null ? deserializeAws_restJson1CampaignLimits(output.Limits, context) : undefined,
|
|
12300
|
+
MessageConfiguration: output.MessageConfiguration != null
|
|
12609
12301
|
? deserializeAws_restJson1MessageConfiguration(output.MessageConfiguration, context)
|
|
12610
12302
|
: undefined,
|
|
12611
12303
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
12612
12304
|
Priority: (0, smithy_client_1.expectInt32)(output.Priority),
|
|
12613
|
-
Schedule: output.Schedule
|
|
12614
|
-
? deserializeAws_restJson1Schedule(output.Schedule, context)
|
|
12615
|
-
: undefined,
|
|
12305
|
+
Schedule: output.Schedule != null ? deserializeAws_restJson1Schedule(output.Schedule, context) : undefined,
|
|
12616
12306
|
SegmentId: (0, smithy_client_1.expectString)(output.SegmentId),
|
|
12617
12307
|
SegmentVersion: (0, smithy_client_1.expectInt32)(output.SegmentVersion),
|
|
12618
|
-
State: output.State
|
|
12619
|
-
|
|
12620
|
-
: undefined,
|
|
12621
|
-
TemplateConfiguration: output.TemplateConfiguration !== undefined && output.TemplateConfiguration !== null
|
|
12308
|
+
State: output.State != null ? deserializeAws_restJson1CampaignState(output.State, context) : undefined,
|
|
12309
|
+
TemplateConfiguration: output.TemplateConfiguration != null
|
|
12622
12310
|
? deserializeAws_restJson1TemplateConfiguration(output.TemplateConfiguration, context)
|
|
12623
12311
|
: undefined,
|
|
12624
12312
|
TreatmentDescription: (0, smithy_client_1.expectString)(output.TreatmentDescription),
|
|
12625
12313
|
TreatmentName: (0, smithy_client_1.expectString)(output.TreatmentName),
|
|
12626
12314
|
Version: (0, smithy_client_1.expectInt32)(output.Version),
|
|
12627
|
-
tags: output.tags
|
|
12628
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
12629
|
-
: undefined,
|
|
12315
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
12630
12316
|
};
|
|
12631
12317
|
};
|
|
12632
12318
|
const deserializeAws_restJson1CampaignSmsMessage = (output, context) => {
|
|
@@ -12641,9 +12327,7 @@ const deserializeAws_restJson1CampaignSmsMessage = (output, context) => {
|
|
|
12641
12327
|
};
|
|
12642
12328
|
const deserializeAws_restJson1CampaignsResponse = (output, context) => {
|
|
12643
12329
|
return {
|
|
12644
|
-
Item: output.Item
|
|
12645
|
-
? deserializeAws_restJson1ListOfCampaignResponse(output.Item, context)
|
|
12646
|
-
: undefined,
|
|
12330
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfCampaignResponse(output.Item, context) : undefined,
|
|
12647
12331
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
12648
12332
|
};
|
|
12649
12333
|
};
|
|
@@ -12667,25 +12351,19 @@ const deserializeAws_restJson1ChannelResponse = (output, context) => {
|
|
|
12667
12351
|
};
|
|
12668
12352
|
const deserializeAws_restJson1ChannelsResponse = (output, context) => {
|
|
12669
12353
|
return {
|
|
12670
|
-
Channels: output.Channels
|
|
12671
|
-
? deserializeAws_restJson1MapOfChannelResponse(output.Channels, context)
|
|
12672
|
-
: undefined,
|
|
12354
|
+
Channels: output.Channels != null ? deserializeAws_restJson1MapOfChannelResponse(output.Channels, context) : undefined,
|
|
12673
12355
|
};
|
|
12674
12356
|
};
|
|
12675
12357
|
const deserializeAws_restJson1Condition = (output, context) => {
|
|
12676
12358
|
return {
|
|
12677
|
-
Conditions: output.Conditions
|
|
12678
|
-
? deserializeAws_restJson1ListOfSimpleCondition(output.Conditions, context)
|
|
12679
|
-
: undefined,
|
|
12359
|
+
Conditions: output.Conditions != null ? deserializeAws_restJson1ListOfSimpleCondition(output.Conditions, context) : undefined,
|
|
12680
12360
|
Operator: (0, smithy_client_1.expectString)(output.Operator),
|
|
12681
12361
|
};
|
|
12682
12362
|
};
|
|
12683
12363
|
const deserializeAws_restJson1ConditionalSplitActivity = (output, context) => {
|
|
12684
12364
|
return {
|
|
12685
|
-
Condition: output.Condition
|
|
12686
|
-
|
|
12687
|
-
: undefined,
|
|
12688
|
-
EvaluationWaitTime: output.EvaluationWaitTime !== undefined && output.EvaluationWaitTime !== null
|
|
12365
|
+
Condition: output.Condition != null ? deserializeAws_restJson1Condition(output.Condition, context) : undefined,
|
|
12366
|
+
EvaluationWaitTime: output.EvaluationWaitTime != null
|
|
12689
12367
|
? deserializeAws_restJson1WaitTime(output.EvaluationWaitTime, context)
|
|
12690
12368
|
: undefined,
|
|
12691
12369
|
FalseActivity: (0, smithy_client_1.expectString)(output.FalseActivity),
|
|
@@ -12707,7 +12385,7 @@ const deserializeAws_restJson1CreateTemplateMessageBody = (output, context) => {
|
|
|
12707
12385
|
const deserializeAws_restJson1CustomDeliveryConfiguration = (output, context) => {
|
|
12708
12386
|
return {
|
|
12709
12387
|
DeliveryUri: (0, smithy_client_1.expectString)(output.DeliveryUri),
|
|
12710
|
-
EndpointTypes: output.EndpointTypes
|
|
12388
|
+
EndpointTypes: output.EndpointTypes != null
|
|
12711
12389
|
? deserializeAws_restJson1ListOf__EndpointTypesElement(output.EndpointTypes, context)
|
|
12712
12390
|
: undefined,
|
|
12713
12391
|
};
|
|
@@ -12715,10 +12393,10 @@ const deserializeAws_restJson1CustomDeliveryConfiguration = (output, context) =>
|
|
|
12715
12393
|
const deserializeAws_restJson1CustomMessageActivity = (output, context) => {
|
|
12716
12394
|
return {
|
|
12717
12395
|
DeliveryUri: (0, smithy_client_1.expectString)(output.DeliveryUri),
|
|
12718
|
-
EndpointTypes: output.EndpointTypes
|
|
12396
|
+
EndpointTypes: output.EndpointTypes != null
|
|
12719
12397
|
? deserializeAws_restJson1ListOf__EndpointTypesElement(output.EndpointTypes, context)
|
|
12720
12398
|
: undefined,
|
|
12721
|
-
MessageConfig: output.MessageConfig
|
|
12399
|
+
MessageConfig: output.MessageConfig != null
|
|
12722
12400
|
? deserializeAws_restJson1JourneyCustomMessage(output.MessageConfig, context)
|
|
12723
12401
|
: undefined,
|
|
12724
12402
|
NextActivity: (0, smithy_client_1.expectString)(output.NextActivity),
|
|
@@ -12766,7 +12444,7 @@ const deserializeAws_restJson1EmailChannelResponse = (output, context) => {
|
|
|
12766
12444
|
};
|
|
12767
12445
|
const deserializeAws_restJson1EmailMessageActivity = (output, context) => {
|
|
12768
12446
|
return {
|
|
12769
|
-
MessageConfig: output.MessageConfig
|
|
12447
|
+
MessageConfig: output.MessageConfig != null
|
|
12770
12448
|
? deserializeAws_restJson1JourneyEmailMessage(output.MessageConfig, context)
|
|
12771
12449
|
: undefined,
|
|
12772
12450
|
NextActivity: (0, smithy_client_1.expectString)(output.NextActivity),
|
|
@@ -12788,9 +12466,7 @@ const deserializeAws_restJson1EmailTemplateResponse = (output, context) => {
|
|
|
12788
12466
|
TemplateType: (0, smithy_client_1.expectString)(output.TemplateType),
|
|
12789
12467
|
TextPart: (0, smithy_client_1.expectString)(output.TextPart),
|
|
12790
12468
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
12791
|
-
tags: output.tags
|
|
12792
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
12793
|
-
: undefined,
|
|
12469
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
12794
12470
|
};
|
|
12795
12471
|
};
|
|
12796
12472
|
const deserializeAws_restJson1EndpointDemographic = (output, context) => {
|
|
@@ -12835,41 +12511,29 @@ const deserializeAws_restJson1EndpointResponse = (output, context) => {
|
|
|
12835
12511
|
return {
|
|
12836
12512
|
Address: (0, smithy_client_1.expectString)(output.Address),
|
|
12837
12513
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
12838
|
-
Attributes: output.Attributes
|
|
12839
|
-
? deserializeAws_restJson1MapOfListOf__string(output.Attributes, context)
|
|
12840
|
-
: undefined,
|
|
12514
|
+
Attributes: output.Attributes != null ? deserializeAws_restJson1MapOfListOf__string(output.Attributes, context) : undefined,
|
|
12841
12515
|
ChannelType: (0, smithy_client_1.expectString)(output.ChannelType),
|
|
12842
12516
|
CohortId: (0, smithy_client_1.expectString)(output.CohortId),
|
|
12843
12517
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
12844
|
-
Demographic: output.Demographic
|
|
12845
|
-
? deserializeAws_restJson1EndpointDemographic(output.Demographic, context)
|
|
12846
|
-
: undefined,
|
|
12518
|
+
Demographic: output.Demographic != null ? deserializeAws_restJson1EndpointDemographic(output.Demographic, context) : undefined,
|
|
12847
12519
|
EffectiveDate: (0, smithy_client_1.expectString)(output.EffectiveDate),
|
|
12848
12520
|
EndpointStatus: (0, smithy_client_1.expectString)(output.EndpointStatus),
|
|
12849
12521
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
12850
|
-
Location: output.Location
|
|
12851
|
-
|
|
12852
|
-
: undefined,
|
|
12853
|
-
Metrics: output.Metrics !== undefined && output.Metrics !== null
|
|
12854
|
-
? deserializeAws_restJson1MapOf__double(output.Metrics, context)
|
|
12855
|
-
: undefined,
|
|
12522
|
+
Location: output.Location != null ? deserializeAws_restJson1EndpointLocation(output.Location, context) : undefined,
|
|
12523
|
+
Metrics: output.Metrics != null ? deserializeAws_restJson1MapOf__double(output.Metrics, context) : undefined,
|
|
12856
12524
|
OptOut: (0, smithy_client_1.expectString)(output.OptOut),
|
|
12857
12525
|
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
12858
|
-
User: output.User
|
|
12859
|
-
? deserializeAws_restJson1EndpointUser(output.User, context)
|
|
12860
|
-
: undefined,
|
|
12526
|
+
User: output.User != null ? deserializeAws_restJson1EndpointUser(output.User, context) : undefined,
|
|
12861
12527
|
};
|
|
12862
12528
|
};
|
|
12863
12529
|
const deserializeAws_restJson1EndpointsResponse = (output, context) => {
|
|
12864
12530
|
return {
|
|
12865
|
-
Item: output.Item
|
|
12866
|
-
? deserializeAws_restJson1ListOfEndpointResponse(output.Item, context)
|
|
12867
|
-
: undefined,
|
|
12531
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfEndpointResponse(output.Item, context) : undefined,
|
|
12868
12532
|
};
|
|
12869
12533
|
};
|
|
12870
12534
|
const deserializeAws_restJson1EndpointUser = (output, context) => {
|
|
12871
12535
|
return {
|
|
12872
|
-
UserAttributes: output.UserAttributes
|
|
12536
|
+
UserAttributes: output.UserAttributes != null
|
|
12873
12537
|
? deserializeAws_restJson1MapOfListOf__string(output.UserAttributes, context)
|
|
12874
12538
|
: undefined,
|
|
12875
12539
|
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
@@ -12877,30 +12541,22 @@ const deserializeAws_restJson1EndpointUser = (output, context) => {
|
|
|
12877
12541
|
};
|
|
12878
12542
|
const deserializeAws_restJson1EventCondition = (output, context) => {
|
|
12879
12543
|
return {
|
|
12880
|
-
Dimensions: output.Dimensions
|
|
12881
|
-
? deserializeAws_restJson1EventDimensions(output.Dimensions, context)
|
|
12882
|
-
: undefined,
|
|
12544
|
+
Dimensions: output.Dimensions != null ? deserializeAws_restJson1EventDimensions(output.Dimensions, context) : undefined,
|
|
12883
12545
|
MessageActivity: (0, smithy_client_1.expectString)(output.MessageActivity),
|
|
12884
12546
|
};
|
|
12885
12547
|
};
|
|
12886
12548
|
const deserializeAws_restJson1EventDimensions = (output, context) => {
|
|
12887
12549
|
return {
|
|
12888
|
-
Attributes: output.Attributes
|
|
12550
|
+
Attributes: output.Attributes != null
|
|
12889
12551
|
? deserializeAws_restJson1MapOfAttributeDimension(output.Attributes, context)
|
|
12890
12552
|
: undefined,
|
|
12891
|
-
EventType: output.EventType
|
|
12892
|
-
|
|
12893
|
-
: undefined,
|
|
12894
|
-
Metrics: output.Metrics !== undefined && output.Metrics !== null
|
|
12895
|
-
? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context)
|
|
12896
|
-
: undefined,
|
|
12553
|
+
EventType: output.EventType != null ? deserializeAws_restJson1SetDimension(output.EventType, context) : undefined,
|
|
12554
|
+
Metrics: output.Metrics != null ? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context) : undefined,
|
|
12897
12555
|
};
|
|
12898
12556
|
};
|
|
12899
12557
|
const deserializeAws_restJson1EventFilter = (output, context) => {
|
|
12900
12558
|
return {
|
|
12901
|
-
Dimensions: output.Dimensions
|
|
12902
|
-
? deserializeAws_restJson1EventDimensions(output.Dimensions, context)
|
|
12903
|
-
: undefined,
|
|
12559
|
+
Dimensions: output.Dimensions != null ? deserializeAws_restJson1EventDimensions(output.Dimensions, context) : undefined,
|
|
12904
12560
|
FilterType: (0, smithy_client_1.expectString)(output.FilterType),
|
|
12905
12561
|
};
|
|
12906
12562
|
};
|
|
@@ -12912,16 +12568,12 @@ const deserializeAws_restJson1EventItemResponse = (output, context) => {
|
|
|
12912
12568
|
};
|
|
12913
12569
|
const deserializeAws_restJson1EventsResponse = (output, context) => {
|
|
12914
12570
|
return {
|
|
12915
|
-
Results: output.Results
|
|
12916
|
-
? deserializeAws_restJson1MapOfItemResponse(output.Results, context)
|
|
12917
|
-
: undefined,
|
|
12571
|
+
Results: output.Results != null ? deserializeAws_restJson1MapOfItemResponse(output.Results, context) : undefined,
|
|
12918
12572
|
};
|
|
12919
12573
|
};
|
|
12920
12574
|
const deserializeAws_restJson1EventStartCondition = (output, context) => {
|
|
12921
12575
|
return {
|
|
12922
|
-
EventFilter: output.EventFilter
|
|
12923
|
-
? deserializeAws_restJson1EventFilter(output.EventFilter, context)
|
|
12924
|
-
: undefined,
|
|
12576
|
+
EventFilter: output.EventFilter != null ? deserializeAws_restJson1EventFilter(output.EventFilter, context) : undefined,
|
|
12925
12577
|
SegmentId: (0, smithy_client_1.expectString)(output.SegmentId),
|
|
12926
12578
|
};
|
|
12927
12579
|
};
|
|
@@ -12949,13 +12601,9 @@ const deserializeAws_restJson1ExportJobResponse = (output, context) => {
|
|
|
12949
12601
|
CompletedPieces: (0, smithy_client_1.expectInt32)(output.CompletedPieces),
|
|
12950
12602
|
CompletionDate: (0, smithy_client_1.expectString)(output.CompletionDate),
|
|
12951
12603
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
12952
|
-
Definition: output.Definition
|
|
12953
|
-
? deserializeAws_restJson1ExportJobResource(output.Definition, context)
|
|
12954
|
-
: undefined,
|
|
12604
|
+
Definition: output.Definition != null ? deserializeAws_restJson1ExportJobResource(output.Definition, context) : undefined,
|
|
12955
12605
|
FailedPieces: (0, smithy_client_1.expectInt32)(output.FailedPieces),
|
|
12956
|
-
Failures: output.Failures
|
|
12957
|
-
? deserializeAws_restJson1ListOf__string(output.Failures, context)
|
|
12958
|
-
: undefined,
|
|
12606
|
+
Failures: output.Failures != null ? deserializeAws_restJson1ListOf__string(output.Failures, context) : undefined,
|
|
12959
12607
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
12960
12608
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
12961
12609
|
TotalFailures: (0, smithy_client_1.expectInt32)(output.TotalFailures),
|
|
@@ -12966,9 +12614,7 @@ const deserializeAws_restJson1ExportJobResponse = (output, context) => {
|
|
|
12966
12614
|
};
|
|
12967
12615
|
const deserializeAws_restJson1ExportJobsResponse = (output, context) => {
|
|
12968
12616
|
return {
|
|
12969
|
-
Item: output.Item
|
|
12970
|
-
? deserializeAws_restJson1ListOfExportJobResponse(output.Item, context)
|
|
12971
|
-
: undefined,
|
|
12617
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfExportJobResponse(output.Item, context) : undefined,
|
|
12972
12618
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
12973
12619
|
};
|
|
12974
12620
|
};
|
|
@@ -12995,9 +12641,7 @@ const deserializeAws_restJson1GPSCoordinates = (output, context) => {
|
|
|
12995
12641
|
};
|
|
12996
12642
|
const deserializeAws_restJson1GPSPointDimension = (output, context) => {
|
|
12997
12643
|
return {
|
|
12998
|
-
Coordinates: output.Coordinates
|
|
12999
|
-
? deserializeAws_restJson1GPSCoordinates(output.Coordinates, context)
|
|
13000
|
-
: undefined,
|
|
12644
|
+
Coordinates: output.Coordinates != null ? deserializeAws_restJson1GPSCoordinates(output.Coordinates, context) : undefined,
|
|
13001
12645
|
RangeInKilometers: (0, smithy_client_1.limitedParseDouble)(output.RangeInKilometers),
|
|
13002
12646
|
};
|
|
13003
12647
|
};
|
|
@@ -13025,13 +12669,9 @@ const deserializeAws_restJson1ImportJobResponse = (output, context) => {
|
|
|
13025
12669
|
CompletedPieces: (0, smithy_client_1.expectInt32)(output.CompletedPieces),
|
|
13026
12670
|
CompletionDate: (0, smithy_client_1.expectString)(output.CompletionDate),
|
|
13027
12671
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
13028
|
-
Definition: output.Definition
|
|
13029
|
-
? deserializeAws_restJson1ImportJobResource(output.Definition, context)
|
|
13030
|
-
: undefined,
|
|
12672
|
+
Definition: output.Definition != null ? deserializeAws_restJson1ImportJobResource(output.Definition, context) : undefined,
|
|
13031
12673
|
FailedPieces: (0, smithy_client_1.expectInt32)(output.FailedPieces),
|
|
13032
|
-
Failures: output.Failures
|
|
13033
|
-
? deserializeAws_restJson1ListOf__string(output.Failures, context)
|
|
13034
|
-
: undefined,
|
|
12674
|
+
Failures: output.Failures != null ? deserializeAws_restJson1ListOf__string(output.Failures, context) : undefined,
|
|
13035
12675
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
13036
12676
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
13037
12677
|
TotalFailures: (0, smithy_client_1.expectInt32)(output.TotalFailures),
|
|
@@ -13042,31 +12682,21 @@ const deserializeAws_restJson1ImportJobResponse = (output, context) => {
|
|
|
13042
12682
|
};
|
|
13043
12683
|
const deserializeAws_restJson1ImportJobsResponse = (output, context) => {
|
|
13044
12684
|
return {
|
|
13045
|
-
Item: output.Item
|
|
13046
|
-
? deserializeAws_restJson1ListOfImportJobResponse(output.Item, context)
|
|
13047
|
-
: undefined,
|
|
12685
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfImportJobResponse(output.Item, context) : undefined,
|
|
13048
12686
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
13049
12687
|
};
|
|
13050
12688
|
};
|
|
13051
12689
|
const deserializeAws_restJson1InAppCampaignSchedule = (output, context) => {
|
|
13052
12690
|
return {
|
|
13053
12691
|
EndDate: (0, smithy_client_1.expectString)(output.EndDate),
|
|
13054
|
-
EventFilter: output.EventFilter
|
|
13055
|
-
|
|
13056
|
-
: undefined,
|
|
13057
|
-
QuietTime: output.QuietTime !== undefined && output.QuietTime !== null
|
|
13058
|
-
? deserializeAws_restJson1QuietTime(output.QuietTime, context)
|
|
13059
|
-
: undefined,
|
|
12692
|
+
EventFilter: output.EventFilter != null ? deserializeAws_restJson1CampaignEventFilter(output.EventFilter, context) : undefined,
|
|
12693
|
+
QuietTime: output.QuietTime != null ? deserializeAws_restJson1QuietTime(output.QuietTime, context) : undefined,
|
|
13060
12694
|
};
|
|
13061
12695
|
};
|
|
13062
12696
|
const deserializeAws_restJson1InAppMessage = (output, context) => {
|
|
13063
12697
|
return {
|
|
13064
|
-
Content: output.Content
|
|
13065
|
-
|
|
13066
|
-
: undefined,
|
|
13067
|
-
CustomConfig: output.CustomConfig !== undefined && output.CustomConfig !== null
|
|
13068
|
-
? deserializeAws_restJson1MapOf__string(output.CustomConfig, context)
|
|
13069
|
-
: undefined,
|
|
12698
|
+
Content: output.Content != null ? deserializeAws_restJson1ListOfInAppMessageContent(output.Content, context) : undefined,
|
|
12699
|
+
CustomConfig: output.CustomConfig != null ? deserializeAws_restJson1MapOf__string(output.CustomConfig, context) : undefined,
|
|
13070
12700
|
Layout: (0, smithy_client_1.expectString)(output.Layout),
|
|
13071
12701
|
};
|
|
13072
12702
|
};
|
|
@@ -13079,31 +12709,21 @@ const deserializeAws_restJson1InAppMessageBodyConfig = (output, context) => {
|
|
|
13079
12709
|
};
|
|
13080
12710
|
const deserializeAws_restJson1InAppMessageButton = (output, context) => {
|
|
13081
12711
|
return {
|
|
13082
|
-
Android: output.Android
|
|
13083
|
-
|
|
13084
|
-
: undefined,
|
|
13085
|
-
DefaultConfig: output.DefaultConfig !== undefined && output.DefaultConfig !== null
|
|
12712
|
+
Android: output.Android != null ? deserializeAws_restJson1OverrideButtonConfiguration(output.Android, context) : undefined,
|
|
12713
|
+
DefaultConfig: output.DefaultConfig != null
|
|
13086
12714
|
? deserializeAws_restJson1DefaultButtonConfiguration(output.DefaultConfig, context)
|
|
13087
12715
|
: undefined,
|
|
13088
|
-
IOS: output.IOS
|
|
13089
|
-
|
|
13090
|
-
: undefined,
|
|
13091
|
-
Web: output.Web !== undefined && output.Web !== null
|
|
13092
|
-
? deserializeAws_restJson1OverrideButtonConfiguration(output.Web, context)
|
|
13093
|
-
: undefined,
|
|
12716
|
+
IOS: output.IOS != null ? deserializeAws_restJson1OverrideButtonConfiguration(output.IOS, context) : undefined,
|
|
12717
|
+
Web: output.Web != null ? deserializeAws_restJson1OverrideButtonConfiguration(output.Web, context) : undefined,
|
|
13094
12718
|
};
|
|
13095
12719
|
};
|
|
13096
12720
|
const deserializeAws_restJson1InAppMessageCampaign = (output, context) => {
|
|
13097
12721
|
return {
|
|
13098
12722
|
CampaignId: (0, smithy_client_1.expectString)(output.CampaignId),
|
|
13099
12723
|
DailyCap: (0, smithy_client_1.expectInt32)(output.DailyCap),
|
|
13100
|
-
InAppMessage: output.InAppMessage
|
|
13101
|
-
? deserializeAws_restJson1InAppMessage(output.InAppMessage, context)
|
|
13102
|
-
: undefined,
|
|
12724
|
+
InAppMessage: output.InAppMessage != null ? deserializeAws_restJson1InAppMessage(output.InAppMessage, context) : undefined,
|
|
13103
12725
|
Priority: (0, smithy_client_1.expectInt32)(output.Priority),
|
|
13104
|
-
Schedule: output.Schedule
|
|
13105
|
-
? deserializeAws_restJson1InAppCampaignSchedule(output.Schedule, context)
|
|
13106
|
-
: undefined,
|
|
12726
|
+
Schedule: output.Schedule != null ? deserializeAws_restJson1InAppCampaignSchedule(output.Schedule, context) : undefined,
|
|
13107
12727
|
SessionCap: (0, smithy_client_1.expectInt32)(output.SessionCap),
|
|
13108
12728
|
TotalCap: (0, smithy_client_1.expectInt32)(output.TotalCap),
|
|
13109
12729
|
TreatmentId: (0, smithy_client_1.expectString)(output.TreatmentId),
|
|
@@ -13112,17 +12732,15 @@ const deserializeAws_restJson1InAppMessageCampaign = (output, context) => {
|
|
|
13112
12732
|
const deserializeAws_restJson1InAppMessageContent = (output, context) => {
|
|
13113
12733
|
return {
|
|
13114
12734
|
BackgroundColor: (0, smithy_client_1.expectString)(output.BackgroundColor),
|
|
13115
|
-
BodyConfig: output.BodyConfig
|
|
12735
|
+
BodyConfig: output.BodyConfig != null
|
|
13116
12736
|
? deserializeAws_restJson1InAppMessageBodyConfig(output.BodyConfig, context)
|
|
13117
12737
|
: undefined,
|
|
13118
|
-
HeaderConfig: output.HeaderConfig
|
|
12738
|
+
HeaderConfig: output.HeaderConfig != null
|
|
13119
12739
|
? deserializeAws_restJson1InAppMessageHeaderConfig(output.HeaderConfig, context)
|
|
13120
12740
|
: undefined,
|
|
13121
12741
|
ImageUrl: (0, smithy_client_1.expectString)(output.ImageUrl),
|
|
13122
|
-
PrimaryBtn: output.PrimaryBtn
|
|
13123
|
-
|
|
13124
|
-
: undefined,
|
|
13125
|
-
SecondaryBtn: output.SecondaryBtn !== undefined && output.SecondaryBtn !== null
|
|
12742
|
+
PrimaryBtn: output.PrimaryBtn != null ? deserializeAws_restJson1InAppMessageButton(output.PrimaryBtn, context) : undefined,
|
|
12743
|
+
SecondaryBtn: output.SecondaryBtn != null
|
|
13126
12744
|
? deserializeAws_restJson1InAppMessageButton(output.SecondaryBtn, context)
|
|
13127
12745
|
: undefined,
|
|
13128
12746
|
};
|
|
@@ -13136,7 +12754,7 @@ const deserializeAws_restJson1InAppMessageHeaderConfig = (output, context) => {
|
|
|
13136
12754
|
};
|
|
13137
12755
|
const deserializeAws_restJson1InAppMessagesResponse = (output, context) => {
|
|
13138
12756
|
return {
|
|
13139
|
-
InAppMessageCampaigns: output.InAppMessageCampaigns
|
|
12757
|
+
InAppMessageCampaigns: output.InAppMessageCampaigns != null
|
|
13140
12758
|
? deserializeAws_restJson1ListOfInAppMessageCampaign(output.InAppMessageCampaigns, context)
|
|
13141
12759
|
: undefined,
|
|
13142
12760
|
};
|
|
@@ -13144,30 +12762,24 @@ const deserializeAws_restJson1InAppMessagesResponse = (output, context) => {
|
|
|
13144
12762
|
const deserializeAws_restJson1InAppTemplateResponse = (output, context) => {
|
|
13145
12763
|
return {
|
|
13146
12764
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
13147
|
-
Content: output.Content
|
|
13148
|
-
? deserializeAws_restJson1ListOfInAppMessageContent(output.Content, context)
|
|
13149
|
-
: undefined,
|
|
12765
|
+
Content: output.Content != null ? deserializeAws_restJson1ListOfInAppMessageContent(output.Content, context) : undefined,
|
|
13150
12766
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
13151
|
-
CustomConfig: output.CustomConfig
|
|
13152
|
-
? deserializeAws_restJson1MapOf__string(output.CustomConfig, context)
|
|
13153
|
-
: undefined,
|
|
12767
|
+
CustomConfig: output.CustomConfig != null ? deserializeAws_restJson1MapOf__string(output.CustomConfig, context) : undefined,
|
|
13154
12768
|
LastModifiedDate: (0, smithy_client_1.expectString)(output.LastModifiedDate),
|
|
13155
12769
|
Layout: (0, smithy_client_1.expectString)(output.Layout),
|
|
13156
12770
|
TemplateDescription: (0, smithy_client_1.expectString)(output.TemplateDescription),
|
|
13157
12771
|
TemplateName: (0, smithy_client_1.expectString)(output.TemplateName),
|
|
13158
12772
|
TemplateType: (0, smithy_client_1.expectString)(output.TemplateType),
|
|
13159
12773
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
13160
|
-
tags: output.tags
|
|
13161
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
13162
|
-
: undefined,
|
|
12774
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
13163
12775
|
};
|
|
13164
12776
|
};
|
|
13165
12777
|
const deserializeAws_restJson1ItemResponse = (output, context) => {
|
|
13166
12778
|
return {
|
|
13167
|
-
EndpointItemResponse: output.EndpointItemResponse
|
|
12779
|
+
EndpointItemResponse: output.EndpointItemResponse != null
|
|
13168
12780
|
? deserializeAws_restJson1EndpointItemResponse(output.EndpointItemResponse, context)
|
|
13169
12781
|
: undefined,
|
|
13170
|
-
EventsItemResponse: output.EventsItemResponse
|
|
12782
|
+
EventsItemResponse: output.EventsItemResponse != null
|
|
13171
12783
|
? deserializeAws_restJson1MapOfEventItemResponse(output.EventsItemResponse, context)
|
|
13172
12784
|
: undefined,
|
|
13173
12785
|
};
|
|
@@ -13186,18 +12798,12 @@ const deserializeAws_restJson1JourneyCustomMessage = (output, context) => {
|
|
|
13186
12798
|
const deserializeAws_restJson1JourneyDateRangeKpiResponse = (output, context) => {
|
|
13187
12799
|
return {
|
|
13188
12800
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
13189
|
-
EndTime: output.EndTime
|
|
13190
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.EndTime))
|
|
13191
|
-
: undefined,
|
|
12801
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.EndTime)) : undefined,
|
|
13192
12802
|
JourneyId: (0, smithy_client_1.expectString)(output.JourneyId),
|
|
13193
12803
|
KpiName: (0, smithy_client_1.expectString)(output.KpiName),
|
|
13194
|
-
KpiResult: output.KpiResult
|
|
13195
|
-
? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context)
|
|
13196
|
-
: undefined,
|
|
12804
|
+
KpiResult: output.KpiResult != null ? deserializeAws_restJson1BaseKpiResult(output.KpiResult, context) : undefined,
|
|
13197
12805
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
13198
|
-
StartTime: output.StartTime
|
|
13199
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime))
|
|
13200
|
-
: undefined,
|
|
12806
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime)) : undefined,
|
|
13201
12807
|
};
|
|
13202
12808
|
};
|
|
13203
12809
|
const deserializeAws_restJson1JourneyEmailMessage = (output, context) => {
|
|
@@ -13212,9 +12818,7 @@ const deserializeAws_restJson1JourneyExecutionActivityMetricsResponse = (output,
|
|
|
13212
12818
|
JourneyActivityId: (0, smithy_client_1.expectString)(output.JourneyActivityId),
|
|
13213
12819
|
JourneyId: (0, smithy_client_1.expectString)(output.JourneyId),
|
|
13214
12820
|
LastEvaluatedTime: (0, smithy_client_1.expectString)(output.LastEvaluatedTime),
|
|
13215
|
-
Metrics: output.Metrics
|
|
13216
|
-
? deserializeAws_restJson1MapOf__string(output.Metrics, context)
|
|
13217
|
-
: undefined,
|
|
12821
|
+
Metrics: output.Metrics != null ? deserializeAws_restJson1MapOf__string(output.Metrics, context) : undefined,
|
|
13218
12822
|
};
|
|
13219
12823
|
};
|
|
13220
12824
|
const deserializeAws_restJson1JourneyExecutionMetricsResponse = (output, context) => {
|
|
@@ -13222,9 +12826,7 @@ const deserializeAws_restJson1JourneyExecutionMetricsResponse = (output, context
|
|
|
13222
12826
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
13223
12827
|
JourneyId: (0, smithy_client_1.expectString)(output.JourneyId),
|
|
13224
12828
|
LastEvaluatedTime: (0, smithy_client_1.expectString)(output.LastEvaluatedTime),
|
|
13225
|
-
Metrics: output.Metrics
|
|
13226
|
-
? deserializeAws_restJson1MapOf__string(output.Metrics, context)
|
|
13227
|
-
: undefined,
|
|
12829
|
+
Metrics: output.Metrics != null ? deserializeAws_restJson1MapOf__string(output.Metrics, context) : undefined,
|
|
13228
12830
|
};
|
|
13229
12831
|
};
|
|
13230
12832
|
const deserializeAws_restJson1JourneyLimits = (output, context) => {
|
|
@@ -13242,48 +12844,34 @@ const deserializeAws_restJson1JourneyPushMessage = (output, context) => {
|
|
|
13242
12844
|
};
|
|
13243
12845
|
const deserializeAws_restJson1JourneyResponse = (output, context) => {
|
|
13244
12846
|
return {
|
|
13245
|
-
Activities: output.Activities
|
|
13246
|
-
? deserializeAws_restJson1MapOfActivity(output.Activities, context)
|
|
13247
|
-
: undefined,
|
|
12847
|
+
Activities: output.Activities != null ? deserializeAws_restJson1MapOfActivity(output.Activities, context) : undefined,
|
|
13248
12848
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
13249
12849
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
13250
12850
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
13251
|
-
JourneyChannelSettings: output.JourneyChannelSettings
|
|
12851
|
+
JourneyChannelSettings: output.JourneyChannelSettings != null
|
|
13252
12852
|
? deserializeAws_restJson1JourneyChannelSettings(output.JourneyChannelSettings, context)
|
|
13253
12853
|
: undefined,
|
|
13254
12854
|
LastModifiedDate: (0, smithy_client_1.expectString)(output.LastModifiedDate),
|
|
13255
|
-
Limits: output.Limits
|
|
13256
|
-
? deserializeAws_restJson1JourneyLimits(output.Limits, context)
|
|
13257
|
-
: undefined,
|
|
12855
|
+
Limits: output.Limits != null ? deserializeAws_restJson1JourneyLimits(output.Limits, context) : undefined,
|
|
13258
12856
|
LocalTime: (0, smithy_client_1.expectBoolean)(output.LocalTime),
|
|
13259
12857
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
13260
|
-
QuietTime: output.QuietTime
|
|
13261
|
-
? deserializeAws_restJson1QuietTime(output.QuietTime, context)
|
|
13262
|
-
: undefined,
|
|
12858
|
+
QuietTime: output.QuietTime != null ? deserializeAws_restJson1QuietTime(output.QuietTime, context) : undefined,
|
|
13263
12859
|
RefreshFrequency: (0, smithy_client_1.expectString)(output.RefreshFrequency),
|
|
13264
12860
|
RefreshOnSegmentUpdate: (0, smithy_client_1.expectBoolean)(output.RefreshOnSegmentUpdate),
|
|
13265
|
-
Schedule: output.Schedule
|
|
13266
|
-
? deserializeAws_restJson1JourneySchedule(output.Schedule, context)
|
|
13267
|
-
: undefined,
|
|
12861
|
+
Schedule: output.Schedule != null ? deserializeAws_restJson1JourneySchedule(output.Schedule, context) : undefined,
|
|
13268
12862
|
StartActivity: (0, smithy_client_1.expectString)(output.StartActivity),
|
|
13269
|
-
StartCondition: output.StartCondition
|
|
12863
|
+
StartCondition: output.StartCondition != null
|
|
13270
12864
|
? deserializeAws_restJson1StartCondition(output.StartCondition, context)
|
|
13271
12865
|
: undefined,
|
|
13272
12866
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
13273
12867
|
WaitForQuietTime: (0, smithy_client_1.expectBoolean)(output.WaitForQuietTime),
|
|
13274
|
-
tags: output.tags
|
|
13275
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
13276
|
-
: undefined,
|
|
12868
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
13277
12869
|
};
|
|
13278
12870
|
};
|
|
13279
12871
|
const deserializeAws_restJson1JourneySchedule = (output, context) => {
|
|
13280
12872
|
return {
|
|
13281
|
-
EndTime: output.EndTime
|
|
13282
|
-
|
|
13283
|
-
: undefined,
|
|
13284
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
13285
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime))
|
|
13286
|
-
: undefined,
|
|
12873
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.EndTime)) : undefined,
|
|
12874
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartTime)) : undefined,
|
|
13287
12875
|
Timezone: (0, smithy_client_1.expectString)(output.Timezone),
|
|
13288
12876
|
};
|
|
13289
12877
|
};
|
|
@@ -13298,9 +12886,7 @@ const deserializeAws_restJson1JourneySMSMessage = (output, context) => {
|
|
|
13298
12886
|
};
|
|
13299
12887
|
const deserializeAws_restJson1JourneysResponse = (output, context) => {
|
|
13300
12888
|
return {
|
|
13301
|
-
Item: output.Item
|
|
13302
|
-
? deserializeAws_restJson1ListOfJourneyResponse(output.Item, context)
|
|
13303
|
-
: undefined,
|
|
12889
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfJourneyResponse(output.Item, context) : undefined,
|
|
13304
12890
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
13305
12891
|
};
|
|
13306
12892
|
};
|
|
@@ -13570,7 +13156,7 @@ const deserializeAws_restJson1ListOfTreatmentResource = (output, context) => {
|
|
|
13570
13156
|
};
|
|
13571
13157
|
const deserializeAws_restJson1ListRecommenderConfigurationsResponse = (output, context) => {
|
|
13572
13158
|
return {
|
|
13573
|
-
Item: output.Item
|
|
13159
|
+
Item: output.Item != null
|
|
13574
13160
|
? deserializeAws_restJson1ListOfRecommenderConfigurationResponse(output.Item, context)
|
|
13575
13161
|
: undefined,
|
|
13576
13162
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -13743,45 +13329,31 @@ const deserializeAws_restJson1MessageBody = (output, context) => {
|
|
|
13743
13329
|
};
|
|
13744
13330
|
const deserializeAws_restJson1MessageConfiguration = (output, context) => {
|
|
13745
13331
|
return {
|
|
13746
|
-
ADMMessage: output.ADMMessage
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
? deserializeAws_restJson1Message(output.APNSMessage, context)
|
|
13751
|
-
: undefined,
|
|
13752
|
-
BaiduMessage: output.BaiduMessage !== undefined && output.BaiduMessage !== null
|
|
13753
|
-
? deserializeAws_restJson1Message(output.BaiduMessage, context)
|
|
13754
|
-
: undefined,
|
|
13755
|
-
CustomMessage: output.CustomMessage !== undefined && output.CustomMessage !== null
|
|
13332
|
+
ADMMessage: output.ADMMessage != null ? deserializeAws_restJson1Message(output.ADMMessage, context) : undefined,
|
|
13333
|
+
APNSMessage: output.APNSMessage != null ? deserializeAws_restJson1Message(output.APNSMessage, context) : undefined,
|
|
13334
|
+
BaiduMessage: output.BaiduMessage != null ? deserializeAws_restJson1Message(output.BaiduMessage, context) : undefined,
|
|
13335
|
+
CustomMessage: output.CustomMessage != null
|
|
13756
13336
|
? deserializeAws_restJson1CampaignCustomMessage(output.CustomMessage, context)
|
|
13757
13337
|
: undefined,
|
|
13758
|
-
DefaultMessage: output.DefaultMessage
|
|
13759
|
-
|
|
13760
|
-
: undefined,
|
|
13761
|
-
EmailMessage: output.EmailMessage !== undefined && output.EmailMessage !== null
|
|
13338
|
+
DefaultMessage: output.DefaultMessage != null ? deserializeAws_restJson1Message(output.DefaultMessage, context) : undefined,
|
|
13339
|
+
EmailMessage: output.EmailMessage != null
|
|
13762
13340
|
? deserializeAws_restJson1CampaignEmailMessage(output.EmailMessage, context)
|
|
13763
13341
|
: undefined,
|
|
13764
|
-
GCMMessage: output.GCMMessage
|
|
13765
|
-
|
|
13766
|
-
: undefined,
|
|
13767
|
-
InAppMessage: output.InAppMessage !== undefined && output.InAppMessage !== null
|
|
13342
|
+
GCMMessage: output.GCMMessage != null ? deserializeAws_restJson1Message(output.GCMMessage, context) : undefined,
|
|
13343
|
+
InAppMessage: output.InAppMessage != null
|
|
13768
13344
|
? deserializeAws_restJson1CampaignInAppMessage(output.InAppMessage, context)
|
|
13769
13345
|
: undefined,
|
|
13770
|
-
SMSMessage: output.SMSMessage
|
|
13771
|
-
? deserializeAws_restJson1CampaignSmsMessage(output.SMSMessage, context)
|
|
13772
|
-
: undefined,
|
|
13346
|
+
SMSMessage: output.SMSMessage != null ? deserializeAws_restJson1CampaignSmsMessage(output.SMSMessage, context) : undefined,
|
|
13773
13347
|
};
|
|
13774
13348
|
};
|
|
13775
13349
|
const deserializeAws_restJson1MessageResponse = (output, context) => {
|
|
13776
13350
|
return {
|
|
13777
13351
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
13778
|
-
EndpointResult: output.EndpointResult
|
|
13352
|
+
EndpointResult: output.EndpointResult != null
|
|
13779
13353
|
? deserializeAws_restJson1MapOfEndpointMessageResult(output.EndpointResult, context)
|
|
13780
13354
|
: undefined,
|
|
13781
13355
|
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
13782
|
-
Result: output.Result
|
|
13783
|
-
? deserializeAws_restJson1MapOfMessageResult(output.Result, context)
|
|
13784
|
-
: undefined,
|
|
13356
|
+
Result: output.Result != null ? deserializeAws_restJson1MapOfMessageResult(output.Result, context) : undefined,
|
|
13785
13357
|
};
|
|
13786
13358
|
};
|
|
13787
13359
|
const deserializeAws_restJson1MessageResult = (output, context) => {
|
|
@@ -13801,19 +13373,17 @@ const deserializeAws_restJson1MetricDimension = (output, context) => {
|
|
|
13801
13373
|
};
|
|
13802
13374
|
const deserializeAws_restJson1MultiConditionalBranch = (output, context) => {
|
|
13803
13375
|
return {
|
|
13804
|
-
Condition: output.Condition
|
|
13805
|
-
? deserializeAws_restJson1SimpleCondition(output.Condition, context)
|
|
13806
|
-
: undefined,
|
|
13376
|
+
Condition: output.Condition != null ? deserializeAws_restJson1SimpleCondition(output.Condition, context) : undefined,
|
|
13807
13377
|
NextActivity: (0, smithy_client_1.expectString)(output.NextActivity),
|
|
13808
13378
|
};
|
|
13809
13379
|
};
|
|
13810
13380
|
const deserializeAws_restJson1MultiConditionalSplitActivity = (output, context) => {
|
|
13811
13381
|
return {
|
|
13812
|
-
Branches: output.Branches
|
|
13382
|
+
Branches: output.Branches != null
|
|
13813
13383
|
? deserializeAws_restJson1ListOfMultiConditionalBranch(output.Branches, context)
|
|
13814
13384
|
: undefined,
|
|
13815
13385
|
DefaultActivity: (0, smithy_client_1.expectString)(output.DefaultActivity),
|
|
13816
|
-
EvaluationWaitTime: output.EvaluationWaitTime
|
|
13386
|
+
EvaluationWaitTime: output.EvaluationWaitTime != null
|
|
13817
13387
|
? deserializeAws_restJson1WaitTime(output.EvaluationWaitTime, context)
|
|
13818
13388
|
: undefined,
|
|
13819
13389
|
};
|
|
@@ -13844,7 +13414,7 @@ const deserializeAws_restJson1OverrideButtonConfiguration = (output, context) =>
|
|
|
13844
13414
|
};
|
|
13845
13415
|
const deserializeAws_restJson1PushMessageActivity = (output, context) => {
|
|
13846
13416
|
return {
|
|
13847
|
-
MessageConfig: output.MessageConfig
|
|
13417
|
+
MessageConfig: output.MessageConfig != null
|
|
13848
13418
|
? deserializeAws_restJson1JourneyPushMessage(output.MessageConfig, context)
|
|
13849
13419
|
: undefined,
|
|
13850
13420
|
NextActivity: (0, smithy_client_1.expectString)(output.NextActivity),
|
|
@@ -13854,33 +13424,23 @@ const deserializeAws_restJson1PushMessageActivity = (output, context) => {
|
|
|
13854
13424
|
};
|
|
13855
13425
|
const deserializeAws_restJson1PushNotificationTemplateResponse = (output, context) => {
|
|
13856
13426
|
return {
|
|
13857
|
-
ADM: output.ADM
|
|
13858
|
-
|
|
13859
|
-
: undefined,
|
|
13860
|
-
APNS: output.APNS !== undefined && output.APNS !== null
|
|
13861
|
-
? deserializeAws_restJson1APNSPushNotificationTemplate(output.APNS, context)
|
|
13862
|
-
: undefined,
|
|
13427
|
+
ADM: output.ADM != null ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.ADM, context) : undefined,
|
|
13428
|
+
APNS: output.APNS != null ? deserializeAws_restJson1APNSPushNotificationTemplate(output.APNS, context) : undefined,
|
|
13863
13429
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
13864
|
-
Baidu: output.Baidu
|
|
13865
|
-
? deserializeAws_restJson1AndroidPushNotificationTemplate(output.Baidu, context)
|
|
13866
|
-
: undefined,
|
|
13430
|
+
Baidu: output.Baidu != null ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.Baidu, context) : undefined,
|
|
13867
13431
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
13868
|
-
Default: output.Default
|
|
13432
|
+
Default: output.Default != null
|
|
13869
13433
|
? deserializeAws_restJson1DefaultPushNotificationTemplate(output.Default, context)
|
|
13870
13434
|
: undefined,
|
|
13871
13435
|
DefaultSubstitutions: (0, smithy_client_1.expectString)(output.DefaultSubstitutions),
|
|
13872
|
-
GCM: output.GCM
|
|
13873
|
-
? deserializeAws_restJson1AndroidPushNotificationTemplate(output.GCM, context)
|
|
13874
|
-
: undefined,
|
|
13436
|
+
GCM: output.GCM != null ? deserializeAws_restJson1AndroidPushNotificationTemplate(output.GCM, context) : undefined,
|
|
13875
13437
|
LastModifiedDate: (0, smithy_client_1.expectString)(output.LastModifiedDate),
|
|
13876
13438
|
RecommenderId: (0, smithy_client_1.expectString)(output.RecommenderId),
|
|
13877
13439
|
TemplateDescription: (0, smithy_client_1.expectString)(output.TemplateDescription),
|
|
13878
13440
|
TemplateName: (0, smithy_client_1.expectString)(output.TemplateName),
|
|
13879
13441
|
TemplateType: (0, smithy_client_1.expectString)(output.TemplateType),
|
|
13880
13442
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
13881
|
-
tags: output.tags
|
|
13882
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
13883
|
-
: undefined,
|
|
13443
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
13884
13444
|
};
|
|
13885
13445
|
};
|
|
13886
13446
|
const deserializeAws_restJson1QuietTime = (output, context) => {
|
|
@@ -13891,9 +13451,7 @@ const deserializeAws_restJson1QuietTime = (output, context) => {
|
|
|
13891
13451
|
};
|
|
13892
13452
|
const deserializeAws_restJson1RandomSplitActivity = (output, context) => {
|
|
13893
13453
|
return {
|
|
13894
|
-
Branches: output.Branches
|
|
13895
|
-
? deserializeAws_restJson1ListOfRandomSplitEntry(output.Branches, context)
|
|
13896
|
-
: undefined,
|
|
13454
|
+
Branches: output.Branches != null ? deserializeAws_restJson1ListOfRandomSplitEntry(output.Branches, context) : undefined,
|
|
13897
13455
|
};
|
|
13898
13456
|
};
|
|
13899
13457
|
const deserializeAws_restJson1RandomSplitEntry = (output, context) => {
|
|
@@ -13910,9 +13468,7 @@ const deserializeAws_restJson1RecencyDimension = (output, context) => {
|
|
|
13910
13468
|
};
|
|
13911
13469
|
const deserializeAws_restJson1RecommenderConfigurationResponse = (output, context) => {
|
|
13912
13470
|
return {
|
|
13913
|
-
Attributes: output.Attributes
|
|
13914
|
-
? deserializeAws_restJson1MapOf__string(output.Attributes, context)
|
|
13915
|
-
: undefined,
|
|
13471
|
+
Attributes: output.Attributes != null ? deserializeAws_restJson1MapOf__string(output.Attributes, context) : undefined,
|
|
13916
13472
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
13917
13473
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
13918
13474
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
@@ -13928,12 +13484,8 @@ const deserializeAws_restJson1RecommenderConfigurationResponse = (output, contex
|
|
|
13928
13484
|
};
|
|
13929
13485
|
const deserializeAws_restJson1ResultRow = (output, context) => {
|
|
13930
13486
|
return {
|
|
13931
|
-
GroupedBys: output.GroupedBys
|
|
13932
|
-
|
|
13933
|
-
: undefined,
|
|
13934
|
-
Values: output.Values !== undefined && output.Values !== null
|
|
13935
|
-
? deserializeAws_restJson1ListOfResultRowValue(output.Values, context)
|
|
13936
|
-
: undefined,
|
|
13487
|
+
GroupedBys: output.GroupedBys != null ? deserializeAws_restJson1ListOfResultRowValue(output.GroupedBys, context) : undefined,
|
|
13488
|
+
Values: output.Values != null ? deserializeAws_restJson1ListOfResultRowValue(output.Values, context) : undefined,
|
|
13937
13489
|
};
|
|
13938
13490
|
};
|
|
13939
13491
|
const deserializeAws_restJson1ResultRowValue = (output, context) => {
|
|
@@ -13946,23 +13498,17 @@ const deserializeAws_restJson1ResultRowValue = (output, context) => {
|
|
|
13946
13498
|
const deserializeAws_restJson1Schedule = (output, context) => {
|
|
13947
13499
|
return {
|
|
13948
13500
|
EndTime: (0, smithy_client_1.expectString)(output.EndTime),
|
|
13949
|
-
EventFilter: output.EventFilter
|
|
13950
|
-
? deserializeAws_restJson1CampaignEventFilter(output.EventFilter, context)
|
|
13951
|
-
: undefined,
|
|
13501
|
+
EventFilter: output.EventFilter != null ? deserializeAws_restJson1CampaignEventFilter(output.EventFilter, context) : undefined,
|
|
13952
13502
|
Frequency: (0, smithy_client_1.expectString)(output.Frequency),
|
|
13953
13503
|
IsLocalTime: (0, smithy_client_1.expectBoolean)(output.IsLocalTime),
|
|
13954
|
-
QuietTime: output.QuietTime
|
|
13955
|
-
? deserializeAws_restJson1QuietTime(output.QuietTime, context)
|
|
13956
|
-
: undefined,
|
|
13504
|
+
QuietTime: output.QuietTime != null ? deserializeAws_restJson1QuietTime(output.QuietTime, context) : undefined,
|
|
13957
13505
|
StartTime: (0, smithy_client_1.expectString)(output.StartTime),
|
|
13958
13506
|
Timezone: (0, smithy_client_1.expectString)(output.Timezone),
|
|
13959
13507
|
};
|
|
13960
13508
|
};
|
|
13961
13509
|
const deserializeAws_restJson1SegmentBehaviors = (output, context) => {
|
|
13962
13510
|
return {
|
|
13963
|
-
Recency: output.Recency
|
|
13964
|
-
? deserializeAws_restJson1RecencyDimension(output.Recency, context)
|
|
13965
|
-
: undefined,
|
|
13511
|
+
Recency: output.Recency != null ? deserializeAws_restJson1RecencyDimension(output.Recency, context) : undefined,
|
|
13966
13512
|
};
|
|
13967
13513
|
};
|
|
13968
13514
|
const deserializeAws_restJson1SegmentCondition = (output, context) => {
|
|
@@ -13972,54 +13518,34 @@ const deserializeAws_restJson1SegmentCondition = (output, context) => {
|
|
|
13972
13518
|
};
|
|
13973
13519
|
const deserializeAws_restJson1SegmentDemographics = (output, context) => {
|
|
13974
13520
|
return {
|
|
13975
|
-
AppVersion: output.AppVersion
|
|
13976
|
-
|
|
13977
|
-
|
|
13978
|
-
|
|
13979
|
-
|
|
13980
|
-
|
|
13981
|
-
DeviceType: output.DeviceType !== undefined && output.DeviceType !== null
|
|
13982
|
-
? deserializeAws_restJson1SetDimension(output.DeviceType, context)
|
|
13983
|
-
: undefined,
|
|
13984
|
-
Make: output.Make !== undefined && output.Make !== null
|
|
13985
|
-
? deserializeAws_restJson1SetDimension(output.Make, context)
|
|
13986
|
-
: undefined,
|
|
13987
|
-
Model: output.Model !== undefined && output.Model !== null
|
|
13988
|
-
? deserializeAws_restJson1SetDimension(output.Model, context)
|
|
13989
|
-
: undefined,
|
|
13990
|
-
Platform: output.Platform !== undefined && output.Platform !== null
|
|
13991
|
-
? deserializeAws_restJson1SetDimension(output.Platform, context)
|
|
13992
|
-
: undefined,
|
|
13521
|
+
AppVersion: output.AppVersion != null ? deserializeAws_restJson1SetDimension(output.AppVersion, context) : undefined,
|
|
13522
|
+
Channel: output.Channel != null ? deserializeAws_restJson1SetDimension(output.Channel, context) : undefined,
|
|
13523
|
+
DeviceType: output.DeviceType != null ? deserializeAws_restJson1SetDimension(output.DeviceType, context) : undefined,
|
|
13524
|
+
Make: output.Make != null ? deserializeAws_restJson1SetDimension(output.Make, context) : undefined,
|
|
13525
|
+
Model: output.Model != null ? deserializeAws_restJson1SetDimension(output.Model, context) : undefined,
|
|
13526
|
+
Platform: output.Platform != null ? deserializeAws_restJson1SetDimension(output.Platform, context) : undefined,
|
|
13993
13527
|
};
|
|
13994
13528
|
};
|
|
13995
13529
|
const deserializeAws_restJson1SegmentDimensions = (output, context) => {
|
|
13996
13530
|
return {
|
|
13997
|
-
Attributes: output.Attributes
|
|
13531
|
+
Attributes: output.Attributes != null
|
|
13998
13532
|
? deserializeAws_restJson1MapOfAttributeDimension(output.Attributes, context)
|
|
13999
13533
|
: undefined,
|
|
14000
|
-
Behavior: output.Behavior
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
: undefined,
|
|
14006
|
-
Location: output.Location !== undefined && output.Location !== null
|
|
14007
|
-
? deserializeAws_restJson1SegmentLocation(output.Location, context)
|
|
14008
|
-
: undefined,
|
|
14009
|
-
Metrics: output.Metrics !== undefined && output.Metrics !== null
|
|
14010
|
-
? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context)
|
|
14011
|
-
: undefined,
|
|
14012
|
-
UserAttributes: output.UserAttributes !== undefined && output.UserAttributes !== null
|
|
13534
|
+
Behavior: output.Behavior != null ? deserializeAws_restJson1SegmentBehaviors(output.Behavior, context) : undefined,
|
|
13535
|
+
Demographic: output.Demographic != null ? deserializeAws_restJson1SegmentDemographics(output.Demographic, context) : undefined,
|
|
13536
|
+
Location: output.Location != null ? deserializeAws_restJson1SegmentLocation(output.Location, context) : undefined,
|
|
13537
|
+
Metrics: output.Metrics != null ? deserializeAws_restJson1MapOfMetricDimension(output.Metrics, context) : undefined,
|
|
13538
|
+
UserAttributes: output.UserAttributes != null
|
|
14013
13539
|
? deserializeAws_restJson1MapOfAttributeDimension(output.UserAttributes, context)
|
|
14014
13540
|
: undefined,
|
|
14015
13541
|
};
|
|
14016
13542
|
};
|
|
14017
13543
|
const deserializeAws_restJson1SegmentGroup = (output, context) => {
|
|
14018
13544
|
return {
|
|
14019
|
-
Dimensions: output.Dimensions
|
|
13545
|
+
Dimensions: output.Dimensions != null
|
|
14020
13546
|
? deserializeAws_restJson1ListOfSegmentDimensions(output.Dimensions, context)
|
|
14021
13547
|
: undefined,
|
|
14022
|
-
SourceSegments: output.SourceSegments
|
|
13548
|
+
SourceSegments: output.SourceSegments != null
|
|
14023
13549
|
? deserializeAws_restJson1ListOfSegmentReference(output.SourceSegments, context)
|
|
14024
13550
|
: undefined,
|
|
14025
13551
|
SourceType: (0, smithy_client_1.expectString)(output.SourceType),
|
|
@@ -14028,17 +13554,13 @@ const deserializeAws_restJson1SegmentGroup = (output, context) => {
|
|
|
14028
13554
|
};
|
|
14029
13555
|
const deserializeAws_restJson1SegmentGroupList = (output, context) => {
|
|
14030
13556
|
return {
|
|
14031
|
-
Groups: output.Groups
|
|
14032
|
-
? deserializeAws_restJson1ListOfSegmentGroup(output.Groups, context)
|
|
14033
|
-
: undefined,
|
|
13557
|
+
Groups: output.Groups != null ? deserializeAws_restJson1ListOfSegmentGroup(output.Groups, context) : undefined,
|
|
14034
13558
|
Include: (0, smithy_client_1.expectString)(output.Include),
|
|
14035
13559
|
};
|
|
14036
13560
|
};
|
|
14037
13561
|
const deserializeAws_restJson1SegmentImportResource = (output, context) => {
|
|
14038
13562
|
return {
|
|
14039
|
-
ChannelCounts: output.ChannelCounts
|
|
14040
|
-
? deserializeAws_restJson1MapOf__integer(output.ChannelCounts, context)
|
|
14041
|
-
: undefined,
|
|
13563
|
+
ChannelCounts: output.ChannelCounts != null ? deserializeAws_restJson1MapOf__integer(output.ChannelCounts, context) : undefined,
|
|
14042
13564
|
ExternalId: (0, smithy_client_1.expectString)(output.ExternalId),
|
|
14043
13565
|
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
14044
13566
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
@@ -14048,12 +13570,8 @@ const deserializeAws_restJson1SegmentImportResource = (output, context) => {
|
|
|
14048
13570
|
};
|
|
14049
13571
|
const deserializeAws_restJson1SegmentLocation = (output, context) => {
|
|
14050
13572
|
return {
|
|
14051
|
-
Country: output.Country
|
|
14052
|
-
|
|
14053
|
-
: undefined,
|
|
14054
|
-
GPSPoint: output.GPSPoint !== undefined && output.GPSPoint !== null
|
|
14055
|
-
? deserializeAws_restJson1GPSPointDimension(output.GPSPoint, context)
|
|
14056
|
-
: undefined,
|
|
13573
|
+
Country: output.Country != null ? deserializeAws_restJson1SetDimension(output.Country, context) : undefined,
|
|
13574
|
+
GPSPoint: output.GPSPoint != null ? deserializeAws_restJson1GPSPointDimension(output.GPSPoint, context) : undefined,
|
|
14057
13575
|
};
|
|
14058
13576
|
};
|
|
14059
13577
|
const deserializeAws_restJson1SegmentReference = (output, context) => {
|
|
@@ -14067,30 +13585,24 @@ const deserializeAws_restJson1SegmentResponse = (output, context) => {
|
|
|
14067
13585
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
14068
13586
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
14069
13587
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
14070
|
-
Dimensions: output.Dimensions
|
|
14071
|
-
? deserializeAws_restJson1SegmentDimensions(output.Dimensions, context)
|
|
14072
|
-
: undefined,
|
|
13588
|
+
Dimensions: output.Dimensions != null ? deserializeAws_restJson1SegmentDimensions(output.Dimensions, context) : undefined,
|
|
14073
13589
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
14074
|
-
ImportDefinition: output.ImportDefinition
|
|
13590
|
+
ImportDefinition: output.ImportDefinition != null
|
|
14075
13591
|
? deserializeAws_restJson1SegmentImportResource(output.ImportDefinition, context)
|
|
14076
13592
|
: undefined,
|
|
14077
13593
|
LastModifiedDate: (0, smithy_client_1.expectString)(output.LastModifiedDate),
|
|
14078
13594
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
14079
|
-
SegmentGroups: output.SegmentGroups
|
|
13595
|
+
SegmentGroups: output.SegmentGroups != null
|
|
14080
13596
|
? deserializeAws_restJson1SegmentGroupList(output.SegmentGroups, context)
|
|
14081
13597
|
: undefined,
|
|
14082
13598
|
SegmentType: (0, smithy_client_1.expectString)(output.SegmentType),
|
|
14083
13599
|
Version: (0, smithy_client_1.expectInt32)(output.Version),
|
|
14084
|
-
tags: output.tags
|
|
14085
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
14086
|
-
: undefined,
|
|
13600
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
14087
13601
|
};
|
|
14088
13602
|
};
|
|
14089
13603
|
const deserializeAws_restJson1SegmentsResponse = (output, context) => {
|
|
14090
13604
|
return {
|
|
14091
|
-
Item: output.Item
|
|
14092
|
-
? deserializeAws_restJson1ListOfSegmentResponse(output.Item, context)
|
|
14093
|
-
: undefined,
|
|
13605
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfSegmentResponse(output.Item, context) : undefined,
|
|
14094
13606
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
14095
13607
|
};
|
|
14096
13608
|
};
|
|
@@ -14098,7 +13610,7 @@ const deserializeAws_restJson1SendUsersMessageResponse = (output, context) => {
|
|
|
14098
13610
|
return {
|
|
14099
13611
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
14100
13612
|
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
14101
|
-
Result: output.Result
|
|
13613
|
+
Result: output.Result != null
|
|
14102
13614
|
? deserializeAws_restJson1MapOfMapOfEndpointMessageResult(output.Result, context)
|
|
14103
13615
|
: undefined,
|
|
14104
13616
|
};
|
|
@@ -14106,20 +13618,18 @@ const deserializeAws_restJson1SendUsersMessageResponse = (output, context) => {
|
|
|
14106
13618
|
const deserializeAws_restJson1SetDimension = (output, context) => {
|
|
14107
13619
|
return {
|
|
14108
13620
|
DimensionType: (0, smithy_client_1.expectString)(output.DimensionType),
|
|
14109
|
-
Values: output.Values
|
|
14110
|
-
? deserializeAws_restJson1ListOf__string(output.Values, context)
|
|
14111
|
-
: undefined,
|
|
13621
|
+
Values: output.Values != null ? deserializeAws_restJson1ListOf__string(output.Values, context) : undefined,
|
|
14112
13622
|
};
|
|
14113
13623
|
};
|
|
14114
13624
|
const deserializeAws_restJson1SimpleCondition = (output, context) => {
|
|
14115
13625
|
return {
|
|
14116
|
-
EventCondition: output.EventCondition
|
|
13626
|
+
EventCondition: output.EventCondition != null
|
|
14117
13627
|
? deserializeAws_restJson1EventCondition(output.EventCondition, context)
|
|
14118
13628
|
: undefined,
|
|
14119
|
-
SegmentCondition: output.SegmentCondition
|
|
13629
|
+
SegmentCondition: output.SegmentCondition != null
|
|
14120
13630
|
? deserializeAws_restJson1SegmentCondition(output.SegmentCondition, context)
|
|
14121
13631
|
: undefined,
|
|
14122
|
-
SegmentDimensions: output.segmentDimensions
|
|
13632
|
+
SegmentDimensions: output.segmentDimensions != null
|
|
14123
13633
|
? deserializeAws_restJson1SegmentDimensions(output.segmentDimensions, context)
|
|
14124
13634
|
: undefined,
|
|
14125
13635
|
};
|
|
@@ -14144,7 +13654,7 @@ const deserializeAws_restJson1SMSChannelResponse = (output, context) => {
|
|
|
14144
13654
|
};
|
|
14145
13655
|
const deserializeAws_restJson1SMSMessageActivity = (output, context) => {
|
|
14146
13656
|
return {
|
|
14147
|
-
MessageConfig: output.MessageConfig
|
|
13657
|
+
MessageConfig: output.MessageConfig != null
|
|
14148
13658
|
? deserializeAws_restJson1JourneySMSMessage(output.MessageConfig, context)
|
|
14149
13659
|
: undefined,
|
|
14150
13660
|
NextActivity: (0, smithy_client_1.expectString)(output.NextActivity),
|
|
@@ -14164,27 +13674,23 @@ const deserializeAws_restJson1SMSTemplateResponse = (output, context) => {
|
|
|
14164
13674
|
TemplateName: (0, smithy_client_1.expectString)(output.TemplateName),
|
|
14165
13675
|
TemplateType: (0, smithy_client_1.expectString)(output.TemplateType),
|
|
14166
13676
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
14167
|
-
tags: output.tags
|
|
14168
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
14169
|
-
: undefined,
|
|
13677
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
14170
13678
|
};
|
|
14171
13679
|
};
|
|
14172
13680
|
const deserializeAws_restJson1StartCondition = (output, context) => {
|
|
14173
13681
|
return {
|
|
14174
13682
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
14175
|
-
EventStartCondition: output.EventStartCondition
|
|
13683
|
+
EventStartCondition: output.EventStartCondition != null
|
|
14176
13684
|
? deserializeAws_restJson1EventStartCondition(output.EventStartCondition, context)
|
|
14177
13685
|
: undefined,
|
|
14178
|
-
SegmentStartCondition: output.SegmentStartCondition
|
|
13686
|
+
SegmentStartCondition: output.SegmentStartCondition != null
|
|
14179
13687
|
? deserializeAws_restJson1SegmentCondition(output.SegmentStartCondition, context)
|
|
14180
13688
|
: undefined,
|
|
14181
13689
|
};
|
|
14182
13690
|
};
|
|
14183
13691
|
const deserializeAws_restJson1TagsModel = (output, context) => {
|
|
14184
13692
|
return {
|
|
14185
|
-
tags: output.tags
|
|
14186
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
14187
|
-
: undefined,
|
|
13693
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
14188
13694
|
};
|
|
14189
13695
|
};
|
|
14190
13696
|
const deserializeAws_restJson1Template = (output, context) => {
|
|
@@ -14195,18 +13701,10 @@ const deserializeAws_restJson1Template = (output, context) => {
|
|
|
14195
13701
|
};
|
|
14196
13702
|
const deserializeAws_restJson1TemplateConfiguration = (output, context) => {
|
|
14197
13703
|
return {
|
|
14198
|
-
EmailTemplate: output.EmailTemplate
|
|
14199
|
-
|
|
14200
|
-
|
|
14201
|
-
|
|
14202
|
-
? deserializeAws_restJson1Template(output.PushTemplate, context)
|
|
14203
|
-
: undefined,
|
|
14204
|
-
SMSTemplate: output.SMSTemplate !== undefined && output.SMSTemplate !== null
|
|
14205
|
-
? deserializeAws_restJson1Template(output.SMSTemplate, context)
|
|
14206
|
-
: undefined,
|
|
14207
|
-
VoiceTemplate: output.VoiceTemplate !== undefined && output.VoiceTemplate !== null
|
|
14208
|
-
? deserializeAws_restJson1Template(output.VoiceTemplate, context)
|
|
14209
|
-
: undefined,
|
|
13704
|
+
EmailTemplate: output.EmailTemplate != null ? deserializeAws_restJson1Template(output.EmailTemplate, context) : undefined,
|
|
13705
|
+
PushTemplate: output.PushTemplate != null ? deserializeAws_restJson1Template(output.PushTemplate, context) : undefined,
|
|
13706
|
+
SMSTemplate: output.SMSTemplate != null ? deserializeAws_restJson1Template(output.SMSTemplate, context) : undefined,
|
|
13707
|
+
VoiceTemplate: output.VoiceTemplate != null ? deserializeAws_restJson1Template(output.VoiceTemplate, context) : undefined,
|
|
14210
13708
|
};
|
|
14211
13709
|
};
|
|
14212
13710
|
const deserializeAws_restJson1TemplateCreateMessageBody = (output, context) => {
|
|
@@ -14226,16 +13724,12 @@ const deserializeAws_restJson1TemplateResponse = (output, context) => {
|
|
|
14226
13724
|
TemplateName: (0, smithy_client_1.expectString)(output.TemplateName),
|
|
14227
13725
|
TemplateType: (0, smithy_client_1.expectString)(output.TemplateType),
|
|
14228
13726
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
14229
|
-
tags: output.tags
|
|
14230
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
14231
|
-
: undefined,
|
|
13727
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
14232
13728
|
};
|
|
14233
13729
|
};
|
|
14234
13730
|
const deserializeAws_restJson1TemplatesResponse = (output, context) => {
|
|
14235
13731
|
return {
|
|
14236
|
-
Item: output.Item
|
|
14237
|
-
? deserializeAws_restJson1ListOfTemplateResponse(output.Item, context)
|
|
14238
|
-
: undefined,
|
|
13732
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfTemplateResponse(output.Item, context) : undefined,
|
|
14239
13733
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
14240
13734
|
};
|
|
14241
13735
|
};
|
|
@@ -14252,9 +13746,7 @@ const deserializeAws_restJson1TemplateVersionResponse = (output, context) => {
|
|
|
14252
13746
|
};
|
|
14253
13747
|
const deserializeAws_restJson1TemplateVersionsResponse = (output, context) => {
|
|
14254
13748
|
return {
|
|
14255
|
-
Item: output.Item
|
|
14256
|
-
? deserializeAws_restJson1ListOfTemplateVersionResponse(output.Item, context)
|
|
14257
|
-
: undefined,
|
|
13749
|
+
Item: output.Item != null ? deserializeAws_restJson1ListOfTemplateVersionResponse(output.Item, context) : undefined,
|
|
14258
13750
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
14259
13751
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
14260
13752
|
RequestID: (0, smithy_client_1.expectString)(output.RequestID),
|
|
@@ -14262,21 +13754,17 @@ const deserializeAws_restJson1TemplateVersionsResponse = (output, context) => {
|
|
|
14262
13754
|
};
|
|
14263
13755
|
const deserializeAws_restJson1TreatmentResource = (output, context) => {
|
|
14264
13756
|
return {
|
|
14265
|
-
CustomDeliveryConfiguration: output.CustomDeliveryConfiguration
|
|
13757
|
+
CustomDeliveryConfiguration: output.CustomDeliveryConfiguration != null
|
|
14266
13758
|
? deserializeAws_restJson1CustomDeliveryConfiguration(output.CustomDeliveryConfiguration, context)
|
|
14267
13759
|
: undefined,
|
|
14268
13760
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
14269
|
-
MessageConfiguration: output.MessageConfiguration
|
|
13761
|
+
MessageConfiguration: output.MessageConfiguration != null
|
|
14270
13762
|
? deserializeAws_restJson1MessageConfiguration(output.MessageConfiguration, context)
|
|
14271
13763
|
: undefined,
|
|
14272
|
-
Schedule: output.Schedule
|
|
14273
|
-
? deserializeAws_restJson1Schedule(output.Schedule, context)
|
|
14274
|
-
: undefined,
|
|
13764
|
+
Schedule: output.Schedule != null ? deserializeAws_restJson1Schedule(output.Schedule, context) : undefined,
|
|
14275
13765
|
SizePercent: (0, smithy_client_1.expectInt32)(output.SizePercent),
|
|
14276
|
-
State: output.State
|
|
14277
|
-
|
|
14278
|
-
: undefined,
|
|
14279
|
-
TemplateConfiguration: output.TemplateConfiguration !== undefined && output.TemplateConfiguration !== null
|
|
13766
|
+
State: output.State != null ? deserializeAws_restJson1CampaignState(output.State, context) : undefined,
|
|
13767
|
+
TemplateConfiguration: output.TemplateConfiguration != null
|
|
14280
13768
|
? deserializeAws_restJson1TemplateConfiguration(output.TemplateConfiguration, context)
|
|
14281
13769
|
: undefined,
|
|
14282
13770
|
TreatmentDescription: (0, smithy_client_1.expectString)(output.TreatmentDescription),
|
|
@@ -14315,17 +13803,13 @@ const deserializeAws_restJson1VoiceTemplateResponse = (output, context) => {
|
|
|
14315
13803
|
TemplateType: (0, smithy_client_1.expectString)(output.TemplateType),
|
|
14316
13804
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
14317
13805
|
VoiceId: (0, smithy_client_1.expectString)(output.VoiceId),
|
|
14318
|
-
tags: output.tags
|
|
14319
|
-
? deserializeAws_restJson1MapOf__string(output.tags, context)
|
|
14320
|
-
: undefined,
|
|
13806
|
+
tags: output.tags != null ? deserializeAws_restJson1MapOf__string(output.tags, context) : undefined,
|
|
14321
13807
|
};
|
|
14322
13808
|
};
|
|
14323
13809
|
const deserializeAws_restJson1WaitActivity = (output, context) => {
|
|
14324
13810
|
return {
|
|
14325
13811
|
NextActivity: (0, smithy_client_1.expectString)(output.NextActivity),
|
|
14326
|
-
WaitTime: output.WaitTime
|
|
14327
|
-
? deserializeAws_restJson1WaitTime(output.WaitTime, context)
|
|
14328
|
-
: undefined,
|
|
13812
|
+
WaitTime: output.WaitTime != null ? deserializeAws_restJson1WaitTime(output.WaitTime, context) : undefined,
|
|
14329
13813
|
};
|
|
14330
13814
|
};
|
|
14331
13815
|
const deserializeAws_restJson1WaitTime = (output, context) => {
|