shift_data

Members

# (static, constant) PostShift

Posts a shift.

Methods

# (static) DeleteShiftMaterials(shiftId, fileKey)

Deletes a single shift material.

Parameters:
Name Type Description
shiftId Object

The parent shift object of the file to be deleted.

fileKey string

The key of the file to be deleted.

# (static) GetMyShifts()

Fetches all user's shifts.

# (static) GetPostedShifts()

Fetches all posted shifts (excluding user's own shifts).

# (static) GetShifts()

Fetches shifts.

# (async, static) ReturnShift(shiftId)

Returns a shift.

Parameters:
Name Type Description
shiftId string

The object id of the shift.

# (async, static) TakeShift(shiftId)

Takes a shift.

Parameters:
Name Type Description
shiftId string

The object id of the shift.

# (async, static) UnpostShift(shiftId)

Unposts a shift.

Parameters:
Name Type Description
shiftId string

The object id of the shift.

# (static) UploadShiftMaterials(shiftId, file)

Uploads a single shift material.

Parameters:
Name Type Description
shiftId string

The object id of the shift.

file string

The file to be uploaded.