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: datetime

When this backfilling activity started (UTC).

crew_end_time: datetime

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

crew_id: int | None | Unset

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

crew_dip_depth_before: float | None | Unset

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

crew_water_length_before: float | None | Unset

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

crew_wet_sides_length_before: float | None | Unset

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

crew_temperature_before: float | None | Unset

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

was_backfilled: bool | None | Unset

Whether or not the hole was backfilled.

crew_dip_depth_after: float | None | Unset

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

crew_water_length_after: float | None | Unset

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.

crew_wet_sides_length_after: float | None | Unset

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.

crew_comment: None | str | Unset

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

supervisor_id: int | None | Unset

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

supervisor_start_time: datetime | None | Unset

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

supervisor_end_time: datetime | None | Unset

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

supervisor_dip_depth_after: float | None | Unset

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

supervisor_water_length_after: float | None | Unset

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

supervisor_wet_sides_length_after: float | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int

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

plan: BackfillingEntryPlan

Instructions on how a backfilling activity should be performed.

backfilling_entry_id: int | None | Unset

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

etag: None | str | Unset

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

created_by: None | str | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime.datetime | None | Unset

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

created_time: datetime.datetime | None | Unset

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

cancelled_time: datetime.datetime | None | Unset

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

actual: BackfillingEntryActual | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: float | None | Unset

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

crew_check_required: bool | Unset

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

supervisor_check_required: bool | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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>, etag=<maptekblastlogic.types.Unset object>, custom_properties=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A collection of holes designed to be detonated together.

Parameters:
blast_name: str

The name of this blast.

blast_id: int | Unset

The unique identifier of this blast.

status: BlastStatus | Unset
fired_time: datetime.datetime | None | Unset

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

abandoned_time: datetime.datetime | None | Unset

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

etag: None | str | Unset

The blast’s current ETag.

custom_properties: list[CustomPropertyValueModel] | None | Unset

The custom property values of this blast.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

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

Bases: StrEnum

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: int | Unset

The ID of the product to use in this deck.

order: int | Unset

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

length: float | Unset

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

mass: float | None | Unset

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

quantity: float | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The ID of the hole this charge plan relates to.

decks: list[ChargePlanDeckModel] | None | Unset

The decks planned to be loaded into the hole.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The unique identifier of this crew.

etag: None | str | Unset

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

created_by: None | str | Unset

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

created_time: datetime | None | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime | None | Unset

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

name: None | str | Unset

The name of this crew.

is_active: bool | Unset

Whether this crew is active.

is_dipping_crew: bool | Unset

Whether this crew can perform dipping duties.

is_backfilling: bool | Unset

Whether this crew can perform backfilling duties.

is_charging_crew: bool | Unset

Whether this crew can perform charging duties.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

