Skip to main content

companyCrewOne

📖 Provides information about a specific crew member by their ID.

Either crewId or crewOid argument must be supplied.

🔭 Required scope: read:company_crew_data.

type Query {
companyCrewOne(
crewId: Int
crewOid: ObjectIDInput
}

⬆️ Interactive type overview. Click type names or +/- buttons to expand/collapse definitions.

📜 Partial schema that includes all types used in this operation.

input ObjectIDInput @oneOf {
"""Either ID or alias must be specified."""
id: String
alias: String
}

"""
Company Crew Data
Additionally to company crew data, have a lot of relational data.
"""
type CompanyCrew implements CompanyCrewData {
"""'crewId' is an alias to 'userId'"""
crewId: ID!
crewOid: ObjectID!
title: String!
firstName: String!
lastName: String!
email: String!
birthDay: Date
phone: String!
avatar: String!
gender: Gender!
status: UserStatus!
statusUpdatedAt: Time!
biography: String! @deprecated(reason: "Use profiles instead")
experience: String! @deprecated(reason: "Use profiles instead")
workCapacity: String! @deprecated(reason: "Use profiles instead")
employmentType: EmploymentType! @deprecated(reason: "Use profiles instead")
cv: String! @deprecated(reason: "Use profiles instead")
travelAbility: String! @deprecated(reason: "Use profiles instead")
disability: String! @deprecated(reason: "Use profiles instead")
linkedIdURL: String! @deprecated(reason: "Use profiles instead")
twitterURL: String! @deprecated(reason: "Use profiles instead")
facebookURL: String! @deprecated(reason: "Use profiles instead")
instagramURL: String! @deprecated(reason: "Use profiles instead")
uniqueId: String!
bankNumber: String!
sortCode: String!
taxCode: String!
city: String!
address: String!
address2: String!
postCode: String!
longitude: Float
latitude: Float
updatedAt: Time!
registeredAt: Time
countrySpecificData: CountrySpecificData!
alerts: [UserAlert] @deprecated(reason: "Use notes instead")
notes: [CrewNote]
firstJobStartDate: Date
profiles: [ProfileCrewData!]!
roleTypes: [String]!
tags: [Tag!]!
}

interface CompanyCrewData {
crewId: ID!
crewOid: ObjectID!
title: String!
firstName: String!
lastName: String!
email: String!
birthDay: Date
phone: String!
avatar: String!
gender: Gender!
status: UserStatus!
statusUpdatedAt: Time!
biography: String! @deprecated(reason: "Use profiles instead")
experience: String! @deprecated(reason: "Use profiles instead")
workCapacity: String! @deprecated(reason: "Use profiles instead")
employmentType: EmploymentType! @deprecated(reason: "Use profiles instead")
cv: String! @deprecated(reason: "Use profiles instead")
travelAbility: String! @deprecated(reason: "Use profiles instead")
disability: String! @deprecated(reason: "Use profiles instead")
linkedIdURL: String! @deprecated(reason: "Use profiles instead")
twitterURL: String! @deprecated(reason: "Use profiles instead")
facebookURL: String! @deprecated(reason: "Use profiles instead")
instagramURL: String! @deprecated(reason: "Use profiles instead")
uniqueId: String!
bankNumber: String!
sortCode: String!
taxCode: String!
city: String!
address: String!
address2: String!
postCode: String!
longitude: Float
latitude: Float
updatedAt: Time!
registeredAt: Time
countrySpecificData: CountrySpecificData!
firstJobStartDate: Date
profiles: [ProfileCrewData!]!
roleTypes: [String]!
tags: [Tag!]!
}

type CountrySpecificData {
countryId: Int!
code: String!
name: String!
values: [CrewCountryValue!]!
}

type CrewNote {
oid: ObjectID!
text: String!
isAlert: Boolean!
createdBy: CreatedBy
updatedAt: Time!
createdAt: Time!
}

"""
Crew emplyment type in a company.
DEPRECATED: employment types are now replaced by profiles
Works in legacy mode: employment type is now defined from profile name
To be removed in the future.
"""
enum EmploymentType {
INCOMPLETE
EMPLOYED
SELF_EMPLOYED
}

enum Gender {
MALE
FEMALE
OTHER
}

type ObjectID {
id: String!
alias: String
type: ObjectType!
}

type ProfileCrewData {
profileId: ID!
profileOid: ObjectID!
name: String!

"""Data types of the profile, including from global sections."""
dataTypes: [CrewDataType!]!
}

type Tag {
id: Int!
oid: ObjectID!
name: String!
}

type UserAlert {
id: Int!
text: String!
createdBy: CreatedBy
updatedAt: Time!
createdAt: Time!
}

"""User Status is a specific company"""
enum UserStatus {
APPLICATION_IN_PROGRESS
APPLICANT
APPROVED
ACTIVE
PAUSED
WAITING_LIST
INVITED
DECLINED
SUSPENDED
DELETED
}

"""
Company Crew Data
Is a combination of Company Specific and Shared Crew Data
"""
type CompanyCrewInList implements CompanyCrewData {
"""'crewId' is an alias to 'userId'"""
crewId: ID!
crewOid: ObjectID!
title: String!
firstName: String!
lastName: String!
email: String!
birthDay: Date
phone: String!
avatar: String!
gender: Gender!
status: UserStatus!
statusUpdatedAt: Time!
biography: String! @deprecated(reason: "Use profiles instead")
experience: String! @deprecated(reason: "Use profiles instead")
workCapacity: String! @deprecated(reason: "Use profiles instead")
employmentType: EmploymentType! @deprecated(reason: "Use profiles instead")
cv: String! @deprecated(reason: "Use profiles instead")
travelAbility: String! @deprecated(reason: "Use profiles instead")
disability: String! @deprecated(reason: "Use profiles instead")
linkedIdURL: String! @deprecated(reason: "Use profiles instead")
twitterURL: String! @deprecated(reason: "Use profiles instead")
facebookURL: String! @deprecated(reason: "Use profiles instead")
instagramURL: String! @deprecated(reason: "Use profiles instead")
uniqueId: String!
bankNumber: String!
sortCode: String!
taxCode: String!
city: String!
address: String!
address2: String!
postCode: String!
longitude: Float
latitude: Float
updatedAt: Time!
registeredAt: Time
countrySpecificData: CountrySpecificData!
firstJobStartDate: Date
profiles: [ProfileCrewData!]!
roleTypes: [String]!
tags: [Tag!]!
}

type CreatedBy {
userId: Int!
userOid: ObjectID!
firstName: String!
lastName: String!
avatar: String!
}

type CrewCountryValue {
id: Int!
name: String!
value: String!
}

type CrewDataType {
id: ID!
oid: ObjectID!
uniqueId: String
category: DTCategory!
type: DTType!
title: String!
description: String!
answer: CrewAnswer
}

enum ObjectType {
BOARD
JOB
JOB_ROLE
CREW_JOB
JOB_GROUP
JOB_LABEL
MULTI_DAY_JOB
BOARD_PUBLISH
USER
PROFILE
DATA_TYPE
DATA_TYPE_OPTION
CREW_TAG
PAYMENT_REPORT
CREW_NOTE
}

union CrewAnswer = CrewAnswerValue | CrewAnswerValues

enum DTCategory {
ACCOUNT_DATA
DATA
CONTENT
}

enum DTType {
SHORT_ANSWER
PARAGRAPH
FILE_UPLOAD
DROPDOWN
MULTIPLE_CHOICE
CHECKBOXES
SIMPLE_AGREEMENT
EMAIL
PHONE_NUMBER
DATE_PICKER
ADDRESS
WEB_LINK
SCORING
VIDEO_DATA
}

type CrewAnswerValue {
value: String!
}

type CrewAnswerValues {
values: [CrewAnswerValue]!
}

"""The `Boolean` scalar type represents `true` or `false`."""
scalar Boolean

"""Date is a just a string like '2019-03-14'"""
scalar Date

"""
The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).
"""
scalar Float

"""
The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.
"""
scalar ID

"""
The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
"""
scalar Int

"""
The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
"""
scalar String

"""
Datetime string in ISO 8601 format like "2020-11-18T12:21:14+00:00" or "2020-11-18T12:21:14Z"
"""
scalar Time