| 1 | package Google::Actions::Sdk::V2::Action::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'Actions', | ||
| 11 | as InstanceOf['Google::Actions::Sdk::V2::Action::Actions']; | ||
| 12 | |||
| 13 | coerce 'Actions', | ||
| 14 | from HashRef, via { 'Google::Actions::Sdk::V2::Action::Actions'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedActions', | ||
| 17 | as ArrayRef[Actions()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedActions', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Action::Actions'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringActions', | ||
| 23 | as HashRef[Actions()]; | ||
| 24 | |||
| 25 | declare 'Engagement', | ||
| 26 | as InstanceOf['Google::Actions::Sdk::V2::Action::Actions::Engagement']; | ||
| 27 | |||
| 28 | coerce 'Engagement', | ||
| 29 | from HashRef, via { 'Google::Actions::Sdk::V2::Action::Actions::Engagement'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedEngagement', | ||
| 32 | as ArrayRef[Engagement()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedEngagement', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Action::Actions::Engagement'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringEngagement', | ||
| 38 | as HashRef[Engagement()]; | ||
| 39 | |||
| 40 | declare 'PushNotification', | ||
| 41 | as InstanceOf['Google::Actions::Sdk::V2::Action::Actions::Engagement::PushNotification']; | ||
| 42 | |||
| 43 | coerce 'PushNotification', | ||
| 44 | from HashRef, via { 'Google::Actions::Sdk::V2::Action::Actions::Engagement::PushNotification'->new($_) }; | ||
| 45 | |||
| 46 | declare 'RepeatedPushNotification', | ||
| 47 | as ArrayRef[PushNotification()]; | ||
| 48 | |||
| 49 | coerce 'RepeatedPushNotification', | ||
| 50 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Action::Actions::Engagement::PushNotification'->new($_) } @$_ ] }; | ||
| 51 | |||
| 52 | declare 'MapStringPushNotification', | ||
| 53 | as HashRef[PushNotification()]; | ||
| 54 | |||
| 55 | declare 'DailyUpdate', | ||
| 56 | as InstanceOf['Google::Actions::Sdk::V2::Action::Actions::Engagement::DailyUpdate']; | ||
| 57 | |||
| 58 | coerce 'DailyUpdate', | ||
| 59 | from HashRef, via { 'Google::Actions::Sdk::V2::Action::Actions::Engagement::DailyUpdate'->new($_) }; | ||
| 60 | |||
| 61 | declare 'RepeatedDailyUpdate', | ||
| 62 | as ArrayRef[DailyUpdate()]; | ||
| 63 | |||
| 64 | coerce 'RepeatedDailyUpdate', | ||
| 65 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Action::Actions::Engagement::DailyUpdate'->new($_) } @$_ ] }; | ||
| 66 | |||
| 67 | declare 'MapStringDailyUpdate', | ||
| 68 | as HashRef[DailyUpdate()]; | ||
| 69 | |||
| 70 | declare 'ActionLink', | ||
| 71 | as InstanceOf['Google::Actions::Sdk::V2::Action::Actions::Engagement::ActionLink']; | ||
| 72 | |||
| 73 | coerce 'ActionLink', | ||
| 74 | from HashRef, via { 'Google::Actions::Sdk::V2::Action::Actions::Engagement::ActionLink'->new($_) }; | ||
| 75 | |||
| 76 | declare 'RepeatedActionLink', | ||
| 77 | as ArrayRef[ActionLink()]; | ||
| 78 | |||
| 79 | coerce 'RepeatedActionLink', | ||
| 80 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Action::Actions::Engagement::ActionLink'->new($_) } @$_ ] }; | ||
| 81 | |||
| 82 | declare 'MapStringActionLink', | ||
| 83 | as HashRef[ActionLink()]; | ||
| 84 | |||
| 85 | declare 'AssistantLink', | ||
| 86 | as InstanceOf['Google::Actions::Sdk::V2::Action::Actions::Engagement::AssistantLink']; | ||
| 87 | |||
| 88 | coerce 'AssistantLink', | ||
| 89 | from HashRef, via { 'Google::Actions::Sdk::V2::Action::Actions::Engagement::AssistantLink'->new($_) }; | ||
| 90 | |||
| 91 | declare 'RepeatedAssistantLink', | ||
| 92 | as ArrayRef[AssistantLink()]; | ||
| 93 | |||
| 94 | coerce 'RepeatedAssistantLink', | ||
| 95 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Action::Actions::Engagement::AssistantLink'->new($_) } @$_ ] }; | ||
| 96 | |||
| 97 | declare 'MapStringAssistantLink', | ||
| 98 | as HashRef[AssistantLink()]; | ||
| 99 | |||
| 100 | declare 'CustomAction', | ||
| 101 | as InstanceOf['Google::Actions::Sdk::V2::Action::Actions::CustomAction']; | ||
| 102 | |||
| 103 | coerce 'CustomAction', | ||
| 104 | from HashRef, via { 'Google::Actions::Sdk::V2::Action::Actions::CustomAction'->new($_) }; | ||
| 105 | |||
| 106 | declare 'RepeatedCustomAction', | ||
| 107 | as ArrayRef[CustomAction()]; | ||
| 108 | |||
| 109 | coerce 'RepeatedCustomAction', | ||
| 110 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Action::Actions::CustomAction'->new($_) } @$_ ] }; | ||
| 111 | |||
| 112 | declare 'MapStringCustomAction', | ||
| 113 | as HashRef[CustomAction()]; | ||
| 114 | |||
| 115 | declare 'CustomEntry', | ||
| 116 | as InstanceOf['Google::Actions::Sdk::V2::Action::Actions::CustomEntry']; | ||
| 117 | |||
| 118 | coerce 'CustomEntry', | ||
| 119 | from HashRef, via { 'Google::Actions::Sdk::V2::Action::Actions::CustomEntry'->new($_) }; | ||
| 120 | |||
| 121 | declare 'RepeatedCustomEntry', | ||
| 122 | as ArrayRef[CustomEntry()]; | ||
| 123 | |||
| 124 | coerce 'RepeatedCustomEntry', | ||
| 125 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Action::Actions::CustomEntry'->new($_) } @$_ ] }; | ||
| 126 | |||
| 127 | declare 'MapStringCustomEntry', | ||
| 128 | as HashRef[CustomEntry()]; | ||
| 129 | |||
| 130 | 1; | ||
| 131 | |||
| 132 | __END__ |