Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { gql } from "apollo-server-express";
- export default gql`
- type Mutation {
- """
- Updates the contact details based on the given fields. Null fields are ignored.
- """
- updateContactDetails(
- employeeId : String!,
- contactType : String!,
- params : UpdateContactDetailsParameters!
- ) : RequestStatus
- }
- extend type Employee @key(fields: "employeeId") {
- employeeId: ID! @external
- contactTypes: [ContactTypes!]
- """
- Gets the contact details for the specified contact type code
- """
- contactInfo(
- "The contact type code to query against"
- contactType: String!
- ) : EmployeeContactDetails
- }
- "Contact details for an employee"
- type EmployeeContactDetails {
- "The contact details type code"
- typeCode: String
- "The 3 lines of address for the contact"
- address: [String]!
- "Country code and description"
- country: CountryDetails
- "State code and description"
- state: StateDetails
- building: String
- localTypes: [LocalTypeDetails]!
- "Postal code of employee"
- postalCode: String
- mobileCity: String
- faxNumber: String
- phoneNumber: String
- mobileNumber: String
- workNumber: String
- emailId: String
- }
- interface CodeWithDescription {
- code: String
- description: String
- }
- type CountryDetails implements CodeWithDescription{
- code: String
- description: String
- }
- type StateDetails implements CodeWithDescription{
- code: String
- description: String
- }
- type LocalTypeDetails implements CodeWithDescription{
- code: String
- description: String
- }
- type ContactTypes implements CodeWithDescription {
- code: String
- description: String
- }
- input UpdateContactDetailsParameters {
- countryCode: String,
- stateCode: String,
- cityCode: String,
- addressLine1 : String,
- addressLine2: String,
- addressLine3: String,
- postalCode : String,
- mobileNumber : String,
- phoneNumber : String,
- primaryEmail : String,
- secondaryEmail: String,
- effectiveDate : String
- }
- type RequestStatus {
- success: Boolean!,
- error: String
- }
- `;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement