Assets

Assets overview

An asset may be an item needed to perform the service, e.g. specialized equipment.

Object types

Asset

type Asset {
	projectId: ID!
	assetId: ID!
	shortId: NonEmptyString!
	title: NonEmptyString!
	location: Location
	description: NonEmptyString
	slots: [Slot]
	media: [Media]
	labels: [NonEmptyString]
	createdAt: DateTime!
	updatedAt: DateTime!
}

Asset fields

Field nameValue typeNon-nullDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
shortId
NonEmptyString
true
title
NonEmptyString
true
location
Location
false
description
NonEmptyString
false
slots
[Slot]
false
media
[Media]
false
labels
[NonEmptyString]
false
createdAt
DateTime
true
The date and time when an asset was created.
updatedAt
DateTime
true
The date and time when an asset was updated.

AssetSlotStrategy

type AssetSlotStrategy {
	projectId: ID!
	assetId: ID!
	strategyId: ID!
	strategyType: StrategyType!
	discontinueStrategy: DiscontinueStrategy!
	dateTimeFrom: DateTime
	dateTimeTo: DateTime
	timeFrom: Time
	timeTo: Time
	daysOfWeek: [DayOfWeek]
	slotType: SlotType
	slotQuantity: NonNegativeInt
	slotDuration: Duration
	slotInterval: Duration
	createdAt: DateTime!
	updatedAt: DateTime!
}

AssetSlotStrategy fields

Field nameValue typeNon-nullDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
A globally-unique identifier.
strategyId
ID
true
A globally-unique identifier.
strategyType
StrategyType
true
discontinueStrategy
DiscontinueStrategy
true
dateTimeFrom
DateTime
false
dateTimeTo
DateTime
false
timeFrom
Time
false
timeTo
Time
false
daysOfWeek
[DayOfWeek]
false
slotType
SlotType
false
slotQuantity
NonNegativeInt
false
slotDuration
Duration
false
slotInterval
Duration
false
createdAt
DateTime
true
The date and time when an object was created.
updatedAt
DateTime
true
The date and time when an object was updated.

Queries

assets

assets(
	projectId: ID!
	locationId: ID
	limit: NonNegativeInt
	cursor: ID
): [Asset]

assets arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
locationId
ID
false
limit
NonNegativeInt
false
cursor
ID
false
🔑

Minimal role required: STAFF

assetsSearch

assetsSearch(
	projectId: ID!
	query: String!
	locationId: ID
): [Asset]

assetsSearch arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
query
String
true
locationId
ID
false
A globally-unique identifier.
🔑

Minimal role required: STAFF

assetSlotsStrategies

assetSlotsStrategies(
	projectId: ID!
	assetId: ID!
): [AssetSlotStrategy]

assetSlotsStrategies arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
A globally-unique identifier.
🔑

Minimal role required: ADMIN / APIADMIN

Mutations

assetCreate

assetCreate(
	projectId: ID!
	locationId: ID
	title: NonEmptyString
	description: NonEmptyString
	media: [MediaInput]
	labels: [NonEmptyString]
): Asset

assetCreate arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
locationId
ID
false
A globally-unique identifier.
title
NonEmptyString
false
description
NonEmptyString
false
media
[MediaInput]
false
labels
[NonEmptyString]
false
🔑

Minimal role required: MANAGER

assetUpdate

assetUpdate(
	projectId: ID!
	assetId: ID!
	locationId: ID
	title: NonEmptyString
	description: NonEmptyString
	media: [MediaInput]
	labels: [NonEmptyString]
): Asset

assetUpdate arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
A globally-unique identifier.
locationId
ID
false
A globally-unique identifier.
title
NonEmptyString
false
description
NonEmptyString
false
media
[MediaInput]
false
labels
[NonEmptyString]
false
🔑

Minimal role required: MANAGER

assetDelete

assetDelete(
	projectId: ID!
	assetId: ID!
): String

assetDelete arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
A globally-unique identifier.
🔑

Minimal role required: MANAGER

assetSlotCreate

assetSlotCreate(
	projectId: ID!
	assetId: ID!
	quantity: NonNegativeInt!
	dateTimeFrom: DateTime!
	dateTimeTo: DateTime!
	slotType: SlotType!
	slotGroupId: ID
	title: NonEmptyString
): Slot

assetSlotCreate arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
A globally-unique identifier.
quantity
NonNegativeInt
true
dateTimeFrom
DateTime
true
dateTimeTo
DateTime
true
slotType
SlotType
true
slotGroupId
ID
false
A globally-unique identifier.
title
NonEmptyString
false
🔑

Minimal role required: MANAGER

assetSlotUpdate

assetSlotUpdate(
	projectId: ID!
	assetId: ID!
	slotId: String!
	quantity: NonNegativeInt
	dateTimeFrom: DateTime
	dateTimeTo: DateTime
	slotType: SlotType
	title: NonEmptyString
	slotGroupId: ID
): Slot

assetSlotUpdate arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
slotId
ID
true
quantity
NonNegativeInt
false
dateTimeFrom
DateTime
false
dateTimeTo
DateTime
false
slotType
SlotType
false
title
NonEmptyString
false
slotGroupId
ID
false
🔑

Minimal role required: MANAGER

assetSlotDelete

assetSlotDelete(
	projectId: ID!
	assetId: ID!
	slotId: ID!
): String

assetSlotDelete arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
A globally-unique identifier.
slotId
ID
true
A globally-unique identifier.
🔑

Minimal role required: MANAGER

assetSlotStrategyCreate

assetSlotStrategyCreate(
	projectId: ID!
	assetId: ID!
	slotType: SlotType!
	slotQuantity: NonNegativeInt!
	slotDuration: Duration!
	slotInterval: Duration!
	strategyType: StrategyType!
	discontinueStrategy: DiscontinueStrategyInput!
	daysOfWeek: [DayOfWeek!]
	dateTimeFrom: DateTime
	dateTimeTo: DateTime
	timeFrom: Time
	timeTo: Time
): AssetSlotStrategy

assetSlotStrategyCreate arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
A globally-unique identifier.
slotType
NonNegativeInt
true
slotQuantity
ID
true
A globally-unique identifier.
slotDuration
Duration
true
slotInterval
Duration
true
strategyType
StrategyType
true
discontinueStrategy
DiscontinueStrategyInput
true
daysOfWeek
[DayOfWeek]
true
dateTimeFrom
DateTime
false
dateTimeTo
DateTime
false
timeFrom
Time
false
timeTo
Time
false
🔑

Minimal role required: ADMIN / APIADMIN

assetSlotStrategyDelete

assetSlotStrategyDelete(
	projectId: ID!
	assetId: ID!
	strategyId: ID!
): String

assetSlotStrategyDelete arguments

Field nameValue typeRequiredDescription
projectId
ID
true
A globally-unique identifier.
assetId
ID
true
A globally-unique identifier.
strategyId
ID
true
A globally-unique identifier.
🔑

Minimal role required: ADMIN / APIADMIN