mutations

package
v0.0.0-...-c869e04 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthCookieKey = envy.Get("BUDGETAL_COOKIE", "_budgetal_session")

AuthCookieKey is used to get part of the API key for the session given to the user-agent

View Source
var AuthHeaderKey = envy.Get("BUDGETAL_HEADER", "X-Budgetal-Session")

AuthHeaderKey is used to get part of the API key for the session given to the client

View Source
var CookieDomain = envy.Get("COOKIE_DOMAIN", "api.budgetal.com")

CookieDomain is the domain value sent in API cookies

View Source
var Env = envy.Get("GO_ENV", "development")

Env is the current environment variable of the app

Functions

func AllowedMonth

func AllowedMonth(month int) bool

AllowedMonth validates calendar months

func AllowedNetWorthYear

func AllowedNetWorthYear(year int) bool

AllowedNetWorthYear validates net worth years

func AnnualBudgetItemDelete

func AnnualBudgetItemDelete(params graphql.ResolveParams) (interface{}, error)

AnnualBudgetItemDelete will delete an annaul budget item

func AnnualBudgetItemUpsert

func AnnualBudgetItemUpsert(params graphql.ResolveParams) (interface{}, error)

AnnualBudgetItemUpsert will insert or update an annual budget item

func AssetDelete

func AssetDelete(params graphql.ResolveParams) (interface{}, error)

AssetDelete will delete an asset or liability

func AssetUpsert

func AssetUpsert(params graphql.ResolveParams) (interface{}, error)

AssetUpsert will insert or update an asset or liability

func BudgetCategoryImport

func BudgetCategoryImport(params graphql.ResolveParams) (interface{}, error)

BudgetCategoryImport will delete an annaul budget item

func BudgetIncomeUpdate

func BudgetIncomeUpdate(params graphql.ResolveParams) (interface{}, error)

BudgetIncomeUpdate will update the income for a budget

func BudgetItemDelete

func BudgetItemDelete(params graphql.ResolveParams) (interface{}, error)

BudgetItemDelete will delete a budget item

func BudgetItemExpenseDelete

func BudgetItemExpenseDelete(params graphql.ResolveParams) (interface{}, error)

BudgetItemExpenseDelete will delete a budget item expense

func BudgetItemExpenseUpsert

func BudgetItemExpenseUpsert(params graphql.ResolveParams) (interface{}, error)

BudgetItemExpenseUpsert will insert or update a budget item expense

func BudgetItemUpsert

func BudgetItemUpsert(params graphql.ResolveParams) (interface{}, error)

BudgetItemUpsert will insert or update a budget item

func NetWorthItemImport

func NetWorthItemImport(params graphql.ResolveParams) (interface{}, error)

NetWorthItemImport will import items from a previous month

func Register

func Register(params graphql.ResolveParams) (interface{}, error)

Register will sign up a new user

func RequestPasswordReset

func RequestPasswordReset(params graphql.ResolveParams) (interface{}, error)

RequestPasswordReset tries to send a password reset email

func ResetPassword

func ResetPassword(params graphql.ResolveParams) (interface{}, error)

ResetPassword resets a user's password

func SessionDelete

func SessionDelete(params graphql.ResolveParams) (interface{}, error)

SessionDelete will sign out another session

func SignIn

func SignIn(params graphql.ResolveParams) (interface{}, error)

SignIn will sign in a user

func SignOut

func SignOut(params graphql.ResolveParams) (interface{}, error)

SignOut will sign out a logged in user

func UpdatePushNotificationToken

func UpdatePushNotificationToken(params graphql.ResolveParams) (interface{}, error)

UpdatePushNotificationToken will update the current session's push notification token

func UserChangePassword

func UserChangePassword(params graphql.ResolveParams) (interface{}, error)

UserChangePassword will update the current user's password

func UserUpdate

func UserUpdate(params graphql.ResolveParams) (interface{}, error)

UserUpdate will update the current user

Types

This section is empty.

Jump to

Keyboard shortcuts

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