Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / dist / graphql-modules / user / schema / User.graphql.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const apollo_server_1 = require("apollo-server");
exports.default = apollo_server_1.gql `
  # @todo reuse interface, simplify this lame response into flat
  type UpdateCardPropertiesState {
    status: String
  }
  type UpdateCardProperties {
    state: UpdateCardPropertiesState
  }
  type UpdateCardResponse {
    type: String
    properties: UpdateCardProperties
  }

  type CreditCardAddressInfo {
    addressid: String
  }
  type GuestProfileResponse {
    type: String
  }
  input GuestProfileAddressDetails {
    firstName: String!
    lastName: String!
    phone: String!
    email: String!
    type: String = "email"
    postalCode: String!
  }
  type CreditCardDetails {
    cardid: String!
    identifier: String!
    firstname: String
    lastname: String
    addressinfo: [UserAddressInfo]
    cardnumber: String
    cardtype: String
    expirationmonth: String
    expirationyear: String
    isdefault: String
    isvalidated: String
    lastfourdigits: String
    nameoncard: String
    type: String
  }

  type UserCreditCardInfo {
    cards: [CreditCardDetails]
  }

  type UserAddressInfo {
    addressid: ID!
    addresstype: String
    isdefaultaddress: String
    firstname: String
    lastname: String
    email: String
    addressline1: String
    addressline2: String
    city: String
    state: String
    county: String
    country: String
    zipcode: String
    additionaldetails: [LabelValue]
    phonedetails: [PhoneDetail]
  }

  type UserIdentityList {
    id: ID!
    partner: String
    name: String
    type: String
    userid: String
    tags: [LabelValue]
  }

  type accountTeamBuyer {
    userId: String
    teamId: ID
  }
  type accountTeams {
    id: ID
    costCentreId: ID
    name: String
    description: String
    status: String
    teamBuyer: [accountTeamBuyer]
  }

  type UserAccountInfo {
    accountid: String
    username: String
    type: String
    size: String
    role: String
    teams: [accountTeams]
  }

  type UserProfileInfo {
    userid: ID
    email: String
    username: String
    firstname: String
    lastname: String
    userphoto: String
    phonenumber: String
    gender: String
    dob: String
    city: String
    state: String
    country: String
    usertimezone: String
    preferences: [LabelValue]
    additionalinfo: [LabelValue]
    list: [UserIdentityList]
    addressinfo: [UserAddressInfo]
  }

  type UserSegmentSecurity {
    usersegment: [String]
    securityanswer: String
    securityquestion: String
  }

  # union UserProfile = UserProfileInfo | UserSegmentSecurity

  type UserState {
    starttime: String
    status: String
  }

  type UserResponseProperties {
    creditcardinfo: UserCreditCardInfo
    state: UserState!
    userinfo: [UserProfileInfo]
    accounts: UserAccountInfo
  }

  type UserResponse {
    type: String
    properties: UserResponseProperties
    responseMessage: String
    responseCode: String
    cookies: [String]
  }

  type RegistrationState {
    # @deprecated
    statuscode: String
    # @deprecated
    starttime: String
    status: String
  }

  type UserInfoProperties {
    userid: String
    # adding username prop to Response
    username: String
  }

  type RegistrationProperties {
    state: RegistrationState
    userinfo: UserInfoProperties
  }

  type RegistrationResponse {
    sessionId: String

    responseCode: String
    responseMessage: String

    # @deprecated
    type: String
    properties: RegistrationProperties
    cookies: [String]
  }

  type TwitterAuthTokenResponse {
    type: String
    responseMessage: String
  }
  type UserIdParams {
    userid: String
  }

  type LogOutState {
    status: String
  }

  type ResetPasswordState {
    status: String
    resetParam: String
  }

  type ResetPasswordProperties {
    state: ResetPasswordState
    userinfo: UserIdParams
  }

  type ResetPasswordResponse {
    type: String
    properties: ResetPasswordProperties
    responseCode: String
  }

  type LogOutProperties {
    state: LogOutState
    userinfo: UserIdParams
  }

  type LogOut {
    responseCode: String
    responseMessage: String
    properties: LogOutProperties
    type: String
  }

  input SecurityVerificationDetails {
    challengeQuestion: String
    challengeAnswer: String
  }

  input SecurityQuestionParams {
    type: String
    verificationDetails: SecurityVerificationDetails
  }

  input UpdateSecurityVerificationDetails {
    userName: String!
  }

  input UpdateSecurityParams {
    verificationDetails: UpdateSecurityVerificationDetails
    addresses: [SecurityQuestionParams]
  }
  type StateProperties {
    statuscode: String!
    starttime: String!
    status: String!
  }

  type SecurityQuestionUserInfoProperties {
    country: String
    userphoto: String
    firstname: String
    preferences: [LabelValue]
    gender: String
    city: String
    phonenumber: String
    userid: ID
    additionalinfo: [LabelValue]
    lastname: String
    dob: String
    state: String
    usertimezone: String
    email: String
    username: String
    securityanswer: String
    securityquestion: String
  }

  type GetSecurityQuestionProperties {
    state: StateProperties
    userinfo: [SecurityQuestionUserInfoProperties]
  }

  type GetSecurityQuestionResponse {
    type: String
    properties: GetSecurityQuestionProperties
  }

  type SecurityQuestionsState {
    status: String
  }

  type UserIdProperty {
    userid: String!
  }

  type SecurityQuestionsProperties {
    state: SecurityQuestionsState
    userinfo: UserIdProperty
  }
  type ResetBySecurityQuestionsResponse {
    type: String
    properties: SecurityQuestionsProperties
    responseCode: String
  }
  type UpdatePasswordProperties {
    state: StateProperties
    userinfo: UserIdProperty
  }
  type UpdatePasswordResponse {
    type: String
    properties: UpdatePasswordProperties
  }
  type PaymentState {
    status: String
  }
  type PaymentProperties {
    state: PaymentState
  }
  type AddCardResponse {
    type: String
    properties: PaymentProperties
    responseCode: String
    responseMessage: String
  }

  type DeleteCardResponse {
    type: String
    properties: PaymentProperties
  }
  type ChangeDefaultState {
    status: String
  }
  type ChangeDefaultPaymentProperties {
    state: ChangeDefaultState
  }
  type ChangeDefaultCardResponse {
    type: String
    properties: ChangeDefaultPaymentProperties
  }
  input VerificationDetails {
    # oddly enough, actually the email
    userName: String!
    # user's password
    password: String!
    # new property
    username: String
  }

  input RegisterUserAddressesCustomParam {
    type: [String]
  }

  input RegisterUserAddresses {
    type: String
    value: String
    customParams: RegisterUserAddressesCustomParam
  }

  input RegisterUserCustomParams {
    resetMethod: [String]
    status: [String]
    contactPreferences: [String]
    additionalPreferences: [String]
    promotions: [String]
    preferences: [String]
  }

  input RegisterUserParams {
    verificationDetails: VerificationDetails
    email: String
    phone: String
    dob: String
    gender: String
    firstName: String
    lastName: String
    nickName: String
    city: String
    state: String
    country: String
    postalCode: String
    addresses: [RegisterUserAddresses]
    customParams: RegisterUserCustomParams
  }

  # input RegisterCustomParams {
  #   messageCampaignId: String
  #   validationMethod: String
  #   sendWelcomeEmail: String
  #   cv: String
  #   cid: String
  #   promocode: String
  #   promocampaign: String
  #   skipValidations: String
  #   skipPassword: String
  #   locale: String
  #   channel: String
  # }

  input RegisterUserInput {
    userName: String!
    password: String!
    telephone: String!
    firstName: String!
    lastName: String
    challengeQuestion: String
    challengeAnswer: String
  }

  # input UserProfileParams {
  #   enablePaymentRetrival: Boolean
  # }
  # {
  #   customParams: {
  #     enablePaymentRetrival: ['true']
  #   }
  # }
  input UserProfileParams {
    # enablePaymentRetrival: Boolean
    shouldEnableAddressRetrival: Boolean
    shouldEnablePaymentRetrival: Boolean
  }

  # input UserLoginParams {
  #   type: String
  #   value: String
  #   partnerId: String
  #   authToken: String
  #   messageCampaignId: String
  #   promocode: String
  #   promocampaign: String
  #   locale: String
  #   channel: String
  # }

  input UserLoginInput {
    userName: String
    password: String
    authToken: String
    provider: String
    # userinfo: VerificationDetails
    # customparams: UserLoginParams
  }

  input AddAddressInput {
    address: AddressParams
    customParams: AddressInputParams
  }

  # @todo remove
  input AddressInputParams {
    locale: String
    messageCampaignId: String
  }

  input AddressCustomParams {
    validated: [String]
    override: [String]
    default: [Boolean]
  }

  input UpdateSecurityInput {
    userName: String
    challengeQuestion: String
    challengeAnswer: String
  }

  input ResetBySecurityQuestions {
    emailId: String
    challengeQuestion1: String
    challengeAnswer1: String
    # new password
    password: String
  }

  input UpdatePasswordParams {
    oldPassword: String
    newPassword: String
  }

  input UpdateProfileInput {
    firstName: String
    lastName: String
    userId: String
    status: String
  }

  input AddressesParams {
    type: String
    firstName: String
    lastName: String
    phone: String
    addressLine1: String
    addressLine2: String
    city: String
    country: String
    state: String
    postalCode: String
    customParams: AddressCustomParams
  }

  input AddressParams {
    addresses: [AddressesParams]
  }

  input removeAddressParams {
    addresses: [AddressToDelete]
  }

  input AddressToDelete {
    type: String
    id: String
  }

  input RemoveAddressInput {
    address: removeAddressParams
  }

  input UpdateShippingInput {
    address: UpdateShippingParams
    customParams: AddressInputParams
  }

  input UpdateShippingParams {
    addresses: [UpdateAddressesParams]
  }

  # @todo use extends
  input UpdateAddressesParams {
    id: String
    type: String
    firstName: String
    lastName: String
    phone: String
    addressLine1: String
    addressLine2: String
    city: String
    country: String
    state: String
    postalCode: String
    customParams: AddressCustomParams
  }

  type ShippingAddressResponse {
    responseCode: String
    responseMessage: String
    type: String
    properties: AddressStateProperties
  }

  type AddressStateProperties {
    state: RegistrationState
  }

  input ResetByEmailInput {
    email: String
    messageCampaignId: String
  }

  # @todo remove @todo rename
  input Custom {
    locale: String
    channel: String
    linkBAddrToCard: String
    messageCampaignId: String
    userId: String
  }

  input PaymentData {
    cardid: String
    firstname: String
    lastname: String
    cardnumber: String
    firstname: String
    lastname: String
    cardtype: String
    expirationmonth: String
    expirationyear: String
    identifier: String
    isdefault: String
    isvalidated: String
    lastfourdigits: String
    nameoncard: String
    type: String
  }

  input PaymentParams {
    customparams: Custom
    payment: PaymentData
  }

  input AddCardInput {
    cardType: String
    cardNumber: String
    expirationmonth: String
    expirationyear: String
    expiryDate: String
    firstName: String
    lastName: String
    makeDefaultCard: Boolean
    securityCode: String
  }

  input DeleteCardInput {
    creditId: String
    email: String
  }

  input ChangeDefaultCardInput {
    creditCardNumber: String
  }

  input ValidateByEmailInput {
    password: String
    resetParam: String
    confirmPassword: String
    messageCampaignId: String
  }

  input AddressInput {
    email: String
    firstName: String
    lastName: String
    addressLine1: String
    addressLine2: String
    city: String
    state: String
    zipCode: String
    country: String
    phoneNumber: String
    isDefault: Boolean
    type: String
  }

  type GetCardsResponse {
    type: String
    status: String
    cards: [CreditCardDetails]
  }

  type GetAddressesResponse {
    type: String
    status: String
    addressinfo: [UserAddressInfo]
  }

  input UserActivationInput {
    password: String
    activationParam: String
  }

  type UserActivation {
    id: String
    firstName: String
    lastName: String
    email: String
    phoneNumber: String
    dateOfBirth: String
    gender: String
    photo: String
  }

  type UserActivationState {
    status: String
  }

  type UserActivationProperties {
    state: UserActivationState
  }

  type UserActivationResponse {
    properties: UserActivationProperties
    sessionId: String
    customer: U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