Documentation
¶
Overview ¶
Package huma provides a Go client for the Huma HR API.
The client handles OAuth2 authentication using client credentials and provides type-safe access to the Huma HR API endpoints.
Usage ¶
Create a new client with your credentials:
client := huma.New(&huma.ClientCredentials{
ClientId: "your-client-id",
ClientSecret: "your-client-secret",
})
// Make API calls - authentication is handled automatically
resp, err := client.GetEmployeesWithResponse(ctx)
Custom HTTP Client ¶
You can provide a custom http.Client for advanced use cases like proxies or custom timeouts:
client := huma.New(creds, huma.WithHttpClient(&http.Client{
Timeout: 30 * time.Second,
}))
Package huma provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
Index ¶
- Constants
- func NewAddUserChildRequest(server string, userId string, body AddUserChildJSONRequestBody) (*http.Request, error)
- func NewAddUserChildRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddUserEmergencyContactRequest(server string, userId string, body AddUserEmergencyContactJSONRequestBody) (*http.Request, error)
- func NewAddUserEmergencyContactRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddUserIdentificationRequest(server string, userId string, body AddUserIdentificationJSONRequestBody) (*http.Request, error)
- func NewAddUserIdentificationRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddUserSubordinatesRequest(server string, id string, body AddUserSubordinatesJSONRequestBody) (*http.Request, error)
- func NewAddUserSubordinatesRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddUserToGroupsRequest(server string, id string, body AddUserToGroupsJSONRequestBody) (*http.Request, error)
- func NewAddUserToGroupsRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)
- func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetUserRequest(server string, id string) (*http.Request, error)
- func NewGetUserSupervisorRequest(server string, id string) (*http.Request, error)
- func NewGetUserWorkScheduleRequest(server string, id string) (*http.Request, error)
- func NewListGroupsRequest(server string, params *ListGroupsParams) (*http.Request, error)
- func NewListJobTitlesRequest(server string, params *ListJobTitlesParams) (*http.Request, error)
- func NewListJubileesRequest(server string, params *ListJubileesParams) (*http.Request, error)
- func NewListPublicHolidaysRequest(server string, countryCode string, params *ListPublicHolidaysParams) (*http.Request, error)
- func NewListUserPermissionsRequest(server string, id string) (*http.Request, error)
- func NewListUserSubordinatesRequest(server string, id string) (*http.Request, error)
- func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
- func NewRemoveUserChildRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
- func NewRemoveUserEmergencyContactRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
- func NewRemoveUserFromGroupsRequest(server string, id string, body RemoveUserFromGroupsJSONRequestBody) (*http.Request, error)
- func NewRemoveUserFromGroupsRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveUserIdentificationRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
- func NewRevokeRequest(server string) (*http.Request, error)
- func NewTokenFormRequest(server string, params *TokenFormParams, body TokenFormJSONRequestBody) (*http.Request, error)
- func NewTokenFormRequestWithBody(server string, params *TokenFormParams, contentType string, body io.Reader) (*http.Request, error)
- func NewTokenFormRequestWithFormdataBody(server string, params *TokenFormParams, body TokenFormFormdataRequestBody) (*http.Request, error)
- func NewUpdateUserChildRequest(server string, userId string, id openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateUserChildRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewUpdateUserEmergencyContactRequest(server string, userId string, id openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateUserEmergencyContactRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewUpdateUserIdentificationRequest(server string, userId string, id openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateUserIdentificationRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewUpdateUserRequest(server string, id string, body UpdateUserJSONRequestBody) (*http.Request, error)
- func NewUpdateUserRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- type APIClient
- func (c *APIClient) AddUserChild(ctx context.Context, userId string, body AddUserChildJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddUserChildWithBody(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) AddUserEmergencyContact(ctx context.Context, userId string, ...) (*http.Response, error)
- func (c *APIClient) AddUserEmergencyContactWithBody(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) AddUserIdentification(ctx context.Context, userId string, body AddUserIdentificationJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddUserIdentificationWithBody(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) AddUserSubordinates(ctx context.Context, id string, body AddUserSubordinatesJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddUserSubordinatesWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) AddUserToGroups(ctx context.Context, id string, body AddUserToGroupsJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddUserToGroupsWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) GetUserSupervisor(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) GetUserWorkSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) ListGroups(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) ListJobTitles(ctx context.Context, params *ListJobTitlesParams, ...) (*http.Response, error)
- func (c *APIClient) ListJubilees(ctx context.Context, params *ListJubileesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) ListPublicHolidays(ctx context.Context, countryCode string, params *ListPublicHolidaysParams, ...) (*http.Response, error)
- func (c *APIClient) ListUserPermissions(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) ListUserSubordinates(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) RemoveUserChild(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) RemoveUserEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) RemoveUserFromGroups(ctx context.Context, id string, body RemoveUserFromGroupsJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) RemoveUserFromGroupsWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) RemoveUserIdentification(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) Revoke(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) TokenForm(ctx context.Context, params *TokenFormParams, body TokenFormJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) TokenFormWithBody(ctx context.Context, params *TokenFormParams, contentType string, ...) (*http.Response, error)
- func (c *APIClient) TokenFormWithFormdataBody(ctx context.Context, params *TokenFormParams, ...) (*http.Response, error)
- func (c *APIClient) UpdateUser(ctx context.Context, id string, body UpdateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) UpdateUserChild(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) UpdateUserChildWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *APIClient) UpdateUserEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) UpdateUserEmergencyContactWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *APIClient) UpdateUserIdentification(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) UpdateUserIdentificationWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *APIClient) UpdateUserWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- type AccountStatus
- type AddUserChildJSONRequestBody
- type AddUserChildResponse
- type AddUserEmergencyContactJSONRequestBody
- type AddUserEmergencyContactResponse
- type AddUserIdentificationJSONRequestBody
- type AddUserIdentificationResponse
- type AddUserSubordinatesJSONBody
- type AddUserSubordinatesJSONRequestBody
- type AddUserSubordinatesResponse
- type AddUserToGroupsJSONBody
- type AddUserToGroupsJSONRequestBody
- type AddUserToGroupsResponse
- type Address
- type AddressUpdateInput
- type AuthCodeGrantTypeInput
- type AuthCodeGrantTypeInputProvider
- type BankAccount
- type BankAccountInput
- type BirthDateField
- type BirthDateFieldCompleteness
- type ChildInput
- type Client
- type ClientCredentials
- type ClientCredentialsGrantTypeInput
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddUserChildWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*AddUserChildResponse, error)
- func (c *ClientWithResponses) AddUserChildWithResponse(ctx context.Context, userId string, body AddUserChildJSONRequestBody, ...) (*AddUserChildResponse, error)
- func (c *ClientWithResponses) AddUserEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*AddUserEmergencyContactResponse, error)
- func (c *ClientWithResponses) AddUserEmergencyContactWithResponse(ctx context.Context, userId string, ...) (*AddUserEmergencyContactResponse, error)
- func (c *ClientWithResponses) AddUserIdentificationWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*AddUserIdentificationResponse, error)
- func (c *ClientWithResponses) AddUserIdentificationWithResponse(ctx context.Context, userId string, body AddUserIdentificationJSONRequestBody, ...) (*AddUserIdentificationResponse, error)
- func (c *ClientWithResponses) AddUserSubordinatesWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*AddUserSubordinatesResponse, error)
- func (c *ClientWithResponses) AddUserSubordinatesWithResponse(ctx context.Context, id string, body AddUserSubordinatesJSONRequestBody, ...) (*AddUserSubordinatesResponse, error)
- func (c *ClientWithResponses) AddUserToGroupsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*AddUserToGroupsResponse, error)
- func (c *ClientWithResponses) AddUserToGroupsWithResponse(ctx context.Context, id string, body AddUserToGroupsJSONRequestBody, ...) (*AddUserToGroupsResponse, error)
- func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) GetUserSupervisorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserSupervisorResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
- func (c *ClientWithResponses) GetUserWorkScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserWorkScheduleResponse, error)
- func (c *ClientWithResponses) ListGroupsWithResponse(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*ListGroupsResponse, error)
- func (c *ClientWithResponses) ListJobTitlesWithResponse(ctx context.Context, params *ListJobTitlesParams, ...) (*ListJobTitlesResponse, error)
- func (c *ClientWithResponses) ListJubileesWithResponse(ctx context.Context, params *ListJubileesParams, reqEditors ...RequestEditorFn) (*ListJubileesResponse, error)
- func (c *ClientWithResponses) ListPublicHolidaysWithResponse(ctx context.Context, countryCode string, params *ListPublicHolidaysParams, ...) (*ListPublicHolidaysResponse, error)
- func (c *ClientWithResponses) ListUserPermissionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListUserPermissionsResponse, error)
- func (c *ClientWithResponses) ListUserSubordinatesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListUserSubordinatesResponse, error)
- func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
- func (c *ClientWithResponses) RemoveUserChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*RemoveUserChildResponse, error)
- func (c *ClientWithResponses) RemoveUserEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*RemoveUserEmergencyContactResponse, error)
- func (c *ClientWithResponses) RemoveUserFromGroupsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*RemoveUserFromGroupsResponse, error)
- func (c *ClientWithResponses) RemoveUserFromGroupsWithResponse(ctx context.Context, id string, body RemoveUserFromGroupsJSONRequestBody, ...) (*RemoveUserFromGroupsResponse, error)
- func (c *ClientWithResponses) RemoveUserIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*RemoveUserIdentificationResponse, error)
- func (c *ClientWithResponses) RevokeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeResponse, error)
- func (c *ClientWithResponses) TokenFormWithBodyWithResponse(ctx context.Context, params *TokenFormParams, contentType string, ...) (*TokenFormResponse, error)
- func (c *ClientWithResponses) TokenFormWithFormdataBodyWithResponse(ctx context.Context, params *TokenFormParams, ...) (*TokenFormResponse, error)
- func (c *ClientWithResponses) TokenFormWithResponse(ctx context.Context, params *TokenFormParams, body TokenFormJSONRequestBody, ...) (*TokenFormResponse, error)
- func (c *ClientWithResponses) UpdateUserChildWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*UpdateUserChildResponse, error)
- func (c *ClientWithResponses) UpdateUserChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*UpdateUserChildResponse, error)
- func (c *ClientWithResponses) UpdateUserEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*UpdateUserEmergencyContactResponse, error)
- func (c *ClientWithResponses) UpdateUserEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*UpdateUserEmergencyContactResponse, error)
- func (c *ClientWithResponses) UpdateUserIdentificationWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*UpdateUserIdentificationResponse, error)
- func (c *ClientWithResponses) UpdateUserIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*UpdateUserIdentificationResponse, error)
- func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateUserResponse, error)
- func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, id string, body UpdateUserJSONRequestBody, ...) (*UpdateUserResponse, error)
- type ClientWithResponsesInterface
- type Company
- type CompanyType
- type Completeness
- type CreateUserJSONRequestBody
- type CreateUserResponse
- type Credentials
- type CustomFieldObject
- type CustomFieldObjectSection
- type CustomFieldObjectType
- type EmailField
- type EmailGrantTypeInput
- type EmergencyContactInput
- type FieldAddress
- type FieldAddressCompleteness
- type FieldBankAccount
- type FieldBankAccountCompleteness
- type FieldBankAccount_Value
- func (t FieldBankAccount_Value) AsInternationalBankAccount() (InternationalBankAccount, error)
- func (t FieldBankAccount_Value) AsNationalBankAccount() (NationalBankAccount, error)
- func (t *FieldBankAccount_Value) FromInternationalBankAccount(v InternationalBankAccount) error
- func (t *FieldBankAccount_Value) FromNationalBankAccount(v NationalBankAccount) error
- func (t FieldBankAccount_Value) MarshalJSON() ([]byte, error)
- func (t *FieldBankAccount_Value) MergeInternationalBankAccount(v InternationalBankAccount) error
- func (t *FieldBankAccount_Value) MergeNationalBankAccount(v NationalBankAccount) error
- func (t *FieldBankAccount_Value) UnmarshalJSON(b []byte) error
- type FieldBoolean
- type FieldBooleanCompleteness
- type FieldCivilStatus
- type FieldCivilStatusCompleteness
- type FieldCivilStatusValue
- type FieldEmploymentType
- type FieldEmploymentTypeCompleteness
- type FieldEmploymentTypeValue
- type FieldHumaImage
- type FieldHumaImageCompleteness
- type FieldInteger
- type FieldIntegerCompleteness
- type FieldJobTitle
- type FieldJobTitleCompleteness
- type FieldListCompany
- type FieldListCompanyCompleteness
- type FieldListGroup
- type FieldListGroupCompleteness
- type FieldListLocation
- type FieldListLocationCompleteness
- type FieldListString
- type FieldListStringCompleteness
- type FieldListTeam
- type FieldListTeamCompleteness
- type FieldListUserChild
- type FieldListUserChildCompleteness
- type FieldListUserEmergencyContact
- type FieldListUserEmergencyContactCompleteness
- type FieldListUserIdentification
- type FieldListUserIdentificationCompleteness
- type FieldSalary
- type FieldSalaryCompleteness
- type FieldSimpleUser
- type FieldSimpleUserCompleteness
- type FieldString
- type FieldStringCompleteness
- type GetUserResponse
- type GetUserSupervisorResponse
- type GetUserWorkScheduleResponse
- type GrantTypeInput
- type Group
- type Header
- type HeaderElement
- type HttpEntity
- type HttpParams
- type HttpRequestDoer
- type HttpResponse
- type HumaImage
- type IdentificationInput
- type IdentificationInputType
- type IntegrationExternalUserRef
- type IntegrationMeta
- type IntegrationMetaWarning
- type InternationalBankAccount
- type InternationalBankAccountInput
- type InvalidFieldFormatResponse
- type InvalidTokenResponse
- type JobTitle
- type JobTitleSummary
- type Jubilee
- type ListGroupsParams
- type ListGroupsParamsOrderDirection
- type ListGroupsParamsType
- type ListGroupsResponse
- type ListJobTitlesParams
- type ListJobTitlesResponse
- type ListJubileesParams
- type ListJubileesParamsOrderDirection
- type ListJubileesResponse
- type ListPublicHolidaysParams
- type ListPublicHolidaysResponse
- type ListUserPermissionsResponse
- type ListUserSubordinatesResponse
- type ListUsersParams
- type ListUsersParamsOrderDirection
- type ListUsersResponse
- type LocalDateField
- type LocalDateFieldCompleteness
- type Location
- type LocationType
- type NameValuePair
- type NationalBankAccount
- type NationalBankAccountInput
- type NotFoundErrorResponse
- type Option
- type OrgUnit
- type PageGroup
- type PageJubilee
- type PageUser
- type PasswordGrantTypeInput
- type ProfileCompleteness
- type ProtocolVersion
- type RefreshGrantTypeInput
- type RemoveUserChildResponse
- type RemoveUserEmergencyContactResponse
- type RemoveUserFromGroupsJSONBody
- type RemoveUserFromGroupsJSONRequestBody
- type RemoveUserFromGroupsResponse
- type RemoveUserIdentificationResponse
- type RequestEditorFn
- type RevokeResponse
- type Salary
- type SalaryPeriodUnit
- type SimpleUser
- type SimpleUserType
- type StandardServerErrorResponse
- type StatusLine
- type Supervisor
- type Team
- type TeamType
- type TokenFormFormdataBody
- type TokenFormFormdataRequestBody
- type TokenFormJSONBody
- type TokenFormJSONRequestBody
- type TokenFormParams
- type TokenFormResponse
- type UpdateUserChildJSONRequestBody
- type UpdateUserChildResponse
- type UpdateUserEmergencyContactJSONRequestBody
- type UpdateUserEmergencyContactResponse
- type UpdateUserIdentificationJSONRequestBody
- type UpdateUserIdentificationResponse
- type UpdateUserJSONRequestBody
- type UpdateUserResponse
- type User
- type UserChild
- type UserDetails
- type UserDetailsInput
- type UserDetailsInputCivilStatus
- type UserDetailsInputEmploymentType
- type UserDetailsInput_BankAccount
- func (t UserDetailsInput_BankAccount) AsInternationalBankAccountInput() (InternationalBankAccountInput, error)
- func (t UserDetailsInput_BankAccount) AsNationalBankAccountInput() (NationalBankAccountInput, error)
- func (t *UserDetailsInput_BankAccount) FromInternationalBankAccountInput(v InternationalBankAccountInput) error
- func (t *UserDetailsInput_BankAccount) FromNationalBankAccountInput(v NationalBankAccountInput) error
- func (t UserDetailsInput_BankAccount) MarshalJSON() ([]byte, error)
- func (t *UserDetailsInput_BankAccount) MergeInternationalBankAccountInput(v InternationalBankAccountInput) error
- func (t *UserDetailsInput_BankAccount) MergeNationalBankAccountInput(v NationalBankAccountInput) error
- func (t *UserDetailsInput_BankAccount) UnmarshalJSON(b []byte) error
- type UserDetailsType
- type UserEmergencyContact
- type UserIdentification
- type UserIdentificationType
- type UserInput
- type UserType
- type WorkSchedule
- type WorkScheduleWeekWorkDays
Constants ¶
const (
AuthenticationScopes = "authentication.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewAddUserChildRequest ¶
func NewAddUserChildRequest(server string, userId string, body AddUserChildJSONRequestBody) (*http.Request, error)
NewAddUserChildRequest calls the generic AddUserChild builder with application/json body
func NewAddUserChildRequestWithBody ¶
func NewAddUserChildRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
NewAddUserChildRequestWithBody generates requests for AddUserChild with any type of body
func NewAddUserEmergencyContactRequest ¶
func NewAddUserEmergencyContactRequest(server string, userId string, body AddUserEmergencyContactJSONRequestBody) (*http.Request, error)
NewAddUserEmergencyContactRequest calls the generic AddUserEmergencyContact builder with application/json body
func NewAddUserEmergencyContactRequestWithBody ¶
func NewAddUserEmergencyContactRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
NewAddUserEmergencyContactRequestWithBody generates requests for AddUserEmergencyContact with any type of body
func NewAddUserIdentificationRequest ¶
func NewAddUserIdentificationRequest(server string, userId string, body AddUserIdentificationJSONRequestBody) (*http.Request, error)
NewAddUserIdentificationRequest calls the generic AddUserIdentification builder with application/json body
func NewAddUserIdentificationRequestWithBody ¶
func NewAddUserIdentificationRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
NewAddUserIdentificationRequestWithBody generates requests for AddUserIdentification with any type of body
func NewAddUserSubordinatesRequest ¶
func NewAddUserSubordinatesRequest(server string, id string, body AddUserSubordinatesJSONRequestBody) (*http.Request, error)
NewAddUserSubordinatesRequest calls the generic AddUserSubordinates builder with application/json body
func NewAddUserSubordinatesRequestWithBody ¶
func NewAddUserSubordinatesRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewAddUserSubordinatesRequestWithBody generates requests for AddUserSubordinates with any type of body
func NewAddUserToGroupsRequest ¶
func NewAddUserToGroupsRequest(server string, id string, body AddUserToGroupsJSONRequestBody) (*http.Request, error)
NewAddUserToGroupsRequest calls the generic AddUserToGroups builder with application/json body
func NewAddUserToGroupsRequestWithBody ¶
func NewAddUserToGroupsRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewAddUserToGroupsRequestWithBody generates requests for AddUserToGroups with any type of body
func NewCreateUserRequest ¶
func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)
NewCreateUserRequest calls the generic CreateUser builder with application/json body
func NewCreateUserRequestWithBody ¶
func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateUserRequestWithBody generates requests for CreateUser with any type of body
func NewGetUserRequest ¶
NewGetUserRequest generates requests for GetUser
func NewGetUserSupervisorRequest ¶
NewGetUserSupervisorRequest generates requests for GetUserSupervisor
func NewGetUserWorkScheduleRequest ¶
NewGetUserWorkScheduleRequest generates requests for GetUserWorkSchedule
func NewListGroupsRequest ¶
func NewListGroupsRequest(server string, params *ListGroupsParams) (*http.Request, error)
NewListGroupsRequest generates requests for ListGroups
func NewListJobTitlesRequest ¶
func NewListJobTitlesRequest(server string, params *ListJobTitlesParams) (*http.Request, error)
NewListJobTitlesRequest generates requests for ListJobTitles
func NewListJubileesRequest ¶
func NewListJubileesRequest(server string, params *ListJubileesParams) (*http.Request, error)
NewListJubileesRequest generates requests for ListJubilees
func NewListPublicHolidaysRequest ¶
func NewListPublicHolidaysRequest(server string, countryCode string, params *ListPublicHolidaysParams) (*http.Request, error)
NewListPublicHolidaysRequest generates requests for ListPublicHolidays
func NewListUserPermissionsRequest ¶
NewListUserPermissionsRequest generates requests for ListUserPermissions
func NewListUserSubordinatesRequest ¶
NewListUserSubordinatesRequest generates requests for ListUserSubordinates
func NewListUsersRequest ¶
func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
NewListUsersRequest generates requests for ListUsers
func NewRemoveUserChildRequest ¶
func NewRemoveUserChildRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
NewRemoveUserChildRequest generates requests for RemoveUserChild
func NewRemoveUserEmergencyContactRequest ¶
func NewRemoveUserEmergencyContactRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
NewRemoveUserEmergencyContactRequest generates requests for RemoveUserEmergencyContact
func NewRemoveUserFromGroupsRequest ¶
func NewRemoveUserFromGroupsRequest(server string, id string, body RemoveUserFromGroupsJSONRequestBody) (*http.Request, error)
NewRemoveUserFromGroupsRequest calls the generic RemoveUserFromGroups builder with application/json body
func NewRemoveUserFromGroupsRequestWithBody ¶
func NewRemoveUserFromGroupsRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveUserFromGroupsRequestWithBody generates requests for RemoveUserFromGroups with any type of body
func NewRemoveUserIdentificationRequest ¶
func NewRemoveUserIdentificationRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
NewRemoveUserIdentificationRequest generates requests for RemoveUserIdentification
func NewRevokeRequest ¶
NewRevokeRequest generates requests for Revoke
func NewTokenFormRequest ¶
func NewTokenFormRequest(server string, params *TokenFormParams, body TokenFormJSONRequestBody) (*http.Request, error)
NewTokenFormRequest calls the generic TokenForm builder with application/json body
func NewTokenFormRequestWithBody ¶
func NewTokenFormRequestWithBody(server string, params *TokenFormParams, contentType string, body io.Reader) (*http.Request, error)
NewTokenFormRequestWithBody generates requests for TokenForm with any type of body
func NewTokenFormRequestWithFormdataBody ¶
func NewTokenFormRequestWithFormdataBody(server string, params *TokenFormParams, body TokenFormFormdataRequestBody) (*http.Request, error)
NewTokenFormRequestWithFormdataBody calls the generic TokenForm builder with application/x-www-form-urlencoded body
func NewUpdateUserChildRequest ¶
func NewUpdateUserChildRequest(server string, userId string, id openapi_types.UUID, body UpdateUserChildJSONRequestBody) (*http.Request, error)
NewUpdateUserChildRequest calls the generic UpdateUserChild builder with application/json body
func NewUpdateUserChildRequestWithBody ¶
func NewUpdateUserChildRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateUserChildRequestWithBody generates requests for UpdateUserChild with any type of body
func NewUpdateUserEmergencyContactRequest ¶
func NewUpdateUserEmergencyContactRequest(server string, userId string, id openapi_types.UUID, body UpdateUserEmergencyContactJSONRequestBody) (*http.Request, error)
NewUpdateUserEmergencyContactRequest calls the generic UpdateUserEmergencyContact builder with application/json body
func NewUpdateUserEmergencyContactRequestWithBody ¶
func NewUpdateUserEmergencyContactRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateUserEmergencyContactRequestWithBody generates requests for UpdateUserEmergencyContact with any type of body
func NewUpdateUserIdentificationRequest ¶
func NewUpdateUserIdentificationRequest(server string, userId string, id openapi_types.UUID, body UpdateUserIdentificationJSONRequestBody) (*http.Request, error)
NewUpdateUserIdentificationRequest calls the generic UpdateUserIdentification builder with application/json body
func NewUpdateUserIdentificationRequestWithBody ¶
func NewUpdateUserIdentificationRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateUserIdentificationRequestWithBody generates requests for UpdateUserIdentification with any type of body
func NewUpdateUserRequest ¶
func NewUpdateUserRequest(server string, id string, body UpdateUserJSONRequestBody) (*http.Request, error)
NewUpdateUserRequest calls the generic UpdateUser builder with application/json body
Types ¶
type APIClient ¶
type APIClient struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
APIClient which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*APIClient, error)
Creates a new APIClient, with reasonable defaults
func (*APIClient) AddUserChild ¶
func (c *APIClient) AddUserChild(ctx context.Context, userId string, body AddUserChildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddUserChildWithBody ¶
func (*APIClient) AddUserEmergencyContact ¶
func (c *APIClient) AddUserEmergencyContact(ctx context.Context, userId string, body AddUserEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddUserEmergencyContactWithBody ¶
func (*APIClient) AddUserIdentification ¶
func (c *APIClient) AddUserIdentification(ctx context.Context, userId string, body AddUserIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddUserIdentificationWithBody ¶
func (*APIClient) AddUserSubordinates ¶
func (c *APIClient) AddUserSubordinates(ctx context.Context, id string, body AddUserSubordinatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddUserSubordinatesWithBody ¶
func (*APIClient) AddUserToGroups ¶
func (c *APIClient) AddUserToGroups(ctx context.Context, id string, body AddUserToGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddUserToGroupsWithBody ¶
func (*APIClient) CreateUser ¶
func (c *APIClient) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) CreateUserWithBody ¶
func (*APIClient) GetUserSupervisor ¶
func (*APIClient) GetUserWorkSchedule ¶
func (*APIClient) ListGroups ¶
func (c *APIClient) ListGroups(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) ListJobTitles ¶
func (c *APIClient) ListJobTitles(ctx context.Context, params *ListJobTitlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) ListJubilees ¶
func (c *APIClient) ListJubilees(ctx context.Context, params *ListJubileesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) ListPublicHolidays ¶
func (c *APIClient) ListPublicHolidays(ctx context.Context, countryCode string, params *ListPublicHolidaysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) ListUserPermissions ¶
func (*APIClient) ListUserSubordinates ¶
func (*APIClient) ListUsers ¶
func (c *APIClient) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) RemoveUserChild ¶
func (c *APIClient) RemoveUserChild(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) RemoveUserEmergencyContact ¶
func (c *APIClient) RemoveUserEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) RemoveUserFromGroups ¶
func (c *APIClient) RemoveUserFromGroups(ctx context.Context, id string, body RemoveUserFromGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) RemoveUserFromGroupsWithBody ¶
func (*APIClient) RemoveUserIdentification ¶
func (c *APIClient) RemoveUserIdentification(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) TokenForm ¶
func (c *APIClient) TokenForm(ctx context.Context, params *TokenFormParams, body TokenFormJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) TokenFormWithBody ¶
func (*APIClient) TokenFormWithFormdataBody ¶
func (c *APIClient) TokenFormWithFormdataBody(ctx context.Context, params *TokenFormParams, body TokenFormFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateUser ¶
func (c *APIClient) UpdateUser(ctx context.Context, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateUserChild ¶
func (c *APIClient) UpdateUserChild(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserChildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateUserChildWithBody ¶
func (*APIClient) UpdateUserEmergencyContact ¶
func (c *APIClient) UpdateUserEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateUserEmergencyContactWithBody ¶
func (*APIClient) UpdateUserIdentification ¶
func (c *APIClient) UpdateUserIdentification(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateUserIdentificationWithBody ¶
type AccountStatus ¶
type AccountStatus struct {
Active bool `json:"active"`
// DeactivatedAt Not returned in user lists
DeactivatedAt *time.Time `json:"deactivatedAt,omitempty"`
// DeactivatedBy Not returned in user lists
DeactivatedBy interface{} `json:"deactivatedBy,omitempty"`
}
AccountStatus defines model for AccountStatus.
type AddUserChildJSONRequestBody ¶
type AddUserChildJSONRequestBody = ChildInput
AddUserChildJSONRequestBody defines body for AddUserChild for application/json ContentType.
type AddUserChildResponse ¶
type AddUserChildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserChild
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddUserChildResponse ¶
func ParseAddUserChildResponse(rsp *http.Response) (*AddUserChildResponse, error)
ParseAddUserChildResponse parses an HTTP response from a AddUserChildWithResponse call
func (AddUserChildResponse) Status ¶
func (r AddUserChildResponse) Status() string
Status returns HTTPResponse.Status
func (AddUserChildResponse) StatusCode ¶
func (r AddUserChildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddUserEmergencyContactJSONRequestBody ¶
type AddUserEmergencyContactJSONRequestBody = EmergencyContactInput
AddUserEmergencyContactJSONRequestBody defines body for AddUserEmergencyContact for application/json ContentType.
type AddUserEmergencyContactResponse ¶
type AddUserEmergencyContactResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserEmergencyContact
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddUserEmergencyContactResponse ¶
func ParseAddUserEmergencyContactResponse(rsp *http.Response) (*AddUserEmergencyContactResponse, error)
ParseAddUserEmergencyContactResponse parses an HTTP response from a AddUserEmergencyContactWithResponse call
func (AddUserEmergencyContactResponse) Status ¶
func (r AddUserEmergencyContactResponse) Status() string
Status returns HTTPResponse.Status
func (AddUserEmergencyContactResponse) StatusCode ¶
func (r AddUserEmergencyContactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddUserIdentificationJSONRequestBody ¶
type AddUserIdentificationJSONRequestBody = IdentificationInput
AddUserIdentificationJSONRequestBody defines body for AddUserIdentification for application/json ContentType.
type AddUserIdentificationResponse ¶
type AddUserIdentificationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserIdentification
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddUserIdentificationResponse ¶
func ParseAddUserIdentificationResponse(rsp *http.Response) (*AddUserIdentificationResponse, error)
ParseAddUserIdentificationResponse parses an HTTP response from a AddUserIdentificationWithResponse call
func (AddUserIdentificationResponse) Status ¶
func (r AddUserIdentificationResponse) Status() string
Status returns HTTPResponse.Status
func (AddUserIdentificationResponse) StatusCode ¶
func (r AddUserIdentificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddUserSubordinatesJSONBody ¶
type AddUserSubordinatesJSONBody = []openapi_types.UUID
AddUserSubordinatesJSONBody defines parameters for AddUserSubordinates.
type AddUserSubordinatesJSONRequestBody ¶
type AddUserSubordinatesJSONRequestBody = AddUserSubordinatesJSONBody
AddUserSubordinatesJSONRequestBody defines body for AddUserSubordinates for application/json ContentType.
type AddUserSubordinatesResponse ¶
type AddUserSubordinatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]SimpleUser
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddUserSubordinatesResponse ¶
func ParseAddUserSubordinatesResponse(rsp *http.Response) (*AddUserSubordinatesResponse, error)
ParseAddUserSubordinatesResponse parses an HTTP response from a AddUserSubordinatesWithResponse call
func (AddUserSubordinatesResponse) Status ¶
func (r AddUserSubordinatesResponse) Status() string
Status returns HTTPResponse.Status
func (AddUserSubordinatesResponse) StatusCode ¶
func (r AddUserSubordinatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddUserToGroupsJSONBody ¶
type AddUserToGroupsJSONBody = []openapi_types.UUID
AddUserToGroupsJSONBody defines parameters for AddUserToGroups.
type AddUserToGroupsJSONRequestBody ¶
type AddUserToGroupsJSONRequestBody = AddUserToGroupsJSONBody
AddUserToGroupsJSONRequestBody defines body for AddUserToGroups for application/json ContentType.
type AddUserToGroupsResponse ¶
type AddUserToGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddUserToGroupsResponse ¶
func ParseAddUserToGroupsResponse(rsp *http.Response) (*AddUserToGroupsResponse, error)
ParseAddUserToGroupsResponse parses an HTTP response from a AddUserToGroupsWithResponse call
func (AddUserToGroupsResponse) Status ¶
func (r AddUserToGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (AddUserToGroupsResponse) StatusCode ¶
func (r AddUserToGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Address ¶
type Address struct {
City string `json:"city"`
Country string `json:"country"`
Line1 string `json:"line1"`
Line2 *string `json:"line2,omitempty"`
Line3 *string `json:"line3,omitempty"`
PostalCode string `json:"postalCode"`
}
Address defines model for Address.
type AddressUpdateInput ¶
type AddressUpdateInput struct {
City string `json:"city"`
Country string `json:"country"`
Line1 string `json:"line1"`
Line2 string `json:"line2"`
Line3 string `json:"line3"`
PostalCode string `json:"postalCode"`
}
AddressUpdateInput defines model for AddressUpdateInput.
type AuthCodeGrantTypeInput ¶
type AuthCodeGrantTypeInput struct {
ClientId *openapi_types.UUID `json:"client_id,omitempty"`
Code *string `json:"code,omitempty"`
GrantType string `json:"grant_type"`
Provider *AuthCodeGrantTypeInputProvider `json:"provider,omitempty"`
ProviderId *openapi_types.UUID `json:"providerId,omitempty"`
RedirectUri *string `json:"redirectUri,omitempty"`
}
AuthCodeGrantTypeInput defines model for AuthCodeGrantTypeInput.
type AuthCodeGrantTypeInputProvider ¶
type AuthCodeGrantTypeInputProvider string
AuthCodeGrantTypeInputProvider defines model for AuthCodeGrantTypeInput.Provider.
const ( Auth0 AuthCodeGrantTypeInputProvider = "auth0" Azure AuthCodeGrantTypeInputProvider = "azure" Clerk AuthCodeGrantTypeInputProvider = "clerk" EmailOtp AuthCodeGrantTypeInputProvider = "email_otp" EmailPassword AuthCodeGrantTypeInputProvider = "email_password" Google AuthCodeGrantTypeInputProvider = "google" Microsoft AuthCodeGrantTypeInputProvider = "microsoft" Okta AuthCodeGrantTypeInputProvider = "okta" OpenidConnect AuthCodeGrantTypeInputProvider = "openid_connect" )
Defines values for AuthCodeGrantTypeInputProvider.
type BankAccount ¶
BankAccount defines model for BankAccount.
type BankAccountInput ¶
type BankAccountInput struct {
Type string `json:"type"`
}
BankAccountInput defines model for BankAccountInput.
type BirthDateField ¶
type BirthDateField struct {
Completeness *BirthDateFieldCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
ShowBirthday *bool `json:"showBirthday,omitempty"`
Value *openapi_types.Date `json:"value,omitempty"`
}
BirthDateField defines model for BirthDateField.
type BirthDateFieldCompleteness ¶
type BirthDateFieldCompleteness string
BirthDateFieldCompleteness defines model for BirthDateField.Completeness.
const ( BirthDateFieldCompletenessDetails BirthDateFieldCompleteness = "details" BirthDateFieldCompletenessImportant BirthDateFieldCompleteness = "important" )
Defines values for BirthDateFieldCompleteness.
type ChildInput ¶
type ChildInput struct {
// BirthDate birthDate can be Past or Present only
BirthDate *openapi_types.Date `json:"birthDate,omitempty"`
Name string `json:"name"`
}
ChildInput defines model for ChildInput.
type Client ¶
type Client struct {
*ClientWithResponses
// contains filtered or unexported fields
}
Client is the main entry point for interacting with the Huma HR API. It wraps the generated OpenAPI client with OAuth2 authentication.
func New ¶
func New(creds *ClientCredentials, options ...Option) *Client
New creates a new Client with the given credentials.
The client automatically handles OAuth2 authentication using the client credentials flow. Tokens are obtained on first request and refreshed automatically when expired.
Options can be provided to customize client behavior:
- WithHttpClient: Use a custom http.Client as the base transport
- WithRequestInterceptor: Add request interceptors
- WithToken: Restore a previously saved token
type ClientCredentials ¶
ClientCredentials holds the OAuth2 client credentials used for authentication.
type ClientCredentialsGrantTypeInput ¶
type ClientCredentialsGrantTypeInput struct {
ClientId *openapi_types.UUID `json:"client_id,omitempty"`
ClientSecret *openapi_types.UUID `json:"client_secret,omitempty"`
GrantType string `json:"grant_type"`
}
ClientCredentialsGrantTypeInput defines model for ClientCredentialsGrantTypeInput.
type ClientInterface ¶
type ClientInterface interface {
// Revoke request
Revoke(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// TokenFormWithBody request with any body
TokenFormWithBody(ctx context.Context, params *TokenFormParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TokenForm(ctx context.Context, params *TokenFormParams, body TokenFormJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
TokenFormWithFormdataBody(ctx context.Context, params *TokenFormParams, body TokenFormFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGroups request
ListGroups(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPublicHolidays request
ListPublicHolidays(ctx context.Context, countryCode string, params *ListPublicHolidaysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListJobTitles request
ListJobTitles(ctx context.Context, params *ListJobTitlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUsers request
ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUserWithBody request with any body
CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListJubilees request
ListJubilees(ctx context.Context, params *ListJubileesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUser request
GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateUserWithBody request with any body
UpdateUserWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateUser(ctx context.Context, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveUserFromGroupsWithBody request with any body
RemoveUserFromGroupsWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveUserFromGroups(ctx context.Context, id string, body RemoveUserFromGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddUserToGroupsWithBody request with any body
AddUserToGroupsWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddUserToGroups(ctx context.Context, id string, body AddUserToGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUserPermissions request
ListUserPermissions(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUserSubordinates request
ListUserSubordinates(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddUserSubordinatesWithBody request with any body
AddUserSubordinatesWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddUserSubordinates(ctx context.Context, id string, body AddUserSubordinatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUserSupervisor request
GetUserSupervisor(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUserWorkSchedule request
GetUserWorkSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddUserChildWithBody request with any body
AddUserChildWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddUserChild(ctx context.Context, userId string, body AddUserChildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveUserChild request
RemoveUserChild(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateUserChildWithBody request with any body
UpdateUserChildWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateUserChild(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserChildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddUserEmergencyContactWithBody request with any body
AddUserEmergencyContactWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddUserEmergencyContact(ctx context.Context, userId string, body AddUserEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveUserEmergencyContact request
RemoveUserEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateUserEmergencyContactWithBody request with any body
UpdateUserEmergencyContactWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateUserEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddUserIdentificationWithBody request with any body
AddUserIdentificationWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddUserIdentification(ctx context.Context, userId string, body AddUserIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveUserIdentification request
RemoveUserIdentification(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateUserIdentificationWithBody request with any body
UpdateUserIdentificationWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateUserIdentification(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddUserChildWithBodyWithResponse ¶
func (c *ClientWithResponses) AddUserChildWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserChildResponse, error)
AddUserChildWithBodyWithResponse request with arbitrary body returning *AddUserChildResponse
func (*ClientWithResponses) AddUserChildWithResponse ¶
func (c *ClientWithResponses) AddUserChildWithResponse(ctx context.Context, userId string, body AddUserChildJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserChildResponse, error)
func (*ClientWithResponses) AddUserEmergencyContactWithBodyWithResponse ¶
func (c *ClientWithResponses) AddUserEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserEmergencyContactResponse, error)
AddUserEmergencyContactWithBodyWithResponse request with arbitrary body returning *AddUserEmergencyContactResponse
func (*ClientWithResponses) AddUserEmergencyContactWithResponse ¶
func (c *ClientWithResponses) AddUserEmergencyContactWithResponse(ctx context.Context, userId string, body AddUserEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserEmergencyContactResponse, error)
func (*ClientWithResponses) AddUserIdentificationWithBodyWithResponse ¶
func (c *ClientWithResponses) AddUserIdentificationWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserIdentificationResponse, error)
AddUserIdentificationWithBodyWithResponse request with arbitrary body returning *AddUserIdentificationResponse
func (*ClientWithResponses) AddUserIdentificationWithResponse ¶
func (c *ClientWithResponses) AddUserIdentificationWithResponse(ctx context.Context, userId string, body AddUserIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserIdentificationResponse, error)
func (*ClientWithResponses) AddUserSubordinatesWithBodyWithResponse ¶
func (c *ClientWithResponses) AddUserSubordinatesWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserSubordinatesResponse, error)
AddUserSubordinatesWithBodyWithResponse request with arbitrary body returning *AddUserSubordinatesResponse
func (*ClientWithResponses) AddUserSubordinatesWithResponse ¶
func (c *ClientWithResponses) AddUserSubordinatesWithResponse(ctx context.Context, id string, body AddUserSubordinatesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserSubordinatesResponse, error)
func (*ClientWithResponses) AddUserToGroupsWithBodyWithResponse ¶
func (c *ClientWithResponses) AddUserToGroupsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserToGroupsResponse, error)
AddUserToGroupsWithBodyWithResponse request with arbitrary body returning *AddUserToGroupsResponse
func (*ClientWithResponses) AddUserToGroupsWithResponse ¶
func (c *ClientWithResponses) AddUserToGroupsWithResponse(ctx context.Context, id string, body AddUserToGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserToGroupsResponse, error)
func (*ClientWithResponses) CreateUserWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithBodyWithResponse request with arbitrary body returning *CreateUserResponse
func (*ClientWithResponses) CreateUserWithResponse ¶
func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
func (*ClientWithResponses) GetUserSupervisorWithResponse ¶
func (c *ClientWithResponses) GetUserSupervisorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserSupervisorResponse, error)
GetUserSupervisorWithResponse request returning *GetUserSupervisorResponse
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse request returning *GetUserResponse
func (*ClientWithResponses) GetUserWorkScheduleWithResponse ¶
func (c *ClientWithResponses) GetUserWorkScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserWorkScheduleResponse, error)
GetUserWorkScheduleWithResponse request returning *GetUserWorkScheduleResponse
func (*ClientWithResponses) ListGroupsWithResponse ¶
func (c *ClientWithResponses) ListGroupsWithResponse(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*ListGroupsResponse, error)
ListGroupsWithResponse request returning *ListGroupsResponse
func (*ClientWithResponses) ListJobTitlesWithResponse ¶
func (c *ClientWithResponses) ListJobTitlesWithResponse(ctx context.Context, params *ListJobTitlesParams, reqEditors ...RequestEditorFn) (*ListJobTitlesResponse, error)
ListJobTitlesWithResponse request returning *ListJobTitlesResponse
func (*ClientWithResponses) ListJubileesWithResponse ¶
func (c *ClientWithResponses) ListJubileesWithResponse(ctx context.Context, params *ListJubileesParams, reqEditors ...RequestEditorFn) (*ListJubileesResponse, error)
ListJubileesWithResponse request returning *ListJubileesResponse
func (*ClientWithResponses) ListPublicHolidaysWithResponse ¶
func (c *ClientWithResponses) ListPublicHolidaysWithResponse(ctx context.Context, countryCode string, params *ListPublicHolidaysParams, reqEditors ...RequestEditorFn) (*ListPublicHolidaysResponse, error)
ListPublicHolidaysWithResponse request returning *ListPublicHolidaysResponse
func (*ClientWithResponses) ListUserPermissionsWithResponse ¶
func (c *ClientWithResponses) ListUserPermissionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListUserPermissionsResponse, error)
ListUserPermissionsWithResponse request returning *ListUserPermissionsResponse
func (*ClientWithResponses) ListUserSubordinatesWithResponse ¶
func (c *ClientWithResponses) ListUserSubordinatesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListUserSubordinatesResponse, error)
ListUserSubordinatesWithResponse request returning *ListUserSubordinatesResponse
func (*ClientWithResponses) ListUsersWithResponse ¶
func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithResponse request returning *ListUsersResponse
func (*ClientWithResponses) RemoveUserChildWithResponse ¶
func (c *ClientWithResponses) RemoveUserChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserChildResponse, error)
RemoveUserChildWithResponse request returning *RemoveUserChildResponse
func (*ClientWithResponses) RemoveUserEmergencyContactWithResponse ¶
func (c *ClientWithResponses) RemoveUserEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserEmergencyContactResponse, error)
RemoveUserEmergencyContactWithResponse request returning *RemoveUserEmergencyContactResponse
func (*ClientWithResponses) RemoveUserFromGroupsWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveUserFromGroupsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveUserFromGroupsResponse, error)
RemoveUserFromGroupsWithBodyWithResponse request with arbitrary body returning *RemoveUserFromGroupsResponse
func (*ClientWithResponses) RemoveUserFromGroupsWithResponse ¶
func (c *ClientWithResponses) RemoveUserFromGroupsWithResponse(ctx context.Context, id string, body RemoveUserFromGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveUserFromGroupsResponse, error)
func (*ClientWithResponses) RemoveUserIdentificationWithResponse ¶
func (c *ClientWithResponses) RemoveUserIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserIdentificationResponse, error)
RemoveUserIdentificationWithResponse request returning *RemoveUserIdentificationResponse
func (*ClientWithResponses) RevokeWithResponse ¶
func (c *ClientWithResponses) RevokeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeResponse, error)
RevokeWithResponse request returning *RevokeResponse
func (*ClientWithResponses) TokenFormWithBodyWithResponse ¶
func (c *ClientWithResponses) TokenFormWithBodyWithResponse(ctx context.Context, params *TokenFormParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TokenFormResponse, error)
TokenFormWithBodyWithResponse request with arbitrary body returning *TokenFormResponse
func (*ClientWithResponses) TokenFormWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) TokenFormWithFormdataBodyWithResponse(ctx context.Context, params *TokenFormParams, body TokenFormFormdataRequestBody, reqEditors ...RequestEditorFn) (*TokenFormResponse, error)
func (*ClientWithResponses) TokenFormWithResponse ¶
func (c *ClientWithResponses) TokenFormWithResponse(ctx context.Context, params *TokenFormParams, body TokenFormJSONRequestBody, reqEditors ...RequestEditorFn) (*TokenFormResponse, error)
func (*ClientWithResponses) UpdateUserChildWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateUserChildWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserChildResponse, error)
UpdateUserChildWithBodyWithResponse request with arbitrary body returning *UpdateUserChildResponse
func (*ClientWithResponses) UpdateUserChildWithResponse ¶
func (c *ClientWithResponses) UpdateUserChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserChildJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserChildResponse, error)
func (*ClientWithResponses) UpdateUserEmergencyContactWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateUserEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserEmergencyContactResponse, error)
UpdateUserEmergencyContactWithBodyWithResponse request with arbitrary body returning *UpdateUserEmergencyContactResponse
func (*ClientWithResponses) UpdateUserEmergencyContactWithResponse ¶
func (c *ClientWithResponses) UpdateUserEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserEmergencyContactResponse, error)
func (*ClientWithResponses) UpdateUserIdentificationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateUserIdentificationWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserIdentificationResponse, error)
UpdateUserIdentificationWithBodyWithResponse request with arbitrary body returning *UpdateUserIdentificationResponse
func (*ClientWithResponses) UpdateUserIdentificationWithResponse ¶
func (c *ClientWithResponses) UpdateUserIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserIdentificationResponse, error)
func (*ClientWithResponses) UpdateUserWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse
func (*ClientWithResponses) UpdateUserWithResponse ¶
func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// RevokeWithResponse request
RevokeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeResponse, error)
// TokenFormWithBodyWithResponse request with any body
TokenFormWithBodyWithResponse(ctx context.Context, params *TokenFormParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TokenFormResponse, error)
TokenFormWithResponse(ctx context.Context, params *TokenFormParams, body TokenFormJSONRequestBody, reqEditors ...RequestEditorFn) (*TokenFormResponse, error)
TokenFormWithFormdataBodyWithResponse(ctx context.Context, params *TokenFormParams, body TokenFormFormdataRequestBody, reqEditors ...RequestEditorFn) (*TokenFormResponse, error)
// ListGroupsWithResponse request
ListGroupsWithResponse(ctx context.Context, params *ListGroupsParams, reqEditors ...RequestEditorFn) (*ListGroupsResponse, error)
// ListPublicHolidaysWithResponse request
ListPublicHolidaysWithResponse(ctx context.Context, countryCode string, params *ListPublicHolidaysParams, reqEditors ...RequestEditorFn) (*ListPublicHolidaysResponse, error)
// ListJobTitlesWithResponse request
ListJobTitlesWithResponse(ctx context.Context, params *ListJobTitlesParams, reqEditors ...RequestEditorFn) (*ListJobTitlesResponse, error)
// ListUsersWithResponse request
ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
// CreateUserWithBodyWithResponse request with any body
CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
// ListJubileesWithResponse request
ListJubileesWithResponse(ctx context.Context, params *ListJubileesParams, reqEditors ...RequestEditorFn) (*ListJubileesResponse, error)
// GetUserWithResponse request
GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
// UpdateUserWithBodyWithResponse request with any body
UpdateUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithResponse(ctx context.Context, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
// RemoveUserFromGroupsWithBodyWithResponse request with any body
RemoveUserFromGroupsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveUserFromGroupsResponse, error)
RemoveUserFromGroupsWithResponse(ctx context.Context, id string, body RemoveUserFromGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveUserFromGroupsResponse, error)
// AddUserToGroupsWithBodyWithResponse request with any body
AddUserToGroupsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserToGroupsResponse, error)
AddUserToGroupsWithResponse(ctx context.Context, id string, body AddUserToGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserToGroupsResponse, error)
// ListUserPermissionsWithResponse request
ListUserPermissionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListUserPermissionsResponse, error)
// ListUserSubordinatesWithResponse request
ListUserSubordinatesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListUserSubordinatesResponse, error)
// AddUserSubordinatesWithBodyWithResponse request with any body
AddUserSubordinatesWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserSubordinatesResponse, error)
AddUserSubordinatesWithResponse(ctx context.Context, id string, body AddUserSubordinatesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserSubordinatesResponse, error)
// GetUserSupervisorWithResponse request
GetUserSupervisorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserSupervisorResponse, error)
// GetUserWorkScheduleWithResponse request
GetUserWorkScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserWorkScheduleResponse, error)
// AddUserChildWithBodyWithResponse request with any body
AddUserChildWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserChildResponse, error)
AddUserChildWithResponse(ctx context.Context, userId string, body AddUserChildJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserChildResponse, error)
// RemoveUserChildWithResponse request
RemoveUserChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserChildResponse, error)
// UpdateUserChildWithBodyWithResponse request with any body
UpdateUserChildWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserChildResponse, error)
UpdateUserChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserChildJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserChildResponse, error)
// AddUserEmergencyContactWithBodyWithResponse request with any body
AddUserEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserEmergencyContactResponse, error)
AddUserEmergencyContactWithResponse(ctx context.Context, userId string, body AddUserEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserEmergencyContactResponse, error)
// RemoveUserEmergencyContactWithResponse request
RemoveUserEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserEmergencyContactResponse, error)
// UpdateUserEmergencyContactWithBodyWithResponse request with any body
UpdateUserEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserEmergencyContactResponse, error)
UpdateUserEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserEmergencyContactResponse, error)
// AddUserIdentificationWithBodyWithResponse request with any body
AddUserIdentificationWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserIdentificationResponse, error)
AddUserIdentificationWithResponse(ctx context.Context, userId string, body AddUserIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserIdentificationResponse, error)
// RemoveUserIdentificationWithResponse request
RemoveUserIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserIdentificationResponse, error)
// UpdateUserIdentificationWithBodyWithResponse request with any body
UpdateUserIdentificationWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserIdentificationResponse, error)
UpdateUserIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateUserIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserIdentificationResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Company ¶
type Company struct {
Address *Address `json:"address,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
InvalidOrganizationNumber *bool `json:"invalidOrganizationNumber,omitempty"`
Members *[]SimpleUser `json:"members,omitempty"`
Name *string `json:"name,omitempty"`
OrganizationNumber *string `json:"organizationNumber,omitempty"`
Type CompanyType `json:"type"`
}
Company defines model for Company.
type CompanyType ¶
type CompanyType string
CompanyType defines model for Company.Type.
const ( CompanyTypeCompany CompanyType = "company" CompanyTypeLocation CompanyType = "location" CompanyTypeOrganization CompanyType = "organization" CompanyTypeServiceUser CompanyType = "service_user" CompanyTypeSubordinates CompanyType = "subordinates" CompanyTypeTeam CompanyType = "team" CompanyTypeUser CompanyType = "user" )
Defines values for CompanyType.
type Completeness ¶
Completeness defines model for Completeness.
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody = UserInput
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserResponse ¶
type CreateUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *User
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseCreateUserResponse ¶
func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)
ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call
func (CreateUserResponse) Status ¶
func (r CreateUserResponse) Status() string
Status returns HTTPResponse.Status
func (CreateUserResponse) StatusCode ¶
func (r CreateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Credentials ¶
type Credentials struct {
AccessToken string `json:"access_token"`
AuthOrigin *openapi_types.UUID `json:"authOrigin,omitempty"`
AuthProvider *string `json:"authProvider,omitempty"`
ExpiresIn int64 `json:"expires_in"`
OrganizationId openapi_types.UUID `json:"organizationId"`
RefreshToken *string `json:"refresh_token,omitempty"`
TokenType string `json:"token_type"`
UserId openapi_types.UUID `json:"userId"`
}
Credentials defines model for Credentials.
type CustomFieldObject ¶
type CustomFieldObject struct {
Editable bool `json:"editable"`
Label string `json:"label"`
Options *map[string]string `json:"options,omitempty"`
Placeholder *string `json:"placeholder,omitempty"`
Section CustomFieldObjectSection `json:"section"`
Type CustomFieldObjectType `json:"type"`
Value interface{} `json:"value,omitempty"`
}
CustomFieldObject defines model for CustomFieldObject.
type CustomFieldObjectSection ¶
type CustomFieldObjectSection string
CustomFieldObjectSection defines model for CustomFieldObject.Section.
const ( Employment CustomFieldObjectSection = "employment" Intro CustomFieldObjectSection = "intro" Misc CustomFieldObjectSection = "misc" Personalia CustomFieldObjectSection = "personalia" )
Defines values for CustomFieldObjectSection.
type CustomFieldObjectType ¶
type CustomFieldObjectType string
CustomFieldObjectType defines model for CustomFieldObject.Type.
const ( Boolean CustomFieldObjectType = "boolean" Decimal CustomFieldObjectType = "decimal" Enum CustomFieldObjectType = "enum" Localdate CustomFieldObjectType = "localdate" Number CustomFieldObjectType = "number" Text CustomFieldObjectType = "text" Textarea CustomFieldObjectType = "textarea" Url CustomFieldObjectType = "url" )
Defines values for CustomFieldObjectType.
type EmailField ¶
type EmailField struct {
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
RequestedValue *string `json:"requestedValue,omitempty"`
Value string `json:"value"`
}
EmailField defines model for EmailField.
type EmailGrantTypeInput ¶
type EmailGrantTypeInput struct {
ClientId *openapi_types.UUID `json:"client_id,omitempty"`
Code *string `json:"code,omitempty"`
Email *string `json:"email,omitempty"`
GrantType string `json:"grant_type"`
RedirectUri *string `json:"redirectUri,omitempty"`
}
EmailGrantTypeInput defines model for EmailGrantTypeInput.
type EmergencyContactInput ¶
type EmergencyContactInput struct {
Name string `json:"name"`
Phone string `json:"phone"`
Relation *string `json:"relation,omitempty"`
}
EmergencyContactInput defines model for EmergencyContactInput.
type FieldAddress ¶
type FieldAddress struct {
Completeness *FieldAddressCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *Address `json:"value,omitempty"`
}
FieldAddress defines model for FieldAddress.
type FieldAddressCompleteness ¶
type FieldAddressCompleteness string
FieldAddressCompleteness defines model for FieldAddress.Completeness.
const ( FieldAddressCompletenessDetails FieldAddressCompleteness = "details" FieldAddressCompletenessImportant FieldAddressCompleteness = "important" )
Defines values for FieldAddressCompleteness.
type FieldBankAccount ¶
type FieldBankAccount struct {
Completeness *FieldBankAccountCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *FieldBankAccount_Value `json:"value,omitempty"`
}
FieldBankAccount defines model for FieldBankAccount.
type FieldBankAccountCompleteness ¶
type FieldBankAccountCompleteness string
FieldBankAccountCompleteness defines model for FieldBankAccount.Completeness.
const ( FieldBankAccountCompletenessDetails FieldBankAccountCompleteness = "details" FieldBankAccountCompletenessImportant FieldBankAccountCompleteness = "important" )
Defines values for FieldBankAccountCompleteness.
type FieldBankAccount_Value ¶
type FieldBankAccount_Value struct {
// contains filtered or unexported fields
}
FieldBankAccount_Value defines model for FieldBankAccount.Value.
func (FieldBankAccount_Value) AsInternationalBankAccount ¶
func (t FieldBankAccount_Value) AsInternationalBankAccount() (InternationalBankAccount, error)
AsInternationalBankAccount returns the union data inside the FieldBankAccount_Value as a InternationalBankAccount
func (FieldBankAccount_Value) AsNationalBankAccount ¶
func (t FieldBankAccount_Value) AsNationalBankAccount() (NationalBankAccount, error)
AsNationalBankAccount returns the union data inside the FieldBankAccount_Value as a NationalBankAccount
func (*FieldBankAccount_Value) FromInternationalBankAccount ¶
func (t *FieldBankAccount_Value) FromInternationalBankAccount(v InternationalBankAccount) error
FromInternationalBankAccount overwrites any union data inside the FieldBankAccount_Value as the provided InternationalBankAccount
func (*FieldBankAccount_Value) FromNationalBankAccount ¶
func (t *FieldBankAccount_Value) FromNationalBankAccount(v NationalBankAccount) error
FromNationalBankAccount overwrites any union data inside the FieldBankAccount_Value as the provided NationalBankAccount
func (FieldBankAccount_Value) MarshalJSON ¶
func (t FieldBankAccount_Value) MarshalJSON() ([]byte, error)
func (*FieldBankAccount_Value) MergeInternationalBankAccount ¶
func (t *FieldBankAccount_Value) MergeInternationalBankAccount(v InternationalBankAccount) error
MergeInternationalBankAccount performs a merge with any union data inside the FieldBankAccount_Value, using the provided InternationalBankAccount
func (*FieldBankAccount_Value) MergeNationalBankAccount ¶
func (t *FieldBankAccount_Value) MergeNationalBankAccount(v NationalBankAccount) error
MergeNationalBankAccount performs a merge with any union data inside the FieldBankAccount_Value, using the provided NationalBankAccount
func (*FieldBankAccount_Value) UnmarshalJSON ¶
func (t *FieldBankAccount_Value) UnmarshalJSON(b []byte) error
type FieldBoolean ¶
type FieldBoolean struct {
Completeness *FieldBooleanCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *bool `json:"value,omitempty"`
}
FieldBoolean defines model for FieldBoolean.
type FieldBooleanCompleteness ¶
type FieldBooleanCompleteness string
FieldBooleanCompleteness defines model for FieldBoolean.Completeness.
const ( FieldBooleanCompletenessDetails FieldBooleanCompleteness = "details" FieldBooleanCompletenessImportant FieldBooleanCompleteness = "important" )
Defines values for FieldBooleanCompleteness.
type FieldCivilStatus ¶
type FieldCivilStatus struct {
Completeness *FieldCivilStatusCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *FieldCivilStatusValue `json:"value,omitempty"`
}
FieldCivilStatus defines model for FieldCivilStatus.
type FieldCivilStatusCompleteness ¶
type FieldCivilStatusCompleteness string
FieldCivilStatusCompleteness defines model for FieldCivilStatus.Completeness.
const ( FieldCivilStatusCompletenessDetails FieldCivilStatusCompleteness = "details" FieldCivilStatusCompletenessImportant FieldCivilStatusCompleteness = "important" )
Defines values for FieldCivilStatusCompleteness.
type FieldCivilStatusValue ¶
type FieldCivilStatusValue string
FieldCivilStatusValue defines model for FieldCivilStatus.Value.
const ( FieldCivilStatusValueMarried FieldCivilStatusValue = "Married" FieldCivilStatusValueRelationship FieldCivilStatusValue = "Relationship" FieldCivilStatusValueSingle FieldCivilStatusValue = "Single" )
Defines values for FieldCivilStatusValue.
type FieldEmploymentType ¶
type FieldEmploymentType struct {
Completeness *FieldEmploymentTypeCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *FieldEmploymentTypeValue `json:"value,omitempty"`
}
FieldEmploymentType defines model for FieldEmploymentType.
type FieldEmploymentTypeCompleteness ¶
type FieldEmploymentTypeCompleteness string
FieldEmploymentTypeCompleteness defines model for FieldEmploymentType.Completeness.
const ( FieldEmploymentTypeCompletenessDetails FieldEmploymentTypeCompleteness = "details" FieldEmploymentTypeCompletenessImportant FieldEmploymentTypeCompleteness = "important" )
Defines values for FieldEmploymentTypeCompleteness.
type FieldEmploymentTypeValue ¶
type FieldEmploymentTypeValue string
FieldEmploymentTypeValue defines model for FieldEmploymentType.Value.
const ( FieldEmploymentTypeValueCasual FieldEmploymentTypeValue = "Casual" FieldEmploymentTypeValueConsultant FieldEmploymentTypeValue = "Consultant" FieldEmploymentTypeValuePermanent FieldEmploymentTypeValue = "Permanent" FieldEmploymentTypeValueTemporary FieldEmploymentTypeValue = "Temporary" FieldEmploymentTypeValueTrainee FieldEmploymentTypeValue = "Trainee" )
Defines values for FieldEmploymentTypeValue.
type FieldHumaImage ¶
type FieldHumaImage struct {
Completeness *FieldHumaImageCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *HumaImage `json:"value,omitempty"`
}
FieldHumaImage defines model for FieldHumaImage.
type FieldHumaImageCompleteness ¶
type FieldHumaImageCompleteness string
FieldHumaImageCompleteness defines model for FieldHumaImage.Completeness.
const ( FieldHumaImageCompletenessDetails FieldHumaImageCompleteness = "details" FieldHumaImageCompletenessImportant FieldHumaImageCompleteness = "important" )
Defines values for FieldHumaImageCompleteness.
type FieldInteger ¶
type FieldInteger struct {
Completeness *FieldIntegerCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *int32 `json:"value,omitempty"`
}
FieldInteger defines model for FieldInteger.
type FieldIntegerCompleteness ¶
type FieldIntegerCompleteness string
FieldIntegerCompleteness defines model for FieldInteger.Completeness.
const ( FieldIntegerCompletenessDetails FieldIntegerCompleteness = "details" FieldIntegerCompletenessImportant FieldIntegerCompleteness = "important" )
Defines values for FieldIntegerCompleteness.
type FieldJobTitle ¶
type FieldJobTitle struct {
Completeness *FieldJobTitleCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *JobTitle `json:"value,omitempty"`
}
FieldJobTitle defines model for FieldJobTitle.
type FieldJobTitleCompleteness ¶
type FieldJobTitleCompleteness string
FieldJobTitleCompleteness defines model for FieldJobTitle.Completeness.
const ( FieldJobTitleCompletenessDetails FieldJobTitleCompleteness = "details" FieldJobTitleCompletenessImportant FieldJobTitleCompleteness = "important" )
Defines values for FieldJobTitleCompleteness.
type FieldListCompany ¶
type FieldListCompany struct {
Completeness *FieldListCompanyCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *[]Company `json:"value,omitempty"`
}
FieldListCompany defines model for FieldListCompany.
type FieldListCompanyCompleteness ¶
type FieldListCompanyCompleteness string
FieldListCompanyCompleteness defines model for FieldListCompany.Completeness.
const ( FieldListCompanyCompletenessDetails FieldListCompanyCompleteness = "details" FieldListCompanyCompletenessImportant FieldListCompanyCompleteness = "important" )
Defines values for FieldListCompanyCompleteness.
type FieldListGroup ¶
type FieldListGroup struct {
Completeness *FieldListGroupCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *[]Group `json:"value,omitempty"`
}
FieldListGroup defines model for FieldListGroup.
type FieldListGroupCompleteness ¶
type FieldListGroupCompleteness string
FieldListGroupCompleteness defines model for FieldListGroup.Completeness.
const ( FieldListGroupCompletenessDetails FieldListGroupCompleteness = "details" FieldListGroupCompletenessImportant FieldListGroupCompleteness = "important" )
Defines values for FieldListGroupCompleteness.
type FieldListLocation ¶
type FieldListLocation struct {
Completeness *FieldListLocationCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *[]Location `json:"value,omitempty"`
}
FieldListLocation defines model for FieldListLocation.
type FieldListLocationCompleteness ¶
type FieldListLocationCompleteness string
FieldListLocationCompleteness defines model for FieldListLocation.Completeness.
const ( FieldListLocationCompletenessDetails FieldListLocationCompleteness = "details" FieldListLocationCompletenessImportant FieldListLocationCompleteness = "important" )
Defines values for FieldListLocationCompleteness.
type FieldListString ¶
type FieldListString struct {
Completeness *FieldListStringCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *[]string `json:"value,omitempty"`
}
FieldListString defines model for FieldListString.
type FieldListStringCompleteness ¶
type FieldListStringCompleteness string
FieldListStringCompleteness defines model for FieldListString.Completeness.
const ( FieldListStringCompletenessDetails FieldListStringCompleteness = "details" FieldListStringCompletenessImportant FieldListStringCompleteness = "important" )
Defines values for FieldListStringCompleteness.
type FieldListTeam ¶
type FieldListTeam struct {
Completeness *FieldListTeamCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *[]Team `json:"value,omitempty"`
}
FieldListTeam defines model for FieldListTeam.
type FieldListTeamCompleteness ¶
type FieldListTeamCompleteness string
FieldListTeamCompleteness defines model for FieldListTeam.Completeness.
const ( FieldListTeamCompletenessDetails FieldListTeamCompleteness = "details" FieldListTeamCompletenessImportant FieldListTeamCompleteness = "important" )
Defines values for FieldListTeamCompleteness.
type FieldListUserChild ¶
type FieldListUserChild struct {
Completeness *FieldListUserChildCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *[]UserChild `json:"value,omitempty"`
}
FieldListUserChild defines model for FieldListUserChild.
type FieldListUserChildCompleteness ¶
type FieldListUserChildCompleteness string
FieldListUserChildCompleteness defines model for FieldListUserChild.Completeness.
const ( FieldListUserChildCompletenessDetails FieldListUserChildCompleteness = "details" FieldListUserChildCompletenessImportant FieldListUserChildCompleteness = "important" )
Defines values for FieldListUserChildCompleteness.
type FieldListUserEmergencyContact ¶
type FieldListUserEmergencyContact struct {
Completeness *FieldListUserEmergencyContactCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *[]UserEmergencyContact `json:"value,omitempty"`
}
FieldListUserEmergencyContact defines model for FieldListUserEmergencyContact.
type FieldListUserEmergencyContactCompleteness ¶
type FieldListUserEmergencyContactCompleteness string
FieldListUserEmergencyContactCompleteness defines model for FieldListUserEmergencyContact.Completeness.
const ( FieldListUserEmergencyContactCompletenessDetails FieldListUserEmergencyContactCompleteness = "details" FieldListUserEmergencyContactCompletenessImportant FieldListUserEmergencyContactCompleteness = "important" )
Defines values for FieldListUserEmergencyContactCompleteness.
type FieldListUserIdentification ¶
type FieldListUserIdentification struct {
Completeness *FieldListUserIdentificationCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *[]UserIdentification `json:"value,omitempty"`
}
FieldListUserIdentification defines model for FieldListUserIdentification.
type FieldListUserIdentificationCompleteness ¶
type FieldListUserIdentificationCompleteness string
FieldListUserIdentificationCompleteness defines model for FieldListUserIdentification.Completeness.
const ( FieldListUserIdentificationCompletenessDetails FieldListUserIdentificationCompleteness = "details" FieldListUserIdentificationCompletenessImportant FieldListUserIdentificationCompleteness = "important" )
Defines values for FieldListUserIdentificationCompleteness.
type FieldSalary ¶
type FieldSalary struct {
Completeness *FieldSalaryCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *Salary `json:"value,omitempty"`
}
FieldSalary defines model for FieldSalary.
type FieldSalaryCompleteness ¶
type FieldSalaryCompleteness string
FieldSalaryCompleteness defines model for FieldSalary.Completeness.
const ( FieldSalaryCompletenessDetails FieldSalaryCompleteness = "details" FieldSalaryCompletenessImportant FieldSalaryCompleteness = "important" )
Defines values for FieldSalaryCompleteness.
type FieldSimpleUser ¶
type FieldSimpleUser struct {
Completeness *FieldSimpleUserCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *SimpleUser `json:"value,omitempty"`
}
FieldSimpleUser defines model for FieldSimpleUser.
type FieldSimpleUserCompleteness ¶
type FieldSimpleUserCompleteness string
FieldSimpleUserCompleteness defines model for FieldSimpleUser.Completeness.
const ( FieldSimpleUserCompletenessDetails FieldSimpleUserCompleteness = "details" FieldSimpleUserCompletenessImportant FieldSimpleUserCompleteness = "important" )
Defines values for FieldSimpleUserCompleteness.
type FieldString ¶
type FieldString struct {
Completeness *FieldStringCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *string `json:"value,omitempty"`
}
FieldString defines model for FieldString.
type FieldStringCompleteness ¶
type FieldStringCompleteness string
FieldStringCompleteness defines model for FieldString.Completeness.
const ( FieldStringCompletenessDetails FieldStringCompleteness = "details" FieldStringCompletenessImportant FieldStringCompleteness = "important" )
Defines values for FieldStringCompleteness.
type GetUserResponse ¶
type GetUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserDetails
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseGetUserResponse ¶
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
func (GetUserResponse) Status ¶
func (r GetUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserResponse) StatusCode ¶
func (r GetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserSupervisorResponse ¶
type GetUserSupervisorResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Supervisor
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseGetUserSupervisorResponse ¶
func ParseGetUserSupervisorResponse(rsp *http.Response) (*GetUserSupervisorResponse, error)
ParseGetUserSupervisorResponse parses an HTTP response from a GetUserSupervisorWithResponse call
func (GetUserSupervisorResponse) Status ¶
func (r GetUserSupervisorResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserSupervisorResponse) StatusCode ¶
func (r GetUserSupervisorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserWorkScheduleResponse ¶
type GetUserWorkScheduleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WorkSchedule
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseGetUserWorkScheduleResponse ¶
func ParseGetUserWorkScheduleResponse(rsp *http.Response) (*GetUserWorkScheduleResponse, error)
ParseGetUserWorkScheduleResponse parses an HTTP response from a GetUserWorkScheduleWithResponse call
func (GetUserWorkScheduleResponse) Status ¶
func (r GetUserWorkScheduleResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserWorkScheduleResponse) StatusCode ¶
func (r GetUserWorkScheduleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GrantTypeInput ¶
type GrantTypeInput struct {
GrantType string `json:"grant_type"`
}
GrantTypeInput defines model for GrantTypeInput.
type Group ¶
type Group struct {
Id *openapi_types.UUID `json:"id,omitempty"`
Members *[]SimpleUser `json:"members,omitempty"`
Name *string `json:"name,omitempty"`
Type string `json:"type"`
}
Group defines model for Group.
type Header ¶
type Header struct {
Elements *[]HeaderElement `json:"elements,omitempty"`
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
Header defines model for Header.
type HeaderElement ¶
type HeaderElement struct {
Name *string `json:"name,omitempty"`
ParameterCount *int32 `json:"parameterCount,omitempty"`
Parameters *[]NameValuePair `json:"parameters,omitempty"`
Value *string `json:"value,omitempty"`
}
HeaderElement defines model for HeaderElement.
type HttpEntity ¶
type HttpEntity struct {
Chunked *bool `json:"chunked,omitempty"`
Content interface{} `json:"content,omitempty"`
ContentEncoding *Header `json:"contentEncoding,omitempty"`
ContentLength *int64 `json:"contentLength,omitempty"`
ContentType *Header `json:"contentType,omitempty"`
Repeatable *bool `json:"repeatable,omitempty"`
Streaming *bool `json:"streaming,omitempty"`
}
HttpEntity defines model for HttpEntity.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type HttpResponse ¶
type HttpResponse struct {
AllHeaders *[]Header `json:"allHeaders,omitempty"`
Entity *HttpEntity `json:"entity,omitempty"`
Header *Header `json:"header,omitempty"`
Headers *[]Header `json:"headers,omitempty"`
Locale *string `json:"locale,omitempty"`
Params *HttpParams `json:"params,omitempty"`
ProtocolVersion *ProtocolVersion `json:"protocolVersion,omitempty"`
ReasonPhrase *string `json:"reasonPhrase,omitempty"`
StatusCode *int32 `json:"statusCode,omitempty"`
StatusLine *StatusLine `json:"statusLine,omitempty"`
}
HttpResponse defines model for HttpResponse.
type HumaImage ¶
type HumaImage struct {
Height *int32 `json:"height,omitempty"`
Url string `json:"url"`
Width *int32 `json:"width,omitempty"`
}
HumaImage defines model for HumaImage.
type IdentificationInput ¶
type IdentificationInput struct {
Country string `json:"country"`
Type IdentificationInputType `json:"type"`
Value string `json:"value"`
}
IdentificationInput defines model for IdentificationInput.
type IdentificationInputType ¶
type IdentificationInputType string
IdentificationInputType defines model for IdentificationInput.Type.
const ( IdentificationInputTypeNational IdentificationInputType = "national" IdentificationInputTypePassport IdentificationInputType = "passport" )
Defines values for IdentificationInputType.
type IntegrationExternalUserRef ¶
type IntegrationExternalUserRef struct {
ExternalId string `json:"externalId"`
Type string `json:"type"`
}
IntegrationExternalUserRef defines model for IntegrationExternalUserRef.
type IntegrationMeta ¶
type IntegrationMeta struct {
Warning IntegrationMetaWarning `json:"warning"`
}
IntegrationMeta defines model for IntegrationMeta.
type IntegrationMetaWarning ¶
type IntegrationMetaWarning string
IntegrationMetaWarning defines model for IntegrationMeta.Warning.
const ( LockedDisconnect IntegrationMetaWarning = "locked_disconnect" PossiblyLockedDisconnect IntegrationMetaWarning = "possibly_locked_disconnect" )
Defines values for IntegrationMetaWarning.
type InternationalBankAccount ¶
type InternationalBankAccount struct {
Bic *string `json:"bic,omitempty"`
Code string `json:"code"`
Iban *string `json:"iban,omitempty"`
Type string `json:"type"`
}
InternationalBankAccount defines model for InternationalBankAccount.
type InternationalBankAccountInput ¶
type InternationalBankAccountInput struct {
Bic *string `json:"bic,omitempty"`
Iban *string `json:"iban,omitempty"`
Type string `json:"type"`
}
InternationalBankAccountInput defines model for InternationalBankAccountInput.
type InvalidFieldFormatResponse ¶
type InvalidFieldFormatResponse struct {
ErrorCode *string `json:"errorCode,omitempty"`
// ErrorMessage error Message
ErrorMessage *string `json:"errorMessage,omitempty"`
Fields *[]string `json:"fields,omitempty"`
}
InvalidFieldFormatResponse defines model for InvalidFieldFormatResponse.
type InvalidTokenResponse ¶
type InvalidTokenResponse struct {
Error string `json:"error"`
ErrorDescription string `json:"error_description"`
}
InvalidTokenResponse defines model for InvalidTokenResponse.
type JobTitle ¶
type JobTitle struct {
Description *string `json:"description,omitempty"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
}
JobTitle defines model for JobTitle.
type JobTitleSummary ¶
type JobTitleSummary struct {
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
}
JobTitleSummary defines model for JobTitleSummary.
type Jubilee ¶
type Jubilee struct {
Date openapi_types.Date `json:"date"`
OriginalDate openapi_types.Date `json:"originalDate"`
Public bool `json:"public"`
Type string `json:"type"`
User *SimpleUser `json:"user,omitempty"`
Years int32 `json:"years"`
}
Jubilee defines model for Jubilee.
type ListGroupsParams ¶
type ListGroupsParams struct {
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`
Type *[]ListGroupsParamsType `form:"type,omitempty" json:"type,omitempty"`
Search *string `form:"search,omitempty" json:"search,omitempty"`
OrderDirection *ListGroupsParamsOrderDirection `form:"orderDirection,omitempty" json:"orderDirection,omitempty"`
}
ListGroupsParams defines parameters for ListGroups.
type ListGroupsParamsOrderDirection ¶
type ListGroupsParamsOrderDirection string
ListGroupsParamsOrderDirection defines parameters for ListGroups.
const ( ListGroupsParamsOrderDirectionASC ListGroupsParamsOrderDirection = "ASC" ListGroupsParamsOrderDirectionDESC ListGroupsParamsOrderDirection = "DESC" )
Defines values for ListGroupsParamsOrderDirection.
type ListGroupsParamsType ¶
type ListGroupsParamsType string
ListGroupsParamsType defines parameters for ListGroups.
const ( ListGroupsParamsTypeCompany ListGroupsParamsType = "company" ListGroupsParamsTypeLocation ListGroupsParamsType = "location" ListGroupsParamsTypeTeam ListGroupsParamsType = "team" )
Defines values for ListGroupsParamsType.
type ListGroupsResponse ¶
type ListGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PageGroup
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseListGroupsResponse ¶
func ParseListGroupsResponse(rsp *http.Response) (*ListGroupsResponse, error)
ParseListGroupsResponse parses an HTTP response from a ListGroupsWithResponse call
func (ListGroupsResponse) Status ¶
func (r ListGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (ListGroupsResponse) StatusCode ¶
func (r ListGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListJobTitlesParams ¶
type ListJobTitlesParams struct {
Search *string `form:"search,omitempty" json:"search,omitempty"`
}
ListJobTitlesParams defines parameters for ListJobTitles.
type ListJobTitlesResponse ¶
type ListJobTitlesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]JobTitleSummary
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseListJobTitlesResponse ¶
func ParseListJobTitlesResponse(rsp *http.Response) (*ListJobTitlesResponse, error)
ParseListJobTitlesResponse parses an HTTP response from a ListJobTitlesWithResponse call
func (ListJobTitlesResponse) Status ¶
func (r ListJobTitlesResponse) Status() string
Status returns HTTPResponse.Status
func (ListJobTitlesResponse) StatusCode ¶
func (r ListJobTitlesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListJubileesParams ¶
type ListJubileesParams struct {
FromDate *openapi_types.Date `form:"fromDate,omitempty" json:"fromDate,omitempty"`
ToDate *openapi_types.Date `form:"toDate,omitempty" json:"toDate,omitempty"`
OrderDirection *ListJubileesParamsOrderDirection `form:"orderDirection,omitempty" json:"orderDirection,omitempty"`
}
ListJubileesParams defines parameters for ListJubilees.
type ListJubileesParamsOrderDirection ¶
type ListJubileesParamsOrderDirection string
ListJubileesParamsOrderDirection defines parameters for ListJubilees.
const ( ASC ListJubileesParamsOrderDirection = "ASC" DESC ListJubileesParamsOrderDirection = "DESC" )
Defines values for ListJubileesParamsOrderDirection.
type ListJubileesResponse ¶
type ListJubileesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PageJubilee
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseListJubileesResponse ¶
func ParseListJubileesResponse(rsp *http.Response) (*ListJubileesResponse, error)
ParseListJubileesResponse parses an HTTP response from a ListJubileesWithResponse call
func (ListJubileesResponse) Status ¶
func (r ListJubileesResponse) Status() string
Status returns HTTPResponse.Status
func (ListJubileesResponse) StatusCode ¶
func (r ListJubileesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPublicHolidaysParams ¶
type ListPublicHolidaysParams struct {
FromDate openapi_types.Date `form:"fromDate" json:"fromDate"`
ToDate openapi_types.Date `form:"toDate" json:"toDate"`
}
ListPublicHolidaysParams defines parameters for ListPublicHolidays.
type ListPublicHolidaysResponse ¶
type ListPublicHolidaysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]openapi_types.Date
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseListPublicHolidaysResponse ¶
func ParseListPublicHolidaysResponse(rsp *http.Response) (*ListPublicHolidaysResponse, error)
ParseListPublicHolidaysResponse parses an HTTP response from a ListPublicHolidaysWithResponse call
func (ListPublicHolidaysResponse) Status ¶
func (r ListPublicHolidaysResponse) Status() string
Status returns HTTPResponse.Status
func (ListPublicHolidaysResponse) StatusCode ¶
func (r ListPublicHolidaysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUserPermissionsResponse ¶
type ListUserPermissionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]string
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseListUserPermissionsResponse ¶
func ParseListUserPermissionsResponse(rsp *http.Response) (*ListUserPermissionsResponse, error)
ParseListUserPermissionsResponse parses an HTTP response from a ListUserPermissionsWithResponse call
func (ListUserPermissionsResponse) Status ¶
func (r ListUserPermissionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListUserPermissionsResponse) StatusCode ¶
func (r ListUserPermissionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUserSubordinatesResponse ¶
type ListUserSubordinatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]SimpleUser
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseListUserSubordinatesResponse ¶
func ParseListUserSubordinatesResponse(rsp *http.Response) (*ListUserSubordinatesResponse, error)
ParseListUserSubordinatesResponse parses an HTTP response from a ListUserSubordinatesWithResponse call
func (ListUserSubordinatesResponse) Status ¶
func (r ListUserSubordinatesResponse) Status() string
Status returns HTTPResponse.Status
func (ListUserSubordinatesResponse) StatusCode ¶
func (r ListUserSubordinatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersParams ¶
type ListUsersParams struct {
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`
Search *string `form:"search,omitempty" json:"search,omitempty"`
OrderDirection *ListUsersParamsOrderDirection `form:"orderDirection,omitempty" json:"orderDirection,omitempty"`
JobTitle *[]openapi_types.UUID `form:"jobTitle,omitempty" json:"jobTitle,omitempty"`
Team *[]openapi_types.UUID `form:"team,omitempty" json:"team,omitempty"`
Location *[]openapi_types.UUID `form:"location,omitempty" json:"location,omitempty"`
Company *[]openapi_types.UUID `form:"company,omitempty" json:"company,omitempty"`
// Supervisor Users with supervisor ID. Use 'none' to filter users without a supervisor. Supports alias 'me' for current user.
Supervisor *string `form:"supervisor,omitempty" json:"supervisor,omitempty"`
IsSupervisor *bool `form:"isSupervisor,omitempty" json:"isSupervisor,omitempty"`
IsActive *bool `form:"isActive,omitempty" json:"isActive,omitempty"`
NotRecursivelySupervisorOf *openapi_types.UUID `form:"notRecursivelySupervisorOf,omitempty" json:"notRecursivelySupervisorOf,omitempty"`
NotRecursivelySubordinateOf *openapi_types.UUID `form:"notRecursivelySubordinateOf,omitempty" json:"notRecursivelySubordinateOf,omitempty"`
Permission *string `form:"permission,omitempty" json:"permission,omitempty"`
// Id Set of user IDs to include. Supports alias 'me' for current user.
Id *[]string `form:"id,omitempty" json:"id,omitempty"`
// ExcludeId Set of user IDs to exclude. Supports alias 'me' for current user.
ExcludeId *[]string `form:"excludeId,omitempty" json:"excludeId,omitempty"`
}
ListUsersParams defines parameters for ListUsers.
type ListUsersParamsOrderDirection ¶
type ListUsersParamsOrderDirection string
ListUsersParamsOrderDirection defines parameters for ListUsers.
const ( ListUsersParamsOrderDirectionASC ListUsersParamsOrderDirection = "ASC" ListUsersParamsOrderDirectionDESC ListUsersParamsOrderDirection = "DESC" )
Defines values for ListUsersParamsOrderDirection.
type ListUsersResponse ¶
type ListUsersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PageUser
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseListUsersResponse ¶
func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)
ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call
func (ListUsersResponse) Status ¶
func (r ListUsersResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsersResponse) StatusCode ¶
func (r ListUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LocalDateField ¶
type LocalDateField struct {
Completeness *LocalDateFieldCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Value *openapi_types.Date `json:"value,omitempty"`
}
LocalDateField defines model for LocalDateField.
type LocalDateFieldCompleteness ¶
type LocalDateFieldCompleteness string
LocalDateFieldCompleteness defines model for LocalDateField.Completeness.
const ( Details LocalDateFieldCompleteness = "details" Important LocalDateFieldCompleteness = "important" )
Defines values for LocalDateFieldCompleteness.
type Location ¶
type Location struct {
Address *Address `json:"address,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
Members *[]SimpleUser `json:"members,omitempty"`
Name *string `json:"name,omitempty"`
Type LocationType `json:"type"`
}
Location defines model for Location.
type LocationType ¶
type LocationType string
LocationType defines model for Location.Type.
const ( LocationTypeCompany LocationType = "company" LocationTypeLocation LocationType = "location" LocationTypeOrganization LocationType = "organization" LocationTypeServiceUser LocationType = "service_user" LocationTypeSubordinates LocationType = "subordinates" LocationTypeTeam LocationType = "team" LocationTypeUser LocationType = "user" )
Defines values for LocationType.
type NameValuePair ¶
type NameValuePair struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
NameValuePair defines model for NameValuePair.
type NationalBankAccount ¶
type NationalBankAccount struct {
Code string `json:"code"`
Country *string `json:"country,omitempty"`
Number *string `json:"number,omitempty"`
Type string `json:"type"`
}
NationalBankAccount defines model for NationalBankAccount.
type NationalBankAccountInput ¶
type NationalBankAccountInput struct {
Country *string `json:"country,omitempty"`
Number *string `json:"number,omitempty"`
Type string `json:"type"`
}
NationalBankAccountInput defines model for NationalBankAccountInput.
type NotFoundErrorResponse ¶
type NotFoundErrorResponse struct {
ErrorCode string `json:"errorCode"`
ErrorMessage string `json:"errorMessage"`
Interpolations map[string]string `json:"interpolations"`
}
NotFoundErrorResponse defines model for NotFoundErrorResponse.
type Option ¶
type Option func(*Client)
Option configures a Client. Use the With* functions to create Options.
func WithHttpClient ¶
WithHttpClient sets a custom http.Client. Defaults to http.DefaultClient.
func WithRequestInterceptor ¶
func WithRequestInterceptor(fn RequestEditorFn) Option
WithRequestInterceptor appends fn to the Client interceptors
type PageGroup ¶
type PageGroup struct {
Filters *map[string]interface{} `json:"filters,omitempty"`
Items []Group `json:"items"`
Meta *map[string]interface{} `json:"meta,omitempty"`
Total *int32 `json:"total,omitempty"`
}
PageGroup defines model for PageGroup.
type PageJubilee ¶
type PageJubilee struct {
Filters *map[string]interface{} `json:"filters,omitempty"`
Items []Jubilee `json:"items"`
Meta *map[string]interface{} `json:"meta,omitempty"`
Total *int32 `json:"total,omitempty"`
}
PageJubilee defines model for PageJubilee.
type PageUser ¶
type PageUser struct {
Filters *map[string]interface{} `json:"filters,omitempty"`
Items []User `json:"items"`
Meta *map[string]interface{} `json:"meta,omitempty"`
Total *int32 `json:"total,omitempty"`
}
PageUser defines model for PageUser.
type PasswordGrantTypeInput ¶
type PasswordGrantTypeInput struct {
ClientId *openapi_types.UUID `json:"client_id,omitempty"`
GrantType string `json:"grant_type"`
Password *string `json:"password,omitempty"`
RedirectUri *string `json:"redirectUri,omitempty"`
Username *string `json:"username,omitempty"`
}
PasswordGrantTypeInput defines model for PasswordGrantTypeInput.
type ProfileCompleteness ¶
type ProfileCompleteness struct {
Details Completeness `json:"details"`
Important Completeness `json:"important"`
}
ProfileCompleteness defines model for ProfileCompleteness.
type ProtocolVersion ¶
type ProtocolVersion struct {
Major *int32 `json:"major,omitempty"`
Minor *int32 `json:"minor,omitempty"`
Protocol *string `json:"protocol,omitempty"`
}
ProtocolVersion defines model for ProtocolVersion.
type RefreshGrantTypeInput ¶
type RefreshGrantTypeInput struct {
GrantType string `json:"grant_type"`
RefreshToken *string `json:"refresh_token,omitempty"`
}
RefreshGrantTypeInput defines model for RefreshGrantTypeInput.
type RemoveUserChildResponse ¶
type RemoveUserChildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON404 *NotFoundErrorResponse
}
func ParseRemoveUserChildResponse ¶
func ParseRemoveUserChildResponse(rsp *http.Response) (*RemoveUserChildResponse, error)
ParseRemoveUserChildResponse parses an HTTP response from a RemoveUserChildWithResponse call
func (RemoveUserChildResponse) Status ¶
func (r RemoveUserChildResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveUserChildResponse) StatusCode ¶
func (r RemoveUserChildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveUserEmergencyContactResponse ¶
type RemoveUserEmergencyContactResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON404 *NotFoundErrorResponse
}
func ParseRemoveUserEmergencyContactResponse ¶
func ParseRemoveUserEmergencyContactResponse(rsp *http.Response) (*RemoveUserEmergencyContactResponse, error)
ParseRemoveUserEmergencyContactResponse parses an HTTP response from a RemoveUserEmergencyContactWithResponse call
func (RemoveUserEmergencyContactResponse) Status ¶
func (r RemoveUserEmergencyContactResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveUserEmergencyContactResponse) StatusCode ¶
func (r RemoveUserEmergencyContactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveUserFromGroupsJSONBody ¶
type RemoveUserFromGroupsJSONBody = []openapi_types.UUID
RemoveUserFromGroupsJSONBody defines parameters for RemoveUserFromGroups.
type RemoveUserFromGroupsJSONRequestBody ¶
type RemoveUserFromGroupsJSONRequestBody = RemoveUserFromGroupsJSONBody
RemoveUserFromGroupsJSONRequestBody defines body for RemoveUserFromGroups for application/json ContentType.
type RemoveUserFromGroupsResponse ¶
type RemoveUserFromGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseRemoveUserFromGroupsResponse ¶
func ParseRemoveUserFromGroupsResponse(rsp *http.Response) (*RemoveUserFromGroupsResponse, error)
ParseRemoveUserFromGroupsResponse parses an HTTP response from a RemoveUserFromGroupsWithResponse call
func (RemoveUserFromGroupsResponse) Status ¶
func (r RemoveUserFromGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveUserFromGroupsResponse) StatusCode ¶
func (r RemoveUserFromGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveUserIdentificationResponse ¶
type RemoveUserIdentificationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON404 *NotFoundErrorResponse
}
func ParseRemoveUserIdentificationResponse ¶
func ParseRemoveUserIdentificationResponse(rsp *http.Response) (*RemoveUserIdentificationResponse, error)
ParseRemoveUserIdentificationResponse parses an HTTP response from a RemoveUserIdentificationWithResponse call
func (RemoveUserIdentificationResponse) Status ¶
func (r RemoveUserIdentificationResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveUserIdentificationResponse) StatusCode ¶
func (r RemoveUserIdentificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RevokeResponse ¶
type RevokeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseRevokeResponse ¶
func ParseRevokeResponse(rsp *http.Response) (*RevokeResponse, error)
ParseRevokeResponse parses an HTTP response from a RevokeWithResponse call
func (RevokeResponse) Status ¶
func (r RevokeResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeResponse) StatusCode ¶
func (r RevokeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Salary ¶
type Salary struct {
Amount float64 `json:"amount"`
Currency string `json:"currency"`
Current bool `json:"current"`
FromDate *openapi_types.Date `json:"fromDate,omitempty"`
Id openapi_types.UUID `json:"id"`
Note *string `json:"note,omitempty"`
PeriodUnit SalaryPeriodUnit `json:"periodUnit"`
ToDate *openapi_types.Date `json:"toDate,omitempty"`
}
Salary defines model for Salary.
type SalaryPeriodUnit ¶
type SalaryPeriodUnit string
SalaryPeriodUnit defines model for Salary.PeriodUnit.
const ( Hourly SalaryPeriodUnit = "hourly" Monthly SalaryPeriodUnit = "monthly" Weekly SalaryPeriodUnit = "weekly" Yearly SalaryPeriodUnit = "yearly" )
Defines values for SalaryPeriodUnit.
type SimpleUser ¶
type SimpleUser struct {
AvatarUrl *string `json:"avatarUrl,omitempty"`
Email string `json:"email"`
FamilyName string `json:"familyName"`
GivenName string `json:"givenName"`
Id openapi_types.UUID `json:"id"`
InvitedAt *time.Time `json:"invitedAt,omitempty"`
JobTitle *JobTitleSummary `json:"jobTitle,omitempty"`
Phone *string `json:"phone,omitempty"`
PreferredName *string `json:"preferredName,omitempty"`
Status *AccountStatus `json:"status,omitempty"`
Type SimpleUserType `json:"type"`
}
SimpleUser defines model for SimpleUser.
type SimpleUserType ¶
type SimpleUserType string
SimpleUserType defines model for SimpleUser.Type.
const ( SimpleUserTypeCompany SimpleUserType = "company" SimpleUserTypeLocation SimpleUserType = "location" SimpleUserTypeOrganization SimpleUserType = "organization" SimpleUserTypeServiceUser SimpleUserType = "service_user" SimpleUserTypeSubordinates SimpleUserType = "subordinates" SimpleUserTypeTeam SimpleUserType = "team" SimpleUserTypeUser SimpleUserType = "user" )
Defines values for SimpleUserType.
type StandardServerErrorResponse ¶
type StandardServerErrorResponse struct {
// Error Internal Server Error
Error string `json:"error"`
Message string `json:"message"`
// Path Path of the endpoint
Path string `json:"path"`
Status HttpResponse `json:"status"`
// Timestamp Current timestamp
Timestamp string `json:"timestamp"`
}
StandardServerErrorResponse defines model for StandardServerErrorResponse.
type StatusLine ¶
type StatusLine struct {
ProtocolVersion *ProtocolVersion `json:"protocolVersion,omitempty"`
ReasonPhrase *string `json:"reasonPhrase,omitempty"`
StatusCode *int32 `json:"statusCode,omitempty"`
}
StatusLine defines model for StatusLine.
type Supervisor ¶
type Supervisor struct {
AvatarUrl *string `json:"avatarUrl,omitempty"`
Companies *[]Company `json:"companies,omitempty"`
Email string `json:"email"`
FamilyName string `json:"familyName"`
GivenName string `json:"givenName"`
Groups *[]Group `json:"groups,omitempty"`
Id openapi_types.UUID `json:"id"`
JobTitle *JobTitle `json:"jobTitle,omitempty"`
Locations *[]Location `json:"locations,omitempty"`
Phone *string `json:"phone,omitempty"`
PreferredName *string `json:"preferredName,omitempty"`
Subordinates []SimpleUser `json:"subordinates"`
Teams *[]Team `json:"teams,omitempty"`
}
Supervisor defines model for Supervisor.
type Team ¶
type Team struct {
Id *openapi_types.UUID `json:"id,omitempty"`
Members *[]SimpleUser `json:"members,omitempty"`
Name *string `json:"name,omitempty"`
Type TeamType `json:"type"`
}
Team defines model for Team.
type TeamType ¶
type TeamType string
TeamType defines model for Team.Type.
const ( TeamTypeCompany TeamType = "company" TeamTypeLocation TeamType = "location" TeamTypeOrganization TeamType = "organization" TeamTypeServiceUser TeamType = "service_user" TeamTypeSubordinates TeamType = "subordinates" TeamTypeTeam TeamType = "team" TeamTypeUser TeamType = "user" )
Defines values for TeamType.
type TokenFormFormdataBody ¶
type TokenFormFormdataBody struct {
ClientId *string `form:"client_id,omitempty" json:"client_id,omitempty"`
ClientSecret *string `form:"client_secret,omitempty" json:"client_secret,omitempty"`
GrantType string `form:"grant_type" json:"grant_type"`
}
TokenFormFormdataBody defines parameters for TokenForm.
type TokenFormFormdataRequestBody ¶
type TokenFormFormdataRequestBody TokenFormFormdataBody
TokenFormFormdataRequestBody defines body for TokenForm for application/x-www-form-urlencoded ContentType.
type TokenFormJSONBody ¶
type TokenFormJSONBody struct {
// contains filtered or unexported fields
}
TokenFormJSONBody defines parameters for TokenForm.
type TokenFormJSONRequestBody ¶
type TokenFormJSONRequestBody TokenFormJSONBody
TokenFormJSONRequestBody defines body for TokenForm for application/json ContentType.
type TokenFormParams ¶
type TokenFormParams struct {
Authorization *string `json:"Authorization,omitempty"`
}
TokenFormParams defines parameters for TokenForm.
type TokenFormResponse ¶
type TokenFormResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Credentials
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseTokenFormResponse ¶
func ParseTokenFormResponse(rsp *http.Response) (*TokenFormResponse, error)
ParseTokenFormResponse parses an HTTP response from a TokenFormWithResponse call
func (TokenFormResponse) Status ¶
func (r TokenFormResponse) Status() string
Status returns HTTPResponse.Status
func (TokenFormResponse) StatusCode ¶
func (r TokenFormResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserChildJSONRequestBody ¶
type UpdateUserChildJSONRequestBody = ChildInput
UpdateUserChildJSONRequestBody defines body for UpdateUserChild for application/json ContentType.
type UpdateUserChildResponse ¶
type UpdateUserChildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserChild
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateUserChildResponse ¶
func ParseUpdateUserChildResponse(rsp *http.Response) (*UpdateUserChildResponse, error)
ParseUpdateUserChildResponse parses an HTTP response from a UpdateUserChildWithResponse call
func (UpdateUserChildResponse) Status ¶
func (r UpdateUserChildResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserChildResponse) StatusCode ¶
func (r UpdateUserChildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserEmergencyContactJSONRequestBody ¶
type UpdateUserEmergencyContactJSONRequestBody = EmergencyContactInput
UpdateUserEmergencyContactJSONRequestBody defines body for UpdateUserEmergencyContact for application/json ContentType.
type UpdateUserEmergencyContactResponse ¶
type UpdateUserEmergencyContactResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserEmergencyContact
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateUserEmergencyContactResponse ¶
func ParseUpdateUserEmergencyContactResponse(rsp *http.Response) (*UpdateUserEmergencyContactResponse, error)
ParseUpdateUserEmergencyContactResponse parses an HTTP response from a UpdateUserEmergencyContactWithResponse call
func (UpdateUserEmergencyContactResponse) Status ¶
func (r UpdateUserEmergencyContactResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserEmergencyContactResponse) StatusCode ¶
func (r UpdateUserEmergencyContactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserIdentificationJSONRequestBody ¶
type UpdateUserIdentificationJSONRequestBody = IdentificationInput
UpdateUserIdentificationJSONRequestBody defines body for UpdateUserIdentification for application/json ContentType.
type UpdateUserIdentificationResponse ¶
type UpdateUserIdentificationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserIdentification
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateUserIdentificationResponse ¶
func ParseUpdateUserIdentificationResponse(rsp *http.Response) (*UpdateUserIdentificationResponse, error)
ParseUpdateUserIdentificationResponse parses an HTTP response from a UpdateUserIdentificationWithResponse call
func (UpdateUserIdentificationResponse) Status ¶
func (r UpdateUserIdentificationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserIdentificationResponse) StatusCode ¶
func (r UpdateUserIdentificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserJSONRequestBody ¶
type UpdateUserJSONRequestBody = UserDetailsInput
UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
type UpdateUserResponse ¶
type UpdateUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserDetails
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateUserResponse ¶
func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)
ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call
func (UpdateUserResponse) Status ¶
func (r UpdateUserResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserResponse) StatusCode ¶
func (r UpdateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type User ¶
type User struct {
AvatarUrl *string `json:"avatarUrl,omitempty"`
Companies *[]Company `json:"companies,omitempty"`
Email *string `json:"email,omitempty"`
FamilyName *string `json:"familyName,omitempty"`
GivenName *string `json:"givenName,omitempty"`
Groups *[]Group `json:"groups,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
JobTitle *JobTitleSummary `json:"jobTitle,omitempty"`
Locations *[]Location `json:"locations,omitempty"`
Phone *string `json:"phone,omitempty"`
PreferredName *string `json:"preferredName,omitempty"`
Status *AccountStatus `json:"status,omitempty"`
Teams *[]Team `json:"teams,omitempty"`
Type UserType `json:"type"`
}
User defines model for User.
type UserChild ¶
type UserChild struct {
BirthDate *openapi_types.Date `json:"birthDate,omitempty"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
}
UserChild defines model for UserChild.
type UserDetails ¶
type UserDetails struct {
AvatarImage *FieldHumaImage `json:"avatarImage,omitempty"`
AvatarUrl *FieldString `json:"avatarUrl,omitempty"`
BankAccount *FieldBankAccount `json:"bankAccount,omitempty"`
BirthDate *BirthDateField `json:"birthDate,omitempty"`
Children *FieldListUserChild `json:"children,omitempty"`
CivilStatus *FieldCivilStatus `json:"civilStatus,omitempty"`
Companies *FieldListCompany `json:"companies,omitempty"`
Completeness *ProfileCompleteness `json:"completeness,omitempty"`
ConnectedIntegrations *map[string]IntegrationExternalUserRef `json:"connectedIntegrations,omitempty"`
CoverImageUrl *FieldString `json:"coverImageUrl,omitempty"`
Custom *map[string]CustomFieldObject `json:"custom,omitempty"`
DietaryRequirements *FieldString `json:"dietaryRequirements,omitempty"`
Email EmailField `json:"email"`
EmergencyContacts *FieldListUserEmergencyContact `json:"emergencyContacts,omitempty"`
EmploymentEndDate *LocalDateField `json:"employmentEndDate,omitempty"`
EmploymentId *FieldString `json:"employmentId,omitempty"`
EmploymentPercentage *FieldInteger `json:"employmentPercentage,omitempty"`
EmploymentStartDate *LocalDateField `json:"employmentStartDate,omitempty"`
EmploymentType *FieldEmploymentType `json:"employmentType,omitempty"`
ExcludeFromInsights *FieldBoolean `json:"excludeFromInsights,omitempty"`
ExcludeFromSurveys *FieldBoolean `json:"excludeFromSurveys,omitempty"`
FamilyName FieldString `json:"familyName"`
FirstDayOfWork *LocalDateField `json:"firstDayOfWork,omitempty"`
Funfacts *FieldString `json:"funfacts,omitempty"`
Gender *FieldString `json:"gender,omitempty"`
GivenName FieldString `json:"givenName"`
Groups *FieldListGroup `json:"groups,omitempty"`
HomeAddress *FieldAddress `json:"homeAddress,omitempty"`
Id openapi_types.UUID `json:"id"`
Identifications *FieldListUserIdentification `json:"identifications,omitempty"`
Interests *FieldListString `json:"interests,omitempty"`
InvitedAt *time.Time `json:"invitedAt,omitempty"`
JobDescription *FieldString `json:"jobDescription,omitempty"`
JobTitle *FieldJobTitle `json:"jobTitle,omitempty"`
JubileesToday *[]Jubilee `json:"jubileesToday,omitempty"`
LastDayOfWork *LocalDateField `json:"lastDayOfWork,omitempty"`
LastLoggedInAt *time.Time `json:"lastLoggedInAt,omitempty"`
Locations *FieldListLocation `json:"locations,omitempty"`
Nationality *FieldString `json:"nationality,omitempty"`
Phone *FieldString `json:"phone,omitempty"`
PreferredName *FieldString `json:"preferredName,omitempty"`
PrivateEmail *FieldString `json:"privateEmail,omitempty"`
ProbationEndDate *LocalDateField `json:"probationEndDate,omitempty"`
Salary *FieldSalary `json:"salary,omitempty"`
Status AccountStatus `json:"status"`
SubordinatesCount int32 `json:"subordinatesCount"`
Supervisor *FieldSimpleUser `json:"supervisor,omitempty"`
Teams *FieldListTeam `json:"teams,omitempty"`
TerminationNoticeDate *LocalDateField `json:"terminationNoticeDate,omitempty"`
Type UserDetailsType `json:"type"`
}
UserDetails defines model for UserDetails.
type UserDetailsInput ¶
type UserDetailsInput struct {
BankAccount *UserDetailsInput_BankAccount `json:"bankAccount,omitempty"`
BirthDate *openapi_types.Date `json:"birthDate,omitempty"`
CivilStatus *UserDetailsInputCivilStatus `json:"civilStatus,omitempty"`
Custom *map[string]interface{} `json:"custom,omitempty"`
DietaryRequirements *string `json:"dietaryRequirements,omitempty"`
Email *string `json:"email,omitempty"`
// EmploymentEndDate Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
EmploymentEndDate *openapi_types.Date `json:"employmentEndDate,omitempty"`
EmploymentId *string `json:"employmentId,omitempty"`
// EmploymentPercentage Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
EmploymentPercentage *int32 `json:"employmentPercentage,omitempty"`
// EmploymentStartDate Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
EmploymentStartDate *openapi_types.Date `json:"employmentStartDate,omitempty"`
// EmploymentType Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
EmploymentType *UserDetailsInputEmploymentType `json:"employmentType,omitempty"`
ExcludeFromInsights *bool `json:"excludeFromInsights,omitempty"`
ExcludeFromSurveys *bool `json:"excludeFromSurveys,omitempty"`
FamilyName *string `json:"familyName,omitempty"`
// FirstDayOfWork Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
FirstDayOfWork *openapi_types.Date `json:"firstDayOfWork,omitempty"`
Funfacts *string `json:"funfacts,omitempty"`
// Gender 'Male', 'Female' or free text
Gender *string `json:"gender,omitempty"`
GivenName *string `json:"givenName,omitempty"`
HomeAddress *AddressUpdateInput `json:"homeAddress,omitempty"`
Interests *[]interface{} `json:"interests,omitempty"`
// JobDescription Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
JobDescription *string `json:"jobDescription,omitempty"`
// JobTitle Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
JobTitle *openapi_types.UUID `json:"jobTitle,omitempty"`
// LastDayOfWork Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
LastDayOfWork *openapi_types.Date `json:"lastDayOfWork,omitempty"`
Nationality *string `json:"nationality,omitempty"`
Phone *string `json:"phone,omitempty"`
PreferredName *string `json:"preferredName,omitempty"`
PrivateEmail *string `json:"privateEmail,omitempty"`
// ProbationEndDate Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ProbationEndDate *openapi_types.Date `json:"probationEndDate,omitempty"`
Supervisor *openapi_types.UUID `json:"supervisor,omitempty"`
// TerminationNoticeDate Will be moved to new position endpoints soon
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TerminationNoticeDate *openapi_types.Date `json:"terminationNoticeDate,omitempty"`
}
UserDetailsInput defines model for UserDetailsInput.
type UserDetailsInputCivilStatus ¶
type UserDetailsInputCivilStatus string
UserDetailsInputCivilStatus defines model for UserDetailsInput.CivilStatus.
const ( UserDetailsInputCivilStatusMarried UserDetailsInputCivilStatus = "Married" UserDetailsInputCivilStatusRelationship UserDetailsInputCivilStatus = "Relationship" UserDetailsInputCivilStatusSingle UserDetailsInputCivilStatus = "Single" )
Defines values for UserDetailsInputCivilStatus.
type UserDetailsInputEmploymentType ¶
type UserDetailsInputEmploymentType string
UserDetailsInputEmploymentType Will be moved to new position endpoints soon
const ( UserDetailsInputEmploymentTypeCasual UserDetailsInputEmploymentType = "Casual" UserDetailsInputEmploymentTypeConsultant UserDetailsInputEmploymentType = "Consultant" UserDetailsInputEmploymentTypePermanent UserDetailsInputEmploymentType = "Permanent" UserDetailsInputEmploymentTypeTemporary UserDetailsInputEmploymentType = "Temporary" UserDetailsInputEmploymentTypeTrainee UserDetailsInputEmploymentType = "Trainee" )
Defines values for UserDetailsInputEmploymentType.
type UserDetailsInput_BankAccount ¶
type UserDetailsInput_BankAccount struct {
// contains filtered or unexported fields
}
UserDetailsInput_BankAccount defines model for UserDetailsInput.BankAccount.
func (UserDetailsInput_BankAccount) AsInternationalBankAccountInput ¶
func (t UserDetailsInput_BankAccount) AsInternationalBankAccountInput() (InternationalBankAccountInput, error)
AsInternationalBankAccountInput returns the union data inside the UserDetailsInput_BankAccount as a InternationalBankAccountInput
func (UserDetailsInput_BankAccount) AsNationalBankAccountInput ¶
func (t UserDetailsInput_BankAccount) AsNationalBankAccountInput() (NationalBankAccountInput, error)
AsNationalBankAccountInput returns the union data inside the UserDetailsInput_BankAccount as a NationalBankAccountInput
func (*UserDetailsInput_BankAccount) FromInternationalBankAccountInput ¶
func (t *UserDetailsInput_BankAccount) FromInternationalBankAccountInput(v InternationalBankAccountInput) error
FromInternationalBankAccountInput overwrites any union data inside the UserDetailsInput_BankAccount as the provided InternationalBankAccountInput
func (*UserDetailsInput_BankAccount) FromNationalBankAccountInput ¶
func (t *UserDetailsInput_BankAccount) FromNationalBankAccountInput(v NationalBankAccountInput) error
FromNationalBankAccountInput overwrites any union data inside the UserDetailsInput_BankAccount as the provided NationalBankAccountInput
func (UserDetailsInput_BankAccount) MarshalJSON ¶
func (t UserDetailsInput_BankAccount) MarshalJSON() ([]byte, error)
func (*UserDetailsInput_BankAccount) MergeInternationalBankAccountInput ¶
func (t *UserDetailsInput_BankAccount) MergeInternationalBankAccountInput(v InternationalBankAccountInput) error
MergeInternationalBankAccountInput performs a merge with any union data inside the UserDetailsInput_BankAccount, using the provided InternationalBankAccountInput
func (*UserDetailsInput_BankAccount) MergeNationalBankAccountInput ¶
func (t *UserDetailsInput_BankAccount) MergeNationalBankAccountInput(v NationalBankAccountInput) error
MergeNationalBankAccountInput performs a merge with any union data inside the UserDetailsInput_BankAccount, using the provided NationalBankAccountInput
func (*UserDetailsInput_BankAccount) UnmarshalJSON ¶
func (t *UserDetailsInput_BankAccount) UnmarshalJSON(b []byte) error
type UserDetailsType ¶
type UserDetailsType string
UserDetailsType defines model for UserDetails.Type.
const ( UserDetailsTypeCompany UserDetailsType = "company" UserDetailsTypeLocation UserDetailsType = "location" UserDetailsTypeOrganization UserDetailsType = "organization" UserDetailsTypeServiceUser UserDetailsType = "service_user" UserDetailsTypeSubordinates UserDetailsType = "subordinates" UserDetailsTypeTeam UserDetailsType = "team" UserDetailsTypeUser UserDetailsType = "user" )
Defines values for UserDetailsType.
type UserEmergencyContact ¶
type UserEmergencyContact struct {
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
Phone *string `json:"phone,omitempty"`
Relation *string `json:"relation,omitempty"`
}
UserEmergencyContact defines model for UserEmergencyContact.
type UserIdentification ¶
type UserIdentification struct {
Country *string `json:"country,omitempty"`
Id openapi_types.UUID `json:"id"`
Type UserIdentificationType `json:"type"`
Value string `json:"value"`
}
UserIdentification defines model for UserIdentification.
type UserIdentificationType ¶
type UserIdentificationType string
UserIdentificationType defines model for UserIdentification.Type.
const ( UserIdentificationTypeNational UserIdentificationType = "national" UserIdentificationTypePassport UserIdentificationType = "passport" )
Defines values for UserIdentificationType.
type UserInput ¶
type UserInput struct {
Email string `json:"email"`
EmploymentStartDate *openapi_types.Date `json:"employmentStartDate,omitempty"`
FamilyName string `json:"familyName"`
FirstDayOfWork *openapi_types.Date `json:"firstDayOfWork,omitempty"`
GivenName string `json:"givenName"`
Groups []openapi_types.UUID `json:"groups"`
Invite *bool `json:"invite,omitempty"`
InviteLanguage *string `json:"inviteLanguage,omitempty"`
InviteMessage *string `json:"inviteMessage,omitempty"`
InviteSubject *string `json:"inviteSubject,omitempty"`
Phone *string `json:"phone,omitempty"`
PreferredName *string `json:"preferredName,omitempty"`
Supervisor *openapi_types.UUID `json:"supervisor,omitempty"`
}
UserInput defines model for UserInput.
type UserType ¶
type UserType string
UserType defines model for User.Type.
const ( UserTypeCompany UserType = "company" UserTypeLocation UserType = "location" UserTypeOrganization UserType = "organization" UserTypeServiceUser UserType = "service_user" UserTypeSubordinates UserType = "subordinates" UserTypeTeam UserType = "team" UserTypeUser UserType = "user" )
Defines values for UserType.
type WorkSchedule ¶
type WorkSchedule struct {
Archived bool `json:"archived"`
CountryCode *string `json:"countryCode,omitempty"`
Default bool `json:"default"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
UserCount *int32 `json:"userCount,omitempty"`
// WeekDays Use weekWorkDays
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
WeekDays []int32 `json:"weekDays"`
WeekWorkDays []WorkScheduleWeekWorkDays `json:"weekWorkDays"`
}
WorkSchedule defines model for WorkSchedule.
type WorkScheduleWeekWorkDays ¶
type WorkScheduleWeekWorkDays string
WorkScheduleWeekWorkDays defines model for WorkSchedule.WeekWorkDays.
const ( FRIDAY WorkScheduleWeekWorkDays = "FRIDAY" MONDAY WorkScheduleWeekWorkDays = "MONDAY" SATURDAY WorkScheduleWeekWorkDays = "SATURDAY" SUNDAY WorkScheduleWeekWorkDays = "SUNDAY" THURSDAY WorkScheduleWeekWorkDays = "THURSDAY" TUESDAY WorkScheduleWeekWorkDays = "TUESDAY" WEDNESDAY WorkScheduleWeekWorkDays = "WEDNESDAY" )
Defines values for WorkScheduleWeekWorkDays.