maptekblastlogic.models package

Contains all the data models used in inputs/outputs

class maptekblastlogic.models.BackfillingEntryActual(crew_start_time, crew_end_time, crew_id=<maptekblastlogic.types.Unset object>, crew_dip_depth_before=<maptekblastlogic.types.Unset object>, crew_water_length_before=<maptekblastlogic.types.Unset object>, crew_wet_sides_length_before=<maptekblastlogic.types.Unset object>, crew_temperature_before=<maptekblastlogic.types.Unset object>, was_backfilled=<maptekblastlogic.types.Unset object>, crew_dip_depth_after=<maptekblastlogic.types.Unset object>, crew_water_length_after=<maptekblastlogic.types.Unset object>, crew_wet_sides_length_after=<maptekblastlogic.types.Unset object>, crew_comment=<maptekblastlogic.types.Unset object>, supervisor_id=<maptekblastlogic.types.Unset object>, supervisor_start_time=<maptekblastlogic.types.Unset object>, supervisor_end_time=<maptekblastlogic.types.Unset object>, supervisor_dip_depth_after=<maptekblastlogic.types.Unset object>, supervisor_water_length_after=<maptekblastlogic.types.Unset object>, supervisor_wet_sides_length_after=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Measurements recorded from a backfilling activity.

Parameters:
crew_start_time

When this backfilling activity started (UTC).

Type:

datetime.datetime

crew_end_time

When this backfilling activity was completed (UTC). Must be greater than or equal to ‘crewStartTime’.

Type:

datetime.datetime

crew_id

The unique identifier of the crew that performed this backfilling. Can be null if unknown.

Type:

Union[None, Unset, int]

crew_dip_depth_before

Depth of the hole before backfilling according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_water_length_before

Depth of the water in the hole before backfilling according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_wet_sides_length_before

Length of the wet sides of the hole before backfilling according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_temperature_before

Temperature of the hole before backfilling according to the crew (Kelvin). Can be null if unknown.

Type:

Union[None, Unset, float]

was_backfilled

Whether or not the hole was backfilled.

Type:

Union[None, Unset, bool]

crew_dip_depth_after

Depth of the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.

Type:

Union[None, Unset, float]

crew_water_length_after

Depth of the water in the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.

Type:

Union[None, Unset, float]

crew_wet_sides_length_after

Length of the wet sides of the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.

Type:

Union[None, Unset, float]

crew_comment

Comments about the hole during the backfilling activity. Can be null. Maximum 200 characters.

Type:

Union[None, Unset, str]

supervisor_id

The unique identifier of the supervisor responsible for supervising this backfilling activity. Can be null if unknown.

Type:

Union[None, Unset, int]

supervisor_start_time

When the supervisor checked started (UTC). Required when ‘supervisorEndTime’ has a value.

Type:

Union[None, Unset, datetime.datetime]

supervisor_end_time

When the supervisor checked finished (UTC). Required when ‘supervisorStartTime’ has a value.

Type:

Union[None, Unset, datetime.datetime]

supervisor_dip_depth_after

Depth of the hole after backfilling according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_water_length_after

Depth of water in the hole after backfilling according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_wet_sides_length_after

Length of the wet sides in the hole after backfilling according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_start_time: datetime
crew_end_time: datetime
crew_id: None | Unset | int
crew_dip_depth_before: None | Unset | float
crew_water_length_before: None | Unset | float
crew_wet_sides_length_before: None | Unset | float
crew_temperature_before: None | Unset | float
was_backfilled: None | Unset | bool
crew_dip_depth_after: None | Unset | float
crew_water_length_after: None | Unset | float
crew_wet_sides_length_after: None | Unset | float
crew_comment: None | Unset | str
supervisor_id: None | Unset | int
supervisor_start_time: None | Unset | datetime
supervisor_end_time: None | Unset | datetime
supervisor_dip_depth_after: None | Unset | float
supervisor_water_length_after: None | Unset | float
supervisor_wet_sides_length_after: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.BackfillingEntryModel(hole_id, plan, backfilling_entry_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, cancelled_time=<maptekblastlogic.types.Unset object>, actual=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a backfilling activity on a hole.

Parameters:
hole_id

The ID of the hole this backfilling activity relates to. Cannot be edited.

Type:

int

plan

Instructions on how a backfilling activity should be performed.

Type:

BackfillingEntryPlan

backfilling_entry_id

The unique identifier of this backfilling entry. Ignored when creating. Cannot be edited.

Type:

Union[None, Unset, int]

etag

The backfilling entry’s current ETag. Required when editing in bulk.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this backfilling entry. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_by

Username of the person who last updated this backfilling entry. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this backfilling entry was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

created_time

When this backfilling entry was created (UTC). Ignored when editing. Defaults to current time when not supplied.

Type:

Union[None, Unset, datetime.datetime]

cancelled_time

When this activity was cancelled (UTC). Can be null to indicate not cancelled. ‘actual’ must be null when ‘cancelledTime’ is not null.

Type:

Union[None, Unset, datetime.datetime]

actual

Measurements recorded from the backfilling activity. ‘cancelledTime’ must be null when ‘actual’ is not null.

Type:

Union[‘BackfillingEntryActual’, None, Unset]

hole_id: int
plan: BackfillingEntryPlan
backfilling_entry_id: None | Unset | int
etag: None | Unset | str
created_by: None | Unset | str
last_modified_by: None | Unset | str
last_modified_time: None | Unset | datetime
created_time: None | Unset | datetime
cancelled_time: None | Unset | datetime
actual: BackfillingEntryActual | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.BackfillingEntryPlan(target_depth=<maptekblastlogic.types.Unset object>, crew_check_required=<maptekblastlogic.types.Unset object>, supervisor_check_required=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Instructions on how a backfilling activity should be performed.

Parameters:
target_depth

The desired depth of the hole after backfilling (Meters). Cannot be negative.

Type:

Union[None, Unset, float]

crew_check_required

Whether or not the hole requires re-dipping after backfilling by the crew.

Type:

Union[Unset, bool]

supervisor_check_required

Whether or not the hole requires re-dipping after backfilling by the supervisor.

Type:

Union[Unset, bool]

target_depth: None | Unset | float
crew_check_required: Unset | bool
supervisor_check_required: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.BlastModel(blast_name, blast_id=<maptekblastlogic.types.Unset object>, status=<maptekblastlogic.types.Unset object>, fired_time=<maptekblastlogic.types.Unset object>, abandoned_time=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A collection of holes designed to be detonated together.

Parameters:
blast_name

The name of this blast.

Type:

str

blast_id

The unique identifier of this blast.

Type:

Union[Unset, int]

status
Type:

Union[Unset, BlastStatus]

fired_time

When this blast was fired (UTC). Null indicates the blast has not been fired.

Type:

Union[None, Unset, datetime.datetime]

abandoned_time

When this blast was abandoned (UTC). Null indicates the blast has not been abandoned.

Type:

Union[None, Unset, datetime.datetime]

blast_name: str
blast_id: Unset | int
status: Unset | BlastStatus
fired_time: None | Unset | datetime
abandoned_time: None | Unset | datetime
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.BlastStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: str, Enum

ABANDONED = 'Abandoned'
ACTIVE = 'Active'
FIRED = 'Fired'
SUSPENDED = 'Suspended'
class maptekblastlogic.models.ChargePlanDeckModel(product_id=<maptekblastlogic.types.Unset object>, order=<maptekblastlogic.types.Unset object>, length=<maptekblastlogic.types.Unset object>, mass=<maptekblastlogic.types.Unset object>, quantity=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of how a deck is planned to be loaded.

Parameters:
product_id

The ID of the product to use in this deck.

Type:

Union[Unset, int]

order

The order this deck sits in this hole. Decks are numbered from the bottom up, with the bottom deck having order ‘1’.

Type:

Union[Unset, int]

length

The length of this deck measured along the length of the hole (Meters).

Type:

Union[Unset, float]

mass

For products where the mass is known, the total mass of the deck (Kilograms).

Type:

Union[None, Unset, float]

quantity

For packaged products, the number of packages or units used in this deck.

Type:

Union[None, Unset, float]

product_id: Unset | int
order: Unset | int
length: Unset | float
mass: None | Unset | float
quantity: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.ChargePlanModel(hole_id=<maptekblastlogic.types.Unset object>, decks=<maptekblastlogic.types.Unset object>)[source]

Bases: object

The current plan of how a hole should be charged.

Parameters:
hole_id

The ID of the hole this charge plan relates to.

Type:

Union[Unset, int]

decks

The decks planned to be loaded into the hole.

Type:

Union[List[‘ChargePlanDeckModel’], None, Unset]

hole_id: Unset | int
decks: List[ChargePlanDeckModel] | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.CrewModel(crew_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, is_active=<maptekblastlogic.types.Unset object>, is_dipping_crew=<maptekblastlogic.types.Unset object>, is_backfilling=<maptekblastlogic.types.Unset object>, is_charging_crew=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A crew and their responsibilities.

Parameters:
crew_id

The unique identifier of this crew.

Type:

Union[Unset, int]

etag

The crew’s current ETag. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this crew. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_time

When this crew was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

last_modified_by

Username of the person who last updated this crew. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this crew was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

name

The name of this crew.

Type:

Union[None, Unset, str]

is_active

Whether this crew is active.

Type:

Union[Unset, bool]

is_dipping_crew

Whether this crew can perform dipping duties.

Type:

Union[Unset, bool]

is_backfilling

Whether this crew can perform backfilling duties.

Type:

Union[Unset, bool]

is_charging_crew

Whether this crew can perform charging duties.

Type:

Union[Unset, bool]

crew_id: Unset | int
etag: None | Unset | str
created_by: None | Unset | str
created_time: None | Unset | datetime
last_modified_by: None | Unset | str
last_modified_time: None | Unset | datetime
name: None | Unset | str
is_active: Unset | bool
is_dipping_crew: Unset | bool
is_backfilling: Unset | bool
is_charging_crew: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.DensityTableRow(depth=<maptekblastlogic.types.Unset object>, average_density=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Parameters:
depth
Type:

Union[Unset, float]

average_density
Type:

Union[None, Unset, float]

depth: Unset | float
average_density: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.DippingEntryActualModel(crew_start_time, crew_end_time, crew_id=<maptekblastlogic.types.Unset object>, crew_depth=<maptekblastlogic.types.Unset object>, crew_water_length=<maptekblastlogic.types.Unset object>, crew_wet_sides_length=<maptekblastlogic.types.Unset object>, crew_temperature=<maptekblastlogic.types.Unset object>, crew_comment=<maptekblastlogic.types.Unset object>, supervisor_id=<maptekblastlogic.types.Unset object>, supervisor_start_time=<maptekblastlogic.types.Unset object>, supervisor_end_time=<maptekblastlogic.types.Unset object>, supervisor_depth=<maptekblastlogic.types.Unset object>, supervisor_water_length=<maptekblastlogic.types.Unset object>, supervisor_wet_sides_length=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Measurements recorded from dipping holes.

Parameters:
crew_start_time

When the crew stared dipping (UTC).

Type:

datetime.datetime

crew_end_time

When the crew completed dipping (UTC). Must be greater than or equal to ‘crewStartTime’.

Type:

datetime.datetime

crew_id

Id of the crew that performed the dipping activity. Can be null if unknown.

Type:

Union[None, Unset, int]

crew_depth

Depth of the hole according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_water_length

Depth of the water in the hole according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_wet_sides_length

Length of the wet sides in the hole according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_temperature

Temperature of the hole according to the crew (Kelvin). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_comment

Comments about the hole during the dipping activity. Can be null.

Type:

Union[None, Unset, str]

supervisor_id

Id of the person responsible for supervising this dipping activity. Can be null if unknown.

Type:

Union[None, Unset, int]

supervisor_start_time

When the supervisor check started (UTC). Cannot be null if ‘supervisorEndTime’ is not null.

Type:

Union[None, Unset, datetime.datetime]

supervisor_end_time

When the supervisor check finished (UTC). Cannot be null if ‘supervisorStartTime’ is not null. If not null, must be greater than or equal to ‘supervisorStartTime’.

Type:

Union[None, Unset, datetime.datetime]

supervisor_depth

Depth of the hole according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_water_length

Length of the wet sides of the hole according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_wet_sides_length

Length of the wet sides in the hole according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_start_time: datetime
crew_end_time: datetime
crew_id: None | Unset | int
crew_depth: None | Unset | float
crew_water_length: None | Unset | float
crew_wet_sides_length: None | Unset | float
crew_temperature: None | Unset | float
crew_comment: None | Unset | str
supervisor_id: None | Unset | int
supervisor_start_time: None | Unset | datetime
supervisor_end_time: None | Unset | datetime
supervisor_depth: None | Unset | float
supervisor_water_length: None | Unset | float
supervisor_wet_sides_length: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.DippingEntryModel(hole_id, plan, dipping_entry_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, cancelled_time=<maptekblastlogic.types.Unset object>, actual=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a dipping activity on a hole.

Parameters:
hole_id

The ID of the hole this dipping activity relates to. Cannot be edited.

Type:

int

plan

Instructions on how to dip the holes.

Type:

DippingEntryPlanModel

dipping_entry_id

The unique identifier of this dipping entry. Ignored when creating and editing. Cannot be edited.

Type:

Union[None, Unset, int]

etag

The dipping entry’s current ETag. Required when editing in bulk.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this dipping entry. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_by

Username of the person who last updated this dipping entry. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this dipping entry was last updated (UTC). Ignored when creating and editing.

Type:

Union[Unset, datetime.datetime]

created_time

When this dipping entry was created (UTC). Ignored when editing. Defaults to current time when not supplied.

Type:

Union[None, Unset, datetime.datetime]

cancelled_time

When this activity was cancelled (UTC). Can be null to indicate not cancelled. ‘actual’ must be null when ‘cancelledTime’ is not null.

Type:

Union[None, Unset, datetime.datetime]

actual

Measurements recorded from dipping the holes. ‘cancelledTime’ must be null when ‘actual’ is not null.

Type:

Union[‘DippingEntryActualModel’, None, Unset]

hole_id: int
plan: DippingEntryPlanModel
dipping_entry_id: None | Unset | int
etag: None | Unset | str
created_by: None | Unset | str
last_modified_by: None | Unset | str
last_modified_time: Unset | datetime
created_time: None | Unset | datetime
cancelled_time: None | Unset | datetime
actual: DippingEntryActualModel | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.DippingEntryPlanModel(last_known_depth=<maptekblastlogic.types.Unset object>, supervisor_check_required=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Instructions on how to dip the holes.

Parameters:
last_known_depth

The last known depth of the hole when this entry was created (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_check_required

Whether the supervisor is required to validate the dip measurements.

Type:

Union[Unset, bool]

last_known_depth: None | Unset | float
supervisor_check_required: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.ErrorModel(title=<maptekblastlogic.types.Unset object>, details=<maptekblastlogic.types.Unset object>, errors=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A structure of error messages given when a request could not be fulfilled.

Parameters:
title
Type:

Union[None, Unset, str]

details
Type:

Union[None, Unset, str]

errors
Type:

Union[List[str], None, Unset]

title: None | Unset | str
details: None | Unset | str
errors: List[str] | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.HoleGeometry(collar=<maptekblastlogic.types.Unset object>, angle=<maptekblastlogic.types.Unset object>, bearing=<maptekblastlogic.types.Unset object>, depth=<maptekblastlogic.types.Unset object>, diameter=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Parameters:
collar

The position of the hole.

Type:

Union[‘Point’, None, Unset]

angle

The hole angle from vertical towards the direction of the bearing (Degrees).

Type:

Union[None, Unset, float]

bearing

The compass bearing the hole is pointing. Clockwise from north (Degrees).

Type:

Union[None, Unset, float]

depth

The depth of the hole (Meters).

Type:

Union[None, Unset, float]

diameter

The diameter of the hole (Meters).

Type:

Union[None, Unset, float]

collar: Point | None | Unset
angle: None | Unset | float
bearing: None | Unset | float
depth: None | Unset | float
diameter: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.HoleModel(hole_id=<maptekblastlogic.types.Unset object>, blast_id=<maptekblastlogic.types.Unset object>, hole_name=<maptekblastlogic.types.Unset object>, row=<maptekblastlogic.types.Unset object>, echelon=<maptekblastlogic.types.Unset object>, status=<maptekblastlogic.types.Unset object>, design=<maptekblastlogic.types.Unset object>, last_known=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a hole.

Parameters:
hole_id

The unique identifier of this hole.

Type:

Union[Unset, int]

blast_id

The ID of the blast this hole belongs to.

Type:

Union[Unset, int]

hole_name

The name of this hole.

Type:

Union[None, Unset, str]

row

The row this hole sits in. Can be null.

Type:

Union[None, Unset, str]

echelon

The echelon this hole sits in. Can be null.

Type:

Union[None, Unset, int]

status

The status of the hole.

Type:

Union[None, Unset, str]

design

The hole geometry as designed.

Type:

Union[‘HoleGeometry’, None, Unset]

last_known

The hole geometry according to most recent data.

Type:

Union[‘HoleGeometry’, None, Unset]

hole_id: Unset | int
blast_id: Unset | int
hole_name: None | Unset | str
row: None | Unset | str
echelon: None | Unset | int
status: None | Unset | str
design: HoleGeometry | None | Unset
last_known: HoleGeometry | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.LoadedDeckModel(start_time, end_time, product_id, top_depth, bottom_depth, loaded_deck_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, hole_id=<maptekblastlogic.types.Unset object>, is_deleted=<maptekblastlogic.types.Unset object>, shot_firer_id=<maptekblastlogic.types.Unset object>, crew_id=<maptekblastlogic.types.Unset object>, operator_id=<maptekblastlogic.types.Unset object>, loading_truck_id=<maptekblastlogic.types.Unset object>, comment=<maptekblastlogic.types.Unset object>, mass=<maptekblastlogic.types.Unset object>, quantity=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Describes the loading of an individual deck. This is raw data collected from the field that has not been validated and reconciled in BlastLogic Desktop. As such, decks may overlap with each other. This data should not be relied upon as the current state of the hole.

Attributes:

start_time (datetime.datetime): When charging this deck began (UTC). end_time (datetime.datetime): When charging this deck completed (UTC). Must be greater than or equal to

‘startTime’.

product_id (int): The ID of the product used in this deck top_depth (float): The depth of the top of this deck (Metres). Can be null if unknown. bottom_depth (float): The depth of the bottom of this deck (Metres). Can be null if unknown. loaded_deck_id (Union[None, Unset, int]): The unique identifier if this loaded deck. Ignored when creating.

Cannot be edited.

etag (Union[None, Unset, str]): The loaded deck’s current ETag. Ignored when creating and editing. created_by (Union[None, Unset, str]): Username of the person who created this loaded deck. Ignored when creating

and editing.

created_time (Union[Unset, datetime.datetime]): When this loaded deck was created (UTC). Ignored when creating

and editing.

last_modified_by (Union[None, Unset, str]): Username of the person who last updated this loaded deck. Ignored

when creating and editing.

last_modified_time (Union[Unset, datetime.datetime]): When this loaded deck was last updated (UTC). Ignored when

creating and editing.

hole_id (Union[None, Unset, int]): The ID of the hole this loaded deck relates to. Cannot be edited. is_deleted (Union[Unset, bool]): Whether this loaded deck is deleted. Deleted loaded decks are considered

erroneous and all details are ignored.

shot_firer_id (Union[None, Unset, int]): The ID of the person responsible for firing the blast. Can be null if

unknown.

crew_id (Union[None, Unset, int]): The ID of the crew that loaded this deck. Can be null if unknown. operator_id (Union[None, Unset, int]): The ID of the equipment operator. Can be null if unknown. loading_truck_id (Union[None, Unset, int]): The ID of the loading truck used to load this deck. Can be null if

unknown.

comment (Union[None, Unset, str]): Comments from the crew or operator about this loaded deck. mass (Union[None, Unset, float]): The mass of the product that was loaded into the hole (Kilograms). Cannot be

negative. Can be null if unknown.

quantity (Union[None, Unset, int]): The number of product loaded into the hole. Cannot be negative. Can be null

if unknown.

Parameters:
start_time: datetime
end_time: datetime
product_id: int
top_depth: float
bottom_depth: float
loaded_deck_id: None | Unset | int
etag: None | Unset | str
created_by: None | Unset | str
created_time: Unset | datetime
last_modified_by: None | Unset | str
last_modified_time: Unset | datetime
hole_id: None | Unset | int
is_deleted: Unset | bool
shot_firer_id: None | Unset | int
crew_id: None | Unset | int
operator_id: None | Unset | int
loading_truck_id: None | Unset | int
comment: None | Unset | str
mass: None | Unset | float
quantity: None | Unset | int
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.LoadingTruckModel(loading_truck_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, active=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A truck used to load blast products into holes.

Parameters:
loading_truck_id

The unique identifier of this loading truck.

Type:

Union[Unset, int]

etag

The loading truck’s current ETag. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this loading truck. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_time

When this loading truck was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

last_modified_by

Username of the person who last updated this loading truck. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this loading truck was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

name

The name of this loading truck.

Type:

Union[None, Unset, str]

active

Whether this loading truck is active.

Type:

Union[Unset, bool]

loading_truck_id: Unset | int
etag: None | Unset | str
created_by: None | Unset | str
created_time: None | Unset | datetime
last_modified_by: None | Unset | str
last_modified_time: None | Unset | datetime
name: None | Unset | str
active: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.PersonModel(personnel_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, is_backfilling_supervisor=<maptekblastlogic.types.Unset object>, is_dipping_supervisor=<maptekblastlogic.types.Unset object>, is_loading_truck_operator=<maptekblastlogic.types.Unset object>, is_shot_firer=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A person and their responsibilities.

Parameters:
personnel_id

The unique identifier of this person.

Type:

Union[Unset, int]

etag

The person’s ETag. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this person. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_time

When this person was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

last_modified_by

Username of the person who last updated this person. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this person was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

name

The name of this person.

Type:

Union[None, Unset, str]

is_backfilling_supervisor

Whether this person can supervise backfilling activities.

Type:

Union[Unset, bool]

is_dipping_supervisor

Whether this person can supervise dipping activities.

Type:

Union[Unset, bool]

is_loading_truck_operator

Whether this person can operate loading trucks.

Type:

Union[Unset, bool]

is_shot_firer

Whether this person can perform shotfirer duties.

Type:

Union[Unset, bool]

personnel_id: Unset | int
etag: None | Unset | str
created_by: None | Unset | str
created_time: None | Unset | datetime
last_modified_by: None | Unset | str
last_modified_time: None | Unset | datetime
name: None | Unset | str
is_backfilling_supervisor: Unset | bool
is_dipping_supervisor: Unset | bool
is_loading_truck_operator: Unset | bool
is_shot_firer: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.Point(x=<maptekblastlogic.types.Unset object>, y=<maptekblastlogic.types.Unset object>, z=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Parameters:
x
Type:

Union[None, Unset, float]

y
Type:

Union[None, Unset, float]

z
Type:

Union[None, Unset, float]

x: None | Unset | float
y: None | Unset | float
z: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.ProductModel(product_id=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, description=<maptekblastlogic.types.Unset object>, integration_id=<maptekblastlogic.types.Unset object>, type=<maptekblastlogic.types.Unset object>, open_cup_density=<maptekblastlogic.types.Unset object>, energy_density=<maptekblastlogic.types.Unset object>, density_table=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A consumable product used to blast holes.

Parameters:
product_id

The unique identifier of this product.

Type:

Union[Unset, int]

name

The name of this product.

Type:

Union[None, Unset, str]

description

The description of this product. Can be null

Type:

Union[None, Unset, str]

integration_id

The identifier to help match this product in another system. Can be null.

Type:

Union[None, Unset, str]

type

The type of this product.

Type:

Union[None, Unset, str]

open_cup_density

The open cup density of this product (kg/m3). Can be null.

Type:

Union[None, Unset, float]

energy_density

The energy released when this product is detonated (J/kg). Can be null.

Type:

Union[None, Unset, float]

density_table

The density of this product at specific depths. Can be null.

Type:

Union[List[‘DensityTableRow’], None, Unset]

product_id: Unset | int
name: None | Unset | str
description: None | Unset | str
integration_id: None | Unset | str
type: None | Unset | str
open_cup_density: None | Unset | float
energy_density: None | Unset | float
density_table: List[DensityTableRow] | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

class maptekblastlogic.models.SiteModel(site_code, name, is_active=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a site.

Parameters:
site_code

The code of the site.

Type:

str

name

The name of the site.

Type:

str

is_active

Whether this site is active.

Type:

Union[Unset, bool]

site_code: str
name: str
is_active: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

Submodules

maptekblastlogic.models.backfilling_entry_actual module

class maptekblastlogic.models.backfilling_entry_actual.BackfillingEntryActual(crew_start_time, crew_end_time, crew_id=<maptekblastlogic.types.Unset object>, crew_dip_depth_before=<maptekblastlogic.types.Unset object>, crew_water_length_before=<maptekblastlogic.types.Unset object>, crew_wet_sides_length_before=<maptekblastlogic.types.Unset object>, crew_temperature_before=<maptekblastlogic.types.Unset object>, was_backfilled=<maptekblastlogic.types.Unset object>, crew_dip_depth_after=<maptekblastlogic.types.Unset object>, crew_water_length_after=<maptekblastlogic.types.Unset object>, crew_wet_sides_length_after=<maptekblastlogic.types.Unset object>, crew_comment=<maptekblastlogic.types.Unset object>, supervisor_id=<maptekblastlogic.types.Unset object>, supervisor_start_time=<maptekblastlogic.types.Unset object>, supervisor_end_time=<maptekblastlogic.types.Unset object>, supervisor_dip_depth_after=<maptekblastlogic.types.Unset object>, supervisor_water_length_after=<maptekblastlogic.types.Unset object>, supervisor_wet_sides_length_after=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Measurements recorded from a backfilling activity.

Parameters:
crew_start_time

When this backfilling activity started (UTC).

Type:

datetime.datetime

crew_end_time

When this backfilling activity was completed (UTC). Must be greater than or equal to ‘crewStartTime’.

Type:

datetime.datetime

crew_id

The unique identifier of the crew that performed this backfilling. Can be null if unknown.

Type:

Union[None, Unset, int]

crew_dip_depth_before

Depth of the hole before backfilling according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_water_length_before

Depth of the water in the hole before backfilling according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_wet_sides_length_before

Length of the wet sides of the hole before backfilling according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_temperature_before

Temperature of the hole before backfilling according to the crew (Kelvin). Can be null if unknown.

Type:

Union[None, Unset, float]

was_backfilled

Whether or not the hole was backfilled.

Type:

Union[None, Unset, bool]

crew_dip_depth_after

Depth of the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.

Type:

Union[None, Unset, float]

crew_water_length_after

Depth of the water in the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.

Type:

Union[None, Unset, float]

crew_wet_sides_length_after

Length of the wet sides of the hole after backfilling according to the crew (Meters). Must be null when ‘wasBackfilled’ is false. Can be null if unknown.

Type:

Union[None, Unset, float]

crew_comment

Comments about the hole during the backfilling activity. Can be null. Maximum 200 characters.

Type:

Union[None, Unset, str]

supervisor_id

The unique identifier of the supervisor responsible for supervising this backfilling activity. Can be null if unknown.

Type:

Union[None, Unset, int]

supervisor_start_time

When the supervisor checked started (UTC). Required when ‘supervisorEndTime’ has a value.

Type:

Union[None, Unset, datetime.datetime]

supervisor_end_time

When the supervisor checked finished (UTC). Required when ‘supervisorStartTime’ has a value.

Type:

Union[None, Unset, datetime.datetime]

supervisor_dip_depth_after

Depth of the hole after backfilling according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_water_length_after

Depth of water in the hole after backfilling according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_wet_sides_length_after

Length of the wet sides in the hole after backfilling according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_start_time: datetime
crew_end_time: datetime
crew_id: None | Unset | int
crew_dip_depth_before: None | Unset | float
crew_water_length_before: None | Unset | float
crew_wet_sides_length_before: None | Unset | float
crew_temperature_before: None | Unset | float
was_backfilled: None | Unset | bool
crew_dip_depth_after: None | Unset | float
crew_water_length_after: None | Unset | float
crew_wet_sides_length_after: None | Unset | float
crew_comment: None | Unset | str
supervisor_id: None | Unset | int
supervisor_start_time: None | Unset | datetime
supervisor_end_time: None | Unset | datetime
supervisor_dip_depth_after: None | Unset | float
supervisor_water_length_after: None | Unset | float
supervisor_wet_sides_length_after: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.backfilling_entry_model module

class maptekblastlogic.models.backfilling_entry_model.BackfillingEntryModel(hole_id, plan, backfilling_entry_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, cancelled_time=<maptekblastlogic.types.Unset object>, actual=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a backfilling activity on a hole.

Parameters:
hole_id

The ID of the hole this backfilling activity relates to. Cannot be edited.

Type:

int

plan

Instructions on how a backfilling activity should be performed.

Type:

BackfillingEntryPlan

backfilling_entry_id

The unique identifier of this backfilling entry. Ignored when creating. Cannot be edited.

Type:

Union[None, Unset, int]

etag

The backfilling entry’s current ETag. Required when editing in bulk.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this backfilling entry. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_by

Username of the person who last updated this backfilling entry. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this backfilling entry was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

created_time

When this backfilling entry was created (UTC). Ignored when editing. Defaults to current time when not supplied.

Type:

Union[None, Unset, datetime.datetime]

cancelled_time

When this activity was cancelled (UTC). Can be null to indicate not cancelled. ‘actual’ must be null when ‘cancelledTime’ is not null.

Type:

Union[None, Unset, datetime.datetime]

actual

Measurements recorded from the backfilling activity. ‘cancelledTime’ must be null when ‘actual’ is not null.

Type:

Union[‘BackfillingEntryActual’, None, Unset]

hole_id: int
plan: BackfillingEntryPlan
backfilling_entry_id: None | Unset | int
etag: None | Unset | str
created_by: None | Unset | str
last_modified_by: None | Unset | str
last_modified_time: None | Unset | datetime
created_time: None | Unset | datetime
cancelled_time: None | Unset | datetime
actual: BackfillingEntryActual | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.backfilling_entry_plan module

class maptekblastlogic.models.backfilling_entry_plan.BackfillingEntryPlan(target_depth=<maptekblastlogic.types.Unset object>, crew_check_required=<maptekblastlogic.types.Unset object>, supervisor_check_required=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Instructions on how a backfilling activity should be performed.

Parameters:
target_depth

The desired depth of the hole after backfilling (Meters). Cannot be negative.

Type:

Union[None, Unset, float]

crew_check_required

Whether or not the hole requires re-dipping after backfilling by the crew.

Type:

Union[Unset, bool]

supervisor_check_required

Whether or not the hole requires re-dipping after backfilling by the supervisor.

Type:

Union[Unset, bool]

target_depth: None | Unset | float
crew_check_required: Unset | bool
supervisor_check_required: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.blast_model module

class maptekblastlogic.models.blast_model.BlastModel(blast_name, blast_id=<maptekblastlogic.types.Unset object>, status=<maptekblastlogic.types.Unset object>, fired_time=<maptekblastlogic.types.Unset object>, abandoned_time=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A collection of holes designed to be detonated together.

Parameters:
blast_name

The name of this blast.

Type:

str

blast_id

The unique identifier of this blast.

Type:

Union[Unset, int]

status
Type:

Union[Unset, BlastStatus]

fired_time

When this blast was fired (UTC). Null indicates the blast has not been fired.

Type:

Union[None, Unset, datetime.datetime]

abandoned_time

When this blast was abandoned (UTC). Null indicates the blast has not been abandoned.

Type:

Union[None, Unset, datetime.datetime]

blast_name: str
blast_id: Unset | int
status: Unset | BlastStatus
fired_time: None | Unset | datetime
abandoned_time: None | Unset | datetime
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.blast_status module

class maptekblastlogic.models.blast_status.BlastStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: str, Enum

ABANDONED = 'Abandoned'
ACTIVE = 'Active'
FIRED = 'Fired'
SUSPENDED = 'Suspended'

maptekblastlogic.models.charge_plan_deck_model module

class maptekblastlogic.models.charge_plan_deck_model.ChargePlanDeckModel(product_id=<maptekblastlogic.types.Unset object>, order=<maptekblastlogic.types.Unset object>, length=<maptekblastlogic.types.Unset object>, mass=<maptekblastlogic.types.Unset object>, quantity=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of how a deck is planned to be loaded.

Parameters:
product_id

The ID of the product to use in this deck.

Type:

Union[Unset, int]

order

The order this deck sits in this hole. Decks are numbered from the bottom up, with the bottom deck having order ‘1’.

Type:

Union[Unset, int]

length

The length of this deck measured along the length of the hole (Meters).

Type:

Union[Unset, float]

mass

For products where the mass is known, the total mass of the deck (Kilograms).

Type:

Union[None, Unset, float]

quantity

For packaged products, the number of packages or units used in this deck.

Type:

Union[None, Unset, float]

product_id: Unset | int
order: Unset | int
length: Unset | float
mass: None | Unset | float
quantity: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.charge_plan_model module

class maptekblastlogic.models.charge_plan_model.ChargePlanModel(hole_id=<maptekblastlogic.types.Unset object>, decks=<maptekblastlogic.types.Unset object>)[source]

Bases: object

The current plan of how a hole should be charged.

Parameters:
hole_id

The ID of the hole this charge plan relates to.

Type:

Union[Unset, int]

decks

The decks planned to be loaded into the hole.

Type:

Union[List[‘ChargePlanDeckModel’], None, Unset]

hole_id: Unset | int
decks: List[ChargePlanDeckModel] | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.crew_model module

class maptekblastlogic.models.crew_model.CrewModel(crew_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, is_active=<maptekblastlogic.types.Unset object>, is_dipping_crew=<maptekblastlogic.types.Unset object>, is_backfilling=<maptekblastlogic.types.Unset object>, is_charging_crew=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A crew and their responsibilities.

Parameters:
crew_id

The unique identifier of this crew.

Type:

Union[Unset, int]

etag

The crew’s current ETag. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this crew. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_time

When this crew was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

last_modified_by

Username of the person who last updated this crew. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this crew was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

name

The name of this crew.

Type:

Union[None, Unset, str]

is_active

Whether this crew is active.

Type:

Union[Unset, bool]

is_dipping_crew

Whether this crew can perform dipping duties.

Type:

Union[Unset, bool]

is_backfilling

Whether this crew can perform backfilling duties.

Type:

Union[Unset, bool]

is_charging_crew

Whether this crew can perform charging duties.

Type:

Union[Unset, bool]

crew_id: Unset | int
etag: None | Unset | str
created_by: None | Unset | str
created_time: None | Unset | datetime
last_modified_by: None | Unset | str
last_modified_time: None | Unset | datetime
name: None | Unset | str
is_active: Unset | bool
is_dipping_crew: Unset | bool
is_backfilling: Unset | bool
is_charging_crew: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.density_table_row module

class maptekblastlogic.models.density_table_row.DensityTableRow(depth=<maptekblastlogic.types.Unset object>, average_density=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Parameters:
depth
Type:

Union[Unset, float]

average_density
Type:

Union[None, Unset, float]

depth: Unset | float
average_density: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.dipping_entry_actual_model module

class maptekblastlogic.models.dipping_entry_actual_model.DippingEntryActualModel(crew_start_time, crew_end_time, crew_id=<maptekblastlogic.types.Unset object>, crew_depth=<maptekblastlogic.types.Unset object>, crew_water_length=<maptekblastlogic.types.Unset object>, crew_wet_sides_length=<maptekblastlogic.types.Unset object>, crew_temperature=<maptekblastlogic.types.Unset object>, crew_comment=<maptekblastlogic.types.Unset object>, supervisor_id=<maptekblastlogic.types.Unset object>, supervisor_start_time=<maptekblastlogic.types.Unset object>, supervisor_end_time=<maptekblastlogic.types.Unset object>, supervisor_depth=<maptekblastlogic.types.Unset object>, supervisor_water_length=<maptekblastlogic.types.Unset object>, supervisor_wet_sides_length=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Measurements recorded from dipping holes.

Parameters:
crew_start_time

When the crew stared dipping (UTC).

Type:

datetime.datetime

crew_end_time

When the crew completed dipping (UTC). Must be greater than or equal to ‘crewStartTime’.

Type:

datetime.datetime

crew_id

Id of the crew that performed the dipping activity. Can be null if unknown.

Type:

Union[None, Unset, int]

crew_depth

Depth of the hole according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_water_length

Depth of the water in the hole according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_wet_sides_length

Length of the wet sides in the hole according to the crew (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_temperature

Temperature of the hole according to the crew (Kelvin). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_comment

Comments about the hole during the dipping activity. Can be null.

Type:

Union[None, Unset, str]

supervisor_id

Id of the person responsible for supervising this dipping activity. Can be null if unknown.

Type:

Union[None, Unset, int]

supervisor_start_time

When the supervisor check started (UTC). Cannot be null if ‘supervisorEndTime’ is not null.

Type:

Union[None, Unset, datetime.datetime]

supervisor_end_time

When the supervisor check finished (UTC). Cannot be null if ‘supervisorStartTime’ is not null. If not null, must be greater than or equal to ‘supervisorStartTime’.

Type:

Union[None, Unset, datetime.datetime]

supervisor_depth

Depth of the hole according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_water_length

Length of the wet sides of the hole according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_wet_sides_length

Length of the wet sides in the hole according to the supervisor (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

crew_start_time: datetime
crew_end_time: datetime
crew_id: None | Unset | int
crew_depth: None | Unset | float
crew_water_length: None | Unset | float
crew_wet_sides_length: None | Unset | float
crew_temperature: None | Unset | float
crew_comment: None | Unset | str
supervisor_id: None | Unset | int
supervisor_start_time: None | Unset | datetime
supervisor_end_time: None | Unset | datetime
supervisor_depth: None | Unset | float
supervisor_water_length: None | Unset | float
supervisor_wet_sides_length: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.dipping_entry_model module

class maptekblastlogic.models.dipping_entry_model.DippingEntryModel(hole_id, plan, dipping_entry_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, cancelled_time=<maptekblastlogic.types.Unset object>, actual=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a dipping activity on a hole.

Parameters:
hole_id

The ID of the hole this dipping activity relates to. Cannot be edited.

Type:

int

plan

Instructions on how to dip the holes.

Type:

DippingEntryPlanModel

dipping_entry_id

The unique identifier of this dipping entry. Ignored when creating and editing. Cannot be edited.

Type:

Union[None, Unset, int]

etag

The dipping entry’s current ETag. Required when editing in bulk.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this dipping entry. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_by

Username of the person who last updated this dipping entry. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this dipping entry was last updated (UTC). Ignored when creating and editing.

Type:

Union[Unset, datetime.datetime]

created_time

When this dipping entry was created (UTC). Ignored when editing. Defaults to current time when not supplied.

Type:

Union[None, Unset, datetime.datetime]

cancelled_time

When this activity was cancelled (UTC). Can be null to indicate not cancelled. ‘actual’ must be null when ‘cancelledTime’ is not null.

Type:

Union[None, Unset, datetime.datetime]

actual

Measurements recorded from dipping the holes. ‘cancelledTime’ must be null when ‘actual’ is not null.

Type:

Union[‘DippingEntryActualModel’, None, Unset]

hole_id: int
plan: DippingEntryPlanModel
dipping_entry_id: None | Unset | int
etag: None | Unset | str
created_by: None | Unset | str
last_modified_by: None | Unset | str
last_modified_time: Unset | datetime
created_time: None | Unset | datetime
cancelled_time: None | Unset | datetime
actual: DippingEntryActualModel | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.dipping_entry_plan_model module

class maptekblastlogic.models.dipping_entry_plan_model.DippingEntryPlanModel(last_known_depth=<maptekblastlogic.types.Unset object>, supervisor_check_required=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Instructions on how to dip the holes.

Parameters:
last_known_depth

The last known depth of the hole when this entry was created (Meters). Can be null if unknown.

Type:

Union[None, Unset, float]

supervisor_check_required

Whether the supervisor is required to validate the dip measurements.

Type:

Union[Unset, bool]

last_known_depth: None | Unset | float
supervisor_check_required: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.error_model module

class maptekblastlogic.models.error_model.ErrorModel(title=<maptekblastlogic.types.Unset object>, details=<maptekblastlogic.types.Unset object>, errors=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A structure of error messages given when a request could not be fulfilled.

Parameters:
title
Type:

Union[None, Unset, str]

details
Type:

Union[None, Unset, str]

errors
Type:

Union[List[str], None, Unset]

title: None | Unset | str
details: None | Unset | str
errors: List[str] | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.hole_geometry module

class maptekblastlogic.models.hole_geometry.HoleGeometry(collar=<maptekblastlogic.types.Unset object>, angle=<maptekblastlogic.types.Unset object>, bearing=<maptekblastlogic.types.Unset object>, depth=<maptekblastlogic.types.Unset object>, diameter=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Parameters:
collar

The position of the hole.

Type:

Union[‘Point’, None, Unset]

angle

The hole angle from vertical towards the direction of the bearing (Degrees).

Type:

Union[None, Unset, float]

bearing

The compass bearing the hole is pointing. Clockwise from north (Degrees).

Type:

Union[None, Unset, float]

depth

The depth of the hole (Meters).

Type:

Union[None, Unset, float]

diameter

The diameter of the hole (Meters).

Type:

Union[None, Unset, float]

collar: Point | None | Unset
angle: None | Unset | float
bearing: None | Unset | float
depth: None | Unset | float
diameter: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.hole_model module

class maptekblastlogic.models.hole_model.HoleModel(hole_id=<maptekblastlogic.types.Unset object>, blast_id=<maptekblastlogic.types.Unset object>, hole_name=<maptekblastlogic.types.Unset object>, row=<maptekblastlogic.types.Unset object>, echelon=<maptekblastlogic.types.Unset object>, status=<maptekblastlogic.types.Unset object>, design=<maptekblastlogic.types.Unset object>, last_known=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a hole.

Parameters:
hole_id

The unique identifier of this hole.

Type:

Union[Unset, int]

blast_id

The ID of the blast this hole belongs to.

Type:

Union[Unset, int]

hole_name

The name of this hole.

Type:

Union[None, Unset, str]

row

The row this hole sits in. Can be null.

Type:

Union[None, Unset, str]

echelon

The echelon this hole sits in. Can be null.

Type:

Union[None, Unset, int]

status

The status of the hole.

Type:

Union[None, Unset, str]

design

The hole geometry as designed.

Type:

Union[‘HoleGeometry’, None, Unset]

last_known

The hole geometry according to most recent data.

Type:

Union[‘HoleGeometry’, None, Unset]

hole_id: Unset | int
blast_id: Unset | int
hole_name: None | Unset | str
row: None | Unset | str
echelon: None | Unset | int
status: None | Unset | str
design: HoleGeometry | None | Unset
last_known: HoleGeometry | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.loaded_deck_model module

class maptekblastlogic.models.loaded_deck_model.LoadedDeckModel(start_time, end_time, product_id, top_depth, bottom_depth, loaded_deck_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, hole_id=<maptekblastlogic.types.Unset object>, is_deleted=<maptekblastlogic.types.Unset object>, shot_firer_id=<maptekblastlogic.types.Unset object>, crew_id=<maptekblastlogic.types.Unset object>, operator_id=<maptekblastlogic.types.Unset object>, loading_truck_id=<maptekblastlogic.types.Unset object>, comment=<maptekblastlogic.types.Unset object>, mass=<maptekblastlogic.types.Unset object>, quantity=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Describes the loading of an individual deck. This is raw data collected from the field that has not been validated and reconciled in BlastLogic Desktop. As such, decks may overlap with each other. This data should not be relied upon as the current state of the hole.

Attributes:

start_time (datetime.datetime): When charging this deck began (UTC). end_time (datetime.datetime): When charging this deck completed (UTC). Must be greater than or equal to

‘startTime’.

product_id (int): The ID of the product used in this deck top_depth (float): The depth of the top of this deck (Metres). Can be null if unknown. bottom_depth (float): The depth of the bottom of this deck (Metres). Can be null if unknown. loaded_deck_id (Union[None, Unset, int]): The unique identifier if this loaded deck. Ignored when creating.

Cannot be edited.

etag (Union[None, Unset, str]): The loaded deck’s current ETag. Ignored when creating and editing. created_by (Union[None, Unset, str]): Username of the person who created this loaded deck. Ignored when creating

and editing.

created_time (Union[Unset, datetime.datetime]): When this loaded deck was created (UTC). Ignored when creating

and editing.

last_modified_by (Union[None, Unset, str]): Username of the person who last updated this loaded deck. Ignored

when creating and editing.

last_modified_time (Union[Unset, datetime.datetime]): When this loaded deck was last updated (UTC). Ignored when

creating and editing.

hole_id (Union[None, Unset, int]): The ID of the hole this loaded deck relates to. Cannot be edited. is_deleted (Union[Unset, bool]): Whether this loaded deck is deleted. Deleted loaded decks are considered

erroneous and all details are ignored.

shot_firer_id (Union[None, Unset, int]): The ID of the person responsible for firing the blast. Can be null if

unknown.

crew_id (Union[None, Unset, int]): The ID of the crew that loaded this deck. Can be null if unknown. operator_id (Union[None, Unset, int]): The ID of the equipment operator. Can be null if unknown. loading_truck_id (Union[None, Unset, int]): The ID of the loading truck used to load this deck. Can be null if

unknown.

comment (Union[None, Unset, str]): Comments from the crew or operator about this loaded deck. mass (Union[None, Unset, float]): The mass of the product that was loaded into the hole (Kilograms). Cannot be

negative. Can be null if unknown.

quantity (Union[None, Unset, int]): The number of product loaded into the hole. Cannot be negative. Can be null

if unknown.

Parameters:
start_time: datetime
end_time: datetime
product_id: int
top_depth: float
bottom_depth: float
loaded_deck_id: None | Unset | int
etag: None | Unset | str
created_by: None | Unset | str
created_time: Unset | datetime
last_modified_by: None | Unset | str
last_modified_time: Unset | datetime
hole_id: None | Unset | int
is_deleted: Unset | bool
shot_firer_id: None | Unset | int
crew_id: None | Unset | int
operator_id: None | Unset | int
loading_truck_id: None | Unset | int
comment: None | Unset | str
mass: None | Unset | float
quantity: None | Unset | int
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.loading_truck_model module

class maptekblastlogic.models.loading_truck_model.LoadingTruckModel(loading_truck_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, active=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A truck used to load blast products into holes.

Parameters:
loading_truck_id

The unique identifier of this loading truck.

Type:

Union[Unset, int]

etag

The loading truck’s current ETag. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this loading truck. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_time

When this loading truck was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

last_modified_by

Username of the person who last updated this loading truck. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this loading truck was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

name

The name of this loading truck.

Type:

Union[None, Unset, str]

active

Whether this loading truck is active.

Type:

Union[Unset, bool]

loading_truck_id: Unset | int
etag: None | Unset | str
created_by: None | Unset | str
created_time: None | Unset | datetime
last_modified_by: None | Unset | str
last_modified_time: None | Unset | datetime
name: None | Unset | str
active: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.person_model module

class maptekblastlogic.models.person_model.PersonModel(personnel_id=<maptekblastlogic.types.Unset object>, etag=<maptekblastlogic.types.Unset object>, created_by=<maptekblastlogic.types.Unset object>, created_time=<maptekblastlogic.types.Unset object>, last_modified_by=<maptekblastlogic.types.Unset object>, last_modified_time=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, is_backfilling_supervisor=<maptekblastlogic.types.Unset object>, is_dipping_supervisor=<maptekblastlogic.types.Unset object>, is_loading_truck_operator=<maptekblastlogic.types.Unset object>, is_shot_firer=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A person and their responsibilities.

Parameters:
personnel_id

The unique identifier of this person.

Type:

Union[Unset, int]

etag

The person’s ETag. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_by

Username of the person who created this person. Ignored when creating and editing.

Type:

Union[None, Unset, str]

created_time

When this person was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

last_modified_by

Username of the person who last updated this person. Ignored when creating and editing.

Type:

Union[None, Unset, str]

last_modified_time

When this person was last updated (UTC). Ignored when creating and editing.

Type:

Union[None, Unset, datetime.datetime]

name

The name of this person.

Type:

Union[None, Unset, str]

is_backfilling_supervisor

Whether this person can supervise backfilling activities.

Type:

Union[Unset, bool]

is_dipping_supervisor

Whether this person can supervise dipping activities.

Type:

Union[Unset, bool]

is_loading_truck_operator

Whether this person can operate loading trucks.

Type:

Union[Unset, bool]

is_shot_firer

Whether this person can perform shotfirer duties.

Type:

Union[Unset, bool]

personnel_id: Unset | int
etag: None | Unset | str
created_by: None | Unset | str
created_time: None | Unset | datetime
last_modified_by: None | Unset | str
last_modified_time: None | Unset | datetime
name: None | Unset | str
is_backfilling_supervisor: Unset | bool
is_dipping_supervisor: Unset | bool
is_loading_truck_operator: Unset | bool
is_shot_firer: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.point module

class maptekblastlogic.models.point.Point(x=<maptekblastlogic.types.Unset object>, y=<maptekblastlogic.types.Unset object>, z=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Parameters:
x
Type:

Union[None, Unset, float]

y
Type:

Union[None, Unset, float]

z
Type:

Union[None, Unset, float]

x: None | Unset | float
y: None | Unset | float
z: None | Unset | float
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.product_model module

class maptekblastlogic.models.product_model.ProductModel(product_id=<maptekblastlogic.types.Unset object>, name=<maptekblastlogic.types.Unset object>, description=<maptekblastlogic.types.Unset object>, integration_id=<maptekblastlogic.types.Unset object>, type=<maptekblastlogic.types.Unset object>, open_cup_density=<maptekblastlogic.types.Unset object>, energy_density=<maptekblastlogic.types.Unset object>, density_table=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A consumable product used to blast holes.

Parameters:
product_id

The unique identifier of this product.

Type:

Union[Unset, int]

name

The name of this product.

Type:

Union[None, Unset, str]

description

The description of this product. Can be null

Type:

Union[None, Unset, str]

integration_id

The identifier to help match this product in another system. Can be null.

Type:

Union[None, Unset, str]

type

The type of this product.

Type:

Union[None, Unset, str]

open_cup_density

The open cup density of this product (kg/m3). Can be null.

Type:

Union[None, Unset, float]

energy_density

The energy released when this product is detonated (J/kg). Can be null.

Type:

Union[None, Unset, float]

density_table

The density of this product at specific depths. Can be null.

Type:

Union[List[‘DensityTableRow’], None, Unset]

product_id: Unset | int
name: None | Unset | str
description: None | Unset | str
integration_id: None | Unset | str
type: None | Unset | str
open_cup_density: None | Unset | float
energy_density: None | Unset | float
density_table: List[DensityTableRow] | None | Unset
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T

maptekblastlogic.models.site_model module

class maptekblastlogic.models.site_model.SiteModel(site_code, name, is_active=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a site.

Parameters:
site_code

The code of the site.

Type:

str

name

The name of the site.

Type:

str

is_active

Whether this site is active.

Type:

Union[Unset, bool]

site_code: str
name: str
is_active: Unset | bool
to_dict()[source]
Return type:

Dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Dict[str, Any])

Return type:

T