Documentation
¶
Overview ¶
Package humahrm 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, err := huma.New(&huma.ClientCredentials{
ClientId: "your-client-id",
ClientSecret: "your-client-secret",
})
if err != nil {
return err
}
// Make API calls - authentication is handled automatically
resp, err := client.ListUsersWithResponse(ctx, &huma.ListUsersParams{})
Custom HTTP Client ¶
You can provide a custom http.Client for advanced use cases like proxies or custom timeouts:
client, err := 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.6.0 DO NOT EDIT.
Example ¶
package main
import (
"context"
"fmt"
humahrm "github.com/valuetechdev/humahrm-go"
)
func main() {
client, err := humahrm.New(&humahrm.ClientCredentials{
ClientId: "your-client-id",
ClientSecret: "your-client-secret",
})
if err != nil {
panic(err)
}
res, err := client.ListUsersWithResponse(context.Background(), &humahrm.ListUsersParams{})
if err != nil {
panic(err)
}
fmt.Println(res.StatusCode())
}
Output:
Example (WithCustomHTTPClient) ¶
package main
import (
"net/http"
"time"
humahrm "github.com/valuetechdev/humahrm-go"
)
func main() {
client, err := humahrm.New(
&humahrm.ClientCredentials{
ClientId: "your-client-id",
ClientSecret: "your-client-secret",
},
humahrm.WithHttpClient(&http.Client{
Timeout: 30 * time.Second,
}),
)
if err != nil {
panic(err)
}
_ = client
}
Output:
Example (WithRequestInterceptor) ¶
package main
import (
"context"
"net/http"
humahrm "github.com/valuetechdev/humahrm-go"
)
func main() {
client, err := humahrm.New(
&humahrm.ClientCredentials{
ClientId: "your-client-id",
ClientSecret: "your-client-secret",
},
humahrm.WithRequestInterceptor(func(ctx context.Context, req *http.Request) error {
req.Header.Set("X-Request-ID", "trace-123")
return nil
}),
)
if err != nil {
panic(err)
}
_ = client
}
Output:
Index ¶
- Constants
- func NewAddChildRequest(server string, userId string, body AddChildJSONRequestBody) (*http.Request, error)
- func NewAddChildRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddEmergencyContactRequest(server string, userId string, body AddEmergencyContactJSONRequestBody) (*http.Request, error)
- func NewAddEmergencyContactRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddGroupRequest(server string, body AddGroupJSONRequestBody) (*http.Request, error)
- func NewAddGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddIdentificationRequest(server string, userId string, body AddIdentificationJSONRequestBody) (*http.Request, error)
- func NewAddIdentificationRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddJobTitleRequest(server string, body AddJobTitleJSONRequestBody) (*http.Request, error)
- func NewAddJobTitleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddSubordinatesRequest(server string, id string, body AddSubordinatesJSONRequestBody) (*http.Request, error)
- func NewAddSubordinatesRequestWithBody(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 NewCreateUserPositionsRequest(server string, userId string, body CreateUserPositionsJSONRequestBody) (*http.Request, error)
- func NewCreateUserPositionsRequestWithBody(server string, userId 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 NewDeleteRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
- func NewFindDaysForCountryRequest(server string, countryCode string, params *FindDaysForCountryParams) (*http.Request, error)
- func NewFindRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
- func NewFindSupervisorRequest(server string, id string) (*http.Request, error)
- func NewFindWorkScheduleRequest(server string, id string) (*http.Request, error)
- func NewGetGroupRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetJobTitleRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetUserRequest(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 NewListSubordinatesRequest(server string, id string) (*http.Request, error)
- func NewListUserPositionsRequest(server string, userId string, params *ListUserPositionsParams) (*http.Request, error)
- func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
- func NewRemoveChildRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
- func NewRemoveEmergencyContactRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
- func NewRemoveIdentificationRequest(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 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 NewUpdateChildRequest(server string, userId string, id openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateChildRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewUpdateEmergencyContactRequest(server string, userId string, id openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateEmergencyContactRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewUpdateGroupRequest(server string, id openapi_types.UUID, body UpdateGroupJSONRequestBody) (*http.Request, error)
- func NewUpdateGroupRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateIdentificationRequest(server string, userId string, id openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateIdentificationRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewUpdateJobTitleRequest(server string, id openapi_types.UUID, body UpdateJobTitleJSONRequestBody) (*http.Request, error)
- func NewUpdateJobTitleRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateRequest(server string, userId string, id openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateRequestWithBody(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) AddChild(ctx context.Context, userId string, body AddChildJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddChildWithBody(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) AddEmergencyContact(ctx context.Context, userId string, body AddEmergencyContactJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddEmergencyContactWithBody(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) AddGroup(ctx context.Context, body AddGroupJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddGroupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) AddIdentification(ctx context.Context, userId string, body AddIdentificationJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddIdentificationWithBody(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) AddJobTitle(ctx context.Context, body AddJobTitleJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddJobTitleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) AddSubordinates(ctx context.Context, id string, body AddSubordinatesJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) AddSubordinatesWithBody(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) CreateUserPositions(ctx context.Context, userId string, body CreateUserPositionsJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) CreateUserPositionsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) Delete(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) Find(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) FindDaysForCountry(ctx context.Context, countryCode string, params *FindDaysForCountryParams, ...) (*http.Response, error)
- func (c *APIClient) FindSupervisor(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) FindWorkSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) GetGroup(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) GetJobTitle(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) GetUser(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) ListSubordinates(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) ListUserPositions(ctx context.Context, userId string, params *ListUserPositionsParams, ...) (*http.Response, error)
- func (c *APIClient) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *APIClient) RemoveChild(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) RemoveEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) RemoveIdentification(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) 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) Update(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) UpdateChild(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) UpdateChildWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *APIClient) UpdateEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) UpdateEmergencyContactWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *APIClient) UpdateGroup(ctx context.Context, id openapi_types.UUID, body UpdateGroupJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) UpdateGroupWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) UpdateIdentification(ctx context.Context, userId string, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *APIClient) UpdateIdentificationWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *APIClient) UpdateJobTitle(ctx context.Context, id openapi_types.UUID, body UpdateJobTitleJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) UpdateJobTitleWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) UpdateUser(ctx context.Context, id string, body UpdateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *APIClient) UpdateUserWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *APIClient) UpdateWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*http.Response, error)
- type AccountStatus
- type AddChildJSONRequestBody
- type AddChildResponse
- type AddEmergencyContactJSONRequestBody
- type AddEmergencyContactResponse
- type AddGroupJSONBody
- type AddGroupJSONRequestBody
- type AddGroupResponse
- type AddIdentificationJSONRequestBody
- type AddIdentificationResponse
- type AddJobTitleJSONRequestBody
- type AddJobTitleResponse
- type AddSubordinatesJSONBody
- type AddSubordinatesJSONRequestBody
- type AddSubordinatesResponse
- type AddUserToGroupsJSONBody
- type AddUserToGroupsJSONRequestBody
- type AddUserToGroupsResponse
- type Address
- type AddressInput
- 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) AddChildWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*AddChildResponse, error)
- func (c *ClientWithResponses) AddChildWithResponse(ctx context.Context, userId string, body AddChildJSONRequestBody, ...) (*AddChildResponse, error)
- func (c *ClientWithResponses) AddEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*AddEmergencyContactResponse, error)
- func (c *ClientWithResponses) AddEmergencyContactWithResponse(ctx context.Context, userId string, body AddEmergencyContactJSONRequestBody, ...) (*AddEmergencyContactResponse, error)
- func (c *ClientWithResponses) AddGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddGroupResponse, error)
- func (c *ClientWithResponses) AddGroupWithResponse(ctx context.Context, body AddGroupJSONRequestBody, ...) (*AddGroupResponse, error)
- func (c *ClientWithResponses) AddIdentificationWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*AddIdentificationResponse, error)
- func (c *ClientWithResponses) AddIdentificationWithResponse(ctx context.Context, userId string, body AddIdentificationJSONRequestBody, ...) (*AddIdentificationResponse, error)
- func (c *ClientWithResponses) AddJobTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddJobTitleResponse, error)
- func (c *ClientWithResponses) AddJobTitleWithResponse(ctx context.Context, body AddJobTitleJSONRequestBody, ...) (*AddJobTitleResponse, error)
- func (c *ClientWithResponses) AddSubordinatesWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*AddSubordinatesResponse, error)
- func (c *ClientWithResponses) AddSubordinatesWithResponse(ctx context.Context, id string, body AddSubordinatesJSONRequestBody, ...) (*AddSubordinatesResponse, 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) CreateUserPositionsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, ...) (*CreateUserPositionsResponse, error)
- func (c *ClientWithResponses) CreateUserPositionsWithResponse(ctx context.Context, userId string, body CreateUserPositionsJSONRequestBody, ...) (*CreateUserPositionsResponse, 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) DeleteWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*DeleteResponse, error)
- func (c *ClientWithResponses) FindDaysForCountryWithResponse(ctx context.Context, countryCode string, params *FindDaysForCountryParams, ...) (*FindDaysForCountryResponse, error)
- func (c *ClientWithResponses) FindSupervisorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FindSupervisorResponse, error)
- func (c *ClientWithResponses) FindWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*FindResponse, error)
- func (c *ClientWithResponses) FindWorkScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FindWorkScheduleResponse, error)
- func (c *ClientWithResponses) GetGroupWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetGroupResponse, error)
- func (c *ClientWithResponses) GetJobTitleWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobTitleResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, 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) ListSubordinatesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListSubordinatesResponse, error)
- func (c *ClientWithResponses) ListUserPositionsWithResponse(ctx context.Context, userId string, params *ListUserPositionsParams, ...) (*ListUserPositionsResponse, error)
- func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
- func (c *ClientWithResponses) RemoveChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*RemoveChildResponse, error)
- func (c *ClientWithResponses) RemoveEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*RemoveEmergencyContactResponse, error)
- func (c *ClientWithResponses) RemoveIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*RemoveIdentificationResponse, 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) 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) UpdateChildWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*UpdateChildResponse, error)
- func (c *ClientWithResponses) UpdateChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*UpdateChildResponse, error)
- func (c *ClientWithResponses) UpdateEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*UpdateEmergencyContactResponse, error)
- func (c *ClientWithResponses) UpdateEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*UpdateEmergencyContactResponse, error)
- func (c *ClientWithResponses) UpdateGroupWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateGroupResponse, error)
- func (c *ClientWithResponses) UpdateGroupWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateGroupJSONRequestBody, ...) (*UpdateGroupResponse, error)
- func (c *ClientWithResponses) UpdateIdentificationWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*UpdateIdentificationResponse, error)
- func (c *ClientWithResponses) UpdateIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*UpdateIdentificationResponse, error)
- func (c *ClientWithResponses) UpdateJobTitleWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateJobTitleResponse, error)
- func (c *ClientWithResponses) UpdateJobTitleWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateJobTitleJSONRequestBody, ...) (*UpdateJobTitleResponse, 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)
- func (c *ClientWithResponses) UpdateWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, ...) (*UpdateResponse, error)
- func (c *ClientWithResponses) UpdateWithResponse(ctx context.Context, userId string, id openapi_types.UUID, ...) (*UpdateResponse, error)
- type ClientWithResponsesInterface
- type Company
- type CompanyCreateInput
- type CompanyType
- type CompanyUpdateInput
- type CompanyUpdateInputType
- type Completeness
- type CreateUserJSONRequestBody
- type CreateUserPositionsJSONRequestBody
- type CreateUserPositionsResponse
- type CreateUserResponse
- type Credentials
- type CustomFieldObject
- type CustomFieldObjectSection
- type CustomFieldObjectType
- type DeleteResponse
- 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 FieldContractType
- type FieldContractTypeCompleteness
- type FieldContractTypeValue
- type FieldHumaImage
- type FieldHumaImageCompleteness
- type FieldInteger
- type FieldIntegerCompleteness
- type FieldJobTitle
- type FieldJobTitleCompleteness
- type FieldListCompany
- type FieldListCompanyCompleteness
- type FieldListGroup
- type FieldListGroupCompleteness
- type FieldListGroup_Value_Item
- func (t FieldListGroup_Value_Item) AsCompany() (Company, error)
- func (t FieldListGroup_Value_Item) AsGroup() (Group, error)
- func (t FieldListGroup_Value_Item) AsLocation() (Location, error)
- func (t FieldListGroup_Value_Item) AsTeam() (Team, error)
- func (t *FieldListGroup_Value_Item) FromCompany(v Company) error
- func (t *FieldListGroup_Value_Item) FromGroup(v Group) error
- func (t *FieldListGroup_Value_Item) FromLocation(v Location) error
- func (t *FieldListGroup_Value_Item) FromTeam(v Team) error
- func (t FieldListGroup_Value_Item) MarshalJSON() ([]byte, error)
- func (t *FieldListGroup_Value_Item) MergeCompany(v Company) error
- func (t *FieldListGroup_Value_Item) MergeGroup(v Group) error
- func (t *FieldListGroup_Value_Item) MergeLocation(v Location) error
- func (t *FieldListGroup_Value_Item) MergeTeam(v Team) error
- func (t *FieldListGroup_Value_Item) UnmarshalJSON(b []byte) error
- 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 FieldLocalDate
- type FieldLocalDateCompleteness
- type FieldPositionEndReason
- type FieldPositionEndReasonCompleteness
- type FieldPositionEndReasonValue
- type FieldSalary
- type FieldSalaryCompleteness
- type FieldSimpleUser
- type FieldSimpleUserCompleteness
- type FieldString
- type FieldStringCompleteness
- type FindDaysForCountryParams
- type FindDaysForCountryResponse
- type FindResponse
- type FindSupervisorResponse
- type FindWorkScheduleResponse
- type GetGroupResponse
- type GetJobTitleResponse
- type GetUserResponse
- type GrantTypeInput
- type Group
- type GroupCreateInput
- type GroupDetails
- type GroupRoleGrant
- type GroupRoleGrantDomain
- type GroupRoleGrant_Groups_Item
- func (t GroupRoleGrant_Groups_Item) AsSimpleCompany() (SimpleCompany, error)
- func (t GroupRoleGrant_Groups_Item) AsSimpleLocation() (SimpleLocation, error)
- func (t GroupRoleGrant_Groups_Item) AsSimpleOrganization() (SimpleOrganization, error)
- func (t GroupRoleGrant_Groups_Item) AsSimpleTeam() (SimpleTeam, error)
- func (t GroupRoleGrant_Groups_Item) AsSimpleUser() (SimpleUser, error)
- func (t *GroupRoleGrant_Groups_Item) FromSimpleCompany(v SimpleCompany) error
- func (t *GroupRoleGrant_Groups_Item) FromSimpleLocation(v SimpleLocation) error
- func (t *GroupRoleGrant_Groups_Item) FromSimpleOrganization(v SimpleOrganization) error
- func (t *GroupRoleGrant_Groups_Item) FromSimpleTeam(v SimpleTeam) error
- func (t *GroupRoleGrant_Groups_Item) FromSimpleUser(v SimpleUser) error
- func (t GroupRoleGrant_Groups_Item) MarshalJSON() ([]byte, error)
- func (t *GroupRoleGrant_Groups_Item) MergeSimpleCompany(v SimpleCompany) error
- func (t *GroupRoleGrant_Groups_Item) MergeSimpleLocation(v SimpleLocation) error
- func (t *GroupRoleGrant_Groups_Item) MergeSimpleOrganization(v SimpleOrganization) error
- func (t *GroupRoleGrant_Groups_Item) MergeSimpleTeam(v SimpleTeam) error
- func (t *GroupRoleGrant_Groups_Item) MergeSimpleUser(v SimpleUser) error
- func (t *GroupRoleGrant_Groups_Item) UnmarshalJSON(b []byte) error
- type GroupType
- type GroupUpdateInput
- type GroupUpdateInputType
- 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 JobTitleCreateInput
- type JobTitleSummary
- type JobTitleUpdateInput
- type Jubilee
- type Link
- type ListGroupsParams
- type ListGroupsParamsOrderDirection
- type ListGroupsParamsType
- type ListGroupsResponse
- type ListJobTitlesParams
- type ListJobTitlesResponse
- type ListJubileesParams
- type ListJubileesParamsOrderDirection
- type ListJubileesResponse
- type ListSubordinatesResponse
- type ListUserPositionsParams
- type ListUserPositionsResponse
- type ListUsersParams
- type ListUsersParamsOrderDirection
- type ListUsersResponse
- type LocalDateField
- type LocalDateFieldCompleteness
- type Location
- type LocationCreateInput
- type LocationType
- type LocationUpdateInput
- type LocationUpdateInputType
- type NameValuePair
- type NationalBankAccount
- type NationalBankAccountInput
- type NotFoundErrorResponse
- type Option
- type OrgUnitGrant
- type OrganizationRoleGrant
- type OrganizationRoleGrantDomain
- type PageGroup
- type PageGroup_Items_Item
- func (t PageGroup_Items_Item) AsCompany() (Company, error)
- func (t PageGroup_Items_Item) AsGroup() (Group, error)
- func (t PageGroup_Items_Item) AsLocation() (Location, error)
- func (t PageGroup_Items_Item) AsTeam() (Team, error)
- func (t *PageGroup_Items_Item) FromCompany(v Company) error
- func (t *PageGroup_Items_Item) FromGroup(v Group) error
- func (t *PageGroup_Items_Item) FromLocation(v Location) error
- func (t *PageGroup_Items_Item) FromTeam(v Team) error
- func (t PageGroup_Items_Item) MarshalJSON() ([]byte, error)
- func (t *PageGroup_Items_Item) MergeCompany(v Company) error
- func (t *PageGroup_Items_Item) MergeGroup(v Group) error
- func (t *PageGroup_Items_Item) MergeLocation(v Location) error
- func (t *PageGroup_Items_Item) MergeTeam(v Team) error
- func (t *PageGroup_Items_Item) UnmarshalJSON(b []byte) error
- type PageJubilee
- type PagePositionSummary
- type PageUser
- type PasswordGrantTypeInput
- type Position
- type PositionCreateInput
- type PositionCreateInputContractType
- type PositionCreateInputEndReason
- type PositionStatus
- type PositionSummary
- type PositionSummaryContractType
- type PositionSummaryStatus
- type PositionUpdateInput
- type PositionUpdateInputContractType
- type PositionUpdateInputEndReason
- type ProfileCompleteness
- type ProtocolVersion
- type RefreshGrantTypeInput
- type RemoveChildResponse
- type RemoveEmergencyContactResponse
- type RemoveIdentificationResponse
- type RemoveUserFromGroupsJSONBody
- type RemoveUserFromGroupsJSONRequestBody
- type RemoveUserFromGroupsResponse
- type RequestEditorFn
- type RevokeResponse
- type Role
- type RoleDomain
- type RoleGrant
- type RoleGrantDomain
- type Role_Grants_Item
- func (t Role_Grants_Item) AsGroupRoleGrant() (GroupRoleGrant, error)
- func (t Role_Grants_Item) AsOrganizationRoleGrant() (OrganizationRoleGrant, error)
- func (t *Role_Grants_Item) FromGroupRoleGrant(v GroupRoleGrant) error
- func (t *Role_Grants_Item) FromOrganizationRoleGrant(v OrganizationRoleGrant) error
- func (t Role_Grants_Item) MarshalJSON() ([]byte, error)
- func (t *Role_Grants_Item) MergeGroupRoleGrant(v GroupRoleGrant) error
- func (t *Role_Grants_Item) MergeOrganizationRoleGrant(v OrganizationRoleGrant) error
- func (t *Role_Grants_Item) UnmarshalJSON(b []byte) error
- type Salary
- type SalaryPeriodUnit
- type SimpleCompany
- type SimpleCompanyType
- type SimpleLocation
- type SimpleLocationType
- type SimpleOrgUnit
- type SimpleOrganization
- type SimpleOrganizationType
- type SimpleTeam
- type SimpleTeamType
- type SimpleUser
- type SimpleUserType
- type StandardServerErrorResponse
- type StatusLine
- type Supervisor
- type Supervisor_Groups_Item
- func (t Supervisor_Groups_Item) AsCompany() (Company, error)
- func (t Supervisor_Groups_Item) AsGroup() (Group, error)
- func (t Supervisor_Groups_Item) AsLocation() (Location, error)
- func (t Supervisor_Groups_Item) AsTeam() (Team, error)
- func (t *Supervisor_Groups_Item) FromCompany(v Company) error
- func (t *Supervisor_Groups_Item) FromGroup(v Group) error
- func (t *Supervisor_Groups_Item) FromLocation(v Location) error
- func (t *Supervisor_Groups_Item) FromTeam(v Team) error
- func (t Supervisor_Groups_Item) MarshalJSON() ([]byte, error)
- func (t *Supervisor_Groups_Item) MergeCompany(v Company) error
- func (t *Supervisor_Groups_Item) MergeGroup(v Group) error
- func (t *Supervisor_Groups_Item) MergeLocation(v Location) error
- func (t *Supervisor_Groups_Item) MergeTeam(v Team) error
- func (t *Supervisor_Groups_Item) UnmarshalJSON(b []byte) error
- type Team
- type TeamCreateInput
- type TeamUpdateInput
- type TokenFormFormdataBody
- type TokenFormFormdataRequestBody
- type TokenFormJSONBody
- type TokenFormJSONRequestBody
- type TokenFormParams
- type TokenFormResponse
- type UUIDWrapper
- type UpdateChildJSONRequestBody
- type UpdateChildResponse
- type UpdateEmergencyContactJSONRequestBody
- type UpdateEmergencyContactResponse
- type UpdateGroupJSONBody
- type UpdateGroupJSONRequestBody
- type UpdateGroupResponse
- type UpdateIdentificationJSONRequestBody
- type UpdateIdentificationResponse
- type UpdateJSONRequestBody
- type UpdateJobTitleJSONRequestBody
- type UpdateJobTitleResponse
- type UpdateResponse
- type UpdateUserJSONRequestBody
- type UpdateUserResponse
- type User
- type UserChild
- type UserDetails
- type UserDetailsInput
- type UserDetailsInputCivilStatus
- 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 User_Groups_Item
- func (t User_Groups_Item) AsCompany() (Company, error)
- func (t User_Groups_Item) AsGroup() (Group, error)
- func (t User_Groups_Item) AsLocation() (Location, error)
- func (t User_Groups_Item) AsTeam() (Team, error)
- func (t *User_Groups_Item) FromCompany(v Company) error
- func (t *User_Groups_Item) FromGroup(v Group) error
- func (t *User_Groups_Item) FromLocation(v Location) error
- func (t *User_Groups_Item) FromTeam(v Team) error
- func (t User_Groups_Item) MarshalJSON() ([]byte, error)
- func (t *User_Groups_Item) MergeCompany(v Company) error
- func (t *User_Groups_Item) MergeGroup(v Group) error
- func (t *User_Groups_Item) MergeLocation(v Location) error
- func (t *User_Groups_Item) MergeTeam(v Team) error
- func (t *User_Groups_Item) UnmarshalJSON(b []byte) error
- type WorkSchedule
- type WorkScheduleWeekWorkDays
Examples ¶
Constants ¶
const (
AuthenticationScopes = "authentication.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewAddChildRequest ¶
func NewAddChildRequest(server string, userId string, body AddChildJSONRequestBody) (*http.Request, error)
NewAddChildRequest calls the generic AddChild builder with application/json body
func NewAddChildRequestWithBody ¶
func NewAddChildRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
NewAddChildRequestWithBody generates requests for AddChild with any type of body
func NewAddEmergencyContactRequest ¶
func NewAddEmergencyContactRequest(server string, userId string, body AddEmergencyContactJSONRequestBody) (*http.Request, error)
NewAddEmergencyContactRequest calls the generic AddEmergencyContact builder with application/json body
func NewAddEmergencyContactRequestWithBody ¶
func NewAddEmergencyContactRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
NewAddEmergencyContactRequestWithBody generates requests for AddEmergencyContact with any type of body
func NewAddGroupRequest ¶
func NewAddGroupRequest(server string, body AddGroupJSONRequestBody) (*http.Request, error)
NewAddGroupRequest calls the generic AddGroup builder with application/json body
func NewAddGroupRequestWithBody ¶
func NewAddGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddGroupRequestWithBody generates requests for AddGroup with any type of body
func NewAddIdentificationRequest ¶
func NewAddIdentificationRequest(server string, userId string, body AddIdentificationJSONRequestBody) (*http.Request, error)
NewAddIdentificationRequest calls the generic AddIdentification builder with application/json body
func NewAddIdentificationRequestWithBody ¶
func NewAddIdentificationRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
NewAddIdentificationRequestWithBody generates requests for AddIdentification with any type of body
func NewAddJobTitleRequest ¶
func NewAddJobTitleRequest(server string, body AddJobTitleJSONRequestBody) (*http.Request, error)
NewAddJobTitleRequest calls the generic AddJobTitle builder with application/json body
func NewAddJobTitleRequestWithBody ¶
func NewAddJobTitleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddJobTitleRequestWithBody generates requests for AddJobTitle with any type of body
func NewAddSubordinatesRequest ¶
func NewAddSubordinatesRequest(server string, id string, body AddSubordinatesJSONRequestBody) (*http.Request, error)
NewAddSubordinatesRequest calls the generic AddSubordinates builder with application/json body
func NewAddSubordinatesRequestWithBody ¶
func NewAddSubordinatesRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewAddSubordinatesRequestWithBody generates requests for AddSubordinates 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 NewCreateUserPositionsRequest ¶
func NewCreateUserPositionsRequest(server string, userId string, body CreateUserPositionsJSONRequestBody) (*http.Request, error)
NewCreateUserPositionsRequest calls the generic CreateUserPositions builder with application/json body
func NewCreateUserPositionsRequestWithBody ¶
func NewCreateUserPositionsRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateUserPositionsRequestWithBody generates requests for CreateUserPositions 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 NewDeleteRequest ¶
NewDeleteRequest generates requests for Delete
func NewFindDaysForCountryRequest ¶
func NewFindDaysForCountryRequest(server string, countryCode string, params *FindDaysForCountryParams) (*http.Request, error)
NewFindDaysForCountryRequest generates requests for FindDaysForCountry
func NewFindRequest ¶
NewFindRequest generates requests for Find
func NewFindSupervisorRequest ¶
NewFindSupervisorRequest generates requests for FindSupervisor
func NewFindWorkScheduleRequest ¶
NewFindWorkScheduleRequest generates requests for FindWorkSchedule
func NewGetGroupRequest ¶
NewGetGroupRequest generates requests for GetGroup
func NewGetJobTitleRequest ¶
NewGetJobTitleRequest generates requests for GetJobTitle
func NewGetUserRequest ¶
NewGetUserRequest generates requests for GetUser
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 NewListSubordinatesRequest ¶
NewListSubordinatesRequest generates requests for ListSubordinates
func NewListUserPositionsRequest ¶
func NewListUserPositionsRequest(server string, userId string, params *ListUserPositionsParams) (*http.Request, error)
NewListUserPositionsRequest generates requests for ListUserPositions
func NewListUsersRequest ¶
func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
NewListUsersRequest generates requests for ListUsers
func NewRemoveChildRequest ¶
func NewRemoveChildRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
NewRemoveChildRequest generates requests for RemoveChild
func NewRemoveEmergencyContactRequest ¶
func NewRemoveEmergencyContactRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
NewRemoveEmergencyContactRequest generates requests for RemoveEmergencyContact
func NewRemoveIdentificationRequest ¶
func NewRemoveIdentificationRequest(server string, userId string, id openapi_types.UUID) (*http.Request, error)
NewRemoveIdentificationRequest generates requests for RemoveIdentification
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 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 NewUpdateChildRequest ¶
func NewUpdateChildRequest(server string, userId string, id openapi_types.UUID, body UpdateChildJSONRequestBody) (*http.Request, error)
NewUpdateChildRequest calls the generic UpdateChild builder with application/json body
func NewUpdateChildRequestWithBody ¶
func NewUpdateChildRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateChildRequestWithBody generates requests for UpdateChild with any type of body
func NewUpdateEmergencyContactRequest ¶
func NewUpdateEmergencyContactRequest(server string, userId string, id openapi_types.UUID, body UpdateEmergencyContactJSONRequestBody) (*http.Request, error)
NewUpdateEmergencyContactRequest calls the generic UpdateEmergencyContact builder with application/json body
func NewUpdateEmergencyContactRequestWithBody ¶
func NewUpdateEmergencyContactRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateEmergencyContactRequestWithBody generates requests for UpdateEmergencyContact with any type of body
func NewUpdateGroupRequest ¶
func NewUpdateGroupRequest(server string, id openapi_types.UUID, body UpdateGroupJSONRequestBody) (*http.Request, error)
NewUpdateGroupRequest calls the generic UpdateGroup builder with application/json body
func NewUpdateGroupRequestWithBody ¶
func NewUpdateGroupRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateGroupRequestWithBody generates requests for UpdateGroup with any type of body
func NewUpdateIdentificationRequest ¶
func NewUpdateIdentificationRequest(server string, userId string, id openapi_types.UUID, body UpdateIdentificationJSONRequestBody) (*http.Request, error)
NewUpdateIdentificationRequest calls the generic UpdateIdentification builder with application/json body
func NewUpdateIdentificationRequestWithBody ¶
func NewUpdateIdentificationRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateIdentificationRequestWithBody generates requests for UpdateIdentification with any type of body
func NewUpdateJobTitleRequest ¶
func NewUpdateJobTitleRequest(server string, id openapi_types.UUID, body UpdateJobTitleJSONRequestBody) (*http.Request, error)
NewUpdateJobTitleRequest calls the generic UpdateJobTitle builder with application/json body
func NewUpdateJobTitleRequestWithBody ¶
func NewUpdateJobTitleRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateJobTitleRequestWithBody generates requests for UpdateJobTitle with any type of body
func NewUpdateRequest ¶
func NewUpdateRequest(server string, userId string, id openapi_types.UUID, body UpdateJSONRequestBody) (*http.Request, error)
NewUpdateRequest calls the generic Update builder with application/json body
func NewUpdateRequestWithBody ¶
func NewUpdateRequestWithBody(server string, userId string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateRequestWithBody generates requests for Update 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) AddChild ¶
func (c *APIClient) AddChild(ctx context.Context, userId string, body AddChildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddChildWithBody ¶
func (*APIClient) AddEmergencyContact ¶
func (c *APIClient) AddEmergencyContact(ctx context.Context, userId string, body AddEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddEmergencyContactWithBody ¶
func (*APIClient) AddGroup ¶
func (c *APIClient) AddGroup(ctx context.Context, body AddGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddGroupWithBody ¶
func (*APIClient) AddIdentification ¶
func (c *APIClient) AddIdentification(ctx context.Context, userId string, body AddIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddIdentificationWithBody ¶
func (*APIClient) AddJobTitle ¶
func (c *APIClient) AddJobTitle(ctx context.Context, body AddJobTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddJobTitleWithBody ¶
func (*APIClient) AddSubordinates ¶
func (c *APIClient) AddSubordinates(ctx context.Context, id string, body AddSubordinatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) AddSubordinatesWithBody ¶
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) CreateUserPositions ¶
func (c *APIClient) CreateUserPositions(ctx context.Context, userId string, body CreateUserPositionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) CreateUserPositionsWithBody ¶
func (*APIClient) CreateUserWithBody ¶
func (*APIClient) Delete ¶
func (c *APIClient) Delete(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) Find ¶
func (c *APIClient) Find(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) FindDaysForCountry ¶
func (c *APIClient) FindDaysForCountry(ctx context.Context, countryCode string, params *FindDaysForCountryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) FindSupervisor ¶
func (*APIClient) FindWorkSchedule ¶
func (*APIClient) GetGroup ¶
func (c *APIClient) GetGroup(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) GetJobTitle ¶
func (c *APIClient) GetJobTitle(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
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) ListSubordinates ¶
func (*APIClient) ListUserPositions ¶
func (c *APIClient) ListUserPositions(ctx context.Context, userId string, params *ListUserPositionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) ListUsers ¶
func (c *APIClient) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) RemoveChild ¶
func (c *APIClient) RemoveChild(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) RemoveEmergencyContact ¶
func (c *APIClient) RemoveEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) RemoveIdentification ¶
func (c *APIClient) RemoveIdentification(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) 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) Update ¶
func (c *APIClient) Update(ctx context.Context, userId string, id openapi_types.UUID, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateChild ¶
func (c *APIClient) UpdateChild(ctx context.Context, userId string, id openapi_types.UUID, body UpdateChildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateChildWithBody ¶
func (*APIClient) UpdateEmergencyContact ¶
func (c *APIClient) UpdateEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, body UpdateEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateEmergencyContactWithBody ¶
func (*APIClient) UpdateGroup ¶
func (c *APIClient) UpdateGroup(ctx context.Context, id openapi_types.UUID, body UpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateGroupWithBody ¶
func (*APIClient) UpdateIdentification ¶
func (c *APIClient) UpdateIdentification(ctx context.Context, userId string, id openapi_types.UUID, body UpdateIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateIdentificationWithBody ¶
func (*APIClient) UpdateJobTitle ¶
func (c *APIClient) UpdateJobTitle(ctx context.Context, id openapi_types.UUID, body UpdateJobTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateJobTitleWithBody ¶
func (*APIClient) UpdateUser ¶
func (c *APIClient) UpdateUser(ctx context.Context, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*APIClient) UpdateUserWithBody ¶
func (*APIClient) UpdateWithBody ¶
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 AddChildJSONRequestBody ¶
type AddChildJSONRequestBody = ChildInput
AddChildJSONRequestBody defines body for AddChild for application/json ContentType.
type AddChildResponse ¶
type AddChildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserChild
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddChildResponse ¶
func ParseAddChildResponse(rsp *http.Response) (*AddChildResponse, error)
ParseAddChildResponse parses an HTTP response from a AddChildWithResponse call
func (AddChildResponse) Status ¶
func (r AddChildResponse) Status() string
Status returns HTTPResponse.Status
func (AddChildResponse) StatusCode ¶
func (r AddChildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddEmergencyContactJSONRequestBody ¶
type AddEmergencyContactJSONRequestBody = EmergencyContactInput
AddEmergencyContactJSONRequestBody defines body for AddEmergencyContact for application/json ContentType.
type AddEmergencyContactResponse ¶
type AddEmergencyContactResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserEmergencyContact
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddEmergencyContactResponse ¶
func ParseAddEmergencyContactResponse(rsp *http.Response) (*AddEmergencyContactResponse, error)
ParseAddEmergencyContactResponse parses an HTTP response from a AddEmergencyContactWithResponse call
func (AddEmergencyContactResponse) Status ¶
func (r AddEmergencyContactResponse) Status() string
Status returns HTTPResponse.Status
func (AddEmergencyContactResponse) StatusCode ¶
func (r AddEmergencyContactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddGroupJSONBody ¶
type AddGroupJSONBody struct {
// contains filtered or unexported fields
}
AddGroupJSONBody defines parameters for AddGroup.
type AddGroupJSONRequestBody ¶
type AddGroupJSONRequestBody AddGroupJSONBody
AddGroupJSONRequestBody defines body for AddGroup for application/json ContentType.
type AddGroupResponse ¶
type AddGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GroupDetails
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddGroupResponse ¶
func ParseAddGroupResponse(rsp *http.Response) (*AddGroupResponse, error)
ParseAddGroupResponse parses an HTTP response from a AddGroupWithResponse call
func (AddGroupResponse) Status ¶
func (r AddGroupResponse) Status() string
Status returns HTTPResponse.Status
func (AddGroupResponse) StatusCode ¶
func (r AddGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddIdentificationJSONRequestBody ¶
type AddIdentificationJSONRequestBody = IdentificationInput
AddIdentificationJSONRequestBody defines body for AddIdentification for application/json ContentType.
type AddIdentificationResponse ¶
type AddIdentificationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserIdentification
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddIdentificationResponse ¶
func ParseAddIdentificationResponse(rsp *http.Response) (*AddIdentificationResponse, error)
ParseAddIdentificationResponse parses an HTTP response from a AddIdentificationWithResponse call
func (AddIdentificationResponse) Status ¶
func (r AddIdentificationResponse) Status() string
Status returns HTTPResponse.Status
func (AddIdentificationResponse) StatusCode ¶
func (r AddIdentificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddJobTitleJSONRequestBody ¶
type AddJobTitleJSONRequestBody = JobTitleCreateInput
AddJobTitleJSONRequestBody defines body for AddJobTitle for application/json ContentType.
type AddJobTitleResponse ¶
type AddJobTitleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *JobTitle
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddJobTitleResponse ¶
func ParseAddJobTitleResponse(rsp *http.Response) (*AddJobTitleResponse, error)
ParseAddJobTitleResponse parses an HTTP response from a AddJobTitleWithResponse call
func (AddJobTitleResponse) Status ¶
func (r AddJobTitleResponse) Status() string
Status returns HTTPResponse.Status
func (AddJobTitleResponse) StatusCode ¶
func (r AddJobTitleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddSubordinatesJSONBody ¶
type AddSubordinatesJSONBody = []openapi_types.UUID
AddSubordinatesJSONBody defines parameters for AddSubordinates.
type AddSubordinatesJSONRequestBody ¶
type AddSubordinatesJSONRequestBody = AddSubordinatesJSONBody
AddSubordinatesJSONRequestBody defines body for AddSubordinates for application/json ContentType.
type AddSubordinatesResponse ¶
type AddSubordinatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]SimpleUser
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseAddSubordinatesResponse ¶
func ParseAddSubordinatesResponse(rsp *http.Response) (*AddSubordinatesResponse, error)
ParseAddSubordinatesResponse parses an HTTP response from a AddSubordinatesWithResponse call
func (AddSubordinatesResponse) Status ¶
func (r AddSubordinatesResponse) Status() string
Status returns HTTPResponse.Status
func (AddSubordinatesResponse) StatusCode ¶
func (r AddSubordinatesResponse) 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 AddressInput ¶
type AddressInput 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"`
}
AddressInput defines model for AddressInput.
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.
func (AuthCodeGrantTypeInputProvider) Valid ¶
func (e AuthCodeGrantTypeInputProvider) Valid() bool
Valid indicates whether the value is a known member of the AuthCodeGrantTypeInputProvider enum.
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.
func (BirthDateFieldCompleteness) Valid ¶
func (e BirthDateFieldCompleteness) Valid() bool
Valid indicates whether the value is a known member of the BirthDateFieldCompleteness enum.
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, error)
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)
// AddGroupWithBody request with any body
AddGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddGroup(ctx context.Context, body AddGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetGroup request
GetGroup(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateGroupWithBody request with any body
UpdateGroupWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateGroup(ctx context.Context, id openapi_types.UUID, body UpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// FindDaysForCountry request
FindDaysForCountry(ctx context.Context, countryCode string, params *FindDaysForCountryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListJobTitles request
ListJobTitles(ctx context.Context, params *ListJobTitlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddJobTitleWithBody request with any body
AddJobTitleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddJobTitle(ctx context.Context, body AddJobTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetJobTitle request
GetJobTitle(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateJobTitleWithBody request with any body
UpdateJobTitleWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateJobTitle(ctx context.Context, id openapi_types.UUID, body UpdateJobTitleJSONRequestBody, 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)
// ListSubordinates request
ListSubordinates(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddSubordinatesWithBody request with any body
AddSubordinatesWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddSubordinates(ctx context.Context, id string, body AddSubordinatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// FindSupervisor request
FindSupervisor(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// FindWorkSchedule request
FindWorkSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddChildWithBody request with any body
AddChildWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddChild(ctx context.Context, userId string, body AddChildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveChild request
RemoveChild(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateChildWithBody request with any body
UpdateChildWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateChild(ctx context.Context, userId string, id openapi_types.UUID, body UpdateChildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddEmergencyContactWithBody request with any body
AddEmergencyContactWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddEmergencyContact(ctx context.Context, userId string, body AddEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveEmergencyContact request
RemoveEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEmergencyContactWithBody request with any body
UpdateEmergencyContactWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEmergencyContact(ctx context.Context, userId string, id openapi_types.UUID, body UpdateEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddIdentificationWithBody request with any body
AddIdentificationWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddIdentification(ctx context.Context, userId string, body AddIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveIdentification request
RemoveIdentification(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateIdentificationWithBody request with any body
UpdateIdentificationWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateIdentification(ctx context.Context, userId string, id openapi_types.UUID, body UpdateIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUserPositions request
ListUserPositions(ctx context.Context, userId string, params *ListUserPositionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUserPositionsWithBody request with any body
CreateUserPositionsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUserPositions(ctx context.Context, userId string, body CreateUserPositionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Delete request
Delete(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// Find request
Find(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateWithBody request with any body
UpdateWithBody(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
Update(ctx context.Context, userId string, id openapi_types.UUID, body UpdateJSONRequestBody, 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) AddChildWithBodyWithResponse ¶
func (c *ClientWithResponses) AddChildWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddChildResponse, error)
AddChildWithBodyWithResponse request with arbitrary body returning *AddChildResponse
func (*ClientWithResponses) AddChildWithResponse ¶
func (c *ClientWithResponses) AddChildWithResponse(ctx context.Context, userId string, body AddChildJSONRequestBody, reqEditors ...RequestEditorFn) (*AddChildResponse, error)
func (*ClientWithResponses) AddEmergencyContactWithBodyWithResponse ¶
func (c *ClientWithResponses) AddEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEmergencyContactResponse, error)
AddEmergencyContactWithBodyWithResponse request with arbitrary body returning *AddEmergencyContactResponse
func (*ClientWithResponses) AddEmergencyContactWithResponse ¶
func (c *ClientWithResponses) AddEmergencyContactWithResponse(ctx context.Context, userId string, body AddEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEmergencyContactResponse, error)
func (*ClientWithResponses) AddGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) AddGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddGroupResponse, error)
AddGroupWithBodyWithResponse request with arbitrary body returning *AddGroupResponse
func (*ClientWithResponses) AddGroupWithResponse ¶
func (c *ClientWithResponses) AddGroupWithResponse(ctx context.Context, body AddGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*AddGroupResponse, error)
func (*ClientWithResponses) AddIdentificationWithBodyWithResponse ¶
func (c *ClientWithResponses) AddIdentificationWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddIdentificationResponse, error)
AddIdentificationWithBodyWithResponse request with arbitrary body returning *AddIdentificationResponse
func (*ClientWithResponses) AddIdentificationWithResponse ¶
func (c *ClientWithResponses) AddIdentificationWithResponse(ctx context.Context, userId string, body AddIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*AddIdentificationResponse, error)
func (*ClientWithResponses) AddJobTitleWithBodyWithResponse ¶
func (c *ClientWithResponses) AddJobTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddJobTitleResponse, error)
AddJobTitleWithBodyWithResponse request with arbitrary body returning *AddJobTitleResponse
func (*ClientWithResponses) AddJobTitleWithResponse ¶
func (c *ClientWithResponses) AddJobTitleWithResponse(ctx context.Context, body AddJobTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*AddJobTitleResponse, error)
func (*ClientWithResponses) AddSubordinatesWithBodyWithResponse ¶
func (c *ClientWithResponses) AddSubordinatesWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSubordinatesResponse, error)
AddSubordinatesWithBodyWithResponse request with arbitrary body returning *AddSubordinatesResponse
func (*ClientWithResponses) AddSubordinatesWithResponse ¶
func (c *ClientWithResponses) AddSubordinatesWithResponse(ctx context.Context, id string, body AddSubordinatesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSubordinatesResponse, 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) CreateUserPositionsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateUserPositionsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserPositionsResponse, error)
CreateUserPositionsWithBodyWithResponse request with arbitrary body returning *CreateUserPositionsResponse
func (*ClientWithResponses) CreateUserPositionsWithResponse ¶
func (c *ClientWithResponses) CreateUserPositionsWithResponse(ctx context.Context, userId string, body CreateUserPositionsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserPositionsResponse, 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) DeleteWithResponse ¶
func (c *ClientWithResponses) DeleteWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteResponse, error)
DeleteWithResponse request returning *DeleteResponse
func (*ClientWithResponses) FindDaysForCountryWithResponse ¶
func (c *ClientWithResponses) FindDaysForCountryWithResponse(ctx context.Context, countryCode string, params *FindDaysForCountryParams, reqEditors ...RequestEditorFn) (*FindDaysForCountryResponse, error)
FindDaysForCountryWithResponse request returning *FindDaysForCountryResponse
func (*ClientWithResponses) FindSupervisorWithResponse ¶
func (c *ClientWithResponses) FindSupervisorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FindSupervisorResponse, error)
FindSupervisorWithResponse request returning *FindSupervisorResponse
func (*ClientWithResponses) FindWithResponse ¶
func (c *ClientWithResponses) FindWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*FindResponse, error)
FindWithResponse request returning *FindResponse
func (*ClientWithResponses) FindWorkScheduleWithResponse ¶
func (c *ClientWithResponses) FindWorkScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FindWorkScheduleResponse, error)
FindWorkScheduleWithResponse request returning *FindWorkScheduleResponse
func (*ClientWithResponses) GetGroupWithResponse ¶
func (c *ClientWithResponses) GetGroupWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetGroupResponse, error)
GetGroupWithResponse request returning *GetGroupResponse
func (*ClientWithResponses) GetJobTitleWithResponse ¶
func (c *ClientWithResponses) GetJobTitleWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobTitleResponse, error)
GetJobTitleWithResponse request returning *GetJobTitleResponse
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse request returning *GetUserResponse
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) ListSubordinatesWithResponse ¶
func (c *ClientWithResponses) ListSubordinatesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListSubordinatesResponse, error)
ListSubordinatesWithResponse request returning *ListSubordinatesResponse
func (*ClientWithResponses) ListUserPositionsWithResponse ¶
func (c *ClientWithResponses) ListUserPositionsWithResponse(ctx context.Context, userId string, params *ListUserPositionsParams, reqEditors ...RequestEditorFn) (*ListUserPositionsResponse, error)
ListUserPositionsWithResponse request returning *ListUserPositionsResponse
func (*ClientWithResponses) ListUsersWithResponse ¶
func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithResponse request returning *ListUsersResponse
func (*ClientWithResponses) RemoveChildWithResponse ¶
func (c *ClientWithResponses) RemoveChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveChildResponse, error)
RemoveChildWithResponse request returning *RemoveChildResponse
func (*ClientWithResponses) RemoveEmergencyContactWithResponse ¶
func (c *ClientWithResponses) RemoveEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveEmergencyContactResponse, error)
RemoveEmergencyContactWithResponse request returning *RemoveEmergencyContactResponse
func (*ClientWithResponses) RemoveIdentificationWithResponse ¶
func (c *ClientWithResponses) RemoveIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveIdentificationResponse, error)
RemoveIdentificationWithResponse request returning *RemoveIdentificationResponse
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) 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) UpdateChildWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateChildWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChildResponse, error)
UpdateChildWithBodyWithResponse request with arbitrary body returning *UpdateChildResponse
func (*ClientWithResponses) UpdateChildWithResponse ¶
func (c *ClientWithResponses) UpdateChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateChildJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChildResponse, error)
func (*ClientWithResponses) UpdateEmergencyContactWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmergencyContactResponse, error)
UpdateEmergencyContactWithBodyWithResponse request with arbitrary body returning *UpdateEmergencyContactResponse
func (*ClientWithResponses) UpdateEmergencyContactWithResponse ¶
func (c *ClientWithResponses) UpdateEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmergencyContactResponse, error)
func (*ClientWithResponses) UpdateGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateGroupWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupResponse, error)
UpdateGroupWithBodyWithResponse request with arbitrary body returning *UpdateGroupResponse
func (*ClientWithResponses) UpdateGroupWithResponse ¶
func (c *ClientWithResponses) UpdateGroupWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupResponse, error)
func (*ClientWithResponses) UpdateIdentificationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateIdentificationWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIdentificationResponse, error)
UpdateIdentificationWithBodyWithResponse request with arbitrary body returning *UpdateIdentificationResponse
func (*ClientWithResponses) UpdateIdentificationWithResponse ¶
func (c *ClientWithResponses) UpdateIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIdentificationResponse, error)
func (*ClientWithResponses) UpdateJobTitleWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateJobTitleWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJobTitleResponse, error)
UpdateJobTitleWithBodyWithResponse request with arbitrary body returning *UpdateJobTitleResponse
func (*ClientWithResponses) UpdateJobTitleWithResponse ¶
func (c *ClientWithResponses) UpdateJobTitleWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateJobTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJobTitleResponse, 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)
func (*ClientWithResponses) UpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error)
UpdateWithBodyWithResponse request with arbitrary body returning *UpdateResponse
func (*ClientWithResponses) UpdateWithResponse ¶
func (c *ClientWithResponses) UpdateWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, 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)
// AddGroupWithBodyWithResponse request with any body
AddGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddGroupResponse, error)
AddGroupWithResponse(ctx context.Context, body AddGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*AddGroupResponse, error)
// GetGroupWithResponse request
GetGroupWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetGroupResponse, error)
// UpdateGroupWithBodyWithResponse request with any body
UpdateGroupWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupResponse, error)
UpdateGroupWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupResponse, error)
// FindDaysForCountryWithResponse request
FindDaysForCountryWithResponse(ctx context.Context, countryCode string, params *FindDaysForCountryParams, reqEditors ...RequestEditorFn) (*FindDaysForCountryResponse, error)
// ListJobTitlesWithResponse request
ListJobTitlesWithResponse(ctx context.Context, params *ListJobTitlesParams, reqEditors ...RequestEditorFn) (*ListJobTitlesResponse, error)
// AddJobTitleWithBodyWithResponse request with any body
AddJobTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddJobTitleResponse, error)
AddJobTitleWithResponse(ctx context.Context, body AddJobTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*AddJobTitleResponse, error)
// GetJobTitleWithResponse request
GetJobTitleWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobTitleResponse, error)
// UpdateJobTitleWithBodyWithResponse request with any body
UpdateJobTitleWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJobTitleResponse, error)
UpdateJobTitleWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateJobTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJobTitleResponse, 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)
// ListSubordinatesWithResponse request
ListSubordinatesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListSubordinatesResponse, error)
// AddSubordinatesWithBodyWithResponse request with any body
AddSubordinatesWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSubordinatesResponse, error)
AddSubordinatesWithResponse(ctx context.Context, id string, body AddSubordinatesJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSubordinatesResponse, error)
// FindSupervisorWithResponse request
FindSupervisorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FindSupervisorResponse, error)
// FindWorkScheduleWithResponse request
FindWorkScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*FindWorkScheduleResponse, error)
// AddChildWithBodyWithResponse request with any body
AddChildWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddChildResponse, error)
AddChildWithResponse(ctx context.Context, userId string, body AddChildJSONRequestBody, reqEditors ...RequestEditorFn) (*AddChildResponse, error)
// RemoveChildWithResponse request
RemoveChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveChildResponse, error)
// UpdateChildWithBodyWithResponse request with any body
UpdateChildWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChildResponse, error)
UpdateChildWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateChildJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChildResponse, error)
// AddEmergencyContactWithBodyWithResponse request with any body
AddEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEmergencyContactResponse, error)
AddEmergencyContactWithResponse(ctx context.Context, userId string, body AddEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEmergencyContactResponse, error)
// RemoveEmergencyContactWithResponse request
RemoveEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveEmergencyContactResponse, error)
// UpdateEmergencyContactWithBodyWithResponse request with any body
UpdateEmergencyContactWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmergencyContactResponse, error)
UpdateEmergencyContactWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateEmergencyContactJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmergencyContactResponse, error)
// AddIdentificationWithBodyWithResponse request with any body
AddIdentificationWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddIdentificationResponse, error)
AddIdentificationWithResponse(ctx context.Context, userId string, body AddIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*AddIdentificationResponse, error)
// RemoveIdentificationWithResponse request
RemoveIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveIdentificationResponse, error)
// UpdateIdentificationWithBodyWithResponse request with any body
UpdateIdentificationWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIdentificationResponse, error)
UpdateIdentificationWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateIdentificationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIdentificationResponse, error)
// ListUserPositionsWithResponse request
ListUserPositionsWithResponse(ctx context.Context, userId string, params *ListUserPositionsParams, reqEditors ...RequestEditorFn) (*ListUserPositionsResponse, error)
// CreateUserPositionsWithBodyWithResponse request with any body
CreateUserPositionsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserPositionsResponse, error)
CreateUserPositionsWithResponse(ctx context.Context, userId string, body CreateUserPositionsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserPositionsResponse, error)
// DeleteWithResponse request
DeleteWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteResponse, error)
// FindWithResponse request
FindWithResponse(ctx context.Context, userId string, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*FindResponse, error)
// UpdateWithBodyWithResponse request with any body
UpdateWithBodyWithResponse(ctx context.Context, userId string, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error)
UpdateWithResponse(ctx context.Context, userId string, id openapi_types.UUID, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, 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"`
InvalidOrganizationNumber *bool `json:"invalidOrganizationNumber,omitempty"`
Members *[]SimpleUser `json:"members,omitempty"`
Name string `json:"name"`
OrganizationNumber *string `json:"organizationNumber,omitempty"`
Type CompanyType `json:"type"`
}
Company defines model for Company.
type CompanyCreateInput ¶
type CompanyCreateInput struct {
Address *AddressInput `json:"address,omitempty"`
Description *string `json:"description,omitempty"`
Links *[]Link `json:"links,omitempty"`
Members *[]UUIDWrapper `json:"members,omitempty"`
Name string `json:"name"`
OrganizationNumber *string `json:"organizationNumber,omitempty"`
Type string `json:"type"`
}
CompanyCreateInput defines model for CompanyCreateInput.
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.
func (CompanyType) Valid ¶
func (e CompanyType) Valid() bool
Valid indicates whether the value is a known member of the CompanyType enum.
type CompanyUpdateInput ¶
type CompanyUpdateInput struct {
Address *AddressUpdateInput `json:"address,omitempty"`
Description *string `json:"description,omitempty"`
Links *[]interface{} `json:"links,omitempty"`
Name *string `json:"name,omitempty"`
OrganizationNumber *string `json:"organizationNumber,omitempty"`
Type CompanyUpdateInputType `json:"type"`
}
CompanyUpdateInput defines model for CompanyUpdateInput.
type CompanyUpdateInputType ¶
type CompanyUpdateInputType string
CompanyUpdateInputType defines model for CompanyUpdateInput.Type.
const ( CompanyUpdateInputTypeCompany CompanyUpdateInputType = "company" CompanyUpdateInputTypeLocation CompanyUpdateInputType = "location" CompanyUpdateInputTypeOrganization CompanyUpdateInputType = "organization" CompanyUpdateInputTypeServiceUser CompanyUpdateInputType = "service_user" CompanyUpdateInputTypeSubordinates CompanyUpdateInputType = "subordinates" CompanyUpdateInputTypeTeam CompanyUpdateInputType = "team" CompanyUpdateInputTypeUser CompanyUpdateInputType = "user" )
Defines values for CompanyUpdateInputType.
func (CompanyUpdateInputType) Valid ¶
func (e CompanyUpdateInputType) Valid() bool
Valid indicates whether the value is a known member of the CompanyUpdateInputType enum.
type Completeness ¶
Completeness defines model for Completeness.
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody = UserInput
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserPositionsJSONRequestBody ¶
type CreateUserPositionsJSONRequestBody = PositionCreateInput
CreateUserPositionsJSONRequestBody defines body for CreateUserPositions for application/json ContentType.
type CreateUserPositionsResponse ¶
type CreateUserPositionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Position
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseCreateUserPositionsResponse ¶
func ParseCreateUserPositionsResponse(rsp *http.Response) (*CreateUserPositionsResponse, error)
ParseCreateUserPositionsResponse parses an HTTP response from a CreateUserPositionsWithResponse call
func (CreateUserPositionsResponse) Status ¶
func (r CreateUserPositionsResponse) Status() string
Status returns HTTPResponse.Status
func (CreateUserPositionsResponse) StatusCode ¶
func (r CreateUserPositionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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.
func (CustomFieldObjectSection) Valid ¶
func (e CustomFieldObjectSection) Valid() bool
Valid indicates whether the value is a known member of the CustomFieldObjectSection enum.
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.
func (CustomFieldObjectType) Valid ¶
func (e CustomFieldObjectType) Valid() bool
Valid indicates whether the value is a known member of the CustomFieldObjectType enum.
type DeleteResponse ¶
type DeleteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON404 *NotFoundErrorResponse
}
func ParseDeleteResponse ¶
func ParseDeleteResponse(rsp *http.Response) (*DeleteResponse, error)
ParseDeleteResponse parses an HTTP response from a DeleteWithResponse call
func (DeleteResponse) Status ¶
func (r DeleteResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteResponse) StatusCode ¶
func (r DeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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.
func (FieldAddressCompleteness) Valid ¶
func (e FieldAddressCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldAddressCompleteness enum.
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.
func (FieldBankAccountCompleteness) Valid ¶
func (e FieldBankAccountCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldBankAccountCompleteness enum.
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.
func (FieldBooleanCompleteness) Valid ¶
func (e FieldBooleanCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldBooleanCompleteness enum.
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.
func (FieldCivilStatusCompleteness) Valid ¶
func (e FieldCivilStatusCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldCivilStatusCompleteness enum.
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.
func (FieldCivilStatusValue) Valid ¶
func (e FieldCivilStatusValue) Valid() bool
Valid indicates whether the value is a known member of the FieldCivilStatusValue enum.
type FieldContractType ¶
type FieldContractType struct {
Completeness *FieldContractTypeCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *FieldContractTypeValue `json:"value,omitempty"`
}
FieldContractType defines model for FieldContractType.
type FieldContractTypeCompleteness ¶
type FieldContractTypeCompleteness string
FieldContractTypeCompleteness defines model for FieldContractType.Completeness.
const ( FieldContractTypeCompletenessDetails FieldContractTypeCompleteness = "details" FieldContractTypeCompletenessImportant FieldContractTypeCompleteness = "important" )
Defines values for FieldContractTypeCompleteness.
func (FieldContractTypeCompleteness) Valid ¶
func (e FieldContractTypeCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldContractTypeCompleteness enum.
type FieldContractTypeValue ¶
type FieldContractTypeValue string
FieldContractTypeValue defines model for FieldContractType.Value.
const ( FieldContractTypeValueCasual FieldContractTypeValue = "Casual" FieldContractTypeValueConsultant FieldContractTypeValue = "Consultant" FieldContractTypeValueFreelance FieldContractTypeValue = "Freelance" FieldContractTypeValueJobTrainingProgram FieldContractTypeValue = "JobTrainingProgram" FieldContractTypeValueOther FieldContractTypeValue = "Other" FieldContractTypeValuePermanent FieldContractTypeValue = "Permanent" FieldContractTypeValueSeasonal FieldContractTypeValue = "Seasonal" FieldContractTypeValueTemporary FieldContractTypeValue = "Temporary" FieldContractTypeValueThirdParty FieldContractTypeValue = "ThirdParty" FieldContractTypeValueTrainee FieldContractTypeValue = "Trainee" )
Defines values for FieldContractTypeValue.
func (FieldContractTypeValue) Valid ¶
func (e FieldContractTypeValue) Valid() bool
Valid indicates whether the value is a known member of the FieldContractTypeValue enum.
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.
func (FieldHumaImageCompleteness) Valid ¶
func (e FieldHumaImageCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldHumaImageCompleteness enum.
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.
func (FieldIntegerCompleteness) Valid ¶
func (e FieldIntegerCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldIntegerCompleteness enum.
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.
func (FieldJobTitleCompleteness) Valid ¶
func (e FieldJobTitleCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldJobTitleCompleteness enum.
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.
func (FieldListCompanyCompleteness) Valid ¶
func (e FieldListCompanyCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldListCompanyCompleteness enum.
type FieldListGroup ¶
type FieldListGroup struct {
Completeness *FieldListGroupCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *[]FieldListGroup_Value_Item `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.
func (FieldListGroupCompleteness) Valid ¶
func (e FieldListGroupCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldListGroupCompleteness enum.
type FieldListGroup_Value_Item ¶
type FieldListGroup_Value_Item struct {
// contains filtered or unexported fields
}
FieldListGroup_Value_Item defines model for FieldListGroup.value.Item.
func (FieldListGroup_Value_Item) AsCompany ¶
func (t FieldListGroup_Value_Item) AsCompany() (Company, error)
AsCompany returns the union data inside the FieldListGroup_Value_Item as a Company
func (FieldListGroup_Value_Item) AsGroup ¶
func (t FieldListGroup_Value_Item) AsGroup() (Group, error)
AsGroup returns the union data inside the FieldListGroup_Value_Item as a Group
func (FieldListGroup_Value_Item) AsLocation ¶
func (t FieldListGroup_Value_Item) AsLocation() (Location, error)
AsLocation returns the union data inside the FieldListGroup_Value_Item as a Location
func (FieldListGroup_Value_Item) AsTeam ¶
func (t FieldListGroup_Value_Item) AsTeam() (Team, error)
AsTeam returns the union data inside the FieldListGroup_Value_Item as a Team
func (*FieldListGroup_Value_Item) FromCompany ¶
func (t *FieldListGroup_Value_Item) FromCompany(v Company) error
FromCompany overwrites any union data inside the FieldListGroup_Value_Item as the provided Company
func (*FieldListGroup_Value_Item) FromGroup ¶
func (t *FieldListGroup_Value_Item) FromGroup(v Group) error
FromGroup overwrites any union data inside the FieldListGroup_Value_Item as the provided Group
func (*FieldListGroup_Value_Item) FromLocation ¶
func (t *FieldListGroup_Value_Item) FromLocation(v Location) error
FromLocation overwrites any union data inside the FieldListGroup_Value_Item as the provided Location
func (*FieldListGroup_Value_Item) FromTeam ¶
func (t *FieldListGroup_Value_Item) FromTeam(v Team) error
FromTeam overwrites any union data inside the FieldListGroup_Value_Item as the provided Team
func (FieldListGroup_Value_Item) MarshalJSON ¶
func (t FieldListGroup_Value_Item) MarshalJSON() ([]byte, error)
func (*FieldListGroup_Value_Item) MergeCompany ¶
func (t *FieldListGroup_Value_Item) MergeCompany(v Company) error
MergeCompany performs a merge with any union data inside the FieldListGroup_Value_Item, using the provided Company
func (*FieldListGroup_Value_Item) MergeGroup ¶
func (t *FieldListGroup_Value_Item) MergeGroup(v Group) error
MergeGroup performs a merge with any union data inside the FieldListGroup_Value_Item, using the provided Group
func (*FieldListGroup_Value_Item) MergeLocation ¶
func (t *FieldListGroup_Value_Item) MergeLocation(v Location) error
MergeLocation performs a merge with any union data inside the FieldListGroup_Value_Item, using the provided Location
func (*FieldListGroup_Value_Item) MergeTeam ¶
func (t *FieldListGroup_Value_Item) MergeTeam(v Team) error
MergeTeam performs a merge with any union data inside the FieldListGroup_Value_Item, using the provided Team
func (*FieldListGroup_Value_Item) UnmarshalJSON ¶
func (t *FieldListGroup_Value_Item) UnmarshalJSON(b []byte) error
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.
func (FieldListLocationCompleteness) Valid ¶
func (e FieldListLocationCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldListLocationCompleteness enum.
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.
func (FieldListStringCompleteness) Valid ¶
func (e FieldListStringCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldListStringCompleteness enum.
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.
func (FieldListTeamCompleteness) Valid ¶
func (e FieldListTeamCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldListTeamCompleteness enum.
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.
func (FieldListUserChildCompleteness) Valid ¶
func (e FieldListUserChildCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldListUserChildCompleteness enum.
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.
func (FieldListUserEmergencyContactCompleteness) Valid ¶
func (e FieldListUserEmergencyContactCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldListUserEmergencyContactCompleteness enum.
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.
func (FieldListUserIdentificationCompleteness) Valid ¶
func (e FieldListUserIdentificationCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldListUserIdentificationCompleteness enum.
type FieldLocalDate ¶
type FieldLocalDate struct {
Completeness *FieldLocalDateCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *openapi_types.Date `json:"value,omitempty"`
}
FieldLocalDate defines model for FieldLocalDate.
type FieldLocalDateCompleteness ¶
type FieldLocalDateCompleteness string
FieldLocalDateCompleteness defines model for FieldLocalDate.Completeness.
const ( FieldLocalDateCompletenessDetails FieldLocalDateCompleteness = "details" FieldLocalDateCompletenessImportant FieldLocalDateCompleteness = "important" )
Defines values for FieldLocalDateCompleteness.
func (FieldLocalDateCompleteness) Valid ¶
func (e FieldLocalDateCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldLocalDateCompleteness enum.
type FieldPositionEndReason ¶
type FieldPositionEndReason struct {
Completeness *FieldPositionEndReasonCompleteness `json:"completeness,omitempty"`
Editable bool `json:"editable"`
Integrations *map[string]IntegrationMeta `json:"integrations,omitempty"`
Value *FieldPositionEndReasonValue `json:"value,omitempty"`
}
FieldPositionEndReason defines model for FieldPositionEndReason.
type FieldPositionEndReasonCompleteness ¶
type FieldPositionEndReasonCompleteness string
FieldPositionEndReasonCompleteness defines model for FieldPositionEndReason.Completeness.
const ( FieldPositionEndReasonCompletenessDetails FieldPositionEndReasonCompleteness = "details" FieldPositionEndReasonCompletenessImportant FieldPositionEndReasonCompleteness = "important" )
Defines values for FieldPositionEndReasonCompleteness.
func (FieldPositionEndReasonCompleteness) Valid ¶
func (e FieldPositionEndReasonCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldPositionEndReasonCompleteness enum.
type FieldPositionEndReasonValue ¶
type FieldPositionEndReasonValue string
FieldPositionEndReasonValue defines model for FieldPositionEndReason.Value.
const ( FieldPositionEndReasonValueChangeInOrganizationOrInternalJobTransfer FieldPositionEndReasonValue = "change_in_organization_or_internal_job_transfer" FieldPositionEndReasonValueChangeInPayrollSystemOrAccountant FieldPositionEndReasonValue = "change_in_payroll_system_or_accountant" FieldPositionEndReasonValueEmployeeResigned FieldPositionEndReasonValue = "employee_resigned" FieldPositionEndReasonValueEmployeeTerminated FieldPositionEndReasonValue = "employee_terminated" FieldPositionEndReasonValueOther FieldPositionEndReasonValue = "other" FieldPositionEndReasonValueTemporaryContractOrPositionEnded FieldPositionEndReasonValue = "temporary_contract_or_position_ended" )
Defines values for FieldPositionEndReasonValue.
func (FieldPositionEndReasonValue) Valid ¶
func (e FieldPositionEndReasonValue) Valid() bool
Valid indicates whether the value is a known member of the FieldPositionEndReasonValue enum.
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.
func (FieldSalaryCompleteness) Valid ¶
func (e FieldSalaryCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldSalaryCompleteness enum.
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.
func (FieldSimpleUserCompleteness) Valid ¶
func (e FieldSimpleUserCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldSimpleUserCompleteness enum.
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.
func (FieldStringCompleteness) Valid ¶
func (e FieldStringCompleteness) Valid() bool
Valid indicates whether the value is a known member of the FieldStringCompleteness enum.
type FindDaysForCountryParams ¶
type FindDaysForCountryParams struct {
FromDate openapi_types.Date `form:"fromDate" json:"fromDate"`
ToDate openapi_types.Date `form:"toDate" json:"toDate"`
}
FindDaysForCountryParams defines parameters for FindDaysForCountry.
type FindDaysForCountryResponse ¶
type FindDaysForCountryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]openapi_types.Date
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseFindDaysForCountryResponse ¶
func ParseFindDaysForCountryResponse(rsp *http.Response) (*FindDaysForCountryResponse, error)
ParseFindDaysForCountryResponse parses an HTTP response from a FindDaysForCountryWithResponse call
func (FindDaysForCountryResponse) Status ¶
func (r FindDaysForCountryResponse) Status() string
Status returns HTTPResponse.Status
func (FindDaysForCountryResponse) StatusCode ¶
func (r FindDaysForCountryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FindResponse ¶
type FindResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Position
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseFindResponse ¶
func ParseFindResponse(rsp *http.Response) (*FindResponse, error)
ParseFindResponse parses an HTTP response from a FindWithResponse call
func (FindResponse) Status ¶
func (r FindResponse) Status() string
Status returns HTTPResponse.Status
func (FindResponse) StatusCode ¶
func (r FindResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FindSupervisorResponse ¶
type FindSupervisorResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Supervisor
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseFindSupervisorResponse ¶
func ParseFindSupervisorResponse(rsp *http.Response) (*FindSupervisorResponse, error)
ParseFindSupervisorResponse parses an HTTP response from a FindSupervisorWithResponse call
func (FindSupervisorResponse) Status ¶
func (r FindSupervisorResponse) Status() string
Status returns HTTPResponse.Status
func (FindSupervisorResponse) StatusCode ¶
func (r FindSupervisorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FindWorkScheduleResponse ¶
type FindWorkScheduleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WorkSchedule
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseFindWorkScheduleResponse ¶
func ParseFindWorkScheduleResponse(rsp *http.Response) (*FindWorkScheduleResponse, error)
ParseFindWorkScheduleResponse parses an HTTP response from a FindWorkScheduleWithResponse call
func (FindWorkScheduleResponse) Status ¶
func (r FindWorkScheduleResponse) Status() string
Status returns HTTPResponse.Status
func (FindWorkScheduleResponse) StatusCode ¶
func (r FindWorkScheduleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGroupResponse ¶
type GetGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GroupDetails
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseGetGroupResponse ¶
func ParseGetGroupResponse(rsp *http.Response) (*GetGroupResponse, error)
ParseGetGroupResponse parses an HTTP response from a GetGroupWithResponse call
func (GetGroupResponse) Status ¶
func (r GetGroupResponse) Status() string
Status returns HTTPResponse.Status
func (GetGroupResponse) StatusCode ¶
func (r GetGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobTitleResponse ¶
type GetJobTitleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *JobTitle
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseGetJobTitleResponse ¶
func ParseGetJobTitleResponse(rsp *http.Response) (*GetJobTitleResponse, error)
ParseGetJobTitleResponse parses an HTTP response from a GetJobTitleWithResponse call
func (GetJobTitleResponse) Status ¶
func (r GetJobTitleResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobTitleResponse) StatusCode ¶
func (r GetJobTitleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 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"`
Members *[]SimpleUser `json:"members,omitempty"`
Name string `json:"name"`
Type GroupType `json:"type"`
}
Group defines model for Group.
type GroupCreateInput ¶
type GroupCreateInput struct {
Description *string `json:"description,omitempty"`
Links *[]Link `json:"links,omitempty"`
Members *[]UUIDWrapper `json:"members,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
}
GroupCreateInput defines model for GroupCreateInput.
type GroupDetails ¶
type GroupDetails struct {
Description *string `json:"description,omitempty"`
Grants *[]OrgUnitGrant `json:"grants,omitempty"`
Id openapi_types.UUID `json:"id"`
Links *[]Link `json:"links,omitempty"`
Members *[]User `json:"members,omitempty"`
Name string `json:"name"`
}
GroupDetails defines model for GroupDetails.
type GroupRoleGrant ¶
type GroupRoleGrant struct {
Domain GroupRoleGrantDomain `json:"domain"`
Groups *[]GroupRoleGrant_Groups_Item `json:"groups,omitempty"`
User *SimpleUser `json:"user,omitempty"`
}
GroupRoleGrant defines model for GroupRoleGrant.
type GroupRoleGrantDomain ¶
type GroupRoleGrantDomain string
GroupRoleGrantDomain defines model for GroupRoleGrant.Domain.
const ( GroupRoleGrantDomainOrganization GroupRoleGrantDomain = "organization" GroupRoleGrantDomainUser GroupRoleGrantDomain = "user" )
Defines values for GroupRoleGrantDomain.
func (GroupRoleGrantDomain) Valid ¶
func (e GroupRoleGrantDomain) Valid() bool
Valid indicates whether the value is a known member of the GroupRoleGrantDomain enum.
type GroupRoleGrant_Groups_Item ¶
type GroupRoleGrant_Groups_Item struct {
// contains filtered or unexported fields
}
GroupRoleGrant_Groups_Item defines model for GroupRoleGrant.groups.Item.
func (GroupRoleGrant_Groups_Item) AsSimpleCompany ¶
func (t GroupRoleGrant_Groups_Item) AsSimpleCompany() (SimpleCompany, error)
AsSimpleCompany returns the union data inside the GroupRoleGrant_Groups_Item as a SimpleCompany
func (GroupRoleGrant_Groups_Item) AsSimpleLocation ¶
func (t GroupRoleGrant_Groups_Item) AsSimpleLocation() (SimpleLocation, error)
AsSimpleLocation returns the union data inside the GroupRoleGrant_Groups_Item as a SimpleLocation
func (GroupRoleGrant_Groups_Item) AsSimpleOrganization ¶
func (t GroupRoleGrant_Groups_Item) AsSimpleOrganization() (SimpleOrganization, error)
AsSimpleOrganization returns the union data inside the GroupRoleGrant_Groups_Item as a SimpleOrganization
func (GroupRoleGrant_Groups_Item) AsSimpleTeam ¶
func (t GroupRoleGrant_Groups_Item) AsSimpleTeam() (SimpleTeam, error)
AsSimpleTeam returns the union data inside the GroupRoleGrant_Groups_Item as a SimpleTeam
func (GroupRoleGrant_Groups_Item) AsSimpleUser ¶
func (t GroupRoleGrant_Groups_Item) AsSimpleUser() (SimpleUser, error)
AsSimpleUser returns the union data inside the GroupRoleGrant_Groups_Item as a SimpleUser
func (*GroupRoleGrant_Groups_Item) FromSimpleCompany ¶
func (t *GroupRoleGrant_Groups_Item) FromSimpleCompany(v SimpleCompany) error
FromSimpleCompany overwrites any union data inside the GroupRoleGrant_Groups_Item as the provided SimpleCompany
func (*GroupRoleGrant_Groups_Item) FromSimpleLocation ¶
func (t *GroupRoleGrant_Groups_Item) FromSimpleLocation(v SimpleLocation) error
FromSimpleLocation overwrites any union data inside the GroupRoleGrant_Groups_Item as the provided SimpleLocation
func (*GroupRoleGrant_Groups_Item) FromSimpleOrganization ¶
func (t *GroupRoleGrant_Groups_Item) FromSimpleOrganization(v SimpleOrganization) error
FromSimpleOrganization overwrites any union data inside the GroupRoleGrant_Groups_Item as the provided SimpleOrganization
func (*GroupRoleGrant_Groups_Item) FromSimpleTeam ¶
func (t *GroupRoleGrant_Groups_Item) FromSimpleTeam(v SimpleTeam) error
FromSimpleTeam overwrites any union data inside the GroupRoleGrant_Groups_Item as the provided SimpleTeam
func (*GroupRoleGrant_Groups_Item) FromSimpleUser ¶
func (t *GroupRoleGrant_Groups_Item) FromSimpleUser(v SimpleUser) error
FromSimpleUser overwrites any union data inside the GroupRoleGrant_Groups_Item as the provided SimpleUser
func (GroupRoleGrant_Groups_Item) MarshalJSON ¶
func (t GroupRoleGrant_Groups_Item) MarshalJSON() ([]byte, error)
func (*GroupRoleGrant_Groups_Item) MergeSimpleCompany ¶
func (t *GroupRoleGrant_Groups_Item) MergeSimpleCompany(v SimpleCompany) error
MergeSimpleCompany performs a merge with any union data inside the GroupRoleGrant_Groups_Item, using the provided SimpleCompany
func (*GroupRoleGrant_Groups_Item) MergeSimpleLocation ¶
func (t *GroupRoleGrant_Groups_Item) MergeSimpleLocation(v SimpleLocation) error
MergeSimpleLocation performs a merge with any union data inside the GroupRoleGrant_Groups_Item, using the provided SimpleLocation
func (*GroupRoleGrant_Groups_Item) MergeSimpleOrganization ¶
func (t *GroupRoleGrant_Groups_Item) MergeSimpleOrganization(v SimpleOrganization) error
MergeSimpleOrganization performs a merge with any union data inside the GroupRoleGrant_Groups_Item, using the provided SimpleOrganization
func (*GroupRoleGrant_Groups_Item) MergeSimpleTeam ¶
func (t *GroupRoleGrant_Groups_Item) MergeSimpleTeam(v SimpleTeam) error
MergeSimpleTeam performs a merge with any union data inside the GroupRoleGrant_Groups_Item, using the provided SimpleTeam
func (*GroupRoleGrant_Groups_Item) MergeSimpleUser ¶
func (t *GroupRoleGrant_Groups_Item) MergeSimpleUser(v SimpleUser) error
MergeSimpleUser performs a merge with any union data inside the GroupRoleGrant_Groups_Item, using the provided SimpleUser
func (*GroupRoleGrant_Groups_Item) UnmarshalJSON ¶
func (t *GroupRoleGrant_Groups_Item) UnmarshalJSON(b []byte) error
type GroupType ¶
type GroupType string
GroupType defines model for Group.Type.
const ( GroupTypeCompany GroupType = "company" GroupTypeLocation GroupType = "location" GroupTypeOrganization GroupType = "organization" GroupTypeServiceUser GroupType = "service_user" GroupTypeSubordinates GroupType = "subordinates" GroupTypeTeam GroupType = "team" GroupTypeUser GroupType = "user" )
Defines values for GroupType.
type GroupUpdateInput ¶
type GroupUpdateInput struct {
Description *string `json:"description,omitempty"`
Links *[]interface{} `json:"links,omitempty"`
Name *string `json:"name,omitempty"`
Type GroupUpdateInputType `json:"type"`
}
GroupUpdateInput defines model for GroupUpdateInput.
type GroupUpdateInputType ¶
type GroupUpdateInputType string
GroupUpdateInputType defines model for GroupUpdateInput.Type.
const ( GroupUpdateInputTypeCompany GroupUpdateInputType = "company" GroupUpdateInputTypeLocation GroupUpdateInputType = "location" GroupUpdateInputTypeOrganization GroupUpdateInputType = "organization" GroupUpdateInputTypeServiceUser GroupUpdateInputType = "service_user" GroupUpdateInputTypeSubordinates GroupUpdateInputType = "subordinates" GroupUpdateInputTypeTeam GroupUpdateInputType = "team" GroupUpdateInputTypeUser GroupUpdateInputType = "user" )
Defines values for GroupUpdateInputType.
func (GroupUpdateInputType) Valid ¶
func (e GroupUpdateInputType) Valid() bool
Valid indicates whether the value is a known member of the GroupUpdateInputType enum.
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.
func (IdentificationInputType) Valid ¶
func (e IdentificationInputType) Valid() bool
Valid indicates whether the value is a known member of the IdentificationInputType enum.
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.
func (IntegrationMetaWarning) Valid ¶
func (e IntegrationMetaWarning) Valid() bool
Valid indicates whether the value is a known member of the IntegrationMetaWarning enum.
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 JobTitleCreateInput ¶
type JobTitleCreateInput struct {
Description *string `json:"description,omitempty"`
Name string `json:"name"`
}
JobTitleCreateInput defines model for JobTitleCreateInput.
type JobTitleSummary ¶
type JobTitleSummary struct {
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
}
JobTitleSummary defines model for JobTitleSummary.
type JobTitleUpdateInput ¶
type JobTitleUpdateInput struct {
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
}
JobTitleUpdateInput defines model for JobTitleUpdateInput.
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.
func (ListGroupsParamsOrderDirection) Valid ¶
func (e ListGroupsParamsOrderDirection) Valid() bool
Valid indicates whether the value is a known member of the ListGroupsParamsOrderDirection enum.
type ListGroupsParamsType ¶
type ListGroupsParamsType string
ListGroupsParamsType defines parameters for ListGroups.
const ( ListGroupsParamsTypeCompany ListGroupsParamsType = "company" ListGroupsParamsTypeLocation ListGroupsParamsType = "location" ListGroupsParamsTypeTeam ListGroupsParamsType = "team" )
Defines values for ListGroupsParamsType.
func (ListGroupsParamsType) Valid ¶
func (e ListGroupsParamsType) Valid() bool
Valid indicates whether the value is a known member of the ListGroupsParamsType enum.
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.
func (ListJubileesParamsOrderDirection) Valid ¶
func (e ListJubileesParamsOrderDirection) Valid() bool
Valid indicates whether the value is a known member of the ListJubileesParamsOrderDirection enum.
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 ListSubordinatesResponse ¶
type ListSubordinatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]SimpleUser
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseListSubordinatesResponse ¶
func ParseListSubordinatesResponse(rsp *http.Response) (*ListSubordinatesResponse, error)
ParseListSubordinatesResponse parses an HTTP response from a ListSubordinatesWithResponse call
func (ListSubordinatesResponse) Status ¶
func (r ListSubordinatesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSubordinatesResponse) StatusCode ¶
func (r ListSubordinatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUserPositionsParams ¶
type ListUserPositionsParams struct {
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`
}
ListUserPositionsParams defines parameters for ListUserPositions.
type ListUserPositionsResponse ¶
type ListUserPositionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PagePositionSummary
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseListUserPositionsResponse ¶
func ParseListUserPositionsResponse(rsp *http.Response) (*ListUserPositionsResponse, error)
ParseListUserPositionsResponse parses an HTTP response from a ListUserPositionsWithResponse call
func (ListUserPositionsResponse) Status ¶
func (r ListUserPositionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListUserPositionsResponse) StatusCode ¶
func (r ListUserPositionsResponse) 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.
func (ListUsersParamsOrderDirection) Valid ¶
func (e ListUsersParamsOrderDirection) Valid() bool
Valid indicates whether the value is a known member of the ListUsersParamsOrderDirection enum.
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.
func (LocalDateFieldCompleteness) Valid ¶
func (e LocalDateFieldCompleteness) Valid() bool
Valid indicates whether the value is a known member of the LocalDateFieldCompleteness enum.
type Location ¶
type Location struct {
Address *Address `json:"address,omitempty"`
Id openapi_types.UUID `json:"id"`
Members *[]SimpleUser `json:"members,omitempty"`
Name string `json:"name"`
Type LocationType `json:"type"`
}
Location defines model for Location.
type LocationCreateInput ¶
type LocationCreateInput struct {
Address *AddressInput `json:"address,omitempty"`
Description *string `json:"description,omitempty"`
Links *[]Link `json:"links,omitempty"`
Members *[]UUIDWrapper `json:"members,omitempty"`
Name string `json:"name"`
Type string `json:"type"`
}
LocationCreateInput defines model for LocationCreateInput.
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.
func (LocationType) Valid ¶
func (e LocationType) Valid() bool
Valid indicates whether the value is a known member of the LocationType enum.
type LocationUpdateInput ¶
type LocationUpdateInput struct {
Address *AddressUpdateInput `json:"address,omitempty"`
Description *string `json:"description,omitempty"`
Links *[]interface{} `json:"links,omitempty"`
Name *string `json:"name,omitempty"`
Type LocationUpdateInputType `json:"type"`
}
LocationUpdateInput defines model for LocationUpdateInput.
type LocationUpdateInputType ¶
type LocationUpdateInputType string
LocationUpdateInputType defines model for LocationUpdateInput.Type.
const ( LocationUpdateInputTypeCompany LocationUpdateInputType = "company" LocationUpdateInputTypeLocation LocationUpdateInputType = "location" LocationUpdateInputTypeOrganization LocationUpdateInputType = "organization" LocationUpdateInputTypeServiceUser LocationUpdateInputType = "service_user" LocationUpdateInputTypeSubordinates LocationUpdateInputType = "subordinates" LocationUpdateInputTypeTeam LocationUpdateInputType = "team" LocationUpdateInputTypeUser LocationUpdateInputType = "user" )
Defines values for LocationUpdateInputType.
func (LocationUpdateInputType) Valid ¶
func (e LocationUpdateInputType) Valid() bool
Valid indicates whether the value is a known member of the LocationUpdateInputType enum.
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 WithCustomBaseURL ¶
WithCustomBaseURL returns an Option that overrides the default API base URL.
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 OrgUnitGrant ¶
type OrgUnitGrant struct {
Role Role `json:"role"`
Users []SimpleUser `json:"users"`
}
OrgUnitGrant defines model for OrgUnitGrant.
type OrganizationRoleGrant ¶
type OrganizationRoleGrant struct {
Domain OrganizationRoleGrantDomain `json:"domain"`
User *SimpleUser `json:"user,omitempty"`
}
OrganizationRoleGrant defines model for OrganizationRoleGrant.
type OrganizationRoleGrantDomain ¶
type OrganizationRoleGrantDomain string
OrganizationRoleGrantDomain defines model for OrganizationRoleGrant.Domain.
const ( OrganizationRoleGrantDomainOrganization OrganizationRoleGrantDomain = "organization" OrganizationRoleGrantDomainUser OrganizationRoleGrantDomain = "user" )
Defines values for OrganizationRoleGrantDomain.
func (OrganizationRoleGrantDomain) Valid ¶
func (e OrganizationRoleGrantDomain) Valid() bool
Valid indicates whether the value is a known member of the OrganizationRoleGrantDomain enum.
type PageGroup ¶
type PageGroup struct {
Filters *map[string]interface{} `json:"filters,omitempty"`
Items []PageGroup_Items_Item `json:"items"`
Meta *map[string]interface{} `json:"meta,omitempty"`
Total *int32 `json:"total,omitempty"`
}
PageGroup defines model for PageGroup.
type PageGroup_Items_Item ¶
type PageGroup_Items_Item struct {
// contains filtered or unexported fields
}
PageGroup_Items_Item defines model for PageGroup.items.Item.
func (PageGroup_Items_Item) AsCompany ¶
func (t PageGroup_Items_Item) AsCompany() (Company, error)
AsCompany returns the union data inside the PageGroup_Items_Item as a Company
func (PageGroup_Items_Item) AsGroup ¶
func (t PageGroup_Items_Item) AsGroup() (Group, error)
AsGroup returns the union data inside the PageGroup_Items_Item as a Group
func (PageGroup_Items_Item) AsLocation ¶
func (t PageGroup_Items_Item) AsLocation() (Location, error)
AsLocation returns the union data inside the PageGroup_Items_Item as a Location
func (PageGroup_Items_Item) AsTeam ¶
func (t PageGroup_Items_Item) AsTeam() (Team, error)
AsTeam returns the union data inside the PageGroup_Items_Item as a Team
func (*PageGroup_Items_Item) FromCompany ¶
func (t *PageGroup_Items_Item) FromCompany(v Company) error
FromCompany overwrites any union data inside the PageGroup_Items_Item as the provided Company
func (*PageGroup_Items_Item) FromGroup ¶
func (t *PageGroup_Items_Item) FromGroup(v Group) error
FromGroup overwrites any union data inside the PageGroup_Items_Item as the provided Group
func (*PageGroup_Items_Item) FromLocation ¶
func (t *PageGroup_Items_Item) FromLocation(v Location) error
FromLocation overwrites any union data inside the PageGroup_Items_Item as the provided Location
func (*PageGroup_Items_Item) FromTeam ¶
func (t *PageGroup_Items_Item) FromTeam(v Team) error
FromTeam overwrites any union data inside the PageGroup_Items_Item as the provided Team
func (PageGroup_Items_Item) MarshalJSON ¶
func (t PageGroup_Items_Item) MarshalJSON() ([]byte, error)
func (*PageGroup_Items_Item) MergeCompany ¶
func (t *PageGroup_Items_Item) MergeCompany(v Company) error
MergeCompany performs a merge with any union data inside the PageGroup_Items_Item, using the provided Company
func (*PageGroup_Items_Item) MergeGroup ¶
func (t *PageGroup_Items_Item) MergeGroup(v Group) error
MergeGroup performs a merge with any union data inside the PageGroup_Items_Item, using the provided Group
func (*PageGroup_Items_Item) MergeLocation ¶
func (t *PageGroup_Items_Item) MergeLocation(v Location) error
MergeLocation performs a merge with any union data inside the PageGroup_Items_Item, using the provided Location
func (*PageGroup_Items_Item) MergeTeam ¶
func (t *PageGroup_Items_Item) MergeTeam(v Team) error
MergeTeam performs a merge with any union data inside the PageGroup_Items_Item, using the provided Team
func (*PageGroup_Items_Item) UnmarshalJSON ¶
func (t *PageGroup_Items_Item) UnmarshalJSON(b []byte) error
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 PagePositionSummary ¶
type PagePositionSummary struct {
Filters *map[string]interface{} `json:"filters,omitempty"`
Items []PositionSummary `json:"items"`
Meta *map[string]interface{} `json:"meta,omitempty"`
Total *int32 `json:"total,omitempty"`
}
PagePositionSummary defines model for PagePositionSummary.
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 Position ¶
type Position struct {
ContractCountry *FieldString `json:"contractCountry,omitempty"`
ContractEndDate *LocalDateField `json:"contractEndDate,omitempty"`
ContractStartDate *LocalDateField `json:"contractStartDate,omitempty"`
ContractType *FieldContractType `json:"contractType,omitempty"`
Description *FieldString `json:"description,omitempty"`
EndNote *FieldString `json:"endNote,omitempty"`
EndReason *FieldPositionEndReason `json:"endReason,omitempty"`
FirstDayOfWork *LocalDateField `json:"firstDayOfWork,omitempty"`
Id openapi_types.UUID `json:"id"`
LastDayOfWork *LocalDateField `json:"lastDayOfWork,omitempty"`
Note *FieldString `json:"note,omitempty"`
Percentage *FieldInteger `json:"percentage,omitempty"`
ProbationEndDate *LocalDateField `json:"probationEndDate,omitempty"`
Status *PositionStatus `json:"status,omitempty"`
TerminationNoticeDate *LocalDateField `json:"terminationNoticeDate,omitempty"`
Title *FieldJobTitle `json:"title,omitempty"`
WantedEnd *FieldBoolean `json:"wantedEnd,omitempty"`
}
Position defines model for Position.
type PositionCreateInput ¶
type PositionCreateInput struct {
ContractCountry *string `json:"contractCountry,omitempty"`
ContractEndDate *openapi_types.Date `json:"contractEndDate,omitempty"`
ContractStartDate openapi_types.Date `json:"contractStartDate"`
ContractType PositionCreateInputContractType `json:"contractType"`
Description *string `json:"description,omitempty"`
EndNote *string `json:"endNote,omitempty"`
EndReason *PositionCreateInputEndReason `json:"endReason,omitempty"`
FirstDayOfWork *openapi_types.Date `json:"firstDayOfWork,omitempty"`
LastDayOfWork *openapi_types.Date `json:"lastDayOfWork,omitempty"`
Note *string `json:"note,omitempty"`
Percentage *int32 `json:"percentage,omitempty"`
ProbationEndDate *openapi_types.Date `json:"probationEndDate,omitempty"`
TerminationNoticeDate *openapi_types.Date `json:"terminationNoticeDate,omitempty"`
TitleId openapi_types.UUID `json:"titleId"`
WantedEnd *bool `json:"wantedEnd,omitempty"`
}
PositionCreateInput defines model for PositionCreateInput.
type PositionCreateInputContractType ¶
type PositionCreateInputContractType string
PositionCreateInputContractType defines model for PositionCreateInput.ContractType.
const ( PositionCreateInputContractTypeCasual PositionCreateInputContractType = "Casual" PositionCreateInputContractTypeConsultant PositionCreateInputContractType = "Consultant" PositionCreateInputContractTypeFreelance PositionCreateInputContractType = "Freelance" PositionCreateInputContractTypeJobTrainingProgram PositionCreateInputContractType = "JobTrainingProgram" PositionCreateInputContractTypeOther PositionCreateInputContractType = "Other" PositionCreateInputContractTypePermanent PositionCreateInputContractType = "Permanent" PositionCreateInputContractTypeSeasonal PositionCreateInputContractType = "Seasonal" PositionCreateInputContractTypeTemporary PositionCreateInputContractType = "Temporary" PositionCreateInputContractTypeThirdParty PositionCreateInputContractType = "ThirdParty" PositionCreateInputContractTypeTrainee PositionCreateInputContractType = "Trainee" )
Defines values for PositionCreateInputContractType.
func (PositionCreateInputContractType) Valid ¶
func (e PositionCreateInputContractType) Valid() bool
Valid indicates whether the value is a known member of the PositionCreateInputContractType enum.
type PositionCreateInputEndReason ¶
type PositionCreateInputEndReason string
PositionCreateInputEndReason defines model for PositionCreateInput.EndReason.
const ( PositionCreateInputEndReasonChangeInOrganizationOrInternalJobTransfer PositionCreateInputEndReason = "change_in_organization_or_internal_job_transfer" PositionCreateInputEndReasonChangeInPayrollSystemOrAccountant PositionCreateInputEndReason = "change_in_payroll_system_or_accountant" PositionCreateInputEndReasonEmployeeResigned PositionCreateInputEndReason = "employee_resigned" PositionCreateInputEndReasonEmployeeTerminated PositionCreateInputEndReason = "employee_terminated" PositionCreateInputEndReasonOther PositionCreateInputEndReason = "other" PositionCreateInputEndReasonTemporaryContractOrPositionEnded PositionCreateInputEndReason = "temporary_contract_or_position_ended" )
Defines values for PositionCreateInputEndReason.
func (PositionCreateInputEndReason) Valid ¶
func (e PositionCreateInputEndReason) Valid() bool
Valid indicates whether the value is a known member of the PositionCreateInputEndReason enum.
type PositionStatus ¶
type PositionStatus string
PositionStatus defines model for Position.Status.
const ( PositionStatusCURRENT PositionStatus = "CURRENT" PositionStatusENDED PositionStatus = "ENDED" PositionStatusUPCOMING PositionStatus = "UPCOMING" )
Defines values for PositionStatus.
func (PositionStatus) Valid ¶
func (e PositionStatus) Valid() bool
Valid indicates whether the value is a known member of the PositionStatus enum.
type PositionSummary ¶
type PositionSummary struct {
ContractEndDate *openapi_types.Date `json:"contractEndDate,omitempty"`
ContractStartDate *openapi_types.Date `json:"contractStartDate,omitempty"`
ContractType *PositionSummaryContractType `json:"contractType,omitempty"`
Description *string `json:"description,omitempty"`
Id openapi_types.UUID `json:"id"`
Percentage *int32 `json:"percentage,omitempty"`
PeriodInMonths *int32 `json:"periodInMonths,omitempty"`
Status *PositionSummaryStatus `json:"status,omitempty"`
Title *JobTitle `json:"title,omitempty"`
}
PositionSummary defines model for PositionSummary.
type PositionSummaryContractType ¶
type PositionSummaryContractType string
PositionSummaryContractType defines model for PositionSummary.ContractType.
const ( PositionSummaryContractTypeCasual PositionSummaryContractType = "Casual" PositionSummaryContractTypeConsultant PositionSummaryContractType = "Consultant" PositionSummaryContractTypeFreelance PositionSummaryContractType = "Freelance" PositionSummaryContractTypeJobTrainingProgram PositionSummaryContractType = "JobTrainingProgram" PositionSummaryContractTypeOther PositionSummaryContractType = "Other" PositionSummaryContractTypePermanent PositionSummaryContractType = "Permanent" PositionSummaryContractTypeSeasonal PositionSummaryContractType = "Seasonal" PositionSummaryContractTypeTemporary PositionSummaryContractType = "Temporary" PositionSummaryContractTypeThirdParty PositionSummaryContractType = "ThirdParty" PositionSummaryContractTypeTrainee PositionSummaryContractType = "Trainee" )
Defines values for PositionSummaryContractType.
func (PositionSummaryContractType) Valid ¶
func (e PositionSummaryContractType) Valid() bool
Valid indicates whether the value is a known member of the PositionSummaryContractType enum.
type PositionSummaryStatus ¶
type PositionSummaryStatus string
PositionSummaryStatus defines model for PositionSummary.Status.
const ( PositionSummaryStatusCURRENT PositionSummaryStatus = "CURRENT" PositionSummaryStatusENDED PositionSummaryStatus = "ENDED" PositionSummaryStatusUPCOMING PositionSummaryStatus = "UPCOMING" )
Defines values for PositionSummaryStatus.
func (PositionSummaryStatus) Valid ¶
func (e PositionSummaryStatus) Valid() bool
Valid indicates whether the value is a known member of the PositionSummaryStatus enum.
type PositionUpdateInput ¶
type PositionUpdateInput struct {
ContractCountry *string `json:"contractCountry,omitempty"`
ContractEndDate *openapi_types.Date `json:"contractEndDate,omitempty"`
ContractStartDate *openapi_types.Date `json:"contractStartDate,omitempty"`
ContractType *PositionUpdateInputContractType `json:"contractType,omitempty"`
Description *string `json:"description,omitempty"`
EndNote *string `json:"endNote,omitempty"`
EndReason *PositionUpdateInputEndReason `json:"endReason,omitempty"`
FirstDayOfWork *openapi_types.Date `json:"firstDayOfWork,omitempty"`
LastDayOfWork *openapi_types.Date `json:"lastDayOfWork,omitempty"`
Note *string `json:"note,omitempty"`
Percentage *int32 `json:"percentage,omitempty"`
ProbationEndDate *openapi_types.Date `json:"probationEndDate,omitempty"`
TerminationNoticeDate *openapi_types.Date `json:"terminationNoticeDate,omitempty"`
TitleId *openapi_types.UUID `json:"titleId,omitempty"`
WantedEnd *bool `json:"wantedEnd,omitempty"`
}
PositionUpdateInput defines model for PositionUpdateInput.
type PositionUpdateInputContractType ¶
type PositionUpdateInputContractType string
PositionUpdateInputContractType defines model for PositionUpdateInput.ContractType.
const ( PositionUpdateInputContractTypeCasual PositionUpdateInputContractType = "Casual" PositionUpdateInputContractTypeConsultant PositionUpdateInputContractType = "Consultant" PositionUpdateInputContractTypeFreelance PositionUpdateInputContractType = "Freelance" PositionUpdateInputContractTypeJobTrainingProgram PositionUpdateInputContractType = "JobTrainingProgram" PositionUpdateInputContractTypeOther PositionUpdateInputContractType = "Other" PositionUpdateInputContractTypePermanent PositionUpdateInputContractType = "Permanent" PositionUpdateInputContractTypeSeasonal PositionUpdateInputContractType = "Seasonal" PositionUpdateInputContractTypeTemporary PositionUpdateInputContractType = "Temporary" PositionUpdateInputContractTypeThirdParty PositionUpdateInputContractType = "ThirdParty" PositionUpdateInputContractTypeTrainee PositionUpdateInputContractType = "Trainee" )
Defines values for PositionUpdateInputContractType.
func (PositionUpdateInputContractType) Valid ¶
func (e PositionUpdateInputContractType) Valid() bool
Valid indicates whether the value is a known member of the PositionUpdateInputContractType enum.
type PositionUpdateInputEndReason ¶
type PositionUpdateInputEndReason string
PositionUpdateInputEndReason defines model for PositionUpdateInput.EndReason.
const ( ChangeInOrganizationOrInternalJobTransfer PositionUpdateInputEndReason = "change_in_organization_or_internal_job_transfer" ChangeInPayrollSystemOrAccountant PositionUpdateInputEndReason = "change_in_payroll_system_or_accountant" EmployeeResigned PositionUpdateInputEndReason = "employee_resigned" EmployeeTerminated PositionUpdateInputEndReason = "employee_terminated" Other PositionUpdateInputEndReason = "other" TemporaryContractOrPositionEnded PositionUpdateInputEndReason = "temporary_contract_or_position_ended" )
Defines values for PositionUpdateInputEndReason.
func (PositionUpdateInputEndReason) Valid ¶
func (e PositionUpdateInputEndReason) Valid() bool
Valid indicates whether the value is a known member of the PositionUpdateInputEndReason enum.
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 RemoveChildResponse ¶
type RemoveChildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON404 *NotFoundErrorResponse
}
func ParseRemoveChildResponse ¶
func ParseRemoveChildResponse(rsp *http.Response) (*RemoveChildResponse, error)
ParseRemoveChildResponse parses an HTTP response from a RemoveChildWithResponse call
func (RemoveChildResponse) Status ¶
func (r RemoveChildResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveChildResponse) StatusCode ¶
func (r RemoveChildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveEmergencyContactResponse ¶
type RemoveEmergencyContactResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON404 *NotFoundErrorResponse
}
func ParseRemoveEmergencyContactResponse ¶
func ParseRemoveEmergencyContactResponse(rsp *http.Response) (*RemoveEmergencyContactResponse, error)
ParseRemoveEmergencyContactResponse parses an HTTP response from a RemoveEmergencyContactWithResponse call
func (RemoveEmergencyContactResponse) Status ¶
func (r RemoveEmergencyContactResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveEmergencyContactResponse) StatusCode ¶
func (r RemoveEmergencyContactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveIdentificationResponse ¶
type RemoveIdentificationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *InvalidFieldFormatResponse
JSON404 *NotFoundErrorResponse
}
func ParseRemoveIdentificationResponse ¶
func ParseRemoveIdentificationResponse(rsp *http.Response) (*RemoveIdentificationResponse, error)
ParseRemoveIdentificationResponse parses an HTTP response from a RemoveIdentificationWithResponse call
func (RemoveIdentificationResponse) Status ¶
func (r RemoveIdentificationResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveIdentificationResponse) StatusCode ¶
func (r RemoveIdentificationResponse) 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 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 Role ¶
type Role struct {
Assignable bool `json:"assignable"`
Deletable bool `json:"deletable"`
Description *string `json:"description,omitempty"`
Domain RoleDomain `json:"domain"`
Features *[]string `json:"features,omitempty"`
Grants *[]Role_Grants_Item `json:"grants,omitempty"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
Permissions []string `json:"permissions"`
Updatable bool `json:"updatable"`
}
Role defines model for Role.
type RoleDomain ¶
type RoleDomain string
RoleDomain defines model for Role.Domain.
const ( RoleDomainOrganization RoleDomain = "organization" RoleDomainUser RoleDomain = "user" )
Defines values for RoleDomain.
func (RoleDomain) Valid ¶
func (e RoleDomain) Valid() bool
Valid indicates whether the value is a known member of the RoleDomain enum.
type RoleGrant ¶
type RoleGrant struct {
Domain RoleGrantDomain `json:"domain"`
}
RoleGrant defines model for RoleGrant.
type RoleGrantDomain ¶
type RoleGrantDomain string
RoleGrantDomain defines model for RoleGrant.Domain.
const ( RoleGrantDomainOrganization RoleGrantDomain = "organization" RoleGrantDomainUser RoleGrantDomain = "user" )
Defines values for RoleGrantDomain.
func (RoleGrantDomain) Valid ¶
func (e RoleGrantDomain) Valid() bool
Valid indicates whether the value is a known member of the RoleGrantDomain enum.
type Role_Grants_Item ¶
type Role_Grants_Item struct {
// contains filtered or unexported fields
}
Role_Grants_Item defines model for Role.grants.Item.
func (Role_Grants_Item) AsGroupRoleGrant ¶
func (t Role_Grants_Item) AsGroupRoleGrant() (GroupRoleGrant, error)
AsGroupRoleGrant returns the union data inside the Role_Grants_Item as a GroupRoleGrant
func (Role_Grants_Item) AsOrganizationRoleGrant ¶
func (t Role_Grants_Item) AsOrganizationRoleGrant() (OrganizationRoleGrant, error)
AsOrganizationRoleGrant returns the union data inside the Role_Grants_Item as a OrganizationRoleGrant
func (*Role_Grants_Item) FromGroupRoleGrant ¶
func (t *Role_Grants_Item) FromGroupRoleGrant(v GroupRoleGrant) error
FromGroupRoleGrant overwrites any union data inside the Role_Grants_Item as the provided GroupRoleGrant
func (*Role_Grants_Item) FromOrganizationRoleGrant ¶
func (t *Role_Grants_Item) FromOrganizationRoleGrant(v OrganizationRoleGrant) error
FromOrganizationRoleGrant overwrites any union data inside the Role_Grants_Item as the provided OrganizationRoleGrant
func (Role_Grants_Item) MarshalJSON ¶
func (t Role_Grants_Item) MarshalJSON() ([]byte, error)
func (*Role_Grants_Item) MergeGroupRoleGrant ¶
func (t *Role_Grants_Item) MergeGroupRoleGrant(v GroupRoleGrant) error
MergeGroupRoleGrant performs a merge with any union data inside the Role_Grants_Item, using the provided GroupRoleGrant
func (*Role_Grants_Item) MergeOrganizationRoleGrant ¶
func (t *Role_Grants_Item) MergeOrganizationRoleGrant(v OrganizationRoleGrant) error
MergeOrganizationRoleGrant performs a merge with any union data inside the Role_Grants_Item, using the provided OrganizationRoleGrant
func (*Role_Grants_Item) UnmarshalJSON ¶
func (t *Role_Grants_Item) UnmarshalJSON(b []byte) error
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.
func (SalaryPeriodUnit) Valid ¶
func (e SalaryPeriodUnit) Valid() bool
Valid indicates whether the value is a known member of the SalaryPeriodUnit enum.
type SimpleCompany ¶
type SimpleCompany struct {
Id *openapi_types.UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type SimpleCompanyType `json:"type"`
}
SimpleCompany defines model for SimpleCompany.
type SimpleCompanyType ¶
type SimpleCompanyType string
SimpleCompanyType defines model for SimpleCompany.Type.
const ( SimpleCompanyTypeCompany SimpleCompanyType = "company" SimpleCompanyTypeLocation SimpleCompanyType = "location" SimpleCompanyTypeOrganization SimpleCompanyType = "organization" SimpleCompanyTypeServiceUser SimpleCompanyType = "service_user" SimpleCompanyTypeSubordinates SimpleCompanyType = "subordinates" SimpleCompanyTypeTeam SimpleCompanyType = "team" SimpleCompanyTypeUser SimpleCompanyType = "user" )
Defines values for SimpleCompanyType.
func (SimpleCompanyType) Valid ¶
func (e SimpleCompanyType) Valid() bool
Valid indicates whether the value is a known member of the SimpleCompanyType enum.
type SimpleLocation ¶
type SimpleLocation struct {
Id *openapi_types.UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type SimpleLocationType `json:"type"`
}
SimpleLocation defines model for SimpleLocation.
type SimpleLocationType ¶
type SimpleLocationType string
SimpleLocationType defines model for SimpleLocation.Type.
const ( SimpleLocationTypeCompany SimpleLocationType = "company" SimpleLocationTypeLocation SimpleLocationType = "location" SimpleLocationTypeOrganization SimpleLocationType = "organization" SimpleLocationTypeServiceUser SimpleLocationType = "service_user" SimpleLocationTypeSubordinates SimpleLocationType = "subordinates" SimpleLocationTypeTeam SimpleLocationType = "team" SimpleLocationTypeUser SimpleLocationType = "user" )
Defines values for SimpleLocationType.
func (SimpleLocationType) Valid ¶
func (e SimpleLocationType) Valid() bool
Valid indicates whether the value is a known member of the SimpleLocationType enum.
type SimpleOrgUnit ¶
type SimpleOrgUnit struct {
Type string `json:"type"`
}
SimpleOrgUnit defines model for SimpleOrgUnit.
type SimpleOrganization ¶
type SimpleOrganization struct {
Id *openapi_types.UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type SimpleOrganizationType `json:"type"`
}
SimpleOrganization defines model for SimpleOrganization.
type SimpleOrganizationType ¶
type SimpleOrganizationType string
SimpleOrganizationType defines model for SimpleOrganization.Type.
const ( SimpleOrganizationTypeCompany SimpleOrganizationType = "company" SimpleOrganizationTypeLocation SimpleOrganizationType = "location" SimpleOrganizationTypeOrganization SimpleOrganizationType = "organization" SimpleOrganizationTypeServiceUser SimpleOrganizationType = "service_user" SimpleOrganizationTypeSubordinates SimpleOrganizationType = "subordinates" SimpleOrganizationTypeTeam SimpleOrganizationType = "team" SimpleOrganizationTypeUser SimpleOrganizationType = "user" )
Defines values for SimpleOrganizationType.
func (SimpleOrganizationType) Valid ¶
func (e SimpleOrganizationType) Valid() bool
Valid indicates whether the value is a known member of the SimpleOrganizationType enum.
type SimpleTeam ¶
type SimpleTeam struct {
Id *openapi_types.UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type SimpleTeamType `json:"type"`
}
SimpleTeam defines model for SimpleTeam.
type SimpleTeamType ¶
type SimpleTeamType string
SimpleTeamType defines model for SimpleTeam.Type.
const ( SimpleTeamTypeCompany SimpleTeamType = "company" SimpleTeamTypeLocation SimpleTeamType = "location" SimpleTeamTypeOrganization SimpleTeamType = "organization" SimpleTeamTypeServiceUser SimpleTeamType = "service_user" SimpleTeamTypeSubordinates SimpleTeamType = "subordinates" SimpleTeamTypeTeam SimpleTeamType = "team" SimpleTeamTypeUser SimpleTeamType = "user" )
Defines values for SimpleTeamType.
func (SimpleTeamType) Valid ¶
func (e SimpleTeamType) Valid() bool
Valid indicates whether the value is a known member of the SimpleTeamType enum.
type SimpleUser ¶
type SimpleUser struct {
AvatarImage *HumaImage `json:"avatarImage,omitempty"`
AvatarUrl *string `json:"avatarUrl,omitempty"`
Email *string `json:"email,omitempty"`
FamilyName *string `json:"familyName,omitempty"`
GivenName *string `json:"givenName,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
InvitedAt *time.Time `json:"invitedAt,omitempty"`
JobTitle *JobTitleSummary `json:"jobTitle,omitempty"`
JobTitles *[]JobTitleSummary `json:"jobTitles,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.
func (SimpleUserType) Valid ¶
func (e SimpleUserType) Valid() bool
Valid indicates whether the value is a known member of the SimpleUserType enum.
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 *[]Supervisor_Groups_Item `json:"groups,omitempty"`
Id openapi_types.UUID `json:"id"`
JobTitle *JobTitleSummary `json:"jobTitle,omitempty"`
JobTitles *[]JobTitleSummary `json:"jobTitles,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 Supervisor_Groups_Item ¶
type Supervisor_Groups_Item struct {
// contains filtered or unexported fields
}
Supervisor_Groups_Item defines model for Supervisor.groups.Item.
func (Supervisor_Groups_Item) AsCompany ¶
func (t Supervisor_Groups_Item) AsCompany() (Company, error)
AsCompany returns the union data inside the Supervisor_Groups_Item as a Company
func (Supervisor_Groups_Item) AsGroup ¶
func (t Supervisor_Groups_Item) AsGroup() (Group, error)
AsGroup returns the union data inside the Supervisor_Groups_Item as a Group
func (Supervisor_Groups_Item) AsLocation ¶
func (t Supervisor_Groups_Item) AsLocation() (Location, error)
AsLocation returns the union data inside the Supervisor_Groups_Item as a Location
func (Supervisor_Groups_Item) AsTeam ¶
func (t Supervisor_Groups_Item) AsTeam() (Team, error)
AsTeam returns the union data inside the Supervisor_Groups_Item as a Team
func (*Supervisor_Groups_Item) FromCompany ¶
func (t *Supervisor_Groups_Item) FromCompany(v Company) error
FromCompany overwrites any union data inside the Supervisor_Groups_Item as the provided Company
func (*Supervisor_Groups_Item) FromGroup ¶
func (t *Supervisor_Groups_Item) FromGroup(v Group) error
FromGroup overwrites any union data inside the Supervisor_Groups_Item as the provided Group
func (*Supervisor_Groups_Item) FromLocation ¶
func (t *Supervisor_Groups_Item) FromLocation(v Location) error
FromLocation overwrites any union data inside the Supervisor_Groups_Item as the provided Location
func (*Supervisor_Groups_Item) FromTeam ¶
func (t *Supervisor_Groups_Item) FromTeam(v Team) error
FromTeam overwrites any union data inside the Supervisor_Groups_Item as the provided Team
func (Supervisor_Groups_Item) MarshalJSON ¶
func (t Supervisor_Groups_Item) MarshalJSON() ([]byte, error)
func (*Supervisor_Groups_Item) MergeCompany ¶
func (t *Supervisor_Groups_Item) MergeCompany(v Company) error
MergeCompany performs a merge with any union data inside the Supervisor_Groups_Item, using the provided Company
func (*Supervisor_Groups_Item) MergeGroup ¶
func (t *Supervisor_Groups_Item) MergeGroup(v Group) error
MergeGroup performs a merge with any union data inside the Supervisor_Groups_Item, using the provided Group
func (*Supervisor_Groups_Item) MergeLocation ¶
func (t *Supervisor_Groups_Item) MergeLocation(v Location) error
MergeLocation performs a merge with any union data inside the Supervisor_Groups_Item, using the provided Location
func (*Supervisor_Groups_Item) MergeTeam ¶
func (t *Supervisor_Groups_Item) MergeTeam(v Team) error
MergeTeam performs a merge with any union data inside the Supervisor_Groups_Item, using the provided Team
func (*Supervisor_Groups_Item) UnmarshalJSON ¶
func (t *Supervisor_Groups_Item) UnmarshalJSON(b []byte) error
type TeamCreateInput ¶
type TeamCreateInput = GroupCreateInput
TeamCreateInput defines model for TeamCreateInput.
type TeamUpdateInput ¶
type TeamUpdateInput = GroupUpdateInput
TeamUpdateInput defines model for TeamUpdateInput.
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 UUIDWrapper ¶
type UUIDWrapper struct {
Id openapi_types.UUID `json:"id"`
}
UUIDWrapper defines model for UUIDWrapper.
type UpdateChildJSONRequestBody ¶
type UpdateChildJSONRequestBody = ChildInput
UpdateChildJSONRequestBody defines body for UpdateChild for application/json ContentType.
type UpdateChildResponse ¶
type UpdateChildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserChild
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateChildResponse ¶
func ParseUpdateChildResponse(rsp *http.Response) (*UpdateChildResponse, error)
ParseUpdateChildResponse parses an HTTP response from a UpdateChildWithResponse call
func (UpdateChildResponse) Status ¶
func (r UpdateChildResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateChildResponse) StatusCode ¶
func (r UpdateChildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateEmergencyContactJSONRequestBody ¶
type UpdateEmergencyContactJSONRequestBody = EmergencyContactInput
UpdateEmergencyContactJSONRequestBody defines body for UpdateEmergencyContact for application/json ContentType.
type UpdateEmergencyContactResponse ¶
type UpdateEmergencyContactResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserEmergencyContact
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateEmergencyContactResponse ¶
func ParseUpdateEmergencyContactResponse(rsp *http.Response) (*UpdateEmergencyContactResponse, error)
ParseUpdateEmergencyContactResponse parses an HTTP response from a UpdateEmergencyContactWithResponse call
func (UpdateEmergencyContactResponse) Status ¶
func (r UpdateEmergencyContactResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateEmergencyContactResponse) StatusCode ¶
func (r UpdateEmergencyContactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateGroupJSONBody ¶
type UpdateGroupJSONBody struct {
// contains filtered or unexported fields
}
UpdateGroupJSONBody defines parameters for UpdateGroup.
type UpdateGroupJSONRequestBody ¶
type UpdateGroupJSONRequestBody UpdateGroupJSONBody
UpdateGroupJSONRequestBody defines body for UpdateGroup for application/json ContentType.
type UpdateGroupResponse ¶
type UpdateGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GroupDetails
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateGroupResponse ¶
func ParseUpdateGroupResponse(rsp *http.Response) (*UpdateGroupResponse, error)
ParseUpdateGroupResponse parses an HTTP response from a UpdateGroupWithResponse call
func (UpdateGroupResponse) Status ¶
func (r UpdateGroupResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateGroupResponse) StatusCode ¶
func (r UpdateGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateIdentificationJSONRequestBody ¶
type UpdateIdentificationJSONRequestBody = IdentificationInput
UpdateIdentificationJSONRequestBody defines body for UpdateIdentification for application/json ContentType.
type UpdateIdentificationResponse ¶
type UpdateIdentificationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UserIdentification
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateIdentificationResponse ¶
func ParseUpdateIdentificationResponse(rsp *http.Response) (*UpdateIdentificationResponse, error)
ParseUpdateIdentificationResponse parses an HTTP response from a UpdateIdentificationWithResponse call
func (UpdateIdentificationResponse) Status ¶
func (r UpdateIdentificationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateIdentificationResponse) StatusCode ¶
func (r UpdateIdentificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateJSONRequestBody ¶
type UpdateJSONRequestBody = PositionUpdateInput
UpdateJSONRequestBody defines body for Update for application/json ContentType.
type UpdateJobTitleJSONRequestBody ¶
type UpdateJobTitleJSONRequestBody = JobTitleUpdateInput
UpdateJobTitleJSONRequestBody defines body for UpdateJobTitle for application/json ContentType.
type UpdateJobTitleResponse ¶
type UpdateJobTitleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *JobTitle
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateJobTitleResponse ¶
func ParseUpdateJobTitleResponse(rsp *http.Response) (*UpdateJobTitleResponse, error)
ParseUpdateJobTitleResponse parses an HTTP response from a UpdateJobTitleWithResponse call
func (UpdateJobTitleResponse) Status ¶
func (r UpdateJobTitleResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateJobTitleResponse) StatusCode ¶
func (r UpdateJobTitleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateResponse ¶
type UpdateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Position
JSON400 *InvalidFieldFormatResponse
JSON401 *InvalidTokenResponse
JSON404 *NotFoundErrorResponse
JSON500 *StandardServerErrorResponse
}
func ParseUpdateResponse ¶
func ParseUpdateResponse(rsp *http.Response) (*UpdateResponse, error)
ParseUpdateResponse parses an HTTP response from a UpdateWithResponse call
func (UpdateResponse) Status ¶
func (r UpdateResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateResponse) StatusCode ¶
func (r UpdateResponse) 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 {
AvatarImage *HumaImage `json:"avatarImage,omitempty"`
// AvatarUrl Use avatarImage instead
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AvatarUrl *string `json:"avatarUrl,omitempty"`
Companies *[]Company `json:"companies,omitempty"`
Email string `json:"email"`
FamilyName string `json:"familyName"`
GivenName string `json:"givenName"`
Groups *[]User_Groups_Item `json:"groups,omitempty"`
Id openapi_types.UUID `json:"id"`
JobTitle *JobTitleSummary `json:"jobTitle,omitempty"`
JobTitles []JobTitleSummary `json:"jobTitles"`
Locations *[]Location `json:"locations,omitempty"`
Phone *string `json:"phone,omitempty"`
PreferredName *string `json:"preferredName,omitempty"`
Status AccountStatus `json:"status"`
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"`
CurrentPositions *[]PositionSummary `json:"currentPositions,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 *FieldContractType `json:"employmentType,omitempty"`
ExcludeFromInsights *FieldBoolean `json:"excludeFromInsights,omitempty"`
ExcludeFromSurveys *FieldBoolean `json:"excludeFromSurveys,omitempty"`
FamilyName FieldString `json:"familyName"`
FirstContractStartDate *FieldLocalDate `json:"firstContractStartDate,omitempty"`
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"`
// JobTitles Use jobTitle from positions instead
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
JobTitles *[]JobTitle `json:"jobTitles,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"`
RelevantExperienceInMonths *FieldInteger `json:"relevantExperienceInMonths,omitempty"`
Salary *FieldSalary `json:"salary,omitempty"`
SeniorityInCompany *int32 `json:"seniorityInCompany,omitempty"`
SeniorityNote *FieldString `json:"seniorityNote,omitempty"`
Status AccountStatus `json:"status"`
SubordinatesCount int32 `json:"subordinatesCount"`
Supervisor *FieldSimpleUser `json:"supervisor,omitempty"`
Teams *FieldListTeam `json:"teams,omitempty"`
TerminationNoticeDate *LocalDateField `json:"terminationNoticeDate,omitempty"`
TotalSeniority *int32 `json:"totalSeniority,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"`
EmploymentId *string `json:"employmentId,omitempty"`
ExcludeFromInsights *bool `json:"excludeFromInsights,omitempty"`
ExcludeFromSurveys *bool `json:"excludeFromSurveys,omitempty"`
FamilyName *string `json:"familyName,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"`
Nationality *string `json:"nationality,omitempty"`
Phone *string `json:"phone,omitempty"`
PreferredName *string `json:"preferredName,omitempty"`
PrivateEmail *string `json:"privateEmail,omitempty"`
RelevantExperienceInMonths *int32 `json:"relevantExperienceInMonths,omitempty"`
RelevantExperienceInYears *int32 `json:"relevantExperienceInYears,omitempty"`
SeniorityNote *string `json:"seniorityNote,omitempty"`
Supervisor *openapi_types.UUID `json:"supervisor,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.
func (UserDetailsInputCivilStatus) Valid ¶
func (e UserDetailsInputCivilStatus) Valid() bool
Valid indicates whether the value is a known member of the UserDetailsInputCivilStatus enum.
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.
func (UserDetailsType) Valid ¶
func (e UserDetailsType) Valid() bool
Valid indicates whether the value is a known member of the UserDetailsType enum.
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.
func (UserIdentificationType) Valid ¶
func (e UserIdentificationType) Valid() bool
Valid indicates whether the value is a known member of the UserIdentificationType enum.
type UserInput ¶
type UserInput struct {
Email string `json:"email"`
FamilyName string `json:"familyName"`
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 User_Groups_Item ¶
type User_Groups_Item struct {
// contains filtered or unexported fields
}
User_Groups_Item defines model for User.groups.Item.
func (User_Groups_Item) AsCompany ¶
func (t User_Groups_Item) AsCompany() (Company, error)
AsCompany returns the union data inside the User_Groups_Item as a Company
func (User_Groups_Item) AsGroup ¶
func (t User_Groups_Item) AsGroup() (Group, error)
AsGroup returns the union data inside the User_Groups_Item as a Group
func (User_Groups_Item) AsLocation ¶
func (t User_Groups_Item) AsLocation() (Location, error)
AsLocation returns the union data inside the User_Groups_Item as a Location
func (User_Groups_Item) AsTeam ¶
func (t User_Groups_Item) AsTeam() (Team, error)
AsTeam returns the union data inside the User_Groups_Item as a Team
func (*User_Groups_Item) FromCompany ¶
func (t *User_Groups_Item) FromCompany(v Company) error
FromCompany overwrites any union data inside the User_Groups_Item as the provided Company
func (*User_Groups_Item) FromGroup ¶
func (t *User_Groups_Item) FromGroup(v Group) error
FromGroup overwrites any union data inside the User_Groups_Item as the provided Group
func (*User_Groups_Item) FromLocation ¶
func (t *User_Groups_Item) FromLocation(v Location) error
FromLocation overwrites any union data inside the User_Groups_Item as the provided Location
func (*User_Groups_Item) FromTeam ¶
func (t *User_Groups_Item) FromTeam(v Team) error
FromTeam overwrites any union data inside the User_Groups_Item as the provided Team
func (User_Groups_Item) MarshalJSON ¶
func (t User_Groups_Item) MarshalJSON() ([]byte, error)
func (*User_Groups_Item) MergeCompany ¶
func (t *User_Groups_Item) MergeCompany(v Company) error
MergeCompany performs a merge with any union data inside the User_Groups_Item, using the provided Company
func (*User_Groups_Item) MergeGroup ¶
func (t *User_Groups_Item) MergeGroup(v Group) error
MergeGroup performs a merge with any union data inside the User_Groups_Item, using the provided Group
func (*User_Groups_Item) MergeLocation ¶
func (t *User_Groups_Item) MergeLocation(v Location) error
MergeLocation performs a merge with any union data inside the User_Groups_Item, using the provided Location
func (*User_Groups_Item) MergeTeam ¶
func (t *User_Groups_Item) MergeTeam(v Team) error
MergeTeam performs a merge with any union data inside the User_Groups_Item, using the provided Team
func (*User_Groups_Item) UnmarshalJSON ¶
func (t *User_Groups_Item) UnmarshalJSON(b []byte) error
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.
func (WorkScheduleWeekWorkDays) Valid ¶
func (e WorkScheduleWeekWorkDays) Valid() bool
Valid indicates whether the value is a known member of the WorkScheduleWeekWorkDays enum.