Skip to main content

companyCrewAll

📖 Provides a paginated list of all crew members in the company.

Results can be filtered by status, last update date and search query (matching full name, email, unique ID or phone number).

🔭 Required scope: read:company_crew_data.

type Query {
companyCrewAll(
}

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

Examples​

Get crew updated after a date
VariableExample value
$time"2023-01-01T00:00:00Z"
Request
query Example($time: Time!) {
companyCrewAll(input: {filter: {updatedAfter: $time}}) {
paginatedList {
crewId
firstName
lastName
email
}
}
}
Response
{
"data": {
"companyCrewAll": {
"paginatedList": [
{
"crewId": 10001,
"firstName": "John",
"lastName": "Doe",
"email": "johndoe@example.com"
},
{
"crewId": 10002,
"firstName": "Jane",
"lastName": "Smith",
"email": "janesmith@example.com"
}
]
}
}
}

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

input CompanyCrewAllInput {
"""Filters company crew based on different criteria"""
filter: CompanyCrewAllFilter

"""Pagination page. Default value is 1"""
page: Int = 1

"""Number of items per page. Default value is 100 and maximum is 1000"""
perPage: Int = 100
}

input CompanyCrewAllFilter {
statusIn: [UserStatus!]
employmentTypeIn: [EmploymentType!]

"""
Filters crew by full_name (first_name + last_name) or email or unique_id or phone
"""
search: String
updatedAfter: 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
}

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

type CompanyCrewAllResponse {
"""Paginated list of returned crew."""
paginatedList: [CompanyCrewInList!]!

"""Pagination pager with total count and current page"""
pager: Pager
}

"""
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!]!
}

"""A pagination Pager"""
type Pager {
"""Current pagination page"""
currentPage: Int!

"""Total number of pagination pages"""
pageCount: Int!

"""Maximum number of records per pagination page"""
perPage: Int!

"""Total number of records"""
totalCount: Int!
}

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!]!
}

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!
}

"""
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!]!
}

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

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

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 UserAlert {
id: Int!
text: String!
createdBy: CreatedBy
updatedAt: Time!
createdAt: Time!
}

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

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