Repository URL to install this package:
|
Version:
7.1.39 ▾
|
"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 {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: UpdateCardProperties
responseCode: String
responseMessage: String
}
type CreditCardAddressInfo {
addressid: String
}
type GuestProfileResponse {
type: String
}
# @@standardize @@todo not common standard address
input GuestProfileAddressDetails {
firstName: String!
lastName: String!
# @todo telephone @deprecated
phone: String!
telephone: String
email: String!
type: String = "email"
postalCode: String!
}
# @todo - add expirationyear expirationmonth => camelCase
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]
}
# @@standardize
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]
}
# @@standardize
type UserProfileInfo {
userid: ID
email: String
username: String
firstname: String
lastname: String
userphoto: String
# @todo telephone
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
}
# @@standardize
type UserResponseProperties {
creditcardinfo: UserCreditCardInfo
state: UserState!
userinfo: [UserProfileInfo]
accounts: UserAccountInfo
}
# @@standardize
type UserResponse {
sessionId: String
cookies: [String]
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: UserResponseProperties
responseCode: String
responseMessage: 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
cookies: [String]
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: RegistrationProperties
responseCode: String
responseMessage: 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
}
# @@standardize
type ResetPasswordResponse {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: ResetPasswordProperties
responseCode: String
responseMessage: String
}
type LogOutProperties {
state: LogOutState
userinfo: UserIdParams
}
type LogOut {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: LogOutProperties
responseCode: String
responseMessage: 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
# @todo telephone
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 {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: GetSecurityQuestionProperties
responseCode: String
responseMessage: String
}
type SecurityQuestionsState {
status: String
}
type UserIdProperty {
userid: String!
}
type SecurityQuestionsProperties {
state: SecurityQuestionsState
userinfo: UserIdProperty
}
type ResetBySecurityQuestionsResponse {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: SecurityQuestionsProperties
responseCode: String
responseMessage: String
}
type UpdatePasswordProperties {
state: StateProperties
userinfo: UserIdProperty
}
type UpdatePasswordResponse {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: UpdatePasswordProperties
responseCode: String
responseMessage: String
}
type PaymentState {
status: String
}
type PaymentProperties {
state: PaymentState
}
type AddCardResponse {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: PaymentProperties
responseCode: String
responseMessage: String
}
type DeleteCardResponse {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: PaymentProperties
responseCode: String
responseMessage: String
}
type ChangeDefaultState {
status: String
}
type ChangeDefaultPaymentProperties {
state: ChangeDefaultState
}
type ChangeDefaultCardResponse {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: ChangeDefaultPaymentProperties
responseCode: String
responseMessage: String
}
# @@standardize
input RegisterUserInput {
userName: String!
password: String!
telephone: String!
firstName: String!
lastName: String
challengeQuestion: String
challengeAnswer: String
}
input UserLoginInput {
userName: String
password: String
authToken: String
provider: String
}
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
}
type ShippingAddressResponse {
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
properties: AddressStateProperties
responseCode: String
responseMessage: String
}
type AddressStateProperties {
state: RegistrationState
}
input ResetByEmailInput {
email: String
# @deprecated @security
messageCampaignId: String
}
# @todo remove @todo rename
input Custom {
locale: String
channel: String
# @name @invalid
linkBAddrToCard: String
# @deprecated @security
messageCampaignId: String
userId: String
}
input ValidateByEmailInput {
password: String
resetParam: String
confirmPassword: String
# @deprecated @security
messageCampaignId: String
}
type GetCardsResponse {
cards: [CreditCardDetails]
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
status: String
responseCode: String
responseMessage: String
}
type GetAddressesResponse {
addressinfo: [UserAddressInfo]
# @deprecated - removed
type: String
# @deprecated - use responseCode + responseMessage
status: String
responseCode: String
responseMessage: String
}
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: UserActivation
cookies: [String]
}
type DeleteUserAccountResponse {
message: String
}
`;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXNlci5ncmFwaHFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2dyYXBocWwtbW9kdWxlcy91c2VyL3NjaGVtYS9Vc2VyLmdyYXBocWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBbUM7QUFFbkMsa0JBQWUsbUJBQUcsQ0FBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs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