class maptekblastlogic.models.CustomPropertySchemaFloatRangeSettings(unit=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Settings specific to ‘FloatRange’ type custom properties.

Parameters:

unit (None | str | Unset)

unit: None | str | Unset

The unit of measurement the float range values are expressed as. Can be null if the unit of measurement is not specified.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

class maptekblastlogic.models.CustomPropertySchemaFloatSettings(unit=<maptekblastlogic.types.Unset object>, minimum_value=<maptekblastlogic.types.Unset object>, maximum_value=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Settings specific to ‘Float’ type custom properties.

Parameters:
unit: None | str | Unset

The unit of measurement the float value is expressed as. Can be null if the unit of measurement is not specified.

minimum_value: float | None | Unset

The smallest acceptable float value. Can be null if a minimum value is not specified. Expressed in the unit of measurement indicated by the property ‘unit’.

maximum_value: float | None | Unset

The largest acceptable float value. Can be null if a maximum value is not specified. Expressed in the unit of measurement indicated by the property ‘unit’.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

class maptekblastlogic.models.CustomPropertySchemaModel(custom_property_id=<maptekblastlogic.types.Unset object>, label=<maptekblastlogic.types.Unset object>, type_=<maptekblastlogic.types.Unset object>, description=<maptekblastlogic.types.Unset object>, is_required=<maptekblastlogic.types.Unset object>, string_settings=<maptekblastlogic.types.Unset object>, float_settings=<maptekblastlogic.types.Unset object>, float_range_settings=<maptekblastlogic.types.Unset object>, select_settings=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Describes a user defined property. Editable from BlastLogic Desktop.

Parameters:
custom_property_id: None | str | Unset

The unique identifier of this custom property.

label: None | str | Unset

The user-friendly name of this custom property.

type_: CustomPropertyType | Unset
description: None | str | Unset

The description of this custom property.

is_required: bool | Unset

Whether this custom property requires a value.

string_settings: CustomPropertySchemaStringSettings | None | Unset

Settings specific to ‘String’ type custom properties.

float_settings: CustomPropertySchemaFloatSettings | None | Unset

Settings specific to ‘Float’ type custom properties.

float_range_settings: CustomPropertySchemaFloatRangeSettings | None | Unset

Settings specific to ‘FloatRange’ type custom properties.

select_settings: CustomPropertySchemaSelectSettings | None | Unset

Settings specific to ‘Select’ and ‘MultiSelect’ type custom properties.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

class maptekblastlogic.models.CustomPropertySchemaSelectOption(value=<maptekblastlogic.types.Unset object>, label=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A select option.

Parameters:
value: None | str | Unset

The unique identifier value for this select option.

label: None | str | Unset

The user-friendly label of this select option.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

class maptekblastlogic.models.CustomPropertySchemaSelectSettings(options=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Settings specific to ‘Select’ and ‘MultiSelect’ type custom properties.

Parameters:

options (list[CustomPropertySchemaSelectOption] | None | Unset)

options: list[CustomPropertySchemaSelectOption] | None | Unset

The valid select options.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

class maptekblastlogic.models.CustomPropertySchemaStringSettings(is_multi_line=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Settings specific to ‘String’ type custom properties.

Parameters:

is_multi_line (bool | Unset)

is_multi_line: bool | Unset

Whether a string value can span multiple lines.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

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

Bases: StrEnum

BOOLEAN = 'Boolean'
FLOAT = 'Float'
FLOATRANGE = 'FloatRange'
MULTISELECT = 'MultiSelect'
SELECT = 'Select'
STRING = 'String'
class maptekblastlogic.models.CustomPropertyValueModel(custom_property_id, entity_id, etag, boolean_value=<maptekblastlogic.types.Unset object>, string_value=<maptekblastlogic.types.Unset object>, float_value=<maptekblastlogic.types.Unset object>, float_range_lower_value=<maptekblastlogic.types.Unset object>, float_range_upper_value=<maptekblastlogic.types.Unset object>, select_value=<maptekblastlogic.types.Unset object>, multi_select_values=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Describes a value assigned to a custom property for a blast/hole.

Parameters:
custom_property_id: str

The ID of the custom property this value belongs to.

entity_id: int

The ID of the blast/hole’s this value belongs to.

etag: str

The current etag of the entity this value belongs to.

boolean_value: bool | None | Unset

The value of this custom property when it’s of type ‘Boolean’.

string_value: None | str | Unset

The value of this custom property when it’s of type ‘String’.

float_value: float | None | Unset

The value of this custom property when it’s of type ‘Float’. Expressed in the unit of measurement indicated by the custom property schema.

float_range_lower_value: float | None | Unset

The lower value of this custom property when it’s of type ‘FloatRange’. Expressed in the unit of measurement indicated by the custom property schema.

float_range_upper_value: float | None | Unset

The upper value of this custom property when it’s of type ‘FloatRange’. Expressed in the unit of measurement indicated by the custom property schema.

select_value: None | str | Unset

The selected value of this custom property when it’s of type ‘Select’.

multi_select_values: list[str] | None | Unset

The selected values of this custom property when it’s of type ‘MultiSelect’.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: float | Unset
average_density: float | None | Unset
to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: datetime

When the crew stared dipping (UTC).

crew_end_time: datetime

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

crew_id: int | None | Unset

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

crew_depth: float | None | Unset

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

crew_water_length: float | None | Unset

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

crew_wet_sides_length: float | None | Unset

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

crew_temperature: float | None | Unset

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

crew_comment: None | str | Unset

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

supervisor_id: int | None | Unset

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

supervisor_start_time: datetime | None | Unset

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

supervisor_end_time: datetime | None | Unset

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’.

supervisor_depth: float | None | Unset

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

supervisor_water_length: float | None | Unset

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

supervisor_wet_sides_length: float | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int

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

plan: DippingEntryPlanModel

Instructions on how to dip the holes.

dipping_entry_id: int | None | Unset

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

etag: None | str | Unset

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

created_by: None | str | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime.datetime | Unset

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

created_time: datetime.datetime | None | Unset

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

cancelled_time: datetime.datetime | None | Unset

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

actual: DippingEntryActualModel | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: float | None | Unset

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

supervisor_check_required: bool | Unset

Whether the supervisor is required to validate the dip measurements.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: None | str | Unset
details: None | str | Unset
errors: list[str] | None | Unset
to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: None | Point | Unset

The position of the hole.

angle: float | None | Unset

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

bearing: float | None | Unset

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

depth: float | None | Unset

The depth of the hole (Meters).

diameter: float | None | Unset

The diameter of the hole (Meters).

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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>, etag=<maptekblastlogic.types.Unset object>, custom_properties=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a hole.

Parameters:
hole_id: int | Unset

The unique identifier of this hole.

blast_id: int | Unset

The ID of the blast this hole belongs to.

hole_name: None | str | Unset

The name of this hole.

row: None | str | Unset

The row this hole sits in. Can be null.

echelon: int | None | Unset

The echelon this hole sits in. Can be null.

status: None | str | Unset

The status of the hole.

design: HoleGeometry | None | Unset

The hole geometry as designed.

last_known: HoleGeometry | None | Unset

The hole geometry according to most recent data.

etag: None | str | Unset

The hole’s current ETag.

custom_properties: list[CustomPropertyValueModel] | None | Unset

The custom property values of this hole.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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.

Parameters:
start_time: datetime

When charging this deck began (UTC).

end_time: 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: int | None | Unset

The unique identifier if this loaded deck. Ignored when creating. Cannot be edited.

etag: None | str | Unset

The loaded deck’s current ETag. Required when editing in bulk.

created_by: None | str | Unset

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

created_time: datetime | Unset

When this loaded deck was created (UTC). Ignored when creating and editing.

last_modified_by: None | str | Unset

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

last_modified_time: datetime | Unset

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

hole_id: int | None | Unset

The ID of the hole this loaded deck relates to. Cannot be edited.

is_deleted: bool | Unset

Whether this loaded deck is deleted. Deleted loaded decks are considered erroneous and all details are ignored.

shot_firer_id: int | None | Unset

The ID of the person responsible for firing the blast. Can be null if unknown.

crew_id: int | None | Unset

The ID of the crew that loaded this deck. Can be null if unknown.

operator_id: int | None | Unset

The ID of the equipment operator. Can be null if unknown.

loading_truck_id: int | None | Unset

The ID of the loading truck used to load this deck. Can be null if unknown.

comment: None | str | Unset

Comments from the crew or operator about this loaded deck.

mass: float | None | Unset

The mass of the product that was loaded into the hole (Kilograms). Cannot be negative. Can be null if unknown.

quantity: int | None | Unset

The number of product loaded into the hole. Cannot be negative. Can be null if unknown.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The unique identifier of this loading truck.

etag: None | str | Unset

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

created_by: None | str | Unset

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

created_time: datetime | None | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime | None | Unset

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

name: None | str | Unset

The name of this loading truck.

active: bool | Unset

Whether this loading truck is active.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The unique identifier of this person.

etag: None | str | Unset

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

created_by: None | str | Unset

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

created_time: datetime | None | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime | None | Unset

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

name: None | str | Unset

The name of this person.

is_backfilling_supervisor: bool | Unset

Whether this person can supervise backfilling activities.

is_dipping_supervisor: bool | Unset

Whether this person can supervise dipping activities.

is_loading_truck_operator: bool | Unset

Whether this person can operate loading trucks.

is_shot_firer: bool | Unset

Whether this person can perform shotfirer duties.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: float | None | Unset
y: float | None | Unset
z: float | None | Unset
to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The unique identifier of this product.

name: None | str | Unset

The name of this product.

description: None | str | Unset

The description of this product. Can be null

integration_id: None | str | Unset

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

type_: None | str | Unset

The type of this product.

open_cup_density: float | None | Unset

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

energy_density: float | None | Unset

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

density_table: list[DensityTableRow] | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: str

The code of the site.

name: str

The name of the site.

is_active: bool | Unset

Whether this site is active.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: datetime

When this backfilling activity started (UTC).

crew_end_time: datetime

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

crew_id: int | None | Unset

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

crew_dip_depth_before: float | None | Unset

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

crew_water_length_before: float | None | Unset

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

crew_wet_sides_length_before: float | None | Unset

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

crew_temperature_before: float | None | Unset

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

was_backfilled: bool | None | Unset

Whether or not the hole was backfilled.

crew_dip_depth_after: float | None | Unset

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

crew_water_length_after: float | None | Unset

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.

crew_wet_sides_length_after: float | None | Unset

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.

crew_comment: None | str | Unset

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

supervisor_id: int | None | Unset

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

supervisor_start_time: datetime | None | Unset

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

supervisor_end_time: datetime | None | Unset

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

supervisor_dip_depth_after: float | None | Unset

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

supervisor_water_length_after: float | None | Unset

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

supervisor_wet_sides_length_after: float | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int

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

plan: BackfillingEntryPlan

Instructions on how a backfilling activity should be performed.

backfilling_entry_id: int | None | Unset

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

etag: None | str | Unset

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

created_by: None | str | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime.datetime | None | Unset

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

created_time: datetime.datetime | None | Unset

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

cancelled_time: datetime.datetime | None | Unset

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

actual: BackfillingEntryActual | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: float | None | Unset

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

crew_check_required: bool | Unset

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

supervisor_check_required: bool | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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>, etag=<maptekblastlogic.types.Unset object>, custom_properties=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A collection of holes designed to be detonated together.

Parameters:
blast_name: str

The name of this blast.

blast_id: int | Unset

The unique identifier of this blast.

status: BlastStatus | Unset
fired_time: datetime.datetime | None | Unset

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

abandoned_time: datetime.datetime | None | Unset

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

etag: None | str | Unset

The blast’s current ETag.

custom_properties: list[CustomPropertyValueModel] | None | Unset

The custom property values of this blast.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: StrEnum

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: int | Unset

The ID of the product to use in this deck.

order: int | Unset

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

length: float | Unset

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

mass: float | None | Unset

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

quantity: float | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The ID of the hole this charge plan relates to.

decks: list[ChargePlanDeckModel] | None | Unset

The decks planned to be loaded into the hole.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The unique identifier of this crew.

etag: None | str | Unset

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

created_by: None | str | Unset

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

created_time: datetime | None | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime | None | Unset

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

name: None | str | Unset

The name of this crew.

is_active: bool | Unset

Whether this crew is active.

is_dipping_crew: bool | Unset

Whether this crew can perform dipping duties.

is_backfilling: bool | Unset

Whether this crew can perform backfilling duties.

is_charging_crew: bool | Unset

Whether this crew can perform charging duties.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

maptekblastlogic.models.custom_property_schema_float_range_settings module

class maptekblastlogic.models.custom_property_schema_float_range_settings.CustomPropertySchemaFloatRangeSettings(unit=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Settings specific to ‘FloatRange’ type custom properties.

Parameters:

unit (None | str | Unset)

unit: None | str | Unset

The unit of measurement the float range values are expressed as. Can be null if the unit of measurement is not specified.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

maptekblastlogic.models.custom_property_schema_float_settings module

class maptekblastlogic.models.custom_property_schema_float_settings.CustomPropertySchemaFloatSettings(unit=<maptekblastlogic.types.Unset object>, minimum_value=<maptekblastlogic.types.Unset object>, maximum_value=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Settings specific to ‘Float’ type custom properties.

Parameters:
unit: None | str | Unset

The unit of measurement the float value is expressed as. Can be null if the unit of measurement is not specified.

minimum_value: float | None | Unset

The smallest acceptable float value. Can be null if a minimum value is not specified. Expressed in the unit of measurement indicated by the property ‘unit’.

maximum_value: float | None | Unset

The largest acceptable float value. Can be null if a maximum value is not specified. Expressed in the unit of measurement indicated by the property ‘unit’.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

maptekblastlogic.models.custom_property_schema_model module

class maptekblastlogic.models.custom_property_schema_model.CustomPropertySchemaModel(custom_property_id=<maptekblastlogic.types.Unset object>, label=<maptekblastlogic.types.Unset object>, type_=<maptekblastlogic.types.Unset object>, description=<maptekblastlogic.types.Unset object>, is_required=<maptekblastlogic.types.Unset object>, string_settings=<maptekblastlogic.types.Unset object>, float_settings=<maptekblastlogic.types.Unset object>, float_range_settings=<maptekblastlogic.types.Unset object>, select_settings=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Describes a user defined property. Editable from BlastLogic Desktop.

Parameters:
custom_property_id: None | str | Unset

The unique identifier of this custom property.

label: None | str | Unset

The user-friendly name of this custom property.

type_: CustomPropertyType | Unset
description: None | str | Unset

The description of this custom property.

is_required: bool | Unset

Whether this custom property requires a value.

string_settings: CustomPropertySchemaStringSettings | None | Unset

Settings specific to ‘String’ type custom properties.

float_settings: CustomPropertySchemaFloatSettings | None | Unset

Settings specific to ‘Float’ type custom properties.

float_range_settings: CustomPropertySchemaFloatRangeSettings | None | Unset

Settings specific to ‘FloatRange’ type custom properties.

select_settings: CustomPropertySchemaSelectSettings | None | Unset

Settings specific to ‘Select’ and ‘MultiSelect’ type custom properties.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

maptekblastlogic.models.custom_property_schema_select_option module

class maptekblastlogic.models.custom_property_schema_select_option.CustomPropertySchemaSelectOption(value=<maptekblastlogic.types.Unset object>, label=<maptekblastlogic.types.Unset object>)[source]

Bases: object

A select option.

Parameters:
value: None | str | Unset

The unique identifier value for this select option.

label: None | str | Unset

The user-friendly label of this select option.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

maptekblastlogic.models.custom_property_schema_select_settings module

class maptekblastlogic.models.custom_property_schema_select_settings.CustomPropertySchemaSelectSettings(options=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Settings specific to ‘Select’ and ‘MultiSelect’ type custom properties.

Parameters:

options (list[CustomPropertySchemaSelectOption] | None | Unset)

options: list[CustomPropertySchemaSelectOption] | None | Unset

The valid select options.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

maptekblastlogic.models.custom_property_schema_string_settings module

class maptekblastlogic.models.custom_property_schema_string_settings.CustomPropertySchemaStringSettings(is_multi_line=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Settings specific to ‘String’ type custom properties.

Parameters:

is_multi_line (bool | Unset)

is_multi_line: bool | Unset

Whether a string value can span multiple lines.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T

maptekblastlogic.models.custom_property_type module

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

Bases: StrEnum

BOOLEAN = 'Boolean'
FLOAT = 'Float'
FLOATRANGE = 'FloatRange'
MULTISELECT = 'MultiSelect'
SELECT = 'Select'
STRING = 'String'

maptekblastlogic.models.custom_property_value_model module

class maptekblastlogic.models.custom_property_value_model.CustomPropertyValueModel(custom_property_id, entity_id, etag, boolean_value=<maptekblastlogic.types.Unset object>, string_value=<maptekblastlogic.types.Unset object>, float_value=<maptekblastlogic.types.Unset object>, float_range_lower_value=<maptekblastlogic.types.Unset object>, float_range_upper_value=<maptekblastlogic.types.Unset object>, select_value=<maptekblastlogic.types.Unset object>, multi_select_values=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Describes a value assigned to a custom property for a blast/hole.

Parameters:
custom_property_id: str

The ID of the custom property this value belongs to.

entity_id: int

The ID of the blast/hole’s this value belongs to.

etag: str

The current etag of the entity this value belongs to.

boolean_value: bool | None | Unset

The value of this custom property when it’s of type ‘Boolean’.

string_value: None | str | Unset

The value of this custom property when it’s of type ‘String’.

float_value: float | None | Unset

The value of this custom property when it’s of type ‘Float’. Expressed in the unit of measurement indicated by the custom property schema.

float_range_lower_value: float | None | Unset

The lower value of this custom property when it’s of type ‘FloatRange’. Expressed in the unit of measurement indicated by the custom property schema.

float_range_upper_value: float | None | Unset

The upper value of this custom property when it’s of type ‘FloatRange’. Expressed in the unit of measurement indicated by the custom property schema.

select_value: None | str | Unset

The selected value of this custom property when it’s of type ‘Select’.

multi_select_values: list[str] | None | Unset

The selected values of this custom property when it’s of type ‘MultiSelect’.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: float | Unset
average_density: float | None | Unset
to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: datetime

When the crew stared dipping (UTC).

crew_end_time: datetime

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

crew_id: int | None | Unset

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

crew_depth: float | None | Unset

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

crew_water_length: float | None | Unset

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

crew_wet_sides_length: float | None | Unset

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

crew_temperature: float | None | Unset

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

crew_comment: None | str | Unset

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

supervisor_id: int | None | Unset

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

supervisor_start_time: datetime | None | Unset

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

supervisor_end_time: datetime | None | Unset

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’.

supervisor_depth: float | None | Unset

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

supervisor_water_length: float | None | Unset

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

supervisor_wet_sides_length: float | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int

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

plan: DippingEntryPlanModel

Instructions on how to dip the holes.

dipping_entry_id: int | None | Unset

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

etag: None | str | Unset

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

created_by: None | str | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime.datetime | Unset

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

created_time: datetime.datetime | None | Unset

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

cancelled_time: datetime.datetime | None | Unset

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

actual: DippingEntryActualModel | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: float | None | Unset

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

supervisor_check_required: bool | Unset

Whether the supervisor is required to validate the dip measurements.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: None | str | Unset
details: None | str | Unset
errors: list[str] | None | Unset
to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: None | Point | Unset

The position of the hole.

angle: float | None | Unset

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

bearing: float | None | Unset

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

depth: float | None | Unset

The depth of the hole (Meters).

diameter: float | None | Unset

The diameter of the hole (Meters).

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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>, etag=<maptekblastlogic.types.Unset object>, custom_properties=<maptekblastlogic.types.Unset object>)[source]

Bases: object

Details of a hole.

Parameters:
hole_id: int | Unset

The unique identifier of this hole.

blast_id: int | Unset

The ID of the blast this hole belongs to.

hole_name: None | str | Unset

The name of this hole.

row: None | str | Unset

The row this hole sits in. Can be null.

echelon: int | None | Unset

The echelon this hole sits in. Can be null.

status: None | str | Unset

The status of the hole.

design: HoleGeometry | None | Unset

The hole geometry as designed.

last_known: HoleGeometry | None | Unset

The hole geometry according to most recent data.

etag: None | str | Unset

The hole’s current ETag.

custom_properties: list[CustomPropertyValueModel] | None | Unset

The custom property values of this hole.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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.

Parameters:
start_time: datetime

When charging this deck began (UTC).

end_time: 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: int | None | Unset

The unique identifier if this loaded deck. Ignored when creating. Cannot be edited.

etag: None | str | Unset

The loaded deck’s current ETag. Required when editing in bulk.

created_by: None | str | Unset

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

created_time: datetime | Unset

When this loaded deck was created (UTC). Ignored when creating and editing.

last_modified_by: None | str | Unset

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

last_modified_time: datetime | Unset

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

hole_id: int | None | Unset

The ID of the hole this loaded deck relates to. Cannot be edited.

is_deleted: bool | Unset

Whether this loaded deck is deleted. Deleted loaded decks are considered erroneous and all details are ignored.

shot_firer_id: int | None | Unset

The ID of the person responsible for firing the blast. Can be null if unknown.

crew_id: int | None | Unset

The ID of the crew that loaded this deck. Can be null if unknown.

operator_id: int | None | Unset

The ID of the equipment operator. Can be null if unknown.

loading_truck_id: int | None | Unset

The ID of the loading truck used to load this deck. Can be null if unknown.

comment: None | str | Unset

Comments from the crew or operator about this loaded deck.

mass: float | None | Unset

The mass of the product that was loaded into the hole (Kilograms). Cannot be negative. Can be null if unknown.

quantity: int | None | Unset

The number of product loaded into the hole. Cannot be negative. Can be null if unknown.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The unique identifier of this loading truck.

etag: None | str | Unset

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

created_by: None | str | Unset

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

created_time: datetime | None | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime | None | Unset

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

name: None | str | Unset

The name of this loading truck.

active: bool | Unset

Whether this loading truck is active.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The unique identifier of this person.

etag: None | str | Unset

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

created_by: None | str | Unset

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

created_time: datetime | None | Unset

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

last_modified_by: None | str | Unset

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

last_modified_time: datetime | None | Unset

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

name: None | str | Unset

The name of this person.

is_backfilling_supervisor: bool | Unset

Whether this person can supervise backfilling activities.

is_dipping_supervisor: bool | Unset

Whether this person can supervise dipping activities.

is_loading_truck_operator: bool | Unset

Whether this person can operate loading trucks.

is_shot_firer: bool | Unset

Whether this person can perform shotfirer duties.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: float | None | Unset
y: float | None | Unset
z: float | None | Unset
to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: int | Unset

The unique identifier of this product.

name: None | str | Unset

The name of this product.

description: None | str | Unset

The description of this product. Can be null

integration_id: None | str | Unset

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

type_: None | str | Unset

The type of this product.

open_cup_density: float | None | Unset

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

energy_density: float | None | Unset

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

density_table: list[DensityTableRow] | None | Unset

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

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[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: str

The code of the site.

name: str

The name of the site.

is_active: bool | Unset

Whether this site is active.

to_dict()[source]
Return type:

dict[str, Any]

classmethod from_dict(src_dict)[source]
Parameters:

src_dict (Mapping[str, Any])

Return type:

T