Custom Queries

The gpp_client.generated.custom_queries module provides helpers for building custom GraphQL queries.

Use these helpers when the domain APIs do not match the exact query shape you need.

API Reference

class gpp_client.generated.custom_queries.Query[source]

Bases: object

classmethod asterism_group(include_deleted: bool, *, program_id: Any | None = None, proposal_reference: Any | None = None, program_reference: Any | None = None, where: WhereObservation | None = None, limit: Any | None = None) AsterismGroupSelectResultFields[source]

Observations grouped by commonly held science asterisms. Identify the program by specifying only one of programId, programReference, or proposalReference. If more than one is provided, all must match. If none are set, nothing will match.

classmethod call_for_proposals(call_for_proposals_id: Any) CallForProposalsFields[source]

Select a single Call for Proposals by id.

classmethod calls_for_proposals(include_deleted: bool, *, where: WhereCallForProposals | None = None, offset: Any | None = None, limit: Any | None = None) CallsForProposalsSelectResultFields[source]

Select all Calls for Proposals.

classmethod configuration_requests(*, where: WhereConfigurationRequest | None = None, offset: Any | None = None, limit: Any | None = None) ConfigurationRequestSelectResultFields[source]

Selects the first LIMIT matching configuration requests based on the provided WHERE parameter, if any.

classmethod constraint_set_group(include_deleted: bool, *, program_id: Any | None = None, proposal_reference: Any | None = None, program_reference: Any | None = None, where: WhereObservation | None = None, limit: Any | None = None) ConstraintSetGroupSelectResultFields[source]

Observations grouped by commonly held constraints. Identify the program by specifying only one of programId, programReference, or proposalReference. If more than one is provided, all must match. If none are set, nothing will match.

classmethod dataset(*, dataset_id: Any | None = None, dataset_reference: Any | None = None) DatasetFields[source]

Returns the dataset with the given id or reference, if any. Identify the dataset by specifying only one of datasetId or datasetReference. If more than one is provided, all must match. If neither are set, nothing will match.

classmethod dataset_chronicle_entries(*, where: WhereDatasetChronicleEntry | None = None, offset: Any | None = None, limit: Any | None = None) DatasetChronicleEntrySelectResultFields[source]

Select all dataset chronicle entries. This will contain detailed information about dataset creation and updates.

classmethod datasets(*, where: WhereDataset | None = None, offset: Any | None = None, limit: Any | None = None) DatasetSelectResultFields[source]

Select all datasets associated with a step or observation

classmethod events(*, where: WhereExecutionEvent | None = None, offset: Any | None = None, limit: Any | None = None) ExecutionEventSelectResultFields[source]

Selects the first LIMIT matching execution events based on the provided WHERE parameter, if any.

classmethod execution_config(*, observation_id: Any | None = None, observation_reference: Any | None = None, future_limit: Any | None = None) ExecutionConfigFields[source]

Full execution config, including static values and acquisition and science sequences. If a sequence cannot be generated for this observation, null is returned along with warning messages.

classmethod filter_type_meta() FilterTypeMetaFields[source]

Metadata for enum FilterType

classmethod goa_data_download_access(orcid_id: str) GraphQLField[source]

Obtains a list of program references for which the user with ORCiD orcidId has GOA data-download access privileges. These will be those for which the user is a ProgramUser of any role with the hasDataAccess flag set.

This query is for use by staff and the GOA and will fail for other users.

classmethod group(group_id: Any) GroupFields[source]

Returns the group indicated by the given groupId, if found.

classmethod imaging_config_options(*, where: WhereImagingConfigOption | None = None) ImagingConfigOptionFields[source]

Imaging configuration options matching the WHERE parameter.

classmethod observation(*, observation_id: Any | None = None, observation_reference: Any | None = None) ObservationFields[source]

Returns the observation with the given id or reference, if any. Identify the observation by specifying only one of observationId or observationReference. If more than one is provided, all must match. If neither are set, nothing will match.

classmethod observations(include_deleted: bool, *, where: WhereObservation | None = None, offset: Any | None = None, limit: Any | None = None) ObservationSelectResultFields[source]

Selects the first LIMIT matching observations based on the provided WHERE parameter, if any.

classmethod observing_mode_group(include_deleted: bool, *, program_id: Any | None = None, proposal_reference: Any | None = None, program_reference: Any | None = None, where: WhereObservation | None = None, limit: Any | None = None) ObservingModeGroupSelectResultFields[source]

Observations grouped by commonly held observing modes. Identify the program by specifying only one of programId, programReference, or proposalReference. If more than one is provided, all must match. If none are set, nothing will match.

classmethod program(*, program_id: Any | None = None, proposal_reference: Any | None = None, program_reference: Any | None = None) ProgramFields[source]

Returns the program with the given id or reference, if any. Identify the program by specifying only one of programId, programReference, or proposalReference. If more than one is provided, all must match. If none are set, nothing will match.

classmethod program_note(program_note_id: Any) ProgramNoteFields[source]

Selects the program note with the given id, if any.

classmethod program_notes(include_deleted: bool, *, where: WhereProgramNote | None = None, offset: Any | None = None, limit: Any | None = None) ProgramNoteSelectResultFields[source]

Selects the first LIMIT matching program notes based on the provided WHERE parameter, if any.

classmethod program_users(include_deleted: bool, *, where: WhereProgramUser | None = None, offset: Any | None = None, limit: Any | None = None) ProgramUserSelectResultFields[source]

Selects the first LIMIT matching program users based on the provided WHERE parameter, if any.

classmethod programs(include_deleted: bool, *, where: WhereProgram | None = None, offset: Any | None = None, limit: Any | None = None) ProgramSelectResultFields[source]

Selects the first LIMIT matching programs based on the provided WHERE parameter, if any.

classmethod proposal_status_meta() ProposalStatusMetaFields[source]

Metadata for `enum ProposalStatus

classmethod spectroscopy_config_options(*, where: WhereSpectroscopyConfigOption | None = None) SpectroscopyConfigOptionFields[source]

Spectroscopy configuration options matching the WHERE parameter.

classmethod target(target_id: Any) TargetFields[source]

Retrieves the target with the given id, if it exists

classmethod target_group(include_deleted: bool, *, program_id: Any | None = None, proposal_reference: Any | None = None, program_reference: Any | None = None, where: WhereObservation | None = None, limit: Any | None = None) TargetGroupSelectResultFields[source]

Observations grouped by commonly held targets. Identify the program by specifying only one of programId, programReference, or proposalReference. If more than one is provided, all must match. If none are set, nothing will match.

classmethod targets(include_deleted: bool, *, where: WhereTarget | None = None, offset: Any | None = None, limit: Any | None = None) TargetSelectResultFields[source]

Selects the first LIMIT matching targets based on the provided WHERE parameter, if any.