SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { gql } from "apollo-server-express";
  2.  
  3. export default gql`
  4.     type Mutation {
  5.         """
  6.        Updates the contact details based on the given fields. Null fields are ignored.
  7.        """
  8.         updateContactDetails(
  9.             employeeId : String!,
  10.             contactType : String!,
  11.             params : UpdateContactDetailsParameters!
  12.         ) : RequestStatus
  13.     }
  14.  
  15.     extend type Employee @key(fields: "employeeId") {
  16.         employeeId: ID! @external
  17.  
  18.         contactTypes: [ContactTypes!]
  19.  
  20.         """
  21.        Gets the contact details for the specified contact type code
  22.        """
  23.         contactInfo(
  24.             "The contact type code to query against"
  25.             contactType: String!
  26.             ) : EmployeeContactDetails
  27.     }
  28.  
  29.     "Contact details for an employee"
  30.     type EmployeeContactDetails {
  31.         "The contact details type code"
  32.         typeCode: String
  33.  
  34.         "The 3 lines of address for the contact"
  35.         address: [String]!
  36.  
  37.         "Country code and description"
  38.         country: CountryDetails
  39.  
  40.         "State code and description"
  41.         state: StateDetails
  42.  
  43.         building: String
  44.  
  45.         localTypes: [LocalTypeDetails]!
  46.  
  47.         "Postal code of employee"
  48.         postalCode: String
  49.  
  50.         mobileCity: String
  51.         faxNumber: String
  52.         phoneNumber: String
  53.         mobileNumber: String
  54.         workNumber: String
  55.         emailId: String
  56.     }
  57.    
  58.     interface CodeWithDescription {
  59.         code: String
  60.         description: String
  61.     }
  62.  
  63.     type CountryDetails implements CodeWithDescription{
  64.        
  65.         code: String
  66.         description: String
  67.     }
  68.  
  69.     type StateDetails implements CodeWithDescription{
  70.         code: String
  71.         description: String
  72.     }
  73.  
  74.     type LocalTypeDetails implements CodeWithDescription{
  75.         code: String
  76.         description: String
  77.     }
  78.  
  79.     type ContactTypes implements CodeWithDescription {
  80.         code: String
  81.         description: String
  82.     }
  83.  
  84.  
  85.     input UpdateContactDetailsParameters {
  86.         countryCode: String,
  87.         stateCode: String,
  88.         cityCode: String,
  89.         addressLine1 : String,
  90.         addressLine2: String,
  91.         addressLine3: String,
  92.         postalCode : String,
  93.         mobileNumber : String,
  94.         phoneNumber : String,
  95.         primaryEmail : String,
  96.         secondaryEmail: String,
  97.         effectiveDate : String
  98.     }
  99.  
  100.     type RequestStatus {
  101.         success: Boolean!,
  102.         error: String
  103.     }
  104. `;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top