"Fossies" - the Fresh Open Source Software Archive

Member "wire-server-2021-10-01/libs/wire-api/test/unit/Test/Wire/API/Golden/Generated/ActivationResponse_user.hs" (4 Oct 2021, 6857 Bytes) of package /linux/misc/wire-server-2021-10-01.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Haskell source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {-# LANGUAGE OverloadedLists #-}
    2 
    3 -- This file is part of the Wire Server implementation.
    4 --
    5 -- Copyright (C) 2021 Wire Swiss GmbH <opensource@wire.com>
    6 --
    7 -- This program is free software: you can redistribute it and/or modify it under
    8 -- the terms of the GNU Affero General Public License as published by the Free
    9 -- Software Foundation, either version 3 of the License, or (at your option) any
   10 -- later version.
   11 --
   12 -- This program is distributed in the hope that it will be useful, but WITHOUT
   13 -- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   14 -- FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
   15 -- details.
   16 --
   17 -- You should have received a copy of the GNU Affero General Public License along
   18 -- with this program. If not, see <https://www.gnu.org/licenses/>.
   19 module Test.Wire.API.Golden.Generated.ActivationResponse_user where
   20 
   21 import Imports (Bool (False, True), Maybe (Just, Nothing))
   22 import Wire.API.User
   23   ( Email (Email, emailDomain, emailLocal),
   24     Phone (Phone, fromPhone),
   25     UserIdentity
   26       ( EmailIdentity,
   27         FullIdentity,
   28         PhoneIdentity,
   29         SSOIdentity
   30       ),
   31     UserSSOId (UserSSOId, UserScimExternalId),
   32   )
   33 import Wire.API.User.Activation (ActivationResponse (..))
   34 
   35 testObject_ActivationResponse_user_1 :: ActivationResponse
   36 testObject_ActivationResponse_user_1 =
   37   ActivationResponse
   38     { activatedIdentity =
   39         SSOIdentity
   40           (UserSSOId "" "\RS")
   41           (Just (Email {emailLocal = "\165918\rZ\a\ESC", emailDomain = "p\131777\62344"}))
   42           Nothing,
   43       activatedFirst = False
   44     }
   45 
   46 testObject_ActivationResponse_user_2 :: ActivationResponse
   47 testObject_ActivationResponse_user_2 =
   48   ActivationResponse {activatedIdentity = PhoneIdentity (Phone {fromPhone = "+7397347696479"}), activatedFirst = False}
   49 
   50 testObject_ActivationResponse_user_3 :: ActivationResponse
   51 testObject_ActivationResponse_user_3 =
   52   ActivationResponse
   53     { activatedIdentity =
   54         EmailIdentity (Email {emailLocal = "\10031*;'R\EM\SI\1032685\1041167", emailDomain = "Gw:[T8\34437"}),
   55       activatedFirst = False
   56     }
   57 
   58 testObject_ActivationResponse_user_4 :: ActivationResponse
   59 testObject_ActivationResponse_user_4 =
   60   ActivationResponse
   61     { activatedIdentity =
   62         FullIdentity (Email {emailLocal = "h\nPr3", emailDomain = ""}) (Phone {fromPhone = "+82309287"}),
   63       activatedFirst = True
   64     }
   65 
   66 testObject_ActivationResponse_user_5 :: ActivationResponse
   67 testObject_ActivationResponse_user_5 =
   68   ActivationResponse
   69     { activatedIdentity =
   70         EmailIdentity (Email {emailLocal = "7\1042098m\95296\b\1098765", emailDomain = "AJX*s&\173117\988870p"}),
   71       activatedFirst = False
   72     }
   73 
   74 testObject_ActivationResponse_user_6 :: ActivationResponse
   75 testObject_ActivationResponse_user_6 =
   76   ActivationResponse
   77     { activatedIdentity = SSOIdentity (UserScimExternalId "\an|") Nothing Nothing,
   78       activatedFirst = False
   79     }
   80 
   81 testObject_ActivationResponse_user_7 :: ActivationResponse
   82 testObject_ActivationResponse_user_7 =
   83   ActivationResponse
   84     { activatedIdentity = EmailIdentity (Email {emailLocal = "\98670", emailDomain = ""}),
   85       activatedFirst = True
   86     }
   87 
   88 testObject_ActivationResponse_user_8 :: ActivationResponse
   89 testObject_ActivationResponse_user_8 =
   90   ActivationResponse {activatedIdentity = PhoneIdentity (Phone {fromPhone = "+0023160115015"}), activatedFirst = True}
   91 
   92 testObject_ActivationResponse_user_9 :: ActivationResponse
   93 testObject_ActivationResponse_user_9 =
   94   ActivationResponse
   95     { activatedIdentity =
   96         FullIdentity (Email {emailLocal = "\ENQ?", emailDomain = ""}) (Phone {fromPhone = "+208573659013"}),
   97       activatedFirst = False
   98     }
   99 
  100 testObject_ActivationResponse_user_10 :: ActivationResponse
  101 testObject_ActivationResponse_user_10 =
  102   ActivationResponse
  103     { activatedIdentity =
  104         EmailIdentity (Email {emailLocal = "\ACK3", emailDomain = "\f\1040847\1071035\EOT\1003280P\DEL"}),
  105       activatedFirst = False
  106     }
  107 
  108 testObject_ActivationResponse_user_11 :: ActivationResponse
  109 testObject_ActivationResponse_user_11 =
  110   ActivationResponse
  111     { activatedIdentity =
  112         EmailIdentity (Email {emailLocal = "z\126214m\146009<\1046292\a\DC31+*", emailDomain = "S\SO\125114"}),
  113       activatedFirst = True
  114     }
  115 
  116 testObject_ActivationResponse_user_12 :: ActivationResponse
  117 testObject_ActivationResponse_user_12 =
  118   ActivationResponse
  119     { activatedIdentity =
  120         EmailIdentity (Email {emailLocal = "d4p\r:\STXI5\167701\158743\GS\v", emailDomain = "\51121\100929"}),
  121       activatedFirst = False
  122     }
  123 
  124 testObject_ActivationResponse_user_13 :: ActivationResponse
  125 testObject_ActivationResponse_user_13 =
  126   ActivationResponse
  127     { activatedIdentity = SSOIdentity (UserScimExternalId "#") Nothing (Just (Phone {fromPhone = "+6124426658"})),
  128       activatedFirst = False
  129     }
  130 
  131 testObject_ActivationResponse_user_14 :: ActivationResponse
  132 testObject_ActivationResponse_user_14 =
  133   ActivationResponse
  134     { activatedIdentity =
  135         SSOIdentity
  136           (UserScimExternalId "\NUL\US\ETBY")
  137           (Just (Email {emailLocal = "\66022", emailDomain = "\a\1081391"}))
  138           Nothing,
  139       activatedFirst = False
  140     }
  141 
  142 testObject_ActivationResponse_user_15 :: ActivationResponse
  143 testObject_ActivationResponse_user_15 =
  144   ActivationResponse {activatedIdentity = PhoneIdentity (Phone {fromPhone = "+594453349310"}), activatedFirst = False}
  145 
  146 testObject_ActivationResponse_user_16 :: ActivationResponse
  147 testObject_ActivationResponse_user_16 =
  148   ActivationResponse
  149     { activatedIdentity =
  150         FullIdentity (Email {emailLocal = "r\FS,\"", emailDomain = "%R\n\164677^"}) (Phone {fromPhone = "+144713467"}),
  151       activatedFirst = False
  152     }
  153 
  154 testObject_ActivationResponse_user_17 :: ActivationResponse
  155 testObject_ActivationResponse_user_17 =
  156   ActivationResponse
  157     { activatedIdentity =
  158         SSOIdentity
  159           (UserScimExternalId "")
  160           (Just (Email {emailLocal = "\155143", emailDomain = "+)"}))
  161           (Just (Phone {fromPhone = "+703448141"})),
  162       activatedFirst = True
  163     }
  164 
  165 testObject_ActivationResponse_user_18 :: ActivationResponse
  166 testObject_ActivationResponse_user_18 =
  167   ActivationResponse {activatedIdentity = PhoneIdentity (Phone {fromPhone = "+974462685543005"}), activatedFirst = True}
  168 
  169 testObject_ActivationResponse_user_19 :: ActivationResponse
  170 testObject_ActivationResponse_user_19 =
  171   ActivationResponse
  172     { activatedIdentity = SSOIdentity (UserSSOId "" "") (Just (Email {emailLocal = "R", emailDomain = "K"})) Nothing,
  173       activatedFirst = False
  174     }
  175 
  176 testObject_ActivationResponse_user_20 :: ActivationResponse
  177 testObject_ActivationResponse_user_20 =
  178   ActivationResponse
  179     { activatedIdentity =
  180         FullIdentity (Email {emailLocal = "", emailDomain = "E"}) (Phone {fromPhone = "+73148778831190"}),
  181       activatedFirst = False
  182     }