jobber

package
v0.0.0-...-e43c85d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2025 License: MIT Imports: 22 Imported by: 0

README

Jobber connector

Supported Objects

Below is an exhaustive list of objects & methods support ed on the objects


Object Resource Method
appAlerts appAlerts read
apps apps read
capitalLoans capitalLoans read
clientEmails clientEmails read
clientPhones clientPhones read
clients clients read
Expenses Expenses read
invoices invoices read
jobs jobs read
paymentsRecords paymentsRecords read
payoutRecords payoutRecords read
products products read
properties properties read
quotes quotes read
requestSettingsCollection requestSettingsCollection read
requests requests read
scheduledItems scheduledItems read
similarClients similarClients read
tasks tasks read
taxRates taxRates read
timeSheetEntries timeSheetEntries read
users users read
vehicles vehicles read
vists vists read
client clientCreate, clientEdit write
event eventCreate write
expenseCreate
expense expenseEdit write
expenseDelete
job jobCreate jobEdit write
productsAndServices productsAndServicesCreate write
productAndServicesEdit write
quote quoteCreate quoteEdit write
request requestCreate requestEdit write
tax taxCreate write
taxGroup taxGroupCreate write
vehicle vehicleCreate vehicleDelete write
-------------------------------------------------------------------------

Documentation

Overview

nolint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// Basic connector
	*components.Connector

	// Require authenticated client
	common.RequireAuthenticatedClient

	// Supported operations
	components.SchemaProvider
	components.Reader
	components.Writer
	components.Deleter
}

func NewConnector

func NewConnector(params common.ConnectorParams) (*Connector, error)

type ErrorDetails

type ErrorDetails struct {
	Message    string `json:"message,omitempty"`
	Locations  any    `json:"locations,omitempty"`
	Path       any    `json:"path,omitempty"`
	Extensions any    `json:"extensions,omitempty"`
}

type Field

type Field struct {
	Name string   `json:"name"`
	Type TypeInfo `json:"type"`
}

Field represents a field in the GraphQL schema.

type MetadataResponse

type MetadataResponse struct {
	Data struct {
		Type TypeMetadata `json:"__type"`
	} `json:"data"`
}

MetadataResponse represents the response structure for metadata queries. nolint

type OfTypeInfo

type OfTypeInfo struct {
	Name string   `json:"name"`
	Kind TypeKind `json:"kind"`
}

type Response

type Response struct {
	Errors any          `json:"errors"`
	Data   ResponseData `json:"data"`
}

type ResponseData

type ResponseData struct {
	Users       []map[string]any `json:"users,omitempty"`
	Transcripts []map[string]any `json:"transcripts,omitempty"`
	Bites       []map[string]any `json:"bites,omitempty"`
}

type ResponseError

type ResponseError struct {
	Errors []ErrorDetails `json:"errors"`
}

ResponseError represents an error response from the Jobber API.

func (ResponseError) CombineErr

func (r ResponseError) CombineErr(base error) error

type TypeInfo

type TypeInfo struct {
	Name   string     `json:"name"`
	Kind   TypeKind   `json:"kind"`
	OfType OfTypeInfo `json:"ofType"`
}

TypeInfo represents the type information in the GraphQL schema.

type TypeKind

type TypeKind string
const (
	KindScalar  TypeKind = "SCALAR"
	KindObject  TypeKind = "OBJECT"
	KindNonNull TypeKind = "NON_NULL"
	KindList    TypeKind = "LIST"
)

type TypeMetadata

type TypeMetadata struct {
	Name   string  `json:"name"`
	Fields []Field `json:"fields"`
}

TypeMetadata represents the type metadata in the GraphQL schema.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL